/* 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",
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/cuda_runtime_api.h",
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/device_types.h",
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/driver_types.h",
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/library_types.h",
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/surface_types.h",
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/texture_types.h",
            "/host/home/runner/_work/cuda-python/cuda-python/cuda_toolkit/include/vector_types.h",
            "cuda/bindings/_lib/param_packer.h"
        ],
        "extra_compile_args": [
            "-std=c++14",
            "-fpermissive",
            "-Wno-deprecated-declarations",
            "-fno-var-tracking-assignments",
            "-O3"
        ],
        "include_dirs": [
            "./cuda/bindings/_lib",
            "/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.runtime",
        "sources": [
            "cuda/bindings/runtime.pyx"
        ]
    },
    "module_name": "cuda.bindings.runtime"
}
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__runtime
#define __PYX_HAVE_API__cuda__bindings__runtime
/* Early includes */
#include <stdint.h>
#include "vector_types.h"
#include "driver_types.h"
#include "surface_types.h"
#include "texture_types.h"
#include "library_types.h"
#include "cuda_runtime_api.h"
#include "device_types.h"
#include "cuda.h"
#include "cudaProfiler.h"
#include "ios"
#include "new"
#include "stdexcept"
#include "typeinfo"
#include <vector>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <limits.h>
#include <stdio.h>
#include <utility>

    #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)
    // move should be defined for these versions of MSVC, but __cplusplus isn't set usefully
    #include <type_traits>

    namespace cython_std {
    template <typename T> typename std::remove_reference<T>::type&& move(T& t) noexcept { return std::move(t); }
    template <typename T> typename std::remove_reference<T>::type&& move(T&& t) noexcept { return std::move(t); }
    }

    #endif
    
#include <map>
#include "param_packer.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/runtime.pyx",
  "cuda/bindings/_lib/utils.pxi",
  "<stringsource>",
  "cuda/bindings/runtime.pxd",
  "cuda/bindings/_lib/utils.pxd",
  "cuda/bindings/driver.pxd",
  "cpython/type.pxd",
};
/* #### Code section: utility_code_proto_before_types ### */
/* 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

/* 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()

/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif

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

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

/* "cuda/bindings/cyruntime.pxd":10
 * include "cyruntime_types.pxi"
 * 
 * ctypedef unsigned int GLenum             # <<<<<<<<<<<<<<
 * 
 * ctypedef unsigned int GLuint
*/
typedef unsigned int __pyx_t_4cuda_8bindings_9cyruntime_GLenum;

/* "cuda/bindings/cyruntime.pxd":12
 * ctypedef unsigned int GLenum
 * 
 * ctypedef unsigned int GLuint             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "":
*/
typedef unsigned int __pyx_t_4cuda_8bindings_9cyruntime_GLuint;

/* "cuda/bindings/cyruntime.pxd":24
 * ctypedef void* EGLStreamKHR
 * 
 * ctypedef unsigned int EGLint             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "":
*/
typedef unsigned int __pyx_t_4cuda_8bindings_9cyruntime_EGLint;

/* "cuda/bindings/cyruntime.pxd":31
 * ctypedef void* EGLSyncKHR
 * 
 * ctypedef uint32_t VdpDevice             # <<<<<<<<<<<<<<
 * 
 * ctypedef unsigned long long VdpGetProcAddress
*/
typedef uint32_t __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice;

/* "cuda/bindings/cyruntime.pxd":33
 * ctypedef uint32_t VdpDevice
 * 
 * ctypedef unsigned long long VdpGetProcAddress             # <<<<<<<<<<<<<<
 * 
 * ctypedef uint32_t VdpVideoSurface
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress;

/* "cuda/bindings/cyruntime.pxd":35
 * ctypedef unsigned long long VdpGetProcAddress
 * 
 * ctypedef uint32_t VdpVideoSurface             # <<<<<<<<<<<<<<
 * 
 * ctypedef uint32_t VdpOutputSurface
*/
typedef uint32_t __pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface;

/* "cuda/bindings/cyruntime.pxd":37
 * ctypedef uint32_t VdpVideoSurface
 * 
 * ctypedef uint32_t VdpOutputSurface             # <<<<<<<<<<<<<<
 * 
 * cdef enum cudaEglFrameType_enum:
*/
typedef uint32_t __pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface;

/* "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;

/* "cuda/bindings/runtime.pyx":24
 * include "_lib/utils.pxi"
 * 
 * ctypedef unsigned long long signed_char_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long unsigned_char_ptr
 * ctypedef unsigned long long char_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_signed_char_ptr;

/* "cuda/bindings/runtime.pyx":25
 * 
 * ctypedef unsigned long long signed_char_ptr
 * ctypedef unsigned long long unsigned_char_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long char_ptr
 * ctypedef unsigned long long short_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_unsigned_char_ptr;

/* "cuda/bindings/runtime.pyx":26
 * ctypedef unsigned long long signed_char_ptr
 * ctypedef unsigned long long unsigned_char_ptr
 * ctypedef unsigned long long char_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long short_ptr
 * ctypedef unsigned long long unsigned_short_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_char_ptr;

/* "cuda/bindings/runtime.pyx":27
 * ctypedef unsigned long long unsigned_char_ptr
 * ctypedef unsigned long long char_ptr
 * ctypedef unsigned long long short_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long unsigned_short_ptr
 * ctypedef unsigned long long int_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_short_ptr;

/* "cuda/bindings/runtime.pyx":28
 * ctypedef unsigned long long char_ptr
 * ctypedef unsigned long long short_ptr
 * ctypedef unsigned long long unsigned_short_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long int_ptr
 * ctypedef unsigned long long long_int_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_unsigned_short_ptr;

/* "cuda/bindings/runtime.pyx":29
 * ctypedef unsigned long long short_ptr
 * ctypedef unsigned long long unsigned_short_ptr
 * ctypedef unsigned long long int_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long long_int_ptr
 * ctypedef unsigned long long long_long_int_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_int_ptr;

/* "cuda/bindings/runtime.pyx":30
 * ctypedef unsigned long long unsigned_short_ptr
 * ctypedef unsigned long long int_ptr
 * ctypedef unsigned long long long_int_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long long_long_int_ptr
 * ctypedef unsigned long long unsigned_int_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_long_int_ptr;

/* "cuda/bindings/runtime.pyx":31
 * ctypedef unsigned long long int_ptr
 * ctypedef unsigned long long long_int_ptr
 * ctypedef unsigned long long long_long_int_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long unsigned_int_ptr
 * ctypedef unsigned long long unsigned_long_int_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_long_long_int_ptr;

/* "cuda/bindings/runtime.pyx":32
 * ctypedef unsigned long long long_int_ptr
 * ctypedef unsigned long long long_long_int_ptr
 * ctypedef unsigned long long unsigned_int_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long unsigned_long_int_ptr
 * ctypedef unsigned long long unsigned_long_long_int_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_unsigned_int_ptr;

/* "cuda/bindings/runtime.pyx":33
 * ctypedef unsigned long long long_long_int_ptr
 * ctypedef unsigned long long unsigned_int_ptr
 * ctypedef unsigned long long unsigned_long_int_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long unsigned_long_long_int_ptr
 * ctypedef unsigned long long uint32_t_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_unsigned_long_int_ptr;

/* "cuda/bindings/runtime.pyx":34
 * ctypedef unsigned long long unsigned_int_ptr
 * ctypedef unsigned long long unsigned_long_int_ptr
 * ctypedef unsigned long long unsigned_long_long_int_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long uint32_t_ptr
 * ctypedef unsigned long long uint64_t_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_unsigned_long_long_int_ptr;

/* "cuda/bindings/runtime.pyx":35
 * ctypedef unsigned long long unsigned_long_int_ptr
 * ctypedef unsigned long long unsigned_long_long_int_ptr
 * ctypedef unsigned long long uint32_t_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long uint64_t_ptr
 * ctypedef unsigned long long int32_t_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_uint32_t_ptr;

/* "cuda/bindings/runtime.pyx":36
 * ctypedef unsigned long long unsigned_long_long_int_ptr
 * ctypedef unsigned long long uint32_t_ptr
 * ctypedef unsigned long long uint64_t_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long int32_t_ptr
 * ctypedef unsigned long long int64_t_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_uint64_t_ptr;

/* "cuda/bindings/runtime.pyx":37
 * ctypedef unsigned long long uint32_t_ptr
 * ctypedef unsigned long long uint64_t_ptr
 * ctypedef unsigned long long int32_t_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long int64_t_ptr
 * ctypedef unsigned long long unsigned_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_int32_t_ptr;

/* "cuda/bindings/runtime.pyx":38
 * ctypedef unsigned long long uint64_t_ptr
 * ctypedef unsigned long long int32_t_ptr
 * ctypedef unsigned long long int64_t_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long unsigned_ptr
 * ctypedef unsigned long long unsigned_long_long_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_int64_t_ptr;

/* "cuda/bindings/runtime.pyx":39
 * ctypedef unsigned long long int32_t_ptr
 * ctypedef unsigned long long int64_t_ptr
 * ctypedef unsigned long long unsigned_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long unsigned_long_long_ptr
 * ctypedef unsigned long long long_long_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_unsigned_ptr;

/* "cuda/bindings/runtime.pyx":40
 * ctypedef unsigned long long int64_t_ptr
 * ctypedef unsigned long long unsigned_ptr
 * ctypedef unsigned long long unsigned_long_long_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long long_long_ptr
 * ctypedef unsigned long long size_t_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_unsigned_long_long_ptr;

/* "cuda/bindings/runtime.pyx":41
 * ctypedef unsigned long long unsigned_ptr
 * ctypedef unsigned long long unsigned_long_long_ptr
 * ctypedef unsigned long long long_long_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long size_t_ptr
 * ctypedef unsigned long long long_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_long_long_ptr;

/* "cuda/bindings/runtime.pyx":42
 * ctypedef unsigned long long unsigned_long_long_ptr
 * ctypedef unsigned long long long_long_ptr
 * ctypedef unsigned long long size_t_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long long_ptr
 * ctypedef unsigned long long float_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_size_t_ptr;

/* "cuda/bindings/runtime.pyx":43
 * ctypedef unsigned long long long_long_ptr
 * ctypedef unsigned long long size_t_ptr
 * ctypedef unsigned long long long_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long float_ptr
 * ctypedef unsigned long long double_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_long_ptr;

/* "cuda/bindings/runtime.pyx":44
 * ctypedef unsigned long long size_t_ptr
 * ctypedef unsigned long long long_ptr
 * ctypedef unsigned long long float_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long double_ptr
 * ctypedef unsigned long long void_ptr
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_float_ptr;

/* "cuda/bindings/runtime.pyx":45
 * ctypedef unsigned long long long_ptr
 * ctypedef unsigned long long float_ptr
 * ctypedef unsigned long long double_ptr             # <<<<<<<<<<<<<<
 * ctypedef unsigned long long void_ptr
 * 
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_double_ptr;

/* "cuda/bindings/runtime.pyx":46
 * ctypedef unsigned long long float_ptr
 * ctypedef unsigned long long double_ptr
 * ctypedef unsigned long long void_ptr             # <<<<<<<<<<<<<<
 * 
 * #: Default page-locked allocation flag
*/
typedef unsigned PY_LONG_LONG __pyx_t_4cuda_8bindings_7runtime_void_ptr;
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams;
struct __pyx_obj_4cuda_8bindings_6driver__HelperInputVoidPtr;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemPool_attribute;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmem_range_attribute;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUpointer_attribute;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUgraphMem_attribute;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUjit_option;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaJitOption;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUlibraryOption;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaLibraryOption;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType;
struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper;
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUcoredumpSettings;
struct __pyx_obj_4cuda_8bindings_6driver_CUcontext;
struct __pyx_obj_4cuda_8bindings_6driver_CUmodule;
struct __pyx_obj_4cuda_8bindings_6driver_CUfunction;
struct __pyx_obj_4cuda_8bindings_6driver_CUlibrary;
struct __pyx_obj_4cuda_8bindings_6driver_CUkernel;
struct __pyx_obj_4cuda_8bindings_6driver_CUarray;
struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray;
struct __pyx_obj_4cuda_8bindings_6driver_CUtexref;
struct __pyx_obj_4cuda_8bindings_6driver_CUsurfref;
struct __pyx_obj_4cuda_8bindings_6driver_CUevent;
struct __pyx_obj_4cuda_8bindings_6driver_CUstream;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphicsResource;
struct __pyx_obj_4cuda_8bindings_6driver_CUexternalMemory;
struct __pyx_obj_4cuda_8bindings_6driver_CUexternalSemaphore;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraph;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool;
struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode;
struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallbackHandle;
struct __pyx_obj_4cuda_8bindings_6driver_CUgreenCtx;
struct __pyx_obj_4cuda_8bindings_6driver_CUlinkState;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevResourceDesc;
struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallbackHandle;
struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection;
struct __pyx_obj_4cuda_8bindings_6driver_EGLImageKHR;
struct __pyx_obj_4cuda_8bindings_6driver_EGLStreamKHR;
struct __pyx_obj_4cuda_8bindings_6driver_EGLSyncKHR;
struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallback;
struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamCallback;
struct __pyx_obj_4cuda_8bindings_6driver_CUoccupancyB2DSize;
struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallback;
struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union2;
struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5;
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union;
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union3;
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union4;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union5;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union6;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union7;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union8;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union9;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union10;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union11;
struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23;
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union12;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st;
struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st;
struct __pyx_obj_4cuda_8bindings_6driver_anon_union15;
struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st;
struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevice;
struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject;
struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle;
struct __pyx_obj_4cuda_8bindings_6driver_CUuuid;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle;
struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle;
struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop;
struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap;
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue;
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute;
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig;
struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue;
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount;
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam;
struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam;
struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams;
struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC;
struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle;
struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp;
struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes;
struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D;
struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs;
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource;
struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource;
struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame;
struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t;
struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t;
struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr_v2;
struct __pyx_obj_4cuda_8bindings_6driver_CUdevice_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1;
struct __pyx_obj_4cuda_8bindings_6driver_CUlogIterator;
struct __pyx_obj_4cuda_8bindings_6driver_GLenum;
struct __pyx_obj_4cuda_8bindings_6driver_GLuint;
struct __pyx_obj_4cuda_8bindings_6driver_EGLint;
struct __pyx_obj_4cuda_8bindings_6driver_VdpDevice;
struct __pyx_obj_4cuda_8bindings_6driver_VdpGetProcAddress;
struct __pyx_obj_4cuda_8bindings_6driver_VdpVideoSurface;
struct __pyx_obj_4cuda_8bindings_6driver_VdpOutputSurface;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType;
struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper;
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle;
struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR;
struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR;
struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t;
struct __pyx_obj_4cuda_8bindings_7runtime_dim3;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp;
struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st;
struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st;
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st;
struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaFunction_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t;
struct __pyx_obj_4cuda_8bindings_7runtime_GLenum;
struct __pyx_obj_4cuda_8bindings_7runtime_GLuint;
struct __pyx_obj_4cuda_8bindings_7runtime_EGLint;
struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice;
struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress;
struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface;
struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface;
struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr;
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr;
struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc_st;
union __pyx_t_4cuda_8bindings_9cyruntime_anon_union10;
struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st;

/* "cuda/bindings/cyruntime.pxd":39
 * ctypedef uint32_t VdpOutputSurface
 * 
 * cdef enum cudaEglFrameType_enum:             # <<<<<<<<<<<<<<
 *     cudaEglFrameTypeArray = 0
 *     cudaEglFrameTypePitch = 1
*/
enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglFrameTypeArray = 0,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglFrameTypePitch = 1
};

/* "cuda/bindings/cyruntime.pxd":45
 * ctypedef cudaEglFrameType_enum cudaEglFrameType
 * 
 * cdef enum cudaEglResourceLocationFlags_enum:             # <<<<<<<<<<<<<<
 *     cudaEglResourceLocationSysmem = 0
 *     cudaEglResourceLocationVidmem = 1
*/
enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglResourceLocationSysmem = 0,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglResourceLocationVidmem = 1
};

/* "cuda/bindings/cyruntime.pxd":51
 * ctypedef cudaEglResourceLocationFlags_enum cudaEglResourceLocationFlags
 * 
 * cdef enum cudaEglColorFormat_enum:             # <<<<<<<<<<<<<<
 *     cudaEglColorFormatYUV420Planar = 0
 *     cudaEglColorFormatYUV420SemiPlanar = 1
*/
enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420Planar = 0,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420SemiPlanar = 1,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV422Planar = 2,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV422SemiPlanar = 3,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatARGB = 6,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatRGBA = 7,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatL = 8,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatR = 9,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV444Planar = 10,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV444SemiPlanar = 11,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUYV422 = 12,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY422 = 13,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatABGR = 14,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBGRA = 15,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatA = 16,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatRG = 17,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatAYUV = 18,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU444SemiPlanar = 19,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU422SemiPlanar = 20,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420SemiPlanar = 21,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_444SemiPlanar = 22,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar = 23,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_444SemiPlanar = 24,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_420SemiPlanar = 25,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatVYUY_ER = 26,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY_ER = 27,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUYV_ER = 28,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVYU_ER = 29,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUVA_ER = 31,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatAYUV_ER = 32,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV444Planar_ER = 33,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV422Planar_ER = 34,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420Planar_ER = 35,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV444SemiPlanar_ER = 36,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV422SemiPlanar_ER = 37,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420SemiPlanar_ER = 38,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU444Planar_ER = 39,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU422Planar_ER = 40,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420Planar_ER = 41,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU444SemiPlanar_ER = 42,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU422SemiPlanar_ER = 43,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420SemiPlanar_ER = 44,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerRGGB = 45,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerBGGR = 46,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerGRBG = 47,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerGBRG = 48,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10RGGB = 49,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10BGGR = 50,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10GRBG = 51,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10GBRG = 52,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12RGGB = 53,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12BGGR = 54,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12GRBG = 55,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12GBRG = 56,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer14RGGB = 57,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer14BGGR = 58,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer14GRBG = 59,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer14GBRG = 60,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer20RGGB = 61,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer20BGGR = 62,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer20GRBG = 63,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer20GBRG = 64,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU444Planar = 65,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU422Planar = 66,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420Planar = 67,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerIspRGGB = 68,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerIspBGGR = 69,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerIspGRBG = 70,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerIspGBRG = 71,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerBCCR = 72,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerRCCB = 73,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerCRBC = 74,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerCBRC = 75,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10CCCC = 76,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12BCCR = 77,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12RCCB = 78,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12CRBC = 79,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12CBRC = 80,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12CCCC = 81,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY = 82,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420SemiPlanar_2020 = 83,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420SemiPlanar_2020 = 84,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420Planar_2020 = 85,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420Planar_2020 = 86,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420SemiPlanar_709 = 87,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420SemiPlanar_709 = 88,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420Planar_709 = 89,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420Planar_709 = 90,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar_709 = 91,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = 92,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = 93,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_422SemiPlanar = 94,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_422SemiPlanar_709 = 95,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY_ER = 96,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY_709_ER = 97,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10_ER = 98,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10_709_ER = 99,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12_ER = 0x64,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12_709_ER = 0x65,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUVA = 0x66,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVYU = 0x68,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatVYUY = 0x69,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar_ER = 0x6A,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = 0x6B,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_444SemiPlanar_ER = 0x6C,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = 0x6D,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_420SemiPlanar_ER = 0x6E,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = 0x6F,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_444SemiPlanar_ER = 0x70,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = 0x71,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY709 = 0x72,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY709_ER = 0x73,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY2020 = 0x74
};

/* "cuda/bindings/cyruntime.pxd":197
 * ctypedef CUeglStreamConnection_st* cudaEglStreamConnection
 * 
 * cdef enum cudaGLDeviceList:             # <<<<<<<<<<<<<<
 *     cudaGLDeviceListAll = 1
 *     cudaGLDeviceListCurrentFrame = 2
*/
enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGLDeviceListAll = 1,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGLDeviceListCurrentFrame = 2,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGLDeviceListNextFrame = 3
};

/* "cuda/bindings/cyruntime.pxd":202
 *     cudaGLDeviceListNextFrame = 3
 * 
 * cdef enum cudaGLMapFlags:             # <<<<<<<<<<<<<<
 *     cudaGLMapFlagsNone = 0
 *     cudaGLMapFlagsReadOnly = 1
*/
enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGLMapFlagsNone = 0,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGLMapFlagsReadOnly = 1,
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGLMapFlagsWriteDiscard = 2
};

/* "cuda/bindings/cyruntime.pxd":877
 * cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil
 * 
 * cdef enum: cudaHostAllocDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaHostAllocPortable = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostAllocDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":879
 * cdef enum: cudaHostAllocDefault = 0
 * 
 * cdef enum: cudaHostAllocPortable = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaHostAllocMapped = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostAllocPortable = 1
};

/* "cuda/bindings/cyruntime.pxd":881
 * cdef enum: cudaHostAllocPortable = 1
 * 
 * cdef enum: cudaHostAllocMapped = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaHostAllocWriteCombined = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostAllocMapped = 2
};

/* "cuda/bindings/cyruntime.pxd":883
 * cdef enum: cudaHostAllocMapped = 2
 * 
 * cdef enum: cudaHostAllocWriteCombined = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaHostRegisterDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostAllocWriteCombined = 4
};

/* "cuda/bindings/cyruntime.pxd":885
 * cdef enum: cudaHostAllocWriteCombined = 4
 * 
 * cdef enum: cudaHostRegisterDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaHostRegisterPortable = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":887
 * cdef enum: cudaHostRegisterDefault = 0
 * 
 * cdef enum: cudaHostRegisterPortable = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaHostRegisterMapped = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterPortable = 1
};

/* "cuda/bindings/cyruntime.pxd":889
 * cdef enum: cudaHostRegisterPortable = 1
 * 
 * cdef enum: cudaHostRegisterMapped = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaHostRegisterIoMemory = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterMapped = 2
};

/* "cuda/bindings/cyruntime.pxd":891
 * cdef enum: cudaHostRegisterMapped = 2
 * 
 * cdef enum: cudaHostRegisterIoMemory = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaHostRegisterReadOnly = 8
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterIoMemory = 4
};

/* "cuda/bindings/cyruntime.pxd":893
 * cdef enum: cudaHostRegisterIoMemory = 4
 * 
 * cdef enum: cudaHostRegisterReadOnly = 8             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaPeerAccessDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterReadOnly = 8
};

/* "cuda/bindings/cyruntime.pxd":895
 * cdef enum: cudaHostRegisterReadOnly = 8
 * 
 * cdef enum: cudaPeerAccessDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaPeerAccessDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":897
 * cdef enum: cudaPeerAccessDefault = 0
 * 
 * cdef enum: cudaStreamDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamNonBlocking = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":899
 * cdef enum: cudaStreamDefault = 0
 * 
 * cdef enum: cudaStreamNonBlocking = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamLegacy = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamNonBlocking = 1
};

/* "cuda/bindings/cyruntime.pxd":901
 * cdef enum: cudaStreamNonBlocking = 1
 * 
 * cdef enum: cudaStreamLegacy = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamPerThread = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamLegacy = 1
};

/* "cuda/bindings/cyruntime.pxd":903
 * cdef enum: cudaStreamLegacy = 1
 * 
 * cdef enum: cudaStreamPerThread = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaEventDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamPerThread = 2
};

/* "cuda/bindings/cyruntime.pxd":905
 * cdef enum: cudaStreamPerThread = 2
 * 
 * cdef enum: cudaEventDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaEventBlockingSync = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEventDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":907
 * cdef enum: cudaEventDefault = 0
 * 
 * cdef enum: cudaEventBlockingSync = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaEventDisableTiming = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEventBlockingSync = 1
};

/* "cuda/bindings/cyruntime.pxd":909
 * cdef enum: cudaEventBlockingSync = 1
 * 
 * cdef enum: cudaEventDisableTiming = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaEventInterprocess = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEventDisableTiming = 2
};

/* "cuda/bindings/cyruntime.pxd":911
 * cdef enum: cudaEventDisableTiming = 2
 * 
 * cdef enum: cudaEventInterprocess = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaEventRecordDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEventInterprocess = 4
};

/* "cuda/bindings/cyruntime.pxd":913
 * cdef enum: cudaEventInterprocess = 4
 * 
 * cdef enum: cudaEventRecordDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaEventRecordExternal = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEventRecordDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":915
 * cdef enum: cudaEventRecordDefault = 0
 * 
 * cdef enum: cudaEventRecordExternal = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaEventWaitDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEventRecordExternal = 1
};

/* "cuda/bindings/cyruntime.pxd":917
 * cdef enum: cudaEventRecordExternal = 1
 * 
 * cdef enum: cudaEventWaitDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaEventWaitExternal = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEventWaitDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":919
 * cdef enum: cudaEventWaitDefault = 0
 * 
 * cdef enum: cudaEventWaitExternal = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceScheduleAuto = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaEventWaitExternal = 1
};

/* "cuda/bindings/cyruntime.pxd":921
 * cdef enum: cudaEventWaitExternal = 1
 * 
 * cdef enum: cudaDeviceScheduleAuto = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceScheduleSpin = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleAuto = 0
};

/* "cuda/bindings/cyruntime.pxd":923
 * cdef enum: cudaDeviceScheduleAuto = 0
 * 
 * cdef enum: cudaDeviceScheduleSpin = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceScheduleYield = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleSpin = 1
};

/* "cuda/bindings/cyruntime.pxd":925
 * cdef enum: cudaDeviceScheduleSpin = 1
 * 
 * cdef enum: cudaDeviceScheduleYield = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceScheduleBlockingSync = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleYield = 2
};

/* "cuda/bindings/cyruntime.pxd":927
 * cdef enum: cudaDeviceScheduleYield = 2
 * 
 * cdef enum: cudaDeviceScheduleBlockingSync = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceBlockingSync = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleBlockingSync = 4
};

/* "cuda/bindings/cyruntime.pxd":929
 * cdef enum: cudaDeviceScheduleBlockingSync = 4
 * 
 * cdef enum: cudaDeviceBlockingSync = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceScheduleMask = 7
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceBlockingSync = 4
};

/* "cuda/bindings/cyruntime.pxd":931
 * cdef enum: cudaDeviceBlockingSync = 4
 * 
 * cdef enum: cudaDeviceScheduleMask = 7             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceMapHost = 8
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleMask = 7
};

/* "cuda/bindings/cyruntime.pxd":933
 * cdef enum: cudaDeviceScheduleMask = 7
 * 
 * cdef enum: cudaDeviceMapHost = 8             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceLmemResizeToMax = 16
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceMapHost = 8
};

/* "cuda/bindings/cyruntime.pxd":935
 * cdef enum: cudaDeviceMapHost = 8
 * 
 * cdef enum: cudaDeviceLmemResizeToMax = 16             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceSyncMemops = 128
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceLmemResizeToMax = 16
};

/* "cuda/bindings/cyruntime.pxd":937
 * cdef enum: cudaDeviceLmemResizeToMax = 16
 * 
 * cdef enum: cudaDeviceSyncMemops = 128             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaDeviceMask = 255
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceSyncMemops = 0x80
};

/* "cuda/bindings/cyruntime.pxd":939
 * cdef enum: cudaDeviceSyncMemops = 128
 * 
 * cdef enum: cudaDeviceMask = 255             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArrayDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceMask = 0xFF
};

/* "cuda/bindings/cyruntime.pxd":941
 * cdef enum: cudaDeviceMask = 255
 * 
 * cdef enum: cudaArrayDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArrayLayered = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArrayDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":943
 * cdef enum: cudaArrayDefault = 0
 * 
 * cdef enum: cudaArrayLayered = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArraySurfaceLoadStore = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArrayLayered = 1
};

/* "cuda/bindings/cyruntime.pxd":945
 * cdef enum: cudaArrayLayered = 1
 * 
 * cdef enum: cudaArraySurfaceLoadStore = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArrayCubemap = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArraySurfaceLoadStore = 2
};

/* "cuda/bindings/cyruntime.pxd":947
 * cdef enum: cudaArraySurfaceLoadStore = 2
 * 
 * cdef enum: cudaArrayCubemap = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArrayTextureGather = 8
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArrayCubemap = 4
};

/* "cuda/bindings/cyruntime.pxd":949
 * cdef enum: cudaArrayCubemap = 4
 * 
 * cdef enum: cudaArrayTextureGather = 8             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArrayColorAttachment = 32
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArrayTextureGather = 8
};

/* "cuda/bindings/cyruntime.pxd":951
 * cdef enum: cudaArrayTextureGather = 8
 * 
 * cdef enum: cudaArrayColorAttachment = 32             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArraySparse = 64
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArrayColorAttachment = 32
};

/* "cuda/bindings/cyruntime.pxd":953
 * cdef enum: cudaArrayColorAttachment = 32
 * 
 * cdef enum: cudaArraySparse = 64             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArrayDeferredMapping = 128
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArraySparse = 64
};

/* "cuda/bindings/cyruntime.pxd":955
 * cdef enum: cudaArraySparse = 64
 * 
 * cdef enum: cudaArrayDeferredMapping = 128             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaIpcMemLazyEnablePeerAccess = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArrayDeferredMapping = 0x80
};

/* "cuda/bindings/cyruntime.pxd":957
 * cdef enum: cudaArrayDeferredMapping = 128
 * 
 * cdef enum: cudaIpcMemLazyEnablePeerAccess = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaMemAttachGlobal = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaIpcMemLazyEnablePeerAccess = 1
};

/* "cuda/bindings/cyruntime.pxd":959
 * cdef enum: cudaIpcMemLazyEnablePeerAccess = 1
 * 
 * cdef enum: cudaMemAttachGlobal = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaMemAttachHost = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaMemAttachGlobal = 1
};

/* "cuda/bindings/cyruntime.pxd":961
 * cdef enum: cudaMemAttachGlobal = 1
 * 
 * cdef enum: cudaMemAttachHost = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaMemAttachSingle = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaMemAttachHost = 2
};

/* "cuda/bindings/cyruntime.pxd":963
 * cdef enum: cudaMemAttachHost = 2
 * 
 * cdef enum: cudaMemAttachSingle = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaOccupancyDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaMemAttachSingle = 4
};

/* "cuda/bindings/cyruntime.pxd":965
 * cdef enum: cudaMemAttachSingle = 4
 * 
 * cdef enum: cudaOccupancyDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaOccupancyDisableCachingOverride = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaOccupancyDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":967
 * cdef enum: cudaOccupancyDefault = 0
 * 
 * cdef enum: cudaOccupancyDisableCachingOverride = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaCpuDeviceId = -1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaOccupancyDisableCachingOverride = 1
};

/* "cuda/bindings/cyruntime.pxd":969
 * cdef enum: cudaOccupancyDisableCachingOverride = 1
 * 
 * cdef enum: cudaCpuDeviceId = -1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaInvalidDeviceId = -2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaCpuDeviceId = -1L
};

/* "cuda/bindings/cyruntime.pxd":971
 * cdef enum: cudaCpuDeviceId = -1
 * 
 * cdef enum: cudaInvalidDeviceId = -2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaInitDeviceFlagsAreValid = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaInvalidDeviceId = -2L
};

/* "cuda/bindings/cyruntime.pxd":973
 * cdef enum: cudaInvalidDeviceId = -2
 * 
 * cdef enum: cudaInitDeviceFlagsAreValid = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaArraySparsePropertiesSingleMipTail = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaInitDeviceFlagsAreValid = 1
};

/* "cuda/bindings/cyruntime.pxd":975
 * cdef enum: cudaInitDeviceFlagsAreValid = 1
 * 
 * cdef enum: cudaArraySparsePropertiesSingleMipTail = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaMemPoolCreateUsageHwDecompress = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaArraySparsePropertiesSingleMipTail = 1
};

/* "cuda/bindings/cyruntime.pxd":977
 * cdef enum: cudaArraySparsePropertiesSingleMipTail = 1
 * 
 * cdef enum: cudaMemPoolCreateUsageHwDecompress = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_IPC_HANDLE_SIZE = 64
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaMemPoolCreateUsageHwDecompress = 2
};

/* "cuda/bindings/cyruntime.pxd":979
 * cdef enum: cudaMemPoolCreateUsageHwDecompress = 2
 * 
 * cdef enum: CUDA_IPC_HANDLE_SIZE = 64             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaExternalMemoryDedicated = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_CUDA_IPC_HANDLE_SIZE = 64
};

/* "cuda/bindings/cyruntime.pxd":981
 * cdef enum: CUDA_IPC_HANDLE_SIZE = 64
 * 
 * cdef enum: cudaExternalMemoryDedicated = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaExternalMemoryDedicated = 1
};

/* "cuda/bindings/cyruntime.pxd":983
 * cdef enum: cudaExternalMemoryDedicated = 1
 * 
 * cdef enum: cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1
};

/* "cuda/bindings/cyruntime.pxd":985
 * cdef enum: cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1
 * 
 * cdef enum: cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaNvSciSyncAttrSignal = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2
};

/* "cuda/bindings/cyruntime.pxd":987
 * cdef enum: cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2
 * 
 * cdef enum: cudaNvSciSyncAttrSignal = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaNvSciSyncAttrWait = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaNvSciSyncAttrSignal = 1
};

/* "cuda/bindings/cyruntime.pxd":989
 * cdef enum: cudaNvSciSyncAttrSignal = 1
 * 
 * cdef enum: cudaNvSciSyncAttrWait = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaGraphKernelNodePortDefault = 0
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaNvSciSyncAttrWait = 2
};

/* "cuda/bindings/cyruntime.pxd":991
 * cdef enum: cudaNvSciSyncAttrWait = 2
 * 
 * cdef enum: cudaGraphKernelNodePortDefault = 0             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaGraphKernelNodePortProgrammatic = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGraphKernelNodePortDefault = 0
};

/* "cuda/bindings/cyruntime.pxd":993
 * cdef enum: cudaGraphKernelNodePortDefault = 0
 * 
 * cdef enum: cudaGraphKernelNodePortProgrammatic = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaGraphKernelNodePortLaunchCompletion = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGraphKernelNodePortProgrammatic = 1
};

/* "cuda/bindings/cyruntime.pxd":995
 * cdef enum: cudaGraphKernelNodePortProgrammatic = 1
 * 
 * cdef enum: cudaGraphKernelNodePortLaunchCompletion = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamAttributeAccessPolicyWindow = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaGraphKernelNodePortLaunchCompletion = 2
};

/* "cuda/bindings/cyruntime.pxd":997
 * cdef enum: cudaGraphKernelNodePortLaunchCompletion = 2
 * 
 * cdef enum: cudaStreamAttributeAccessPolicyWindow = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamAttributeSynchronizationPolicy = 3
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributeAccessPolicyWindow = 1
};

/* "cuda/bindings/cyruntime.pxd":999
 * cdef enum: cudaStreamAttributeAccessPolicyWindow = 1
 * 
 * cdef enum: cudaStreamAttributeSynchronizationPolicy = 3             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamAttributeMemSyncDomainMap = 9
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributeSynchronizationPolicy = 3
};

/* "cuda/bindings/cyruntime.pxd":1001
 * cdef enum: cudaStreamAttributeSynchronizationPolicy = 3
 * 
 * cdef enum: cudaStreamAttributeMemSyncDomainMap = 9             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamAttributeMemSyncDomain = 10
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributeMemSyncDomainMap = 9
};

/* "cuda/bindings/cyruntime.pxd":1003
 * cdef enum: cudaStreamAttributeMemSyncDomainMap = 9
 * 
 * cdef enum: cudaStreamAttributeMemSyncDomain = 10             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaStreamAttributePriority = 8
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributeMemSyncDomain = 10
};

/* "cuda/bindings/cyruntime.pxd":1005
 * cdef enum: cudaStreamAttributeMemSyncDomain = 10
 * 
 * cdef enum: cudaStreamAttributePriority = 8             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributeAccessPolicyWindow = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributePriority = 8
};

/* "cuda/bindings/cyruntime.pxd":1007
 * cdef enum: cudaStreamAttributePriority = 8
 * 
 * cdef enum: cudaKernelNodeAttributeAccessPolicyWindow = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributeCooperative = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeAccessPolicyWindow = 1
};

/* "cuda/bindings/cyruntime.pxd":1009
 * cdef enum: cudaKernelNodeAttributeAccessPolicyWindow = 1
 * 
 * cdef enum: cudaKernelNodeAttributeCooperative = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributePriority = 8
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeCooperative = 2
};

/* "cuda/bindings/cyruntime.pxd":1011
 * cdef enum: cudaKernelNodeAttributeCooperative = 2
 * 
 * cdef enum: cudaKernelNodeAttributePriority = 8             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributeClusterDimension = 4
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributePriority = 8
};

/* "cuda/bindings/cyruntime.pxd":1013
 * cdef enum: cudaKernelNodeAttributePriority = 8
 * 
 * cdef enum: cudaKernelNodeAttributeClusterDimension = 4             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeClusterDimension = 4
};

/* "cuda/bindings/cyruntime.pxd":1015
 * cdef enum: cudaKernelNodeAttributeClusterDimension = 4
 * 
 * cdef enum: cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributeMemSyncDomainMap = 9
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5
};

/* "cuda/bindings/cyruntime.pxd":1017
 * cdef enum: cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5
 * 
 * cdef enum: cudaKernelNodeAttributeMemSyncDomainMap = 9             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributeMemSyncDomain = 10
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeMemSyncDomainMap = 9
};

/* "cuda/bindings/cyruntime.pxd":1019
 * cdef enum: cudaKernelNodeAttributeMemSyncDomainMap = 9
 * 
 * cdef enum: cudaKernelNodeAttributeMemSyncDomain = 10             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeMemSyncDomain = 10
};

/* "cuda/bindings/cyruntime.pxd":1021
 * cdef enum: cudaKernelNodeAttributeMemSyncDomain = 10
 * 
 * cdef enum: cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14
};

/* "cuda/bindings/cyruntime.pxd":1023
 * cdef enum: cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14
 * 
 * cdef enum: cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaKernelNodeAttributeNvlinkUtilCentricScheduling = 16
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13
};

/* "cuda/bindings/cyruntime.pxd":1025
 * cdef enum: cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13
 * 
 * cdef enum: cudaKernelNodeAttributeNvlinkUtilCentricScheduling = 16             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaSurfaceType1D = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeNvlinkUtilCentricScheduling = 16
};

/* "cuda/bindings/cyruntime.pxd":1027
 * cdef enum: cudaKernelNodeAttributeNvlinkUtilCentricScheduling = 16
 * 
 * cdef enum: cudaSurfaceType1D = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaSurfaceType2D = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType1D = 1
};

/* "cuda/bindings/cyruntime.pxd":1029
 * cdef enum: cudaSurfaceType1D = 1
 * 
 * cdef enum: cudaSurfaceType2D = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaSurfaceType3D = 3
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType2D = 2
};

/* "cuda/bindings/cyruntime.pxd":1031
 * cdef enum: cudaSurfaceType2D = 2
 * 
 * cdef enum: cudaSurfaceType3D = 3             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaSurfaceTypeCubemap = 12
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType3D = 3
};

/* "cuda/bindings/cyruntime.pxd":1033
 * cdef enum: cudaSurfaceType3D = 3
 * 
 * cdef enum: cudaSurfaceTypeCubemap = 12             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaSurfaceType1DLayered = 241
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceTypeCubemap = 12
};

/* "cuda/bindings/cyruntime.pxd":1035
 * cdef enum: cudaSurfaceTypeCubemap = 12
 * 
 * cdef enum: cudaSurfaceType1DLayered = 241             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaSurfaceType2DLayered = 242
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType1DLayered = 0xF1
};

/* "cuda/bindings/cyruntime.pxd":1037
 * cdef enum: cudaSurfaceType1DLayered = 241
 * 
 * cdef enum: cudaSurfaceType2DLayered = 242             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaSurfaceTypeCubemapLayered = 252
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType2DLayered = 0xF2
};

/* "cuda/bindings/cyruntime.pxd":1039
 * cdef enum: cudaSurfaceType2DLayered = 242
 * 
 * cdef enum: cudaSurfaceTypeCubemapLayered = 252             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaTextureType1D = 1
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceTypeCubemapLayered = 0xFC
};

/* "cuda/bindings/cyruntime.pxd":1041
 * cdef enum: cudaSurfaceTypeCubemapLayered = 252
 * 
 * cdef enum: cudaTextureType1D = 1             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaTextureType2D = 2
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType1D = 1
};

/* "cuda/bindings/cyruntime.pxd":1043
 * cdef enum: cudaTextureType1D = 1
 * 
 * cdef enum: cudaTextureType2D = 2             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaTextureType3D = 3
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType2D = 2
};

/* "cuda/bindings/cyruntime.pxd":1045
 * cdef enum: cudaTextureType2D = 2
 * 
 * cdef enum: cudaTextureType3D = 3             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaTextureTypeCubemap = 12
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType3D = 3
};

/* "cuda/bindings/cyruntime.pxd":1047
 * cdef enum: cudaTextureType3D = 3
 * 
 * cdef enum: cudaTextureTypeCubemap = 12             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaTextureType1DLayered = 241
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaTextureTypeCubemap = 12
};

/* "cuda/bindings/cyruntime.pxd":1049
 * cdef enum: cudaTextureTypeCubemap = 12
 * 
 * cdef enum: cudaTextureType1DLayered = 241             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaTextureType2DLayered = 242
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType1DLayered = 0xF1
};

/* "cuda/bindings/cyruntime.pxd":1051
 * cdef enum: cudaTextureType1DLayered = 241
 * 
 * cdef enum: cudaTextureType2DLayered = 242             # <<<<<<<<<<<<<<
 * 
 * cdef enum: cudaTextureTypeCubemapLayered = 252
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType2DLayered = 0xF2
};

/* "cuda/bindings/cyruntime.pxd":1053
 * cdef enum: cudaTextureType2DLayered = 242
 * 
 * cdef enum: cudaTextureTypeCubemapLayered = 252             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDART_VERSION = 13010
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_cudaTextureTypeCubemapLayered = 0xFC
};

/* "cuda/bindings/cyruntime.pxd":1055
 * cdef enum: cudaTextureTypeCubemapLayered = 252
 * 
 * cdef enum: CUDART_VERSION = 13010             # <<<<<<<<<<<<<<
 * 
 * cdef enum: __CUDART_API_VERSION = 13010
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_CUDART_VERSION = 0x32D2
};

/* "cuda/bindings/cyruntime.pxd":1057
 * cdef enum: CUDART_VERSION = 13010
 * 
 * cdef enum: __CUDART_API_VERSION = 13010             # <<<<<<<<<<<<<<
 * 
 * cdef enum: CUDA_EGL_MAX_PLANES = 3
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime___CUDART_API_VERSION = 0x32D2
};

/* "cuda/bindings/cyruntime.pxd":1059
 * cdef enum: __CUDART_API_VERSION = 13010
 * 
 * cdef enum: CUDA_EGL_MAX_PLANES = 3             # <<<<<<<<<<<<<<
*/
enum  {
  __pyx_e_4cuda_8bindings_9cyruntime_CUDA_EGL_MAX_PLANES = 3
};

/* "cuda/bindings/cyruntime_types.pxi":1694
 *         cudaRoundMinInf = 3
 * 
 * ctypedef cudaLaunchAttributeID cudaStreamAttrID             # <<<<<<<<<<<<<<
 * 
 * ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID
*/
typedef enum cudaLaunchAttributeID __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID;

/* "cuda/bindings/cyruntime_types.pxi":1696
 * ctypedef cudaLaunchAttributeID cudaStreamAttrID
 * 
 * ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID             # <<<<<<<<<<<<<<
 * 
 * ctypedef cudaLaunchAttributeValue cudaStreamAttrValue
*/
typedef enum cudaLaunchAttributeID __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID;

/* "cuda/bindings/cyruntime_types.pxi":1698
 * ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID
 * 
 * ctypedef cudaLaunchAttributeValue cudaStreamAttrValue             # <<<<<<<<<<<<<<
 * 
 * ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue
*/
typedef union cudaLaunchAttributeValue __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrValue;

/* "cuda/bindings/cyruntime_types.pxi":1700
 * ctypedef cudaLaunchAttributeValue cudaStreamAttrValue
 * 
 * ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue             # <<<<<<<<<<<<<<
*/
typedef union cudaLaunchAttributeValue __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrValue;

/* "cuda/bindings/cyruntime.pxd":17
 *     cdef struct void:
 *         pass
 * ctypedef void* EGLImageKHR             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "":
*/
typedef void *__pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR;

/* "cuda/bindings/cyruntime.pxd":22
 *     cdef struct void:
 *         pass
 * ctypedef void* EGLStreamKHR             # <<<<<<<<<<<<<<
 * 
 * ctypedef unsigned int EGLint
*/
typedef void *__pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR;

/* "cuda/bindings/cyruntime.pxd":29
 *     cdef struct void:
 *         pass
 * ctypedef void* EGLSyncKHR             # <<<<<<<<<<<<<<
 * 
 * ctypedef uint32_t VdpDevice
*/
typedef void *__pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR;

/* "cuda/bindings/cyruntime.pxd":43
 *     cudaEglFrameTypePitch = 1
 * 
 * ctypedef cudaEglFrameType_enum cudaEglFrameType             # <<<<<<<<<<<<<<
 * 
 * cdef enum cudaEglResourceLocationFlags_enum:
*/
typedef enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType;

/* "cuda/bindings/cyruntime.pxd":49
 *     cudaEglResourceLocationVidmem = 1
 * 
 * ctypedef cudaEglResourceLocationFlags_enum cudaEglResourceLocationFlags             # <<<<<<<<<<<<<<
 * 
 * cdef enum cudaEglColorFormat_enum:
*/
typedef enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags;

/* "cuda/bindings/cyruntime.pxd":166
 *     cudaEglColorFormatUYVY2020 = 116
 * 
 * ctypedef cudaEglColorFormat_enum cudaEglColorFormat             # <<<<<<<<<<<<<<
 * 
 * cdef struct cudaEglPlaneDesc_st:
*/
typedef enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat;

/* "cuda/bindings/cyruntime.pxd":168
 * ctypedef cudaEglColorFormat_enum cudaEglColorFormat
 * 
 * cdef struct cudaEglPlaneDesc_st:             # <<<<<<<<<<<<<<
 *     unsigned int width
 *     unsigned int height
*/
struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc_st {
  unsigned int width;
  unsigned int height;
  unsigned int depth;
  unsigned int pitch;
  unsigned int numChannels;
  struct cudaChannelFormatDesc channelDesc;
  unsigned int reserved[4];
};

/* "cuda/bindings/cyruntime.pxd":177
 *     unsigned int reserved[4]
 * 
 * ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc             # <<<<<<<<<<<<<<
 * 
 * cdef union anon_union10:
*/
typedef struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc_st __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc;

/* "cuda/bindings/cyruntime.pxd":179
 * ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc
 * 
 * cdef union anon_union10:             # <<<<<<<<<<<<<<
 *     cudaArray_t pArray[3]
 *     cudaPitchedPtr pPitch[3]
*/
union __pyx_t_4cuda_8bindings_9cyruntime_anon_union10 {
  cudaArray_t pArray[3];
  struct cudaPitchedPtr pPitch[3];
};

/* "cuda/bindings/cyruntime.pxd":183
 *     cudaPitchedPtr pPitch[3]
 * 
 * cdef struct cudaEglFrame_st:             # <<<<<<<<<<<<<<
 *     anon_union10 frame
 *     cudaEglPlaneDesc planeDesc[3]
*/
struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st {
  union __pyx_t_4cuda_8bindings_9cyruntime_anon_union10 frame;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc planeDesc[3];
  unsigned int planeCount;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType frameType;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat eglColorFormat;
};

/* "cuda/bindings/cyruntime.pxd":190
 *     cudaEglColorFormat eglColorFormat
 * 
 * ctypedef cudaEglFrame_st cudaEglFrame             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "":
*/
typedef struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame;

/* "cuda/bindings/cyruntime.pxd":195
 *     cdef struct CUeglStreamConnection_st:
 *         pass
 * ctypedef CUeglStreamConnection_st* cudaEglStreamConnection             # <<<<<<<<<<<<<<
 * 
 * cdef enum cudaGLDeviceList:
*/
typedef struct CUeglStreamConnection_st *__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection;
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;
struct __pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData_st;
typedef struct __pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData_st __pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData_st;
struct __pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData_st;
typedef struct __pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData_st __pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData_st;
struct __pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData_st;
typedef struct __pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData_st __pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData_st;

/* "cuda/bindings/runtime.pyx":15697
 *     return (_dict_cudaError_t[err],)
 * 
 * ctypedef struct cudaAsyncCallbackData_st:             # <<<<<<<<<<<<<<
 *     cyruntime.cudaAsyncCallback callback
 *     void *userData
*/
struct __pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData_st {
  cudaAsyncCallback callback;
  void *userData;
};

/* "cuda/bindings/runtime.pyx":15701
 *     void *userData
 * 
 * ctypedef cudaAsyncCallbackData_st cudaAsyncCallbackData             # <<<<<<<<<<<<<<
 * 
 * @cython.show_performance_hints(False)
*/
typedef __pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData_st __pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData;

/* "cuda/bindings/runtime.pyx":17300
 *     return (_dict_cudaError_t[err],)
 * 
 * ctypedef struct cudaStreamCallbackData_st:             # <<<<<<<<<<<<<<
 *     cyruntime.cudaStreamCallback_t callback
 *     void *userData
*/
struct __pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData_st {
  cudaStreamCallback_t callback;
  void *userData;
};

/* "cuda/bindings/runtime.pyx":17304
 *     void *userData
 * 
 * ctypedef cudaStreamCallbackData_st cudaStreamCallbackData             # <<<<<<<<<<<<<<
 * 
 * @cython.show_performance_hints(False)
*/
typedef __pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData_st __pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData;

/* "cuda/bindings/runtime.pyx":19459
 *     return (_dict_cudaError_t[err],)
 * 
 * ctypedef struct cudaStreamHostCallbackData_st:             # <<<<<<<<<<<<<<
 *     cyruntime.cudaHostFn_t callback
 *     void *userData
*/
struct __pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData_st {
  cudaHostFn_t callback;
  void *userData;
};

/* "cuda/bindings/runtime.pyx":19463
 *     void *userData
 * 
 * ctypedef cudaStreamHostCallbackData_st cudaStreamHostCallbackData             # <<<<<<<<<<<<<<
 * 
 * @cython.show_performance_hints(False)
*/
typedef __pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData_st __pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData;

/* "cuda/bindings/_lib/utils.pxd":9
 * from libcpp.vector cimport vector
 * 
 * cdef class _HelperKernelParams:             # <<<<<<<<<<<<<<
 *     cdef Py_buffer _pybuffer
 *     cdef bint _pyobj_acquired
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams {
  PyObject_HEAD
  Py_buffer _pybuffer;
  int _pyobj_acquired;
  void **_ckernelParams;
  char *_ckernelParamsData;
  int _length;
  int _malloc_list_created;
};


/* "cuda/bindings/_lib/utils.pxd":17
 *     cdef bint _malloc_list_created
 * 
 * cdef class _HelperInputVoidPtr:             # <<<<<<<<<<<<<<
 *     cdef Py_buffer _pybuffer
 *     cdef void* _cptr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperInputVoidPtr {
  PyObject_HEAD
  Py_buffer _pybuffer;
  void *_cptr;
  int _pyobj_acquired;
};


/* "cuda/bindings/_lib/utils.pxd":22
 *     cdef bint _pyobj_acquired
 * 
 * cdef class _HelperCUmemPool_attribute:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUmemPool_attribute_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemPool_attribute {
  PyObject_HEAD
  void *_cptr;
  enum CUmemPool_attribute_enum _attr;
  int _is_getter;
  int _int_val;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_cuuint64_t_val;
};


/* "cuda/bindings/_lib/utils.pxd":31
 *     cdef driver.cuuint64_t _cuuint64_t_val
 * 
 * cdef class _HelperCUmem_range_attribute:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUmem_range_attribute_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmem_range_attribute {
  PyObject_HEAD
  void *_cptr;
  enum CUmem_range_attribute_enum _attr;
  size_t _data_size;
  int _int_val;
  int *_int_val_list;
};


/* "cuda/bindings/_lib/utils.pxd":40
 *     cdef int* _int_val_list # 32 bit integer array
 * 
 * cdef class _HelperCUpointer_attribute:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUpointer_attribute_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUpointer_attribute {
  PyObject_HEAD
  void *_cptr;
  enum CUpointer_attribute_enum _attr;
  int _is_getter;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_ctx;
  unsigned int _uint;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_devptr;
  void **_void;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS *_token;
  int _bool;
  unsigned PY_LONG_LONG _ull;
  size_t _size;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool *_mempool;
};


/* "cuda/bindings/_lib/utils.pxd":56
 *     cdef driver.CUmemoryPool _mempool
 * 
 * cdef class _HelperCUgraphMem_attribute:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUgraphMem_attribute_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUgraphMem_attribute {
  PyObject_HEAD
  void *_cptr;
  enum CUgraphMem_attribute_enum _attr;
  int _is_getter;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_cuuint64_t_val;
};


/* "cuda/bindings/_lib/utils.pxd":64
 *     cdef driver.cuuint64_t _cuuint64_t_val
 * 
 * cdef class _HelperCUjit_option:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUjit_option_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUjit_option {
  PyObject_HEAD
  void *_cptr;
  enum CUjit_option_enum _attr;
  unsigned int _uint;
  float _float;
  char *_charstar;
  enum CUjit_target_enum _target;
  enum CUjit_fallback_enum _fallback;
  int _int;
  enum CUjit_cacheMode_enum _cacheMode;
  std::vector<char *>  _charstarstar;
  struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper *_voidstarstar;
};


/* "cuda/bindings/_lib/utils.pxd":79
 *     cdef _InputVoidPtrPtrHelper _voidstarstar # list of addresses
 * 
 * cdef class _HelperCudaJitOption:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cyruntime.cudaJitOption _attr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaJitOption {
  PyObject_HEAD
  void *_cptr;
  enum cudaJitOption _attr;
  unsigned int _uint;
  float _float;
  char *_charstar;
  enum cudaJit_Fallback _fallback;
  int _int;
  enum cudaJit_CacheMode _cacheMode;
};


/* "cuda/bindings/_lib/utils.pxd":91
 *     cdef cyruntime.cudaJit_CacheMode _cacheMode
 * 
 * cdef class _HelperCUlibraryOption:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUlibraryOption_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUlibraryOption {
  PyObject_HEAD
  void *_cptr;
  enum CUlibraryOption_enum _attr;
  unsigned int _uint;
};


/* "cuda/bindings/_lib/utils.pxd":98
 *     cdef unsigned int _uint
 * 
 * cdef class _HelperCudaLibraryOption:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cyruntime.cudaLibraryOption _attr
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaLibraryOption {
  PyObject_HEAD
  void *_cptr;
  enum cudaLibraryOption _attr;
  unsigned int _uint;
};


/* "cuda/bindings/_lib/utils.pxd":105
 *     cdef unsigned int _uint
 * 
 * cdef class _HelperCUmemAllocationHandleType:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUmemAllocationHandleType_enum _type
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType {
  PyObject_HEAD
  void *_cptr;
  enum CUmemAllocationHandleType_enum _type;
  int _int;
  void *_handle;
  unsigned int _d3dkmt_handle;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle *_mem_fabric_handle;
};


/* "cuda/bindings/_lib/utils.pxd":115
 *     cdef driver.CUmemFabricHandle _mem_fabric_handle
 * 
 * cdef class _InputVoidPtrPtrHelper:             # <<<<<<<<<<<<<<
 *     cdef void** _cptr
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper {
  PyObject_HEAD
  void **_cptr;
};


/* "cuda/bindings/_lib/utils.pxd":118
 *     cdef void** _cptr
 * 
 * cdef class _HelperCUcoredumpSettings:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUcoredumpSettings_enum _attrib
*/
struct __pyx_obj_4cuda_8bindings_6driver__HelperCUcoredumpSettings {
  PyObject_HEAD
  void *_cptr;
  enum CUcoredumpSettings_enum _attrib;
  int _is_getter;
  size_t _size;
  int _bool;
  char *_charstar;
};


/* "cuda/bindings/driver.pxd":9
 * include "_lib/utils.pxd"
 * 
 * cdef class CUcontext:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcontext {
  PyObject_HEAD
  CUcontext _pvt_val;
  CUcontext *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":23
 *     cdef cydriver.CUcontext* _pvt_ptr
 * 
 * cdef class CUmodule:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmodule {
  PyObject_HEAD
  CUmodule _pvt_val;
  CUmodule *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":37
 *     cdef cydriver.CUmodule* _pvt_ptr
 * 
 * cdef class CUfunction:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUfunction {
  PyObject_HEAD
  CUfunction _pvt_val;
  CUfunction *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":51
 *     cdef cydriver.CUfunction* _pvt_ptr
 * 
 * cdef class CUlibrary:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlibrary {
  PyObject_HEAD
  CUlibrary _pvt_val;
  CUlibrary *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":65
 *     cdef cydriver.CUlibrary* _pvt_ptr
 * 
 * cdef class CUkernel:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUkernel {
  PyObject_HEAD
  CUkernel _pvt_val;
  CUkernel *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":79
 *     cdef cydriver.CUkernel* _pvt_ptr
 * 
 * cdef class CUarray:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUarray {
  PyObject_HEAD
  CUarray _pvt_val;
  CUarray *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":93
 *     cdef cydriver.CUarray* _pvt_ptr
 * 
 * cdef class CUmipmappedArray:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray {
  PyObject_HEAD
  CUmipmappedArray _pvt_val;
  CUmipmappedArray *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":107
 *     cdef cydriver.CUmipmappedArray* _pvt_ptr
 * 
 * cdef class CUtexref:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUtexref {
  PyObject_HEAD
  CUtexref _pvt_val;
  CUtexref *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":121
 *     cdef cydriver.CUtexref* _pvt_ptr
 * 
 * cdef class CUsurfref:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUsurfref {
  PyObject_HEAD
  CUsurfref _pvt_val;
  CUsurfref *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":135
 *     cdef cydriver.CUsurfref* _pvt_ptr
 * 
 * cdef class CUevent:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUevent {
  PyObject_HEAD
  CUevent _pvt_val;
  CUevent *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":149
 *     cdef cydriver.CUevent* _pvt_ptr
 * 
 * cdef class CUstream:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstream {
  PyObject_HEAD
  CUstream _pvt_val;
  CUstream *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":163
 *     cdef cydriver.CUstream* _pvt_ptr
 * 
 * cdef class CUgraphicsResource:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphicsResource {
  PyObject_HEAD
  CUgraphicsResource _pvt_val;
  CUgraphicsResource *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":177
 *     cdef cydriver.CUgraphicsResource* _pvt_ptr
 * 
 * cdef class CUexternalMemory:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUexternalMemory {
  PyObject_HEAD
  CUexternalMemory _pvt_val;
  CUexternalMemory *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":191
 *     cdef cydriver.CUexternalMemory* _pvt_ptr
 * 
 * cdef class CUexternalSemaphore:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUexternalSemaphore {
  PyObject_HEAD
  CUexternalSemaphore _pvt_val;
  CUexternalSemaphore *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":205
 *     cdef cydriver.CUexternalSemaphore* _pvt_ptr
 * 
 * cdef class CUgraph:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraph {
  PyObject_HEAD
  CUgraph _pvt_val;
  CUgraph *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":219
 *     cdef cydriver.CUgraph* _pvt_ptr
 * 
 * cdef class CUgraphNode:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode {
  PyObject_HEAD
  CUgraphNode _pvt_val;
  CUgraphNode *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":233
 *     cdef cydriver.CUgraphNode* _pvt_ptr
 * 
 * cdef class CUgraphExec:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec {
  PyObject_HEAD
  CUgraphExec _pvt_val;
  CUgraphExec *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":247
 *     cdef cydriver.CUgraphExec* _pvt_ptr
 * 
 * cdef class CUmemoryPool:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool {
  PyObject_HEAD
  CUmemoryPool _pvt_val;
  CUmemoryPool *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":261
 *     cdef cydriver.CUmemoryPool* _pvt_ptr
 * 
 * cdef class CUuserObject:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject {
  PyObject_HEAD
  CUuserObject _pvt_val;
  CUuserObject *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":275
 *     cdef cydriver.CUuserObject* _pvt_ptr
 * 
 * cdef class CUgraphDeviceNode:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode {
  PyObject_HEAD
  CUgraphDeviceNode _pvt_val;
  CUgraphDeviceNode *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":289
 *     cdef cydriver.CUgraphDeviceNode* _pvt_ptr
 * 
 * cdef class CUasyncCallbackHandle:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallbackHandle {
  PyObject_HEAD
  CUasyncCallbackHandle _pvt_val;
  CUasyncCallbackHandle *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":303
 *     cdef cydriver.CUasyncCallbackHandle* _pvt_ptr
 * 
 * cdef class CUgreenCtx:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgreenCtx {
  PyObject_HEAD
  CUgreenCtx _pvt_val;
  CUgreenCtx *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":317
 *     cdef cydriver.CUgreenCtx* _pvt_ptr
 * 
 * cdef class CUlinkState:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlinkState {
  PyObject_HEAD
  CUlinkState _pvt_val;
  CUlinkState *_pvt_ptr;
  PyObject *_keepalive;
};


/* "cuda/bindings/driver.pxd":330
 *     cdef list _keepalive
 * 
 * cdef class CUdevResourceDesc:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevResourceDesc {
  PyObject_HEAD
  CUdevResourceDesc _pvt_val;
  CUdevResourceDesc *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":344
 *     cdef cydriver.CUdevResourceDesc* _pvt_ptr
 * 
 * cdef class CUlogsCallbackHandle:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallbackHandle {
  PyObject_HEAD
  CUlogsCallbackHandle _pvt_val;
  CUlogsCallbackHandle *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":356
 *     cdef cydriver.CUlogsCallbackHandle* _pvt_ptr
 * 
 * cdef class CUeglStreamConnection:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_CUeglStreamConnection *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":370
 *     cdef cydriver.CUeglStreamConnection* _pvt_ptr
 * 
 * cdef class EGLImageKHR:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_EGLImageKHR {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_EGLImageKHR _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_EGLImageKHR *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":382
 *     cdef cydriver.EGLImageKHR* _pvt_ptr
 * 
 * cdef class EGLStreamKHR:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_EGLStreamKHR {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_EGLStreamKHR *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":394
 *     cdef cydriver.EGLStreamKHR* _pvt_ptr
 * 
 * cdef class EGLSyncKHR:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_EGLSyncKHR {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_EGLSyncKHR _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_EGLSyncKHR *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":406
 *     cdef cydriver.EGLSyncKHR* _pvt_ptr
 * 
 * cdef class CUasyncCallback:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallback {
  PyObject_HEAD
  CUasyncCallback _pvt_val;
  CUasyncCallback *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":418
 *     cdef cydriver.CUasyncCallback* _pvt_ptr
 * 
 * cdef class CUhostFn:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn {
  PyObject_HEAD
  CUhostFn _pvt_val;
  CUhostFn *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":430
 *     cdef cydriver.CUhostFn* _pvt_ptr
 * 
 * cdef class CUstreamCallback:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamCallback {
  PyObject_HEAD
  CUstreamCallback _pvt_val;
  CUstreamCallback *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":442
 *     cdef cydriver.CUstreamCallback* _pvt_ptr
 * 
 * cdef class CUoccupancyB2DSize:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUoccupancyB2DSize {
  PyObject_HEAD
  CUoccupancyB2DSize _pvt_val;
  CUoccupancyB2DSize *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":454
 *     cdef cydriver.CUoccupancyB2DSize* _pvt_ptr
 * 
 * cdef class CUlogsCallback:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallback {
  PyObject_HEAD
  CUlogsCallback _pvt_val;
  CUlogsCallback *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":466
 *     cdef cydriver.CUlogsCallback* _pvt_ptr
 * 
 * cdef class CUuuid_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st {
  PyObject_HEAD
  struct CUuuid_st _pvt_val;
  struct CUuuid_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":481
 *     cdef cydriver.CUuuid_st* _pvt_ptr
 * 
 * cdef class CUmemFabricHandle_st:             # <<<<<<<<<<<<<<
 *     """
 *     Fabric handle - An opaque handle representing a memory allocation
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st {
  PyObject_HEAD
  struct CUmemFabricHandle_st _pvt_val;
  struct CUmemFabricHandle_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":501
 *     cdef cydriver.CUmemFabricHandle_st* _pvt_ptr
 * 
 * cdef class CUipcEventHandle_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC event handle
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st {
  PyObject_HEAD
  struct CUipcEventHandle_st _pvt_val;
  struct CUipcEventHandle_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":518
 *     cdef cydriver.CUipcEventHandle_st* _pvt_ptr
 * 
 * cdef class CUipcMemHandle_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC mem handle
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st {
  PyObject_HEAD
  struct CUipcMemHandle_st _pvt_val;
  struct CUipcMemHandle_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":535
 *     cdef cydriver.CUipcMemHandle_st* _pvt_ptr
 * 
 * cdef class CUstreamMemOpWaitValueParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st {
  PyObject_HEAD
  union CUstreamBatchMemOpParams_union *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_address;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t *_value;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_value64;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_alias;
};


/* "cuda/bindings/driver.pxd":563
 *     cdef CUdeviceptr _alias
 * 
 * cdef class CUstreamMemOpWriteValueParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st {
  PyObject_HEAD
  union CUstreamBatchMemOpParams_union *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_address;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t *_value;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_value64;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_alias;
};


/* "cuda/bindings/driver.pxd":591
 *     cdef CUdeviceptr _alias
 * 
 * cdef class CUstreamMemOpFlushRemoteWritesParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st {
  PyObject_HEAD
  union CUstreamBatchMemOpParams_union *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":607
 *     cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr
 * 
 * cdef class CUstreamMemOpMemoryBarrierParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st {
  PyObject_HEAD
  union CUstreamBatchMemOpParams_union *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":623
 *     cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr
 * 
 * cdef class CUstreamMemOpAtomicReductionParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st {
  PyObject_HEAD
  union CUstreamBatchMemOpParams_union *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_address;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_value;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_alias;
};


/* "cuda/bindings/driver.pxd":652
 *     cdef CUdeviceptr _alias
 * 
 * cdef class CUstreamBatchMemOpParams_union:             # <<<<<<<<<<<<<<
 *     """
 *     Per-operation parameters for cuStreamBatchMemOp
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union {
  PyObject_HEAD
  union CUstreamBatchMemOpParams_union _pvt_val;
  union CUstreamBatchMemOpParams_union *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st *_waitValue;
  struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st *_writeValue;
  struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st *_flushRemoteWrites;
  struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st *_memoryBarrier;
  struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st *_atomicReduction;
};


/* "cuda/bindings/driver.pxd":689
 *     cdef CUstreamMemOpAtomicReductionParams_st _atomicReduction
 * 
 * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st:             # <<<<<<<<<<<<<<
 *     """
 *     Batch memory operation node parameters  Used in the legacy
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st {
  PyObject_HEAD
  struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st _pvt_val;
  struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_ctx;
  size_t _paramArray_length;
  CUstreamBatchMemOpParams *_paramArray;
};


/* "cuda/bindings/driver.pxd":716
 *     cdef cydriver.CUstreamBatchMemOpParams* _paramArray
 * 
 * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st:             # <<<<<<<<<<<<<<
 *     """
 *     Batch memory operation node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st {
  PyObject_HEAD
  struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st _pvt_val;
  struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_ctx;
  size_t _paramArray_length;
  CUstreamBatchMemOpParams *_paramArray;
};


/* "cuda/bindings/driver.pxd":742
 *     cdef cydriver.CUstreamBatchMemOpParams* _paramArray
 * 
 * cdef class anon_struct0:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0 {
  PyObject_HEAD
  struct CUasyncNotificationInfo_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":756
 *     cdef cydriver.CUasyncNotificationInfo_st* _pvt_ptr
 * 
 * cdef class anon_union2:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union2 {
  PyObject_HEAD
  struct CUasyncNotificationInfo_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0 *_overBudget;
};


/* "cuda/bindings/driver.pxd":771
 *     cdef anon_struct0 _overBudget
 * 
 * cdef class CUasyncNotificationInfo_st:             # <<<<<<<<<<<<<<
 *     """
 *     Information passed to the user via the async notification callback
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st {
  PyObject_HEAD
  struct CUasyncNotificationInfo_st *_val_ptr;
  struct CUasyncNotificationInfo_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union2 *_info;
};


/* "cuda/bindings/driver.pxd":792
 *     cdef anon_union2 _info
 * 
 * cdef class CUdevprop_st:             # <<<<<<<<<<<<<<
 *     """
 *     Legacy device properties
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st {
  PyObject_HEAD
  struct CUdevprop_st _pvt_val;
  struct CUdevprop_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":827
 *     cdef cydriver.CUdevprop_st* _pvt_ptr
 * 
 * cdef class CUaccessPolicyWindow_st:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies an access policy for a window, a contiguous extent of
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st {
  PyObject_HEAD
  struct CUaccessPolicyWindow_st _pvt_val;
  struct CUaccessPolicyWindow_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":864
 *     cdef cydriver.CUaccessPolicyWindow_st* _pvt_ptr
 * 
 * cdef class CUDA_KERNEL_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_KERNEL_NODE_PARAMS_st _pvt_val;
  struct CUDA_KERNEL_NODE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUfunction *_func;
  struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams *_cykernelParams;
};


/* "cuda/bindings/driver.pxd":901
 *     cdef _HelperKernelParams _cykernelParams
 * 
 * cdef class CUDA_KERNEL_NODE_PARAMS_v2_st:             # <<<<<<<<<<<<<<
 *     """
 *     GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st {
  PyObject_HEAD
  struct CUDA_KERNEL_NODE_PARAMS_v2_st _pvt_val;
  struct CUDA_KERNEL_NODE_PARAMS_v2_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUfunction *_func;
  struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams *_cykernelParams;
  struct __pyx_obj_4cuda_8bindings_6driver_CUkernel *_kern;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_ctx;
};


/* "cuda/bindings/driver.pxd":946
 *     cdef CUcontext _ctx
 * 
 * cdef class CUDA_KERNEL_NODE_PARAMS_v3_st:             # <<<<<<<<<<<<<<
 *     """
 *     GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st {
  PyObject_HEAD
  struct CUDA_KERNEL_NODE_PARAMS_v3_st _pvt_val;
  struct CUDA_KERNEL_NODE_PARAMS_v3_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUfunction *_func;
  struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams *_cykernelParams;
  struct __pyx_obj_4cuda_8bindings_6driver_CUkernel *_kern;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_ctx;
};


/* "cuda/bindings/driver.pxd":991
 *     cdef CUcontext _ctx
 * 
 * cdef class CUDA_MEMSET_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memset node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_MEMSET_NODE_PARAMS_st _pvt_val;
  struct CUDA_MEMSET_NODE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_dst;
};


/* "cuda/bindings/driver.pxd":1019
 *     cdef CUdeviceptr _dst
 * 
 * cdef class CUDA_MEMSET_NODE_PARAMS_v2_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memset node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st {
  PyObject_HEAD
  struct CUDA_MEMSET_NODE_PARAMS_v2_st _pvt_val;
  struct CUDA_MEMSET_NODE_PARAMS_v2_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_dst;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_ctx;
};


/* "cuda/bindings/driver.pxd":1050
 *     cdef CUcontext _ctx
 * 
 * cdef class CUDA_HOST_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Host node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_HOST_NODE_PARAMS_st _pvt_val;
  struct CUDA_HOST_NODE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn *_fn;
};


/* "cuda/bindings/driver.pxd":1070
 *     cdef CUhostFn _fn
 * 
 * cdef class CUDA_HOST_NODE_PARAMS_v2_st:             # <<<<<<<<<<<<<<
 *     """
 *     Host node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st {
  PyObject_HEAD
  struct CUDA_HOST_NODE_PARAMS_v2_st _pvt_val;
  struct CUDA_HOST_NODE_PARAMS_v2_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn *_fn;
};


/* "cuda/bindings/driver.pxd":1090
 *     cdef CUhostFn _fn
 * 
 * cdef class CUDA_CONDITIONAL_NODE_PARAMS:             # <<<<<<<<<<<<<<
 *     """
 *     Conditional node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS {
  PyObject_HEAD
  struct CUDA_CONDITIONAL_NODE_PARAMS _pvt_val;
  struct CUDA_CONDITIONAL_NODE_PARAMS *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle *_handle;
  size_t _phGraph_out_length;
  CUgraph *_phGraph_out;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_ctx;
};


/* "cuda/bindings/driver.pxd":1138
 *     cdef CUcontext _ctx
 * 
 * cdef class CUgraphEdgeData_st:             # <<<<<<<<<<<<<<
 *     """
 *     Optional annotation for edges in a CUDA graph. Note, all edges
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st {
  PyObject_HEAD
  struct CUgraphEdgeData_st _pvt_val;
  struct CUgraphEdgeData_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1180
 *     cdef cydriver.CUgraphEdgeData_st* _pvt_ptr
 * 
 * cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Graph instantiation parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_GRAPH_INSTANTIATE_PARAMS_st _pvt_val;
  struct CUDA_GRAPH_INSTANTIATE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_flags;
  struct __pyx_obj_4cuda_8bindings_6driver_CUstream *_hUploadStream;
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode *_hErrNode_out;
};


/* "cuda/bindings/driver.pxd":1206
 *     cdef CUgraphNode _hErrNode_out
 * 
 * cdef class CUlaunchMemSyncDomainMap_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memory Synchronization Domain map  See ::cudaLaunchMemSyncDomain.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st {
  PyObject_HEAD
  struct CUlaunchMemSyncDomainMap_st _pvt_val;
  struct CUlaunchMemSyncDomainMap_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1231
 *     cdef cydriver.CUlaunchMemSyncDomainMap_st* _pvt_ptr
 * 
 * cdef class anon_struct1:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1 {
  PyObject_HEAD
  union CUlaunchAttributeValue_union *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1249
 *     cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr
 * 
 * cdef class anon_struct2:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2 {
  PyObject_HEAD
  union CUlaunchAttributeValue_union *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUevent *_event;
};


/* "cuda/bindings/driver.pxd":1268
 *     cdef CUevent _event
 * 
 * cdef class anon_struct3:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3 {
  PyObject_HEAD
  union CUlaunchAttributeValue_union *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUevent *_event;
};


/* "cuda/bindings/driver.pxd":1285
 *     cdef CUevent _event
 * 
 * cdef class anon_struct4:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4 {
  PyObject_HEAD
  union CUlaunchAttributeValue_union *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1303
 *     cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr
 * 
 * cdef class anon_struct5:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5 {
  PyObject_HEAD
  union CUlaunchAttributeValue_union *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode *_devNode;
};


/* "cuda/bindings/driver.pxd":1320
 *     cdef CUgraphDeviceNode _devNode
 * 
 * cdef class CUlaunchAttributeValue_union:             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of CUlaunchAttribute
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union {
  PyObject_HEAD
  union CUlaunchAttributeValue_union _pvt_val;
  union CUlaunchAttributeValue_union *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow *_accessPolicyWindow;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1 *_clusterDim;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2 *_programmaticEvent;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3 *_launchCompletionEvent;
  struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap *_memSyncDomainMap;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4 *_preferredClusterDim;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5 *_deviceUpdatableKernelNode;
};


/* "cuda/bindings/driver.pxd":1415
 *     cdef anon_struct5 _deviceUpdatableKernelNode
 * 
 * cdef class CUlaunchAttribute_st:             # <<<<<<<<<<<<<<
 *     """
 *     Launch attribute
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st {
  PyObject_HEAD
  struct CUlaunchAttribute_st _pvt_val;
  struct CUlaunchAttribute_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue *_value;
};


/* "cuda/bindings/driver.pxd":1435
 *     cdef CUlaunchAttributeValue _value
 * 
 * cdef class CUlaunchConfig_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA extensible launch configuration
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st {
  PyObject_HEAD
  struct CUlaunchConfig_st _pvt_val;
  struct CUlaunchConfig_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUstream *_hStream;
  size_t _attrs_length;
  CUlaunchAttribute *_attrs;
};


/* "cuda/bindings/driver.pxd":1473
 *     cdef cydriver.CUlaunchAttribute* _attrs
 * 
 * cdef class CUexecAffinitySmCount_st:             # <<<<<<<<<<<<<<
 *     """
 *     Value for CU_EXEC_AFFINITY_TYPE_SM_COUNT
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st {
  PyObject_HEAD
  struct CUexecAffinitySmCount_st _pvt_val;
  struct CUexecAffinitySmCount_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1490
 *     cdef cydriver.CUexecAffinitySmCount_st* _pvt_ptr
 * 
 * cdef class anon_union3:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union3 {
  PyObject_HEAD
  struct CUexecAffinityParam_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount *_smCount;
};


/* "cuda/bindings/driver.pxd":1505
 *     cdef CUexecAffinitySmCount _smCount
 * 
 * cdef class CUexecAffinityParam_st:             # <<<<<<<<<<<<<<
 *     """
 *     Execution Affinity Parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st {
  PyObject_HEAD
  struct CUexecAffinityParam_st *_val_ptr;
  struct CUexecAffinityParam_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union3 *_param;
};


/* "cuda/bindings/driver.pxd":1525
 *     cdef anon_union3 _param
 * 
 * cdef class CUctxCigParam_st:             # <<<<<<<<<<<<<<
 *     """
 *     CIG Context Create Params
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st {
  PyObject_HEAD
  struct CUctxCigParam_st _pvt_val;
  struct CUctxCigParam_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1544
 *     cdef cydriver.CUctxCigParam_st* _pvt_ptr
 * 
 * cdef class CUctxCreateParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Params for creating CUDA context Exactly one of execAffinityParams
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st {
  PyObject_HEAD
  struct CUctxCreateParams_st _pvt_val;
  struct CUctxCreateParams_st *_pvt_ptr;
  size_t _execAffinityParams_length;
  CUexecAffinityParam *_execAffinityParams;
  size_t _cigParams_length;
  CUctxCigParam *_cigParams;
};


/* "cuda/bindings/driver.pxd":1570
 *     cdef cydriver.CUctxCigParam* _cigParams
 * 
 * cdef class CUlibraryHostUniversalFunctionAndDataTable_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st {
  PyObject_HEAD
  struct CUlibraryHostUniversalFunctionAndDataTable_st _pvt_val;
  struct CUlibraryHostUniversalFunctionAndDataTable_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1591
 *     cdef cydriver.CUlibraryHostUniversalFunctionAndDataTable_st* _pvt_ptr
 * 
 * cdef class CUDA_MEMCPY2D_st:             # <<<<<<<<<<<<<<
 *     """
 *     2D memory copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st {
  PyObject_HEAD
  struct CUDA_MEMCPY2D_st _pvt_val;
  struct CUDA_MEMCPY2D_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_srcDevice;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_srcArray;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_dstDevice;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_dstArray;
};


/* "cuda/bindings/driver.pxd":1642
 *     cdef CUarray _dstArray
 * 
 * cdef class CUDA_MEMCPY3D_st:             # <<<<<<<<<<<<<<
 *     """
 *     3D memory copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st {
  PyObject_HEAD
  struct CUDA_MEMCPY3D_st _pvt_val;
  struct CUDA_MEMCPY3D_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_srcDevice;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_srcArray;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_dstDevice;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_dstArray;
};


/* "cuda/bindings/driver.pxd":1712
 *     cdef CUarray _dstArray
 * 
 * cdef class CUDA_MEMCPY3D_PEER_st:             # <<<<<<<<<<<<<<
 *     """
 *     3D memory cross-context copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st {
  PyObject_HEAD
  struct CUDA_MEMCPY3D_PEER_st _pvt_val;
  struct CUDA_MEMCPY3D_PEER_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_srcDevice;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_srcArray;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_srcContext;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_dstDevice;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_dstArray;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_dstContext;
};


/* "cuda/bindings/driver.pxd":1785
 *     cdef CUcontext _dstContext
 * 
 * cdef class CUDA_MEMCPY_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memcpy node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_MEMCPY_NODE_PARAMS_st _pvt_val;
  struct CUDA_MEMCPY_NODE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_copyCtx;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D *_copyParams;
};


/* "cuda/bindings/driver.pxd":1810
 *     cdef CUDA_MEMCPY3D _copyParams
 * 
 * cdef class CUDA_ARRAY_DESCRIPTOR_st:             # <<<<<<<<<<<<<<
 *     """
 *     Array descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st {
  PyObject_HEAD
  struct CUDA_ARRAY_DESCRIPTOR_st _pvt_val;
  struct CUDA_ARRAY_DESCRIPTOR_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1833
 *     cdef cydriver.CUDA_ARRAY_DESCRIPTOR_st* _pvt_ptr
 * 
 * cdef class CUDA_ARRAY3D_DESCRIPTOR_st:             # <<<<<<<<<<<<<<
 *     """
 *     3D array descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st {
  PyObject_HEAD
  struct CUDA_ARRAY3D_DESCRIPTOR_st _pvt_val;
  struct CUDA_ARRAY3D_DESCRIPTOR_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1860
 *     cdef cydriver.CUDA_ARRAY3D_DESCRIPTOR_st* _pvt_ptr
 * 
 * cdef class anon_struct6:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6 {
  PyObject_HEAD
  struct CUDA_ARRAY_SPARSE_PROPERTIES_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1878
 *     cdef cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st* _pvt_ptr
 * 
 * cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA array sparse properties
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st {
  PyObject_HEAD
  struct CUDA_ARRAY_SPARSE_PROPERTIES_st _pvt_val;
  struct CUDA_ARRAY_SPARSE_PROPERTIES_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6 *_tileExtent;
};


/* "cuda/bindings/driver.pxd":1905
 *     cdef anon_struct6 _tileExtent
 * 
 * cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA array memory requirements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st {
  PyObject_HEAD
  struct CUDA_ARRAY_MEMORY_REQUIREMENTS_st _pvt_val;
  struct CUDA_ARRAY_MEMORY_REQUIREMENTS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":1926
 *     cdef cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_st* _pvt_ptr
 * 
 * cdef class anon_struct7:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7 {
  PyObject_HEAD
  struct CUDA_RESOURCE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_hArray;
};


/* "cuda/bindings/driver.pxd":1941
 *     cdef CUarray _hArray
 * 
 * cdef class anon_struct8:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8 {
  PyObject_HEAD
  struct CUDA_RESOURCE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray *_hMipmappedArray;
};


/* "cuda/bindings/driver.pxd":1956
 *     cdef CUmipmappedArray _hMipmappedArray
 * 
 * cdef class anon_struct9:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9 {
  PyObject_HEAD
  struct CUDA_RESOURCE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_devPtr;
};


/* "cuda/bindings/driver.pxd":1977
 *     cdef CUdeviceptr _devPtr
 * 
 * cdef class anon_struct10:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10 {
  PyObject_HEAD
  struct CUDA_RESOURCE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_devPtr;
};


/* "cuda/bindings/driver.pxd":2002
 *     cdef CUdeviceptr _devPtr
 * 
 * cdef class anon_struct11:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11 {
  PyObject_HEAD
  struct CUDA_RESOURCE_DESC_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2016
 *     cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr
 * 
 * cdef class anon_union4:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union4 {
  PyObject_HEAD
  struct CUDA_RESOURCE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7 *_array;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8 *_mipmap;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9 *_linear;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10 *_pitch2D;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11 *_reserved;
};


/* "cuda/bindings/driver.pxd":2043
 *     cdef anon_struct11 _reserved
 * 
 * cdef class CUDA_RESOURCE_DESC_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Resource descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st {
  PyObject_HEAD
  struct CUDA_RESOURCE_DESC_st *_val_ptr;
  struct CUDA_RESOURCE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union4 *_res;
};


/* "cuda/bindings/driver.pxd":2065
 *     cdef anon_union4 _res
 * 
 * cdef class CUDA_TEXTURE_DESC_st:             # <<<<<<<<<<<<<<
 *     """
 *     Texture descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st {
  PyObject_HEAD
  struct CUDA_TEXTURE_DESC_st _pvt_val;
  struct CUDA_TEXTURE_DESC_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2100
 *     cdef cydriver.CUDA_TEXTURE_DESC_st* _pvt_ptr
 * 
 * cdef class CUDA_RESOURCE_VIEW_DESC_st:             # <<<<<<<<<<<<<<
 *     """
 *     Resource view descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st {
  PyObject_HEAD
  struct CUDA_RESOURCE_VIEW_DESC_st _pvt_val;
  struct CUDA_RESOURCE_VIEW_DESC_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2133
 *     cdef cydriver.CUDA_RESOURCE_VIEW_DESC_st* _pvt_ptr
 * 
 * cdef class CUtensorMap_st:             # <<<<<<<<<<<<<<
 *     """
 *     Tensor map descriptor. Requires compiler support for aligning to
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st {
  PyObject_HEAD
  struct CUtensorMap_st _pvt_val;
  struct CUtensorMap_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2151
 *     cdef cydriver.CUtensorMap_st* _pvt_ptr
 * 
 * cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st:             # <<<<<<<<<<<<<<
 *     """
 *     GPU Direct v3 tokens
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st {
  PyObject_HEAD
  struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st _pvt_val;
  struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2170
 *     cdef cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st* _pvt_ptr
 * 
 * cdef class CUDA_LAUNCH_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Kernel launch parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st {
  PyObject_HEAD
  struct CUDA_LAUNCH_PARAMS_st _pvt_val;
  struct CUDA_LAUNCH_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUfunction *_function;
  struct __pyx_obj_4cuda_8bindings_6driver_CUstream *_hStream;
  struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams *_cykernelParams;
};


/* "cuda/bindings/driver.pxd":2208
 *     cdef _HelperKernelParams _cykernelParams
 * 
 * cdef class anon_struct12:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2224
 *     cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _pvt_ptr
 * 
 * cdef class anon_union5:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union5 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12 *_win32;
};


/* "cuda/bindings/driver.pxd":2243
 *     cdef anon_struct12 _win32
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st:             # <<<<<<<<<<<<<<
 *     """
 *     External memory handle descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st {
  PyObject_HEAD
  struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st *_val_ptr;
  struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union5 *_handle;
};


/* "cuda/bindings/driver.pxd":2269
 *     cdef anon_union5 _handle
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st:             # <<<<<<<<<<<<<<
 *     """
 *     External memory buffer descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st {
  PyObject_HEAD
  struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st _pvt_val;
  struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2292
 *     cdef cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st* _pvt_ptr
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st:             # <<<<<<<<<<<<<<
 *     """
 *     External memory mipmap descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st {
  PyObject_HEAD
  struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st _pvt_val;
  struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR *_arrayDesc;
};


/* "cuda/bindings/driver.pxd":2317
 *     cdef CUDA_ARRAY3D_DESCRIPTOR _arrayDesc
 * 
 * cdef class anon_struct13:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2333
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _pvt_ptr
 * 
 * cdef class anon_union6:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union6 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13 *_win32;
};


/* "cuda/bindings/driver.pxd":2352
 *     cdef anon_struct13 _win32
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore handle descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st *_val_ptr;
  struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union6 *_handle;
};


/* "cuda/bindings/driver.pxd":2376
 *     cdef anon_union6 _handle
 * 
 * cdef class anon_struct14:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2390
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr
 * 
 * cdef class anon_union7:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union7 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2406
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr
 * 
 * cdef class anon_struct15:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2420
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr
 * 
 * cdef class anon_struct16:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14 *_fence;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union7 *_nvSciSync;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15 *_keyedMutex;
};


/* "cuda/bindings/driver.pxd":2443
 *     cdef anon_struct15 _keyedMutex
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore signal parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st _pvt_val;
  struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16 *_params;
};


/* "cuda/bindings/driver.pxd":2472
 *     cdef anon_struct16 _params
 * 
 * cdef class anon_struct17:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2486
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr
 * 
 * cdef class anon_union8:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union8 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2502
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr
 * 
 * cdef class anon_struct18:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2518
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr
 * 
 * cdef class anon_struct19:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19 {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17 *_fence;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union8 *_nvSciSync;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18 *_keyedMutex;
};


/* "cuda/bindings/driver.pxd":2541
 *     cdef anon_struct18 _keyedMutex
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore wait parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st {
  PyObject_HEAD
  struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st _pvt_val;
  struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19 *_params;
};


/* "cuda/bindings/driver.pxd":2570
 *     cdef anon_struct19 _params
 * 
 * cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore signal node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st _pvt_val;
  struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st *_pvt_ptr;
  size_t _extSemArray_length;
  CUexternalSemaphore *_extSemArray;
  size_t _paramsArray_length;
  CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *_paramsArray;
};


/* "cuda/bindings/driver.pxd":2596
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* _paramsArray
 * 
 * cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st:             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore signal node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st {
  PyObject_HEAD
  struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st _pvt_val;
  struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st *_pvt_ptr;
  size_t _extSemArray_length;
  CUexternalSemaphore *_extSemArray;
  size_t _paramsArray_length;
  CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS *_paramsArray;
};


/* "cuda/bindings/driver.pxd":2622
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* _paramsArray
 * 
 * cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_st _pvt_val;
  struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_st *_pvt_ptr;
  size_t _extSemArray_length;
  CUexternalSemaphore *_extSemArray;
  size_t _paramsArray_length;
  CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *_paramsArray;
};


/* "cuda/bindings/driver.pxd":2648
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* _paramsArray
 * 
 * cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st:             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st {
  PyObject_HEAD
  struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st _pvt_val;
  struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st *_pvt_ptr;
  size_t _extSemArray_length;
  CUexternalSemaphore *_extSemArray;
  size_t _paramsArray_length;
  CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS *_paramsArray;
};


/* "cuda/bindings/driver.pxd":2674
 *     cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* _paramsArray
 * 
 * cdef class anon_union9:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union9 {
  PyObject_HEAD
  struct CUarrayMapInfo_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray *_mipmap;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_array;
};


/* "cuda/bindings/driver.pxd":2692
 *     cdef CUarray _array
 * 
 * cdef class anon_struct20:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20 {
  PyObject_HEAD
  struct CUarrayMapInfo_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2720
 *     cdef cydriver.CUarrayMapInfo_st* _pvt_ptr
 * 
 * cdef class anon_struct21:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21 {
  PyObject_HEAD
  struct CUarrayMapInfo_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2738
 *     cdef cydriver.CUarrayMapInfo_st* _pvt_ptr
 * 
 * cdef class anon_union10:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union10 {
  PyObject_HEAD
  struct CUarrayMapInfo_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20 *_sparseLevel;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21 *_miptail;
};


/* "cuda/bindings/driver.pxd":2756
 *     cdef anon_struct21 _miptail
 * 
 * cdef class anon_union11:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union11 {
  PyObject_HEAD
  struct CUarrayMapInfo_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle *_memHandle;
};


/* "cuda/bindings/driver.pxd":2771
 *     cdef CUmemGenericAllocationHandle _memHandle
 * 
 * cdef class CUarrayMapInfo_st:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the CUDA array or CUDA mipmapped array memory mapping
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st {
  PyObject_HEAD
  struct CUarrayMapInfo_st *_val_ptr;
  struct CUarrayMapInfo_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union9 *_resource;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union10 *_subresource;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union11 *_memHandle;
};


/* "cuda/bindings/driver.pxd":2812
 *     cdef anon_union11 _memHandle
 * 
 * cdef class CUmemLocation_st:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies a memory location.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st {
  PyObject_HEAD
  struct CUmemLocation_st _pvt_val;
  struct CUmemLocation_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2831
 *     cdef cydriver.CUmemLocation_st* _pvt_ptr
 * 
 * cdef class anon_struct22:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22 {
  PyObject_HEAD
  struct CUmemAllocationProp_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2851
 *     cdef cydriver.CUmemAllocationProp_st* _pvt_ptr
 * 
 * cdef class CUmemAllocationProp_st:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the allocation properties for a allocation.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st {
  PyObject_HEAD
  struct CUmemAllocationProp_st _pvt_val;
  struct CUmemAllocationProp_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation *_location;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22 *_allocFlags;
};


/* "cuda/bindings/driver.pxd":2882
 *     cdef anon_struct22 _allocFlags
 * 
 * cdef class CUmulticastObjectProp_st:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the properties for a multicast object.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st {
  PyObject_HEAD
  struct CUmulticastObjectProp_st _pvt_val;
  struct CUmulticastObjectProp_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":2908
 *     cdef cydriver.CUmulticastObjectProp_st* _pvt_ptr
 * 
 * cdef class CUmemAccessDesc_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memory access descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st {
  PyObject_HEAD
  struct CUmemAccessDesc_st _pvt_val;
  struct CUmemAccessDesc_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation *_location;
};


/* "cuda/bindings/driver.pxd":2928
 *     cdef CUmemLocation _location
 * 
 * cdef class CUgraphExecUpdateResultInfo_st:             # <<<<<<<<<<<<<<
 *     """
 *     Result information returned by cuGraphExecUpdate
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st {
  PyObject_HEAD
  struct CUgraphExecUpdateResultInfo_st _pvt_val;
  struct CUgraphExecUpdateResultInfo_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode *_errorNode;
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode *_errorFromNode;
};


/* "cuda/bindings/driver.pxd":2954
 *     cdef CUgraphNode _errorFromNode
 * 
 * cdef class CUmemPoolProps_st:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the properties of allocations made from the pool.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st {
  PyObject_HEAD
  struct CUmemPoolProps_st _pvt_val;
  struct CUmemPoolProps_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation *_location;
};


/* "cuda/bindings/driver.pxd":2990
 *     cdef CUmemLocation _location
 * 
 * cdef class CUmemPoolPtrExportData_st:             # <<<<<<<<<<<<<<
 *     """
 *     Opaque data for exporting a pool allocation
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st {
  PyObject_HEAD
  struct CUmemPoolPtrExportData_st _pvt_val;
  struct CUmemPoolPtrExportData_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3007
 *     cdef cydriver.CUmemPoolPtrExportData_st* _pvt_ptr
 * 
 * cdef class CUmemcpyAttributes_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes specific to copies within a batch. For more details on
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st {
  PyObject_HEAD
  struct CUmemcpyAttributes_st _pvt_val;
  struct CUmemcpyAttributes_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation *_srcLocHint;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation *_dstLocHint;
};


/* "cuda/bindings/driver.pxd":3036
 *     cdef CUmemLocation _dstLocHint
 * 
 * cdef class CUoffset3D_st:             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing offset into a CUarray in elements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st {
  PyObject_HEAD
  struct CUoffset3D_st _pvt_val;
  struct CUoffset3D_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3057
 *     cdef cydriver.CUoffset3D_st* _pvt_ptr
 * 
 * cdef class CUextent3D_st:             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing width/height/depth of a CUarray in elements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st {
  PyObject_HEAD
  struct CUextent3D_st _pvt_val;
  struct CUextent3D_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3078
 *     cdef cydriver.CUextent3D_st* _pvt_ptr
 * 
 * cdef class anon_struct23:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23 {
  PyObject_HEAD
  struct CUmemcpy3DOperand_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation *_locHint;
};


/* "cuda/bindings/driver.pxd":3100
 *     cdef CUmemLocation _locHint
 * 
 * cdef class anon_struct24:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24 {
  PyObject_HEAD
  struct CUmemcpy3DOperand_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUarray *_array;
  struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D *_offset;
};


/* "cuda/bindings/driver.pxd":3118
 *     cdef CUoffset3D _offset
 * 
 * cdef class anon_union12:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union12 {
  PyObject_HEAD
  struct CUmemcpy3DOperand_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23 *_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24 *_array;
};


/* "cuda/bindings/driver.pxd":3136
 *     cdef anon_struct24 _array
 * 
 * cdef class CUmemcpy3DOperand_st:             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing an operand for copy with cuMemcpy3DBatchAsync
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st {
  PyObject_HEAD
  struct CUmemcpy3DOperand_st *_val_ptr;
  struct CUmemcpy3DOperand_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union12 *_op;
};


/* "cuda/bindings/driver.pxd":3156
 *     cdef anon_union12 _op
 * 
 * cdef class CUDA_MEMCPY3D_BATCH_OP_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st {
  PyObject_HEAD
  struct CUDA_MEMCPY3D_BATCH_OP_st _pvt_val;
  struct CUDA_MEMCPY3D_BATCH_OP_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand *_src;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand *_dst;
  struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D *_extent;
};


/* "cuda/bindings/driver.pxd":3183
 *     cdef CUextent3D _extent
 * 
 * cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memory allocation node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st {
  PyObject_HEAD
  struct CUDA_MEM_ALLOC_NODE_PARAMS_v1_st _pvt_val;
  struct CUDA_MEM_ALLOC_NODE_PARAMS_v1_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps *_poolProps;
  size_t _accessDescs_length;
  CUmemAccessDesc *_accessDescs;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_dptr;
};


/* "cuda/bindings/driver.pxd":3216
 *     cdef CUdeviceptr _dptr
 * 
 * cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memory allocation node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st {
  PyObject_HEAD
  struct CUDA_MEM_ALLOC_NODE_PARAMS_v2_st _pvt_val;
  struct CUDA_MEM_ALLOC_NODE_PARAMS_v2_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps *_poolProps;
  size_t _accessDescs_length;
  CUmemAccessDesc *_accessDescs;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_dptr;
};


/* "cuda/bindings/driver.pxd":3249
 *     cdef CUdeviceptr _dptr
 * 
 * cdef class CUDA_MEM_FREE_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memory free node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_MEM_FREE_NODE_PARAMS_st _pvt_val;
  struct CUDA_MEM_FREE_NODE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_dptr;
};


/* "cuda/bindings/driver.pxd":3267
 *     cdef CUdeviceptr _dptr
 * 
 * cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Child graph node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_CHILD_GRAPH_NODE_PARAMS_st _pvt_val;
  struct CUDA_CHILD_GRAPH_NODE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraph *_graph;
};


/* "cuda/bindings/driver.pxd":3291
 *     cdef CUgraph _graph
 * 
 * cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Event record node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_EVENT_RECORD_NODE_PARAMS_st _pvt_val;
  struct CUDA_EVENT_RECORD_NODE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUevent *_event;
};


/* "cuda/bindings/driver.pxd":3309
 *     cdef CUevent _event
 * 
 * cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Event wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st {
  PyObject_HEAD
  struct CUDA_EVENT_WAIT_NODE_PARAMS_st _pvt_val;
  struct CUDA_EVENT_WAIT_NODE_PARAMS_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUevent *_event;
};


/* "cuda/bindings/driver.pxd":3327
 *     cdef CUevent _event
 * 
 * cdef class CUgraphNodeParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Graph node parameters. See cuGraphAddNode.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st {
  PyObject_HEAD
  struct CUgraphNodeParams_st *_val_ptr;
  struct CUgraphNodeParams_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3 *_kernel;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS *_memcpy;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2 *_memset;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2 *_host;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS *_graph;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS *_eventWait;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS *_eventRecord;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 *_extSemSignal;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 *_extSemWait;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2 *_alloc;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS *_free;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 *_memOp;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS *_conditional;
};


/* "cuda/bindings/driver.pxd":3389
 *     cdef CUDA_CONDITIONAL_NODE_PARAMS _conditional
 * 
 * cdef class CUcheckpointLockArgs_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint optional lock arguments
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st {
  PyObject_HEAD
  struct CUcheckpointLockArgs_st _pvt_val;
  struct CUcheckpointLockArgs_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3411
 *     cdef cydriver.CUcheckpointLockArgs_st* _pvt_ptr
 * 
 * cdef class CUcheckpointCheckpointArgs_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint optional checkpoint arguments
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st {
  PyObject_HEAD
  struct CUcheckpointCheckpointArgs_st _pvt_val;
  struct CUcheckpointCheckpointArgs_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3428
 *     cdef cydriver.CUcheckpointCheckpointArgs_st* _pvt_ptr
 * 
 * cdef class CUcheckpointGpuPair_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint GPU UUID pairs for device remapping during restore
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st {
  PyObject_HEAD
  struct CUcheckpointGpuPair_st _pvt_val;
  struct CUcheckpointGpuPair_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUuuid *_oldUuid;
  struct __pyx_obj_4cuda_8bindings_6driver_CUuuid *_newUuid;
};


/* "cuda/bindings/driver.pxd":3449
 *     cdef CUuuid _newUuid
 * 
 * cdef class CUcheckpointRestoreArgs_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint optional restore arguments
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st {
  PyObject_HEAD
  struct CUcheckpointRestoreArgs_st _pvt_val;
  struct CUcheckpointRestoreArgs_st *_pvt_ptr;
  size_t _gpuPairs_length;
  CUcheckpointGpuPair *_gpuPairs;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_reserved1;
};


/* "cuda/bindings/driver.pxd":3476
 *     cdef cuuint64_t _reserved1
 * 
 * cdef class CUcheckpointUnlockArgs_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint optional unlock arguments
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st {
  PyObject_HEAD
  struct CUcheckpointUnlockArgs_st _pvt_val;
  struct CUcheckpointUnlockArgs_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3493
 *     cdef cydriver.CUcheckpointUnlockArgs_st* _pvt_ptr
 * 
 * cdef class CUmemDecompressParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Structure describing the parameters that compose a single
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st {
  PyObject_HEAD
  struct CUmemDecompressParams_st _pvt_val;
  struct CUmemDecompressParams_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3532
 *     cdef cydriver.CUmemDecompressParams_st* _pvt_ptr
 * 
 * cdef class CUdevSmResource_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st {
  PyObject_HEAD
  struct CUdevSmResource_st _pvt_val;
  struct CUdevSmResource_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3558
 *     cdef cydriver.CUdevSmResource_st* _pvt_ptr
 * 
 * cdef class CUdevWorkqueueConfigResource_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st {
  PyObject_HEAD
  struct CUdevWorkqueueConfigResource_st _pvt_val;
  struct CUdevWorkqueueConfigResource_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevice *_device;
};


/* "cuda/bindings/driver.pxd":3578
 *     cdef CUdevice _device
 * 
 * cdef class CUdevWorkqueueResource_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st {
  PyObject_HEAD
  struct CUdevWorkqueueResource_st _pvt_val;
  struct CUdevWorkqueueResource_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3593
 *     cdef cydriver.CUdevWorkqueueResource_st* _pvt_ptr
 * 
 * cdef class CU_DEV_SM_RESOURCE_GROUP_PARAMS_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st {
  PyObject_HEAD
  struct CU_DEV_SM_RESOURCE_GROUP_PARAMS_st _pvt_val;
  struct CU_DEV_SM_RESOURCE_GROUP_PARAMS_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3619
 *     cdef cydriver.CU_DEV_SM_RESOURCE_GROUP_PARAMS_st* _pvt_ptr
 * 
 * cdef class CUdevResource_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st {
  PyObject_HEAD
  struct CUdevResource_st *_val_ptr;
  struct CUdevResource_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource *_sm;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource *_wqConfig;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource *_wq;
  size_t _nextResource_length;
  struct CUdevResource_st *_nextResource;
};


/* "cuda/bindings/driver.pxd":3653
 *     cdef cydriver.CUdevResource_st* _nextResource
 * 
 * cdef class anon_union15:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_anon_union15 {
  PyObject_HEAD
  struct __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame_st *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3669
 *     cdef cydriver.CUeglFrame_st* _pvt_ptr
 * 
 * cdef class CUeglFrame_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGLFrame structure Descriptor - structure defining one frame
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st {
  PyObject_HEAD
  struct __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame_st *_val_ptr;
  struct __pyx_t_4cuda_8bindings_8cydriver_CUeglFrame_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_6driver_anon_union15 *_frame;
};


/* "cuda/bindings/driver.pxd":3707
 *     cdef anon_union15 _frame
 * 
 * cdef class CUdeviceptr:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr {
  PyObject_HEAD
  CUdeviceptr _pvt_val;
  CUdeviceptr *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3721
 *     cdef cydriver.CUdeviceptr* _pvt_ptr
 * 
 * cdef class CUdevice:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevice {
  PyObject_HEAD
  CUdevice _pvt_val;
  CUdevice *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3735
 *     cdef cydriver.CUdevice* _pvt_ptr
 * 
 * cdef class CUtexObject:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject {
  PyObject_HEAD
  CUtexObject _pvt_val;
  CUtexObject *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3749
 *     cdef cydriver.CUtexObject* _pvt_ptr
 * 
 * cdef class CUsurfObject:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject {
  PyObject_HEAD
  CUsurfObject _pvt_val;
  CUsurfObject *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3763
 *     cdef cydriver.CUsurfObject* _pvt_ptr
 * 
 * cdef class CUgraphConditionalHandle:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle {
  PyObject_HEAD
  CUgraphConditionalHandle _pvt_val;
  CUgraphConditionalHandle *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":3775
 *     cdef cydriver.CUgraphConditionalHandle* _pvt_ptr
 * 
 * cdef class CUuuid(CUuuid_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUuuid {
  struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":3789
 *     pass
 * 
 * cdef class CUmemFabricHandle_v1(CUmemFabricHandle_st):             # <<<<<<<<<<<<<<
 *     """
 *     Fabric handle - An opaque handle representing a memory allocation
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":3808
 *     pass
 * 
 * cdef class CUmemFabricHandle(CUmemFabricHandle_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Fabric handle - An opaque handle representing a memory allocation
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":3827
 *     pass
 * 
 * cdef class CUipcEventHandle_v1(CUipcEventHandle_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC event handle
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":3843
 *     pass
 * 
 * cdef class CUipcEventHandle(CUipcEventHandle_v1):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC event handle
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle {
  struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":3859
 *     pass
 * 
 * cdef class CUipcMemHandle_v1(CUipcMemHandle_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC mem handle
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":3875
 *     pass
 * 
 * cdef class CUipcMemHandle(CUipcMemHandle_v1):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC mem handle
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle {
  struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":3891
 *     pass
 * 
 * cdef class CUstreamBatchMemOpParams_v1(CUstreamBatchMemOpParams_union):             # <<<<<<<<<<<<<<
 *     """
 *     Per-operation parameters for cuStreamBatchMemOp
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union __pyx_base;
};


/* "cuda/bindings/driver.pxd":3922
 *     pass
 * 
 * cdef class CUstreamBatchMemOpParams(CUstreamBatchMemOpParams_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Per-operation parameters for cuStreamBatchMemOp
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams {
  struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":3953
 *     pass
 * 
 * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st):             # <<<<<<<<<<<<<<
 *     """
 *     Batch memory operation node parameters  Used in the legacy
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":3976
 *     pass
 * 
 * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Batch memory operation node parameters  Used in the legacy
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":3999
 *     pass
 * 
 * cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2(CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st):             # <<<<<<<<<<<<<<
 *     """
 *     Batch memory operation node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4021
 *     pass
 * 
 * cdef class CUasyncNotificationInfo(CUasyncNotificationInfo_st):             # <<<<<<<<<<<<<<
 *     """
 *     Information passed to the user via the async notification callback
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo {
  struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4040
 *     pass
 * 
 * cdef class CUdevprop_v1(CUdevprop_st):             # <<<<<<<<<<<<<<
 *     """
 *     Legacy device properties
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4074
 *     pass
 * 
 * cdef class CUdevprop(CUdevprop_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Legacy device properties
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop {
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":4108
 *     pass
 * 
 * cdef class CUaccessPolicyWindow_v1(CUaccessPolicyWindow_st):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies an access policy for a window, a contiguous extent of
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4144
 *     pass
 * 
 * cdef class CUaccessPolicyWindow(CUaccessPolicyWindow_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies an access policy for a window, a contiguous extent of
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow {
  struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":4180
 *     pass
 * 
 * cdef class CUDA_KERNEL_NODE_PARAMS_v1(CUDA_KERNEL_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4214
 *     pass
 * 
 * cdef class CUDA_KERNEL_NODE_PARAMS_v2(CUDA_KERNEL_NODE_PARAMS_v2_st):             # <<<<<<<<<<<<<<
 *     """
 *     GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4254
 *     pass
 * 
 * cdef class CUDA_KERNEL_NODE_PARAMS(CUDA_KERNEL_NODE_PARAMS_v2):             # <<<<<<<<<<<<<<
 *     """
 *     GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2 __pyx_base;
};


/* "cuda/bindings/driver.pxd":4294
 *     pass
 * 
 * cdef class CUDA_KERNEL_NODE_PARAMS_v3(CUDA_KERNEL_NODE_PARAMS_v3_st):             # <<<<<<<<<<<<<<
 *     """
 *     GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4334
 *     pass
 * 
 * cdef class CUDA_MEMSET_NODE_PARAMS_v1(CUDA_MEMSET_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memset node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4360
 *     pass
 * 
 * cdef class CUDA_MEMSET_NODE_PARAMS(CUDA_MEMSET_NODE_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Memset node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":4386
 *     pass
 * 
 * cdef class CUDA_MEMSET_NODE_PARAMS_v2(CUDA_MEMSET_NODE_PARAMS_v2_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memset node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4414
 *     pass
 * 
 * cdef class CUDA_HOST_NODE_PARAMS_v1(CUDA_HOST_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Host node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4432
 *     pass
 * 
 * cdef class CUDA_HOST_NODE_PARAMS(CUDA_HOST_NODE_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Host node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":4450
 *     pass
 * 
 * cdef class CUDA_HOST_NODE_PARAMS_v2(CUDA_HOST_NODE_PARAMS_v2_st):             # <<<<<<<<<<<<<<
 *     """
 *     Host node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4468
 *     pass
 * 
 * cdef class CUgraphEdgeData(CUgraphEdgeData_st):             # <<<<<<<<<<<<<<
 *     """
 *     Optional annotation for edges in a CUDA graph. Note, all edges
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData {
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4509
 *     pass
 * 
 * cdef class CUDA_GRAPH_INSTANTIATE_PARAMS(CUDA_GRAPH_INSTANTIATE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Graph instantiation parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4531
 *     pass
 * 
 * cdef class CUlaunchMemSyncDomainMap(CUlaunchMemSyncDomainMap_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memory Synchronization Domain map  See ::cudaLaunchMemSyncDomain.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap {
  struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4555
 *     pass
 * 
 * cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of CUlaunchAttribute
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue {
  struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union __pyx_base;
};


/* "cuda/bindings/driver.pxd":4642
 *     pass
 * 
 * cdef class CUlaunchAttribute(CUlaunchAttribute_st):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attribute
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute {
  struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4660
 *     pass
 * 
 * cdef class CUlaunchConfig(CUlaunchConfig_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA extensible launch configuration
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig {
  struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":4694
 *     pass
 * 
 * cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of CUlaunchAttribute
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue __pyx_base;
};


/* "cuda/bindings/driver.pxd":4781
 *     pass
 * 
 * cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of CUlaunchAttribute
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue {
  struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":4868
 *     pass
 * 
 * cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of CUlaunchAttribute
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue __pyx_base;
};


/* "cuda/bindings/driver.pxd":4955
 *     pass
 * 
 * cdef class CUstreamAttrValue(CUstreamAttrValue_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of CUlaunchAttribute
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue {
  struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5042
 *     pass
 * 
 * cdef class CUexecAffinitySmCount_v1(CUexecAffinitySmCount_st):             # <<<<<<<<<<<<<<
 *     """
 *     Value for CU_EXEC_AFFINITY_TYPE_SM_COUNT
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5058
 *     pass
 * 
 * cdef class CUexecAffinitySmCount(CUexecAffinitySmCount_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Value for CU_EXEC_AFFINITY_TYPE_SM_COUNT
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount {
  struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5074
 *     pass
 * 
 * cdef class CUexecAffinityParam_v1(CUexecAffinityParam_st):             # <<<<<<<<<<<<<<
 *     """
 *     Execution Affinity Parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5092
 *     pass
 * 
 * cdef class CUexecAffinityParam(CUexecAffinityParam_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Execution Affinity Parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam {
  struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5110
 *     pass
 * 
 * cdef class CUctxCigParam(CUctxCigParam_st):             # <<<<<<<<<<<<<<
 *     """
 *     CIG Context Create Params
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam {
  struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5128
 *     pass
 * 
 * cdef class CUctxCreateParams(CUctxCreateParams_st):             # <<<<<<<<<<<<<<
 *     """
 *     Params for creating CUDA context Exactly one of execAffinityParams
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams {
  struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5149
 *     pass
 * 
 * cdef class CUlibraryHostUniversalFunctionAndDataTable(CUlibraryHostUniversalFunctionAndDataTable_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable {
  struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5169
 *     pass
 * 
 * cdef class CUDA_MEMCPY2D_v2(CUDA_MEMCPY2D_st):             # <<<<<<<<<<<<<<
 *     """
 *     2D memory copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5215
 *     pass
 * 
 * cdef class CUDA_MEMCPY2D(CUDA_MEMCPY2D_v2):             # <<<<<<<<<<<<<<
 *     """
 *     2D memory copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5261
 *     pass
 * 
 * cdef class CUDA_MEMCPY3D_v2(CUDA_MEMCPY3D_st):             # <<<<<<<<<<<<<<
 *     """
 *     3D memory copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5326
 *     pass
 * 
 * cdef class CUDA_MEMCPY3D(CUDA_MEMCPY3D_v2):             # <<<<<<<<<<<<<<
 *     """
 *     3D memory copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5391
 *     pass
 * 
 * cdef class CUDA_MEMCPY3D_PEER_v1(CUDA_MEMCPY3D_PEER_st):             # <<<<<<<<<<<<<<
 *     """
 *     3D memory cross-context copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5457
 *     pass
 * 
 * cdef class CUDA_MEMCPY3D_PEER(CUDA_MEMCPY3D_PEER_v1):             # <<<<<<<<<<<<<<
 *     """
 *     3D memory cross-context copy parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5523
 *     pass
 * 
 * cdef class CUDA_MEMCPY_NODE_PARAMS(CUDA_MEMCPY_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memcpy node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5545
 *     pass
 * 
 * cdef class CUDA_ARRAY_DESCRIPTOR_v2(CUDA_ARRAY_DESCRIPTOR_st):             # <<<<<<<<<<<<<<
 *     """
 *     Array descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5567
 *     pass
 * 
 * cdef class CUDA_ARRAY_DESCRIPTOR(CUDA_ARRAY_DESCRIPTOR_v2):             # <<<<<<<<<<<<<<
 *     """
 *     Array descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5589
 *     pass
 * 
 * cdef class CUDA_ARRAY3D_DESCRIPTOR_v2(CUDA_ARRAY3D_DESCRIPTOR_st):             # <<<<<<<<<<<<<<
 *     """
 *     3D array descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5615
 *     pass
 * 
 * cdef class CUDA_ARRAY3D_DESCRIPTOR(CUDA_ARRAY3D_DESCRIPTOR_v2):             # <<<<<<<<<<<<<<
 *     """
 *     3D array descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5641
 *     pass
 * 
 * cdef class CUDA_ARRAY_SPARSE_PROPERTIES_v1(CUDA_ARRAY_SPARSE_PROPERTIES_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA array sparse properties
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5666
 *     pass
 * 
 * cdef class CUDA_ARRAY_SPARSE_PROPERTIES(CUDA_ARRAY_SPARSE_PROPERTIES_v1):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA array sparse properties
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5691
 *     pass
 * 
 * cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_v1(CUDA_ARRAY_MEMORY_REQUIREMENTS_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA array memory requirements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5711
 *     pass
 * 
 * cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA array memory requirements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5731
 *     pass
 * 
 * cdef class CUDA_RESOURCE_DESC_v1(CUDA_RESOURCE_DESC_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Resource descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5751
 *     pass
 * 
 * cdef class CUDA_RESOURCE_DESC(CUDA_RESOURCE_DESC_v1):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Resource descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5771
 *     pass
 * 
 * cdef class CUDA_TEXTURE_DESC_v1(CUDA_TEXTURE_DESC_st):             # <<<<<<<<<<<<<<
 *     """
 *     Texture descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5805
 *     pass
 * 
 * cdef class CUDA_TEXTURE_DESC(CUDA_TEXTURE_DESC_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Texture descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5839
 *     pass
 * 
 * cdef class CUDA_RESOURCE_VIEW_DESC_v1(CUDA_RESOURCE_VIEW_DESC_st):             # <<<<<<<<<<<<<<
 *     """
 *     Resource view descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5871
 *     pass
 * 
 * cdef class CUDA_RESOURCE_VIEW_DESC(CUDA_RESOURCE_VIEW_DESC_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Resource view descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5903
 *     pass
 * 
 * cdef class CUtensorMap(CUtensorMap_st):             # <<<<<<<<<<<<<<
 *     """
 *     Tensor map descriptor. Requires compiler support for aligning to
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap {
  struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5920
 *     pass
 * 
 * cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st):             # <<<<<<<<<<<<<<
 *     """
 *     GPU Direct v3 tokens
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5938
 *     pass
 * 
 * cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     GPU Direct v3 tokens
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":5956
 *     pass
 * 
 * cdef class CUDA_LAUNCH_PARAMS_v1(CUDA_LAUNCH_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Kernel launch parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":5990
 *     pass
 * 
 * cdef class CUDA_LAUNCH_PARAMS(CUDA_LAUNCH_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Kernel launch parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6024
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st):             # <<<<<<<<<<<<<<
 *     """
 *     External memory handle descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6048
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1):             # <<<<<<<<<<<<<<
 *     """
 *     External memory handle descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6072
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st):             # <<<<<<<<<<<<<<
 *     """
 *     External memory buffer descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6094
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1):             # <<<<<<<<<<<<<<
 *     """
 *     External memory buffer descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6116
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1(CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st):             # <<<<<<<<<<<<<<
 *     """
 *     External memory mipmap descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6139
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC(CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1):             # <<<<<<<<<<<<<<
 *     """
 *     External memory mipmap descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6162
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st):             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore handle descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6184
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1):             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore handle descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6206
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore signal parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6233
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore signal parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6260
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore wait parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6287
 *     pass
 * 
 * cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore wait parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6314
 *     pass
 * 
 * cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore signal node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6335
 *     pass
 * 
 * cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore signal node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6356
 *     pass
 * 
 * cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st):             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore signal node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6377
 *     pass
 * 
 * cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1(CUDA_EXT_SEM_WAIT_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6398
 *     pass
 * 
 * cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6419
 *     pass
 * 
 * cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st):             # <<<<<<<<<<<<<<
 *     """
 *     Semaphore wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6440
 *     pass
 * 
 * cdef class CUmemGenericAllocationHandle:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle {
  PyObject_HEAD
  CUmemGenericAllocationHandle _pvt_val;
  CUmemGenericAllocationHandle *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":6452
 *     cdef cydriver.CUmemGenericAllocationHandle* _pvt_ptr
 * 
 * cdef class CUarrayMapInfo_v1(CUarrayMapInfo_st):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the CUDA array or CUDA mipmapped array memory mapping
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6489
 *     pass
 * 
 * cdef class CUarrayMapInfo(CUarrayMapInfo_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the CUDA array or CUDA mipmapped array memory mapping
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo {
  struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6526
 *     pass
 * 
 * cdef class CUmemLocation_v1(CUmemLocation_st):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies a memory location.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6544
 *     pass
 * 
 * cdef class CUmemLocation(CUmemLocation_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies a memory location.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6562
 *     pass
 * 
 * cdef class CUmemAllocationProp_v1(CUmemAllocationProp_st):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the allocation properties for a allocation.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6590
 *     pass
 * 
 * cdef class CUmemAllocationProp(CUmemAllocationProp_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the allocation properties for a allocation.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6618
 *     pass
 * 
 * cdef class CUmulticastObjectProp_v1(CUmulticastObjectProp_st):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the properties for a multicast object.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6643
 *     pass
 * 
 * cdef class CUmulticastObjectProp(CUmulticastObjectProp_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the properties for a multicast object.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6668
 *     pass
 * 
 * cdef class CUmemAccessDesc_v1(CUmemAccessDesc_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memory access descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6686
 *     pass
 * 
 * cdef class CUmemAccessDesc(CUmemAccessDesc_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Memory access descriptor
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6704
 *     pass
 * 
 * cdef class CUgraphExecUpdateResultInfo_v1(CUgraphExecUpdateResultInfo_st):             # <<<<<<<<<<<<<<
 *     """
 *     Result information returned by cuGraphExecUpdate
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6727
 *     pass
 * 
 * cdef class CUgraphExecUpdateResultInfo(CUgraphExecUpdateResultInfo_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Result information returned by cuGraphExecUpdate
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo {
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6750
 *     pass
 * 
 * cdef class CUmemPoolProps_v1(CUmemPoolProps_st):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the properties of allocations made from the pool.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6784
 *     pass
 * 
 * cdef class CUmemPoolProps(CUmemPoolProps_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the properties of allocations made from the pool.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6818
 *     pass
 * 
 * cdef class CUmemPoolPtrExportData_v1(CUmemPoolPtrExportData_st):             # <<<<<<<<<<<<<<
 *     """
 *     Opaque data for exporting a pool allocation
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6834
 *     pass
 * 
 * cdef class CUmemPoolPtrExportData(CUmemPoolPtrExportData_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Opaque data for exporting a pool allocation
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6850
 *     pass
 * 
 * cdef class CUmemcpyAttributes_v1(CUmemcpyAttributes_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes specific to copies within a batch. For more details on
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6876
 *     pass
 * 
 * cdef class CUmemcpyAttributes(CUmemcpyAttributes_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes specific to copies within a batch. For more details on
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6902
 *     pass
 * 
 * cdef class CUoffset3D_v1(CUoffset3D_st):             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing offset into a CUarray in elements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6922
 *     pass
 * 
 * cdef class CUoffset3D(CUoffset3D_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing offset into a CUarray in elements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D {
  struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6942
 *     pass
 * 
 * cdef class CUextent3D_v1(CUextent3D_st):             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing width/height/depth of a CUarray in elements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":6962
 *     pass
 * 
 * cdef class CUextent3D(CUextent3D_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing width/height/depth of a CUarray in elements
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D {
  struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":6982
 *     pass
 * 
 * cdef class CUmemcpy3DOperand_v1(CUmemcpy3DOperand_st):             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing an operand for copy with cuMemcpy3DBatchAsync
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7000
 *     pass
 * 
 * cdef class CUmemcpy3DOperand(CUmemcpy3DOperand_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing an operand for copy with cuMemcpy3DBatchAsync
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":7018
 *     pass
 * 
 * cdef class CUDA_MEMCPY3D_BATCH_OP_v1(CUDA_MEMCPY3D_BATCH_OP_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7041
 *     pass
 * 
 * cdef class CUDA_MEMCPY3D_BATCH_OP(CUDA_MEMCPY3D_BATCH_OP_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":7064
 *     pass
 * 
 * cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1(CUDA_MEM_ALLOC_NODE_PARAMS_v1_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memory allocation node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7092
 *     pass
 * 
 * cdef class CUDA_MEM_ALLOC_NODE_PARAMS(CUDA_MEM_ALLOC_NODE_PARAMS_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Memory allocation node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":7120
 *     pass
 * 
 * cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2(CUDA_MEM_ALLOC_NODE_PARAMS_v2_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memory allocation node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7148
 *     pass
 * 
 * cdef class CUDA_MEM_FREE_NODE_PARAMS(CUDA_MEM_FREE_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memory free node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7164
 *     pass
 * 
 * cdef class CUDA_CHILD_GRAPH_NODE_PARAMS(CUDA_CHILD_GRAPH_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Child graph node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7186
 *     pass
 * 
 * cdef class CUDA_EVENT_RECORD_NODE_PARAMS(CUDA_EVENT_RECORD_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Event record node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7202
 *     pass
 * 
 * cdef class CUDA_EVENT_WAIT_NODE_PARAMS(CUDA_EVENT_WAIT_NODE_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Event wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7218
 *     pass
 * 
 * cdef class CUgraphNodeParams(CUgraphNodeParams_st):             # <<<<<<<<<<<<<<
 *     """
 *     Graph node parameters. See cuGraphAddNode.
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams {
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7266
 *     pass
 * 
 * cdef class CUcheckpointLockArgs(CUcheckpointLockArgs_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint optional lock arguments
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs {
  struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7287
 *     pass
 * 
 * cdef class CUcheckpointCheckpointArgs(CUcheckpointCheckpointArgs_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint optional checkpoint arguments
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs {
  struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7303
 *     pass
 * 
 * cdef class CUcheckpointGpuPair(CUcheckpointGpuPair_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint GPU UUID pairs for device remapping during restore
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair {
  struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7321
 *     pass
 * 
 * cdef class CUcheckpointRestoreArgs(CUcheckpointRestoreArgs_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint optional restore arguments
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs {
  struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7344
 *     pass
 * 
 * cdef class CUcheckpointUnlockArgs(CUcheckpointUnlockArgs_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA checkpoint optional unlock arguments
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs {
  struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7360
 *     pass
 * 
 * cdef class CUmemDecompressParams(CUmemDecompressParams_st):             # <<<<<<<<<<<<<<
 *     """
 *     Structure describing the parameters that compose a single
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7398
 *     pass
 * 
 * cdef class CUdevSmResource(CUdevSmResource_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource {
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7423
 *     pass
 * 
 * cdef class CUdevWorkqueueConfigResource(CUdevWorkqueueConfigResource_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource {
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7441
 *     pass
 * 
 * cdef class CUdevWorkqueueResource(CUdevWorkqueueResource_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource {
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7455
 *     pass
 * 
 * cdef class CU_DEV_SM_RESOURCE_GROUP_PARAMS(CU_DEV_SM_RESOURCE_GROUP_PARAMS_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS {
  struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7480
 *     pass
 * 
 * cdef class CUdevResource_v1(CUdevResource_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7508
 *     pass
 * 
 * cdef class CUdevResource(CUdevResource_v1):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource {
  struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":7536
 *     pass
 * 
 * cdef class CUeglFrame_v1(CUeglFrame_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGLFrame structure Descriptor - structure defining one frame
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1 {
  struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st __pyx_base;
};


/* "cuda/bindings/driver.pxd":7572
 *     pass
 * 
 * cdef class CUeglFrame(CUeglFrame_v1):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGLFrame structure Descriptor - structure defining one frame
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame {
  struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1 __pyx_base;
};


/* "cuda/bindings/driver.pxd":7608
 *     pass
 * 
 * cdef class cuuint32_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t {
  PyObject_HEAD
  cuuint32_t _pvt_val;
  cuuint32_t *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7620
 *     cdef cydriver.cuuint32_t* _pvt_ptr
 * 
 * cdef class cuuint64_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t {
  PyObject_HEAD
  cuuint64_t _pvt_val;
  cuuint64_t *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7632
 *     cdef cydriver.cuuint64_t* _pvt_ptr
 * 
 * cdef class CUdeviceptr_v2:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr_v2 {
  PyObject_HEAD
  CUdeviceptr_v2 _pvt_val;
  CUdeviceptr_v2 *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7646
 *     cdef cydriver.CUdeviceptr_v2* _pvt_ptr
 * 
 * cdef class CUdevice_v1:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUdevice_v1 {
  PyObject_HEAD
  CUdevice_v1 _pvt_val;
  CUdevice_v1 *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7660
 *     cdef cydriver.CUdevice_v1* _pvt_ptr
 * 
 * cdef class CUtexObject_v1:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject_v1 {
  PyObject_HEAD
  CUtexObject_v1 _pvt_val;
  CUtexObject_v1 *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7674
 *     cdef cydriver.CUtexObject_v1* _pvt_ptr
 * 
 * cdef class CUsurfObject_v1:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject_v1 {
  PyObject_HEAD
  CUsurfObject_v1 _pvt_val;
  CUsurfObject_v1 *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7688
 *     cdef cydriver.CUsurfObject_v1* _pvt_ptr
 * 
 * cdef class CUmemGenericAllocationHandle_v1:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1 {
  PyObject_HEAD
  CUmemGenericAllocationHandle_v1 _pvt_val;
  CUmemGenericAllocationHandle_v1 *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7700
 *     cdef cydriver.CUmemGenericAllocationHandle_v1* _pvt_ptr
 * 
 * cdef class CUlogIterator:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_CUlogIterator {
  PyObject_HEAD
  CUlogIterator _pvt_val;
  CUlogIterator *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7712
 *     cdef cydriver.CUlogIterator* _pvt_ptr
 * 
 * cdef class GLenum:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_GLenum {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_GLenum _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_GLenum *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7724
 *     cdef cydriver.GLenum* _pvt_ptr
 * 
 * cdef class GLuint:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_GLuint {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_GLuint _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_GLuint *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7736
 *     cdef cydriver.GLuint* _pvt_ptr
 * 
 * cdef class EGLint:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_EGLint {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_EGLint _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_EGLint *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7748
 *     cdef cydriver.EGLint* _pvt_ptr
 * 
 * cdef class VdpDevice:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_VdpDevice {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_VdpDevice _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_VdpDevice *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7760
 *     cdef cydriver.VdpDevice* _pvt_ptr
 * 
 * cdef class VdpGetProcAddress:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_VdpGetProcAddress {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_VdpGetProcAddress *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7772
 *     cdef cydriver.VdpGetProcAddress* _pvt_ptr
 * 
 * cdef class VdpVideoSurface:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_VdpVideoSurface {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_VdpVideoSurface _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_VdpVideoSurface *_pvt_ptr;
};


/* "cuda/bindings/driver.pxd":7784
 *     cdef cydriver.VdpVideoSurface* _pvt_ptr
 * 
 * cdef class VdpOutputSurface:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_6driver_VdpOutputSurface {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_8cydriver_VdpOutputSurface _pvt_val;
  __pyx_t_4cuda_8bindings_8cydriver_VdpOutputSurface *_pvt_ptr;
};


/* "cuda/bindings/_lib/utils.pxd":9
 * from libcpp.vector cimport vector
 * 
 * cdef class _HelperKernelParams:             # <<<<<<<<<<<<<<
 *     cdef Py_buffer _pybuffer
 *     cdef bint _pyobj_acquired
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams {
  PyObject_HEAD
  Py_buffer _pybuffer;
  int _pyobj_acquired;
  void **_ckernelParams;
  char *_ckernelParamsData;
  int _length;
  int _malloc_list_created;
};


/* "cuda/bindings/_lib/utils.pxd":17
 *     cdef bint _malloc_list_created
 * 
 * cdef class _HelperInputVoidPtr:             # <<<<<<<<<<<<<<
 *     cdef Py_buffer _pybuffer
 *     cdef void* _cptr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr {
  PyObject_HEAD
  Py_buffer _pybuffer;
  void *_cptr;
  int _pyobj_acquired;
};


/* "cuda/bindings/_lib/utils.pxd":22
 *     cdef bint _pyobj_acquired
 * 
 * cdef class _HelperCUmemPool_attribute:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUmemPool_attribute_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute {
  PyObject_HEAD
  void *_cptr;
  enum CUmemPool_attribute_enum _attr;
  int _is_getter;
  int _int_val;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_cuuint64_t_val;
};


/* "cuda/bindings/_lib/utils.pxd":31
 *     cdef driver.cuuint64_t _cuuint64_t_val
 * 
 * cdef class _HelperCUmem_range_attribute:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUmem_range_attribute_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute {
  PyObject_HEAD
  void *_cptr;
  enum CUmem_range_attribute_enum _attr;
  size_t _data_size;
  int _int_val;
  int *_int_val_list;
};


/* "cuda/bindings/_lib/utils.pxd":40
 *     cdef int* _int_val_list # 32 bit integer array
 * 
 * cdef class _HelperCUpointer_attribute:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUpointer_attribute_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute {
  PyObject_HEAD
  void *_cptr;
  enum CUpointer_attribute_enum _attr;
  int _is_getter;
  struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *_ctx;
  unsigned int _uint;
  struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *_devptr;
  void **_void;
  struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS *_token;
  int _bool;
  unsigned PY_LONG_LONG _ull;
  size_t _size;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool *_mempool;
};


/* "cuda/bindings/_lib/utils.pxd":56
 *     cdef driver.CUmemoryPool _mempool
 * 
 * cdef class _HelperCUgraphMem_attribute:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUgraphMem_attribute_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute {
  PyObject_HEAD
  void *_cptr;
  enum CUgraphMem_attribute_enum _attr;
  int _is_getter;
  struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *_cuuint64_t_val;
};


/* "cuda/bindings/_lib/utils.pxd":64
 *     cdef driver.cuuint64_t _cuuint64_t_val
 * 
 * cdef class _HelperCUjit_option:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUjit_option_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option {
  PyObject_HEAD
  void *_cptr;
  enum CUjit_option_enum _attr;
  unsigned int _uint;
  float _float;
  char *_charstar;
  enum CUjit_target_enum _target;
  enum CUjit_fallback_enum _fallback;
  int _int;
  enum CUjit_cacheMode_enum _cacheMode;
  std::vector<char *>  _charstarstar;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *_voidstarstar;
};


/* "cuda/bindings/_lib/utils.pxd":79
 *     cdef _InputVoidPtrPtrHelper _voidstarstar # list of addresses
 * 
 * cdef class _HelperCudaJitOption:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cyruntime.cudaJitOption _attr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption {
  PyObject_HEAD
  void *_cptr;
  enum cudaJitOption _attr;
  unsigned int _uint;
  float _float;
  char *_charstar;
  enum cudaJit_Fallback _fallback;
  int _int;
  enum cudaJit_CacheMode _cacheMode;
};


/* "cuda/bindings/_lib/utils.pxd":91
 *     cdef cyruntime.cudaJit_CacheMode _cacheMode
 * 
 * cdef class _HelperCUlibraryOption:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUlibraryOption_enum _attr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption {
  PyObject_HEAD
  void *_cptr;
  enum CUlibraryOption_enum _attr;
  unsigned int _uint;
};


/* "cuda/bindings/_lib/utils.pxd":98
 *     cdef unsigned int _uint
 * 
 * cdef class _HelperCudaLibraryOption:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cyruntime.cudaLibraryOption _attr
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption {
  PyObject_HEAD
  void *_cptr;
  enum cudaLibraryOption _attr;
  unsigned int _uint;
};


/* "cuda/bindings/_lib/utils.pxd":105
 *     cdef unsigned int _uint
 * 
 * cdef class _HelperCUmemAllocationHandleType:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUmemAllocationHandleType_enum _type
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType {
  PyObject_HEAD
  void *_cptr;
  enum CUmemAllocationHandleType_enum _type;
  int _int;
  void *_handle;
  unsigned int _d3dkmt_handle;
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle *_mem_fabric_handle;
};


/* "cuda/bindings/_lib/utils.pxd":115
 *     cdef driver.CUmemFabricHandle _mem_fabric_handle
 * 
 * cdef class _InputVoidPtrPtrHelper:             # <<<<<<<<<<<<<<
 *     cdef void** _cptr
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper {
  PyObject_HEAD
  void **_cptr;
};


/* "cuda/bindings/_lib/utils.pxd":118
 *     cdef void** _cptr
 * 
 * cdef class _HelperCUcoredumpSettings:             # <<<<<<<<<<<<<<
 *     cdef void* _cptr
 *     cdef cydriver.CUcoredumpSettings_enum _attrib
*/
struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings {
  PyObject_HEAD
  void *_cptr;
  enum CUcoredumpSettings_enum _attrib;
  int _is_getter;
  size_t _size;
  int _bool;
  char *_charstar;
};


/* "cuda/bindings/runtime.pxd":10
 * cimport cuda.bindings.driver as driver
 * 
 * cdef class cudaDevResourceDesc_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t {
  PyObject_HEAD
  cudaDevResourceDesc_t _pvt_val;
  cudaDevResourceDesc_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":24
 *     cdef cyruntime.cudaDevResourceDesc_t* _pvt_ptr
 * 
 * cdef class cudaExecutionContext_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t {
  PyObject_HEAD
  cudaExecutionContext_t _pvt_val;
  cudaExecutionContext_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":38
 *     cdef cyruntime.cudaExecutionContext_t* _pvt_ptr
 * 
 * cdef class cudaArray_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t {
  PyObject_HEAD
  cudaArray_t _pvt_val;
  cudaArray_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":52
 *     cdef cyruntime.cudaArray_t* _pvt_ptr
 * 
 * cdef class cudaArray_const_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t {
  PyObject_HEAD
  cudaArray_const_t _pvt_val;
  cudaArray_const_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":66
 *     cdef cyruntime.cudaArray_const_t* _pvt_ptr
 * 
 * cdef class cudaMipmappedArray_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t {
  PyObject_HEAD
  cudaMipmappedArray_t _pvt_val;
  cudaMipmappedArray_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":80
 *     cdef cyruntime.cudaMipmappedArray_t* _pvt_ptr
 * 
 * cdef class cudaMipmappedArray_const_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t {
  PyObject_HEAD
  cudaMipmappedArray_const_t _pvt_val;
  cudaMipmappedArray_const_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":94
 *     cdef cyruntime.cudaMipmappedArray_const_t* _pvt_ptr
 * 
 * cdef class cudaGraphicsResource_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t {
  PyObject_HEAD
  cudaGraphicsResource_t _pvt_val;
  cudaGraphicsResource_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":108
 *     cdef cyruntime.cudaGraphicsResource_t* _pvt_ptr
 * 
 * cdef class cudaExternalMemory_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t {
  PyObject_HEAD
  cudaExternalMemory_t _pvt_val;
  cudaExternalMemory_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":122
 *     cdef cyruntime.cudaExternalMemory_t* _pvt_ptr
 * 
 * cdef class cudaExternalSemaphore_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t {
  PyObject_HEAD
  cudaExternalSemaphore_t _pvt_val;
  cudaExternalSemaphore_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":136
 *     cdef cyruntime.cudaExternalSemaphore_t* _pvt_ptr
 * 
 * cdef class cudaKernel_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t {
  PyObject_HEAD
  cudaKernel_t _pvt_val;
  cudaKernel_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":150
 *     cdef cyruntime.cudaKernel_t* _pvt_ptr
 * 
 * cdef class cudaLibrary_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t {
  PyObject_HEAD
  cudaLibrary_t _pvt_val;
  cudaLibrary_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":164
 *     cdef cyruntime.cudaLibrary_t* _pvt_ptr
 * 
 * cdef class cudaGraphDeviceNode_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t {
  PyObject_HEAD
  cudaGraphDeviceNode_t _pvt_val;
  cudaGraphDeviceNode_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":178
 *     cdef cyruntime.cudaGraphDeviceNode_t* _pvt_ptr
 * 
 * cdef class cudaAsyncCallbackHandle_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t {
  PyObject_HEAD
  cudaAsyncCallbackHandle_t _pvt_val;
  cudaAsyncCallbackHandle_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":192
 *     cdef cyruntime.cudaAsyncCallbackHandle_t* _pvt_ptr
 * 
 * cdef class cudaLogsCallbackHandle:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle {
  PyObject_HEAD
  cudaLogsCallbackHandle _pvt_val;
  cudaLogsCallbackHandle *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":204
 *     cdef cyruntime.cudaLogsCallbackHandle* _pvt_ptr
 * 
 * cdef class EGLImageKHR:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":216
 *     cdef cyruntime.EGLImageKHR* _pvt_ptr
 * 
 * cdef class EGLStreamKHR:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":228
 *     cdef cyruntime.EGLStreamKHR* _pvt_ptr
 * 
 * cdef class EGLSyncKHR:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":240
 *     cdef cyruntime.EGLSyncKHR* _pvt_ptr
 * 
 * cdef class cudaHostFn_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t {
  PyObject_HEAD
  cudaHostFn_t _pvt_val;
  cudaHostFn_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":252
 *     cdef cyruntime.cudaHostFn_t* _pvt_ptr
 * 
 * cdef class cudaAsyncCallback:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback {
  PyObject_HEAD
  cudaAsyncCallback _pvt_val;
  cudaAsyncCallback *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":264
 *     cdef cyruntime.cudaAsyncCallback* _pvt_ptr
 * 
 * cdef class cudaStreamCallback_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t {
  PyObject_HEAD
  cudaStreamCallback_t _pvt_val;
  cudaStreamCallback_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":276
 *     cdef cyruntime.cudaStreamCallback_t* _pvt_ptr
 * 
 * cdef class cudaLogsCallback_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t {
  PyObject_HEAD
  cudaLogsCallback_t _pvt_val;
  cudaLogsCallback_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":288
 *     cdef cyruntime.cudaLogsCallback_t* _pvt_ptr
 * 
 * cdef class dim3:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_dim3 {
  PyObject_HEAD
  struct dim3 _pvt_val;
  struct dim3 *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":307
 *     cdef cyruntime.dim3* _pvt_ptr
 * 
 * cdef class cudaChannelFormatDesc:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Channel format descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc {
  PyObject_HEAD
  struct cudaChannelFormatDesc _pvt_val;
  struct cudaChannelFormatDesc *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":332
 *     cdef cyruntime.cudaChannelFormatDesc* _pvt_ptr
 * 
 * cdef class anon_struct0:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 {
  PyObject_HEAD
  struct cudaArraySparseProperties *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":350
 *     cdef cyruntime.cudaArraySparseProperties* _pvt_ptr
 * 
 * cdef class cudaArraySparseProperties:             # <<<<<<<<<<<<<<
 *     """
 *     Sparse CUDA array and CUDA mipmapped array properties
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties {
  PyObject_HEAD
  struct cudaArraySparseProperties _pvt_val;
  struct cudaArraySparseProperties *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *_tileExtent;
};


/* "cuda/bindings/runtime.pxd":376
 *     cdef anon_struct0 _tileExtent
 * 
 * cdef class cudaArrayMemoryRequirements:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA array and CUDA mipmapped array memory requirements
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements {
  PyObject_HEAD
  struct cudaArrayMemoryRequirements _pvt_val;
  struct cudaArrayMemoryRequirements *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":397
 *     cdef cyruntime.cudaArrayMemoryRequirements* _pvt_ptr
 * 
 * cdef class cudaPitchedPtr:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Pitched memory pointer  ::make_cudaPitchedPtr
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr {
  PyObject_HEAD
  struct cudaPitchedPtr _pvt_val;
  struct cudaPitchedPtr *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":420
 *     cdef cyruntime.cudaPitchedPtr* _pvt_ptr
 * 
 * cdef class cudaExtent:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA extent  ::make_cudaExtent
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent {
  PyObject_HEAD
  struct cudaExtent _pvt_val;
  struct cudaExtent *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":442
 *     cdef cyruntime.cudaExtent* _pvt_ptr
 * 
 * cdef class cudaPos:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA 3D position  ::make_cudaPos
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos {
  PyObject_HEAD
  struct cudaPos _pvt_val;
  struct cudaPos *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":463
 *     cdef cyruntime.cudaPos* _pvt_ptr
 * 
 * cdef class cudaMemcpy3DParms:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA 3D memory copying parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms {
  PyObject_HEAD
  struct cudaMemcpy3DParms _pvt_val;
  struct cudaMemcpy3DParms *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *_srcArray;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *_srcPos;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *_srcPtr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *_dstArray;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *_dstPos;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *_dstPtr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *_extent;
};


/* "cuda/bindings/runtime.pxd":501
 *     cdef cudaExtent _extent
 * 
 * cdef class cudaMemcpyNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     Memcpy node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams {
  PyObject_HEAD
  struct cudaMemcpyNodeParams _pvt_val;
  struct cudaMemcpyNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *_ctx;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *_copyParams;
};


/* "cuda/bindings/runtime.pxd":527
 *     cdef cudaMemcpy3DParms _copyParams
 * 
 * cdef class cudaMemcpy3DPeerParms:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA 3D cross-device memory copying parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms {
  PyObject_HEAD
  struct cudaMemcpy3DPeerParms _pvt_val;
  struct cudaMemcpy3DPeerParms *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *_srcArray;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *_srcPos;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *_srcPtr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *_dstArray;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *_dstPos;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *_dstPtr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *_extent;
};


/* "cuda/bindings/runtime.pxd":567
 *     cdef cudaExtent _extent
 * 
 * cdef class cudaMemsetParams:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Memset node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams {
  PyObject_HEAD
  struct cudaMemsetParams _pvt_val;
  struct cudaMemsetParams *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":594
 *     cdef cyruntime.cudaMemsetParams* _pvt_ptr
 * 
 * cdef class cudaMemsetParamsV2:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Memset node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 {
  PyObject_HEAD
  struct cudaMemsetParamsV2 _pvt_val;
  struct cudaMemsetParamsV2 *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *_ctx;
};


/* "cuda/bindings/runtime.pxd":625
 *     cdef cudaExecutionContext_t _ctx
 * 
 * cdef class cudaAccessPolicyWindow:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies an access policy for a window, a contiguous extent of
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow {
  PyObject_HEAD
  struct cudaAccessPolicyWindow _pvt_val;
  struct cudaAccessPolicyWindow *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":661
 *     cdef cyruntime.cudaAccessPolicyWindow* _pvt_ptr
 * 
 * cdef class cudaHostNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA host node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams {
  PyObject_HEAD
  struct cudaHostNodeParams _pvt_val;
  struct cudaHostNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *_fn;
};


/* "cuda/bindings/runtime.pxd":681
 *     cdef cudaHostFn_t _fn
 * 
 * cdef class cudaHostNodeParamsV2:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA host node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 {
  PyObject_HEAD
  struct cudaHostNodeParamsV2 _pvt_val;
  struct cudaHostNodeParamsV2 *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *_fn;
};


/* "cuda/bindings/runtime.pxd":701
 *     cdef cudaHostFn_t _fn
 * 
 * cdef class anon_struct1:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 {
  PyObject_HEAD
  struct cudaResourceDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *_array;
};


/* "cuda/bindings/runtime.pxd":716
 *     cdef cudaArray_t _array
 * 
 * cdef class anon_struct2:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 {
  PyObject_HEAD
  struct cudaResourceDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *_mipmap;
};


/* "cuda/bindings/runtime.pxd":731
 *     cdef cudaMipmappedArray_t _mipmap
 * 
 * cdef class anon_struct3:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 {
  PyObject_HEAD
  struct cudaResourceDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *_desc;
};


/* "cuda/bindings/runtime.pxd":750
 *     cdef cudaChannelFormatDesc _desc
 * 
 * cdef class anon_struct4:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 {
  PyObject_HEAD
  struct cudaResourceDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *_desc;
};


/* "cuda/bindings/runtime.pxd":773
 *     cdef cudaChannelFormatDesc _desc
 * 
 * cdef class anon_struct5:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 {
  PyObject_HEAD
  struct cudaResourceDesc *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":787
 *     cdef cyruntime.cudaResourceDesc* _pvt_ptr
 * 
 * cdef class anon_union0:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 {
  PyObject_HEAD
  struct cudaResourceDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *_array;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *_mipmap;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *_linear;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *_pitch2D;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *_reserved;
};


/* "cuda/bindings/runtime.pxd":814
 *     cdef anon_struct5 _reserved
 * 
 * cdef class cudaResourceDesc:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA resource descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc {
  PyObject_HEAD
  struct cudaResourceDesc *_val_ptr;
  struct cudaResourceDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *_res;
};


/* "cuda/bindings/runtime.pxd":836
 *     cdef anon_union0 _res
 * 
 * cdef class cudaResourceViewDesc:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA resource view descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc {
  PyObject_HEAD
  struct cudaResourceViewDesc _pvt_val;
  struct cudaResourceViewDesc *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":869
 *     cdef cyruntime.cudaResourceViewDesc* _pvt_ptr
 * 
 * cdef class cudaPointerAttributes:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA pointer attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes {
  PyObject_HEAD
  struct cudaPointerAttributes _pvt_val;
  struct cudaPointerAttributes *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":905
 *     cdef cyruntime.cudaPointerAttributes* _pvt_ptr
 * 
 * cdef class cudaFuncAttributes:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA function attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes {
  PyObject_HEAD
  struct cudaFuncAttributes _pvt_val;
  struct cudaFuncAttributes *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":991
 *     cdef cyruntime.cudaFuncAttributes* _pvt_ptr
 * 
 * cdef class cudaMemLocation:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies a memory location.  To specify a gpu, set type =
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation {
  PyObject_HEAD
  struct cudaMemLocation _pvt_val;
  struct cudaMemLocation *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1013
 *     cdef cyruntime.cudaMemLocation* _pvt_ptr
 * 
 * cdef class cudaMemAccessDesc:             # <<<<<<<<<<<<<<
 *     """
 *     Memory access descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc {
  PyObject_HEAD
  struct cudaMemAccessDesc _pvt_val;
  struct cudaMemAccessDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *_location;
};


/* "cuda/bindings/runtime.pxd":1033
 *     cdef cudaMemLocation _location
 * 
 * cdef class cudaMemPoolProps:             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the properties of allocations made from the pool.
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps {
  PyObject_HEAD
  struct cudaMemPoolProps _pvt_val;
  struct cudaMemPoolProps *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *_location;
};


/* "cuda/bindings/runtime.pxd":1069
 *     cdef cudaMemLocation _location
 * 
 * cdef class cudaMemPoolPtrExportData:             # <<<<<<<<<<<<<<
 *     """
 *     Opaque data for exporting a pool allocation
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData {
  PyObject_HEAD
  struct cudaMemPoolPtrExportData _pvt_val;
  struct cudaMemPoolPtrExportData *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1086
 *     cdef cyruntime.cudaMemPoolPtrExportData* _pvt_ptr
 * 
 * cdef class cudaMemAllocNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     Memory allocation node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams {
  PyObject_HEAD
  struct cudaMemAllocNodeParams _pvt_val;
  struct cudaMemAllocNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *_poolProps;
  size_t _accessDescs_length;
  struct cudaMemAccessDesc *_accessDescs;
};


/* "cuda/bindings/runtime.pxd":1118
 *     cdef cyruntime.cudaMemAccessDesc* _accessDescs
 * 
 * cdef class cudaMemAllocNodeParamsV2:             # <<<<<<<<<<<<<<
 *     """
 *     Memory allocation node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 {
  PyObject_HEAD
  struct cudaMemAllocNodeParamsV2 _pvt_val;
  struct cudaMemAllocNodeParamsV2 *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *_poolProps;
  size_t _accessDescs_length;
  struct cudaMemAccessDesc *_accessDescs;
};


/* "cuda/bindings/runtime.pxd":1150
 *     cdef cyruntime.cudaMemAccessDesc* _accessDescs
 * 
 * cdef class cudaMemFreeNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     Memory free node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams {
  PyObject_HEAD
  struct cudaMemFreeNodeParams _pvt_val;
  struct cudaMemFreeNodeParams *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1167
 *     cdef cyruntime.cudaMemFreeNodeParams* _pvt_ptr
 * 
 * cdef class cudaMemcpyAttributes:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes specific to copies within a batch. For more details on
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes {
  PyObject_HEAD
  struct cudaMemcpyAttributes _pvt_val;
  struct cudaMemcpyAttributes *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *_srcLocHint;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *_dstLocHint;
};


/* "cuda/bindings/runtime.pxd":1197
 *     cdef cudaMemLocation _dstLocHint
 * 
 * cdef class cudaOffset3D:             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing offset into a cudaArray_t in elements
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D {
  PyObject_HEAD
  struct cudaOffset3D _pvt_val;
  struct cudaOffset3D *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1218
 *     cdef cyruntime.cudaOffset3D* _pvt_ptr
 * 
 * cdef class anon_struct6:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 {
  PyObject_HEAD
  struct cudaMemcpy3DOperand *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *_locHint;
};


/* "cuda/bindings/runtime.pxd":1239
 *     cdef cudaMemLocation _locHint
 * 
 * cdef class anon_struct7:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 {
  PyObject_HEAD
  struct cudaMemcpy3DOperand *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *_array;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *_offset;
};


/* "cuda/bindings/runtime.pxd":1257
 *     cdef cudaOffset3D _offset
 * 
 * cdef class anon_union1:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 {
  PyObject_HEAD
  struct cudaMemcpy3DOperand *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *_array;
};


/* "cuda/bindings/runtime.pxd":1275
 *     cdef anon_struct7 _array
 * 
 * cdef class cudaMemcpy3DOperand:             # <<<<<<<<<<<<<<
 *     """
 *     Struct representing an operand for copy with cudaMemcpy3DBatchAsync
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand {
  PyObject_HEAD
  struct cudaMemcpy3DOperand *_val_ptr;
  struct cudaMemcpy3DOperand *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *_op;
};


/* "cuda/bindings/runtime.pxd":1295
 *     cdef anon_union1 _op
 * 
 * cdef class cudaMemcpy3DBatchOp:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp {
  PyObject_HEAD
  struct cudaMemcpy3DBatchOp _pvt_val;
  struct cudaMemcpy3DBatchOp *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *_src;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *_dst;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *_extent;
};


/* "cuda/bindings/runtime.pxd":1322
 *     cdef cudaExtent _extent
 * 
 * cdef class CUuuid_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st {
  PyObject_HEAD
  struct CUuuid_st _pvt_val;
  struct CUuuid_st *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1337
 *     cdef cyruntime.CUuuid_st* _pvt_ptr
 * 
 * cdef class cudaDeviceProp:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device properties
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp {
  PyObject_HEAD
  struct cudaDeviceProp _pvt_val;
  struct cudaDeviceProp *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *_uuid;
};


/* "cuda/bindings/runtime.pxd":1562
 *     cdef cudaUUID_t _uuid
 * 
 * cdef class cudaIpcEventHandle_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC event handle
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st {
  PyObject_HEAD
  struct cudaIpcEventHandle_st _pvt_val;
  struct cudaIpcEventHandle_st *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1579
 *     cdef cyruntime.cudaIpcEventHandle_st* _pvt_ptr
 * 
 * cdef class cudaIpcMemHandle_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC memory handle
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st {
  PyObject_HEAD
  struct cudaIpcMemHandle_st _pvt_val;
  struct cudaIpcMemHandle_st *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1596
 *     cdef cyruntime.cudaIpcMemHandle_st* _pvt_ptr
 * 
 * cdef class cudaMemFabricHandle_st:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st {
  PyObject_HEAD
  struct cudaMemFabricHandle_st _pvt_val;
  struct cudaMemFabricHandle_st *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1611
 *     cdef cyruntime.cudaMemFabricHandle_st* _pvt_ptr
 * 
 * cdef class anon_struct8:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 {
  PyObject_HEAD
  struct cudaExternalMemoryHandleDesc *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1627
 *     cdef cyruntime.cudaExternalMemoryHandleDesc* _pvt_ptr
 * 
 * cdef class anon_union2:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 {
  PyObject_HEAD
  struct cudaExternalMemoryHandleDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *_win32;
};


/* "cuda/bindings/runtime.pxd":1646
 *     cdef anon_struct8 _win32
 * 
 * cdef class cudaExternalMemoryHandleDesc:             # <<<<<<<<<<<<<<
 *     """
 *     External memory handle descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc {
  PyObject_HEAD
  struct cudaExternalMemoryHandleDesc *_val_ptr;
  struct cudaExternalMemoryHandleDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *_handle;
};


/* "cuda/bindings/runtime.pxd":1672
 *     cdef anon_union2 _handle
 * 
 * cdef class cudaExternalMemoryBufferDesc:             # <<<<<<<<<<<<<<
 *     """
 *     External memory buffer descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc {
  PyObject_HEAD
  struct cudaExternalMemoryBufferDesc _pvt_val;
  struct cudaExternalMemoryBufferDesc *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1695
 *     cdef cyruntime.cudaExternalMemoryBufferDesc* _pvt_ptr
 * 
 * cdef class cudaExternalMemoryMipmappedArrayDesc:             # <<<<<<<<<<<<<<
 *     """
 *     External memory mipmap descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc {
  PyObject_HEAD
  struct cudaExternalMemoryMipmappedArrayDesc _pvt_val;
  struct cudaExternalMemoryMipmappedArrayDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *_formatDesc;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *_extent;
};


/* "cuda/bindings/runtime.pxd":1726
 *     cdef cudaExtent _extent
 * 
 * cdef class anon_struct9:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 {
  PyObject_HEAD
  struct cudaExternalSemaphoreHandleDesc *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1742
 *     cdef cyruntime.cudaExternalSemaphoreHandleDesc* _pvt_ptr
 * 
 * cdef class anon_union3:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 {
  PyObject_HEAD
  struct cudaExternalSemaphoreHandleDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *_win32;
};


/* "cuda/bindings/runtime.pxd":1761
 *     cdef anon_struct9 _win32
 * 
 * cdef class cudaExternalSemaphoreHandleDesc:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore handle descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc {
  PyObject_HEAD
  struct cudaExternalSemaphoreHandleDesc *_val_ptr;
  struct cudaExternalSemaphoreHandleDesc *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *_handle;
};


/* "cuda/bindings/runtime.pxd":1785
 *     cdef anon_union3 _handle
 * 
 * cdef class anon_struct10:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 {
  PyObject_HEAD
  struct cudaExternalSemaphoreSignalParams *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1799
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr
 * 
 * cdef class anon_union4:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 {
  PyObject_HEAD
  struct cudaExternalSemaphoreSignalParams *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1815
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr
 * 
 * cdef class anon_struct11:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 {
  PyObject_HEAD
  struct cudaExternalSemaphoreSignalParams *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1829
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr
 * 
 * cdef class anon_struct12:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 {
  PyObject_HEAD
  struct cudaExternalSemaphoreSignalParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *_fence;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *_nvSciSync;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *_keyedMutex;
};


/* "cuda/bindings/runtime.pxd":1852
 *     cdef anon_struct11 _keyedMutex
 * 
 * cdef class cudaExternalSemaphoreSignalParams:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore signal parameters, compatible with driver type
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams {
  PyObject_HEAD
  struct cudaExternalSemaphoreSignalParams _pvt_val;
  struct cudaExternalSemaphoreSignalParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *_params;
};


/* "cuda/bindings/runtime.pxd":1881
 *     cdef anon_struct12 _params
 * 
 * cdef class anon_struct13:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 {
  PyObject_HEAD
  struct cudaExternalSemaphoreWaitParams *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1895
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr
 * 
 * cdef class anon_union5:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 {
  PyObject_HEAD
  struct cudaExternalSemaphoreWaitParams *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1911
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr
 * 
 * cdef class anon_struct14:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 {
  PyObject_HEAD
  struct cudaExternalSemaphoreWaitParams *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":1927
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr
 * 
 * cdef class anon_struct15:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 {
  PyObject_HEAD
  struct cudaExternalSemaphoreWaitParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *_fence;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *_nvSciSync;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *_keyedMutex;
};


/* "cuda/bindings/runtime.pxd":1950
 *     cdef anon_struct14 _keyedMutex
 * 
 * cdef class cudaExternalSemaphoreWaitParams:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore wait parameters, compatible with driver type
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams {
  PyObject_HEAD
  struct cudaExternalSemaphoreWaitParams _pvt_val;
  struct cudaExternalSemaphoreWaitParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *_params;
};


/* "cuda/bindings/runtime.pxd":1979
 *     cdef anon_struct15 _params
 * 
 * cdef class cudaDevSmResource:             # <<<<<<<<<<<<<<
 *     """
 *     Data for SM-related resources All parameters in this structure are
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource {
  PyObject_HEAD
  struct cudaDevSmResource _pvt_val;
  struct cudaDevSmResource *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2008
 *     cdef cyruntime.cudaDevSmResource* _pvt_ptr
 * 
 * cdef class cudaDevWorkqueueConfigResource:             # <<<<<<<<<<<<<<
 *     """
 *     Data for workqueue configuration related resources
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource {
  PyObject_HEAD
  struct cudaDevWorkqueueConfigResource _pvt_val;
  struct cudaDevWorkqueueConfigResource *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2029
 *     cdef cyruntime.cudaDevWorkqueueConfigResource* _pvt_ptr
 * 
 * cdef class cudaDevWorkqueueResource:             # <<<<<<<<<<<<<<
 *     """
 *     Handle to a pre-existing workqueue related resource
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource {
  PyObject_HEAD
  struct cudaDevWorkqueueResource _pvt_val;
  struct cudaDevWorkqueueResource *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2046
 *     cdef cyruntime.cudaDevWorkqueueResource* _pvt_ptr
 * 
 * cdef class cudaDevSmResourceGroupParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Input data for splitting SMs
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st {
  PyObject_HEAD
  struct cudaDevSmResourceGroupParams_st _pvt_val;
  struct cudaDevSmResourceGroupParams_st *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2074
 *     cdef cyruntime.cudaDevSmResourceGroupParams_st* _pvt_ptr
 * 
 * cdef class cudaDevResource_st:             # <<<<<<<<<<<<<<
 *     """
 *     A tagged union describing different resources identified by the
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st {
  PyObject_HEAD
  struct cudaDevResource_st *_val_ptr;
  struct cudaDevResource_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *_sm;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *_wqConfig;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *_wq;
  size_t _nextResource_length;
  struct cudaDevResource_st *_nextResource;
};


/* "cuda/bindings/runtime.pxd":2123
 *     cdef cyruntime.cudaDevResource_st* _nextResource
 * 
 * cdef class cudalibraryHostUniversalFunctionAndDataTable:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable {
  PyObject_HEAD
  struct cudalibraryHostUniversalFunctionAndDataTable _pvt_val;
  struct cudalibraryHostUniversalFunctionAndDataTable *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2144
 *     cdef cyruntime.cudalibraryHostUniversalFunctionAndDataTable* _pvt_ptr
 * 
 * cdef class cudaKernelNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams {
  PyObject_HEAD
  struct cudaKernelNodeParams _pvt_val;
  struct cudaKernelNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *_gridDim;
  struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *_blockDim;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *_cykernelParams;
};


/* "cuda/bindings/runtime.pxd":2174
 *     cdef _HelperKernelParams _cykernelParams
 * 
 * cdef class cudaKernelNodeParamsV2:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPU kernel node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 {
  PyObject_HEAD
  struct cudaKernelNodeParamsV2 _pvt_val;
  struct cudaKernelNodeParamsV2 *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *_gridDim;
  struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *_blockDim;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *_cykernelParams;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *_ctx;
};


/* "cuda/bindings/runtime.pxd":2208
 *     cdef cudaExecutionContext_t _ctx
 * 
 * cdef class cudaExternalSemaphoreSignalNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore signal node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams {
  PyObject_HEAD
  struct cudaExternalSemaphoreSignalNodeParams _pvt_val;
  struct cudaExternalSemaphoreSignalNodeParams *_pvt_ptr;
  size_t _extSemArray_length;
  cudaExternalSemaphore_t *_extSemArray;
  size_t _paramsArray_length;
  struct cudaExternalSemaphoreSignalParams *_paramsArray;
};


/* "cuda/bindings/runtime.pxd":2234
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* _paramsArray
 * 
 * cdef class cudaExternalSemaphoreSignalNodeParamsV2:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore signal node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 {
  PyObject_HEAD
  struct cudaExternalSemaphoreSignalNodeParamsV2 _pvt_val;
  struct cudaExternalSemaphoreSignalNodeParamsV2 *_pvt_ptr;
  size_t _extSemArray_length;
  cudaExternalSemaphore_t *_extSemArray;
  size_t _paramsArray_length;
  struct cudaExternalSemaphoreSignalParams *_paramsArray;
};


/* "cuda/bindings/runtime.pxd":2260
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* _paramsArray
 * 
 * cdef class cudaExternalSemaphoreWaitNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams {
  PyObject_HEAD
  struct cudaExternalSemaphoreWaitNodeParams _pvt_val;
  struct cudaExternalSemaphoreWaitNodeParams *_pvt_ptr;
  size_t _extSemArray_length;
  cudaExternalSemaphore_t *_extSemArray;
  size_t _paramsArray_length;
  struct cudaExternalSemaphoreWaitParams *_paramsArray;
};


/* "cuda/bindings/runtime.pxd":2286
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* _paramsArray
 * 
 * cdef class cudaExternalSemaphoreWaitNodeParamsV2:             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 {
  PyObject_HEAD
  struct cudaExternalSemaphoreWaitNodeParamsV2 _pvt_val;
  struct cudaExternalSemaphoreWaitNodeParamsV2 *_pvt_ptr;
  size_t _extSemArray_length;
  cudaExternalSemaphore_t *_extSemArray;
  size_t _paramsArray_length;
  struct cudaExternalSemaphoreWaitParams *_paramsArray;
};


/* "cuda/bindings/runtime.pxd":2312
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* _paramsArray
 * 
 * cdef class cudaConditionalNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA conditional node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams {
  PyObject_HEAD
  struct cudaConditionalNodeParams _pvt_val;
  struct cudaConditionalNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *_handle;
  size_t _phGraph_out_length;
  cudaGraph_t *_phGraph_out;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *_ctx;
};


/* "cuda/bindings/runtime.pxd":2359
 *     cdef cudaExecutionContext_t _ctx
 * 
 * cdef class cudaChildGraphNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     Child graph node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams {
  PyObject_HEAD
  struct cudaChildGraphNodeParams _pvt_val;
  struct cudaChildGraphNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *_graph;
};


/* "cuda/bindings/runtime.pxd":2383
 *     cdef cudaGraph_t _graph
 * 
 * cdef class cudaEventRecordNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     Event record node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams {
  PyObject_HEAD
  struct cudaEventRecordNodeParams _pvt_val;
  struct cudaEventRecordNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *_event;
};


/* "cuda/bindings/runtime.pxd":2401
 *     cdef cudaEvent_t _event
 * 
 * cdef class cudaEventWaitNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     Event wait node parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams {
  PyObject_HEAD
  struct cudaEventWaitNodeParams _pvt_val;
  struct cudaEventWaitNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *_event;
};


/* "cuda/bindings/runtime.pxd":2419
 *     cdef cudaEvent_t _event
 * 
 * cdef class cudaGraphNodeParams:             # <<<<<<<<<<<<<<
 *     """
 *     Graph node parameters. See cudaGraphAddNode.
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams {
  PyObject_HEAD
  struct cudaGraphNodeParams *_val_ptr;
  struct cudaGraphNodeParams *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *_kernel;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *_memcpy;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *_memset;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *_host;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *_graph;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *_eventWait;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *_eventRecord;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *_extSemSignal;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *_extSemWait;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *_alloc;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *_free;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *_conditional;
};


/* "cuda/bindings/runtime.pxd":2478
 *     cdef cudaConditionalNodeParams _conditional
 * 
 * cdef class cudaGraphEdgeData_st:             # <<<<<<<<<<<<<<
 *     """
 *     Optional annotation for edges in a CUDA graph. Note, all edges
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st {
  PyObject_HEAD
  struct cudaGraphEdgeData_st _pvt_val;
  struct cudaGraphEdgeData_st *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2520
 *     cdef cyruntime.cudaGraphEdgeData_st* _pvt_ptr
 * 
 * cdef class cudaGraphInstantiateParams_st:             # <<<<<<<<<<<<<<
 *     """
 *     Graph instantiation parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st {
  PyObject_HEAD
  struct cudaGraphInstantiateParams_st _pvt_val;
  struct cudaGraphInstantiateParams_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *_uploadStream;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *_errNode_out;
};


/* "cuda/bindings/runtime.pxd":2545
 *     cdef cudaGraphNode_t _errNode_out
 * 
 * cdef class cudaGraphExecUpdateResultInfo_st:             # <<<<<<<<<<<<<<
 *     """
 *     Result information returned by cudaGraphExecUpdate
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st {
  PyObject_HEAD
  struct cudaGraphExecUpdateResultInfo_st _pvt_val;
  struct cudaGraphExecUpdateResultInfo_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *_errorNode;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *_errorFromNode;
};


/* "cuda/bindings/runtime.pxd":2571
 *     cdef cudaGraphNode_t _errorFromNode
 * 
 * cdef class anon_struct16:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 {
  PyObject_HEAD
  struct cudaGraphKernelNodeUpdate *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2589
 *     cdef cyruntime.cudaGraphKernelNodeUpdate* _pvt_ptr
 * 
 * cdef class anon_union8:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 {
  PyObject_HEAD
  struct cudaGraphKernelNodeUpdate *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *_gridDim;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *_param;
};


/* "cuda/bindings/runtime.pxd":2609
 *     cdef anon_struct16 _param
 * 
 * cdef class cudaGraphKernelNodeUpdate:             # <<<<<<<<<<<<<<
 *     """
 *     Struct to specify a single node update to pass as part of a larger
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate {
  PyObject_HEAD
  struct cudaGraphKernelNodeUpdate *_val_ptr;
  struct cudaGraphKernelNodeUpdate *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *_node;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *_updateData;
};


/* "cuda/bindings/runtime.pxd":2634
 *     cdef anon_union8 _updateData
 * 
 * cdef class cudaLaunchMemSyncDomainMap_st:             # <<<<<<<<<<<<<<
 *     """
 *     Memory Synchronization Domain map  See cudaLaunchMemSyncDomain.  By
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st {
  PyObject_HEAD
  struct cudaLaunchMemSyncDomainMap_st _pvt_val;
  struct cudaLaunchMemSyncDomainMap_st *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2659
 *     cdef cyruntime.cudaLaunchMemSyncDomainMap_st* _pvt_ptr
 * 
 * cdef class anon_struct17:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 {
  PyObject_HEAD
  union cudaLaunchAttributeValue *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2677
 *     cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr
 * 
 * cdef class anon_struct18:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 {
  PyObject_HEAD
  union cudaLaunchAttributeValue *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *_event;
};


/* "cuda/bindings/runtime.pxd":2696
 *     cdef cudaEvent_t _event
 * 
 * cdef class anon_struct19:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 {
  PyObject_HEAD
  union cudaLaunchAttributeValue *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2714
 *     cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr
 * 
 * cdef class anon_struct20:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 {
  PyObject_HEAD
  union cudaLaunchAttributeValue *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *_event;
};


/* "cuda/bindings/runtime.pxd":2731
 *     cdef cudaEvent_t _event
 * 
 * cdef class anon_struct21:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 {
  PyObject_HEAD
  union cudaLaunchAttributeValue *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *_devNode;
};


/* "cuda/bindings/runtime.pxd":2748
 *     cdef cudaGraphDeviceNode_t _devNode
 * 
 * cdef class cudaLaunchAttributeValue:             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue {
  PyObject_HEAD
  union cudaLaunchAttributeValue _pvt_val;
  union cudaLaunchAttributeValue *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *_accessPolicyWindow;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *_clusterDim;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *_programmaticEvent;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap *_memSyncDomainMap;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *_preferredClusterDim;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *_launchCompletionEvent;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *_deviceUpdatableKernelNode;
};


/* "cuda/bindings/runtime.pxd":2844
 *     cdef anon_struct21 _deviceUpdatableKernelNode
 * 
 * cdef class cudaLaunchAttribute_st:             # <<<<<<<<<<<<<<
 *     """
 *     Launch attribute
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st {
  PyObject_HEAD
  struct cudaLaunchAttribute_st _pvt_val;
  struct cudaLaunchAttribute_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *_val;
};


/* "cuda/bindings/runtime.pxd":2864
 *     cdef cudaLaunchAttributeValue _val
 * 
 * cdef class anon_struct22:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 {
  PyObject_HEAD
  struct cudaAsyncNotificationInfo *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2878
 *     cdef cyruntime.cudaAsyncNotificationInfo* _pvt_ptr
 * 
 * cdef class anon_union9:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 {
  PyObject_HEAD
  struct cudaAsyncNotificationInfo *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *_overBudget;
};


/* "cuda/bindings/runtime.pxd":2893
 *     cdef anon_struct22 _overBudget
 * 
 * cdef class cudaAsyncNotificationInfo:             # <<<<<<<<<<<<<<
 *     """
 *     Information describing an async notification event
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo {
  PyObject_HEAD
  struct cudaAsyncNotificationInfo *_val_ptr;
  struct cudaAsyncNotificationInfo *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *_info;
};


/* "cuda/bindings/runtime.pxd":2914
 *     cdef anon_union9 _info
 * 
 * cdef class cudaTextureDesc:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture descriptor
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc {
  PyObject_HEAD
  struct cudaTextureDesc _pvt_val;
  struct cudaTextureDesc *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":2955
 *     cdef cyruntime.cudaTextureDesc* _pvt_ptr
 * 
 * cdef class cudaEglPlaneDesc_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGL Plane Descriptor - structure defining each plane of a CUDA
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st {
  PyObject_HEAD
  struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc_st _pvt_val;
  struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *_channelDesc;
};


/* "cuda/bindings/runtime.pxd":2986
 *     cdef cudaChannelFormatDesc _channelDesc
 * 
 * cdef class anon_union10:             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 {
  PyObject_HEAD
  struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3002
 *     cdef cyruntime.cudaEglFrame_st* _pvt_ptr
 * 
 * cdef class cudaEglFrame_st:             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGLFrame Descriptor - structure defining one frame of EGL.
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st {
  PyObject_HEAD
  struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st *_val_ptr;
  struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st *_pvt_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *_frame;
};


/* "cuda/bindings/runtime.pxd":3035
 *     cdef anon_union10 _frame
 * 
 * cdef class CUuuid(CUuuid_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid {
  struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3049
 *     pass
 * 
 * cdef class cudaUUID_t(CUuuid_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t {
  struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3063
 *     pass
 * 
 * cdef class cudaIpcEventHandle_t(cudaIpcEventHandle_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC event handle
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3079
 *     pass
 * 
 * cdef class cudaIpcMemHandle_t(cudaIpcMemHandle_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA IPC memory handle
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3095
 *     pass
 * 
 * cdef class cudaMemFabricHandle_t(cudaMemFabricHandle_st):             # <<<<<<<<<<<<<<
 *     """
 *     Attributes
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_t {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3109
 *     pass
 * 
 * cdef class cudaDevSmResourceGroupParams(cudaDevSmResourceGroupParams_st):             # <<<<<<<<<<<<<<
 *     """
 *     Input data for splitting SMs
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3136
 *     pass
 * 
 * cdef class cudaDevResource(cudaDevResource_st):             # <<<<<<<<<<<<<<
 *     """
 *     A tagged union describing different resources identified by the
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3179
 *     pass
 * 
 * cdef class cudaGraphEdgeData(cudaGraphEdgeData_st):             # <<<<<<<<<<<<<<
 *     """
 *     Optional annotation for edges in a CUDA graph. Note, all edges
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3220
 *     pass
 * 
 * cdef class cudaGraphInstantiateParams(cudaGraphInstantiateParams_st):             # <<<<<<<<<<<<<<
 *     """
 *     Graph instantiation parameters
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3242
 *     pass
 * 
 * cdef class cudaGraphExecUpdateResultInfo(cudaGraphExecUpdateResultInfo_st):             # <<<<<<<<<<<<<<
 *     """
 *     Result information returned by cudaGraphExecUpdate
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3265
 *     pass
 * 
 * cdef class cudaLaunchMemSyncDomainMap(cudaLaunchMemSyncDomainMap_st):             # <<<<<<<<<<<<<<
 *     """
 *     Memory Synchronization Domain map  See cudaLaunchMemSyncDomain.  By
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3289
 *     pass
 * 
 * cdef class cudaLaunchAttribute(cudaLaunchAttribute_st):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attribute
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3307
 *     pass
 * 
 * cdef class cudaAsyncNotificationInfo_t(cudaAsyncNotificationInfo):             # <<<<<<<<<<<<<<
 *     """
 *     Information describing an async notification event
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3326
 *     pass
 * 
 * cdef class cudaStreamAttrValue(cudaLaunchAttributeValue):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3414
 *     pass
 * 
 * cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes union; used as value field of
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3502
 *     pass
 * 
 * cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGL Plane Descriptor - structure defining each plane of a CUDA
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3531
 *     pass
 * 
 * cdef class cudaEglFrame(cudaEglFrame_st):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGLFrame Descriptor - structure defining one frame of EGL.
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3562
 *     pass
 * 
 * cdef class cudaStream_t(driver.CUstream):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t {
  struct __pyx_obj_4cuda_8bindings_6driver_CUstream __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3575
 *     pass
 * 
 * cdef class cudaEvent_t(driver.CUevent):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t {
  struct __pyx_obj_4cuda_8bindings_6driver_CUevent __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3588
 *     pass
 * 
 * cdef class cudaGraph_t(driver.CUgraph):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t {
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraph __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3601
 *     pass
 * 
 * cdef class cudaGraphNode_t(driver.CUgraphNode):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t {
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3614
 *     pass
 * 
 * cdef class cudaUserObject_t(driver.CUuserObject):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t {
  struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3627
 *     pass
 * 
 * cdef class cudaFunction_t(driver.CUfunction):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaFunction_t {
  struct __pyx_obj_4cuda_8bindings_6driver_CUfunction __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3640
 *     pass
 * 
 * cdef class cudaMemPool_t(driver.CUmemoryPool):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t {
  struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3653
 *     pass
 * 
 * cdef class cudaGraphExec_t(driver.CUgraphExec):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t {
  struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3666
 *     pass
 * 
 * cdef class cudaEglStreamConnection(driver.CUeglStreamConnection):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection {
  struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection __pyx_base;
};


/* "cuda/bindings/runtime.pxd":3679
 *     pass
 * 
 * cdef class cudaGraphConditionalHandle:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle {
  PyObject_HEAD
  cudaGraphConditionalHandle _pvt_val;
  cudaGraphConditionalHandle *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3693
 *     cdef cyruntime.cudaGraphConditionalHandle* _pvt_ptr
 * 
 * cdef class cudaLogIterator:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator {
  PyObject_HEAD
  cudaLogIterator _pvt_val;
  cudaLogIterator *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3705
 *     cdef cyruntime.cudaLogIterator* _pvt_ptr
 * 
 * cdef class cudaSurfaceObject_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t {
  PyObject_HEAD
  cudaSurfaceObject_t _pvt_val;
  cudaSurfaceObject_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3719
 *     cdef cyruntime.cudaSurfaceObject_t* _pvt_ptr
 * 
 * cdef class cudaTextureObject_t:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t {
  PyObject_HEAD
  cudaTextureObject_t _pvt_val;
  cudaTextureObject_t *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3733
 *     cdef cyruntime.cudaTextureObject_t* _pvt_ptr
 * 
 * cdef class GLenum:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_GLenum {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_GLenum _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_GLenum *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3745
 *     cdef cyruntime.GLenum* _pvt_ptr
 * 
 * cdef class GLuint:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_GLuint {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_GLuint _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_GLuint *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3757
 *     cdef cyruntime.GLuint* _pvt_ptr
 * 
 * cdef class EGLint:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_EGLint {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_EGLint _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_EGLint *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3769
 *     cdef cyruntime.EGLint* _pvt_ptr
 * 
 * cdef class VdpDevice:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3781
 *     cdef cyruntime.VdpDevice* _pvt_ptr
 * 
 * cdef class VdpGetProcAddress:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3793
 *     cdef cyruntime.VdpGetProcAddress* _pvt_ptr
 * 
 * cdef class VdpVideoSurface:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface *_pvt_ptr;
};


/* "cuda/bindings/runtime.pxd":3805
 *     cdef cyruntime.VdpVideoSurface* _pvt_ptr
 * 
 * cdef class VdpOutputSurface:             # <<<<<<<<<<<<<<
 *     """
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface {
  PyObject_HEAD
  __pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface _pvt_val;
  __pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface *_pvt_ptr;
};


/* "cuda/bindings/runtime.pyx":34247
 * 
 * 
 * cdef class cudaBindingsRuntimeGlobal:             # <<<<<<<<<<<<<<
 *     cdef map[void_ptr, void*] _allocated
 * 
*/
struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal {
  PyObject_HEAD
  std::map<__pyx_t_4cuda_8bindings_7runtime_void_ptr,void *>  _allocated;
};


/* "cuda/bindings/runtime.pyx":1026
 *     cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase
 * 
 * _dict_cudaError_t = dict(((int(v), v) for k, v in cudaError_t.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphDependencyType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1044
 *     cudaGraphDependencyTypeProgrammatic = cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic
 * 
 * _dict_cudaGraphDependencyType = dict(((int(v), v) for k, v in cudaGraphDependencyType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphInstantiateResult(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1073
 *     cudaGraphInstantiateConditionalHandleUnused = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateConditionalHandleUnused
 * 
 * _dict_cudaGraphInstantiateResult = dict(((int(v), v) for k, v in cudaGraphInstantiateResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLaunchMemSyncDomain(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1103
 *     cudaLaunchMemSyncDomainRemote = cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote
 * 
 * _dict_cudaLaunchMemSyncDomain = dict(((int(v), v) for k, v in cudaLaunchMemSyncDomain.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLaunchAttributeID(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1299
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAsyncNotificationType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1309
 *     cudaAsyncNotificationTypeOverBudget = cyruntime.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget
 * 
 * _dict_cudaAsyncNotificationType = dict(((int(v), v) for k, v in cudaAsyncNotificationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLogLevel(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1318
 *     cudaLogLevelWarning = cyruntime.CUDAlogLevel_enum.cudaLogLevelWarning
 * 
 * _dict_cudaLogLevel = dict(((int(v), v) for k, v in cudaLogLevel.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDataType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1358
 *     CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1
 * 
 * _dict_cudaDataType = dict(((int(v), v) for k, v in cudaDataType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationStrategy(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1366
 *     CUDA_EMULATION_STRATEGY_EAGER = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_EAGER
 * 
 * _dict_cudaEmulationStrategy = dict(((int(v), v) for k, v in cudaEmulationStrategy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationMantissaControl(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1373
 *     CUDA_EMULATION_MANTISSA_CONTROL_FIXED = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_FIXED
 * 
 * _dict_cudaEmulationMantissaControl = dict(((int(v), v) for k, v in cudaEmulationMantissaControl.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationSpecialValuesSupport(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1382
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT
 * 
 * _dict_cudaEmulationSpecialValuesSupport = dict(((int(v), v) for k, v in cudaEmulationSpecialValuesSupport.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class libraryPropertyType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1390
 *     PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL
 * 
 * _dict_libraryPropertyType = dict(((int(v), v) for k, v in libraryPropertyType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglFrameType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1403
 *     cudaEglFrameTypePitch = cyruntime.cudaEglFrameType_enum.cudaEglFrameTypePitch
 * 
 * _dict_cudaEglFrameType = dict(((int(v), v) for k, v in cudaEglFrameType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglResourceLocationFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1426
 *     cudaEglResourceLocationVidmem = cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem
 * 
 * _dict_cudaEglResourceLocationFlags = dict(((int(v), v) for k, v in cudaEglResourceLocationFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglColorFormat(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1867
 *     cudaEglColorFormatUYVY2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY2020
 * 
 * _dict_cudaEglColorFormat = dict(((int(v), v) for k, v in cudaEglColorFormat.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaChannelFormatKind(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":1984
 *     cudaChannelFormatKindUnsignedNormalized1010102 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized1010102
 * 
 * _dict_cudaChannelFormatKind = dict(((int(v), v) for k, v in cudaChannelFormatKind.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemoryType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2003
 *     cudaMemoryTypeManaged = cyruntime.cudaMemoryType.cudaMemoryTypeManaged
 * 
 * _dict_cudaMemoryType = dict(((int(v), v) for k, v in cudaMemoryType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpyKind(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2026
 *     cudaMemcpyDefault = cyruntime.cudaMemcpyKind.cudaMemcpyDefault
 * 
 * _dict_cudaMemcpyKind = dict(((int(v), v) for k, v in cudaMemcpyKind.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAccessProperty(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2043
 *     cudaAccessPropertyPersisting = cyruntime.cudaAccessProperty.cudaAccessPropertyPersisting
 * 
 * _dict_cudaAccessProperty = dict(((int(v), v) for k, v in cudaAccessProperty.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamCaptureStatus(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2061
 *     cudaStreamCaptureStatusInvalidated = cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated
 * 
 * _dict_cudaStreamCaptureStatus = dict(((int(v), v) for k, v in cudaStreamCaptureStatus.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamCaptureMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2073
 *     cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed
 * 
 * _dict_cudaStreamCaptureMode = dict(((int(v), v) for k, v in cudaStreamCaptureMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSynchronizationPolicy(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2084
 *     cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync
 * 
 * _dict_cudaSynchronizationPolicy = dict(((int(v), v) for k, v in cudaSynchronizationPolicy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaClusterSchedulingPolicy(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2102
 *     cudaClusterSchedulingPolicyLoadBalancing = cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing
 * 
 * _dict_cudaClusterSchedulingPolicy = dict(((int(v), v) for k, v in cudaClusterSchedulingPolicy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamUpdateCaptureDependenciesFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2115
 *     cudaStreamSetCaptureDependencies = cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies
 * 
 * _dict_cudaStreamUpdateCaptureDependenciesFlags = dict(((int(v), v) for k, v in cudaStreamUpdateCaptureDependenciesFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaUserObjectFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2126
 *     cudaUserObjectNoDestructorSync = cyruntime.cudaUserObjectFlags.cudaUserObjectNoDestructorSync
 * 
 * _dict_cudaUserObjectFlags = dict(((int(v), v) for k, v in cudaUserObjectFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaUserObjectRetainFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2137
 *     cudaGraphUserObjectMove = cyruntime.cudaUserObjectRetainFlags.cudaGraphUserObjectMove
 * 
 * _dict_cudaUserObjectRetainFlags = dict(((int(v), v) for k, v in cudaUserObjectRetainFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsRegisterFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2159
 *     cudaGraphicsRegisterFlagsTextureGather = cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather
 * 
 * _dict_cudaGraphicsRegisterFlags = dict(((int(v), v) for k, v in cudaGraphicsRegisterFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsMapFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2175
 *     cudaGraphicsMapFlagsWriteDiscard = cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard
 * 
 * _dict_cudaGraphicsMapFlags = dict(((int(v), v) for k, v in cudaGraphicsMapFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsCubeFace(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2200
 *     cudaGraphicsCubeFaceNegativeZ = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ
 * 
 * _dict_cudaGraphicsCubeFace = dict(((int(v), v) for k, v in cudaGraphicsCubeFace.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaResourceType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2219
 *     cudaResourceTypePitch2D = cyruntime.cudaResourceType.cudaResourceTypePitch2D
 * 
 * _dict_cudaResourceType = dict(((int(v), v) for k, v in cudaResourceType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaResourceViewFormat(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2331
 *     cudaResViewFormatUnsignedBlockCompressed7 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7
 * 
 * _dict_cudaResourceViewFormat = dict(((int(v), v) for k, v in cudaResourceViewFormat.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFuncAttribute(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2365
 *     cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax
 * 
 * _dict_cudaFuncAttribute = dict(((int(v), v) for k, v in cudaFuncAttribute.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFuncCache(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2384
 *     cudaFuncCachePreferEqual = cyruntime.cudaFuncCache.cudaFuncCachePreferEqual
 * 
 * _dict_cudaFuncCache = dict(((int(v), v) for k, v in cudaFuncCache.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSharedMemConfig(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2394
 *     cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte
 * 
 * _dict_cudaSharedMemConfig = dict(((int(v), v) for k, v in cudaSharedMemConfig.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSharedCarveout(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2411
 *     cudaSharedmemCarveoutMaxShared = cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared
 * 
 * _dict_cudaSharedCarveout = dict(((int(v), v) for k, v in cudaSharedCarveout.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaComputeMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2434
 *     cudaComputeModeExclusiveProcess = cyruntime.cudaComputeMode.cudaComputeModeExclusiveProcess
 * 
 * _dict_cudaComputeMode = dict(((int(v), v) for k, v in cudaComputeMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLimit(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2463
 *     cudaLimitPersistingL2CacheSize = cyruntime.cudaLimit.cudaLimitPersistingL2CacheSize
 * 
 * _dict_cudaLimit = dict(((int(v), v) for k, v in cudaLimit.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemoryAdvise(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2490
 *     cudaMemAdviseUnsetAccessedBy = cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy
 * 
 * _dict_cudaMemoryAdvise = dict(((int(v), v) for k, v in cudaMemoryAdvise.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemRangeAttribute(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2523
 *     cudaMemRangeAttributeLastPrefetchLocationId = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId
 * 
 * _dict_cudaMemRangeAttribute = dict(((int(v), v) for k, v in cudaMemRangeAttribute.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesOptions(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2539
 *     cudaFlushGPUDirectRDMAWritesOptionMemOps = cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesOptions = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesOptions.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGPUDirectRDMAWritesOrdering(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2559
 *     cudaGPUDirectRDMAWritesOrderingAllDevices = cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices
 * 
 * _dict_cudaGPUDirectRDMAWritesOrdering = dict(((int(v), v) for k, v in cudaGPUDirectRDMAWritesOrdering.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesScope(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2573
 *     cudaFlushGPUDirectRDMAWritesToAllDevices = cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesScope = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesTarget(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":2584
 *     cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = cyruntime.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesTarget = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesTarget.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceAttr(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3005
 *     cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax
 * 
 * _dict_cudaDeviceAttr = dict(((int(v), v) for k, v in cudaDeviceAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemPoolAttr(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3053
 *     cudaMemPoolAttrUsedMemHigh = cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh
 * 
 * _dict_cudaMemPoolAttr = dict(((int(v), v) for k, v in cudaMemPoolAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemLocationType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3078
 *     cudaMemLocationTypeHostNumaCurrent = cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent
 * 
 * _dict_cudaMemLocationType = dict(((int(v), v) for k, v in cudaMemLocationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAccessFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3094
 *     cudaMemAccessFlagsProtReadWrite = cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite
 * 
 * _dict_cudaMemAccessFlags = dict(((int(v), v) for k, v in cudaMemAccessFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAllocationType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3110
 *     cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax
 * 
 * _dict_cudaMemAllocationType = dict(((int(v), v) for k, v in cudaMemAllocationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAllocationHandleType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3134
 *     cudaMemHandleTypeFabric = cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeFabric
 * 
 * _dict_cudaMemAllocationHandleType = dict(((int(v), v) for k, v in cudaMemAllocationHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphMemAttributeType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3159
 *     cudaGraphMemAttrReservedMemHigh = cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh
 * 
 * _dict_cudaGraphMemAttributeType = dict(((int(v), v) for k, v in cudaGraphMemAttributeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpyFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3172
 *     cudaMemcpyFlagPreferOverlapWithCompute = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagPreferOverlapWithCompute
 * 
 * _dict_cudaMemcpyFlags = dict(((int(v), v) for k, v in cudaMemcpyFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpySrcAccessOrder(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3205
 *     cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax
 * 
 * _dict_cudaMemcpySrcAccessOrder = dict(((int(v), v) for k, v in cudaMemcpySrcAccessOrder.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpy3DOperandType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3220
 *     cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax
 * 
 * _dict_cudaMemcpy3DOperandType = dict(((int(v), v) for k, v in cudaMemcpy3DOperandType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceP2PAttr(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3243
 *     cudaDevP2PAttrOnlyPartialNativeAtomicSupported = cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrOnlyPartialNativeAtomicSupported
 * 
 * _dict_cudaDeviceP2PAttr = dict(((int(v), v) for k, v in cudaDeviceP2PAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAtomicOperation(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3263
 *     cudaAtomicOperationFloatMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMax
 * 
 * _dict_cudaAtomicOperation = dict(((int(v), v) for k, v in cudaAtomicOperation.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAtomicOperationCapability(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3277
 * 
 * 
 * _dict_cudaAtomicOperationCapability = dict(((int(v), v) for k, v in cudaAtomicOperationCapability.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaExternalMemoryHandleType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3308
 *     cudaExternalMemoryHandleTypeNvSciBuf = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf
 * 
 * _dict_cudaExternalMemoryHandleType = dict(((int(v), v) for k, v in cudaExternalMemoryHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaExternalSemaphoreHandleType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3347
 *     cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32
 * 
 * _dict_cudaExternalSemaphoreHandleType = dict(((int(v), v) for k, v in cudaExternalSemaphoreHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevSmResourceGroup_flags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3356
 *     cudaDevSmResourceGroupBackfill = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupBackfill
 * 
 * _dict_cudaDevSmResourceGroup_flags = dict(((int(v), v) for k, v in cudaDevSmResourceGroup_flags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevSmResourceSplitByCount_flags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3365
 *     cudaDevSmResourceSplitMaxPotentialClusterSize = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitMaxPotentialClusterSize
 * 
 * _dict_cudaDevSmResourceSplitByCount_flags = dict(((int(v), v) for k, v in cudaDevSmResourceSplitByCount_flags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevResourceType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3382
 *     cudaDevResourceTypeWorkqueue = cyruntime.cudaDevResourceType.cudaDevResourceTypeWorkqueue
 * 
 * _dict_cudaDevResourceType = dict(((int(v), v) for k, v in cudaDevResourceType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevWorkqueueConfigScope(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3397
 *     cudaDevWorkqueueConfigScopeGreenCtxBalanced = cyruntime.cudaDevWorkqueueConfigScope.cudaDevWorkqueueConfigScopeGreenCtxBalanced
 * 
 * _dict_cudaDevWorkqueueConfigScope = dict(((int(v), v) for k, v in cudaDevWorkqueueConfigScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJitOption(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3527
 *     cudaJitOverrideDirectiveValues = cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues
 * 
 * _dict_cudaJitOption = dict(((int(v), v) for k, v in cudaJitOption.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLibraryOption(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3548
 *     cudaLibraryBinaryIsPreserved = cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved
 * 
 * _dict_cudaLibraryOption = dict(((int(v), v) for k, v in cudaLibraryOption.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJit_CacheMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3564
 *     cudaJitCacheOptionCA = cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCA
 * 
 * _dict_cudaJit_CacheMode = dict(((int(v), v) for k, v in cudaJit_CacheMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJit_Fallback(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3578
 *     cudaPreferBinary = cyruntime.cudaJit_Fallback.cudaPreferBinary
 * 
 * _dict_cudaJit_Fallback = dict(((int(v), v) for k, v in cudaJit_Fallback.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaCGScope(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3594
 *     cudaCGScopeReserved = cyruntime.cudaCGScope.cudaCGScopeReserved
 * 
 * _dict_cudaCGScope = dict(((int(v), v) for k, v in cudaCGScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphConditionalHandleFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3604
 *     cudaGraphCondAssignDefault = cyruntime.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault
 * 
 * _dict_cudaGraphConditionalHandleFlags = dict(((int(v), v) for k, v in cudaGraphConditionalHandleFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphConditionalNodeType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3625
 *     cudaGraphCondTypeSwitch = cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeSwitch
 * 
 * _dict_cudaGraphConditionalNodeType = dict(((int(v), v) for k, v in cudaGraphConditionalNodeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphNodeType(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3696
 *     cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount
 * 
 * _dict_cudaGraphNodeType = dict(((int(v), v) for k, v in cudaGraphNodeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphChildGraphNodeOwnership(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3719
 *     cudaGraphChildGraphOwnershipMove = cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipMove
 * 
 * _dict_cudaGraphChildGraphNodeOwnership = dict(((int(v), v) for k, v in cudaGraphChildGraphNodeOwnership.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphExecUpdateResult(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3758
 *     cudaGraphExecUpdateErrorAttributesChanged = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged
 * 
 * _dict_cudaGraphExecUpdateResult = dict(((int(v), v) for k, v in cudaGraphExecUpdateResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphKernelNodeField(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3778
 *     cudaGraphKernelNodeFieldEnabled = cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled
 * 
 * _dict_cudaGraphKernelNodeField = dict(((int(v), v) for k, v in cudaGraphKernelNodeField.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGetDriverEntryPointFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3796
 *     cudaEnablePerThreadDefaultStream = cyruntime.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream
 * 
 * _dict_cudaGetDriverEntryPointFlags = dict(((int(v), v) for k, v in cudaGetDriverEntryPointFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDriverEntryPointQueryResult(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3813
 *     cudaDriverEntryPointVersionNotSufficent = cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent
 * 
 * _dict_cudaDriverEntryPointQueryResult = dict(((int(v), v) for k, v in cudaDriverEntryPointQueryResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphDebugDotFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3854
 *     cudaGraphDebugDotFlagsConditionalNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams
 * 
 * _dict_cudaGraphDebugDotFlags = dict(((int(v), v) for k, v in cudaGraphDebugDotFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphInstantiateFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3882
 *     cudaGraphInstantiateFlagUseNodePriority = cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority
 * 
 * _dict_cudaGraphInstantiateFlags = dict(((int(v), v) for k, v in cudaGraphInstantiateFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceNumaConfig(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3895
 *     cudaDeviceNumaConfigNumaNode = cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode
 * 
 * _dict_cudaDeviceNumaConfig = dict(((int(v), v) for k, v in cudaDeviceNumaConfig.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSurfaceBoundaryMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3911
 *     cudaBoundaryModeTrap = cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap
 * 
 * _dict_cudaSurfaceBoundaryMode = dict(((int(v), v) for k, v in cudaSurfaceBoundaryMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSurfaceFormatMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3924
 *     cudaFormatModeAuto = cyruntime.cudaSurfaceFormatMode.cudaFormatModeAuto
 * 
 * _dict_cudaSurfaceFormatMode = dict(((int(v), v) for k, v in cudaSurfaceFormatMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureAddressMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3943
 *     cudaAddressModeBorder = cyruntime.cudaTextureAddressMode.cudaAddressModeBorder
 * 
 * _dict_cudaTextureAddressMode = dict(((int(v), v) for k, v in cudaTextureAddressMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureFilterMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3956
 *     cudaFilterModeLinear = cyruntime.cudaTextureFilterMode.cudaFilterModeLinear
 * 
 * _dict_cudaTextureFilterMode = dict(((int(v), v) for k, v in cudaTextureFilterMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureReadMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3969
 *     cudaReadModeNormalizedFloat = cyruntime.cudaTextureReadMode.cudaReadModeNormalizedFloat
 * 
 * _dict_cudaTextureReadMode = dict(((int(v), v) for k, v in cudaTextureReadMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaRoundMode(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3978
 *     cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf
 * 
 * _dict_cudaRoundMode = dict(((int(v), v) for k, v in cudaRoundMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGLDeviceList(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":3996
 *     cudaGLDeviceListNextFrame = cyruntime.cudaGLDeviceList.cudaGLDeviceListNextFrame
 * 
 * _dict_cudaGLDeviceList = dict(((int(v), v) for k, v in cudaGLDeviceList.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGLMapFlags(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":4012
 *     cudaGLMapFlagsWriteDiscard = cyruntime.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard
 * 
 * _dict_cudaGLMapFlags = dict(((int(v), v) for k, v in cudaGLMapFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamAttrID(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":4208
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaKernelNodeAttrID(IntEnum):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":4404
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDevResourceDesc_t:
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_k;
  PyObject *__pyx_v_v;
};


/* "cuda/bindings/runtime.pyx":16151
 *     """
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":16466
 *     """
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":17700
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":17703
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":18066
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":18069
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaStream_t cystream
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":19077
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":19080
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":19203
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":19206
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":22062
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in attrsIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":22065
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":22067
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     srcs = [] if srcs is None else srcs
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":22208
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     opList = [] if opList is None else opList
 *     if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]")
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":22962
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":22965
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":22967
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":23052
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":23147
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":23150
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":23152
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":23579
 *     """
 *     attributes = [] if attributes is None else attributes
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":23581
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]")
 *     pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)]
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":24243
 *     """
 *     descList = [] if descList is None else descList
 *     if not all(isinstance(_x, (cudaMemAccessDesc,)) for _x in descList):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]")
 *     cdef cyruntime.cudaMemPool_t cymemPool
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":26308
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":26586
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":26675
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":26876
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":27016
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":27167
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":27277
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":27354
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":27513
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":27660
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":27808
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":27995
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":28121
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":29012
 *     """
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":29015
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":29018
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":29105
 *     """
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":29108
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":29111
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":30992
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":30995
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":31518
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":31522
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":31615
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":31619
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};


/* "cuda/bindings/runtime.pyx":32400
 *     """
 *     resources = [] if resources is None else resources
 *     if not all(isinstance(_x, (cudaDevResource,)) for _x in resources):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]")
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()
*/
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v__x;
};

/* #### 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)

/* 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

/* PyObjectGetAttrStr.proto (used by PyObjectGetAttrStrNoError) */
#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

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

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

/* IterFinish.proto (used by dict_iter) */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* 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 (used by PyObjectCallNoArg) */
#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);

/* PyObjectCallNoArg.proto (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

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

/* PyObjectGetMethod.proto (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
#endif

/* PyObjectCallMethod0.proto (used by dict_iter) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNeedMoreValuesToUnpack.proto (used by UnpackTuple2) */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* RaiseTooManyValuesToUnpack.proto (used by UnpackItemEndCheck) */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* UnpackItemEndCheck.proto (used by UnpackTuple2) */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* RaiseNoneIterError.proto (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto (used by dict_iter) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
    PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple);
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* RaiseUnboundLocalError.proto */
static void __Pyx_RaiseUnboundLocalError(const char *varname);

/* GetException.proto (used by pep479) */
#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

/* pep479.proto */
static void __Pyx_Generator_Replace_StopIteration(int in_async_gen);

/* 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

/* PyTypeError_Check.proto */
#define __Pyx_PyExc_TypeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_TypeError)

/* PyOverflowError_Check.proto */
#define __Pyx_PyExc_OverflowError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_OverflowError)

/* 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

/* PyIndexError_Check.proto */
#define __Pyx_PyExc_IndexError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_IndexError)

/* PyMemoryError_Check.proto */
#define __Pyx_PyExc_MemoryError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_MemoryError)

/* PyObjectFastCallMethod.proto */
#if CYTHON_VECTORCALL && PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyObject_FastCallMethod(name, args, nargsf) PyObject_VectorcallMethod(name, args, nargsf, NULL)
#else
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf);
#endif

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

/* 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

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

/* 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

/* 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)

/* 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);

/* 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

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

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck, unsafe_shared) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck, int unsafe_shared);

/* CallableCheck.proto */
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyCallable_Check(obj)   (Py_TYPE(obj)->tp_call != NULL)
#else
#define __Pyx_PyCallable_Check(obj)   PyCallable_Check(obj)
#endif

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* PyLongCompare.proto */
static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* PyObject_Unicode.proto */
#define __Pyx_PyObject_Unicode(obj)\
    (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj))

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* RejectKeywords.export */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds);

/* 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

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* AssertionsEnabled.proto */
#if CYTHON_COMPILING_IN_LIMITED_API  ||  PY_VERSION_HEX >= 0x030C0000
  static int __pyx_assertions_enabled_flag;
  #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag)
  #if __clang__ || __GNUC__
  __attribute__((no_sanitize("thread")))
  #endif
  static int __Pyx_init_assertions_enabled(void) {
    PyObject *builtins, *debug, *debug_str;
    int flag;
    builtins = PyEval_GetBuiltins();
    if (!builtins) goto bad;
    debug_str = PyUnicode_FromStringAndSize("__debug__", 9);
    if (!debug_str) goto bad;
    debug = PyObject_GetItem(builtins, debug_str);
    Py_DECREF(debug_str);
    if (!debug) goto bad;
    flag = PyObject_IsTrue(debug);
    Py_DECREF(debug);
    if (flag == -1) goto bad;
    __pyx_assertions_enabled_flag = flag;
    return 0;
  bad:
    __pyx_assertions_enabled_flag = 1;
    return -1;
  }
#else
  #define __Pyx_init_assertions_enabled()  (0)
  #define __pyx_assertions_enabled()  (!Py_OptimizeFlag)
#endif

/* PyAssertionError_Check.proto */
#define __Pyx_PyExc_AssertionError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AssertionError)

/* PyRange_Check.proto */
#if CYTHON_COMPILING_IN_PYPY && !defined(PyRange_Check)
  #define PyRange_Check(obj)  __Pyx_TypeCheck((obj), &PyRange_Type)
#endif

/* pyint_simplify.proto */
static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* MoveIfSupported.proto */
#if CYTHON_USE_CPP_STD_MOVE
  #include <utility>
  #define __PYX_STD_MOVE_IF_SUPPORTED(x) std::move(x)
#else
  #define __PYX_STD_MOVE_IF_SUPPORTED(x) x
#endif

/* KeywordStringCheck.proto */
static CYTHON_INLINE int __Pyx_CheckKeywordStrings(const char* function_name, PyObject *kw);

/* PyUnicode_Unicode.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj);

/* PyNumber_Hex.proto */
#define __Pyx_PyNumber_Hex(obj) PyNumber_ToBase((obj), 16)

/* UnicodeConcatInPlace.proto */
# if CYTHON_COMPILING_IN_CPYTHON
    #if CYTHON_REFNANNY
        #define __Pyx_PyUnicode_ConcatInPlace(left, right, unsafe_shared) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, unsafe_shared, __pyx_refnanny)
    #else
        #define __Pyx_PyUnicode_ConcatInPlace(left, right, unsafe_shared) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, unsafe_shared)
    #endif
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_DefinitelyUnique)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_OwnStrongReference)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_DefinitelyUnique)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_SharedReference)
    static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right, int unsafe_shared
        #if CYTHON_REFNANNY
        , void* __pyx_refnanny
        #endif
    );
#else
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace __Pyx_PyUnicode_Concat
#endif
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace(left, right))

/* PyValueError_Check.proto */
#define __Pyx_PyExc_ValueError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_ValueError)

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#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

/* 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))

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_SubtractObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
#endif

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

/* PySequenceMultiply.proto */
#define __Pyx_PySequence_Multiply_Left(mul, seq)  __Pyx_PySequence_Multiply(seq, mul)
#if !CYTHON_USE_TYPE_SLOTS
#define  __Pyx_PySequence_Multiply PySequence_Repeat
#else
static CYTHON_INLINE PyObject* __Pyx_PySequence_Multiply(PyObject *seq, Py_ssize_t mul);
#endif

/* 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);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* 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);

/* AllocateExtensionType.proto */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final);

/* DefaultPlacementNew.proto */
#include <new>
template<typename T>
void __Pyx_default_placement_construct(T* x) {
    new (static_cast<void*>(x)) T();
}

/* CallNextTpDealloc.proto */
static void __Pyx_call_next_tp_dealloc(PyObject* obj, destructor current_tp_dealloc);

/* CheckTypeForFreelists.proto */
#if CYTHON_USE_FREELISTS
#if CYTHON_USE_TYPE_SPECS
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t) == (expected_tp)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  Py_TPFLAGS_IS_ABSTRACT
#else
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t)->tp_basicsize == (expected_size)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)
#endif
#define __PYX_CHECK_TYPE_FOR_FREELISTS(t, expected_tp, expected_size)\
    (__PYX_CHECK_FINAL_TYPE_FOR_FREELISTS((t), (expected_tp), (expected_size)) &\
     (int) (!__Pyx_PyType_HasFeature((t), __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS)))
#endif

/* ValidateBasesTuple.proto (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases);
#endif

/* PyType_Ready.proto */
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);

/* DelItemOnTypeDict.proto (used by SetupReduce) */
static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k);
#define __Pyx_DelItemOnTypeDict(tp, k) __Pyx__DelItemOnTypeDict((PyTypeObject*)tp, k)

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto_3_2_2
#define __PYX_HAVE_RT_ImportType_proto_3_2_2
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
#include <stdalign.h>
#endif
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
#define __PYX_GET_STRUCT_ALIGNMENT_3_2_2(s) alignof(s)
#else
#define __PYX_GET_STRUCT_ALIGNMENT_3_2_2(s) sizeof(void*)
#endif
enum __Pyx_ImportType_CheckSize_3_2_2 {
   __Pyx_ImportType_CheckSize_Error_3_2_2 = 0,
   __Pyx_ImportType_CheckSize_Warn_3_2_2 = 1,
   __Pyx_ImportType_CheckSize_Ignore_3_2_2 = 2
};
static PyTypeObject *__Pyx_ImportType_3_2_2(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_2_2 check_size);
#endif

/* FunctionImport.proto */
static int __Pyx_ImportFunction_3_2_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* Py3UpdateBases.proto */
static PyObject* __Pyx_PEP560_update_bases(PyObject *bases);

/* CalculateMetaclass.proto */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

/* SetNameInClass.proto */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
#elif CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
#else
#define __Pyx_SetNameInClass(ns, name, value)  PyObject_SetItem(ns, name, value)
#endif

/* PyObjectCall2Args.proto (used by Py3ClassCreate) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* PyObjectLookupSpecial.proto (used by Py3ClassCreate) */
#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

/* Py3ClassCreate.proto */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
                                           PyObject *mkw, PyObject *modname, PyObject *doc);
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass);

/* 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);

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

/* LengthHint.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_PyObject_LengthHint(o, defaultval)  (defaultval)
#else
#define __Pyx_PyObject_LengthHint(o, defaultval)  PyObject_LengthHint(o, defaultval)
#endif

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From___pyx_anon_enum(int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaError(enum cudaError value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphDependencyType_enum(enum cudaGraphDependencyType_enum value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphInstantiateResult(enum cudaGraphInstantiateResult value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaLaunchMemSyncDomain(enum cudaLaunchMemSyncDomain value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaLaunchAttributeID(enum cudaLaunchAttributeID value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaAsyncNotificationType_enum(enum cudaAsyncNotificationType_enum value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUDAlogLevel_enum(enum CUDAlogLevel_enum value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDataType_t(enum cudaDataType_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaEmulationStrategy_t(enum cudaEmulationStrategy_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaEmulationMantissaControl_t(enum cudaEmulationMantissaControl_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaEmulationSpecialValuesSupport_t(enum cudaEmulationSpecialValuesSupport_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__libraryPropertyType_t(enum libraryPropertyType_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaChannelFormatKind(enum cudaChannelFormatKind value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemoryType(enum cudaMemoryType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemcpyKind(enum cudaMemcpyKind value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaAccessProperty(enum cudaAccessProperty value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaStreamCaptureStatus(enum cudaStreamCaptureStatus value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaStreamCaptureMode(enum cudaStreamCaptureMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSynchronizationPolicy(enum cudaSynchronizationPolicy value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaClusterSchedulingPolicy(enum cudaClusterSchedulingPolicy value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaStreamUpdateCaptureDependenciesFlags(enum cudaStreamUpdateCaptureDependenciesFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaUserObjectFlags(enum cudaUserObjectFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaUserObjectRetainFlags(enum cudaUserObjectRetainFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphicsRegisterFlags(enum cudaGraphicsRegisterFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphicsMapFlags(enum cudaGraphicsMapFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphicsCubeFace(enum cudaGraphicsCubeFace value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaResourceType(enum cudaResourceType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaResourceViewFormat(enum cudaResourceViewFormat value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFuncAttribute(enum cudaFuncAttribute value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFuncCache(enum cudaFuncCache value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSharedMemConfig(enum cudaSharedMemConfig value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSharedCarveout(enum cudaSharedCarveout value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaComputeMode(enum cudaComputeMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaLimit(enum cudaLimit value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemoryAdvise(enum cudaMemoryAdvise value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemRangeAttribute(enum cudaMemRangeAttribute value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesOptions(enum cudaFlushGPUDirectRDMAWritesOptions value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGPUDirectRDMAWritesOrdering(enum cudaGPUDirectRDMAWritesOrdering value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesScope(enum cudaFlushGPUDirectRDMAWritesScope value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesTarget(enum cudaFlushGPUDirectRDMAWritesTarget value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDeviceAttr(enum cudaDeviceAttr value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemPoolAttr(enum cudaMemPoolAttr value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemLocationType(enum cudaMemLocationType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemAccessFlags(enum cudaMemAccessFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemAllocationType(enum cudaMemAllocationType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemAllocationHandleType(enum cudaMemAllocationHandleType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphMemAttributeType(enum cudaGraphMemAttributeType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemcpyFlags(enum cudaMemcpyFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder(enum cudaMemcpySrcAccessOrder value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemcpy3DOperandType(enum cudaMemcpy3DOperandType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDeviceP2PAttr(enum cudaDeviceP2PAttr value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaAtomicOperation(enum cudaAtomicOperation value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(enum cudaExternalMemoryHandleType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(enum cudaExternalSemaphoreHandleType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDevSmResourceGroup_flags(enum cudaDevSmResourceGroup_flags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDevSmResourceSplitByCount_flags(enum cudaDevSmResourceSplitByCount_flags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDevResourceType(enum cudaDevResourceType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDevWorkqueueConfigScope(enum cudaDevWorkqueueConfigScope value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaJitOption(enum cudaJitOption value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaLibraryOption(enum cudaLibraryOption value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaJit_CacheMode(enum cudaJit_CacheMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaJit_Fallback(enum cudaJit_Fallback value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaCGScope(enum cudaCGScope value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphConditionalHandleFlags(enum cudaGraphConditionalHandleFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphConditionalNodeType(enum cudaGraphConditionalNodeType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphNodeType(enum cudaGraphNodeType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphChildGraphNodeOwnership(enum cudaGraphChildGraphNodeOwnership value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(enum cudaGraphExecUpdateResult value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphKernelNodeField(enum cudaGraphKernelNodeField value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGetDriverEntryPointFlags(enum cudaGetDriverEntryPointFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDriverEntryPointQueryResult(enum cudaDriverEntryPointQueryResult value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(enum cudaGraphDebugDotFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphInstantiateFlags(enum cudaGraphInstantiateFlags value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDeviceNumaConfig(enum cudaDeviceNumaConfig value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSurfaceBoundaryMode(enum cudaSurfaceBoundaryMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSurfaceFormatMode(enum cudaSurfaceFormatMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaTextureAddressMode(enum cudaTextureAddressMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaTextureFilterMode(enum cudaTextureFilterMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaTextureReadMode(enum cudaTextureReadMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaRoundMode(enum cudaRoundMode value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags value);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyLong_As_unsigned_PY_LONG_LONG(PyObject *);

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

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

/* CIntFromPy.proto */
static CYTHON_INLINE size_t __Pyx_PyLong_As_size_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned short __Pyx_PyLong_As_unsigned_short(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyLong_As_PY_LONG_LONG(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned char __Pyx_PyLong_As_unsigned_char(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE uint32_t __Pyx_PyLong_As_uint32_t(PyObject *);

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

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_PY_LONG_LONG(unsigned PY_LONG_LONG value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUmemPool_attribute_enum __Pyx_PyLong_As_enum__CUmemPool_attribute_enum(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUmemPool_attribute_enum(enum CUmemPool_attribute_enum value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUmem_range_attribute_enum __Pyx_PyLong_As_enum__CUmem_range_attribute_enum(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUmem_range_attribute_enum(enum CUmem_range_attribute_enum value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUpointer_attribute_enum __Pyx_PyLong_As_enum__CUpointer_attribute_enum(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_int(unsigned int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUpointer_attribute_enum(enum CUpointer_attribute_enum value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUgraphMem_attribute_enum __Pyx_PyLong_As_enum__CUgraphMem_attribute_enum(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUgraphMem_attribute_enum(enum CUgraphMem_attribute_enum value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUjit_option_enum __Pyx_PyLong_As_enum__CUjit_option_enum(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUjit_target_enum __Pyx_PyLong_As_enum__CUjit_target_enum(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUjit_fallback_enum __Pyx_PyLong_As_enum__CUjit_fallback_enum(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUjit_cacheMode_enum __Pyx_PyLong_As_enum__CUjit_cacheMode_enum(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaJitOption __Pyx_PyLong_As_enum__cudaJitOption(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaJit_Fallback __Pyx_PyLong_As_enum__cudaJit_Fallback(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaJit_CacheMode __Pyx_PyLong_As_enum__cudaJit_CacheMode(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUlibraryOption_enum __Pyx_PyLong_As_enum__CUlibraryOption_enum(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaLibraryOption __Pyx_PyLong_As_enum__cudaLibraryOption(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUmemAllocationHandleType_enum __Pyx_PyLong_As_enum__CUmemAllocationHandleType_enum(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUmemAllocationHandleType_enum(enum CUmemAllocationHandleType_enum value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum CUcoredumpSettings_enum __Pyx_PyLong_As_enum__CUcoredumpSettings_enum(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUcoredumpSettings_enum(enum CUcoredumpSettings_enum value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaChannelFormatKind __Pyx_PyLong_As_enum__cudaChannelFormatKind(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemcpyKind __Pyx_PyLong_As_enum__cudaMemcpyKind(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaAccessProperty __Pyx_PyLong_As_enum__cudaAccessProperty(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaResourceType __Pyx_PyLong_As_enum__cudaResourceType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaResourceViewFormat __Pyx_PyLong_As_enum__cudaResourceViewFormat(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemoryType __Pyx_PyLong_As_enum__cudaMemoryType(PyObject *);

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

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemLocationType __Pyx_PyLong_As_enum__cudaMemLocationType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemAccessFlags __Pyx_PyLong_As_enum__cudaMemAccessFlags(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemAllocationType __Pyx_PyLong_As_enum__cudaMemAllocationType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemAllocationHandleType __Pyx_PyLong_As_enum__cudaMemAllocationHandleType(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_short(unsigned short value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemcpySrcAccessOrder __Pyx_PyLong_As_enum__cudaMemcpySrcAccessOrder(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemcpy3DOperandType __Pyx_PyLong_As_enum__cudaMemcpy3DOperandType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE char __Pyx_PyLong_As_char(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaExternalMemoryHandleType __Pyx_PyLong_As_enum__cudaExternalMemoryHandleType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaExternalSemaphoreHandleType __Pyx_PyLong_As_enum__cudaExternalSemaphoreHandleType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaDevWorkqueueConfigScope __Pyx_PyLong_As_enum__cudaDevWorkqueueConfigScope(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaDevResourceType __Pyx_PyLong_As_enum__cudaDevResourceType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaGraphConditionalNodeType __Pyx_PyLong_As_enum__cudaGraphConditionalNodeType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaGraphChildGraphNodeOwnership __Pyx_PyLong_As_enum__cudaGraphChildGraphNodeOwnership(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaGraphNodeType __Pyx_PyLong_As_enum__cudaGraphNodeType(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_PY_LONG_LONG(PY_LONG_LONG value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_char(unsigned char value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaGraphInstantiateResult __Pyx_PyLong_As_enum__cudaGraphInstantiateResult(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaGraphExecUpdateResult __Pyx_PyLong_As_enum__cudaGraphExecUpdateResult(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaGraphKernelNodeField __Pyx_PyLong_As_enum__cudaGraphKernelNodeField(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaSynchronizationPolicy __Pyx_PyLong_As_enum__cudaSynchronizationPolicy(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaClusterSchedulingPolicy __Pyx_PyLong_As_enum__cudaClusterSchedulingPolicy(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaLaunchMemSyncDomain __Pyx_PyLong_As_enum__cudaLaunchMemSyncDomain(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaLaunchAttributeID __Pyx_PyLong_As_enum__cudaLaunchAttributeID(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaAsyncNotificationType_enum __Pyx_PyLong_As_enum__cudaAsyncNotificationType_enum(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaTextureAddressMode __Pyx_PyLong_As_enum__cudaTextureAddressMode(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaTextureFilterMode __Pyx_PyLong_As_enum__cudaTextureFilterMode(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaTextureReadMode __Pyx_PyLong_As_enum__cudaTextureReadMode(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_uint32_t(uint32_t value);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaLimit __Pyx_PyLong_As_enum__cudaLimit(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaFuncCache __Pyx_PyLong_As_enum__cudaFuncCache(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaFlushGPUDirectRDMAWritesTarget __Pyx_PyLong_As_enum__cudaFlushGPUDirectRDMAWritesTarget(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaFlushGPUDirectRDMAWritesScope __Pyx_PyLong_As_enum__cudaFlushGPUDirectRDMAWritesScope(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaSharedMemConfig __Pyx_PyLong_As_enum__cudaSharedMemConfig(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaError __Pyx_PyLong_As_enum__cudaError(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaDeviceAttr __Pyx_PyLong_As_enum__cudaDeviceAttr(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaAtomicOperation __Pyx_PyLong_As_enum__cudaAtomicOperation(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaDeviceP2PAttr __Pyx_PyLong_As_enum__cudaDeviceP2PAttr(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaStreamCaptureMode __Pyx_PyLong_As_enum__cudaStreamCaptureMode(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaFuncAttribute __Pyx_PyLong_As_enum__cudaFuncAttribute(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemoryAdvise __Pyx_PyLong_As_enum__cudaMemoryAdvise(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemRangeAttribute __Pyx_PyLong_As_enum__cudaMemRangeAttribute(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaMemPoolAttr __Pyx_PyLong_As_enum__cudaMemPoolAttr(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum cudaGraphMemAttributeType __Pyx_PyLong_As_enum__cudaGraphMemAttributeType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(PyObject *);

/* CppExceptionConversion.proto */
#ifndef __Pyx_CppExn2PyErr
#include <new>
#include <typeinfo>
#include <stdexcept>
#include <ios>
static void __Pyx_CppExn2PyErr() {
  try {
    if (PyErr_Occurred())
      ; // let the latest Python exn pass through and ignore the current one
    else
      throw;
  } catch (const std::bad_alloc& exn) {
    PyErr_SetString(PyExc_MemoryError, exn.what());
  } catch (const std::bad_cast& exn) {
    PyErr_SetString(PyExc_TypeError, exn.what());
  } catch (const std::bad_typeid& exn) {
    PyErr_SetString(PyExc_TypeError, exn.what());
  } catch (const std::domain_error& exn) {
    PyErr_SetString(PyExc_ValueError, exn.what());
  } catch (const std::invalid_argument& exn) {
    PyErr_SetString(PyExc_ValueError, exn.what());
  } catch (const std::ios_base::failure& exn) {
    PyErr_SetString(PyExc_IOError, exn.what());
  } catch (const std::out_of_range& exn) {
    PyErr_SetString(PyExc_IndexError, exn.what());
  } catch (const std::overflow_error& exn) {
    PyErr_SetString(PyExc_OverflowError, exn.what());
  } catch (const std::range_error& exn) {
    PyErr_SetString(PyExc_ArithmeticError, exn.what());
  } catch (const std::underflow_error& exn) {
    PyErr_SetString(PyExc_ArithmeticError, exn.what());
  } catch (const std::exception& exn) {
    PyErr_SetString(PyExc_RuntimeError, exn.what());
  }
  catch (...)
  {
    PyErr_SetString(PyExc_RuntimeError, "Unknown exception");
  }
}
#endif

/* 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

/* 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);

/* SwapException.proto (used by CoroutineBase) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* IterNextPlain.proto (used by CoroutineBase) */
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator);
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void);
#endif

/* PyObjectCallMethod1.proto (used by CoroutineBase) */
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

/* ReturnWithStopIteration.proto (used by CoroutineBase) */
static CYTHON_INLINE void __Pyx_ReturnWithStopIteration(PyObject* value, int async, int iternext);

/* CoroutineBase.proto (used by Generator) */
struct __pyx_CoroutineObject;
typedef PyObject *(*__pyx_coroutine_body_t)(struct __pyx_CoroutineObject *, PyThreadState *, PyObject *);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_ExcInfoStruct  _PyErr_StackItem
#else
typedef struct {
    PyObject *exc_type;
    PyObject *exc_value;
    PyObject *exc_traceback;
} __Pyx_ExcInfoStruct;
#endif
typedef struct __pyx_CoroutineObject {
    PyObject_HEAD
    __pyx_coroutine_body_t body;
    PyObject *closure;
    __Pyx_ExcInfoStruct gi_exc_state;
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *gi_weakreflist;
#endif
    PyObject *classobj;
    PyObject *yieldfrom;
    __Pyx_pyiter_sendfunc yieldfrom_am_send;
    PyObject *gi_name;
    PyObject *gi_qualname;
    PyObject *gi_modulename;
    PyObject *gi_code;
    PyObject *gi_frame;
#if CYTHON_USE_SYS_MONITORING && (CYTHON_PROFILE || CYTHON_TRACE)
    PyMonitoringState __pyx_pymonitoring_state[__Pyx_MonitoringEventTypes_CyGen_count];
    uint64_t __pyx_pymonitoring_version;
#endif
    int resume_label;
    char is_running;
} __pyx_CoroutineObject;
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
    PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
    PyObject *name, PyObject *qualname, PyObject *module_name);
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name);
static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self);
static int __Pyx_Coroutine_clear(PyObject *self);
static __Pyx_PySendResult __Pyx_Coroutine_AmSend(PyObject *self, PyObject *value, PyObject **retval);
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value);
static __Pyx_PySendResult __Pyx_Coroutine_Close(PyObject *self, PyObject **retval);
static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_Coroutine_SwapException(self)
#define __Pyx_Coroutine_ResetAndClearException(self)  __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state)
#else
#define __Pyx_Coroutine_SwapException(self) {\
    __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\
    __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\
    }
#define __Pyx_Coroutine_ResetAndClearException(self) {\
    __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\
    (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\
    }
#endif
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue)
#else
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue)
#endif
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue);
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state);
static char __Pyx_Coroutine_test_and_set_is_running(__pyx_CoroutineObject *gen);
static void __Pyx_Coroutine_unset_is_running(__pyx_CoroutineObject *gen);
static char __Pyx_Coroutine_get_is_running(__pyx_CoroutineObject *gen);
static PyObject *__Pyx_Coroutine_get_is_running_getter(PyObject *gen, void *closure);
#if __PYX_HAS_PY_AM_SEND == 2
static void __Pyx_SetBackportTypeAmSend(PyTypeObject *type, __Pyx_PyAsyncMethodsStruct *static_amsend_methods, __Pyx_pyiter_sendfunc am_send);
#endif
static PyObject *__Pyx_Coroutine_fail_reduce_ex(PyObject *self, PyObject *arg);

/* Generator.proto */
#define __Pyx_Generator_USED
#define __Pyx_Generator_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_GeneratorType)
#define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\
    __Pyx__Coroutine_New(__pyx_mstate_global->__pyx_GeneratorType, body, code, closure, name, qualname, module_name)
static PyObject *__Pyx_Generator_Next(PyObject *self);
static int __pyx_Generator_init(PyObject *module);
static CYTHON_INLINE PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self);

/* 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.cyruntime" */
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceReset)(void); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSynchronize)(void); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetLimit)(enum cudaLimit, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetLimit)(size_t *, enum cudaLimit); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetTexture1DLinearMaxWidth)(size_t *, struct cudaChannelFormatDesc const *, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetCacheConfig)(enum cudaFuncCache *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetStreamPriorityRange)(int *, int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetCacheConfig)(enum cudaFuncCache); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetByPCIBusId)(int *, char const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetPCIBusId)(char *, int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcGetEventHandle)(cudaIpcEventHandle_t *, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcOpenEventHandle)(cudaEvent_t *, cudaIpcEventHandle_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcGetMemHandle)(cudaIpcMemHandle_t *, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcOpenMemHandle)(void **, cudaIpcMemHandle_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcCloseMemHandle)(void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceFlushGPUDirectRDMAWrites)(enum cudaFlushGPUDirectRDMAWritesTarget, enum cudaFlushGPUDirectRDMAWritesScope); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceRegisterAsyncNotification)(int, cudaAsyncCallback, void *, cudaAsyncCallbackHandle_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceUnregisterAsyncNotification)(int, cudaAsyncCallbackHandle_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetSharedMemConfig)(enum cudaSharedMemConfig *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetSharedMemConfig)(enum cudaSharedMemConfig); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetLastError)(void); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaPeekAtLastError)(void); /*proto*/
static char const *(*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetErrorName)(cudaError_t); /*proto*/
static char const *(*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetErrorString)(cudaError_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceCount)(int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceProperties)(struct cudaDeviceProp *, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetAttribute)(int *, enum cudaDeviceAttr, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetHostAtomicCapabilities)(unsigned int *, enum cudaAtomicOperation const *, unsigned int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetDefaultMemPool)(cudaMemPool_t *, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetMemPool)(int, cudaMemPool_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetMemPool)(cudaMemPool_t *, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetNvSciSyncAttributes)(void *, int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetP2PAttribute)(int *, enum cudaDeviceP2PAttr, int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetP2PAtomicCapabilities)(unsigned int *, enum cudaAtomicOperation const *, unsigned int, int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaChooseDevice)(int *, struct cudaDeviceProp const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaInitDevice)(int, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaSetDevice)(int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDevice)(int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaSetDeviceFlags)(unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceFlags)(unsigned int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreate)(cudaStream_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreateWithFlags)(cudaStream_t *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreateWithPriority)(cudaStream_t *, unsigned int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetPriority)(cudaStream_t, int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetFlags)(cudaStream_t, unsigned int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetId)(cudaStream_t, unsigned PY_LONG_LONG *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetDevice)(cudaStream_t, int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaCtxResetPersistingL2Cache)(void); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCopyAttributes)(cudaStream_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetAttribute)(cudaStream_t, __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID, __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrValue *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamSetAttribute)(cudaStream_t, __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID, __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrValue const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamDestroy)(cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamWaitEvent)(cudaStream_t, cudaEvent_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamAddCallback)(cudaStream_t, cudaStreamCallback_t, void *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamSynchronize)(cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamQuery)(cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamAttachMemAsync)(cudaStream_t, void *, size_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamBeginCapture)(cudaStream_t, enum cudaStreamCaptureMode); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamBeginCaptureToGraph)(cudaStream_t, cudaGraph_t, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t, enum cudaStreamCaptureMode); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaThreadExchangeStreamCaptureMode)(enum cudaStreamCaptureMode *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamEndCapture)(cudaStream_t, cudaGraph_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamIsCapturing)(cudaStream_t, enum cudaStreamCaptureStatus *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetCaptureInfo)(cudaStream_t, enum cudaStreamCaptureStatus *, unsigned PY_LONG_LONG *, cudaGraph_t *, cudaGraphNode_t const **, cudaGraphEdgeData const **, size_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamUpdateCaptureDependencies)(cudaStream_t, cudaGraphNode_t *, cudaGraphEdgeData const *, size_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreate)(cudaEvent_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreateWithFlags)(cudaEvent_t *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventRecord)(cudaEvent_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventRecordWithFlags)(cudaEvent_t, cudaStream_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventQuery)(cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventSynchronize)(cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventDestroy)(cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventElapsedTime)(float *, cudaEvent_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaImportExternalMemory)(cudaExternalMemory_t *, struct cudaExternalMemoryHandleDesc const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExternalMemoryGetMappedBuffer)(void **, cudaExternalMemory_t, struct cudaExternalMemoryBufferDesc const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExternalMemoryGetMappedMipmappedArray)(cudaMipmappedArray_t *, cudaExternalMemory_t, struct cudaExternalMemoryMipmappedArrayDesc const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyExternalMemory)(cudaExternalMemory_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaImportExternalSemaphore)(cudaExternalSemaphore_t *, struct cudaExternalSemaphoreHandleDesc const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaSignalExternalSemaphoresAsync)(cudaExternalSemaphore_t const *, struct cudaExternalSemaphoreSignalParams const *, unsigned int, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaWaitExternalSemaphoresAsync)(cudaExternalSemaphore_t const *, struct cudaExternalSemaphoreWaitParams const *, unsigned int, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyExternalSemaphore)(cudaExternalSemaphore_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetCacheConfig)(void const *, enum cudaFuncCache); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFuncGetAttributes)(struct cudaFuncAttributes *, void const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetAttribute)(void const *, enum cudaFuncAttribute, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLaunchHostFunc)(cudaStream_t, cudaHostFn_t, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetSharedMemConfig)(void const *, enum cudaSharedMemConfig); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyMaxActiveBlocksPerMultiprocessor)(int *, void const *, int, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyAvailableDynamicSMemPerBlock)(size_t *, void const *, int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(int *, void const *, int, size_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocManaged)(void **, size_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc)(void **, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocHost)(void **, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocPitch)(void **, size_t *, size_t, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocArray)(cudaArray_t *, struct cudaChannelFormatDesc const *, size_t, size_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFree)(void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFreeHost)(void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFreeArray)(cudaArray_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFreeMipmappedArray)(cudaMipmappedArray_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaHostAlloc)(void **, size_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaHostRegister)(void *, size_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaHostUnregister)(void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaHostGetDevicePointer)(void **, void *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaHostGetFlags)(unsigned int *, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc3D)(struct cudaPitchedPtr *, struct cudaExtent); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc3DArray)(cudaArray_t *, struct cudaChannelFormatDesc const *, struct cudaExtent, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocMipmappedArray)(cudaMipmappedArray_t *, struct cudaChannelFormatDesc const *, struct cudaExtent, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetMipmappedArrayLevel)(cudaArray_t *, cudaMipmappedArray_const_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3D)(struct cudaMemcpy3DParms const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DPeer)(struct cudaMemcpy3DPeerParms const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DAsync)(struct cudaMemcpy3DParms const *, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DPeerAsync)(struct cudaMemcpy3DPeerParms const *, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetInfo)(size_t *, size_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetInfo)(struct cudaChannelFormatDesc *, struct cudaExtent *, unsigned int *, cudaArray_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetPlane)(cudaArray_t *, cudaArray_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetMemoryRequirements)(struct cudaArrayMemoryRequirements *, cudaArray_t, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMipmappedArrayGetMemoryRequirements)(struct cudaArrayMemoryRequirements *, cudaMipmappedArray_t, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetSparseProperties)(struct cudaArraySparseProperties *, cudaArray_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMipmappedArrayGetSparseProperties)(struct cudaArraySparseProperties *, cudaMipmappedArray_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy)(void *, void const *, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyPeer)(void *, int, void const *, int, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2D)(void *, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DToArray)(cudaArray_t, size_t, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DFromArray)(void *, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DArrayToArray)(cudaArray_t, size_t, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyAsync)(void *, void const *, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyPeerAsync)(void *, int, void const *, int, size_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyBatchAsync)(void const **, void const **, size_t const *, size_t, struct cudaMemcpyAttributes *, size_t *, size_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DBatchAsync)(size_t, struct cudaMemcpy3DBatchOp *, unsigned PY_LONG_LONG, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DAsync)(void *, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DToArrayAsync)(cudaArray_t, size_t, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DFromArrayAsync)(void *, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset)(void *, int, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset2D)(void *, size_t, int, size_t, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset3D)(struct cudaPitchedPtr, int, struct cudaExtent); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemsetAsync)(void *, int, size_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset2DAsync)(void *, size_t, int, size_t, size_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset3DAsync)(struct cudaPitchedPtr, int, struct cudaExtent, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPrefetchAsync)(void const *, size_t, struct cudaMemLocation, unsigned int, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPrefetchBatchAsync)(void **, size_t *, size_t, struct cudaMemLocation *, size_t *, size_t, unsigned PY_LONG_LONG, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemDiscardBatchAsync)(void **, size_t *, size_t, unsigned PY_LONG_LONG, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemDiscardAndPrefetchBatchAsync)(void **, size_t *, size_t, struct cudaMemLocation *, size_t *, size_t, unsigned PY_LONG_LONG, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemAdvise)(void const *, size_t, enum cudaMemoryAdvise, struct cudaMemLocation); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemRangeGetAttribute)(void *, size_t, enum cudaMemRangeAttribute, void const *, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemRangeGetAttributes)(void **, size_t *, enum cudaMemRangeAttribute *, size_t, void const *, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyToArray)(cudaArray_t, size_t, size_t, void const *, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyFromArray)(void *, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyArrayToArray)(cudaArray_t, size_t, size_t, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyToArrayAsync)(cudaArray_t, size_t, size_t, void const *, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyFromArrayAsync)(void *, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocAsync)(void **, size_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaFreeAsync)(void *, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolTrimTo)(cudaMemPool_t, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolSetAttribute)(cudaMemPool_t, enum cudaMemPoolAttr, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolGetAttribute)(cudaMemPool_t, enum cudaMemPoolAttr, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolSetAccess)(cudaMemPool_t, struct cudaMemAccessDesc const *, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolGetAccess)(enum cudaMemAccessFlags *, cudaMemPool_t, struct cudaMemLocation *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolCreate)(cudaMemPool_t *, struct cudaMemPoolProps const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolDestroy)(cudaMemPool_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetDefaultMemPool)(cudaMemPool_t *, struct cudaMemLocation *, enum cudaMemAllocationType); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetMemPool)(cudaMemPool_t *, struct cudaMemLocation *, enum cudaMemAllocationType); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemSetMemPool)(struct cudaMemLocation *, enum cudaMemAllocationType, cudaMemPool_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocFromPoolAsync)(void **, size_t, cudaMemPool_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolExportToShareableHandle)(void *, cudaMemPool_t, enum cudaMemAllocationHandleType, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolImportFromShareableHandle)(cudaMemPool_t *, void *, enum cudaMemAllocationHandleType, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolExportPointer)(struct cudaMemPoolPtrExportData *, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolImportPointer)(void **, cudaMemPool_t, struct cudaMemPoolPtrExportData *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaPointerGetAttributes)(struct cudaPointerAttributes *, void const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceCanAccessPeer)(int *, int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceEnablePeerAccess)(int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceDisablePeerAccess)(int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsUnregisterResource)(cudaGraphicsResource_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceSetMapFlags)(cudaGraphicsResource_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsMapResources)(int, cudaGraphicsResource_t *, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsUnmapResources)(int, cudaGraphicsResource_t *, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedPointer)(void **, size_t *, cudaGraphicsResource_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsSubResourceGetMappedArray)(cudaArray_t *, cudaGraphicsResource_t, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedMipmappedArray)(cudaMipmappedArray_t *, cudaGraphicsResource_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetChannelDesc)(struct cudaChannelFormatDesc *, cudaArray_const_t); /*proto*/
static struct cudaChannelFormatDesc (*__pyx_f_4cuda_8bindings_9cyruntime_cudaCreateChannelDesc)(int, int, int, int, enum cudaChannelFormatKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaCreateTextureObject)(cudaTextureObject_t *, struct cudaResourceDesc const *, struct cudaTextureDesc const *, struct cudaResourceViewDesc const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyTextureObject)(cudaTextureObject_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectResourceDesc)(struct cudaResourceDesc *, cudaTextureObject_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectTextureDesc)(struct cudaTextureDesc *, cudaTextureObject_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectResourceViewDesc)(struct cudaResourceViewDesc *, cudaTextureObject_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaCreateSurfaceObject)(cudaSurfaceObject_t *, struct cudaResourceDesc const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDestroySurfaceObject)(cudaSurfaceObject_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetSurfaceObjectResourceDesc)(struct cudaResourceDesc *, cudaSurfaceObject_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDriverGetVersion)(int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaRuntimeGetVersion)(int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsRegisterCallback)(cudaLogsCallback_t, void *, cudaLogsCallbackHandle *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsUnregisterCallback)(cudaLogsCallbackHandle); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsCurrent)(cudaLogIterator *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsDumpToFile)(cudaLogIterator *, char const *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsDumpToMemory)(cudaLogIterator *, char *, size_t *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphCreate)(cudaGraph_t *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddKernelNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaKernelNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeGetParams)(cudaGraphNode_t, struct cudaKernelNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeSetParams)(cudaGraphNode_t, struct cudaKernelNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeCopyAttributes)(cudaGraphNode_t, cudaGraphNode_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeGetAttribute)(cudaGraphNode_t, __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID, __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrValue *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeSetAttribute)(cudaGraphNode_t, __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID, __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrValue const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemcpyNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemcpy3DParms const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemcpyNode1D)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, void *, void const *, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeGetParams)(cudaGraphNode_t, struct cudaMemcpy3DParms *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeSetParams)(cudaGraphNode_t, struct cudaMemcpy3DParms const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeSetParams1D)(cudaGraphNode_t, void *, void const *, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemsetNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemsetParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemsetNodeGetParams)(cudaGraphNode_t, struct cudaMemsetParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemsetNodeSetParams)(cudaGraphNode_t, struct cudaMemsetParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddHostNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaHostNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphHostNodeGetParams)(cudaGraphNode_t, struct cudaHostNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphHostNodeSetParams)(cudaGraphNode_t, struct cudaHostNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddChildGraphNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaGraph_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphChildGraphNodeGetGraph)(cudaGraphNode_t, cudaGraph_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEmptyNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEventRecordNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventRecordNodeGetEvent)(cudaGraphNode_t, cudaEvent_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventRecordNodeSetEvent)(cudaGraphNode_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEventWaitNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventWaitNodeGetEvent)(cudaGraphNode_t, cudaEvent_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventWaitNodeSetEvent)(cudaGraphNode_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddExternalSemaphoresSignalNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaExternalSemaphoreSignalNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresSignalNodeGetParams)(cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresSignalNodeSetParams)(cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddExternalSemaphoresWaitNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaExternalSemaphoreWaitNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresWaitNodeGetParams)(cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresWaitNodeSetParams)(cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemAllocNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemAllocNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemAllocNodeGetParams)(cudaGraphNode_t, struct cudaMemAllocNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemFreeNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemFreeNodeGetParams)(cudaGraphNode_t, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGraphMemTrim)(int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetGraphMemAttribute)(int, enum cudaGraphMemAttributeType, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetGraphMemAttribute)(int, enum cudaGraphMemAttributeType, void *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphClone)(cudaGraph_t *, cudaGraph_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeFindInClone)(cudaGraphNode_t *, cudaGraphNode_t, cudaGraph_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetType)(cudaGraphNode_t, enum cudaGraphNodeType *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetContainingGraph)(cudaGraphNode_t, cudaGraph_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetLocalId)(cudaGraphNode_t, unsigned int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetToolsId)(cudaGraphNode_t, unsigned PY_LONG_LONG *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetId)(cudaGraph_t, unsigned int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecGetId)(cudaGraphExec_t, unsigned int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetNodes)(cudaGraph_t, cudaGraphNode_t *, size_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetRootNodes)(cudaGraph_t, cudaGraphNode_t *, size_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetEdges)(cudaGraph_t, cudaGraphNode_t *, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetDependencies)(cudaGraphNode_t, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetDependentNodes)(cudaGraphNode_t, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddDependencies)(cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphRemoveDependencies)(cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDestroyNode)(cudaGraphNode_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiate)(cudaGraphExec_t *, cudaGraph_t, unsigned PY_LONG_LONG); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiateWithFlags)(cudaGraphExec_t *, cudaGraph_t, unsigned PY_LONG_LONG); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiateWithParams)(cudaGraphExec_t *, cudaGraph_t, cudaGraphInstantiateParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecGetFlags)(cudaGraphExec_t, unsigned PY_LONG_LONG *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecKernelNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaKernelNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemcpyNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaMemcpy3DParms const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemcpyNodeSetParams1D)(cudaGraphExec_t, cudaGraphNode_t, void *, void const *, size_t, enum cudaMemcpyKind); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemsetNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaMemsetParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecHostNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaHostNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecChildGraphNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, cudaGraph_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecEventRecordNodeSetEvent)(cudaGraphExec_t, cudaGraphNode_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecEventWaitNodeSetEvent)(cudaGraphExec_t, cudaGraphNode_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecExternalSemaphoresSignalNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecExternalSemaphoresWaitNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeSetEnabled)(cudaGraphExec_t, cudaGraphNode_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetEnabled)(cudaGraphExec_t, cudaGraphNode_t, unsigned int *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecUpdate)(cudaGraphExec_t, cudaGraph_t, cudaGraphExecUpdateResultInfo *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphUpload)(cudaGraphExec_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphLaunch)(cudaGraphExec_t, cudaStream_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecDestroy)(cudaGraphExec_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDestroy)(cudaGraph_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDebugDotPrint)(cudaGraph_t, char const *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectCreate)(cudaUserObject_t *, void *, cudaHostFn_t, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectRetain)(cudaUserObject_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectRelease)(cudaUserObject_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphRetainUserObject)(cudaGraph_t, cudaUserObject_t, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphReleaseUserObject)(cudaGraph_t, cudaUserObject_t, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddNode)(cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t, struct cudaGraphNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeSetParams)(cudaGraphNode_t, struct cudaGraphNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecNodeSetParams)(cudaGraphExec_t, cudaGraphNode_t, struct cudaGraphNodeParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphConditionalHandleCreate)(cudaGraphConditionalHandle *, cudaGraph_t, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphConditionalHandleCreate_v2)(cudaGraphConditionalHandle *, cudaGraph_t, cudaExecutionContext_t, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDriverEntryPoint)(char const *, void **, unsigned PY_LONG_LONG, enum cudaDriverEntryPointQueryResult *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDriverEntryPointByVersion)(char const *, void **, unsigned int, unsigned PY_LONG_LONG, enum cudaDriverEntryPointQueryResult *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryLoadData)(cudaLibrary_t *, void const *, enum cudaJitOption *, void **, unsigned int, enum cudaLibraryOption *, void **, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryLoadFromFile)(cudaLibrary_t *, char const *, enum cudaJitOption *, void **, unsigned int, enum cudaLibraryOption *, void **, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryUnload)(cudaLibrary_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetKernel)(cudaKernel_t *, cudaLibrary_t, char const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetGlobal)(void **, size_t *, cudaLibrary_t, char const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetManaged)(void **, size_t *, cudaLibrary_t, char const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetUnifiedFunction)(void **, cudaLibrary_t, char const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetKernelCount)(unsigned int *, cudaLibrary_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryEnumerateKernels)(cudaKernel_t *, unsigned int, cudaLibrary_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaKernelSetAttributeForDevice)(cudaKernel_t, enum cudaFuncAttribute, int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetDevResource)(int, cudaDevResource *, enum cudaDevResourceType); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDevSmResourceSplitByCount)(cudaDevResource *, unsigned int *, cudaDevResource const *, cudaDevResource *, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDevSmResourceSplit)(cudaDevResource *, unsigned int, cudaDevResource const *, cudaDevResource *, unsigned int, cudaDevSmResourceGroupParams *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDevResourceGenerateDesc)(cudaDevResourceDesc_t *, cudaDevResource *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGreenCtxCreate)(cudaExecutionContext_t *, cudaDevResourceDesc_t, int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxDestroy)(cudaExecutionContext_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetDevResource)(cudaExecutionContext_t, cudaDevResource *, enum cudaDevResourceType); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetDevice)(int *, cudaExecutionContext_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetId)(cudaExecutionContext_t, unsigned PY_LONG_LONG *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxStreamCreate)(cudaStream_t *, cudaExecutionContext_t, unsigned int, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxSynchronize)(cudaExecutionContext_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetDevResource)(cudaStream_t, cudaDevResource *, enum cudaDevResourceType); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxRecordEvent)(cudaExecutionContext_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxWaitEvent)(cudaExecutionContext_t, cudaEvent_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetExecutionCtx)(cudaExecutionContext_t *, int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetExportTable)(void const **, cudaUUID_t const *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGetKernel)(cudaKernel_t *, void const *); /*proto*/
static struct cudaPitchedPtr (*__pyx_f_4cuda_8bindings_9cyruntime_make_cudaPitchedPtr)(void *, size_t, size_t, size_t); /*proto*/
static struct cudaPos (*__pyx_f_4cuda_8bindings_9cyruntime_make_cudaPos)(size_t, size_t, size_t); /*proto*/
static struct cudaExtent (*__pyx_f_4cuda_8bindings_9cyruntime_make_cudaExtent)(size_t, size_t, size_t); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsEGLRegisterImage)(struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerConnect)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerConnectWithFlags)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerDisconnect)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerAcquireFrame)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, cudaGraphicsResource_t *, cudaStream_t *, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerReleaseFrame)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, cudaGraphicsResource_t, cudaStream_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerConnect)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR, __pyx_t_4cuda_8bindings_9cyruntime_EGLint, __pyx_t_4cuda_8bindings_9cyruntime_EGLint); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerDisconnect)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerPresentFrame)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame, cudaStream_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerReturnFrame)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame *, cudaStream_t *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedEglFrame)(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame *, cudaGraphicsResource_t, unsigned int, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreateFromEGLSync)(cudaEvent_t *, __pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaProfilerStart)(void); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaProfilerStop)(void); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGLGetDevices)(unsigned int *, int *, unsigned int, enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsGLRegisterImage)(struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_GLuint, __pyx_t_4cuda_8bindings_9cyruntime_GLenum, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsGLRegisterBuffer)(struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_GLuint, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaVDPAUGetDevice)(int *, __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice, __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaVDPAUSetVDPAUDevice)(int, __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice, __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsVDPAURegisterVideoSurface)(struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsVDPAURegisterOutputSurface)(struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface, unsigned int); /*proto*/
static cudaError_t (*__pyx_f_4cuda_8bindings_9cyruntime_getLocalRuntimeVersion)(int *); /*proto*/

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

/* Module declarations from "libcpp.vector" */

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

/* Module declarations from "cython" */

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

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

/* Module declarations from "libc" */

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

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

/* Module declarations from "cpython.buffer" */

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

/* Module declarations from "__builtin__" */

/* Module declarations from "cpython.type" */

/* Module declarations from "cpython" */

/* Module declarations from "cpython.object" */

/* Module declarations from "cpython.bytes" */

/* Module declarations from "libcpp.utility" */

/* Module declarations from "libcpp.map" */

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

/* Module declarations from "cuda.bindings.runtime" */
static struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *__pyx_v_4cuda_8bindings_7runtime_m_global = 0;
static void *__pyx_f_4cuda_8bindings_7runtime__callocWrapper(PyObject *, PyObject *); /*proto*/
static void __pyx_f_4cuda_8bindings_7runtime_cudaAsyncNotificationCallbackWrapper(cudaAsyncNotificationInfo_t *, void *, cudaAsyncCallbackHandle_t); /*proto*/
static void __pyx_f_4cuda_8bindings_7runtime_cudaStreamRtCallbackWrapper(cudaStream_t, cudaError_t, void *); /*proto*/
static void __pyx_f_4cuda_8bindings_7runtime_cudaStreamRtHostCallbackWrapper(void *); /*proto*/
static int __pyx_f_4cuda_8bindings_7runtime__add_native_handle_getters(void); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_py_unsigned_int(unsigned int *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_unsigned_int(unsigned int *, Py_ssize_t); /*proto*/
static int __Pyx_carray_from_py_unsigned_int(PyObject *, unsigned int *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_py_int(int *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_int(int *, Py_ssize_t); /*proto*/
static int __Pyx_carray_from_py_int(PyObject *, int *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_py_long(long *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_long(long *, Py_ssize_t); /*proto*/
static int __Pyx_carray_from_py_long(PyObject *, long *, Py_ssize_t); /*proto*/
static int __Pyx_carray_from_py_char(PyObject *, char *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_py_PY_LONG_LONG(PY_LONG_LONG *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_PY_LONG_LONG(PY_LONG_LONG *, Py_ssize_t); /*proto*/
static int __Pyx_carray_from_py_PY_LONG_LONG(PyObject *, PY_LONG_LONG *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_py_enum__cudaTextureAddressMode(enum cudaTextureAddressMode *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_enum__cudaTextureAddressMode(enum cudaTextureAddressMode *, Py_ssize_t); /*proto*/
static int __Pyx_carray_from_py_enum__cudaTextureAddressMode(PyObject *, enum cudaTextureAddressMode *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_py_float(float *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_float(float *, Py_ssize_t); /*proto*/
static int __Pyx_carray_from_py_float(PyObject *, float *, Py_ssize_t); /*proto*/
static std::vector<char *>  __pyx_convert_vector_from_py_char___2a_(PyObject *); /*proto*/
static std::vector<enum cudaAtomicOperation>  __pyx_convert_vector_from_py_enum__cudaAtomicOperation(PyObject *); /*proto*/
static std::vector<size_t>  __pyx_convert_vector_from_py_size_t(PyObject *); /*proto*/
static std::vector<enum cudaMemRangeAttribute>  __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(PyObject *); /*proto*/
static std::vector<enum cudaJitOption>  __pyx_convert_vector_from_py_enum__cudaJitOption(PyObject *); /*proto*/
static std::vector<enum cudaLibraryOption>  __pyx_convert_vector_from_py_enum__cudaLibraryOption(PyObject *); /*proto*/
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "cuda.bindings.runtime"
extern int __pyx_module_is_main_cuda__bindings__runtime;
int __pyx_module_is_main_cuda__bindings__runtime = 0;

/* Implementation of "cuda.bindings.runtime" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_max;
static PyObject *__pyx_builtin_zip;
static PyObject *__pyx_builtin_enumerate;
/* #### Code section: string_decls ### */
static const char __pyx_k_not_enough_values_found_during_a[] = "not enough values found during array assignment, expected %zd, got %zd";
static const char __pyx_k_too_many_values_found_during_arr[] = "too many values found during array assignment, expected %zd";
/* #### Code section: decls ### */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_672genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_675genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_678genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_681genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_684genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_687genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_690genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_693genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_696genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_699genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_702genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_705genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_708genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_711genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_714genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_717genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_720genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_723genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_726genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_729genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_732genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_735genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_738genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_741genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_744genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_747genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_750genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_753genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_756genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_759genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_762genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_765genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_768genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_771genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_774genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_777genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_780genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_783genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_786genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_789genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_792genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_795genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_798genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_801genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_804genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_807genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_810genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_813genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_816genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_819genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_822genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_825genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_828genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_831genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_834genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_837genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_840genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_843genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_846genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_849genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_852genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_855genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_858genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_861genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_864genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_867genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_870genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_873genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_876genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_879genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_882genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_885genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_888genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_891genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_894genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_897genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_900genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_903genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_906genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_909genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_912genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_915genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_918genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_921genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_924genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_927genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_930genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_933genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_lambda_funcdef_4cuda_8bindings_7runtime_19_HelperKernelParams_lambda(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_t); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self, PyObject *__pyx_v_kernelParams); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_2__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_13ckernelParams___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_5__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_7__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self, PyObject *__pyx_v_ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_2__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value, PyObject *__pyx_v_is_getter); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_data_size); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_2__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value, PyObject *__pyx_v_is_getter); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value, PyObject *__pyx_v_is_getter); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self, PyObject *__pyx_v_attr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self, PyObject *__pyx_v_lst); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_2__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value, PyObject *__pyx_v_is_getter); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4size(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_6pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_8__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_10getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_8__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_10getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_8__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_10getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_8__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_10getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_4dim3___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_4dim3_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_4dim3_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_4dim3_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, unsigned int __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_4dim3_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, unsigned int __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_4dim3_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, unsigned int __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_w); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, PyObject *__pyx_v_f); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_width); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5depth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5depth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_depth); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_tileExtent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, unsigned int __pyx_v_miptailFirstLevel); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_miptailSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, size_t __pyx_v_size); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, size_t __pyx_v_alignment); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, PyObject *__pyx_v_ptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_pitch); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_xsize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_ysize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, size_t __pyx_v_width); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, size_t __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5depth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5depth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, size_t __pyx_v_depth); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, size_t __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, size_t __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, size_t __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_srcArray); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_srcPos); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_srcPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_dstArray); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_dstPos); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_dstPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, int __pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, PyObject *__pyx_v_ctx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_copyParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, PyObject *__pyx_v_srcArray); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_srcPos); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_srcPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, int __pyx_v_srcDevice); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, PyObject *__pyx_v_dstArray); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_dstPos); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_dstPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, int __pyx_v_dstDevice); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, PyObject *__pyx_v_dst); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_pitch); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5value___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, unsigned int __pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, unsigned int __pyx_v_elementSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_width); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, PyObject *__pyx_v_dst); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_pitch); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, unsigned int __pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, unsigned int __pyx_v_elementSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_width); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, PyObject *__pyx_v_ctx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_base_ptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, size_t __pyx_v_num_bytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, float __pyx_v_hitRatio); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_hitProp); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_missProp); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, PyObject *__pyx_v_fn); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, PyObject *__pyx_v_userData); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_fn); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_userData); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_5array___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_5array_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self, PyObject *__pyx_v_array); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6mipmap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self, PyObject *__pyx_v_mipmap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6devPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, PyObject *__pyx_v_devPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4desc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4desc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, size_t __pyx_v_sizeInBytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6devPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, PyObject *__pyx_v_devPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4desc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4desc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, size_t __pyx_v_width); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, size_t __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, size_t __pyx_v_pitchInBytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_5array___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_5array_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_array); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6mipmap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6mipmap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_mipmap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6linear___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6linear_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_linear); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_7pitch2D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_pitch2D); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, PyObject *__pyx_v_resType); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_3res___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_res); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, PyObject *__pyx_v_format); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_width); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_depth); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_firstMipmapLevel); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_lastMipmapLevel); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_firstLayer); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_lastLayer); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_devicePointer); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_hostPointer); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_sharedSizeBytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_constSizeBytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_localSizeBytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_maxThreadsPerBlock); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_numRegs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_ptxVersion); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_binaryVersion); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_cacheModeCA); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_maxDynamicSharedSizeBytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_preferredShmemCarveout); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_clusterDimMustBeSet); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterWidth); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterHeight); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterDepth); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_clusterSchedulingPolicyPreference); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_nonPortableClusterSizeAllowed); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2id___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2id_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, int __pyx_v_id); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, PyObject *__pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_allocType); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_handleTypes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_win32SecurityAttributes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, size_t __pyx_v_maxSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, unsigned short __pyx_v_usage); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_poolProps); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, size_t __pyx_v_accessDescCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, size_t __pyx_v_bytesize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, PyObject *__pyx_v_dptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_poolProps); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, size_t __pyx_v_accessDescCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, size_t __pyx_v_bytesize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_dptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self, PyObject *__pyx_v_dptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, PyObject *__pyx_v_srcAccessOrder); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_srcLocHint); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_dstLocHint); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, size_t __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, size_t __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, size_t __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_3ptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_3ptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, PyObject *__pyx_v_ptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_9rowLength___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, size_t __pyx_v_rowLength); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, size_t __pyx_v_layerHeight); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_7locHint___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_7locHint_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_locHint); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_5array___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_5array_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, PyObject *__pyx_v_array); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6offset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6offset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_offset); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union1___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_3ptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_3ptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_ptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_5array___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_5array_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_array); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_op); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_src); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_dst); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, PyObject *__pyx_v_srcAccessOrder); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_5bytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4name___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *__pyx_v_uuid); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_luid); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_luidDeviceNodeMask); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_totalGlobalMem); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerBlock); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_regsPerBlock); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_warpSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_memPitch); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxThreadsPerBlock); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxThreadsDim); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxGridSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_totalConstMem); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5major___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_major); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_minor); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_textureAlignment); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_texturePitchAlignment); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_multiProcessorCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_integrated); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_canMapHostMemory); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTexture1D); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTexture1DMipmap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2D); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DMipmap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLinear); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DGather); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture3D); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture3DAlt); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTextureCubemap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture1DLayered); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLayered); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTextureCubemapLayered); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxSurface1D); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface2D); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface3D); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface1DLayered); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface2DLayered); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxSurfaceCubemap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurfaceCubemapLayered); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_surfaceAlignment); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_concurrentKernels); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_ECCEnabled); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciBusID); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciDeviceID); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciDomainID); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_tccDriver); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_asyncEngineCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_unifiedAddressing); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_memoryBusWidth); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_l2CacheSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_persistingL2CacheMaxSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxThreadsPerMultiProcessor); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_streamPrioritiesSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_globalL1CacheSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_localL1CacheSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerMultiprocessor); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_regsPerMultiprocessor); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_managedMemory); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_isMultiGpuBoard); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_multiGpuBoardGroupID); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostNativeAtomicSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pageableMemoryAccess); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_concurrentManagedAccess); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_computePreemptionSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_canUseHostPointerForRegisteredMem); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_cooperativeLaunch); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerBlockOptin); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pageableMemoryAccessUsesHostPageTables); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_directManagedMemAccessFromHost); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxBlocksPerMultiProcessor); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_accessPolicyMaxWindowSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_reservedSharedMemPerBlock); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostRegisterSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_sparseCudaArraySupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostRegisterReadOnlySupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_timelineSemaphoreInteropSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_memoryPoolsSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_gpuDirectRDMASupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_gpuDirectRDMAFlushWritesOptions); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_gpuDirectRDMAWritesOrdering); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_memoryPoolSupportedHandleTypes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_deferredMappingCudaArraySupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_ipcEventSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_clusterLaunch); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_unifiedFunctionPointers); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_deviceNumaConfig); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_deviceNumaId); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_mpsEnabled); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostNumaId); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_gpuPciDeviceID); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_gpuPciSubsystemID); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostNumaMultinodeIpcSupported); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, PyObject *__pyx_v_handle); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4name___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4name_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2fd___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2fd_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, int __pyx_v_fd); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_5win32___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_5win32_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_win32); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, PyObject *__pyx_v_nvSciBufObject); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_handle); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_size); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_offset); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_size); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_offset); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_formatDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned int __pyx_v_numLevels); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, PyObject *__pyx_v_handle); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4name___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4name_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2fd___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2fd_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, int __pyx_v_fd); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_5win32___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_5win32_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_win32); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, PyObject *__pyx_v_nvSciSyncObj); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_handle); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_5value___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_5value_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union4___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_5fence___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_5fence_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, PyObject *__pyx_v_fence); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_3key___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_3key_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_key); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_5fence___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_5fence_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_fence); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_nvSciSync); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_keyedMutex); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_params); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_5value___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_5value_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union5___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_5fence___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_5fence_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, PyObject *__pyx_v_fence); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_3key___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_3key_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_key); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, unsigned int __pyx_v_timeoutMs); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_5fence___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_5fence_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_fence); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_nvSciSync); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_keyedMutex); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_params); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, unsigned int __pyx_v_smCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, unsigned int __pyx_v_minSmPartitionSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, unsigned int __pyx_v_smCoscheduledAlignment); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, unsigned int __pyx_v_wqConcurrencyLimit); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, PyObject *__pyx_v_sharingScope); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, unsigned int __pyx_v_smCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, unsigned int __pyx_v_coscheduledSmCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, unsigned int __pyx_v_preferredCoscheduledSmCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, PyObject *__pyx_v__internal_padding); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_sm); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_wqConfig); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_wq); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, PyObject *__pyx_v__oversize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, PyObject *__pyx_v_functionTable); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, size_t __pyx_v_functionWindowSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, PyObject *__pyx_v_dataTable); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, size_t __pyx_v_dataWindowSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_gridDim); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_blockDim); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, unsigned int __pyx_v_sharedMemBytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, PyObject *__pyx_v_kernelParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_extra); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_gridDim); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_blockDim); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_sharedMemBytes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_kernelParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_extra); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_ctx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, unsigned int __pyx_v_numExtSems); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_numExtSems); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, unsigned int __pyx_v_numExtSems); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_numExtSems); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, PyObject *__pyx_v_handle); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, unsigned int __pyx_v_size); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11phGraph_out___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, PyObject *__pyx_v_ctx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_graph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_ownership); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_reserved0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_reserved1); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_kernel); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_memcpy); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_memset); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_host); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_graph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_eventWait); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_eventRecord); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_extSemSignal); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_extSemWait); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_alloc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_free); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_conditional); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, PY_LONG_LONG __pyx_v_reserved2); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_from_port); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_to_port); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_uploadStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_errNode_out); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_result_out); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_result); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_errorNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_errorFromNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6pValue___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6pValue_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, PyObject *__pyx_v_pValue); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6offset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6offset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, size_t __pyx_v_offset); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, size_t __pyx_v_size); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_7gridDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_7gridDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_gridDim); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_5param___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_5param_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_param); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_9isEnabled___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, unsigned int __pyx_v_isEnabled); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, PyObject *__pyx_v_field); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_updateData); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default____get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, unsigned char __pyx_v_default_); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, unsigned char __pyx_v_remote); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, unsigned int __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, unsigned int __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, unsigned int __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5event___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5event_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, int __pyx_v_triggerAtBlockStart); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, unsigned int __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, unsigned int __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, unsigned int __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5event___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5event_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, int __pyx_v_deviceUpdatable); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_7devNode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_7devNode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, PyObject *__pyx_v_devNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_pad); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_accessPolicyWindow); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_cooperative); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_syncPolicy); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_clusterDim); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_clusterSchedulingPolicyPreference); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_programmaticStreamSerializationAllowed); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_programmaticEvent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_priority); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap *__pyx_v_memSyncDomainMap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_memSyncDomain); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_preferredClusterDim); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_launchCompletionEvent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_deviceUpdatableKernelNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, unsigned int __pyx_v_sharedMemCarveout); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, unsigned int __pyx_v_nvlinkUtilCentricScheduling); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, PyObject *__pyx_v_id); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_val); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_bytesOverBudget); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union9___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10overBudget___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10overBudget_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_overBudget); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_info); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_addressMode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_filterMode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_readMode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, int __pyx_v_sRGB); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_borderColor); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, int __pyx_v_normalizedCoords); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, unsigned int __pyx_v_maxAnisotropy); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_mipmapFilterMode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, float __pyx_v_mipmapLevelBias); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, float __pyx_v_minMipmapLevelClamp); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, float __pyx_v_maxMipmapLevelClamp); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, int __pyx_v_disableTrilinearOptimization); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, int __pyx_v_seamlessCubemap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_width); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_depth); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_pitch); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_numChannels); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_channelDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, PyObject *__pyx_v_reserved); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_union10___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, PyObject *__pyx_v_pArray); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pPitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pPitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, PyObject *__pyx_v_pPitch); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_frame); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_planeDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, unsigned int __pyx_v_planeCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_frameType); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_eglColorFormat); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_6GLenum___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_6GLenum_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_6GLuint___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_6GLuint_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_6EGLint___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_6EGLint_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_cudaDeviceReset(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_2cudaDeviceSynchronize(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4cudaDeviceSetLimit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_limit, size_t __pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6cudaDeviceGetLimit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_limit); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_8cudaDeviceGetTexture1DLinearMaxWidth(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_fmtDesc, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaDeviceGetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaDeviceGetStreamPriorityRange(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceSetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cacheConfig); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaDeviceGetByPCIBusId(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_pciBusId); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDeviceGetPCIBusId(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_length, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaIpcGetEventHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaIpcOpenEventHandle(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t *__pyx_v_handle); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaIpcGetMemHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaIpcOpenMemHandle(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t *__pyx_v_handle, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaIpcCloseMemHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDeviceFlushGPUDirectRDMAWrites(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_target, PyObject *__pyx_v_scope); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaDeviceRegisterAsyncNotification(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_callbackFunc, PyObject *__pyx_v_userData); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_34cudaDeviceUnregisterAsyncNotification(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaDeviceGetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_38cudaDeviceSetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_config); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_40cudaGetLastError(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_42cudaPeekAtLastError(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudaGetErrorName(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_error); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_46cudaGetErrorString(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_error); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_48cudaGetDeviceCount(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_50cudaGetDeviceProperties(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_52cudaDeviceGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_attr, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaDeviceGetHostAtomicCapabilities_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_54cudaDeviceGetHostAtomicCapabilities(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_operations, unsigned int __pyx_v_count, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_56cudaDeviceGetDefaultMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_58cudaDeviceSetMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_memPool); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_60cudaDeviceGetMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_62cudaDeviceGetNvSciSyncAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_nvSciSyncAttrList, int __pyx_v_device, int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_64cudaDeviceGetP2PAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_attr, int __pyx_v_srcDevice, int __pyx_v_dstDevice); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_34cudaDeviceGetP2PAtomicCapabilities_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_66cudaDeviceGetP2PAtomicCapabilities(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_operations, unsigned int __pyx_v_count, int __pyx_v_srcDevice, int __pyx_v_dstDevice); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_68cudaChooseDevice(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_prop); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_70cudaInitDevice(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, unsigned int __pyx_v_deviceFlags, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_72cudaSetDevice(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_74cudaGetDevice(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_76cudaSetDeviceFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_78cudaGetDeviceFlags(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_80cudaStreamCreate(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_82cudaStreamCreateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_84cudaStreamCreateWithPriority(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags, int __pyx_v_priority); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_86cudaStreamGetPriority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_88cudaStreamGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_90cudaStreamGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_92cudaStreamGetDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_94cudaCtxResetPersistingL2Cache(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_96cudaStreamCopyAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_98cudaStreamGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream, PyObject *__pyx_v_attr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_100cudaStreamSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream, PyObject *__pyx_v_attr, struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_102cudaStreamDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_104cudaStreamWaitEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_event, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_106cudaStreamAddCallback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_callback, PyObject *__pyx_v_userData, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_108cudaStreamSynchronize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_110cudaStreamQuery(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_112cudaStreamAttachMemAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_devPtr, size_t __pyx_v_length, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_114cudaStreamBeginCapture(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_mode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_116cudaStreamBeginCaptureToGraph(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_graph, PyObject *__pyx_v_dependencies, PyObject *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, PyObject *__pyx_v_mode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_118cudaThreadExchangeStreamCaptureMode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_120cudaStreamEndCapture(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_122cudaStreamIsCapturing(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_124cudaStreamGetCaptureInfo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_126cudaStreamUpdateCaptureDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_dependencies, PyObject *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_128cudaEventCreate(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_130cudaEventCreateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_132cudaEventRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_134cudaEventRecordWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event, PyObject *__pyx_v_stream, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_136cudaEventQuery(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_138cudaEventSynchronize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_140cudaEventDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_142cudaEventElapsedTime(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_end); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_144cudaImportExternalMemory(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_memHandleDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_146cudaExternalMemoryGetMappedBuffer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_bufferDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_148cudaExternalMemoryGetMappedMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_mipmapDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_150cudaDestroyExternalMemory(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_152cudaImportExternalSemaphore(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_semHandleDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_154cudaSignalExternalSemaphoresAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extSemArray, PyObject *__pyx_v_paramsArray, unsigned int __pyx_v_numExtSems, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_156cudaWaitExternalSemaphoresAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extSemArray, PyObject *__pyx_v_paramsArray, unsigned int __pyx_v_numExtSems, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_158cudaDestroyExternalSemaphore(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extSem); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_160cudaFuncSetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_cacheConfig); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_162cudaFuncGetAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_164cudaFuncSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_attr, int __pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_166cudaLaunchHostFunc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_fn, PyObject *__pyx_v_userData); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_168cudaFuncSetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_config); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_170cudaOccupancyMaxActiveBlocksPerMultiprocessor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, int __pyx_v_blockSize, size_t __pyx_v_dynamicSMemSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_172cudaOccupancyAvailableDynamicSMemPerBlock(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, int __pyx_v_numBlocks, int __pyx_v_blockSize); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_174cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, int __pyx_v_blockSize, size_t __pyx_v_dynamicSMemSize, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_176cudaMallocManaged(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_178cudaMalloc(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_180cudaMallocHost(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_182cudaMallocPitch(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_width, size_t __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_184cudaMallocArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc, size_t __pyx_v_width, size_t __pyx_v_height, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_186cudaFree(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_188cudaFreeHost(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_190cudaFreeArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_192cudaFreeMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmappedArray); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_194cudaHostAlloc(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_196cudaHostRegister(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr, size_t __pyx_v_size, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_198cudaHostUnregister(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_200cudaHostGetDevicePointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_pHost, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_202cudaHostGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_pHost); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_204cudaMalloc3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_206cudaMalloc3DArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_208cudaMallocMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent, unsigned int __pyx_v_numLevels, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_210cudaGetMipmappedArrayLevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmappedArray, unsigned int __pyx_v_level); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_212cudaMemcpy3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_p); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_214cudaMemcpy3DPeer(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_p); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_216cudaMemcpy3DAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_p, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_218cudaMemcpy3DPeerAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_p, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_220cudaMemGetInfo(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_222cudaArrayGetInfo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_224cudaArrayGetPlane(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hArray, unsigned int __pyx_v_planeIdx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_226cudaArrayGetMemoryRequirements(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_228cudaMipmappedArrayGetMemoryRequirements(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmap, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_230cudaArrayGetSparseProperties(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_232cudaMipmappedArrayGetSparseProperties(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmap); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_234cudaMemcpy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_236cudaMemcpyPeer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, int __pyx_v_dstDevice, PyObject *__pyx_v_src, int __pyx_v_srcDevice, size_t __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_238cudaMemcpy2D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_dpitch, PyObject *__pyx_v_src, size_t __pyx_v_spitch, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_240cudaMemcpy2DToArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, PyObject *__pyx_v_src, size_t __pyx_v_spitch, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_242cudaMemcpy2DFromArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_dpitch, PyObject *__pyx_v_src, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_244cudaMemcpy2DArrayToArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffsetDst, size_t __pyx_v_hOffsetDst, PyObject *__pyx_v_src, size_t __pyx_v_wOffsetSrc, size_t __pyx_v_hOffsetSrc, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_246cudaMemcpyAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_248cudaMemcpyPeerAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, int __pyx_v_dstDevice, PyObject *__pyx_v_src, int __pyx_v_srcDevice, size_t __pyx_v_count, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_250cudaMemcpyBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dsts, PyObject *__pyx_v_srcs, PyObject *__pyx_v_sizes, size_t __pyx_v_count, PyObject *__pyx_v_attrs, PyObject *__pyx_v_attrsIdxs, size_t __pyx_v_numAttrs, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemcpy3DBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_252cudaMemcpy3DBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_numOps, PyObject *__pyx_v_opList, unsigned PY_LONG_LONG __pyx_v_flags, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_254cudaMemcpy2DAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_dpitch, PyObject *__pyx_v_src, size_t __pyx_v_spitch, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_256cudaMemcpy2DToArrayAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, PyObject *__pyx_v_src, size_t __pyx_v_spitch, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_258cudaMemcpy2DFromArrayAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_dpitch, PyObject *__pyx_v_src, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_260cudaMemset(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, int __pyx_v_value, size_t __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_262cudaMemset2D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_pitch, int __pyx_v_value, size_t __pyx_v_width, size_t __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_264cudaMemset3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_pitchedDevPtr, int __pyx_v_value, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_266cudaMemsetAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, int __pyx_v_value, size_t __pyx_v_count, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_268cudaMemset2DAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_pitch, int __pyx_v_value, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_270cudaMemset3DAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_pitchedDevPtr, int __pyx_v_value, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_272cudaMemPrefetchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_count, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location, unsigned int __pyx_v_flags, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_274cudaMemPrefetchBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dptrs, PyObject *__pyx_v_sizes, size_t __pyx_v_count, PyObject *__pyx_v_prefetchLocs, PyObject *__pyx_v_prefetchLocIdxs, size_t __pyx_v_numPrefetchLocs, unsigned PY_LONG_LONG __pyx_v_flags, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemDiscardBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_276cudaMemDiscardBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dptrs, PyObject *__pyx_v_sizes, size_t __pyx_v_count, unsigned PY_LONG_LONG __pyx_v_flags, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_278cudaMemDiscardAndPrefetchBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dptrs, PyObject *__pyx_v_sizes, size_t __pyx_v_count, PyObject *__pyx_v_prefetchLocs, PyObject *__pyx_v_prefetchLocIdxs, size_t __pyx_v_numPrefetchLocs, unsigned PY_LONG_LONG __pyx_v_flags, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_280cudaMemAdvise(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_count, PyObject *__pyx_v_advice, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_282cudaMemRangeGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_dataSize, PyObject *__pyx_v_attribute, PyObject *__pyx_v_devPtr, size_t __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_284cudaMemRangeGetAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dataSizes, PyObject *__pyx_v_attributes, size_t __pyx_v_numAttributes, PyObject *__pyx_v_devPtr, size_t __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_286cudaMemcpyToArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_288cudaMemcpyFromArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, size_t __pyx_v_count, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_290cudaMemcpyArrayToArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffsetDst, size_t __pyx_v_hOffsetDst, PyObject *__pyx_v_src, size_t __pyx_v_wOffsetSrc, size_t __pyx_v_hOffsetSrc, size_t __pyx_v_count, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_292cudaMemcpyToArrayAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_294cudaMemcpyFromArrayAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, size_t __pyx_v_count, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_296cudaMallocAsync(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, PyObject *__pyx_v_hStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_298cudaFreeAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, PyObject *__pyx_v_hStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_300cudaMemPoolTrimTo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, size_t __pyx_v_minBytesToKeep); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_302cudaMemPoolSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_attr, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_304cudaMemPoolGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_attr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemPoolSetAccess_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_306cudaMemPoolSetAccess(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_descList, size_t __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_308cudaMemPoolGetAccess(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_310cudaMemPoolCreate(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_poolProps); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_312cudaMemPoolDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_314cudaMemGetDefaultMemPool(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location, PyObject *__pyx_v_typename); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_316cudaMemGetMemPool(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location, PyObject *__pyx_v_typename); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_318cudaMemSetMemPool(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location, PyObject *__pyx_v_typename, PyObject *__pyx_v_memPool); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_320cudaMallocFromPoolAsync(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, PyObject *__pyx_v_memPool, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_322cudaMemPoolExportToShareableHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_handleType, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_324cudaMemPoolImportFromShareableHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_shareableHandle, PyObject *__pyx_v_handleType, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_326cudaMemPoolExportPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_328cudaMemPoolImportPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_exportData); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_330cudaPointerGetAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_332cudaDeviceCanAccessPeer(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, int __pyx_v_peerDevice); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_334cudaDeviceEnablePeerAccess(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_peerDevice, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_336cudaDeviceDisablePeerAccess(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_peerDevice); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_338cudaGraphicsUnregisterResource(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_340cudaGraphicsResourceSetMapFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_342cudaGraphicsMapResources(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_count, PyObject *__pyx_v_resources, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_344cudaGraphicsUnmapResources(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_count, PyObject *__pyx_v_resources, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_346cudaGraphicsResourceGetMappedPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_348cudaGraphicsSubResourceGetMappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_arrayIndex, unsigned int __pyx_v_mipLevel); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_350cudaGraphicsResourceGetMappedMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_352cudaGetChannelDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_354cudaCreateChannelDesc(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_x, int __pyx_v_y, int __pyx_v_z, int __pyx_v_w, PyObject *__pyx_v_f); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_356cudaCreateTextureObject(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_pResDesc, struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_pTexDesc, struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_pResViewDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_358cudaDestroyTextureObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_360cudaGetTextureObjectResourceDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_362cudaGetTextureObjectTextureDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_364cudaGetTextureObjectResourceViewDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_366cudaCreateSurfaceObject(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_pResDesc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_368cudaDestroySurfaceObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_surfObject); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_370cudaGetSurfaceObjectResourceDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_surfObject); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_372cudaDriverGetVersion(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_374cudaRuntimeGetVersion(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_376cudaLogsRegisterCallback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_callbackFunc, PyObject *__pyx_v_userData); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_378cudaLogsUnregisterCallback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_380cudaLogsCurrent(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_382cudaLogsDumpToFile(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_iterator, char *__pyx_v_pathToFile, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_384cudaLogsDumpToMemory(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_iterator, char *__pyx_v_buffer, size_t __pyx_v_size, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_386cudaGraphCreate(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddKernelNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_388cudaGraphAddKernelNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_390cudaGraphKernelNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_392cudaGraphKernelNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_394cudaGraphKernelNodeCopyAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hDst, PyObject *__pyx_v_hSrc); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_396cudaGraphKernelNodeGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, PyObject *__pyx_v_attr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_398cudaGraphKernelNodeSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, PyObject *__pyx_v_attr, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddMemcpyNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_400cudaGraphAddMemcpyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pCopyParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddMemcpyNode1D_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_402cudaGraphAddMemcpyNode1D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_404cudaGraphMemcpyNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_406cudaGraphMemcpyNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_408cudaGraphMemcpyNodeSetParams1D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddMemsetNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_410cudaGraphAddMemsetNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pMemsetParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_412cudaGraphMemsetNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_414cudaGraphMemsetNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphAddHostNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_416cudaGraphAddHostNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_418cudaGraphHostNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_420cudaGraphHostNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphAddChildGraphNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_422cudaGraphAddChildGraphNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_childGraph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_424cudaGraphChildGraphNodeGetGraph(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphAddEmptyNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_426cudaGraphAddEmptyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaGraphAddEventRecordNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_428cudaGraphAddEventRecordNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_430cudaGraphEventRecordNodeGetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_432cudaGraphEventRecordNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphAddEventWaitNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_434cudaGraphAddEventWaitNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_436cudaGraphEventWaitNodeGetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_438cudaGraphEventWaitNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_40cudaGraphAddExternalSemaphoresSignalNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_440cudaGraphAddExternalSemaphoresSignalNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_442cudaGraphExternalSemaphoresSignalNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_444cudaGraphExternalSemaphoresSignalNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_38cudaGraphAddExternalSemaphoresWaitNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_446cudaGraphAddExternalSemaphoresWaitNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_448cudaGraphExternalSemaphoresWaitNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_450cudaGraphExternalSemaphoresWaitNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddMemAllocNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_452cudaGraphAddMemAllocNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_454cudaGraphMemAllocNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaGraphAddMemFreeNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_456cudaGraphAddMemFreeNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_dptr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_458cudaGraphMemFreeNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_460cudaDeviceGraphMemTrim(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_462cudaDeviceGetGraphMemAttribute(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_attr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_464cudaDeviceSetGraphMemAttribute(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_attr, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_466cudaGraphClone(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_originalGraph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_468cudaGraphNodeFindInClone(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_originalNode, PyObject *__pyx_v_clonedGraph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_470cudaGraphNodeGetType(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_472cudaGraphNodeGetContainingGraph(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_474cudaGraphNodeGetLocalId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_476cudaGraphNodeGetToolsId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_478cudaGraphGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_480cudaGraphExecGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_482cudaGraphGetNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_numNodes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_484cudaGraphGetRootNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_pNumRootNodes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_486cudaGraphGetEdges(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_numEdges); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_488cudaGraphNodeGetDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, size_t __pyx_v_pNumDependencies); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_490cudaGraphNodeGetDependentNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, size_t __pyx_v_pNumDependentNodes); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_492cudaGraphAddDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_from_, PyObject *__pyx_v_to, PyObject *__pyx_v_edgeData, size_t __pyx_v_numDependencies); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_494cudaGraphRemoveDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_from_, PyObject *__pyx_v_to, PyObject *__pyx_v_edgeData, size_t __pyx_v_numDependencies); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_496cudaGraphDestroyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_498cudaGraphInstantiate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned PY_LONG_LONG __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_500cudaGraphInstantiateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned PY_LONG_LONG __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_502cudaGraphInstantiateWithParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams *__pyx_v_instantiateParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_504cudaGraphExecGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_506cudaGraphExecKernelNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_508cudaGraphExecMemcpyNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_510cudaGraphExecMemcpyNodeSetParams1D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_512cudaGraphExecMemsetNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_514cudaGraphExecHostNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_516cudaGraphExecChildGraphNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, PyObject *__pyx_v_childGraph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_518cudaGraphExecEventRecordNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_520cudaGraphExecEventWaitNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_522cudaGraphExecExternalSemaphoresSignalNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_524cudaGraphExecExternalSemaphoresWaitNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_526cudaGraphNodeSetEnabled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, unsigned int __pyx_v_isEnabled); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_528cudaGraphNodeGetEnabled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_530cudaGraphExecUpdate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hGraph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_532cudaGraphUpload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_534cudaGraphLaunch(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_stream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_536cudaGraphExecDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_538cudaGraphDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_540cudaGraphDebugDotPrint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, char *__pyx_v_path, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_542cudaUserObjectCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr, PyObject *__pyx_v_destroy, unsigned int __pyx_v_initialRefcount, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_544cudaUserObjectRetain(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_object, unsigned int __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_546cudaUserObjectRelease(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_object, unsigned int __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_548cudaGraphRetainUserObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_object, unsigned int __pyx_v_count, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_550cudaGraphReleaseUserObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_object, unsigned int __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaGraphAddNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaGraphAddNode_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_552cudaGraphAddNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, PyObject *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_554cudaGraphNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_556cudaGraphExecNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_558cudaGraphConditionalHandleCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned int __pyx_v_defaultLaunchValue, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_560cudaGraphConditionalHandleCreate_v2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_ctx, unsigned int __pyx_v_defaultLaunchValue, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_562cudaGetDriverEntryPoint(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_symbol, unsigned PY_LONG_LONG __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_564cudaGetDriverEntryPointByVersion(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_symbol, unsigned int __pyx_v_cudaVersion, unsigned PY_LONG_LONG __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaLibraryLoadData_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaLibraryLoadData_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_566cudaLibraryLoadData(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_code, PyObject *__pyx_v_jitOptions, PyObject *__pyx_v_jitOptionsValues, unsigned int __pyx_v_numJitOptions, PyObject *__pyx_v_libraryOptions, PyObject *__pyx_v_libraryOptionValues, unsigned int __pyx_v_numLibraryOptions); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_568cudaLibraryLoadFromFile(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_fileName, PyObject *__pyx_v_jitOptions, PyObject *__pyx_v_jitOptionsValues, unsigned int __pyx_v_numJitOptions, PyObject *__pyx_v_libraryOptions, PyObject *__pyx_v_libraryOptionValues, unsigned int __pyx_v_numLibraryOptions); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_570cudaLibraryUnload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_572cudaLibraryGetKernel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library, char *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_574cudaLibraryGetGlobal(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library, char *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_576cudaLibraryGetManaged(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library, char *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_578cudaLibraryGetUnifiedFunction(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library, char *__pyx_v_symbol); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_580cudaLibraryGetKernelCount(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_lib); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_582cudaLibraryEnumerateKernels(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_numKernels, PyObject *__pyx_v_lib); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_584cudaKernelSetAttributeForDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_kernel, PyObject *__pyx_v_attr, int __pyx_v_value, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_586cudaDeviceGetDevResource(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_typename); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_588cudaDevSmResourceSplitByCount(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_nbGroups, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_input_, unsigned int __pyx_v_flags, unsigned int __pyx_v_minCount); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_590cudaDevSmResourceSplit(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_nbGroups, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_input_, unsigned int __pyx_v_flags, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams *__pyx_v_groupParams); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaDevResourceGenerateDesc_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_592cudaDevResourceGenerateDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resources, unsigned int __pyx_v_nbResources); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_594cudaGreenCtxCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc, int __pyx_v_device, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_596cudaExecutionCtxDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_598cudaExecutionCtxGetDevResource(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx, PyObject *__pyx_v_typename); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_600cudaExecutionCtxGetDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_602cudaExecutionCtxGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_604cudaExecutionCtxStreamCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx, unsigned int __pyx_v_flags, int __pyx_v_priority); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_606cudaExecutionCtxSynchronize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_608cudaStreamGetDevResource(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream, PyObject *__pyx_v_typename); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_610cudaExecutionCtxRecordEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_612cudaExecutionCtxWaitEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx, PyObject *__pyx_v_event); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_614cudaDeviceGetExecutionCtx(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_616cudaGetExportTable(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *__pyx_v_pExportTableId); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_618cudaGetKernel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_entryFuncAddr); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_620make_cudaPitchedPtr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_d, size_t __pyx_v_p, size_t __pyx_v_xsz, size_t __pyx_v_ysz); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_622make_cudaPos(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_x, size_t __pyx_v_y, size_t __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_624make_cudaExtent(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_w, size_t __pyx_v_h, size_t __pyx_v_d); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_626cudaGraphicsEGLRegisterImage(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_image, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_628cudaEGLStreamConsumerConnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_630cudaEGLStreamConsumerConnectWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_632cudaEGLStreamConsumerDisconnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_634cudaEGLStreamConsumerAcquireFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, PyObject *__pyx_v_pCudaResource, PyObject *__pyx_v_pStream, unsigned int __pyx_v_timeout); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_636cudaEGLStreamConsumerReleaseFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, PyObject *__pyx_v_pCudaResource, PyObject *__pyx_v_pStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_638cudaEGLStreamProducerConnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream, PyObject *__pyx_v_width, PyObject *__pyx_v_height); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_640cudaEGLStreamProducerDisconnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_642cudaEGLStreamProducerPresentFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *__pyx_v_eglframe, PyObject *__pyx_v_pStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_644cudaEGLStreamProducerReturnFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *__pyx_v_eglframe, PyObject *__pyx_v_pStream); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_646cudaGraphicsResourceGetMappedEglFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_index, unsigned int __pyx_v_mipLevel); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_648cudaEventCreateFromEGLSync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglSync, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_650cudaProfilerStart(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_652cudaProfilerStop(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_654cudaGLGetDevices(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_cudaDeviceCount, PyObject *__pyx_v_deviceList); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_656cudaGraphicsGLRegisterImage(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_image, PyObject *__pyx_v_target, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_658cudaGraphicsGLRegisterBuffer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_buffer, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_660cudaVDPAUGetDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpDevice, PyObject *__pyx_v_vdpGetProcAddress); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_662cudaVDPAUSetVDPAUDevice(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_vdpDevice, PyObject *__pyx_v_vdpGetProcAddress); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_664cudaGraphicsVDPAURegisterVideoSurface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpSurface, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_666cudaGraphicsVDPAURegisterOutputSurface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpSurface, unsigned int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_668getLocalRuntimeVersion(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static void __pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal___dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_670sizeof(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_objType); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_cudaDevResourceDesc_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_2cudaExecutionContext_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_4cudaArray_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_6cudaArray_const_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_8cudaMipmappedArray_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_10cudaMipmappedArray_const_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_12cudaStream_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_14cudaEvent_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_16cudaGraphicsResource_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_18cudaExternalMemory_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_20cudaExternalSemaphore_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_22cudaGraph_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_24cudaGraphNode_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_26cudaUserObject_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_28cudaFunction_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaFunction_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_30cudaKernel_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_32cudaLibrary_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_34cudaMemPool_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_36cudaGraphExec_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_38cudaGraphDeviceNode_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_40cudaAsyncCallbackHandle_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_42cudaLogsCallbackHandle_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_44EGLImageKHR_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_46EGLStreamKHR_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_48EGLSyncKHR_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_50cudaEglStreamConnection_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *__pyx_v_x); /* proto */
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperKernelParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperInputVoidPtr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmemPool_attribute(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmem_range_attribute(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUpointer_attribute(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUjit_option(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCudaJitOption(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUlibraryOption(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCudaLibraryOption(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUcoredumpSettings(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResourceDesc_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExecutionContext_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaArray_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaArray_const_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMipmappedArray_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphicsResource_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemory_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphore_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernel_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLibrary_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogsCallbackHandle(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_EGLImageKHR(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_EGLStreamKHR(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_EGLSyncKHR(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostFn_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncCallback(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaStreamCallback_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogsCallback_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_dim3(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaChannelFormatDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct0(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaArraySparseProperties(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaPitchedPtr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExtent(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaPos(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DParms(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpyNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemsetParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemsetParamsV2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaAccessPolicyWindow(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct3(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct4(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct5(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union0(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaResourceDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaResourceViewDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaPointerAttributes(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaFuncAttributes(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemLocation(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAccessDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPoolProps(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAllocNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFreeNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpyAttributes(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaOffset3D(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct6(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct7(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union1(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DOperand(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_CUuuid_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDeviceProp(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcEventHandle_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcMemHandle_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFabricHandle_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct8(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct9(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union3(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct10(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union4(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct11(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct12(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct13(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union5(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct14(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct15(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResource(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevWorkqueueResource(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResource_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernelNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaConditionalNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaChildGraphNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEventRecordNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEventWaitNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphNodeParams(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphEdgeData_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct16(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union8(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct17(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct18(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct19(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct20(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct21(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttributeValue(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttribute_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct22(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union9(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaTextureDesc(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union10(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglFrame_st(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaStream_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEvent_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraph_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphNode_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaUserObject_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaFunction_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPool_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExec_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglStreamConnection(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphConditionalHandle(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogIterator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaSurfaceObject_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaTextureObject_t(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_GLenum(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_GLuint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_EGLint(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_VdpDevice(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_VdpGetProcAddress(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_VdpVideoSurface(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_VdpOutputSurface(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*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;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperKernelParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperInputVoidPtr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemPool_attribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCUmem_range_attribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCUpointer_attribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCUgraphMem_attribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCUjit_option;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCudaJitOption;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCUlibraryOption;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCudaLibraryOption;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__InputVoidPtrPtrHelper;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver__HelperCUcoredumpSettings;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcontext;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmodule;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUfunction;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlibrary;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUkernel;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUarray;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmipmappedArray;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUtexref;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUsurfref;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUevent;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstream;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphicsResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUexternalMemory;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUexternalSemaphore;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraph;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUuserObject;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphDeviceNode;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallbackHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgreenCtx;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlinkState;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevResourceDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallbackHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_EGLImageKHR;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_EGLStreamKHR;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_EGLSyncKHR;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallback;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUhostFn;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamCallback;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUoccupancyB2DSize;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallback;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUuuid_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct0;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct3;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct4;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct5;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue_union;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union3;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct6;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct7;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct8;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct9;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct10;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct11;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union4;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct12;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union5;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct13;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union6;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct14;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union7;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct15;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct16;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct17;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union8;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct18;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct19;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union9;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct20;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct21;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union10;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union11;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct22;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct23;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_struct24;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union12;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_anon_union15;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevice;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUtexObject;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphConditionalHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUuuid;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevprop;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUextent3D;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_cuuint32_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_cuuint64_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr_v2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUdevice_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUtexObject_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_CUlogIterator;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_GLenum;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_GLuint;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_EGLint;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_VdpDevice;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_VdpGetProcAddress;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_VdpVideoSurface;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_6driver_VdpOutputSurface;
  PyTypeObject *__pyx_ptype_7cpython_4type_type;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperKernelParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper;
  PyObject *__pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaArray_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaKernel_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_EGLImageKHR;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_dim3;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct0;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExtent;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaPos;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct1;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct2;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct3;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct4;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct5;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union0;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemLocation;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaOffset3D;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct6;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct7;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union1;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_CUuuid_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct8;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union2;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct9;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union3;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct10;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union4;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct11;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct12;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct13;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union5;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct14;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct15;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct16;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union8;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct17;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct18;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct19;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct20;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct21;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_struct22;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union9;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_anon_union10;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_CUuuid;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaUUID_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaDevResource;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaStream_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaEvent_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraph_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaFunction_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaLogIterator;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_GLenum;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_GLuint;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_EGLint;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_VdpDevice;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface;
  PyObject *__pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr;
  PyObject *__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_dim3;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaPos;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union0;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union1;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union3;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union4;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union5;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union8;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union9;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_anon_union10;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_CUuuid;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_GLenum;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_GLuint;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_EGLint;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr;
  PyTypeObject *__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values;
  PyObject *__pyx_codeobj_tab[935];
  PyObject *__pyx_string_tab[4220];
  PyObject *__pyx_number_tab[6];
/* #### 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;


#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr[8];
int __pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr;
#endif
/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* IterNextPlain.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
PyObject *__Pyx_GetBuiltinNext_LimitedAPI_cache;
#endif

/* Generator.module_state_decls */
PyTypeObject *__pyx_GeneratorType;

/* #### 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_Argument_attributes_is_not_insta __pyx_string_tab[1]
#define __pyx_kp_u_Argument_attrsIdxs_is_not_instan __pyx_string_tab[2]
#define __pyx_kp_u_Argument_attrs_is_not_instance_o __pyx_string_tab[3]
#define __pyx_kp_u_Argument_conn_is_not_instance_of __pyx_string_tab[4]
#define __pyx_kp_u_Argument_dataSizes_is_not_instan __pyx_string_tab[5]
#define __pyx_kp_u_Argument_dependencies_is_not_ins __pyx_string_tab[6]
#define __pyx_kp_u_Argument_dependencyData_is_not_i __pyx_string_tab[7]
#define __pyx_kp_u_Argument_descList_is_not_instanc __pyx_string_tab[8]
#define __pyx_kp_u_Argument_edgeData_is_not_instanc __pyx_string_tab[9]
#define __pyx_kp_u_Argument_extSemArray_is_not_inst __pyx_string_tab[10]
#define __pyx_kp_u_Argument_from__is_not_instance_o __pyx_string_tab[11]
#define __pyx_kp_u_Argument_jitOptions_is_not_insta __pyx_string_tab[12]
#define __pyx_kp_u_Argument_kernelParams_failed_to __pyx_string_tab[13]
#define __pyx_kp_u_Argument_kernelParams_has_tuples __pyx_string_tab[14]
#define __pyx_kp_u_Argument_kernelParams_is_not_a_v __pyx_string_tab[15]
#define __pyx_kp_u_Argument_libraryOptions_is_not_i __pyx_string_tab[16]
#define __pyx_kp_u_Argument_opList_is_not_instance __pyx_string_tab[17]
#define __pyx_kp_u_Argument_operations_is_not_insta __pyx_string_tab[18]
#define __pyx_kp_u_Argument_pCudaResource_is_not_in __pyx_string_tab[19]
#define __pyx_kp_u_Argument_pDependencies_is_not_in __pyx_string_tab[20]
#define __pyx_kp_u_Argument_pStream_is_not_instance __pyx_string_tab[21]
#define __pyx_kp_u_Argument_paramsArray_is_not_inst __pyx_string_tab[22]
#define __pyx_kp_u_Argument_paramsArray_is_not_inst_2 __pyx_string_tab[23]
#define __pyx_kp_u_Argument_prefetchLocIdxs_is_not __pyx_string_tab[24]
#define __pyx_kp_u_Argument_prefetchLocs_is_not_ins __pyx_string_tab[25]
#define __pyx_kp_u_Argument_resources_is_not_instan __pyx_string_tab[26]
#define __pyx_kp_u_Argument_resources_is_not_instan_2 __pyx_string_tab[27]
#define __pyx_kp_u_Argument_sizes_is_not_instance_o __pyx_string_tab[28]
#define __pyx_kp_u_Argument_to_is_not_instance_of_t __pyx_string_tab[29]
#define __pyx_kp_u_Argument_vdpGetProcAddress_is_no __pyx_string_tab[30]
#define __pyx_kp_u_CUDA_EGL_Color_Format_The_diffe __pyx_string_tab[31]
#define __pyx_kp_u_CUDA_EglFrame_type_array_or_poi __pyx_string_tab[32]
#define __pyx_kp_u_CUDA_GL_Map_Flags __pyx_string_tab[33]
#define __pyx_kp_u_CUDA_GPUDirect_RDMA_flush_write __pyx_string_tab[34]
#define __pyx_kp_u_CUDA_GPUDirect_RDMA_flush_write_2 __pyx_string_tab[35]
#define __pyx_kp_u_CUDA_GPUDirect_RDMA_flush_write_3 __pyx_string_tab[36]
#define __pyx_kp_u_CUDA_GPUDirect_RDMA_flush_write_4 __pyx_string_tab[37]
#define __pyx_kp_u_CUDA_Graph_Update_error_types __pyx_string_tab[38]
#define __pyx_kp_u_CUDA_Graph_debug_write_options __pyx_string_tab[39]
#define __pyx_kp_u_CUDA_Graph_node_types __pyx_string_tab[40]
#define __pyx_kp_u_CUDA_Limits __pyx_string_tab[41]
#define __pyx_kp_u_CUDA_Memory_Advise_values __pyx_string_tab[42]
#define __pyx_kp_u_CUDA_Surface_boundary_modes __pyx_string_tab[43]
#define __pyx_kp_u_CUDA_Surface_format_modes __pyx_string_tab[44]
#define __pyx_kp_u_CUDA_conditional_node_types __pyx_string_tab[45]
#define __pyx_kp_u_CUDA_cooperative_group_scope __pyx_string_tab[46]
#define __pyx_kp_u_CUDA_device_NUMA_config __pyx_string_tab[47]
#define __pyx_kp_u_CUDA_device_P2P_attributes __pyx_string_tab[48]
#define __pyx_kp_u_CUDA_device_attributes __pyx_string_tab[49]
#define __pyx_kp_u_CUDA_device_compute_modes __pyx_string_tab[50]
#define __pyx_kp_u_CUDA_devices_corresponding_to_t __pyx_string_tab[51]
#define __pyx_kp_u_CUDA_function_attributes_that_c __pyx_string_tab[52]
#define __pyx_kp_u_CUDA_function_cache_configurati __pyx_string_tab[53]
#define __pyx_kp_u_CUDA_graphics_interop_array_ind __pyx_string_tab[54]
#define __pyx_kp_u_CUDA_graphics_interop_map_flags __pyx_string_tab[55]
#define __pyx_kp_u_CUDA_graphics_interop_register __pyx_string_tab[56]
#define __pyx_kp_u_CUDA_memory_copy_types __pyx_string_tab[57]
#define __pyx_kp_u_CUDA_memory_pool_attributes __pyx_string_tab[58]
#define __pyx_kp_u_CUDA_memory_types __pyx_string_tab[59]
#define __pyx_kp_u_CUDA_range_attributes __pyx_string_tab[60]
#define __pyx_kp_u_CUDA_resource_types __pyx_string_tab[61]
#define __pyx_kp_u_CUDA_shared_memory_configuratio __pyx_string_tab[62]
#define __pyx_kp_u_CUDA_texture_address_modes __pyx_string_tab[63]
#define __pyx_kp_u_CUDA_texture_filter_modes __pyx_string_tab[64]
#define __pyx_kp_u_CUDA_texture_read_modes __pyx_string_tab[65]
#define __pyx_kp_u_CUDA_texture_resource_view_form __pyx_string_tab[66]
#define __pyx_kp_u_CUDA_valid_Atomic_Operation_cap __pyx_string_tab[67]
#define __pyx_kp_u_CUDA_valid_Atomic_Operations __pyx_string_tab[68]
#define __pyx_kp_u_Caching_modes_for_dlcm __pyx_string_tab[69]
#define __pyx_kp_u_Channel_format_kind __pyx_string_tab[70]
#define __pyx_kp_u_Child_graph_node_ownership __pyx_string_tab[71]
#define __pyx_kp_u_Cluster_scheduling_policies_The __pyx_string_tab[72]
#define __pyx_kp_u_Cubin_matching_fallback_strateg __pyx_string_tab[73]
#define __pyx_kp_u_Defines_the_allocation_types_av __pyx_string_tab[74]
#define __pyx_kp_u_ECCEnabled __pyx_string_tab[75]
#define __pyx_kp_u_ECCEnabled_ValueError __pyx_string_tab[76]
#define __pyx_kp_u_EGLImageKHR __pyx_string_tab[77]
#define __pyx_kp_u_EGLStreamKHR __pyx_string_tab[78]
#define __pyx_kp_u_EGLSyncKHR __pyx_string_tab[79]
#define __pyx_kp_u_EGLint __pyx_string_tab[80]
#define __pyx_kp_u_Enum_for_status_from_obtaining __pyx_string_tab[81]
#define __pyx_kp_u_External_memory_handle_types __pyx_string_tab[82]
#define __pyx_kp_u_External_semaphore_handle_types __pyx_string_tab[83]
#define __pyx_kp_u_Failed_to_allocate_length_x_size __pyx_string_tab[84]
#define __pyx_kp_u_Failed_to_allocated_length_x_siz __pyx_string_tab[85]
#define __pyx_kp_u_Failed_to_retrieve_buffer_throug __pyx_string_tab[86]
#define __pyx_kp_u_Flags_for_instantiating_a_graph __pyx_string_tab[87]
#define __pyx_kp_u_Flags_for_py_obj_cudaStreamUpda __pyx_string_tab[88]
#define __pyx_kp_u_Flags_for_retaining_user_object __pyx_string_tab[89]
#define __pyx_kp_u_Flags_for_specifying_particular __pyx_string_tab[90]
#define __pyx_kp_u_Flags_for_user_objects_for_grap __pyx_string_tab[91]
#define __pyx_kp_u_Flags_to_specify_for_copies_wit __pyx_string_tab[92]
#define __pyx_kp_u_Flags_to_specify_search_options __pyx_string_tab[93]
#define __pyx_kp_u_GLenum __pyx_string_tab[94]
#define __pyx_kp_u_GLuint __pyx_string_tab[95]
#define __pyx_kp_u_Graph_instantiation_results __pyx_string_tab[96]
#define __pyx_kp_u_Graph_memory_attributes __pyx_string_tab[97]
#define __pyx_kp_u_Launch_attributes_enum_used_as __pyx_string_tab[98]
#define __pyx_kp_u_Library_options_to_be_specified __pyx_string_tab[99]
#define __pyx_kp_u_List_is_too_small __pyx_string_tab[100]
#define __pyx_kp_u_Memory_Synchronization_Domain_A __pyx_string_tab[101]
#define __pyx_kp_u_None __pyx_string_tab[102]
#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[103]
#define __pyx_kp_u_Online_compiler_and_linker_opti __pyx_string_tab[104]
#define __pyx_kp_u_Optional_cudaChannelFormatDesc __pyx_string_tab[105]
#define __pyx_kp_u_Optional_cudaDevResource __pyx_string_tab[106]
#define __pyx_kp_u_Optional_cudaDevSmResourceGroupP __pyx_string_tab[107]
#define __pyx_kp_u_Optional_cudaDeviceProp __pyx_string_tab[108]
#define __pyx_kp_u_Optional_cudaEglFrame __pyx_string_tab[109]
#define __pyx_kp_u_Optional_cudaExternalMemoryBuffe __pyx_string_tab[110]
#define __pyx_kp_u_Optional_cudaExternalMemoryHandl __pyx_string_tab[111]
#define __pyx_kp_u_Optional_cudaExternalMemoryMipma __pyx_string_tab[112]
#define __pyx_kp_u_Optional_cudaExternalSemaphoreHa __pyx_string_tab[113]
#define __pyx_kp_u_Optional_cudaExternalSemaphoreSi __pyx_string_tab[114]
#define __pyx_kp_u_Optional_cudaExternalSemaphoreWa __pyx_string_tab[115]
#define __pyx_kp_u_Optional_cudaGraphInstantiatePar __pyx_string_tab[116]
#define __pyx_kp_u_Optional_cudaGraphNodeParams __pyx_string_tab[117]
#define __pyx_kp_u_Optional_cudaHostNodeParams __pyx_string_tab[118]
#define __pyx_kp_u_Optional_cudaKernelNodeAttrValue __pyx_string_tab[119]
#define __pyx_kp_u_Optional_cudaKernelNodeParams __pyx_string_tab[120]
#define __pyx_kp_u_Optional_cudaLogIterator __pyx_string_tab[121]
#define __pyx_kp_u_Optional_cudaMemAllocNodeParams __pyx_string_tab[122]
#define __pyx_kp_u_Optional_cudaMemLocation __pyx_string_tab[123]
#define __pyx_kp_u_Optional_cudaMemPoolProps __pyx_string_tab[124]
#define __pyx_kp_u_Optional_cudaMemPoolPtrExportDat __pyx_string_tab[125]
#define __pyx_kp_u_Optional_cudaMemcpy3DParms __pyx_string_tab[126]
#define __pyx_kp_u_Optional_cudaMemcpy3DPeerParms __pyx_string_tab[127]
#define __pyx_kp_u_Optional_cudaMemsetParams __pyx_string_tab[128]
#define __pyx_kp_u_Optional_cudaResourceDesc __pyx_string_tab[129]
#define __pyx_kp_u_Optional_cudaResourceViewDesc __pyx_string_tab[130]
#define __pyx_kp_u_Optional_cudaStreamAttrValue __pyx_string_tab[131]
#define __pyx_kp_u_Optional_cudaTextureDesc __pyx_string_tab[132]
#define __pyx_kp_u_Optional_cudaUUID_t __pyx_string_tab[133]
#define __pyx_kp_u_Optional_tuple_Any_list_Any __pyx_string_tab[134]
#define __pyx_kp_u_Optional_tuple_cudaAtomicOperati __pyx_string_tab[135]
#define __pyx_kp_u_Optional_tuple_cudaDevResource_l __pyx_string_tab[136]
#define __pyx_kp_u_Optional_tuple_cudaExternalSemap __pyx_string_tab[137]
#define __pyx_kp_u_Optional_tuple_cudaExternalSemap_2 __pyx_string_tab[138]
#define __pyx_kp_u_Optional_tuple_cudaExternalSemap_3 __pyx_string_tab[139]
#define __pyx_kp_u_Optional_tuple_cudaGraphEdgeData __pyx_string_tab[140]
#define __pyx_kp_u_Optional_tuple_cudaGraphNode_t_l __pyx_string_tab[141]
#define __pyx_kp_u_Optional_tuple_cudaJitOption_lis __pyx_string_tab[142]
#define __pyx_kp_u_Optional_tuple_cudaLibraryOption __pyx_string_tab[143]
#define __pyx_kp_u_Optional_tuple_cudaMemAccessDesc __pyx_string_tab[144]
#define __pyx_kp_u_Optional_tuple_cudaMemLocation_l __pyx_string_tab[145]
#define __pyx_kp_u_Optional_tuple_cudaMemRangeAttri __pyx_string_tab[146]
#define __pyx_kp_u_Optional_tuple_cudaMemcpy3DBatch __pyx_string_tab[147]
#define __pyx_kp_u_Optional_tuple_cudaMemcpyAttribu __pyx_string_tab[148]
#define __pyx_kp_u_Possible_modes_for_stream_captu __pyx_string_tab[149]
#define __pyx_kp_u_Possible_stream_capture_statuse __pyx_string_tab[150]
#define __pyx_kp_u_Provided_argument_is_of_type_but __pyx_string_tab[151]
#define __pyx_kp_u_Provided_argument_is_of_type_but_2 __pyx_string_tab[152]
#define __pyx_kp_u_Resource_location_flags_sysmem __pyx_string_tab[153]
#define __pyx_kp_u_Set_device_to_be_used_for_GPU_e __pyx_string_tab[154]
#define __pyx_kp_u_Shared_memory_carveout_configur __pyx_string_tab[155]
#define __pyx_kp_u_Sharing_scope_for_workqueues __pyx_string_tab[156]
#define __pyx_kp_u_Specifies_performance_hint_with __pyx_string_tab[157]
#define __pyx_kp_u_Specifies_the_field_to_update_w __pyx_string_tab[158]
#define __pyx_kp_u_Specifies_the_memory_protection __pyx_string_tab[159]
#define __pyx_kp_u_Specifies_the_type_of_location __pyx_string_tab[160]
#define __pyx_kp_u_These_flags_allow_applications __pyx_string_tab[161]
#define __pyx_kp_u_Type_annotations_that_can_be_ap __pyx_string_tab[162]
#define __pyx_kp_u_Type_of_resource __pyx_string_tab[163]
#define __pyx_kp_u_Types_of_async_notification_tha __pyx_string_tab[164]
#define __pyx_kp_u_Unknown_type __pyx_string_tab[165]
#define __pyx_kp_u_Unsupported_attribute __pyx_string_tab[166]
#define __pyx_kp_u_Unsupported_attribute_value __pyx_string_tab[167]
#define __pyx_kp_u_Unsupported_type __pyx_string_tab[168]
#define __pyx_kp_u_VdpDevice __pyx_string_tab[169]
#define __pyx_kp_u_VdpGetProcAddress __pyx_string_tab[170]
#define __pyx_kp_u_VdpOutputSurface __pyx_string_tab[171]
#define __pyx_kp_u_VdpVideoSurface __pyx_string_tab[172]
#define __pyx_kp_u__2 __pyx_string_tab[173]
#define __pyx_kp_u__3 __pyx_string_tab[174]
#define __pyx_kp_u__4 __pyx_string_tab[175]
#define __pyx_kp_u__6 __pyx_string_tab[176]
#define __pyx_kp_u__7 __pyx_string_tab[177]
#define __pyx_kp_u__8 __pyx_string_tab[178]
#define __pyx_kp_u__9 __pyx_string_tab[179]
#define __pyx_kp_u_accessDescCount __pyx_string_tab[180]
#define __pyx_kp_u_accessDescCount_ValueError __pyx_string_tab[181]
#define __pyx_kp_u_accessDescs __pyx_string_tab[182]
#define __pyx_kp_u_accessDescs_ValueError __pyx_string_tab[183]
#define __pyx_kp_u_accessPolicyMaxWindowSize __pyx_string_tab[184]
#define __pyx_kp_u_accessPolicyMaxWindowSize_ValueE __pyx_string_tab[185]
#define __pyx_kp_u_accessPolicyWindow __pyx_string_tab[186]
#define __pyx_kp_u_accessPolicyWindow_ValueError __pyx_string_tab[187]
#define __pyx_kp_u_add_note __pyx_string_tab[188]
#define __pyx_kp_u_addressMode __pyx_string_tab[189]
#define __pyx_kp_u_addressMode_ValueError __pyx_string_tab[190]
#define __pyx_kp_u_alignment __pyx_string_tab[191]
#define __pyx_kp_u_alignment_ValueError __pyx_string_tab[192]
#define __pyx_kp_u_alloc __pyx_string_tab[193]
#define __pyx_kp_u_allocType __pyx_string_tab[194]
#define __pyx_kp_u_allocType_ValueError __pyx_string_tab[195]
#define __pyx_kp_u_alloc_ValueError __pyx_string_tab[196]
#define __pyx_kp_u_array __pyx_string_tab[197]
#define __pyx_kp_u_array_3 __pyx_string_tab[198]
#define __pyx_kp_u_array_ValueError __pyx_string_tab[199]
#define __pyx_kp_u_asyncEngineCount __pyx_string_tab[200]
#define __pyx_kp_u_asyncEngineCount_ValueError __pyx_string_tab[201]
#define __pyx_kp_u_base_ptr __pyx_string_tab[202]
#define __pyx_kp_u_base_ptr_ValueError __pyx_string_tab[203]
#define __pyx_kp_u_binaryVersion __pyx_string_tab[204]
#define __pyx_kp_u_binaryVersion_ValueError __pyx_string_tab[205]
#define __pyx_kp_u_blockDim __pyx_string_tab[206]
#define __pyx_kp_u_blockDim_ValueError __pyx_string_tab[207]
#define __pyx_kp_u_borderColor __pyx_string_tab[208]
#define __pyx_kp_u_borderColor_ValueError __pyx_string_tab[209]
#define __pyx_kp_u_bytes __pyx_string_tab[210]
#define __pyx_kp_u_bytesOverBudget __pyx_string_tab[211]
#define __pyx_kp_u_bytesOverBudget_ValueError __pyx_string_tab[212]
#define __pyx_kp_u_bytes_ValueError __pyx_string_tab[213]
#define __pyx_kp_u_bytesize __pyx_string_tab[214]
#define __pyx_kp_u_bytesize_ValueError __pyx_string_tab[215]
#define __pyx_kp_u_cacheModeCA __pyx_string_tab[216]
#define __pyx_kp_u_cacheModeCA_ValueError __pyx_string_tab[217]
#define __pyx_kp_u_canMapHostMemory __pyx_string_tab[218]
#define __pyx_kp_u_canMapHostMemory_ValueError __pyx_string_tab[219]
#define __pyx_kp_u_canUseHostPointerForRegisteredMe __pyx_string_tab[220]
#define __pyx_kp_u_canUseHostPointerForRegisteredMe_3 __pyx_string_tab[221]
#define __pyx_kp_u_channelDesc __pyx_string_tab[222]
#define __pyx_kp_u_channelDesc_ValueError __pyx_string_tab[223]
#define __pyx_kp_u_clusterDim __pyx_string_tab[224]
#define __pyx_kp_u_clusterDimMustBeSet __pyx_string_tab[225]
#define __pyx_kp_u_clusterDimMustBeSet_ValueError __pyx_string_tab[226]
#define __pyx_kp_u_clusterDim_ValueError __pyx_string_tab[227]
#define __pyx_kp_u_clusterLaunch __pyx_string_tab[228]
#define __pyx_kp_u_clusterLaunch_ValueError __pyx_string_tab[229]
#define __pyx_kp_u_clusterSchedulingPolicyPreferenc __pyx_string_tab[230]
#define __pyx_kp_u_clusterSchedulingPolicyPreferenc_3 __pyx_string_tab[231]
#define __pyx_kp_u_computePreemptionSupported __pyx_string_tab[232]
#define __pyx_kp_u_computePreemptionSupported_Value __pyx_string_tab[233]
#define __pyx_kp_u_concurrentKernels __pyx_string_tab[234]
#define __pyx_kp_u_concurrentKernels_ValueError __pyx_string_tab[235]
#define __pyx_kp_u_concurrentManagedAccess __pyx_string_tab[236]
#define __pyx_kp_u_concurrentManagedAccess_ValueErr __pyx_string_tab[237]
#define __pyx_kp_u_conditional __pyx_string_tab[238]
#define __pyx_kp_u_conditional_ValueError __pyx_string_tab[239]
#define __pyx_kp_u_constSizeBytes __pyx_string_tab[240]
#define __pyx_kp_u_constSizeBytes_ValueError __pyx_string_tab[241]
#define __pyx_kp_u_cooperative __pyx_string_tab[242]
#define __pyx_kp_u_cooperativeLaunch __pyx_string_tab[243]
#define __pyx_kp_u_cooperativeLaunch_ValueError __pyx_string_tab[244]
#define __pyx_kp_u_cooperative_ValueError __pyx_string_tab[245]
#define __pyx_kp_u_copyParams __pyx_string_tab[246]
#define __pyx_kp_u_copyParams_ValueError __pyx_string_tab[247]
#define __pyx_kp_u_coscheduledSmCount __pyx_string_tab[248]
#define __pyx_kp_u_coscheduledSmCount_ValueError __pyx_string_tab[249]
#define __pyx_kp_u_ctx __pyx_string_tab[250]
#define __pyx_kp_u_ctx_ValueError __pyx_string_tab[251]
#define __pyx_kp_u_cudaArray_const_t __pyx_string_tab[252]
#define __pyx_kp_u_cudaArray_t __pyx_string_tab[253]
#define __pyx_kp_u_cudaAsyncCallback __pyx_string_tab[254]
#define __pyx_kp_u_cudaAsyncCallbackHandle_t __pyx_string_tab[255]
#define __pyx_kp_u_cudaDevResourceDesc_t __pyx_string_tab[256]
#define __pyx_kp_u_cudaExecutionContext_t __pyx_string_tab[257]
#define __pyx_kp_u_cudaExternalMemory_t __pyx_string_tab[258]
#define __pyx_kp_u_cudaExternalSemaphore_t __pyx_string_tab[259]
#define __pyx_kp_u_cudaGraphConditionalHandle __pyx_string_tab[260]
#define __pyx_kp_u_cudaGraphDeviceNode_t __pyx_string_tab[261]
#define __pyx_kp_u_cudaGraphicsResource_t __pyx_string_tab[262]
#define __pyx_kp_u_cudaHostFn_t __pyx_string_tab[263]
#define __pyx_kp_u_cudaKernel_t __pyx_string_tab[264]
#define __pyx_kp_u_cudaLibrary_t __pyx_string_tab[265]
#define __pyx_kp_u_cudaLogIterator __pyx_string_tab[266]
#define __pyx_kp_u_cudaLogsCallbackHandle __pyx_string_tab[267]
#define __pyx_kp_u_cudaLogsCallback_t __pyx_string_tab[268]
#define __pyx_kp_u_cudaMipmappedArray_const_t __pyx_string_tab[269]
#define __pyx_kp_u_cudaMipmappedArray_t __pyx_string_tab[270]
#define __pyx_kp_u_cudaSetDevice_line_16557 __pyx_string_tab[271]
#define __pyx_kp_u_cudaStreamCallback_t __pyx_string_tab[272]
#define __pyx_kp_u_cudaSurfaceObject_t __pyx_string_tab[273]
#define __pyx_kp_u_cudaTextureObject_t __pyx_string_tab[274]
#define __pyx_kp_u_cuda_bindings__lib_utils_pxi __pyx_string_tab[275]
#define __pyx_kp_u_cuda_bindings_runtime_pyx __pyx_string_tab[276]
#define __pyx_kp_u_dataTable __pyx_string_tab[277]
#define __pyx_kp_u_dataTable_ValueError __pyx_string_tab[278]
#define __pyx_kp_u_dataWindowSize __pyx_string_tab[279]
#define __pyx_kp_u_dataWindowSize_ValueError __pyx_string_tab[280]
#define __pyx_kp_u_default __pyx_string_tab[281]
#define __pyx_kp_u_default__ValueError __pyx_string_tab[282]
#define __pyx_kp_u_deferredMappingCudaArraySupporte __pyx_string_tab[283]
#define __pyx_kp_u_deferredMappingCudaArraySupporte_3 __pyx_string_tab[284]
#define __pyx_kp_u_depth __pyx_string_tab[285]
#define __pyx_kp_u_depth_ValueError __pyx_string_tab[286]
#define __pyx_kp_u_desc __pyx_string_tab[287]
#define __pyx_kp_u_desc_ValueError __pyx_string_tab[288]
#define __pyx_kp_u_devNode __pyx_string_tab[289]
#define __pyx_kp_u_devNode_ValueError __pyx_string_tab[290]
#define __pyx_kp_u_devPtr __pyx_string_tab[291]
#define __pyx_kp_u_devPtr_ValueError __pyx_string_tab[292]
#define __pyx_kp_u_device __pyx_string_tab[293]
#define __pyx_kp_u_deviceNumaConfig __pyx_string_tab[294]
#define __pyx_kp_u_deviceNumaConfig_ValueError __pyx_string_tab[295]
#define __pyx_kp_u_deviceNumaId __pyx_string_tab[296]
#define __pyx_kp_u_deviceNumaId_ValueError __pyx_string_tab[297]
#define __pyx_kp_u_devicePointer __pyx_string_tab[298]
#define __pyx_kp_u_devicePointer_ValueError __pyx_string_tab[299]
#define __pyx_kp_u_deviceUpdatable __pyx_string_tab[300]
#define __pyx_kp_u_deviceUpdatableKernelNode __pyx_string_tab[301]
#define __pyx_kp_u_deviceUpdatableKernelNode_ValueE __pyx_string_tab[302]
#define __pyx_kp_u_deviceUpdatable_ValueError __pyx_string_tab[303]
#define __pyx_kp_u_device_ValueError __pyx_string_tab[304]
#define __pyx_kp_u_directManagedMemAccessFromHost __pyx_string_tab[305]
#define __pyx_kp_u_directManagedMemAccessFromHost_V __pyx_string_tab[306]
#define __pyx_kp_u_disable __pyx_string_tab[307]
#define __pyx_kp_u_disableTrilinearOptimization __pyx_string_tab[308]
#define __pyx_kp_u_disableTrilinearOptimization_Val __pyx_string_tab[309]
#define __pyx_kp_u_dptr __pyx_string_tab[310]
#define __pyx_kp_u_dptr_ValueError __pyx_string_tab[311]
#define __pyx_kp_u_dst __pyx_string_tab[312]
#define __pyx_kp_u_dstArray __pyx_string_tab[313]
#define __pyx_kp_u_dstArray_ValueError __pyx_string_tab[314]
#define __pyx_kp_u_dstDevice __pyx_string_tab[315]
#define __pyx_kp_u_dstDevice_ValueError __pyx_string_tab[316]
#define __pyx_kp_u_dstLocHint __pyx_string_tab[317]
#define __pyx_kp_u_dstLocHint_ValueError __pyx_string_tab[318]
#define __pyx_kp_u_dstPos __pyx_string_tab[319]
#define __pyx_kp_u_dstPos_ValueError __pyx_string_tab[320]
#define __pyx_kp_u_dstPtr __pyx_string_tab[321]
#define __pyx_kp_u_dstPtr_ValueError __pyx_string_tab[322]
#define __pyx_kp_u_dst_3 __pyx_string_tab[323]
#define __pyx_kp_u_dst_ValueError __pyx_string_tab[324]
#define __pyx_kp_u_eglColorFormat __pyx_string_tab[325]
#define __pyx_kp_u_eglColorFormat_ValueError __pyx_string_tab[326]
#define __pyx_kp_u_elementSize __pyx_string_tab[327]
#define __pyx_kp_u_elementSize_ValueError __pyx_string_tab[328]
#define __pyx_kp_u_enable __pyx_string_tab[329]
#define __pyx_kp_u_errNode_out __pyx_string_tab[330]
#define __pyx_kp_u_errNode_out_ValueError __pyx_string_tab[331]
#define __pyx_kp_u_errorFromNode __pyx_string_tab[332]
#define __pyx_kp_u_errorFromNode_ValueError __pyx_string_tab[333]
#define __pyx_kp_u_errorNode __pyx_string_tab[334]
#define __pyx_kp_u_errorNode_ValueError __pyx_string_tab[335]
#define __pyx_kp_u_event __pyx_string_tab[336]
#define __pyx_kp_u_eventRecord __pyx_string_tab[337]
#define __pyx_kp_u_eventRecord_ValueError __pyx_string_tab[338]
#define __pyx_kp_u_eventWait __pyx_string_tab[339]
#define __pyx_kp_u_eventWait_ValueError __pyx_string_tab[340]
#define __pyx_kp_u_event_ValueError __pyx_string_tab[341]
#define __pyx_kp_u_extSemArray __pyx_string_tab[342]
#define __pyx_kp_u_extSemArray_ValueError __pyx_string_tab[343]
#define __pyx_kp_u_extSemSignal __pyx_string_tab[344]
#define __pyx_kp_u_extSemSignal_ValueError __pyx_string_tab[345]
#define __pyx_kp_u_extSemWait __pyx_string_tab[346]
#define __pyx_kp_u_extSemWait_ValueError __pyx_string_tab[347]
#define __pyx_kp_u_extent __pyx_string_tab[348]
#define __pyx_kp_u_extent_ValueError __pyx_string_tab[349]
#define __pyx_kp_u_extra __pyx_string_tab[350]
#define __pyx_kp_u_extra_ValueError __pyx_string_tab[351]
#define __pyx_kp_u_f __pyx_string_tab[352]
#define __pyx_kp_u_f_ValueError __pyx_string_tab[353]
#define __pyx_kp_u_fd __pyx_string_tab[354]
#define __pyx_kp_u_fd_ValueError __pyx_string_tab[355]
#define __pyx_kp_u_fence __pyx_string_tab[356]
#define __pyx_kp_u_fence_3 __pyx_string_tab[357]
#define __pyx_kp_u_fence_ValueError __pyx_string_tab[358]
#define __pyx_kp_u_field __pyx_string_tab[359]
#define __pyx_kp_u_field_ValueError __pyx_string_tab[360]
#define __pyx_kp_u_filterMode __pyx_string_tab[361]
#define __pyx_kp_u_filterMode_ValueError __pyx_string_tab[362]
#define __pyx_kp_u_firstLayer __pyx_string_tab[363]
#define __pyx_kp_u_firstLayer_ValueError __pyx_string_tab[364]
#define __pyx_kp_u_firstMipmapLevel __pyx_string_tab[365]
#define __pyx_kp_u_firstMipmapLevel_ValueError __pyx_string_tab[366]
#define __pyx_kp_u_flags __pyx_string_tab[367]
#define __pyx_kp_u_flags_ValueError __pyx_string_tab[368]
#define __pyx_kp_u_fn __pyx_string_tab[369]
#define __pyx_kp_u_fn_ValueError __pyx_string_tab[370]
#define __pyx_kp_u_formatDesc __pyx_string_tab[371]
#define __pyx_kp_u_formatDesc_ValueError __pyx_string_tab[372]
#define __pyx_kp_u_format_2 __pyx_string_tab[373]
#define __pyx_kp_u_format_ValueError __pyx_string_tab[374]
#define __pyx_kp_u_frame __pyx_string_tab[375]
#define __pyx_kp_u_frameType __pyx_string_tab[376]
#define __pyx_kp_u_frameType_ValueError __pyx_string_tab[377]
#define __pyx_kp_u_frame_ValueError __pyx_string_tab[378]
#define __pyx_kp_u_free __pyx_string_tab[379]
#define __pyx_kp_u_free_ValueError __pyx_string_tab[380]
#define __pyx_kp_u_from_port __pyx_string_tab[381]
#define __pyx_kp_u_from_port_ValueError __pyx_string_tab[382]
#define __pyx_kp_u_func __pyx_string_tab[383]
#define __pyx_kp_u_func_ValueError __pyx_string_tab[384]
#define __pyx_kp_u_functionTable __pyx_string_tab[385]
#define __pyx_kp_u_functionTable_ValueError __pyx_string_tab[386]
#define __pyx_kp_u_functionWindowSize __pyx_string_tab[387]
#define __pyx_kp_u_functionWindowSize_ValueError __pyx_string_tab[388]
#define __pyx_kp_u_gc __pyx_string_tab[389]
#define __pyx_kp_u_globalL1CacheSupported __pyx_string_tab[390]
#define __pyx_kp_u_globalL1CacheSupported_ValueErro __pyx_string_tab[391]
#define __pyx_kp_u_gpuDirectRDMAFlushWritesOptions __pyx_string_tab[392]
#define __pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3 __pyx_string_tab[393]
#define __pyx_kp_u_gpuDirectRDMASupported __pyx_string_tab[394]
#define __pyx_kp_u_gpuDirectRDMASupported_ValueErro __pyx_string_tab[395]
#define __pyx_kp_u_gpuDirectRDMAWritesOrdering __pyx_string_tab[396]
#define __pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu __pyx_string_tab[397]
#define __pyx_kp_u_gpuPciDeviceID __pyx_string_tab[398]
#define __pyx_kp_u_gpuPciDeviceID_ValueError __pyx_string_tab[399]
#define __pyx_kp_u_gpuPciSubsystemID __pyx_string_tab[400]
#define __pyx_kp_u_gpuPciSubsystemID_ValueError __pyx_string_tab[401]
#define __pyx_kp_u_graph __pyx_string_tab[402]
#define __pyx_kp_u_graph_3 __pyx_string_tab[403]
#define __pyx_kp_u_graph_ValueError __pyx_string_tab[404]
#define __pyx_kp_u_gridDim __pyx_string_tab[405]
#define __pyx_kp_u_gridDim_ValueError __pyx_string_tab[406]
#define __pyx_kp_u_handle __pyx_string_tab[407]
#define __pyx_kp_u_handleTypes __pyx_string_tab[408]
#define __pyx_kp_u_handleTypes_ValueError __pyx_string_tab[409]
#define __pyx_kp_u_handle_3 __pyx_string_tab[410]
#define __pyx_kp_u_handle_ValueError __pyx_string_tab[411]
#define __pyx_kp_u_height __pyx_string_tab[412]
#define __pyx_kp_u_height_ValueError __pyx_string_tab[413]
#define __pyx_kp_u_hitProp __pyx_string_tab[414]
#define __pyx_kp_u_hitProp_ValueError __pyx_string_tab[415]
#define __pyx_kp_u_hitRatio __pyx_string_tab[416]
#define __pyx_kp_u_hitRatio_ValueError __pyx_string_tab[417]
#define __pyx_kp_u_host __pyx_string_tab[418]
#define __pyx_kp_u_hostNativeAtomicSupported __pyx_string_tab[419]
#define __pyx_kp_u_hostNativeAtomicSupported_ValueE __pyx_string_tab[420]
#define __pyx_kp_u_hostNumaId __pyx_string_tab[421]
#define __pyx_kp_u_hostNumaId_ValueError __pyx_string_tab[422]
#define __pyx_kp_u_hostNumaMultinodeIpcSupported __pyx_string_tab[423]
#define __pyx_kp_u_hostNumaMultinodeIpcSupported_Va __pyx_string_tab[424]
#define __pyx_kp_u_hostPointer __pyx_string_tab[425]
#define __pyx_kp_u_hostPointer_ValueError __pyx_string_tab[426]
#define __pyx_kp_u_hostRegisterReadOnlySupported __pyx_string_tab[427]
#define __pyx_kp_u_hostRegisterReadOnlySupported_Va __pyx_string_tab[428]
#define __pyx_kp_u_hostRegisterSupported __pyx_string_tab[429]
#define __pyx_kp_u_hostRegisterSupported_ValueError __pyx_string_tab[430]
#define __pyx_kp_u_host_ValueError __pyx_string_tab[431]
#define __pyx_kp_u_id __pyx_string_tab[432]
#define __pyx_kp_u_id_ValueError __pyx_string_tab[433]
#define __pyx_kp_u_impl_private_CUDA_error_types __pyx_string_tab[434]
#define __pyx_kp_u_info __pyx_string_tab[435]
#define __pyx_kp_u_info_ValueError __pyx_string_tab[436]
#define __pyx_kp_u_integrated __pyx_string_tab[437]
#define __pyx_kp_u_integrated_ValueError __pyx_string_tab[438]
#define __pyx_kp_u_internal_padding __pyx_string_tab[439]
#define __pyx_kp_u_internal_padding_ValueError __pyx_string_tab[440]
#define __pyx_kp_u_internal_padding_length_must_be __pyx_string_tab[441]
#define __pyx_kp_u_ipcEventSupported __pyx_string_tab[442]
#define __pyx_kp_u_ipcEventSupported_ValueError __pyx_string_tab[443]
#define __pyx_kp_u_isEnabled __pyx_string_tab[444]
#define __pyx_kp_u_isEnabled_ValueError __pyx_string_tab[445]
#define __pyx_kp_u_isMultiGpuBoard __pyx_string_tab[446]
#define __pyx_kp_u_isMultiGpuBoard_ValueError __pyx_string_tab[447]
#define __pyx_kp_u_isenabled __pyx_string_tab[448]
#define __pyx_kp_u_kernel __pyx_string_tab[449]
#define __pyx_kp_u_kernelParams_2 __pyx_string_tab[450]
#define __pyx_kp_u_kernelParams_ValueError __pyx_string_tab[451]
#define __pyx_kp_u_kernel_ValueError __pyx_string_tab[452]
#define __pyx_kp_u_key __pyx_string_tab[453]
#define __pyx_kp_u_key_ValueError __pyx_string_tab[454]
#define __pyx_kp_u_keyedMutex __pyx_string_tab[455]
#define __pyx_kp_u_keyedMutex_ValueError __pyx_string_tab[456]
#define __pyx_kp_u_kind __pyx_string_tab[457]
#define __pyx_kp_u_kind_ValueError __pyx_string_tab[458]
#define __pyx_kp_u_l2CacheSize __pyx_string_tab[459]
#define __pyx_kp_u_l2CacheSize_ValueError __pyx_string_tab[460]
#define __pyx_kp_u_lastLayer __pyx_string_tab[461]
#define __pyx_kp_u_lastLayer_ValueError __pyx_string_tab[462]
#define __pyx_kp_u_lastMipmapLevel __pyx_string_tab[463]
#define __pyx_kp_u_lastMipmapLevel_ValueError __pyx_string_tab[464]
#define __pyx_kp_u_launchCompletionEvent __pyx_string_tab[465]
#define __pyx_kp_u_launchCompletionEvent_ValueError __pyx_string_tab[466]
#define __pyx_kp_u_layerHeight __pyx_string_tab[467]
#define __pyx_kp_u_layerHeight_ValueError __pyx_string_tab[468]
#define __pyx_kp_u_linear __pyx_string_tab[469]
#define __pyx_kp_u_linear_ValueError __pyx_string_tab[470]
#define __pyx_kp_u_locHint __pyx_string_tab[471]
#define __pyx_kp_u_locHint_ValueError __pyx_string_tab[472]
#define __pyx_kp_u_localL1CacheSupported __pyx_string_tab[473]
#define __pyx_kp_u_localL1CacheSupported_ValueError __pyx_string_tab[474]
#define __pyx_kp_u_localSizeBytes __pyx_string_tab[475]
#define __pyx_kp_u_localSizeBytes_ValueError __pyx_string_tab[476]
#define __pyx_kp_u_location __pyx_string_tab[477]
#define __pyx_kp_u_location_ValueError __pyx_string_tab[478]
#define __pyx_kp_u_luid __pyx_string_tab[479]
#define __pyx_kp_u_luidDeviceNodeMask __pyx_string_tab[480]
#define __pyx_kp_u_luidDeviceNodeMask_ValueError __pyx_string_tab[481]
#define __pyx_kp_u_luid_ValueError __pyx_string_tab[482]
#define __pyx_kp_u_luid_length_must_be_8_is __pyx_string_tab[483]
#define __pyx_kp_u_major __pyx_string_tab[484]
#define __pyx_kp_u_major_ValueError __pyx_string_tab[485]
#define __pyx_kp_u_managedMemory __pyx_string_tab[486]
#define __pyx_kp_u_managedMemory_ValueError __pyx_string_tab[487]
#define __pyx_kp_u_maxAnisotropy __pyx_string_tab[488]
#define __pyx_kp_u_maxAnisotropy_ValueError __pyx_string_tab[489]
#define __pyx_kp_u_maxBlocksPerMultiProcessor __pyx_string_tab[490]
#define __pyx_kp_u_maxBlocksPerMultiProcessor_Value __pyx_string_tab[491]
#define __pyx_kp_u_maxDynamicSharedSizeBytes __pyx_string_tab[492]
#define __pyx_kp_u_maxDynamicSharedSizeBytes_ValueE __pyx_string_tab[493]
#define __pyx_kp_u_maxGridSize __pyx_string_tab[494]
#define __pyx_kp_u_maxGridSize_ValueError __pyx_string_tab[495]
#define __pyx_kp_u_maxMipmapLevelClamp __pyx_string_tab[496]
#define __pyx_kp_u_maxMipmapLevelClamp_ValueError __pyx_string_tab[497]
#define __pyx_kp_u_maxSize __pyx_string_tab[498]
#define __pyx_kp_u_maxSize_ValueError __pyx_string_tab[499]
#define __pyx_kp_u_maxSurface1D __pyx_string_tab[500]
#define __pyx_kp_u_maxSurface1DLayered __pyx_string_tab[501]
#define __pyx_kp_u_maxSurface1DLayered_ValueError __pyx_string_tab[502]
#define __pyx_kp_u_maxSurface1D_ValueError __pyx_string_tab[503]
#define __pyx_kp_u_maxSurface2D __pyx_string_tab[504]
#define __pyx_kp_u_maxSurface2DLayered __pyx_string_tab[505]
#define __pyx_kp_u_maxSurface2DLayered_ValueError __pyx_string_tab[506]
#define __pyx_kp_u_maxSurface2D_ValueError __pyx_string_tab[507]
#define __pyx_kp_u_maxSurface3D __pyx_string_tab[508]
#define __pyx_kp_u_maxSurface3D_ValueError __pyx_string_tab[509]
#define __pyx_kp_u_maxSurfaceCubemap __pyx_string_tab[510]
#define __pyx_kp_u_maxSurfaceCubemapLayered __pyx_string_tab[511]
#define __pyx_kp_u_maxSurfaceCubemapLayered_ValueEr __pyx_string_tab[512]
#define __pyx_kp_u_maxSurfaceCubemap_ValueError __pyx_string_tab[513]
#define __pyx_kp_u_maxTexture1D __pyx_string_tab[514]
#define __pyx_kp_u_maxTexture1DLayered __pyx_string_tab[515]
#define __pyx_kp_u_maxTexture1DLayered_ValueError __pyx_string_tab[516]
#define __pyx_kp_u_maxTexture1DMipmap __pyx_string_tab[517]
#define __pyx_kp_u_maxTexture1DMipmap_ValueError __pyx_string_tab[518]
#define __pyx_kp_u_maxTexture1D_ValueError __pyx_string_tab[519]
#define __pyx_kp_u_maxTexture2D __pyx_string_tab[520]
#define __pyx_kp_u_maxTexture2DGather __pyx_string_tab[521]
#define __pyx_kp_u_maxTexture2DGather_ValueError __pyx_string_tab[522]
#define __pyx_kp_u_maxTexture2DLayered __pyx_string_tab[523]
#define __pyx_kp_u_maxTexture2DLayered_ValueError __pyx_string_tab[524]
#define __pyx_kp_u_maxTexture2DLinear __pyx_string_tab[525]
#define __pyx_kp_u_maxTexture2DLinear_ValueError __pyx_string_tab[526]
#define __pyx_kp_u_maxTexture2DMipmap __pyx_string_tab[527]
#define __pyx_kp_u_maxTexture2DMipmap_ValueError __pyx_string_tab[528]
#define __pyx_kp_u_maxTexture2D_ValueError __pyx_string_tab[529]
#define __pyx_kp_u_maxTexture3D __pyx_string_tab[530]
#define __pyx_kp_u_maxTexture3DAlt __pyx_string_tab[531]
#define __pyx_kp_u_maxTexture3DAlt_ValueError __pyx_string_tab[532]
#define __pyx_kp_u_maxTexture3D_ValueError __pyx_string_tab[533]
#define __pyx_kp_u_maxTextureCubemap __pyx_string_tab[534]
#define __pyx_kp_u_maxTextureCubemapLayered __pyx_string_tab[535]
#define __pyx_kp_u_maxTextureCubemapLayered_ValueEr __pyx_string_tab[536]
#define __pyx_kp_u_maxTextureCubemap_ValueError __pyx_string_tab[537]
#define __pyx_kp_u_maxThreadsDim __pyx_string_tab[538]
#define __pyx_kp_u_maxThreadsDim_ValueError __pyx_string_tab[539]
#define __pyx_kp_u_maxThreadsPerBlock __pyx_string_tab[540]
#define __pyx_kp_u_maxThreadsPerBlock_ValueError __pyx_string_tab[541]
#define __pyx_kp_u_maxThreadsPerMultiProcessor __pyx_string_tab[542]
#define __pyx_kp_u_maxThreadsPerMultiProcessor_Valu __pyx_string_tab[543]
#define __pyx_kp_u_memPitch __pyx_string_tab[544]
#define __pyx_kp_u_memPitch_ValueError __pyx_string_tab[545]
#define __pyx_kp_u_memSyncDomain __pyx_string_tab[546]
#define __pyx_kp_u_memSyncDomainMap __pyx_string_tab[547]
#define __pyx_kp_u_memSyncDomainMap_ValueError __pyx_string_tab[548]
#define __pyx_kp_u_memSyncDomain_ValueError __pyx_string_tab[549]
#define __pyx_kp_u_memcpy __pyx_string_tab[550]
#define __pyx_kp_u_memcpy_ValueError __pyx_string_tab[551]
#define __pyx_kp_u_memoryBusWidth __pyx_string_tab[552]
#define __pyx_kp_u_memoryBusWidth_ValueError __pyx_string_tab[553]
#define __pyx_kp_u_memoryPoolSupportedHandleTypes __pyx_string_tab[554]
#define __pyx_kp_u_memoryPoolSupportedHandleTypes_V __pyx_string_tab[555]
#define __pyx_kp_u_memoryPoolsSupported __pyx_string_tab[556]
#define __pyx_kp_u_memoryPoolsSupported_ValueError __pyx_string_tab[557]
#define __pyx_kp_u_memset __pyx_string_tab[558]
#define __pyx_kp_u_memset_ValueError __pyx_string_tab[559]
#define __pyx_kp_u_minMipmapLevelClamp __pyx_string_tab[560]
#define __pyx_kp_u_minMipmapLevelClamp_ValueError __pyx_string_tab[561]
#define __pyx_kp_u_minSmPartitionSize __pyx_string_tab[562]
#define __pyx_kp_u_minSmPartitionSize_ValueError __pyx_string_tab[563]
#define __pyx_kp_u_minor __pyx_string_tab[564]
#define __pyx_kp_u_minor_ValueError __pyx_string_tab[565]
#define __pyx_kp_u_mipmap __pyx_string_tab[566]
#define __pyx_kp_u_mipmapFilterMode __pyx_string_tab[567]
#define __pyx_kp_u_mipmapFilterMode_ValueError __pyx_string_tab[568]
#define __pyx_kp_u_mipmapLevelBias __pyx_string_tab[569]
#define __pyx_kp_u_mipmapLevelBias_ValueError __pyx_string_tab[570]
#define __pyx_kp_u_mipmap_3 __pyx_string_tab[571]
#define __pyx_kp_u_mipmap_ValueError __pyx_string_tab[572]
#define __pyx_kp_u_miptailFirstLevel __pyx_string_tab[573]
#define __pyx_kp_u_miptailFirstLevel_ValueError __pyx_string_tab[574]
#define __pyx_kp_u_miptailSize __pyx_string_tab[575]
#define __pyx_kp_u_miptailSize_ValueError __pyx_string_tab[576]
#define __pyx_kp_u_missProp __pyx_string_tab[577]
#define __pyx_kp_u_missProp_ValueError __pyx_string_tab[578]
#define __pyx_kp_u_mpsEnabled __pyx_string_tab[579]
#define __pyx_kp_u_mpsEnabled_ValueError __pyx_string_tab[580]
#define __pyx_kp_u_multiGpuBoardGroupID __pyx_string_tab[581]
#define __pyx_kp_u_multiGpuBoardGroupID_ValueError __pyx_string_tab[582]
#define __pyx_kp_u_multiProcessorCount __pyx_string_tab[583]
#define __pyx_kp_u_multiProcessorCount_ValueError __pyx_string_tab[584]
#define __pyx_kp_u_name_2 __pyx_string_tab[585]
#define __pyx_kp_u_name_ValueError __pyx_string_tab[586]
#define __pyx_kp_u_nextResource __pyx_string_tab[587]
#define __pyx_kp_u_nextResource_ValueError __pyx_string_tab[588]
#define __pyx_kp_u_no_default___reduce___due_to_non __pyx_string_tab[589]
#define __pyx_kp_u_node __pyx_string_tab[590]
#define __pyx_kp_u_node_ValueError __pyx_string_tab[591]
#define __pyx_kp_u_nonPortableClusterSizeAllowed __pyx_string_tab[592]
#define __pyx_kp_u_nonPortableClusterSizeAllowed_Va __pyx_string_tab[593]
#define __pyx_kp_u_normalizedCoords __pyx_string_tab[594]
#define __pyx_kp_u_normalizedCoords_ValueError __pyx_string_tab[595]
#define __pyx_kp_u_not_enough_values_found_during_a_2 __pyx_string_tab[596]
#define __pyx_kp_u_numChannels __pyx_string_tab[597]
#define __pyx_kp_u_numChannels_ValueError __pyx_string_tab[598]
#define __pyx_kp_u_numExtSems __pyx_string_tab[599]
#define __pyx_kp_u_numExtSems_ValueError __pyx_string_tab[600]
#define __pyx_kp_u_numLevels __pyx_string_tab[601]
#define __pyx_kp_u_numLevels_ValueError __pyx_string_tab[602]
#define __pyx_kp_u_numRegs __pyx_string_tab[603]
#define __pyx_kp_u_numRegs_ValueError __pyx_string_tab[604]
#define __pyx_kp_u_num_bytes __pyx_string_tab[605]
#define __pyx_kp_u_num_bytes_ValueError __pyx_string_tab[606]
#define __pyx_kp_u_nvSciBufObject __pyx_string_tab[607]
#define __pyx_kp_u_nvSciBufObject_ValueError __pyx_string_tab[608]
#define __pyx_kp_u_nvSciSync __pyx_string_tab[609]
#define __pyx_kp_u_nvSciSyncObj __pyx_string_tab[610]
#define __pyx_kp_u_nvSciSyncObj_ValueError __pyx_string_tab[611]
#define __pyx_kp_u_nvSciSync_ValueError __pyx_string_tab[612]
#define __pyx_kp_u_nvlinkUtilCentricScheduling __pyx_string_tab[613]
#define __pyx_kp_u_nvlinkUtilCentricScheduling_Valu __pyx_string_tab[614]
#define __pyx_kp_u_offset __pyx_string_tab[615]
#define __pyx_kp_u_offset_3 __pyx_string_tab[616]
#define __pyx_kp_u_offset_ValueError __pyx_string_tab[617]
#define __pyx_kp_u_op __pyx_string_tab[618]
#define __pyx_kp_u_op_ValueError __pyx_string_tab[619]
#define __pyx_kp_u_overBudget __pyx_string_tab[620]
#define __pyx_kp_u_overBudget_ValueError __pyx_string_tab[621]
#define __pyx_kp_u_oversize __pyx_string_tab[622]
#define __pyx_kp_u_oversize_ValueError __pyx_string_tab[623]
#define __pyx_kp_u_oversize_length_must_be_40_is __pyx_string_tab[624]
#define __pyx_kp_u_ownership __pyx_string_tab[625]
#define __pyx_kp_u_ownership_ValueError __pyx_string_tab[626]
#define __pyx_kp_u_pArray __pyx_string_tab[627]
#define __pyx_kp_u_pArray_ValueError __pyx_string_tab[628]
#define __pyx_kp_u_pPitch __pyx_string_tab[629]
#define __pyx_kp_u_pPitch_ValueError __pyx_string_tab[630]
#define __pyx_kp_u_pValue __pyx_string_tab[631]
#define __pyx_kp_u_pValue_ValueError __pyx_string_tab[632]
#define __pyx_kp_u_pad __pyx_string_tab[633]
#define __pyx_kp_u_pad_ValueError __pyx_string_tab[634]
#define __pyx_kp_u_pad_length_must_be_64_is __pyx_string_tab[635]
#define __pyx_kp_u_pageableMemoryAccess __pyx_string_tab[636]
#define __pyx_kp_u_pageableMemoryAccessUsesHostPage __pyx_string_tab[637]
#define __pyx_kp_u_pageableMemoryAccessUsesHostPage_3 __pyx_string_tab[638]
#define __pyx_kp_u_pageableMemoryAccess_ValueError __pyx_string_tab[639]
#define __pyx_kp_u_param __pyx_string_tab[640]
#define __pyx_kp_u_param_ValueError __pyx_string_tab[641]
#define __pyx_kp_u_params __pyx_string_tab[642]
#define __pyx_kp_u_paramsArray __pyx_string_tab[643]
#define __pyx_kp_u_paramsArray_ValueError __pyx_string_tab[644]
#define __pyx_kp_u_params_ValueError __pyx_string_tab[645]
#define __pyx_kp_u_pciBusID __pyx_string_tab[646]
#define __pyx_kp_u_pciBusID_ValueError __pyx_string_tab[647]
#define __pyx_kp_u_pciDeviceID __pyx_string_tab[648]
#define __pyx_kp_u_pciDeviceID_ValueError __pyx_string_tab[649]
#define __pyx_kp_u_pciDomainID __pyx_string_tab[650]
#define __pyx_kp_u_pciDomainID_ValueError __pyx_string_tab[651]
#define __pyx_kp_u_persistingL2CacheMaxSize __pyx_string_tab[652]
#define __pyx_kp_u_persistingL2CacheMaxSize_ValueEr __pyx_string_tab[653]
#define __pyx_kp_u_phGraph_out __pyx_string_tab[654]
#define __pyx_kp_u_phGraph_out_ValueError __pyx_string_tab[655]
#define __pyx_kp_u_pitch __pyx_string_tab[656]
#define __pyx_kp_u_pitch2D __pyx_string_tab[657]
#define __pyx_kp_u_pitch2D_ValueError __pyx_string_tab[658]
#define __pyx_kp_u_pitchInBytes __pyx_string_tab[659]
#define __pyx_kp_u_pitchInBytes_ValueError __pyx_string_tab[660]
#define __pyx_kp_u_pitch_ValueError __pyx_string_tab[661]
#define __pyx_kp_u_planeCount __pyx_string_tab[662]
#define __pyx_kp_u_planeCount_ValueError __pyx_string_tab[663]
#define __pyx_kp_u_planeDesc __pyx_string_tab[664]
#define __pyx_kp_u_planeDesc_ValueError __pyx_string_tab[665]
#define __pyx_kp_u_poolProps __pyx_string_tab[666]
#define __pyx_kp_u_poolProps_ValueError __pyx_string_tab[667]
#define __pyx_kp_u_preferredClusterDim __pyx_string_tab[668]
#define __pyx_kp_u_preferredClusterDim_ValueError __pyx_string_tab[669]
#define __pyx_kp_u_preferredCoscheduledSmCount __pyx_string_tab[670]
#define __pyx_kp_u_preferredCoscheduledSmCount_Valu __pyx_string_tab[671]
#define __pyx_kp_u_preferredShmemCarveout __pyx_string_tab[672]
#define __pyx_kp_u_preferredShmemCarveout_ValueErro __pyx_string_tab[673]
#define __pyx_kp_u_priority __pyx_string_tab[674]
#define __pyx_kp_u_priority_ValueError __pyx_string_tab[675]
#define __pyx_kp_u_programmaticEvent __pyx_string_tab[676]
#define __pyx_kp_u_programmaticEvent_ValueError __pyx_string_tab[677]
#define __pyx_kp_u_programmaticStreamSerializationA __pyx_string_tab[678]
#define __pyx_kp_u_programmaticStreamSerializationA_3 __pyx_string_tab[679]
#define __pyx_kp_u_ptr_3 __pyx_string_tab[680]
#define __pyx_kp_u_ptr_4 __pyx_string_tab[681]
#define __pyx_kp_u_ptr_ValueError __pyx_string_tab[682]
#define __pyx_kp_u_ptxVersion __pyx_string_tab[683]
#define __pyx_kp_u_ptxVersion_ValueError __pyx_string_tab[684]
#define __pyx_kp_u_readMode __pyx_string_tab[685]
#define __pyx_kp_u_readMode_ValueError __pyx_string_tab[686]
#define __pyx_kp_u_regsPerBlock __pyx_string_tab[687]
#define __pyx_kp_u_regsPerBlock_ValueError __pyx_string_tab[688]
#define __pyx_kp_u_regsPerMultiprocessor __pyx_string_tab[689]
#define __pyx_kp_u_regsPerMultiprocessor_ValueError __pyx_string_tab[690]
#define __pyx_kp_u_remote __pyx_string_tab[691]
#define __pyx_kp_u_remote_ValueError __pyx_string_tab[692]
#define __pyx_kp_u_requiredClusterDepth __pyx_string_tab[693]
#define __pyx_kp_u_requiredClusterDepth_ValueError __pyx_string_tab[694]
#define __pyx_kp_u_requiredClusterHeight __pyx_string_tab[695]
#define __pyx_kp_u_requiredClusterHeight_ValueError __pyx_string_tab[696]
#define __pyx_kp_u_requiredClusterWidth __pyx_string_tab[697]
#define __pyx_kp_u_requiredClusterWidth_ValueError __pyx_string_tab[698]
#define __pyx_kp_u_res __pyx_string_tab[699]
#define __pyx_kp_u_resType __pyx_string_tab[700]
#define __pyx_kp_u_resType_ValueError __pyx_string_tab[701]
#define __pyx_kp_u_res_ValueError __pyx_string_tab[702]
#define __pyx_kp_u_reserved __pyx_string_tab[703]
#define __pyx_kp_u_reserved0 __pyx_string_tab[704]
#define __pyx_kp_u_reserved0_ValueError __pyx_string_tab[705]
#define __pyx_kp_u_reserved1 __pyx_string_tab[706]
#define __pyx_kp_u_reserved1_ValueError __pyx_string_tab[707]
#define __pyx_kp_u_reserved2 __pyx_string_tab[708]
#define __pyx_kp_u_reserved2_ValueError __pyx_string_tab[709]
#define __pyx_kp_u_reservedSharedMemPerBlock __pyx_string_tab[710]
#define __pyx_kp_u_reservedSharedMemPerBlock_ValueE __pyx_string_tab[711]
#define __pyx_kp_u_reserved_3 __pyx_string_tab[712]
#define __pyx_kp_u_reserved_ValueError __pyx_string_tab[713]
#define __pyx_kp_u_reserved_length_must_be_40_is __pyx_string_tab[714]
#define __pyx_kp_u_reserved_length_must_be_54_is __pyx_string_tab[715]
#define __pyx_kp_u_reserved_length_must_be_5_is __pyx_string_tab[716]
#define __pyx_kp_u_reserved_length_must_be_64_is __pyx_string_tab[717]
#define __pyx_kp_u_result __pyx_string_tab[718]
#define __pyx_kp_u_result_ValueError __pyx_string_tab[719]
#define __pyx_kp_u_result_out __pyx_string_tab[720]
#define __pyx_kp_u_result_out_ValueError __pyx_string_tab[721]
#define __pyx_kp_u_rowLength __pyx_string_tab[722]
#define __pyx_kp_u_rowLength_ValueError __pyx_string_tab[723]
#define __pyx_kp_u_sRGB __pyx_string_tab[724]
#define __pyx_kp_u_sRGB_ValueError __pyx_string_tab[725]
#define __pyx_kp_u_seamlessCubemap __pyx_string_tab[726]
#define __pyx_kp_u_seamlessCubemap_ValueError __pyx_string_tab[727]
#define __pyx_kp_u_self__allocated_cannot_be_conver __pyx_string_tab[728]
#define __pyx_kp_u_sharedMemBytes __pyx_string_tab[729]
#define __pyx_kp_u_sharedMemBytes_ValueError __pyx_string_tab[730]
#define __pyx_kp_u_sharedMemCarveout __pyx_string_tab[731]
#define __pyx_kp_u_sharedMemCarveout_ValueError __pyx_string_tab[732]
#define __pyx_kp_u_sharedMemPerBlock __pyx_string_tab[733]
#define __pyx_kp_u_sharedMemPerBlockOptin __pyx_string_tab[734]
#define __pyx_kp_u_sharedMemPerBlockOptin_ValueErro __pyx_string_tab[735]
#define __pyx_kp_u_sharedMemPerBlock_ValueError __pyx_string_tab[736]
#define __pyx_kp_u_sharedMemPerMultiprocessor __pyx_string_tab[737]
#define __pyx_kp_u_sharedMemPerMultiprocessor_Value __pyx_string_tab[738]
#define __pyx_kp_u_sharedSizeBytes __pyx_string_tab[739]
#define __pyx_kp_u_sharedSizeBytes_ValueError __pyx_string_tab[740]
#define __pyx_kp_u_sharingScope __pyx_string_tab[741]
#define __pyx_kp_u_sharingScope_ValueError __pyx_string_tab[742]
#define __pyx_kp_u_size __pyx_string_tab[743]
#define __pyx_kp_u_sizeInBytes __pyx_string_tab[744]
#define __pyx_kp_u_sizeInBytes_ValueError __pyx_string_tab[745]
#define __pyx_kp_u_size_ValueError __pyx_string_tab[746]
#define __pyx_kp_u_sm __pyx_string_tab[747]
#define __pyx_kp_u_smCoscheduledAlignment __pyx_string_tab[748]
#define __pyx_kp_u_smCoscheduledAlignment_ValueErro __pyx_string_tab[749]
#define __pyx_kp_u_smCount __pyx_string_tab[750]
#define __pyx_kp_u_smCount_ValueError __pyx_string_tab[751]
#define __pyx_kp_u_sm_ValueError __pyx_string_tab[752]
#define __pyx_kp_u_sparseCudaArraySupported __pyx_string_tab[753]
#define __pyx_kp_u_sparseCudaArraySupported_ValueEr __pyx_string_tab[754]
#define __pyx_kp_u_src __pyx_string_tab[755]
#define __pyx_kp_u_srcAccessOrder __pyx_string_tab[756]
#define __pyx_kp_u_srcAccessOrder_ValueError __pyx_string_tab[757]
#define __pyx_kp_u_srcArray __pyx_string_tab[758]
#define __pyx_kp_u_srcArray_ValueError __pyx_string_tab[759]
#define __pyx_kp_u_srcDevice __pyx_string_tab[760]
#define __pyx_kp_u_srcDevice_ValueError __pyx_string_tab[761]
#define __pyx_kp_u_srcLocHint __pyx_string_tab[762]
#define __pyx_kp_u_srcLocHint_ValueError __pyx_string_tab[763]
#define __pyx_kp_u_srcPos __pyx_string_tab[764]
#define __pyx_kp_u_srcPos_ValueError __pyx_string_tab[765]
#define __pyx_kp_u_srcPtr __pyx_string_tab[766]
#define __pyx_kp_u_srcPtr_ValueError __pyx_string_tab[767]
#define __pyx_kp_u_src_ValueError __pyx_string_tab[768]
#define __pyx_kp_u_streamPrioritiesSupported __pyx_string_tab[769]
#define __pyx_kp_u_streamPrioritiesSupported_ValueE __pyx_string_tab[770]
#define __pyx_kp_u_stringsource __pyx_string_tab[771]
#define __pyx_kp_u_surfaceAlignment __pyx_string_tab[772]
#define __pyx_kp_u_surfaceAlignment_ValueError __pyx_string_tab[773]
#define __pyx_kp_u_syncPolicy __pyx_string_tab[774]
#define __pyx_kp_u_syncPolicy_ValueError __pyx_string_tab[775]
#define __pyx_kp_u_tccDriver __pyx_string_tab[776]
#define __pyx_kp_u_tccDriver_ValueError __pyx_string_tab[777]
#define __pyx_kp_u_textureAlignment __pyx_string_tab[778]
#define __pyx_kp_u_textureAlignment_ValueError __pyx_string_tab[779]
#define __pyx_kp_u_texturePitchAlignment __pyx_string_tab[780]
#define __pyx_kp_u_texturePitchAlignment_ValueError __pyx_string_tab[781]
#define __pyx_kp_u_tileExtent __pyx_string_tab[782]
#define __pyx_kp_u_tileExtent_ValueError __pyx_string_tab[783]
#define __pyx_kp_u_timelineSemaphoreInteropSupporte __pyx_string_tab[784]
#define __pyx_kp_u_timelineSemaphoreInteropSupporte_3 __pyx_string_tab[785]
#define __pyx_kp_u_timeoutMs __pyx_string_tab[786]
#define __pyx_kp_u_timeoutMs_ValueError __pyx_string_tab[787]
#define __pyx_kp_u_to_port __pyx_string_tab[788]
#define __pyx_kp_u_to_port_ValueError __pyx_string_tab[789]
#define __pyx_kp_u_totalConstMem __pyx_string_tab[790]
#define __pyx_kp_u_totalConstMem_ValueError __pyx_string_tab[791]
#define __pyx_kp_u_totalGlobalMem __pyx_string_tab[792]
#define __pyx_kp_u_totalGlobalMem_ValueError __pyx_string_tab[793]
#define __pyx_kp_u_triggerAtBlockStart __pyx_string_tab[794]
#define __pyx_kp_u_triggerAtBlockStart_ValueError __pyx_string_tab[795]
#define __pyx_kp_u_tuple_int_list_int __pyx_string_tab[796]
#define __pyx_kp_u_type __pyx_string_tab[797]
#define __pyx_kp_u_type_ValueError __pyx_string_tab[798]
#define __pyx_kp_u_unifiedAddressing __pyx_string_tab[799]
#define __pyx_kp_u_unifiedAddressing_ValueError __pyx_string_tab[800]
#define __pyx_kp_u_unifiedFunctionPointers __pyx_string_tab[801]
#define __pyx_kp_u_unifiedFunctionPointers_ValueErr __pyx_string_tab[802]
#define __pyx_kp_u_updateData __pyx_string_tab[803]
#define __pyx_kp_u_updateData_ValueError __pyx_string_tab[804]
#define __pyx_kp_u_uploadStream __pyx_string_tab[805]
#define __pyx_kp_u_uploadStream_ValueError __pyx_string_tab[806]
#define __pyx_kp_u_usage __pyx_string_tab[807]
#define __pyx_kp_u_usage_ValueError __pyx_string_tab[808]
#define __pyx_kp_u_userData __pyx_string_tab[809]
#define __pyx_kp_u_userData_ValueError __pyx_string_tab[810]
#define __pyx_kp_u_utf_8 __pyx_string_tab[811]
#define __pyx_kp_u_uuid __pyx_string_tab[812]
#define __pyx_kp_u_uuid_ValueError __pyx_string_tab[813]
#define __pyx_kp_u_val __pyx_string_tab[814]
#define __pyx_kp_u_val_ValueError __pyx_string_tab[815]
#define __pyx_kp_u_value_2 __pyx_string_tab[816]
#define __pyx_kp_u_value_ValueError __pyx_string_tab[817]
#define __pyx_kp_u_w __pyx_string_tab[818]
#define __pyx_kp_u_w_ValueError __pyx_string_tab[819]
#define __pyx_kp_u_warpSize __pyx_string_tab[820]
#define __pyx_kp_u_warpSize_ValueError __pyx_string_tab[821]
#define __pyx_kp_u_width __pyx_string_tab[822]
#define __pyx_kp_u_width_ValueError __pyx_string_tab[823]
#define __pyx_kp_u_win32 __pyx_string_tab[824]
#define __pyx_kp_u_win32SecurityAttributes __pyx_string_tab[825]
#define __pyx_kp_u_win32SecurityAttributes_ValueErr __pyx_string_tab[826]
#define __pyx_kp_u_win32_ValueError __pyx_string_tab[827]
#define __pyx_kp_u_wq __pyx_string_tab[828]
#define __pyx_kp_u_wqConcurrencyLimit __pyx_string_tab[829]
#define __pyx_kp_u_wqConcurrencyLimit_ValueError __pyx_string_tab[830]
#define __pyx_kp_u_wqConfig __pyx_string_tab[831]
#define __pyx_kp_u_wqConfig_ValueError __pyx_string_tab[832]
#define __pyx_kp_u_wq_ValueError __pyx_string_tab[833]
#define __pyx_kp_u_x __pyx_string_tab[834]
#define __pyx_kp_u_x_ValueError __pyx_string_tab[835]
#define __pyx_kp_u_xsize __pyx_string_tab[836]
#define __pyx_kp_u_xsize_ValueError __pyx_string_tab[837]
#define __pyx_kp_u_y __pyx_string_tab[838]
#define __pyx_kp_u_y_ValueError __pyx_string_tab[839]
#define __pyx_kp_u_ysize __pyx_string_tab[840]
#define __pyx_kp_u_ysize_ValueError __pyx_string_tab[841]
#define __pyx_kp_u_z __pyx_string_tab[842]
#define __pyx_kp_u_z_ValueError __pyx_string_tab[843]
#define __pyx_n_u_Any __pyx_string_tab[844]
#define __pyx_n_u_CUDART_API_VERSION __pyx_string_tab[845]
#define __pyx_n_u_CUDART_VERSION __pyx_string_tab[846]
#define __pyx_n_u_CUDA_C_16BF __pyx_string_tab[847]
#define __pyx_n_u_CUDA_C_16F __pyx_string_tab[848]
#define __pyx_n_u_CUDA_C_16I __pyx_string_tab[849]
#define __pyx_n_u_CUDA_C_16U __pyx_string_tab[850]
#define __pyx_n_u_CUDA_C_32F __pyx_string_tab[851]
#define __pyx_n_u_CUDA_C_32I __pyx_string_tab[852]
#define __pyx_n_u_CUDA_C_32U __pyx_string_tab[853]
#define __pyx_n_u_CUDA_C_4I __pyx_string_tab[854]
#define __pyx_n_u_CUDA_C_4U __pyx_string_tab[855]
#define __pyx_n_u_CUDA_C_64F __pyx_string_tab[856]
#define __pyx_n_u_CUDA_C_64I __pyx_string_tab[857]
#define __pyx_n_u_CUDA_C_64U __pyx_string_tab[858]
#define __pyx_n_u_CUDA_C_8I __pyx_string_tab[859]
#define __pyx_n_u_CUDA_C_8U __pyx_string_tab[860]
#define __pyx_n_u_CUDA_EGL_MAX_PLANES __pyx_string_tab[861]
#define __pyx_n_u_CUDA_EMULATION_MANTISSA_CONTROL __pyx_string_tab[862]
#define __pyx_n_u_CUDA_EMULATION_MANTISSA_CONTROL_2 __pyx_string_tab[863]
#define __pyx_n_u_CUDA_EMULATION_SPECIAL_VALUES_SU __pyx_string_tab[864]
#define __pyx_n_u_CUDA_EMULATION_SPECIAL_VALUES_SU_2 __pyx_string_tab[865]
#define __pyx_n_u_CUDA_EMULATION_SPECIAL_VALUES_SU_3 __pyx_string_tab[866]
#define __pyx_n_u_CUDA_EMULATION_SPECIAL_VALUES_SU_4 __pyx_string_tab[867]
#define __pyx_n_u_CUDA_EMULATION_STRATEGY_DEFAULT __pyx_string_tab[868]
#define __pyx_n_u_CUDA_EMULATION_STRATEGY_EAGER __pyx_string_tab[869]
#define __pyx_n_u_CUDA_EMULATION_STRATEGY_PERFORMA __pyx_string_tab[870]
#define __pyx_n_u_CUDA_IPC_HANDLE_SIZE __pyx_string_tab[871]
#define __pyx_n_u_CUDA_POINTER_ATTRIBUTE_P2P_TOKEN __pyx_string_tab[872]
#define __pyx_n_u_CUDA_R_16BF __pyx_string_tab[873]
#define __pyx_n_u_CUDA_R_16F __pyx_string_tab[874]
#define __pyx_n_u_CUDA_R_16I __pyx_string_tab[875]
#define __pyx_n_u_CUDA_R_16U __pyx_string_tab[876]
#define __pyx_n_u_CUDA_R_32F __pyx_string_tab[877]
#define __pyx_n_u_CUDA_R_32I __pyx_string_tab[878]
#define __pyx_n_u_CUDA_R_32U __pyx_string_tab[879]
#define __pyx_n_u_CUDA_R_4F_E2M1 __pyx_string_tab[880]
#define __pyx_n_u_CUDA_R_4I __pyx_string_tab[881]
#define __pyx_n_u_CUDA_R_4U __pyx_string_tab[882]
#define __pyx_n_u_CUDA_R_64F __pyx_string_tab[883]
#define __pyx_n_u_CUDA_R_64I __pyx_string_tab[884]
#define __pyx_n_u_CUDA_R_64U __pyx_string_tab[885]
#define __pyx_n_u_CUDA_R_6F_E2M3 __pyx_string_tab[886]
#define __pyx_n_u_CUDA_R_6F_E3M2 __pyx_string_tab[887]
#define __pyx_n_u_CUDA_R_8F_E4M3 __pyx_string_tab[888]
#define __pyx_n_u_CUDA_R_8F_E5M2 __pyx_string_tab[889]
#define __pyx_n_u_CUDA_R_8F_UE4M3 __pyx_string_tab[890]
#define __pyx_n_u_CUDA_R_8F_UE8M0 __pyx_string_tab[891]
#define __pyx_n_u_CUDA_R_8I __pyx_string_tab[892]
#define __pyx_n_u_CUDA_R_8U __pyx_string_tab[893]
#define __pyx_n_u_CUcontext __pyx_string_tab[894]
#define __pyx_n_u_CUdeviceptr __pyx_string_tab[895]
#define __pyx_n_u_CUmemFabricHandle __pyx_string_tab[896]
#define __pyx_n_u_CUmemoryPool __pyx_string_tab[897]
#define __pyx_n_u_CUuuid __pyx_string_tab[898]
#define __pyx_n_u_CUuuid_st __pyx_string_tab[899]
#define __pyx_n_u_CUuuid_st___reduce_cython __pyx_string_tab[900]
#define __pyx_n_u_CUuuid_st___setstate_cython __pyx_string_tab[901]
#define __pyx_n_u_CUuuid_st_getPtr __pyx_string_tab[902]
#define __pyx_n_u_ECCEnabled_2 __pyx_string_tab[903]
#define __pyx_n_u_EGLImageKHR_2 __pyx_string_tab[904]
#define __pyx_n_u_EGLImageKHR___reduce_cython __pyx_string_tab[905]
#define __pyx_n_u_EGLImageKHR___setstate_cython __pyx_string_tab[906]
#define __pyx_n_u_EGLImageKHR_getPtr __pyx_string_tab[907]
#define __pyx_n_u_EGLImageKHR_getter __pyx_string_tab[908]
#define __pyx_n_u_EGLStreamKHR_2 __pyx_string_tab[909]
#define __pyx_n_u_EGLStreamKHR___reduce_cython __pyx_string_tab[910]
#define __pyx_n_u_EGLStreamKHR___setstate_cython __pyx_string_tab[911]
#define __pyx_n_u_EGLStreamKHR_getPtr __pyx_string_tab[912]
#define __pyx_n_u_EGLStreamKHR_getter __pyx_string_tab[913]
#define __pyx_n_u_EGLSyncKHR_2 __pyx_string_tab[914]
#define __pyx_n_u_EGLSyncKHR___reduce_cython __pyx_string_tab[915]
#define __pyx_n_u_EGLSyncKHR___setstate_cython __pyx_string_tab[916]
#define __pyx_n_u_EGLSyncKHR_getPtr __pyx_string_tab[917]
#define __pyx_n_u_EGLSyncKHR_getter __pyx_string_tab[918]
#define __pyx_n_u_EGLint_2 __pyx_string_tab[919]
#define __pyx_n_u_EGLint___reduce_cython __pyx_string_tab[920]
#define __pyx_n_u_EGLint___setstate_cython __pyx_string_tab[921]
#define __pyx_n_u_EGLint_getPtr __pyx_string_tab[922]
#define __pyx_n_u_Enum __pyx_string_tab[923]
#define __pyx_n_u_Enum_2 __pyx_string_tab[924]
#define __pyx_n_u_GLenum_2 __pyx_string_tab[925]
#define __pyx_n_u_GLenum___reduce_cython __pyx_string_tab[926]
#define __pyx_n_u_GLenum___setstate_cython __pyx_string_tab[927]
#define __pyx_n_u_GLenum_getPtr __pyx_string_tab[928]
#define __pyx_n_u_GLuint_2 __pyx_string_tab[929]
#define __pyx_n_u_GLuint___reduce_cython __pyx_string_tab[930]
#define __pyx_n_u_GLuint___setstate_cython __pyx_string_tab[931]
#define __pyx_n_u_GLuint_getPtr __pyx_string_tab[932]
#define __pyx_n_u_HelperCUcoredumpSettings __pyx_string_tab[933]
#define __pyx_n_u_HelperCUcoredumpSettings___redu __pyx_string_tab[934]
#define __pyx_n_u_HelperCUcoredumpSettings___sets __pyx_string_tab[935]
#define __pyx_n_u_HelperCUcoredumpSettings_pyObj __pyx_string_tab[936]
#define __pyx_n_u_HelperCUcoredumpSettings_size __pyx_string_tab[937]
#define __pyx_n_u_HelperCUgraphMem_attribute __pyx_string_tab[938]
#define __pyx_n_u_HelperCUgraphMem_attribute___re __pyx_string_tab[939]
#define __pyx_n_u_HelperCUgraphMem_attribute___se __pyx_string_tab[940]
#define __pyx_n_u_HelperCUgraphMem_attribute_pyOb __pyx_string_tab[941]
#define __pyx_n_u_HelperCUjit_option __pyx_string_tab[942]
#define __pyx_n_u_HelperCUjit_option___reduce_cyt __pyx_string_tab[943]
#define __pyx_n_u_HelperCUjit_option___setstate_c __pyx_string_tab[944]
#define __pyx_n_u_HelperCUlibraryOption __pyx_string_tab[945]
#define __pyx_n_u_HelperCUlibraryOption___reduce __pyx_string_tab[946]
#define __pyx_n_u_HelperCUlibraryOption___setstat __pyx_string_tab[947]
#define __pyx_n_u_HelperCUmemAllocationHandleType __pyx_string_tab[948]
#define __pyx_n_u_HelperCUmemAllocationHandleType_2 __pyx_string_tab[949]
#define __pyx_n_u_HelperCUmemAllocationHandleType_3 __pyx_string_tab[950]
#define __pyx_n_u_HelperCUmemAllocationHandleType_4 __pyx_string_tab[951]
#define __pyx_n_u_HelperCUmemPool_attribute __pyx_string_tab[952]
#define __pyx_n_u_HelperCUmemPool_attribute___red __pyx_string_tab[953]
#define __pyx_n_u_HelperCUmemPool_attribute___set __pyx_string_tab[954]
#define __pyx_n_u_HelperCUmemPool_attribute_pyObj __pyx_string_tab[955]
#define __pyx_n_u_HelperCUmem_range_attribute __pyx_string_tab[956]
#define __pyx_n_u_HelperCUmem_range_attribute___r __pyx_string_tab[957]
#define __pyx_n_u_HelperCUmem_range_attribute___s __pyx_string_tab[958]
#define __pyx_n_u_HelperCUmem_range_attribute_pyO __pyx_string_tab[959]
#define __pyx_n_u_HelperCUpointer_attribute __pyx_string_tab[960]
#define __pyx_n_u_HelperCUpointer_attribute___red __pyx_string_tab[961]
#define __pyx_n_u_HelperCUpointer_attribute___set __pyx_string_tab[962]
#define __pyx_n_u_HelperCUpointer_attribute_pyObj __pyx_string_tab[963]
#define __pyx_n_u_HelperCudaJitOption __pyx_string_tab[964]
#define __pyx_n_u_HelperCudaJitOption___reduce_cy __pyx_string_tab[965]
#define __pyx_n_u_HelperCudaJitOption___setstate __pyx_string_tab[966]
#define __pyx_n_u_HelperCudaLibraryOption __pyx_string_tab[967]
#define __pyx_n_u_HelperCudaLibraryOption___reduc __pyx_string_tab[968]
#define __pyx_n_u_HelperCudaLibraryOption___setst __pyx_string_tab[969]
#define __pyx_n_u_HelperInputVoidPtr __pyx_string_tab[970]
#define __pyx_n_u_HelperInputVoidPtr___reduce_cyt __pyx_string_tab[971]
#define __pyx_n_u_HelperInputVoidPtr___setstate_c __pyx_string_tab[972]
#define __pyx_n_u_HelperKernelParams __pyx_string_tab[973]
#define __pyx_n_u_HelperKernelParams___reduce_cyt __pyx_string_tab[974]
#define __pyx_n_u_HelperKernelParams___setstate_c __pyx_string_tab[975]
#define __pyx_n_u_HelperKernelParams_lambda __pyx_string_tab[976]
#define __pyx_n_u_InputVoidPtrPtrHelper __pyx_string_tab[977]
#define __pyx_n_u_InputVoidPtrPtrHelper___reduce __pyx_string_tab[978]
#define __pyx_n_u_InputVoidPtrPtrHelper___setstat __pyx_string_tab[979]
#define __pyx_n_u_IntEnum __pyx_string_tab[980]
#define __pyx_n_u_MAJOR_VERSION __pyx_string_tab[981]
#define __pyx_n_u_MINOR_VERSION __pyx_string_tab[982]
#define __pyx_n_u_Optional __pyx_string_tab[983]
#define __pyx_n_u_PATCH_LEVEL __pyx_string_tab[984]
#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[985]
#define __pyx_n_u_Structure __pyx_string_tab[986]
#define __pyx_n_u_VdpDevice_2 __pyx_string_tab[987]
#define __pyx_n_u_VdpDevice___reduce_cython __pyx_string_tab[988]
#define __pyx_n_u_VdpDevice___setstate_cython __pyx_string_tab[989]
#define __pyx_n_u_VdpDevice_getPtr __pyx_string_tab[990]
#define __pyx_n_u_VdpGetProcAddress_2 __pyx_string_tab[991]
#define __pyx_n_u_VdpGetProcAddress___reduce_cytho __pyx_string_tab[992]
#define __pyx_n_u_VdpGetProcAddress___setstate_cyt __pyx_string_tab[993]
#define __pyx_n_u_VdpGetProcAddress_getPtr __pyx_string_tab[994]
#define __pyx_n_u_VdpOutputSurface_2 __pyx_string_tab[995]
#define __pyx_n_u_VdpOutputSurface___reduce_cython __pyx_string_tab[996]
#define __pyx_n_u_VdpOutputSurface___setstate_cyth __pyx_string_tab[997]
#define __pyx_n_u_VdpOutputSurface_getPtr __pyx_string_tab[998]
#define __pyx_n_u_VdpVideoSurface_2 __pyx_string_tab[999]
#define __pyx_n_u_VdpVideoSurface___reduce_cython __pyx_string_tab[1000]
#define __pyx_n_u_VdpVideoSurface___setstate_cytho __pyx_string_tab[1001]
#define __pyx_n_u_VdpVideoSurface_getPtr __pyx_string_tab[1002]
#define __pyx_n_u_accessDescCount_2 __pyx_string_tab[1003]
#define __pyx_n_u_accessDescs_2 __pyx_string_tab[1004]
#define __pyx_n_u_accessPolicyMaxWindowSize_2 __pyx_string_tab[1005]
#define __pyx_n_u_accessPolicyWindow_2 __pyx_string_tab[1006]
#define __pyx_n_u_add_cuda_native_handle_getter __pyx_string_tab[1007]
#define __pyx_n_u_add_native_handle_getters_local __pyx_string_tab[1008]
#define __pyx_n_u_add_native_handle_getters_local_10 __pyx_string_tab[1009]
#define __pyx_n_u_add_native_handle_getters_local_11 __pyx_string_tab[1010]
#define __pyx_n_u_add_native_handle_getters_local_12 __pyx_string_tab[1011]
#define __pyx_n_u_add_native_handle_getters_local_13 __pyx_string_tab[1012]
#define __pyx_n_u_add_native_handle_getters_local_14 __pyx_string_tab[1013]
#define __pyx_n_u_add_native_handle_getters_local_15 __pyx_string_tab[1014]
#define __pyx_n_u_add_native_handle_getters_local_16 __pyx_string_tab[1015]
#define __pyx_n_u_add_native_handle_getters_local_17 __pyx_string_tab[1016]
#define __pyx_n_u_add_native_handle_getters_local_18 __pyx_string_tab[1017]
#define __pyx_n_u_add_native_handle_getters_local_19 __pyx_string_tab[1018]
#define __pyx_n_u_add_native_handle_getters_local_2 __pyx_string_tab[1019]
#define __pyx_n_u_add_native_handle_getters_local_20 __pyx_string_tab[1020]
#define __pyx_n_u_add_native_handle_getters_local_21 __pyx_string_tab[1021]
#define __pyx_n_u_add_native_handle_getters_local_22 __pyx_string_tab[1022]
#define __pyx_n_u_add_native_handle_getters_local_23 __pyx_string_tab[1023]
#define __pyx_n_u_add_native_handle_getters_local_24 __pyx_string_tab[1024]
#define __pyx_n_u_add_native_handle_getters_local_25 __pyx_string_tab[1025]
#define __pyx_n_u_add_native_handle_getters_local_26 __pyx_string_tab[1026]
#define __pyx_n_u_add_native_handle_getters_local_3 __pyx_string_tab[1027]
#define __pyx_n_u_add_native_handle_getters_local_4 __pyx_string_tab[1028]
#define __pyx_n_u_add_native_handle_getters_local_5 __pyx_string_tab[1029]
#define __pyx_n_u_add_native_handle_getters_local_6 __pyx_string_tab[1030]
#define __pyx_n_u_add_native_handle_getters_local_7 __pyx_string_tab[1031]
#define __pyx_n_u_add_native_handle_getters_local_8 __pyx_string_tab[1032]
#define __pyx_n_u_add_native_handle_getters_local_9 __pyx_string_tab[1033]
#define __pyx_n_u_addressMode_2 __pyx_string_tab[1034]
#define __pyx_n_u_addressof __pyx_string_tab[1035]
#define __pyx_n_u_advice __pyx_string_tab[1036]
#define __pyx_n_u_alignment_2 __pyx_string_tab[1037]
#define __pyx_n_u_allocType_2 __pyx_string_tab[1038]
#define __pyx_n_u_alloc_2 __pyx_string_tab[1039]
#define __pyx_n_u_anon_struct0 __pyx_string_tab[1040]
#define __pyx_n_u_anon_struct0___reduce_cython __pyx_string_tab[1041]
#define __pyx_n_u_anon_struct0___setstate_cython __pyx_string_tab[1042]
#define __pyx_n_u_anon_struct0_getPtr __pyx_string_tab[1043]
#define __pyx_n_u_anon_struct1 __pyx_string_tab[1044]
#define __pyx_n_u_anon_struct10 __pyx_string_tab[1045]
#define __pyx_n_u_anon_struct10___reduce_cython __pyx_string_tab[1046]
#define __pyx_n_u_anon_struct10___setstate_cython __pyx_string_tab[1047]
#define __pyx_n_u_anon_struct10_getPtr __pyx_string_tab[1048]
#define __pyx_n_u_anon_struct11 __pyx_string_tab[1049]
#define __pyx_n_u_anon_struct11___reduce_cython __pyx_string_tab[1050]
#define __pyx_n_u_anon_struct11___setstate_cython __pyx_string_tab[1051]
#define __pyx_n_u_anon_struct11_getPtr __pyx_string_tab[1052]
#define __pyx_n_u_anon_struct12 __pyx_string_tab[1053]
#define __pyx_n_u_anon_struct12___reduce_cython __pyx_string_tab[1054]
#define __pyx_n_u_anon_struct12___setstate_cython __pyx_string_tab[1055]
#define __pyx_n_u_anon_struct12_getPtr __pyx_string_tab[1056]
#define __pyx_n_u_anon_struct13 __pyx_string_tab[1057]
#define __pyx_n_u_anon_struct13___reduce_cython __pyx_string_tab[1058]
#define __pyx_n_u_anon_struct13___setstate_cython __pyx_string_tab[1059]
#define __pyx_n_u_anon_struct13_getPtr __pyx_string_tab[1060]
#define __pyx_n_u_anon_struct14 __pyx_string_tab[1061]
#define __pyx_n_u_anon_struct14___reduce_cython __pyx_string_tab[1062]
#define __pyx_n_u_anon_struct14___setstate_cython __pyx_string_tab[1063]
#define __pyx_n_u_anon_struct14_getPtr __pyx_string_tab[1064]
#define __pyx_n_u_anon_struct15 __pyx_string_tab[1065]
#define __pyx_n_u_anon_struct15___reduce_cython __pyx_string_tab[1066]
#define __pyx_n_u_anon_struct15___setstate_cython __pyx_string_tab[1067]
#define __pyx_n_u_anon_struct15_getPtr __pyx_string_tab[1068]
#define __pyx_n_u_anon_struct16 __pyx_string_tab[1069]
#define __pyx_n_u_anon_struct16___reduce_cython __pyx_string_tab[1070]
#define __pyx_n_u_anon_struct16___setstate_cython __pyx_string_tab[1071]
#define __pyx_n_u_anon_struct16_getPtr __pyx_string_tab[1072]
#define __pyx_n_u_anon_struct17 __pyx_string_tab[1073]
#define __pyx_n_u_anon_struct17___reduce_cython __pyx_string_tab[1074]
#define __pyx_n_u_anon_struct17___setstate_cython __pyx_string_tab[1075]
#define __pyx_n_u_anon_struct17_getPtr __pyx_string_tab[1076]
#define __pyx_n_u_anon_struct18 __pyx_string_tab[1077]
#define __pyx_n_u_anon_struct18___reduce_cython __pyx_string_tab[1078]
#define __pyx_n_u_anon_struct18___setstate_cython __pyx_string_tab[1079]
#define __pyx_n_u_anon_struct18_getPtr __pyx_string_tab[1080]
#define __pyx_n_u_anon_struct19 __pyx_string_tab[1081]
#define __pyx_n_u_anon_struct19___reduce_cython __pyx_string_tab[1082]
#define __pyx_n_u_anon_struct19___setstate_cython __pyx_string_tab[1083]
#define __pyx_n_u_anon_struct19_getPtr __pyx_string_tab[1084]
#define __pyx_n_u_anon_struct1___reduce_cython __pyx_string_tab[1085]
#define __pyx_n_u_anon_struct1___setstate_cython __pyx_string_tab[1086]
#define __pyx_n_u_anon_struct1_getPtr __pyx_string_tab[1087]
#define __pyx_n_u_anon_struct2 __pyx_string_tab[1088]
#define __pyx_n_u_anon_struct20 __pyx_string_tab[1089]
#define __pyx_n_u_anon_struct20___reduce_cython __pyx_string_tab[1090]
#define __pyx_n_u_anon_struct20___setstate_cython __pyx_string_tab[1091]
#define __pyx_n_u_anon_struct20_getPtr __pyx_string_tab[1092]
#define __pyx_n_u_anon_struct21 __pyx_string_tab[1093]
#define __pyx_n_u_anon_struct21___reduce_cython __pyx_string_tab[1094]
#define __pyx_n_u_anon_struct21___setstate_cython __pyx_string_tab[1095]
#define __pyx_n_u_anon_struct21_getPtr __pyx_string_tab[1096]
#define __pyx_n_u_anon_struct22 __pyx_string_tab[1097]
#define __pyx_n_u_anon_struct22___reduce_cython __pyx_string_tab[1098]
#define __pyx_n_u_anon_struct22___setstate_cython __pyx_string_tab[1099]
#define __pyx_n_u_anon_struct22_getPtr __pyx_string_tab[1100]
#define __pyx_n_u_anon_struct2___reduce_cython __pyx_string_tab[1101]
#define __pyx_n_u_anon_struct2___setstate_cython __pyx_string_tab[1102]
#define __pyx_n_u_anon_struct2_getPtr __pyx_string_tab[1103]
#define __pyx_n_u_anon_struct3 __pyx_string_tab[1104]
#define __pyx_n_u_anon_struct3___reduce_cython __pyx_string_tab[1105]
#define __pyx_n_u_anon_struct3___setstate_cython __pyx_string_tab[1106]
#define __pyx_n_u_anon_struct3_getPtr __pyx_string_tab[1107]
#define __pyx_n_u_anon_struct4 __pyx_string_tab[1108]
#define __pyx_n_u_anon_struct4___reduce_cython __pyx_string_tab[1109]
#define __pyx_n_u_anon_struct4___setstate_cython __pyx_string_tab[1110]
#define __pyx_n_u_anon_struct4_getPtr __pyx_string_tab[1111]
#define __pyx_n_u_anon_struct5 __pyx_string_tab[1112]
#define __pyx_n_u_anon_struct5___reduce_cython __pyx_string_tab[1113]
#define __pyx_n_u_anon_struct5___setstate_cython __pyx_string_tab[1114]
#define __pyx_n_u_anon_struct5_getPtr __pyx_string_tab[1115]
#define __pyx_n_u_anon_struct6 __pyx_string_tab[1116]
#define __pyx_n_u_anon_struct6___reduce_cython __pyx_string_tab[1117]
#define __pyx_n_u_anon_struct6___setstate_cython __pyx_string_tab[1118]
#define __pyx_n_u_anon_struct6_getPtr __pyx_string_tab[1119]
#define __pyx_n_u_anon_struct7 __pyx_string_tab[1120]
#define __pyx_n_u_anon_struct7___reduce_cython __pyx_string_tab[1121]
#define __pyx_n_u_anon_struct7___setstate_cython __pyx_string_tab[1122]
#define __pyx_n_u_anon_struct7_getPtr __pyx_string_tab[1123]
#define __pyx_n_u_anon_struct8 __pyx_string_tab[1124]
#define __pyx_n_u_anon_struct8___reduce_cython __pyx_string_tab[1125]
#define __pyx_n_u_anon_struct8___setstate_cython __pyx_string_tab[1126]
#define __pyx_n_u_anon_struct8_getPtr __pyx_string_tab[1127]
#define __pyx_n_u_anon_struct9 __pyx_string_tab[1128]
#define __pyx_n_u_anon_struct9___reduce_cython __pyx_string_tab[1129]
#define __pyx_n_u_anon_struct9___setstate_cython __pyx_string_tab[1130]
#define __pyx_n_u_anon_struct9_getPtr __pyx_string_tab[1131]
#define __pyx_n_u_anon_union0 __pyx_string_tab[1132]
#define __pyx_n_u_anon_union0___reduce_cython __pyx_string_tab[1133]
#define __pyx_n_u_anon_union0___setstate_cython __pyx_string_tab[1134]
#define __pyx_n_u_anon_union0_getPtr __pyx_string_tab[1135]
#define __pyx_n_u_anon_union1 __pyx_string_tab[1136]
#define __pyx_n_u_anon_union10 __pyx_string_tab[1137]
#define __pyx_n_u_anon_union10___reduce_cython __pyx_string_tab[1138]
#define __pyx_n_u_anon_union10___setstate_cython __pyx_string_tab[1139]
#define __pyx_n_u_anon_union10_getPtr __pyx_string_tab[1140]
#define __pyx_n_u_anon_union1___reduce_cython __pyx_string_tab[1141]
#define __pyx_n_u_anon_union1___setstate_cython __pyx_string_tab[1142]
#define __pyx_n_u_anon_union1_getPtr __pyx_string_tab[1143]
#define __pyx_n_u_anon_union2 __pyx_string_tab[1144]
#define __pyx_n_u_anon_union2___reduce_cython __pyx_string_tab[1145]
#define __pyx_n_u_anon_union2___setstate_cython __pyx_string_tab[1146]
#define __pyx_n_u_anon_union2_getPtr __pyx_string_tab[1147]
#define __pyx_n_u_anon_union3 __pyx_string_tab[1148]
#define __pyx_n_u_anon_union3___reduce_cython __pyx_string_tab[1149]
#define __pyx_n_u_anon_union3___setstate_cython __pyx_string_tab[1150]
#define __pyx_n_u_anon_union3_getPtr __pyx_string_tab[1151]
#define __pyx_n_u_anon_union4 __pyx_string_tab[1152]
#define __pyx_n_u_anon_union4___reduce_cython __pyx_string_tab[1153]
#define __pyx_n_u_anon_union4___setstate_cython __pyx_string_tab[1154]
#define __pyx_n_u_anon_union4_getPtr __pyx_string_tab[1155]
#define __pyx_n_u_anon_union5 __pyx_string_tab[1156]
#define __pyx_n_u_anon_union5___reduce_cython __pyx_string_tab[1157]
#define __pyx_n_u_anon_union5___setstate_cython __pyx_string_tab[1158]
#define __pyx_n_u_anon_union5_getPtr __pyx_string_tab[1159]
#define __pyx_n_u_anon_union8 __pyx_string_tab[1160]
#define __pyx_n_u_anon_union8___reduce_cython __pyx_string_tab[1161]
#define __pyx_n_u_anon_union8___setstate_cython __pyx_string_tab[1162]
#define __pyx_n_u_anon_union8_getPtr __pyx_string_tab[1163]
#define __pyx_n_u_anon_union9 __pyx_string_tab[1164]
#define __pyx_n_u_anon_union9___reduce_cython __pyx_string_tab[1165]
#define __pyx_n_u_anon_union9___setstate_cython __pyx_string_tab[1166]
#define __pyx_n_u_anon_union9_getPtr __pyx_string_tab[1167]
#define __pyx_n_u_arrayIndex __pyx_string_tab[1168]
#define __pyx_n_u_array_2 __pyx_string_tab[1169]
#define __pyx_n_u_asyncEngineCount_2 __pyx_string_tab[1170]
#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[1171]
#define __pyx_n_u_attr __pyx_string_tab[1172]
#define __pyx_n_u_attribute __pyx_string_tab[1173]
#define __pyx_n_u_attributes __pyx_string_tab[1174]
#define __pyx_n_u_attrs __pyx_string_tab[1175]
#define __pyx_n_u_attrsIdxs __pyx_string_tab[1176]
#define __pyx_n_u_base_ptr_2 __pyx_string_tab[1177]
#define __pyx_n_u_binaryVersion_2 __pyx_string_tab[1178]
#define __pyx_n_u_bindings __pyx_string_tab[1179]
#define __pyx_n_u_blockDim_2 __pyx_string_tab[1180]
#define __pyx_n_u_blockSize __pyx_string_tab[1181]
#define __pyx_n_u_borderColor_2 __pyx_string_tab[1182]
#define __pyx_n_u_buffer __pyx_string_tab[1183]
#define __pyx_n_u_bufferDesc __pyx_string_tab[1184]
#define __pyx_n_u_bytesOverBudget_2 __pyx_string_tab[1185]
#define __pyx_n_u_bytes_2 __pyx_string_tab[1186]
#define __pyx_n_u_bytesize_2 __pyx_string_tab[1187]
#define __pyx_n_u_c_bool __pyx_string_tab[1188]
#define __pyx_n_u_c_byte __pyx_string_tab[1189]
#define __pyx_n_u_c_char __pyx_string_tab[1190]
#define __pyx_n_u_c_double __pyx_string_tab[1191]
#define __pyx_n_u_c_float __pyx_string_tab[1192]
#define __pyx_n_u_c_int __pyx_string_tab[1193]
#define __pyx_n_u_c_long __pyx_string_tab[1194]
#define __pyx_n_u_c_longlong __pyx_string_tab[1195]
#define __pyx_n_u_c_short __pyx_string_tab[1196]
#define __pyx_n_u_c_size_t __pyx_string_tab[1197]
#define __pyx_n_u_c_ubyte __pyx_string_tab[1198]
#define __pyx_n_u_c_uint __pyx_string_tab[1199]
#define __pyx_n_u_c_ulong __pyx_string_tab[1200]
#define __pyx_n_u_c_ulonglong __pyx_string_tab[1201]
#define __pyx_n_u_c_ushort __pyx_string_tab[1202]
#define __pyx_n_u_c_void_p __pyx_string_tab[1203]
#define __pyx_n_u_c_wchar __pyx_string_tab[1204]
#define __pyx_n_u_cacheConfig __pyx_string_tab[1205]
#define __pyx_n_u_cacheModeCA_2 __pyx_string_tab[1206]
#define __pyx_n_u_callback __pyx_string_tab[1207]
#define __pyx_n_u_callbackFunc __pyx_string_tab[1208]
#define __pyx_n_u_callback_out __pyx_string_tab[1209]
#define __pyx_n_u_canAccessPeer __pyx_string_tab[1210]
#define __pyx_n_u_canMapHostMemory_2 __pyx_string_tab[1211]
#define __pyx_n_u_canUseHostPointerForRegisteredMe_2 __pyx_string_tab[1212]
#define __pyx_n_u_captureStatus_out __pyx_string_tab[1213]
#define __pyx_n_u_cbData __pyx_string_tab[1214]
#define __pyx_n_u_channelDesc_2 __pyx_string_tab[1215]
#define __pyx_n_u_childGraph __pyx_string_tab[1216]
#define __pyx_n_u_ckernelParams __pyx_string_tab[1217]
#define __pyx_n_u_class_getitem __pyx_string_tab[1218]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[1219]
#define __pyx_n_u_clonedGraph __pyx_string_tab[1220]
#define __pyx_n_u_close __pyx_string_tab[1221]
#define __pyx_n_u_clusterDimMustBeSet_2 __pyx_string_tab[1222]
#define __pyx_n_u_clusterDim_2 __pyx_string_tab[1223]
#define __pyx_n_u_clusterLaunch_2 __pyx_string_tab[1224]
#define __pyx_n_u_clusterSchedulingPolicyPreferenc_2 __pyx_string_tab[1225]
#define __pyx_n_u_code __pyx_string_tab[1226]
#define __pyx_n_u_computePreemptionSupported_2 __pyx_string_tab[1227]
#define __pyx_n_u_concurrentKernels_2 __pyx_string_tab[1228]
#define __pyx_n_u_concurrentManagedAccess_2 __pyx_string_tab[1229]
#define __pyx_n_u_conditional_2 __pyx_string_tab[1230]
#define __pyx_n_u_config __pyx_string_tab[1231]
#define __pyx_n_u_conn __pyx_string_tab[1232]
#define __pyx_n_u_constSizeBytes_2 __pyx_string_tab[1233]
#define __pyx_n_u_cooperativeLaunch_2 __pyx_string_tab[1234]
#define __pyx_n_u_cooperative_2 __pyx_string_tab[1235]
#define __pyx_n_u_copyParams_2 __pyx_string_tab[1236]
#define __pyx_n_u_coscheduledSmCount_2 __pyx_string_tab[1237]
#define __pyx_n_u_count __pyx_string_tab[1238]
#define __pyx_n_u_cptr __pyx_string_tab[1239]
#define __pyx_n_u_ctxId __pyx_string_tab[1240]
#define __pyx_n_u_ctx_2 __pyx_string_tab[1241]
#define __pyx_n_u_ctypes __pyx_string_tab[1242]
#define __pyx_n_u_ctypes_2 __pyx_string_tab[1243]
#define __pyx_n_u_cuda __pyx_string_tab[1244]
#define __pyx_n_u_cudaAccessPolicyWindow __pyx_string_tab[1245]
#define __pyx_n_u_cudaAccessPolicyWindow___reduce __pyx_string_tab[1246]
#define __pyx_n_u_cudaAccessPolicyWindow___setstat __pyx_string_tab[1247]
#define __pyx_n_u_cudaAccessPolicyWindow_getPtr __pyx_string_tab[1248]
#define __pyx_n_u_cudaAccessProperty __pyx_string_tab[1249]
#define __pyx_n_u_cudaAccessPropertyNormal __pyx_string_tab[1250]
#define __pyx_n_u_cudaAccessPropertyPersisting __pyx_string_tab[1251]
#define __pyx_n_u_cudaAccessPropertyStreaming __pyx_string_tab[1252]
#define __pyx_n_u_cudaAddressModeBorder __pyx_string_tab[1253]
#define __pyx_n_u_cudaAddressModeClamp __pyx_string_tab[1254]
#define __pyx_n_u_cudaAddressModeMirror __pyx_string_tab[1255]
#define __pyx_n_u_cudaAddressModeWrap __pyx_string_tab[1256]
#define __pyx_n_u_cudaArrayColorAttachment __pyx_string_tab[1257]
#define __pyx_n_u_cudaArrayCubemap __pyx_string_tab[1258]
#define __pyx_n_u_cudaArrayDefault __pyx_string_tab[1259]
#define __pyx_n_u_cudaArrayDeferredMapping __pyx_string_tab[1260]
#define __pyx_n_u_cudaArrayGetInfo __pyx_string_tab[1261]
#define __pyx_n_u_cudaArrayGetMemoryRequirements __pyx_string_tab[1262]
#define __pyx_n_u_cudaArrayGetPlane __pyx_string_tab[1263]
#define __pyx_n_u_cudaArrayGetSparseProperties __pyx_string_tab[1264]
#define __pyx_n_u_cudaArrayLayered __pyx_string_tab[1265]
#define __pyx_n_u_cudaArrayMemoryRequirements __pyx_string_tab[1266]
#define __pyx_n_u_cudaArrayMemoryRequirements___re __pyx_string_tab[1267]
#define __pyx_n_u_cudaArrayMemoryRequirements___se __pyx_string_tab[1268]
#define __pyx_n_u_cudaArrayMemoryRequirements_getP __pyx_string_tab[1269]
#define __pyx_n_u_cudaArraySparse __pyx_string_tab[1270]
#define __pyx_n_u_cudaArraySparseProperties __pyx_string_tab[1271]
#define __pyx_n_u_cudaArraySparsePropertiesSingleM __pyx_string_tab[1272]
#define __pyx_n_u_cudaArraySparseProperties___redu __pyx_string_tab[1273]
#define __pyx_n_u_cudaArraySparseProperties___sets __pyx_string_tab[1274]
#define __pyx_n_u_cudaArraySparseProperties_getPtr __pyx_string_tab[1275]
#define __pyx_n_u_cudaArraySurfaceLoadStore __pyx_string_tab[1276]
#define __pyx_n_u_cudaArrayTextureGather __pyx_string_tab[1277]
#define __pyx_n_u_cudaArray_const_t_2 __pyx_string_tab[1278]
#define __pyx_n_u_cudaArray_const_t___reduce_cytho __pyx_string_tab[1279]
#define __pyx_n_u_cudaArray_const_t___setstate_cyt __pyx_string_tab[1280]
#define __pyx_n_u_cudaArray_const_t_getPtr __pyx_string_tab[1281]
#define __pyx_n_u_cudaArray_const_t_getter __pyx_string_tab[1282]
#define __pyx_n_u_cudaArray_t_2 __pyx_string_tab[1283]
#define __pyx_n_u_cudaArray_t___reduce_cython __pyx_string_tab[1284]
#define __pyx_n_u_cudaArray_t___setstate_cython __pyx_string_tab[1285]
#define __pyx_n_u_cudaArray_t_getPtr __pyx_string_tab[1286]
#define __pyx_n_u_cudaArray_t_getter __pyx_string_tab[1287]
#define __pyx_n_u_cudaAsyncCallbackHandle_t_2 __pyx_string_tab[1288]
#define __pyx_n_u_cudaAsyncCallbackHandle_t___redu __pyx_string_tab[1289]
#define __pyx_n_u_cudaAsyncCallbackHandle_t___sets __pyx_string_tab[1290]
#define __pyx_n_u_cudaAsyncCallbackHandle_t_getPtr __pyx_string_tab[1291]
#define __pyx_n_u_cudaAsyncCallbackHandle_t_getter __pyx_string_tab[1292]
#define __pyx_n_u_cudaAsyncCallback_2 __pyx_string_tab[1293]
#define __pyx_n_u_cudaAsyncCallback___reduce_cytho __pyx_string_tab[1294]
#define __pyx_n_u_cudaAsyncCallback___setstate_cyt __pyx_string_tab[1295]
#define __pyx_n_u_cudaAsyncCallback_getPtr __pyx_string_tab[1296]
#define __pyx_n_u_cudaAsyncNotificationInfo __pyx_string_tab[1297]
#define __pyx_n_u_cudaAsyncNotificationInfo___redu __pyx_string_tab[1298]
#define __pyx_n_u_cudaAsyncNotificationInfo___sets __pyx_string_tab[1299]
#define __pyx_n_u_cudaAsyncNotificationInfo_getPtr __pyx_string_tab[1300]
#define __pyx_n_u_cudaAsyncNotificationInfo_t __pyx_string_tab[1301]
#define __pyx_n_u_cudaAsyncNotificationType __pyx_string_tab[1302]
#define __pyx_n_u_cudaAsyncNotificationTypeOverBud __pyx_string_tab[1303]
#define __pyx_n_u_cudaAtomicOperation __pyx_string_tab[1304]
#define __pyx_n_u_cudaAtomicOperationAnd __pyx_string_tab[1305]
#define __pyx_n_u_cudaAtomicOperationCAS __pyx_string_tab[1306]
#define __pyx_n_u_cudaAtomicOperationCapability __pyx_string_tab[1307]
#define __pyx_n_u_cudaAtomicOperationExchange __pyx_string_tab[1308]
#define __pyx_n_u_cudaAtomicOperationFloatAdd __pyx_string_tab[1309]
#define __pyx_n_u_cudaAtomicOperationFloatMax __pyx_string_tab[1310]
#define __pyx_n_u_cudaAtomicOperationFloatMin __pyx_string_tab[1311]
#define __pyx_n_u_cudaAtomicOperationIntegerAdd __pyx_string_tab[1312]
#define __pyx_n_u_cudaAtomicOperationIntegerDecrem __pyx_string_tab[1313]
#define __pyx_n_u_cudaAtomicOperationIntegerIncrem __pyx_string_tab[1314]
#define __pyx_n_u_cudaAtomicOperationIntegerMax __pyx_string_tab[1315]
#define __pyx_n_u_cudaAtomicOperationIntegerMin __pyx_string_tab[1316]
#define __pyx_n_u_cudaAtomicOperationOr __pyx_string_tab[1317]
#define __pyx_n_u_cudaAtomicOperationXOR __pyx_string_tab[1318]
#define __pyx_n_u_cudaBindingsRuntimeGlobal __pyx_string_tab[1319]
#define __pyx_n_u_cudaBindingsRuntimeGlobal___redu __pyx_string_tab[1320]
#define __pyx_n_u_cudaBindingsRuntimeGlobal___sets __pyx_string_tab[1321]
#define __pyx_n_u_cudaBoundaryModeClamp __pyx_string_tab[1322]
#define __pyx_n_u_cudaBoundaryModeTrap __pyx_string_tab[1323]
#define __pyx_n_u_cudaBoundaryModeZero __pyx_string_tab[1324]
#define __pyx_n_u_cudaCGScope __pyx_string_tab[1325]
#define __pyx_n_u_cudaCGScopeGrid __pyx_string_tab[1326]
#define __pyx_n_u_cudaCGScopeInvalid __pyx_string_tab[1327]
#define __pyx_n_u_cudaCGScopeReserved __pyx_string_tab[1328]
#define __pyx_n_u_cudaChannelFormatDesc __pyx_string_tab[1329]
#define __pyx_n_u_cudaChannelFormatDesc___reduce_c __pyx_string_tab[1330]
#define __pyx_n_u_cudaChannelFormatDesc___setstate __pyx_string_tab[1331]
#define __pyx_n_u_cudaChannelFormatDesc_getPtr __pyx_string_tab[1332]
#define __pyx_n_u_cudaChannelFormatKind __pyx_string_tab[1333]
#define __pyx_n_u_cudaChannelFormatKindFloat __pyx_string_tab[1334]
#define __pyx_n_u_cudaChannelFormatKindNV12 __pyx_string_tab[1335]
#define __pyx_n_u_cudaChannelFormatKindNone __pyx_string_tab[1336]
#define __pyx_n_u_cudaChannelFormatKindSigned __pyx_string_tab[1337]
#define __pyx_n_u_cudaChannelFormatKindSignedBlock __pyx_string_tab[1338]
#define __pyx_n_u_cudaChannelFormatKindSignedBlock_2 __pyx_string_tab[1339]
#define __pyx_n_u_cudaChannelFormatKindSignedBlock_3 __pyx_string_tab[1340]
#define __pyx_n_u_cudaChannelFormatKindSignedNorma __pyx_string_tab[1341]
#define __pyx_n_u_cudaChannelFormatKindSignedNorma_2 __pyx_string_tab[1342]
#define __pyx_n_u_cudaChannelFormatKindSignedNorma_3 __pyx_string_tab[1343]
#define __pyx_n_u_cudaChannelFormatKindSignedNorma_4 __pyx_string_tab[1344]
#define __pyx_n_u_cudaChannelFormatKindSignedNorma_5 __pyx_string_tab[1345]
#define __pyx_n_u_cudaChannelFormatKindSignedNorma_6 __pyx_string_tab[1346]
#define __pyx_n_u_cudaChannelFormatKindUnsigned __pyx_string_tab[1347]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo __pyx_string_tab[1348]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_10 __pyx_string_tab[1349]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_11 __pyx_string_tab[1350]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_2 __pyx_string_tab[1351]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_3 __pyx_string_tab[1352]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_4 __pyx_string_tab[1353]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_5 __pyx_string_tab[1354]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_6 __pyx_string_tab[1355]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_7 __pyx_string_tab[1356]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_8 __pyx_string_tab[1357]
#define __pyx_n_u_cudaChannelFormatKindUnsignedBlo_9 __pyx_string_tab[1358]
#define __pyx_n_u_cudaChannelFormatKindUnsignedNor __pyx_string_tab[1359]
#define __pyx_n_u_cudaChannelFormatKindUnsignedNor_2 __pyx_string_tab[1360]
#define __pyx_n_u_cudaChannelFormatKindUnsignedNor_3 __pyx_string_tab[1361]
#define __pyx_n_u_cudaChannelFormatKindUnsignedNor_4 __pyx_string_tab[1362]
#define __pyx_n_u_cudaChannelFormatKindUnsignedNor_5 __pyx_string_tab[1363]
#define __pyx_n_u_cudaChannelFormatKindUnsignedNor_6 __pyx_string_tab[1364]
#define __pyx_n_u_cudaChannelFormatKindUnsignedNor_7 __pyx_string_tab[1365]
#define __pyx_n_u_cudaChildGraphNodeParams __pyx_string_tab[1366]
#define __pyx_n_u_cudaChildGraphNodeParams___reduc __pyx_string_tab[1367]
#define __pyx_n_u_cudaChildGraphNodeParams___setst __pyx_string_tab[1368]
#define __pyx_n_u_cudaChildGraphNodeParams_getPtr __pyx_string_tab[1369]
#define __pyx_n_u_cudaChooseDevice __pyx_string_tab[1370]
#define __pyx_n_u_cudaClusterSchedulingPolicy __pyx_string_tab[1371]
#define __pyx_n_u_cudaClusterSchedulingPolicyDefau __pyx_string_tab[1372]
#define __pyx_n_u_cudaClusterSchedulingPolicyLoadB __pyx_string_tab[1373]
#define __pyx_n_u_cudaClusterSchedulingPolicySprea __pyx_string_tab[1374]
#define __pyx_n_u_cudaComputeMode __pyx_string_tab[1375]
#define __pyx_n_u_cudaComputeModeDefault __pyx_string_tab[1376]
#define __pyx_n_u_cudaComputeModeExclusive __pyx_string_tab[1377]
#define __pyx_n_u_cudaComputeModeExclusiveProcess __pyx_string_tab[1378]
#define __pyx_n_u_cudaComputeModeProhibited __pyx_string_tab[1379]
#define __pyx_n_u_cudaConditionalNodeParams __pyx_string_tab[1380]
#define __pyx_n_u_cudaConditionalNodeParams___redu __pyx_string_tab[1381]
#define __pyx_n_u_cudaConditionalNodeParams___sets __pyx_string_tab[1382]
#define __pyx_n_u_cudaConditionalNodeParams_getPtr __pyx_string_tab[1383]
#define __pyx_n_u_cudaCpuDeviceId __pyx_string_tab[1384]
#define __pyx_n_u_cudaCreateChannelDesc __pyx_string_tab[1385]
#define __pyx_n_u_cudaCreateSurfaceObject __pyx_string_tab[1386]
#define __pyx_n_u_cudaCreateTextureObject __pyx_string_tab[1387]
#define __pyx_n_u_cudaCtxResetPersistingL2Cache __pyx_string_tab[1388]
#define __pyx_n_u_cudaDataType __pyx_string_tab[1389]
#define __pyx_n_u_cudaDestroyExternalMemory __pyx_string_tab[1390]
#define __pyx_n_u_cudaDestroyExternalSemaphore __pyx_string_tab[1391]
#define __pyx_n_u_cudaDestroySurfaceObject __pyx_string_tab[1392]
#define __pyx_n_u_cudaDestroyTextureObject __pyx_string_tab[1393]
#define __pyx_n_u_cudaDevAttrAsyncEngineCount __pyx_string_tab[1394]
#define __pyx_n_u_cudaDevAttrCanFlushRemoteWrites __pyx_string_tab[1395]
#define __pyx_n_u_cudaDevAttrCanMapHostMemory __pyx_string_tab[1396]
#define __pyx_n_u_cudaDevAttrCanUseHostPointerForR __pyx_string_tab[1397]
#define __pyx_n_u_cudaDevAttrClockRate __pyx_string_tab[1398]
#define __pyx_n_u_cudaDevAttrClusterLaunch __pyx_string_tab[1399]
#define __pyx_n_u_cudaDevAttrComputeCapabilityMajo __pyx_string_tab[1400]
#define __pyx_n_u_cudaDevAttrComputeCapabilityMino __pyx_string_tab[1401]
#define __pyx_n_u_cudaDevAttrComputeMode __pyx_string_tab[1402]
#define __pyx_n_u_cudaDevAttrComputePreemptionSupp __pyx_string_tab[1403]
#define __pyx_n_u_cudaDevAttrConcurrentKernels __pyx_string_tab[1404]
#define __pyx_n_u_cudaDevAttrConcurrentManagedAcce __pyx_string_tab[1405]
#define __pyx_n_u_cudaDevAttrCooperativeLaunch __pyx_string_tab[1406]
#define __pyx_n_u_cudaDevAttrD3D12CigSupported __pyx_string_tab[1407]
#define __pyx_n_u_cudaDevAttrDeferredMappingCudaAr __pyx_string_tab[1408]
#define __pyx_n_u_cudaDevAttrDirectManagedMemAcces __pyx_string_tab[1409]
#define __pyx_n_u_cudaDevAttrEccEnabled __pyx_string_tab[1410]
#define __pyx_n_u_cudaDevAttrGPUDirectRDMAFlushWri __pyx_string_tab[1411]
#define __pyx_n_u_cudaDevAttrGPUDirectRDMASupporte __pyx_string_tab[1412]
#define __pyx_n_u_cudaDevAttrGPUDirectRDMAWritesOr __pyx_string_tab[1413]
#define __pyx_n_u_cudaDevAttrGlobalL1CacheSupporte __pyx_string_tab[1414]
#define __pyx_n_u_cudaDevAttrGlobalMemoryBusWidth __pyx_string_tab[1415]
#define __pyx_n_u_cudaDevAttrGpuOverlap __pyx_string_tab[1416]
#define __pyx_n_u_cudaDevAttrGpuPciDeviceId __pyx_string_tab[1417]
#define __pyx_n_u_cudaDevAttrGpuPciSubsystemId __pyx_string_tab[1418]
#define __pyx_n_u_cudaDevAttrHostMemoryPoolsSuppor __pyx_string_tab[1419]
#define __pyx_n_u_cudaDevAttrHostNativeAtomicSuppo __pyx_string_tab[1420]
#define __pyx_n_u_cudaDevAttrHostNumaId __pyx_string_tab[1421]
#define __pyx_n_u_cudaDevAttrHostNumaMemoryPoolsSu __pyx_string_tab[1422]
#define __pyx_n_u_cudaDevAttrHostNumaMultinodeIpcS __pyx_string_tab[1423]
#define __pyx_n_u_cudaDevAttrHostRegisterReadOnlyS __pyx_string_tab[1424]
#define __pyx_n_u_cudaDevAttrHostRegisterSupported __pyx_string_tab[1425]
#define __pyx_n_u_cudaDevAttrIntegrated __pyx_string_tab[1426]
#define __pyx_n_u_cudaDevAttrIpcEventSupport __pyx_string_tab[1427]
#define __pyx_n_u_cudaDevAttrIsMultiGpuBoard __pyx_string_tab[1428]
#define __pyx_n_u_cudaDevAttrKernelExecTimeout __pyx_string_tab[1429]
#define __pyx_n_u_cudaDevAttrL2CacheSize __pyx_string_tab[1430]
#define __pyx_n_u_cudaDevAttrLocalL1CacheSupported __pyx_string_tab[1431]
#define __pyx_n_u_cudaDevAttrManagedMemory __pyx_string_tab[1432]
#define __pyx_n_u_cudaDevAttrMax __pyx_string_tab[1433]
#define __pyx_n_u_cudaDevAttrMaxAccessPolicyWindow __pyx_string_tab[1434]
#define __pyx_n_u_cudaDevAttrMaxBlockDimX __pyx_string_tab[1435]
#define __pyx_n_u_cudaDevAttrMaxBlockDimY __pyx_string_tab[1436]
#define __pyx_n_u_cudaDevAttrMaxBlockDimZ __pyx_string_tab[1437]
#define __pyx_n_u_cudaDevAttrMaxBlocksPerMultiproc __pyx_string_tab[1438]
#define __pyx_n_u_cudaDevAttrMaxGridDimX __pyx_string_tab[1439]
#define __pyx_n_u_cudaDevAttrMaxGridDimY __pyx_string_tab[1440]
#define __pyx_n_u_cudaDevAttrMaxGridDimZ __pyx_string_tab[1441]
#define __pyx_n_u_cudaDevAttrMaxPersistingL2CacheS __pyx_string_tab[1442]
#define __pyx_n_u_cudaDevAttrMaxPitch __pyx_string_tab[1443]
#define __pyx_n_u_cudaDevAttrMaxRegistersPerBlock __pyx_string_tab[1444]
#define __pyx_n_u_cudaDevAttrMaxRegistersPerMultip __pyx_string_tab[1445]
#define __pyx_n_u_cudaDevAttrMaxSharedMemoryPerBlo __pyx_string_tab[1446]
#define __pyx_n_u_cudaDevAttrMaxSharedMemoryPerBlo_2 __pyx_string_tab[1447]
#define __pyx_n_u_cudaDevAttrMaxSharedMemoryPerMul __pyx_string_tab[1448]
#define __pyx_n_u_cudaDevAttrMaxSurface1DLayeredLa __pyx_string_tab[1449]
#define __pyx_n_u_cudaDevAttrMaxSurface1DLayeredWi __pyx_string_tab[1450]
#define __pyx_n_u_cudaDevAttrMaxSurface1DWidth __pyx_string_tab[1451]
#define __pyx_n_u_cudaDevAttrMaxSurface2DHeight __pyx_string_tab[1452]
#define __pyx_n_u_cudaDevAttrMaxSurface2DLayeredHe __pyx_string_tab[1453]
#define __pyx_n_u_cudaDevAttrMaxSurface2DLayeredLa __pyx_string_tab[1454]
#define __pyx_n_u_cudaDevAttrMaxSurface2DLayeredWi __pyx_string_tab[1455]
#define __pyx_n_u_cudaDevAttrMaxSurface2DWidth __pyx_string_tab[1456]
#define __pyx_n_u_cudaDevAttrMaxSurface3DDepth __pyx_string_tab[1457]
#define __pyx_n_u_cudaDevAttrMaxSurface3DHeight __pyx_string_tab[1458]
#define __pyx_n_u_cudaDevAttrMaxSurface3DWidth __pyx_string_tab[1459]
#define __pyx_n_u_cudaDevAttrMaxSurfaceCubemapLaye __pyx_string_tab[1460]
#define __pyx_n_u_cudaDevAttrMaxSurfaceCubemapLaye_2 __pyx_string_tab[1461]
#define __pyx_n_u_cudaDevAttrMaxSurfaceCubemapWidt __pyx_string_tab[1462]
#define __pyx_n_u_cudaDevAttrMaxTexture1DLayeredLa __pyx_string_tab[1463]
#define __pyx_n_u_cudaDevAttrMaxTexture1DLayeredWi __pyx_string_tab[1464]
#define __pyx_n_u_cudaDevAttrMaxTexture1DLinearWid __pyx_string_tab[1465]
#define __pyx_n_u_cudaDevAttrMaxTexture1DMipmapped __pyx_string_tab[1466]
#define __pyx_n_u_cudaDevAttrMaxTexture1DWidth __pyx_string_tab[1467]
#define __pyx_n_u_cudaDevAttrMaxTexture2DGatherHei __pyx_string_tab[1468]
#define __pyx_n_u_cudaDevAttrMaxTexture2DGatherWid __pyx_string_tab[1469]
#define __pyx_n_u_cudaDevAttrMaxTexture2DHeight __pyx_string_tab[1470]
#define __pyx_n_u_cudaDevAttrMaxTexture2DLayeredHe __pyx_string_tab[1471]
#define __pyx_n_u_cudaDevAttrMaxTexture2DLayeredLa __pyx_string_tab[1472]
#define __pyx_n_u_cudaDevAttrMaxTexture2DLayeredWi __pyx_string_tab[1473]
#define __pyx_n_u_cudaDevAttrMaxTexture2DLinearHei __pyx_string_tab[1474]
#define __pyx_n_u_cudaDevAttrMaxTexture2DLinearPit __pyx_string_tab[1475]
#define __pyx_n_u_cudaDevAttrMaxTexture2DLinearWid __pyx_string_tab[1476]
#define __pyx_n_u_cudaDevAttrMaxTexture2DMipmapped __pyx_string_tab[1477]
#define __pyx_n_u_cudaDevAttrMaxTexture2DMipmapped_2 __pyx_string_tab[1478]
#define __pyx_n_u_cudaDevAttrMaxTexture2DWidth __pyx_string_tab[1479]
#define __pyx_n_u_cudaDevAttrMaxTexture3DDepth __pyx_string_tab[1480]
#define __pyx_n_u_cudaDevAttrMaxTexture3DDepthAlt __pyx_string_tab[1481]
#define __pyx_n_u_cudaDevAttrMaxTexture3DHeight __pyx_string_tab[1482]
#define __pyx_n_u_cudaDevAttrMaxTexture3DHeightAlt __pyx_string_tab[1483]
#define __pyx_n_u_cudaDevAttrMaxTexture3DWidth __pyx_string_tab[1484]
#define __pyx_n_u_cudaDevAttrMaxTexture3DWidthAlt __pyx_string_tab[1485]
#define __pyx_n_u_cudaDevAttrMaxTextureCubemapLaye __pyx_string_tab[1486]
#define __pyx_n_u_cudaDevAttrMaxTextureCubemapLaye_2 __pyx_string_tab[1487]
#define __pyx_n_u_cudaDevAttrMaxTextureCubemapWidt __pyx_string_tab[1488]
#define __pyx_n_u_cudaDevAttrMaxThreadsPerBlock __pyx_string_tab[1489]
#define __pyx_n_u_cudaDevAttrMaxThreadsPerMultiPro __pyx_string_tab[1490]
#define __pyx_n_u_cudaDevAttrMemSyncDomainCount __pyx_string_tab[1491]
#define __pyx_n_u_cudaDevAttrMemoryClockRate __pyx_string_tab[1492]
#define __pyx_n_u_cudaDevAttrMemoryPoolSupportedHa __pyx_string_tab[1493]
#define __pyx_n_u_cudaDevAttrMemoryPoolsSupported __pyx_string_tab[1494]
#define __pyx_n_u_cudaDevAttrMpsEnabled __pyx_string_tab[1495]
#define __pyx_n_u_cudaDevAttrMultiGpuBoardGroupID __pyx_string_tab[1496]
#define __pyx_n_u_cudaDevAttrMultiProcessorCount __pyx_string_tab[1497]
#define __pyx_n_u_cudaDevAttrNumaConfig __pyx_string_tab[1498]
#define __pyx_n_u_cudaDevAttrNumaId __pyx_string_tab[1499]
#define __pyx_n_u_cudaDevAttrOnlyPartialHostNative __pyx_string_tab[1500]
#define __pyx_n_u_cudaDevAttrPageableMemoryAccess __pyx_string_tab[1501]
#define __pyx_n_u_cudaDevAttrPageableMemoryAccessU __pyx_string_tab[1502]
#define __pyx_n_u_cudaDevAttrPciBusId __pyx_string_tab[1503]
#define __pyx_n_u_cudaDevAttrPciDeviceId __pyx_string_tab[1504]
#define __pyx_n_u_cudaDevAttrPciDomainId __pyx_string_tab[1505]
#define __pyx_n_u_cudaDevAttrReserved122 __pyx_string_tab[1506]
#define __pyx_n_u_cudaDevAttrReserved123 __pyx_string_tab[1507]
#define __pyx_n_u_cudaDevAttrReserved124 __pyx_string_tab[1508]
#define __pyx_n_u_cudaDevAttrReserved127 __pyx_string_tab[1509]
#define __pyx_n_u_cudaDevAttrReserved128 __pyx_string_tab[1510]
#define __pyx_n_u_cudaDevAttrReserved129 __pyx_string_tab[1511]
#define __pyx_n_u_cudaDevAttrReserved132 __pyx_string_tab[1512]
#define __pyx_n_u_cudaDevAttrReserved141 __pyx_string_tab[1513]
#define __pyx_n_u_cudaDevAttrReserved145 __pyx_string_tab[1514]
#define __pyx_n_u_cudaDevAttrReserved92 __pyx_string_tab[1515]
#define __pyx_n_u_cudaDevAttrReserved93 __pyx_string_tab[1516]
#define __pyx_n_u_cudaDevAttrReserved94 __pyx_string_tab[1517]
#define __pyx_n_u_cudaDevAttrReserved96 __pyx_string_tab[1518]
#define __pyx_n_u_cudaDevAttrReservedSharedMemoryP __pyx_string_tab[1519]
#define __pyx_n_u_cudaDevAttrSingleToDoublePrecisi __pyx_string_tab[1520]
#define __pyx_n_u_cudaDevAttrSparseCudaArraySuppor __pyx_string_tab[1521]
#define __pyx_n_u_cudaDevAttrStreamPrioritiesSuppo __pyx_string_tab[1522]
#define __pyx_n_u_cudaDevAttrSurfaceAlignment __pyx_string_tab[1523]
#define __pyx_n_u_cudaDevAttrTccDriver __pyx_string_tab[1524]
#define __pyx_n_u_cudaDevAttrTextureAlignment __pyx_string_tab[1525]
#define __pyx_n_u_cudaDevAttrTexturePitchAlignment __pyx_string_tab[1526]
#define __pyx_n_u_cudaDevAttrTimelineSemaphoreInte __pyx_string_tab[1527]
#define __pyx_n_u_cudaDevAttrTotalConstantMemory __pyx_string_tab[1528]
#define __pyx_n_u_cudaDevAttrUnifiedAddressing __pyx_string_tab[1529]
#define __pyx_n_u_cudaDevAttrVulkanCigSupported __pyx_string_tab[1530]
#define __pyx_n_u_cudaDevAttrWarpSize __pyx_string_tab[1531]
#define __pyx_n_u_cudaDevP2PAttrAccessSupported __pyx_string_tab[1532]
#define __pyx_n_u_cudaDevP2PAttrCudaArrayAccessSup __pyx_string_tab[1533]
#define __pyx_n_u_cudaDevP2PAttrNativeAtomicSuppor __pyx_string_tab[1534]
#define __pyx_n_u_cudaDevP2PAttrOnlyPartialNativeA __pyx_string_tab[1535]
#define __pyx_n_u_cudaDevP2PAttrPerformanceRank __pyx_string_tab[1536]
#define __pyx_n_u_cudaDevResource __pyx_string_tab[1537]
#define __pyx_n_u_cudaDevResourceDesc_t_2 __pyx_string_tab[1538]
#define __pyx_n_u_cudaDevResourceDesc_t___reduce_c __pyx_string_tab[1539]
#define __pyx_n_u_cudaDevResourceDesc_t___setstate __pyx_string_tab[1540]
#define __pyx_n_u_cudaDevResourceDesc_t_getPtr __pyx_string_tab[1541]
#define __pyx_n_u_cudaDevResourceDesc_t_getter __pyx_string_tab[1542]
#define __pyx_n_u_cudaDevResourceGenerateDesc __pyx_string_tab[1543]
#define __pyx_n_u_cudaDevResourceGenerateDesc_loca __pyx_string_tab[1544]
#define __pyx_n_u_cudaDevResourceType __pyx_string_tab[1545]
#define __pyx_n_u_cudaDevResourceTypeInvalid __pyx_string_tab[1546]
#define __pyx_n_u_cudaDevResourceTypeSm __pyx_string_tab[1547]
#define __pyx_n_u_cudaDevResourceTypeWorkqueue __pyx_string_tab[1548]
#define __pyx_n_u_cudaDevResourceTypeWorkqueueConf __pyx_string_tab[1549]
#define __pyx_n_u_cudaDevResource_st __pyx_string_tab[1550]
#define __pyx_n_u_cudaDevResource_st___reduce_cyth __pyx_string_tab[1551]
#define __pyx_n_u_cudaDevResource_st___setstate_cy __pyx_string_tab[1552]
#define __pyx_n_u_cudaDevResource_st_getPtr __pyx_string_tab[1553]
#define __pyx_n_u_cudaDevSmResource __pyx_string_tab[1554]
#define __pyx_n_u_cudaDevSmResourceGroupBackfill __pyx_string_tab[1555]
#define __pyx_n_u_cudaDevSmResourceGroupDefault __pyx_string_tab[1556]
#define __pyx_n_u_cudaDevSmResourceGroupParams __pyx_string_tab[1557]
#define __pyx_n_u_cudaDevSmResourceGroupParams_st __pyx_string_tab[1558]
#define __pyx_n_u_cudaDevSmResourceGroupParams_st_2 __pyx_string_tab[1559]
#define __pyx_n_u_cudaDevSmResourceGroupParams_st_3 __pyx_string_tab[1560]
#define __pyx_n_u_cudaDevSmResourceGroupParams_st_4 __pyx_string_tab[1561]
#define __pyx_n_u_cudaDevSmResourceGroup_flags __pyx_string_tab[1562]
#define __pyx_n_u_cudaDevSmResourceSplit __pyx_string_tab[1563]
#define __pyx_n_u_cudaDevSmResourceSplitByCount __pyx_string_tab[1564]
#define __pyx_n_u_cudaDevSmResourceSplitByCount_fl __pyx_string_tab[1565]
#define __pyx_n_u_cudaDevSmResourceSplitIgnoreSmCo __pyx_string_tab[1566]
#define __pyx_n_u_cudaDevSmResourceSplitMaxPotenti __pyx_string_tab[1567]
#define __pyx_n_u_cudaDevSmResource___reduce_cytho __pyx_string_tab[1568]
#define __pyx_n_u_cudaDevSmResource___setstate_cyt __pyx_string_tab[1569]
#define __pyx_n_u_cudaDevSmResource_getPtr __pyx_string_tab[1570]
#define __pyx_n_u_cudaDevWorkqueueConfigResource __pyx_string_tab[1571]
#define __pyx_n_u_cudaDevWorkqueueConfigResource_2 __pyx_string_tab[1572]
#define __pyx_n_u_cudaDevWorkqueueConfigResource_3 __pyx_string_tab[1573]
#define __pyx_n_u_cudaDevWorkqueueConfigResource_g __pyx_string_tab[1574]
#define __pyx_n_u_cudaDevWorkqueueConfigScope __pyx_string_tab[1575]
#define __pyx_n_u_cudaDevWorkqueueConfigScopeDevic __pyx_string_tab[1576]
#define __pyx_n_u_cudaDevWorkqueueConfigScopeGreen __pyx_string_tab[1577]
#define __pyx_n_u_cudaDevWorkqueueResource __pyx_string_tab[1578]
#define __pyx_n_u_cudaDevWorkqueueResource___reduc __pyx_string_tab[1579]
#define __pyx_n_u_cudaDevWorkqueueResource___setst __pyx_string_tab[1580]
#define __pyx_n_u_cudaDevWorkqueueResource_getPtr __pyx_string_tab[1581]
#define __pyx_n_u_cudaDeviceAttr __pyx_string_tab[1582]
#define __pyx_n_u_cudaDeviceBlockingSync __pyx_string_tab[1583]
#define __pyx_n_u_cudaDeviceCanAccessPeer __pyx_string_tab[1584]
#define __pyx_n_u_cudaDeviceCount __pyx_string_tab[1585]
#define __pyx_n_u_cudaDeviceDisablePeerAccess __pyx_string_tab[1586]
#define __pyx_n_u_cudaDeviceEnablePeerAccess __pyx_string_tab[1587]
#define __pyx_n_u_cudaDeviceFlushGPUDirectRDMAWrit __pyx_string_tab[1588]
#define __pyx_n_u_cudaDeviceGetAttribute __pyx_string_tab[1589]
#define __pyx_n_u_cudaDeviceGetByPCIBusId __pyx_string_tab[1590]
#define __pyx_n_u_cudaDeviceGetCacheConfig __pyx_string_tab[1591]
#define __pyx_n_u_cudaDeviceGetDefaultMemPool __pyx_string_tab[1592]
#define __pyx_n_u_cudaDeviceGetDevResource __pyx_string_tab[1593]
#define __pyx_n_u_cudaDeviceGetExecutionCtx __pyx_string_tab[1594]
#define __pyx_n_u_cudaDeviceGetGraphMemAttribute __pyx_string_tab[1595]
#define __pyx_n_u_cudaDeviceGetHostAtomicCapabilit __pyx_string_tab[1596]
#define __pyx_n_u_cudaDeviceGetHostAtomicCapabilit_2 __pyx_string_tab[1597]
#define __pyx_n_u_cudaDeviceGetLimit __pyx_string_tab[1598]
#define __pyx_n_u_cudaDeviceGetMemPool __pyx_string_tab[1599]
#define __pyx_n_u_cudaDeviceGetNvSciSyncAttributes __pyx_string_tab[1600]
#define __pyx_n_u_cudaDeviceGetP2PAtomicCapabiliti __pyx_string_tab[1601]
#define __pyx_n_u_cudaDeviceGetP2PAtomicCapabiliti_2 __pyx_string_tab[1602]
#define __pyx_n_u_cudaDeviceGetP2PAttribute __pyx_string_tab[1603]
#define __pyx_n_u_cudaDeviceGetPCIBusId __pyx_string_tab[1604]
#define __pyx_n_u_cudaDeviceGetSharedMemConfig __pyx_string_tab[1605]
#define __pyx_n_u_cudaDeviceGetStreamPriorityRange __pyx_string_tab[1606]
#define __pyx_n_u_cudaDeviceGetTexture1DLinearMaxW __pyx_string_tab[1607]
#define __pyx_n_u_cudaDeviceGraphMemTrim __pyx_string_tab[1608]
#define __pyx_n_u_cudaDeviceLmemResizeToMax __pyx_string_tab[1609]
#define __pyx_n_u_cudaDeviceMapHost __pyx_string_tab[1610]
#define __pyx_n_u_cudaDeviceMask __pyx_string_tab[1611]
#define __pyx_n_u_cudaDeviceNumaConfig __pyx_string_tab[1612]
#define __pyx_n_u_cudaDeviceNumaConfigNone __pyx_string_tab[1613]
#define __pyx_n_u_cudaDeviceNumaConfigNumaNode __pyx_string_tab[1614]
#define __pyx_n_u_cudaDeviceP2PAttr __pyx_string_tab[1615]
#define __pyx_n_u_cudaDeviceProp __pyx_string_tab[1616]
#define __pyx_n_u_cudaDeviceProp___reduce_cython __pyx_string_tab[1617]
#define __pyx_n_u_cudaDeviceProp___setstate_cython __pyx_string_tab[1618]
#define __pyx_n_u_cudaDeviceProp_getPtr __pyx_string_tab[1619]
#define __pyx_n_u_cudaDeviceRegisterAsyncNotificat __pyx_string_tab[1620]
#define __pyx_n_u_cudaDeviceReset __pyx_string_tab[1621]
#define __pyx_n_u_cudaDeviceScheduleAuto __pyx_string_tab[1622]
#define __pyx_n_u_cudaDeviceScheduleBlockingSync __pyx_string_tab[1623]
#define __pyx_n_u_cudaDeviceScheduleMask __pyx_string_tab[1624]
#define __pyx_n_u_cudaDeviceScheduleSpin __pyx_string_tab[1625]
#define __pyx_n_u_cudaDeviceScheduleYield __pyx_string_tab[1626]
#define __pyx_n_u_cudaDeviceSetCacheConfig __pyx_string_tab[1627]
#define __pyx_n_u_cudaDeviceSetGraphMemAttribute __pyx_string_tab[1628]
#define __pyx_n_u_cudaDeviceSetLimit __pyx_string_tab[1629]
#define __pyx_n_u_cudaDeviceSetMemPool __pyx_string_tab[1630]
#define __pyx_n_u_cudaDeviceSetSharedMemConfig __pyx_string_tab[1631]
#define __pyx_n_u_cudaDeviceSyncMemops __pyx_string_tab[1632]
#define __pyx_n_u_cudaDeviceSynchronize __pyx_string_tab[1633]
#define __pyx_n_u_cudaDeviceUnregisterAsyncNotific __pyx_string_tab[1634]
#define __pyx_n_u_cudaDriverEntryPointQueryResult __pyx_string_tab[1635]
#define __pyx_n_u_cudaDriverEntryPointSuccess __pyx_string_tab[1636]
#define __pyx_n_u_cudaDriverEntryPointSymbolNotFou __pyx_string_tab[1637]
#define __pyx_n_u_cudaDriverEntryPointVersionNotSu __pyx_string_tab[1638]
#define __pyx_n_u_cudaDriverGetVersion __pyx_string_tab[1639]
#define __pyx_n_u_cudaEGLStreamConsumerAcquireFram __pyx_string_tab[1640]
#define __pyx_n_u_cudaEGLStreamConsumerConnect __pyx_string_tab[1641]
#define __pyx_n_u_cudaEGLStreamConsumerConnectWith __pyx_string_tab[1642]
#define __pyx_n_u_cudaEGLStreamConsumerDisconnect __pyx_string_tab[1643]
#define __pyx_n_u_cudaEGLStreamConsumerReleaseFram __pyx_string_tab[1644]
#define __pyx_n_u_cudaEGLStreamProducerConnect __pyx_string_tab[1645]
#define __pyx_n_u_cudaEGLStreamProducerDisconnect __pyx_string_tab[1646]
#define __pyx_n_u_cudaEGLStreamProducerPresentFram __pyx_string_tab[1647]
#define __pyx_n_u_cudaEGLStreamProducerReturnFrame __pyx_string_tab[1648]
#define __pyx_n_u_cudaEglColorFormat __pyx_string_tab[1649]
#define __pyx_n_u_cudaEglColorFormatA __pyx_string_tab[1650]
#define __pyx_n_u_cudaEglColorFormatABGR __pyx_string_tab[1651]
#define __pyx_n_u_cudaEglColorFormatARGB __pyx_string_tab[1652]
#define __pyx_n_u_cudaEglColorFormatAYUV __pyx_string_tab[1653]
#define __pyx_n_u_cudaEglColorFormatAYUV_ER __pyx_string_tab[1654]
#define __pyx_n_u_cudaEglColorFormatBGRA __pyx_string_tab[1655]
#define __pyx_n_u_cudaEglColorFormatBayer10BGGR __pyx_string_tab[1656]
#define __pyx_n_u_cudaEglColorFormatBayer10CCCC __pyx_string_tab[1657]
#define __pyx_n_u_cudaEglColorFormatBayer10GBRG __pyx_string_tab[1658]
#define __pyx_n_u_cudaEglColorFormatBayer10GRBG __pyx_string_tab[1659]
#define __pyx_n_u_cudaEglColorFormatBayer10RGGB __pyx_string_tab[1660]
#define __pyx_n_u_cudaEglColorFormatBayer12BCCR __pyx_string_tab[1661]
#define __pyx_n_u_cudaEglColorFormatBayer12BGGR __pyx_string_tab[1662]
#define __pyx_n_u_cudaEglColorFormatBayer12CBRC __pyx_string_tab[1663]
#define __pyx_n_u_cudaEglColorFormatBayer12CCCC __pyx_string_tab[1664]
#define __pyx_n_u_cudaEglColorFormatBayer12CRBC __pyx_string_tab[1665]
#define __pyx_n_u_cudaEglColorFormatBayer12GBRG __pyx_string_tab[1666]
#define __pyx_n_u_cudaEglColorFormatBayer12GRBG __pyx_string_tab[1667]
#define __pyx_n_u_cudaEglColorFormatBayer12RCCB __pyx_string_tab[1668]
#define __pyx_n_u_cudaEglColorFormatBayer12RGGB __pyx_string_tab[1669]
#define __pyx_n_u_cudaEglColorFormatBayer14BGGR __pyx_string_tab[1670]
#define __pyx_n_u_cudaEglColorFormatBayer14GBRG __pyx_string_tab[1671]
#define __pyx_n_u_cudaEglColorFormatBayer14GRBG __pyx_string_tab[1672]
#define __pyx_n_u_cudaEglColorFormatBayer14RGGB __pyx_string_tab[1673]
#define __pyx_n_u_cudaEglColorFormatBayer20BGGR __pyx_string_tab[1674]
#define __pyx_n_u_cudaEglColorFormatBayer20GBRG __pyx_string_tab[1675]
#define __pyx_n_u_cudaEglColorFormatBayer20GRBG __pyx_string_tab[1676]
#define __pyx_n_u_cudaEglColorFormatBayer20RGGB __pyx_string_tab[1677]
#define __pyx_n_u_cudaEglColorFormatBayerBCCR __pyx_string_tab[1678]
#define __pyx_n_u_cudaEglColorFormatBayerBGGR __pyx_string_tab[1679]
#define __pyx_n_u_cudaEglColorFormatBayerCBRC __pyx_string_tab[1680]
#define __pyx_n_u_cudaEglColorFormatBayerCRBC __pyx_string_tab[1681]
#define __pyx_n_u_cudaEglColorFormatBayerGBRG __pyx_string_tab[1682]
#define __pyx_n_u_cudaEglColorFormatBayerGRBG __pyx_string_tab[1683]
#define __pyx_n_u_cudaEglColorFormatBayerIspBGGR __pyx_string_tab[1684]
#define __pyx_n_u_cudaEglColorFormatBayerIspGBRG __pyx_string_tab[1685]
#define __pyx_n_u_cudaEglColorFormatBayerIspGRBG __pyx_string_tab[1686]
#define __pyx_n_u_cudaEglColorFormatBayerIspRGGB __pyx_string_tab[1687]
#define __pyx_n_u_cudaEglColorFormatBayerRCCB __pyx_string_tab[1688]
#define __pyx_n_u_cudaEglColorFormatBayerRGGB __pyx_string_tab[1689]
#define __pyx_n_u_cudaEglColorFormatL __pyx_string_tab[1690]
#define __pyx_n_u_cudaEglColorFormatR __pyx_string_tab[1691]
#define __pyx_n_u_cudaEglColorFormatRG __pyx_string_tab[1692]
#define __pyx_n_u_cudaEglColorFormatRGBA __pyx_string_tab[1693]
#define __pyx_n_u_cudaEglColorFormatUYVY2020 __pyx_string_tab[1694]
#define __pyx_n_u_cudaEglColorFormatUYVY422 __pyx_string_tab[1695]
#define __pyx_n_u_cudaEglColorFormatUYVY709 __pyx_string_tab[1696]
#define __pyx_n_u_cudaEglColorFormatUYVY709_ER __pyx_string_tab[1697]
#define __pyx_n_u_cudaEglColorFormatUYVY_ER __pyx_string_tab[1698]
#define __pyx_n_u_cudaEglColorFormatVYUY __pyx_string_tab[1699]
#define __pyx_n_u_cudaEglColorFormatVYUY_ER __pyx_string_tab[1700]
#define __pyx_n_u_cudaEglColorFormatY __pyx_string_tab[1701]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_420S __pyx_string_tab[1702]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_420S_2 __pyx_string_tab[1703]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_420S_3 __pyx_string_tab[1704]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_420S_4 __pyx_string_tab[1705]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_420S_5 __pyx_string_tab[1706]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_422S __pyx_string_tab[1707]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_422S_2 __pyx_string_tab[1708]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_422S_3 __pyx_string_tab[1709]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_444S __pyx_string_tab[1710]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_444S_2 __pyx_string_tab[1711]
#define __pyx_n_u_cudaEglColorFormatY10V10U10_444S_3 __pyx_string_tab[1712]
#define __pyx_n_u_cudaEglColorFormatY10_709_ER __pyx_string_tab[1713]
#define __pyx_n_u_cudaEglColorFormatY10_ER __pyx_string_tab[1714]
#define __pyx_n_u_cudaEglColorFormatY12V12U12_420S __pyx_string_tab[1715]
#define __pyx_n_u_cudaEglColorFormatY12V12U12_420S_2 __pyx_string_tab[1716]
#define __pyx_n_u_cudaEglColorFormatY12V12U12_420S_3 __pyx_string_tab[1717]
#define __pyx_n_u_cudaEglColorFormatY12V12U12_444S __pyx_string_tab[1718]
#define __pyx_n_u_cudaEglColorFormatY12V12U12_444S_2 __pyx_string_tab[1719]
#define __pyx_n_u_cudaEglColorFormatY12V12U12_444S_3 __pyx_string_tab[1720]
#define __pyx_n_u_cudaEglColorFormatY12_709_ER __pyx_string_tab[1721]
#define __pyx_n_u_cudaEglColorFormatY12_ER __pyx_string_tab[1722]
#define __pyx_n_u_cudaEglColorFormatYUV420Planar __pyx_string_tab[1723]
#define __pyx_n_u_cudaEglColorFormatYUV420Planar_2 __pyx_string_tab[1724]
#define __pyx_n_u_cudaEglColorFormatYUV420Planar_7 __pyx_string_tab[1725]
#define __pyx_n_u_cudaEglColorFormatYUV420Planar_E __pyx_string_tab[1726]
#define __pyx_n_u_cudaEglColorFormatYUV420SemiPlan __pyx_string_tab[1727]
#define __pyx_n_u_cudaEglColorFormatYUV420SemiPlan_2 __pyx_string_tab[1728]
#define __pyx_n_u_cudaEglColorFormatYUV420SemiPlan_3 __pyx_string_tab[1729]
#define __pyx_n_u_cudaEglColorFormatYUV420SemiPlan_4 __pyx_string_tab[1730]
#define __pyx_n_u_cudaEglColorFormatYUV422Planar __pyx_string_tab[1731]
#define __pyx_n_u_cudaEglColorFormatYUV422Planar_E __pyx_string_tab[1732]
#define __pyx_n_u_cudaEglColorFormatYUV422SemiPlan __pyx_string_tab[1733]
#define __pyx_n_u_cudaEglColorFormatYUV422SemiPlan_2 __pyx_string_tab[1734]
#define __pyx_n_u_cudaEglColorFormatYUV444Planar __pyx_string_tab[1735]
#define __pyx_n_u_cudaEglColorFormatYUV444Planar_E __pyx_string_tab[1736]
#define __pyx_n_u_cudaEglColorFormatYUV444SemiPlan __pyx_string_tab[1737]
#define __pyx_n_u_cudaEglColorFormatYUV444SemiPlan_2 __pyx_string_tab[1738]
#define __pyx_n_u_cudaEglColorFormatYUVA __pyx_string_tab[1739]
#define __pyx_n_u_cudaEglColorFormatYUVA_ER __pyx_string_tab[1740]
#define __pyx_n_u_cudaEglColorFormatYUYV422 __pyx_string_tab[1741]
#define __pyx_n_u_cudaEglColorFormatYUYV_ER __pyx_string_tab[1742]
#define __pyx_n_u_cudaEglColorFormatYVU420Planar __pyx_string_tab[1743]
#define __pyx_n_u_cudaEglColorFormatYVU420Planar_2 __pyx_string_tab[1744]
#define __pyx_n_u_cudaEglColorFormatYVU420Planar_7 __pyx_string_tab[1745]
#define __pyx_n_u_cudaEglColorFormatYVU420Planar_E __pyx_string_tab[1746]
#define __pyx_n_u_cudaEglColorFormatYVU420SemiPlan __pyx_string_tab[1747]
#define __pyx_n_u_cudaEglColorFormatYVU420SemiPlan_2 __pyx_string_tab[1748]
#define __pyx_n_u_cudaEglColorFormatYVU420SemiPlan_3 __pyx_string_tab[1749]
#define __pyx_n_u_cudaEglColorFormatYVU420SemiPlan_4 __pyx_string_tab[1750]
#define __pyx_n_u_cudaEglColorFormatYVU422Planar __pyx_string_tab[1751]
#define __pyx_n_u_cudaEglColorFormatYVU422Planar_E __pyx_string_tab[1752]
#define __pyx_n_u_cudaEglColorFormatYVU422SemiPlan __pyx_string_tab[1753]
#define __pyx_n_u_cudaEglColorFormatYVU422SemiPlan_2 __pyx_string_tab[1754]
#define __pyx_n_u_cudaEglColorFormatYVU444Planar __pyx_string_tab[1755]
#define __pyx_n_u_cudaEglColorFormatYVU444Planar_E __pyx_string_tab[1756]
#define __pyx_n_u_cudaEglColorFormatYVU444SemiPlan __pyx_string_tab[1757]
#define __pyx_n_u_cudaEglColorFormatYVU444SemiPlan_2 __pyx_string_tab[1758]
#define __pyx_n_u_cudaEglColorFormatYVYU __pyx_string_tab[1759]
#define __pyx_n_u_cudaEglColorFormatYVYU_ER __pyx_string_tab[1760]
#define __pyx_n_u_cudaEglColorFormatY_709_ER __pyx_string_tab[1761]
#define __pyx_n_u_cudaEglColorFormatY_ER __pyx_string_tab[1762]
#define __pyx_n_u_cudaEglFrame __pyx_string_tab[1763]
#define __pyx_n_u_cudaEglFrameType __pyx_string_tab[1764]
#define __pyx_n_u_cudaEglFrameTypeArray __pyx_string_tab[1765]
#define __pyx_n_u_cudaEglFrameTypePitch __pyx_string_tab[1766]
#define __pyx_n_u_cudaEglFrame_st __pyx_string_tab[1767]
#define __pyx_n_u_cudaEglFrame_st___reduce_cython __pyx_string_tab[1768]
#define __pyx_n_u_cudaEglFrame_st___setstate_cytho __pyx_string_tab[1769]
#define __pyx_n_u_cudaEglFrame_st_getPtr __pyx_string_tab[1770]
#define __pyx_n_u_cudaEglPlaneDesc __pyx_string_tab[1771]
#define __pyx_n_u_cudaEglPlaneDesc_st __pyx_string_tab[1772]
#define __pyx_n_u_cudaEglPlaneDesc_st___reduce_cyt __pyx_string_tab[1773]
#define __pyx_n_u_cudaEglPlaneDesc_st___setstate_c __pyx_string_tab[1774]
#define __pyx_n_u_cudaEglPlaneDesc_st_getPtr __pyx_string_tab[1775]
#define __pyx_n_u_cudaEglResourceLocationFlags __pyx_string_tab[1776]
#define __pyx_n_u_cudaEglResourceLocationSysmem __pyx_string_tab[1777]
#define __pyx_n_u_cudaEglResourceLocationVidmem __pyx_string_tab[1778]
#define __pyx_n_u_cudaEglStreamConnection __pyx_string_tab[1779]
#define __pyx_n_u_cudaEglStreamConnection_getter __pyx_string_tab[1780]
#define __pyx_n_u_cudaEmulationMantissaControl __pyx_string_tab[1781]
#define __pyx_n_u_cudaEmulationSpecialValuesSuppor __pyx_string_tab[1782]
#define __pyx_n_u_cudaEmulationStrategy __pyx_string_tab[1783]
#define __pyx_n_u_cudaEnableDefault __pyx_string_tab[1784]
#define __pyx_n_u_cudaEnableLegacyStream __pyx_string_tab[1785]
#define __pyx_n_u_cudaEnablePerThreadDefaultStream __pyx_string_tab[1786]
#define __pyx_n_u_cudaErrorAddressOfConstant __pyx_string_tab[1787]
#define __pyx_n_u_cudaErrorAlreadyAcquired __pyx_string_tab[1788]
#define __pyx_n_u_cudaErrorAlreadyMapped __pyx_string_tab[1789]
#define __pyx_n_u_cudaErrorApiFailureBase __pyx_string_tab[1790]
#define __pyx_n_u_cudaErrorArrayIsMapped __pyx_string_tab[1791]
#define __pyx_n_u_cudaErrorAssert __pyx_string_tab[1792]
#define __pyx_n_u_cudaErrorCallRequiresNewerDriver __pyx_string_tab[1793]
#define __pyx_n_u_cudaErrorCapturedEvent __pyx_string_tab[1794]
#define __pyx_n_u_cudaErrorCdpNotSupported __pyx_string_tab[1795]
#define __pyx_n_u_cudaErrorCdpVersionMismatch __pyx_string_tab[1796]
#define __pyx_n_u_cudaErrorCompatNotSupportedOnDev __pyx_string_tab[1797]
#define __pyx_n_u_cudaErrorContained __pyx_string_tab[1798]
#define __pyx_n_u_cudaErrorContextIsDestroyed __pyx_string_tab[1799]
#define __pyx_n_u_cudaErrorCooperativeLaunchTooLar __pyx_string_tab[1800]
#define __pyx_n_u_cudaErrorCudartUnloading __pyx_string_tab[1801]
#define __pyx_n_u_cudaErrorDeviceAlreadyInUse __pyx_string_tab[1802]
#define __pyx_n_u_cudaErrorDeviceNotLicensed __pyx_string_tab[1803]
#define __pyx_n_u_cudaErrorDeviceUninitialized __pyx_string_tab[1804]
#define __pyx_n_u_cudaErrorDevicesUnavailable __pyx_string_tab[1805]
#define __pyx_n_u_cudaErrorDuplicateSurfaceName __pyx_string_tab[1806]
#define __pyx_n_u_cudaErrorDuplicateTextureName __pyx_string_tab[1807]
#define __pyx_n_u_cudaErrorDuplicateVariableName __pyx_string_tab[1808]
#define __pyx_n_u_cudaErrorECCUncorrectable __pyx_string_tab[1809]
#define __pyx_n_u_cudaErrorExternalDevice __pyx_string_tab[1810]
#define __pyx_n_u_cudaErrorFileNotFound __pyx_string_tab[1811]
#define __pyx_n_u_cudaErrorFunctionNotLoaded __pyx_string_tab[1812]
#define __pyx_n_u_cudaErrorGraphExecUpdateFailure __pyx_string_tab[1813]
#define __pyx_n_u_cudaErrorHardwareStackError __pyx_string_tab[1814]
#define __pyx_n_u_cudaErrorHostMemoryAlreadyRegist __pyx_string_tab[1815]
#define __pyx_n_u_cudaErrorHostMemoryNotRegistered __pyx_string_tab[1816]
#define __pyx_n_u_cudaErrorIllegalAddress __pyx_string_tab[1817]
#define __pyx_n_u_cudaErrorIllegalInstruction __pyx_string_tab[1818]
#define __pyx_n_u_cudaErrorIllegalState __pyx_string_tab[1819]
#define __pyx_n_u_cudaErrorIncompatibleDriverConte __pyx_string_tab[1820]
#define __pyx_n_u_cudaErrorInitializationError __pyx_string_tab[1821]
#define __pyx_n_u_cudaErrorInsufficientDriver __pyx_string_tab[1822]
#define __pyx_n_u_cudaErrorInvalidAddressSpace __pyx_string_tab[1823]
#define __pyx_n_u_cudaErrorInvalidChannelDescripto __pyx_string_tab[1824]
#define __pyx_n_u_cudaErrorInvalidClusterSize __pyx_string_tab[1825]
#define __pyx_n_u_cudaErrorInvalidConfiguration __pyx_string_tab[1826]
#define __pyx_n_u_cudaErrorInvalidDevice __pyx_string_tab[1827]
#define __pyx_n_u_cudaErrorInvalidDeviceFunction __pyx_string_tab[1828]
#define __pyx_n_u_cudaErrorInvalidDevicePointer __pyx_string_tab[1829]
#define __pyx_n_u_cudaErrorInvalidFilterSetting __pyx_string_tab[1830]
#define __pyx_n_u_cudaErrorInvalidGraphicsContext __pyx_string_tab[1831]
#define __pyx_n_u_cudaErrorInvalidHostPointer __pyx_string_tab[1832]
#define __pyx_n_u_cudaErrorInvalidKernelImage __pyx_string_tab[1833]
#define __pyx_n_u_cudaErrorInvalidMemcpyDirection __pyx_string_tab[1834]
#define __pyx_n_u_cudaErrorInvalidNormSetting __pyx_string_tab[1835]
#define __pyx_n_u_cudaErrorInvalidPc __pyx_string_tab[1836]
#define __pyx_n_u_cudaErrorInvalidPitchValue __pyx_string_tab[1837]
#define __pyx_n_u_cudaErrorInvalidPtx __pyx_string_tab[1838]
#define __pyx_n_u_cudaErrorInvalidResourceConfigur __pyx_string_tab[1839]
#define __pyx_n_u_cudaErrorInvalidResourceHandle __pyx_string_tab[1840]
#define __pyx_n_u_cudaErrorInvalidResourceType __pyx_string_tab[1841]
#define __pyx_n_u_cudaErrorInvalidSource __pyx_string_tab[1842]
#define __pyx_n_u_cudaErrorInvalidSurface __pyx_string_tab[1843]
#define __pyx_n_u_cudaErrorInvalidSymbol __pyx_string_tab[1844]
#define __pyx_n_u_cudaErrorInvalidTexture __pyx_string_tab[1845]
#define __pyx_n_u_cudaErrorInvalidTextureBinding __pyx_string_tab[1846]
#define __pyx_n_u_cudaErrorInvalidValue __pyx_string_tab[1847]
#define __pyx_n_u_cudaErrorJitCompilationDisabled __pyx_string_tab[1848]
#define __pyx_n_u_cudaErrorJitCompilerNotFound __pyx_string_tab[1849]
#define __pyx_n_u_cudaErrorLaunchFailure __pyx_string_tab[1850]
#define __pyx_n_u_cudaErrorLaunchFileScopedSurf __pyx_string_tab[1851]
#define __pyx_n_u_cudaErrorLaunchFileScopedTex __pyx_string_tab[1852]
#define __pyx_n_u_cudaErrorLaunchIncompatibleTextu __pyx_string_tab[1853]
#define __pyx_n_u_cudaErrorLaunchMaxDepthExceeded __pyx_string_tab[1854]
#define __pyx_n_u_cudaErrorLaunchOutOfResources __pyx_string_tab[1855]
#define __pyx_n_u_cudaErrorLaunchPendingCountExcee __pyx_string_tab[1856]
#define __pyx_n_u_cudaErrorLaunchTimeout __pyx_string_tab[1857]
#define __pyx_n_u_cudaErrorLossyQuery __pyx_string_tab[1858]
#define __pyx_n_u_cudaErrorMapBufferObjectFailed __pyx_string_tab[1859]
#define __pyx_n_u_cudaErrorMemoryAllocation __pyx_string_tab[1860]
#define __pyx_n_u_cudaErrorMemoryValueTooLarge __pyx_string_tab[1861]
#define __pyx_n_u_cudaErrorMisalignedAddress __pyx_string_tab[1862]
#define __pyx_n_u_cudaErrorMissingConfiguration __pyx_string_tab[1863]
#define __pyx_n_u_cudaErrorMixedDeviceExecution __pyx_string_tab[1864]
#define __pyx_n_u_cudaErrorMpsClientTerminated __pyx_string_tab[1865]
#define __pyx_n_u_cudaErrorMpsConnectionFailed __pyx_string_tab[1866]
#define __pyx_n_u_cudaErrorMpsMaxClientsReached __pyx_string_tab[1867]
#define __pyx_n_u_cudaErrorMpsMaxConnectionsReache __pyx_string_tab[1868]
#define __pyx_n_u_cudaErrorMpsRpcFailure __pyx_string_tab[1869]
#define __pyx_n_u_cudaErrorMpsServerNotReady __pyx_string_tab[1870]
#define __pyx_n_u_cudaErrorNoDevice __pyx_string_tab[1871]
#define __pyx_n_u_cudaErrorNoKernelImageForDevice __pyx_string_tab[1872]
#define __pyx_n_u_cudaErrorNotMapped __pyx_string_tab[1873]
#define __pyx_n_u_cudaErrorNotMappedAsArray __pyx_string_tab[1874]
#define __pyx_n_u_cudaErrorNotMappedAsPointer __pyx_string_tab[1875]
#define __pyx_n_u_cudaErrorNotPermitted __pyx_string_tab[1876]
#define __pyx_n_u_cudaErrorNotReady __pyx_string_tab[1877]
#define __pyx_n_u_cudaErrorNotSupported __pyx_string_tab[1878]
#define __pyx_n_u_cudaErrorNotYetImplemented __pyx_string_tab[1879]
#define __pyx_n_u_cudaErrorNvlinkUncorrectable __pyx_string_tab[1880]
#define __pyx_n_u_cudaErrorOperatingSystem __pyx_string_tab[1881]
#define __pyx_n_u_cudaErrorPeerAccessAlreadyEnable __pyx_string_tab[1882]
#define __pyx_n_u_cudaErrorPeerAccessNotEnabled __pyx_string_tab[1883]
#define __pyx_n_u_cudaErrorPeerAccessUnsupported __pyx_string_tab[1884]
#define __pyx_n_u_cudaErrorPriorLaunchFailure __pyx_string_tab[1885]
#define __pyx_n_u_cudaErrorProfilerAlreadyStarted __pyx_string_tab[1886]
#define __pyx_n_u_cudaErrorProfilerAlreadyStopped __pyx_string_tab[1887]
#define __pyx_n_u_cudaErrorProfilerDisabled __pyx_string_tab[1888]
#define __pyx_n_u_cudaErrorProfilerNotInitialized __pyx_string_tab[1889]
#define __pyx_n_u_cudaErrorSetOnActiveProcess __pyx_string_tab[1890]
#define __pyx_n_u_cudaErrorSharedObjectInitFailed __pyx_string_tab[1891]
#define __pyx_n_u_cudaErrorSharedObjectSymbolNotFo __pyx_string_tab[1892]
#define __pyx_n_u_cudaErrorSoftwareValidityNotEsta __pyx_string_tab[1893]
#define __pyx_n_u_cudaErrorStartupFailure __pyx_string_tab[1894]
#define __pyx_n_u_cudaErrorStreamCaptureImplicit __pyx_string_tab[1895]
#define __pyx_n_u_cudaErrorStreamCaptureInvalidate __pyx_string_tab[1896]
#define __pyx_n_u_cudaErrorStreamCaptureIsolation __pyx_string_tab[1897]
#define __pyx_n_u_cudaErrorStreamCaptureMerge __pyx_string_tab[1898]
#define __pyx_n_u_cudaErrorStreamCaptureUnjoined __pyx_string_tab[1899]
#define __pyx_n_u_cudaErrorStreamCaptureUnmatched __pyx_string_tab[1900]
#define __pyx_n_u_cudaErrorStreamCaptureUnsupporte __pyx_string_tab[1901]
#define __pyx_n_u_cudaErrorStreamCaptureWrongThrea __pyx_string_tab[1902]
#define __pyx_n_u_cudaErrorStreamDetached __pyx_string_tab[1903]
#define __pyx_n_u_cudaErrorStubLibrary __pyx_string_tab[1904]
#define __pyx_n_u_cudaErrorSymbolNotFound __pyx_string_tab[1905]
#define __pyx_n_u_cudaErrorSyncDepthExceeded __pyx_string_tab[1906]
#define __pyx_n_u_cudaErrorSynchronizationError __pyx_string_tab[1907]
#define __pyx_n_u_cudaErrorSystemDriverMismatch __pyx_string_tab[1908]
#define __pyx_n_u_cudaErrorSystemNotReady __pyx_string_tab[1909]
#define __pyx_n_u_cudaErrorTensorMemoryLeak __pyx_string_tab[1910]
#define __pyx_n_u_cudaErrorTextureFetchFailed __pyx_string_tab[1911]
#define __pyx_n_u_cudaErrorTextureNotBound __pyx_string_tab[1912]
#define __pyx_n_u_cudaErrorTimeout __pyx_string_tab[1913]
#define __pyx_n_u_cudaErrorTooManyPeers __pyx_string_tab[1914]
#define __pyx_n_u_cudaErrorUnknown __pyx_string_tab[1915]
#define __pyx_n_u_cudaErrorUnmapBufferObjectFailed __pyx_string_tab[1916]
#define __pyx_n_u_cudaErrorUnsupportedDevSideSync __pyx_string_tab[1917]
#define __pyx_n_u_cudaErrorUnsupportedExecAffinity __pyx_string_tab[1918]
#define __pyx_n_u_cudaErrorUnsupportedLimit __pyx_string_tab[1919]
#define __pyx_n_u_cudaErrorUnsupportedPtxVersion __pyx_string_tab[1920]
#define __pyx_n_u_cudaError_t __pyx_string_tab[1921]
#define __pyx_n_u_cudaEventBlockingSync __pyx_string_tab[1922]
#define __pyx_n_u_cudaEventCreate __pyx_string_tab[1923]
#define __pyx_n_u_cudaEventCreateFromEGLSync __pyx_string_tab[1924]
#define __pyx_n_u_cudaEventCreateWithFlags __pyx_string_tab[1925]
#define __pyx_n_u_cudaEventDefault __pyx_string_tab[1926]
#define __pyx_n_u_cudaEventDestroy __pyx_string_tab[1927]
#define __pyx_n_u_cudaEventDisableTiming __pyx_string_tab[1928]
#define __pyx_n_u_cudaEventElapsedTime __pyx_string_tab[1929]
#define __pyx_n_u_cudaEventInterprocess __pyx_string_tab[1930]
#define __pyx_n_u_cudaEventQuery __pyx_string_tab[1931]
#define __pyx_n_u_cudaEventRecord __pyx_string_tab[1932]
#define __pyx_n_u_cudaEventRecordDefault __pyx_string_tab[1933]
#define __pyx_n_u_cudaEventRecordExternal __pyx_string_tab[1934]
#define __pyx_n_u_cudaEventRecordNodeParams __pyx_string_tab[1935]
#define __pyx_n_u_cudaEventRecordNodeParams___redu __pyx_string_tab[1936]
#define __pyx_n_u_cudaEventRecordNodeParams___sets __pyx_string_tab[1937]
#define __pyx_n_u_cudaEventRecordNodeParams_getPtr __pyx_string_tab[1938]
#define __pyx_n_u_cudaEventRecordWithFlags __pyx_string_tab[1939]
#define __pyx_n_u_cudaEventSynchronize __pyx_string_tab[1940]
#define __pyx_n_u_cudaEventWaitDefault __pyx_string_tab[1941]
#define __pyx_n_u_cudaEventWaitExternal __pyx_string_tab[1942]
#define __pyx_n_u_cudaEventWaitNodeParams __pyx_string_tab[1943]
#define __pyx_n_u_cudaEventWaitNodeParams___reduce __pyx_string_tab[1944]
#define __pyx_n_u_cudaEventWaitNodeParams___setsta __pyx_string_tab[1945]
#define __pyx_n_u_cudaEventWaitNodeParams_getPtr __pyx_string_tab[1946]
#define __pyx_n_u_cudaEvent_t __pyx_string_tab[1947]
#define __pyx_n_u_cudaEvent_t_getter __pyx_string_tab[1948]
#define __pyx_n_u_cudaExecutionContext_t_2 __pyx_string_tab[1949]
#define __pyx_n_u_cudaExecutionContext_t___reduce __pyx_string_tab[1950]
#define __pyx_n_u_cudaExecutionContext_t___setstat __pyx_string_tab[1951]
#define __pyx_n_u_cudaExecutionContext_t_getPtr __pyx_string_tab[1952]
#define __pyx_n_u_cudaExecutionContext_t_getter __pyx_string_tab[1953]
#define __pyx_n_u_cudaExecutionCtxDestroy __pyx_string_tab[1954]
#define __pyx_n_u_cudaExecutionCtxGetDevResource __pyx_string_tab[1955]
#define __pyx_n_u_cudaExecutionCtxGetDevice __pyx_string_tab[1956]
#define __pyx_n_u_cudaExecutionCtxGetId __pyx_string_tab[1957]
#define __pyx_n_u_cudaExecutionCtxRecordEvent __pyx_string_tab[1958]
#define __pyx_n_u_cudaExecutionCtxStreamCreate __pyx_string_tab[1959]
#define __pyx_n_u_cudaExecutionCtxSynchronize __pyx_string_tab[1960]
#define __pyx_n_u_cudaExecutionCtxWaitEvent __pyx_string_tab[1961]
#define __pyx_n_u_cudaExtent __pyx_string_tab[1962]
#define __pyx_n_u_cudaExtent___reduce_cython __pyx_string_tab[1963]
#define __pyx_n_u_cudaExtent___setstate_cython __pyx_string_tab[1964]
#define __pyx_n_u_cudaExtent_getPtr __pyx_string_tab[1965]
#define __pyx_n_u_cudaExternalMemoryBufferDesc __pyx_string_tab[1966]
#define __pyx_n_u_cudaExternalMemoryBufferDesc___r __pyx_string_tab[1967]
#define __pyx_n_u_cudaExternalMemoryBufferDesc___s __pyx_string_tab[1968]
#define __pyx_n_u_cudaExternalMemoryBufferDesc_get __pyx_string_tab[1969]
#define __pyx_n_u_cudaExternalMemoryDedicated __pyx_string_tab[1970]
#define __pyx_n_u_cudaExternalMemoryGetMappedBuffe __pyx_string_tab[1971]
#define __pyx_n_u_cudaExternalMemoryGetMappedMipma __pyx_string_tab[1972]
#define __pyx_n_u_cudaExternalMemoryHandleDesc __pyx_string_tab[1973]
#define __pyx_n_u_cudaExternalMemoryHandleDesc___r __pyx_string_tab[1974]
#define __pyx_n_u_cudaExternalMemoryHandleDesc___s __pyx_string_tab[1975]
#define __pyx_n_u_cudaExternalMemoryHandleDesc_get __pyx_string_tab[1976]
#define __pyx_n_u_cudaExternalMemoryHandleType __pyx_string_tab[1977]
#define __pyx_n_u_cudaExternalMemoryHandleTypeD3D1 __pyx_string_tab[1978]
#define __pyx_n_u_cudaExternalMemoryHandleTypeD3D1_2 __pyx_string_tab[1979]
#define __pyx_n_u_cudaExternalMemoryHandleTypeD3D1_3 __pyx_string_tab[1980]
#define __pyx_n_u_cudaExternalMemoryHandleTypeD3D1_4 __pyx_string_tab[1981]
#define __pyx_n_u_cudaExternalMemoryHandleTypeNvSc __pyx_string_tab[1982]
#define __pyx_n_u_cudaExternalMemoryHandleTypeOpaq __pyx_string_tab[1983]
#define __pyx_n_u_cudaExternalMemoryHandleTypeOpaq_2 __pyx_string_tab[1984]
#define __pyx_n_u_cudaExternalMemoryHandleTypeOpaq_3 __pyx_string_tab[1985]
#define __pyx_n_u_cudaExternalMemoryMipmappedArray __pyx_string_tab[1986]
#define __pyx_n_u_cudaExternalMemoryMipmappedArray_2 __pyx_string_tab[1987]
#define __pyx_n_u_cudaExternalMemoryMipmappedArray_3 __pyx_string_tab[1988]
#define __pyx_n_u_cudaExternalMemoryMipmappedArray_4 __pyx_string_tab[1989]
#define __pyx_n_u_cudaExternalMemory_t_2 __pyx_string_tab[1990]
#define __pyx_n_u_cudaExternalMemory_t___reduce_cy __pyx_string_tab[1991]
#define __pyx_n_u_cudaExternalMemory_t___setstate __pyx_string_tab[1992]
#define __pyx_n_u_cudaExternalMemory_t_getPtr __pyx_string_tab[1993]
#define __pyx_n_u_cudaExternalMemory_t_getter __pyx_string_tab[1994]
#define __pyx_n_u_cudaExternalSemaphoreHandleDesc __pyx_string_tab[1995]
#define __pyx_n_u_cudaExternalSemaphoreHandleDesc_2 __pyx_string_tab[1996]
#define __pyx_n_u_cudaExternalSemaphoreHandleDesc_3 __pyx_string_tab[1997]
#define __pyx_n_u_cudaExternalSemaphoreHandleDesc_4 __pyx_string_tab[1998]
#define __pyx_n_u_cudaExternalSemaphoreHandleType __pyx_string_tab[1999]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeD __pyx_string_tab[2000]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeD_2 __pyx_string_tab[2001]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeK __pyx_string_tab[2002]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeK_2 __pyx_string_tab[2003]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeN __pyx_string_tab[2004]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeO __pyx_string_tab[2005]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeO_2 __pyx_string_tab[2006]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeO_3 __pyx_string_tab[2007]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeT __pyx_string_tab[2008]
#define __pyx_n_u_cudaExternalSemaphoreHandleTypeT_2 __pyx_string_tab[2009]
#define __pyx_n_u_cudaExternalSemaphoreSignalNodeP __pyx_string_tab[2010]
#define __pyx_n_u_cudaExternalSemaphoreSignalNodeP_2 __pyx_string_tab[2011]
#define __pyx_n_u_cudaExternalSemaphoreSignalNodeP_3 __pyx_string_tab[2012]
#define __pyx_n_u_cudaExternalSemaphoreSignalNodeP_4 __pyx_string_tab[2013]
#define __pyx_n_u_cudaExternalSemaphoreSignalNodeP_5 __pyx_string_tab[2014]
#define __pyx_n_u_cudaExternalSemaphoreSignalNodeP_6 __pyx_string_tab[2015]
#define __pyx_n_u_cudaExternalSemaphoreSignalNodeP_7 __pyx_string_tab[2016]
#define __pyx_n_u_cudaExternalSemaphoreSignalNodeP_8 __pyx_string_tab[2017]
#define __pyx_n_u_cudaExternalSemaphoreSignalParam __pyx_string_tab[2018]
#define __pyx_n_u_cudaExternalSemaphoreSignalParam_2 __pyx_string_tab[2019]
#define __pyx_n_u_cudaExternalSemaphoreSignalParam_3 __pyx_string_tab[2020]
#define __pyx_n_u_cudaExternalSemaphoreSignalParam_4 __pyx_string_tab[2021]
#define __pyx_n_u_cudaExternalSemaphoreSignalSkipN __pyx_string_tab[2022]
#define __pyx_n_u_cudaExternalSemaphoreWaitNodePar __pyx_string_tab[2023]
#define __pyx_n_u_cudaExternalSemaphoreWaitNodePar_2 __pyx_string_tab[2024]
#define __pyx_n_u_cudaExternalSemaphoreWaitNodePar_3 __pyx_string_tab[2025]
#define __pyx_n_u_cudaExternalSemaphoreWaitNodePar_4 __pyx_string_tab[2026]
#define __pyx_n_u_cudaExternalSemaphoreWaitNodePar_5 __pyx_string_tab[2027]
#define __pyx_n_u_cudaExternalSemaphoreWaitNodePar_6 __pyx_string_tab[2028]
#define __pyx_n_u_cudaExternalSemaphoreWaitNodePar_7 __pyx_string_tab[2029]
#define __pyx_n_u_cudaExternalSemaphoreWaitNodePar_8 __pyx_string_tab[2030]
#define __pyx_n_u_cudaExternalSemaphoreWaitParams __pyx_string_tab[2031]
#define __pyx_n_u_cudaExternalSemaphoreWaitParams_2 __pyx_string_tab[2032]
#define __pyx_n_u_cudaExternalSemaphoreWaitParams_3 __pyx_string_tab[2033]
#define __pyx_n_u_cudaExternalSemaphoreWaitParams_4 __pyx_string_tab[2034]
#define __pyx_n_u_cudaExternalSemaphoreWaitSkipNvS __pyx_string_tab[2035]
#define __pyx_n_u_cudaExternalSemaphore_t_2 __pyx_string_tab[2036]
#define __pyx_n_u_cudaExternalSemaphore_t___reduce __pyx_string_tab[2037]
#define __pyx_n_u_cudaExternalSemaphore_t___setsta __pyx_string_tab[2038]
#define __pyx_n_u_cudaExternalSemaphore_t_getPtr __pyx_string_tab[2039]
#define __pyx_n_u_cudaExternalSemaphore_t_getter __pyx_string_tab[2040]
#define __pyx_n_u_cudaFilterModeLinear __pyx_string_tab[2041]
#define __pyx_n_u_cudaFilterModePoint __pyx_string_tab[2042]
#define __pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti __pyx_string_tab[2043]
#define __pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti_2 __pyx_string_tab[2044]
#define __pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti_3 __pyx_string_tab[2045]
#define __pyx_n_u_cudaFlushGPUDirectRDMAWritesScop __pyx_string_tab[2046]
#define __pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg __pyx_string_tab[2047]
#define __pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg_2 __pyx_string_tab[2048]
#define __pyx_n_u_cudaFlushGPUDirectRDMAWritesToAl __pyx_string_tab[2049]
#define __pyx_n_u_cudaFlushGPUDirectRDMAWritesToOw __pyx_string_tab[2050]
#define __pyx_n_u_cudaFormatModeAuto __pyx_string_tab[2051]
#define __pyx_n_u_cudaFormatModeForced __pyx_string_tab[2052]
#define __pyx_n_u_cudaFree __pyx_string_tab[2053]
#define __pyx_n_u_cudaFreeArray __pyx_string_tab[2054]
#define __pyx_n_u_cudaFreeAsync __pyx_string_tab[2055]
#define __pyx_n_u_cudaFreeHost __pyx_string_tab[2056]
#define __pyx_n_u_cudaFreeMipmappedArray __pyx_string_tab[2057]
#define __pyx_n_u_cudaFuncAttribute __pyx_string_tab[2058]
#define __pyx_n_u_cudaFuncAttributeClusterDimMustB __pyx_string_tab[2059]
#define __pyx_n_u_cudaFuncAttributeClusterScheduli __pyx_string_tab[2060]
#define __pyx_n_u_cudaFuncAttributeMax __pyx_string_tab[2061]
#define __pyx_n_u_cudaFuncAttributeMaxDynamicShare __pyx_string_tab[2062]
#define __pyx_n_u_cudaFuncAttributeNonPortableClus __pyx_string_tab[2063]
#define __pyx_n_u_cudaFuncAttributePreferredShared __pyx_string_tab[2064]
#define __pyx_n_u_cudaFuncAttributeRequiredCluster __pyx_string_tab[2065]
#define __pyx_n_u_cudaFuncAttributeRequiredCluster_2 __pyx_string_tab[2066]
#define __pyx_n_u_cudaFuncAttributeRequiredCluster_3 __pyx_string_tab[2067]
#define __pyx_n_u_cudaFuncAttributes __pyx_string_tab[2068]
#define __pyx_n_u_cudaFuncAttributes___reduce_cyth __pyx_string_tab[2069]
#define __pyx_n_u_cudaFuncAttributes___setstate_cy __pyx_string_tab[2070]
#define __pyx_n_u_cudaFuncAttributes_getPtr __pyx_string_tab[2071]
#define __pyx_n_u_cudaFuncCache __pyx_string_tab[2072]
#define __pyx_n_u_cudaFuncCachePreferEqual __pyx_string_tab[2073]
#define __pyx_n_u_cudaFuncCachePreferL1 __pyx_string_tab[2074]
#define __pyx_n_u_cudaFuncCachePreferNone __pyx_string_tab[2075]
#define __pyx_n_u_cudaFuncCachePreferShared __pyx_string_tab[2076]
#define __pyx_n_u_cudaFuncGetAttributes __pyx_string_tab[2077]
#define __pyx_n_u_cudaFuncSetAttribute __pyx_string_tab[2078]
#define __pyx_n_u_cudaFuncSetCacheConfig __pyx_string_tab[2079]
#define __pyx_n_u_cudaFuncSetSharedMemConfig __pyx_string_tab[2080]
#define __pyx_n_u_cudaFunction_t __pyx_string_tab[2081]
#define __pyx_n_u_cudaFunction_t_getter __pyx_string_tab[2082]
#define __pyx_n_u_cudaGLDeviceList __pyx_string_tab[2083]
#define __pyx_n_u_cudaGLDeviceListAll __pyx_string_tab[2084]
#define __pyx_n_u_cudaGLDeviceListCurrentFrame __pyx_string_tab[2085]
#define __pyx_n_u_cudaGLDeviceListNextFrame __pyx_string_tab[2086]
#define __pyx_n_u_cudaGLGetDevices __pyx_string_tab[2087]
#define __pyx_n_u_cudaGLMapFlags __pyx_string_tab[2088]
#define __pyx_n_u_cudaGLMapFlagsNone __pyx_string_tab[2089]
#define __pyx_n_u_cudaGLMapFlagsReadOnly __pyx_string_tab[2090]
#define __pyx_n_u_cudaGLMapFlagsWriteDiscard __pyx_string_tab[2091]
#define __pyx_n_u_cudaGPUDirectRDMAWritesOrdering __pyx_string_tab[2092]
#define __pyx_n_u_cudaGPUDirectRDMAWritesOrderingA __pyx_string_tab[2093]
#define __pyx_n_u_cudaGPUDirectRDMAWritesOrderingN __pyx_string_tab[2094]
#define __pyx_n_u_cudaGPUDirectRDMAWritesOrderingO __pyx_string_tab[2095]
#define __pyx_n_u_cudaGetChannelDesc __pyx_string_tab[2096]
#define __pyx_n_u_cudaGetDevice __pyx_string_tab[2097]
#define __pyx_n_u_cudaGetDeviceCount __pyx_string_tab[2098]
#define __pyx_n_u_cudaGetDeviceFlags __pyx_string_tab[2099]
#define __pyx_n_u_cudaGetDeviceProperties __pyx_string_tab[2100]
#define __pyx_n_u_cudaGetDriverEntryPoint __pyx_string_tab[2101]
#define __pyx_n_u_cudaGetDriverEntryPointByVersion __pyx_string_tab[2102]
#define __pyx_n_u_cudaGetDriverEntryPointFlags __pyx_string_tab[2103]
#define __pyx_n_u_cudaGetErrorName __pyx_string_tab[2104]
#define __pyx_n_u_cudaGetErrorString __pyx_string_tab[2105]
#define __pyx_n_u_cudaGetExportTable __pyx_string_tab[2106]
#define __pyx_n_u_cudaGetKernel __pyx_string_tab[2107]
#define __pyx_n_u_cudaGetLastError __pyx_string_tab[2108]
#define __pyx_n_u_cudaGetMipmappedArrayLevel __pyx_string_tab[2109]
#define __pyx_n_u_cudaGetSurfaceObjectResourceDesc __pyx_string_tab[2110]
#define __pyx_n_u_cudaGetTextureObjectResourceDesc __pyx_string_tab[2111]
#define __pyx_n_u_cudaGetTextureObjectResourceView __pyx_string_tab[2112]
#define __pyx_n_u_cudaGetTextureObjectTextureDesc __pyx_string_tab[2113]
#define __pyx_n_u_cudaGraphAddChildGraphNode __pyx_string_tab[2114]
#define __pyx_n_u_cudaGraphAddChildGraphNode_local __pyx_string_tab[2115]
#define __pyx_n_u_cudaGraphAddDependencies __pyx_string_tab[2116]
#define __pyx_n_u_cudaGraphAddDependencies_locals __pyx_string_tab[2117]
#define __pyx_n_u_cudaGraphAddEmptyNode __pyx_string_tab[2118]
#define __pyx_n_u_cudaGraphAddEmptyNode_locals_gen __pyx_string_tab[2119]
#define __pyx_n_u_cudaGraphAddEventRecordNode __pyx_string_tab[2120]
#define __pyx_n_u_cudaGraphAddEventRecordNode_loca __pyx_string_tab[2121]
#define __pyx_n_u_cudaGraphAddEventWaitNode __pyx_string_tab[2122]
#define __pyx_n_u_cudaGraphAddEventWaitNode_locals __pyx_string_tab[2123]
#define __pyx_n_u_cudaGraphAddExternalSemaphoresSi __pyx_string_tab[2124]
#define __pyx_n_u_cudaGraphAddExternalSemaphoresSi_2 __pyx_string_tab[2125]
#define __pyx_n_u_cudaGraphAddExternalSemaphoresWa __pyx_string_tab[2126]
#define __pyx_n_u_cudaGraphAddExternalSemaphoresWa_2 __pyx_string_tab[2127]
#define __pyx_n_u_cudaGraphAddHostNode __pyx_string_tab[2128]
#define __pyx_n_u_cudaGraphAddHostNode_locals_gene __pyx_string_tab[2129]
#define __pyx_n_u_cudaGraphAddKernelNode __pyx_string_tab[2130]
#define __pyx_n_u_cudaGraphAddKernelNode_locals_ge __pyx_string_tab[2131]
#define __pyx_n_u_cudaGraphAddMemAllocNode __pyx_string_tab[2132]
#define __pyx_n_u_cudaGraphAddMemAllocNode_locals __pyx_string_tab[2133]
#define __pyx_n_u_cudaGraphAddMemFreeNode __pyx_string_tab[2134]
#define __pyx_n_u_cudaGraphAddMemFreeNode_locals_g __pyx_string_tab[2135]
#define __pyx_n_u_cudaGraphAddMemcpyNode __pyx_string_tab[2136]
#define __pyx_n_u_cudaGraphAddMemcpyNode1D __pyx_string_tab[2137]
#define __pyx_n_u_cudaGraphAddMemcpyNode1D_locals __pyx_string_tab[2138]
#define __pyx_n_u_cudaGraphAddMemcpyNode_locals_ge __pyx_string_tab[2139]
#define __pyx_n_u_cudaGraphAddMemsetNode __pyx_string_tab[2140]
#define __pyx_n_u_cudaGraphAddMemsetNode_locals_ge __pyx_string_tab[2141]
#define __pyx_n_u_cudaGraphAddNode __pyx_string_tab[2142]
#define __pyx_n_u_cudaGraphAddNode_locals_genexpr __pyx_string_tab[2143]
#define __pyx_n_u_cudaGraphChildGraphNodeGetGraph __pyx_string_tab[2144]
#define __pyx_n_u_cudaGraphChildGraphNodeOwnership __pyx_string_tab[2145]
#define __pyx_n_u_cudaGraphChildGraphOwnershipClon __pyx_string_tab[2146]
#define __pyx_n_u_cudaGraphChildGraphOwnershipMove __pyx_string_tab[2147]
#define __pyx_n_u_cudaGraphClone __pyx_string_tab[2148]
#define __pyx_n_u_cudaGraphCondAssignDefault __pyx_string_tab[2149]
#define __pyx_n_u_cudaGraphCondTypeIf __pyx_string_tab[2150]
#define __pyx_n_u_cudaGraphCondTypeSwitch __pyx_string_tab[2151]
#define __pyx_n_u_cudaGraphCondTypeWhile __pyx_string_tab[2152]
#define __pyx_n_u_cudaGraphConditionalHandleCreate __pyx_string_tab[2153]
#define __pyx_n_u_cudaGraphConditionalHandleCreate_2 __pyx_string_tab[2154]
#define __pyx_n_u_cudaGraphConditionalHandleFlags __pyx_string_tab[2155]
#define __pyx_n_u_cudaGraphConditionalHandle_2 __pyx_string_tab[2156]
#define __pyx_n_u_cudaGraphConditionalHandle___red __pyx_string_tab[2157]
#define __pyx_n_u_cudaGraphConditionalHandle___set __pyx_string_tab[2158]
#define __pyx_n_u_cudaGraphConditionalHandle_getPt __pyx_string_tab[2159]
#define __pyx_n_u_cudaGraphConditionalNodeType __pyx_string_tab[2160]
#define __pyx_n_u_cudaGraphCreate __pyx_string_tab[2161]
#define __pyx_n_u_cudaGraphDebugDotFlags __pyx_string_tab[2162]
#define __pyx_n_u_cudaGraphDebugDotFlagsConditiona __pyx_string_tab[2163]
#define __pyx_n_u_cudaGraphDebugDotFlagsEventNodeP __pyx_string_tab[2164]
#define __pyx_n_u_cudaGraphDebugDotFlagsExtSemasSi __pyx_string_tab[2165]
#define __pyx_n_u_cudaGraphDebugDotFlagsExtSemasWa __pyx_string_tab[2166]
#define __pyx_n_u_cudaGraphDebugDotFlagsHandles __pyx_string_tab[2167]
#define __pyx_n_u_cudaGraphDebugDotFlagsHostNodePa __pyx_string_tab[2168]
#define __pyx_n_u_cudaGraphDebugDotFlagsKernelNode __pyx_string_tab[2169]
#define __pyx_n_u_cudaGraphDebugDotFlagsKernelNode_2 __pyx_string_tab[2170]
#define __pyx_n_u_cudaGraphDebugDotFlagsMemcpyNode __pyx_string_tab[2171]
#define __pyx_n_u_cudaGraphDebugDotFlagsMemsetNode __pyx_string_tab[2172]
#define __pyx_n_u_cudaGraphDebugDotFlagsVerbose __pyx_string_tab[2173]
#define __pyx_n_u_cudaGraphDebugDotPrint __pyx_string_tab[2174]
#define __pyx_n_u_cudaGraphDependencyType __pyx_string_tab[2175]
#define __pyx_n_u_cudaGraphDependencyTypeDefault __pyx_string_tab[2176]
#define __pyx_n_u_cudaGraphDependencyTypeProgramma __pyx_string_tab[2177]
#define __pyx_n_u_cudaGraphDestroy __pyx_string_tab[2178]
#define __pyx_n_u_cudaGraphDestroyNode __pyx_string_tab[2179]
#define __pyx_n_u_cudaGraphDeviceNode_t_2 __pyx_string_tab[2180]
#define __pyx_n_u_cudaGraphDeviceNode_t___reduce_c __pyx_string_tab[2181]
#define __pyx_n_u_cudaGraphDeviceNode_t___setstate __pyx_string_tab[2182]
#define __pyx_n_u_cudaGraphDeviceNode_t_getPtr __pyx_string_tab[2183]
#define __pyx_n_u_cudaGraphDeviceNode_t_getter __pyx_string_tab[2184]
#define __pyx_n_u_cudaGraphEdgeData __pyx_string_tab[2185]
#define __pyx_n_u_cudaGraphEdgeData_st __pyx_string_tab[2186]
#define __pyx_n_u_cudaGraphEdgeData_st___reduce_cy __pyx_string_tab[2187]
#define __pyx_n_u_cudaGraphEdgeData_st___setstate __pyx_string_tab[2188]
#define __pyx_n_u_cudaGraphEdgeData_st_getPtr __pyx_string_tab[2189]
#define __pyx_n_u_cudaGraphEventRecordNodeGetEvent __pyx_string_tab[2190]
#define __pyx_n_u_cudaGraphEventRecordNodeSetEvent __pyx_string_tab[2191]
#define __pyx_n_u_cudaGraphEventWaitNodeGetEvent __pyx_string_tab[2192]
#define __pyx_n_u_cudaGraphEventWaitNodeSetEvent __pyx_string_tab[2193]
#define __pyx_n_u_cudaGraphExecChildGraphNodeSetPa __pyx_string_tab[2194]
#define __pyx_n_u_cudaGraphExecDestroy __pyx_string_tab[2195]
#define __pyx_n_u_cudaGraphExecEventRecordNodeSetE __pyx_string_tab[2196]
#define __pyx_n_u_cudaGraphExecEventWaitNodeSetEve __pyx_string_tab[2197]
#define __pyx_n_u_cudaGraphExecExternalSemaphoresS __pyx_string_tab[2198]
#define __pyx_n_u_cudaGraphExecExternalSemaphoresW __pyx_string_tab[2199]
#define __pyx_n_u_cudaGraphExecGetFlags __pyx_string_tab[2200]
#define __pyx_n_u_cudaGraphExecGetId __pyx_string_tab[2201]
#define __pyx_n_u_cudaGraphExecHostNodeSetParams __pyx_string_tab[2202]
#define __pyx_n_u_cudaGraphExecKernelNodeSetParams __pyx_string_tab[2203]
#define __pyx_n_u_cudaGraphExecMemcpyNodeSetParams __pyx_string_tab[2204]
#define __pyx_n_u_cudaGraphExecMemcpyNodeSetParams_2 __pyx_string_tab[2205]
#define __pyx_n_u_cudaGraphExecMemsetNodeSetParams __pyx_string_tab[2206]
#define __pyx_n_u_cudaGraphExecNodeSetParams __pyx_string_tab[2207]
#define __pyx_n_u_cudaGraphExecUpdate __pyx_string_tab[2208]
#define __pyx_n_u_cudaGraphExecUpdateError __pyx_string_tab[2209]
#define __pyx_n_u_cudaGraphExecUpdateErrorAttribut __pyx_string_tab[2210]
#define __pyx_n_u_cudaGraphExecUpdateErrorFunction __pyx_string_tab[2211]
#define __pyx_n_u_cudaGraphExecUpdateErrorNodeType __pyx_string_tab[2212]
#define __pyx_n_u_cudaGraphExecUpdateErrorNotSuppo __pyx_string_tab[2213]
#define __pyx_n_u_cudaGraphExecUpdateErrorParamete __pyx_string_tab[2214]
#define __pyx_n_u_cudaGraphExecUpdateErrorTopology __pyx_string_tab[2215]
#define __pyx_n_u_cudaGraphExecUpdateErrorUnsuppor __pyx_string_tab[2216]
#define __pyx_n_u_cudaGraphExecUpdateResult __pyx_string_tab[2217]
#define __pyx_n_u_cudaGraphExecUpdateResultInfo __pyx_string_tab[2218]
#define __pyx_n_u_cudaGraphExecUpdateResultInfo_st __pyx_string_tab[2219]
#define __pyx_n_u_cudaGraphExecUpdateResultInfo_st_2 __pyx_string_tab[2220]
#define __pyx_n_u_cudaGraphExecUpdateResultInfo_st_3 __pyx_string_tab[2221]
#define __pyx_n_u_cudaGraphExecUpdateResultInfo_st_4 __pyx_string_tab[2222]
#define __pyx_n_u_cudaGraphExecUpdateSuccess __pyx_string_tab[2223]
#define __pyx_n_u_cudaGraphExec_t __pyx_string_tab[2224]
#define __pyx_n_u_cudaGraphExec_t_getter __pyx_string_tab[2225]
#define __pyx_n_u_cudaGraphExternalSemaphoresSigna __pyx_string_tab[2226]
#define __pyx_n_u_cudaGraphExternalSemaphoresSigna_2 __pyx_string_tab[2227]
#define __pyx_n_u_cudaGraphExternalSemaphoresWaitN __pyx_string_tab[2228]
#define __pyx_n_u_cudaGraphExternalSemaphoresWaitN_2 __pyx_string_tab[2229]
#define __pyx_n_u_cudaGraphGetEdges __pyx_string_tab[2230]
#define __pyx_n_u_cudaGraphGetId __pyx_string_tab[2231]
#define __pyx_n_u_cudaGraphGetNodes __pyx_string_tab[2232]
#define __pyx_n_u_cudaGraphGetRootNodes __pyx_string_tab[2233]
#define __pyx_n_u_cudaGraphHostNodeGetParams __pyx_string_tab[2234]
#define __pyx_n_u_cudaGraphHostNodeSetParams __pyx_string_tab[2235]
#define __pyx_n_u_cudaGraphInstantiate __pyx_string_tab[2236]
#define __pyx_n_u_cudaGraphInstantiateConditionalH __pyx_string_tab[2237]
#define __pyx_n_u_cudaGraphInstantiateError __pyx_string_tab[2238]
#define __pyx_n_u_cudaGraphInstantiateFlagAutoFree __pyx_string_tab[2239]
#define __pyx_n_u_cudaGraphInstantiateFlagDeviceLa __pyx_string_tab[2240]
#define __pyx_n_u_cudaGraphInstantiateFlagUpload __pyx_string_tab[2241]
#define __pyx_n_u_cudaGraphInstantiateFlagUseNodeP __pyx_string_tab[2242]
#define __pyx_n_u_cudaGraphInstantiateFlags __pyx_string_tab[2243]
#define __pyx_n_u_cudaGraphInstantiateInvalidStruc __pyx_string_tab[2244]
#define __pyx_n_u_cudaGraphInstantiateMultipleDevi __pyx_string_tab[2245]
#define __pyx_n_u_cudaGraphInstantiateNodeOperatio __pyx_string_tab[2246]
#define __pyx_n_u_cudaGraphInstantiateParams __pyx_string_tab[2247]
#define __pyx_n_u_cudaGraphInstantiateParams_st __pyx_string_tab[2248]
#define __pyx_n_u_cudaGraphInstantiateParams_st_2 __pyx_string_tab[2249]
#define __pyx_n_u_cudaGraphInstantiateParams_st_3 __pyx_string_tab[2250]
#define __pyx_n_u_cudaGraphInstantiateParams_st_ge __pyx_string_tab[2251]
#define __pyx_n_u_cudaGraphInstantiateResult __pyx_string_tab[2252]
#define __pyx_n_u_cudaGraphInstantiateSuccess __pyx_string_tab[2253]
#define __pyx_n_u_cudaGraphInstantiateWithFlags __pyx_string_tab[2254]
#define __pyx_n_u_cudaGraphInstantiateWithParams __pyx_string_tab[2255]
#define __pyx_n_u_cudaGraphKernelNodeCopyAttribute __pyx_string_tab[2256]
#define __pyx_n_u_cudaGraphKernelNodeField __pyx_string_tab[2257]
#define __pyx_n_u_cudaGraphKernelNodeFieldEnabled __pyx_string_tab[2258]
#define __pyx_n_u_cudaGraphKernelNodeFieldGridDim __pyx_string_tab[2259]
#define __pyx_n_u_cudaGraphKernelNodeFieldInvalid __pyx_string_tab[2260]
#define __pyx_n_u_cudaGraphKernelNodeFieldParam __pyx_string_tab[2261]
#define __pyx_n_u_cudaGraphKernelNodeGetAttribute __pyx_string_tab[2262]
#define __pyx_n_u_cudaGraphKernelNodeGetParams __pyx_string_tab[2263]
#define __pyx_n_u_cudaGraphKernelNodePortDefault __pyx_string_tab[2264]
#define __pyx_n_u_cudaGraphKernelNodePortLaunchCom __pyx_string_tab[2265]
#define __pyx_n_u_cudaGraphKernelNodePortProgramma __pyx_string_tab[2266]
#define __pyx_n_u_cudaGraphKernelNodeSetAttribute __pyx_string_tab[2267]
#define __pyx_n_u_cudaGraphKernelNodeSetParams __pyx_string_tab[2268]
#define __pyx_n_u_cudaGraphKernelNodeUpdate __pyx_string_tab[2269]
#define __pyx_n_u_cudaGraphKernelNodeUpdate___redu __pyx_string_tab[2270]
#define __pyx_n_u_cudaGraphKernelNodeUpdate___sets __pyx_string_tab[2271]
#define __pyx_n_u_cudaGraphKernelNodeUpdate_getPtr __pyx_string_tab[2272]
#define __pyx_n_u_cudaGraphLaunch __pyx_string_tab[2273]
#define __pyx_n_u_cudaGraphMemAllocNodeGetParams __pyx_string_tab[2274]
#define __pyx_n_u_cudaGraphMemAttrReservedMemCurre __pyx_string_tab[2275]
#define __pyx_n_u_cudaGraphMemAttrReservedMemHigh __pyx_string_tab[2276]
#define __pyx_n_u_cudaGraphMemAttrUsedMemCurrent __pyx_string_tab[2277]
#define __pyx_n_u_cudaGraphMemAttrUsedMemHigh __pyx_string_tab[2278]
#define __pyx_n_u_cudaGraphMemAttributeType __pyx_string_tab[2279]
#define __pyx_n_u_cudaGraphMemFreeNodeGetParams __pyx_string_tab[2280]
#define __pyx_n_u_cudaGraphMemcpyNodeGetParams __pyx_string_tab[2281]
#define __pyx_n_u_cudaGraphMemcpyNodeSetParams __pyx_string_tab[2282]
#define __pyx_n_u_cudaGraphMemcpyNodeSetParams1D __pyx_string_tab[2283]
#define __pyx_n_u_cudaGraphMemsetNodeGetParams __pyx_string_tab[2284]
#define __pyx_n_u_cudaGraphMemsetNodeSetParams __pyx_string_tab[2285]
#define __pyx_n_u_cudaGraphNodeFindInClone __pyx_string_tab[2286]
#define __pyx_n_u_cudaGraphNodeGetContainingGraph __pyx_string_tab[2287]
#define __pyx_n_u_cudaGraphNodeGetDependencies __pyx_string_tab[2288]
#define __pyx_n_u_cudaGraphNodeGetDependentNodes __pyx_string_tab[2289]
#define __pyx_n_u_cudaGraphNodeGetEnabled __pyx_string_tab[2290]
#define __pyx_n_u_cudaGraphNodeGetLocalId __pyx_string_tab[2291]
#define __pyx_n_u_cudaGraphNodeGetToolsId __pyx_string_tab[2292]
#define __pyx_n_u_cudaGraphNodeGetType __pyx_string_tab[2293]
#define __pyx_n_u_cudaGraphNodeParams __pyx_string_tab[2294]
#define __pyx_n_u_cudaGraphNodeParams___reduce_cyt __pyx_string_tab[2295]
#define __pyx_n_u_cudaGraphNodeParams___setstate_c __pyx_string_tab[2296]
#define __pyx_n_u_cudaGraphNodeParams_getPtr __pyx_string_tab[2297]
#define __pyx_n_u_cudaGraphNodeSetEnabled __pyx_string_tab[2298]
#define __pyx_n_u_cudaGraphNodeSetParams __pyx_string_tab[2299]
#define __pyx_n_u_cudaGraphNodeType __pyx_string_tab[2300]
#define __pyx_n_u_cudaGraphNodeTypeConditional __pyx_string_tab[2301]
#define __pyx_n_u_cudaGraphNodeTypeCount __pyx_string_tab[2302]
#define __pyx_n_u_cudaGraphNodeTypeEmpty __pyx_string_tab[2303]
#define __pyx_n_u_cudaGraphNodeTypeEventRecord __pyx_string_tab[2304]
#define __pyx_n_u_cudaGraphNodeTypeExtSemaphoreSig __pyx_string_tab[2305]
#define __pyx_n_u_cudaGraphNodeTypeExtSemaphoreWai __pyx_string_tab[2306]
#define __pyx_n_u_cudaGraphNodeTypeGraph __pyx_string_tab[2307]
#define __pyx_n_u_cudaGraphNodeTypeHost __pyx_string_tab[2308]
#define __pyx_n_u_cudaGraphNodeTypeKernel __pyx_string_tab[2309]
#define __pyx_n_u_cudaGraphNodeTypeMemAlloc __pyx_string_tab[2310]
#define __pyx_n_u_cudaGraphNodeTypeMemFree __pyx_string_tab[2311]
#define __pyx_n_u_cudaGraphNodeTypeMemcpy __pyx_string_tab[2312]
#define __pyx_n_u_cudaGraphNodeTypeMemset __pyx_string_tab[2313]
#define __pyx_n_u_cudaGraphNodeTypeWaitEvent __pyx_string_tab[2314]
#define __pyx_n_u_cudaGraphNode_t __pyx_string_tab[2315]
#define __pyx_n_u_cudaGraphNode_t_getter __pyx_string_tab[2316]
#define __pyx_n_u_cudaGraphReleaseUserObject __pyx_string_tab[2317]
#define __pyx_n_u_cudaGraphRemoveDependencies __pyx_string_tab[2318]
#define __pyx_n_u_cudaGraphRemoveDependencies_loca __pyx_string_tab[2319]
#define __pyx_n_u_cudaGraphRetainUserObject __pyx_string_tab[2320]
#define __pyx_n_u_cudaGraphUpload __pyx_string_tab[2321]
#define __pyx_n_u_cudaGraphUserObjectMove __pyx_string_tab[2322]
#define __pyx_n_u_cudaGraph_t __pyx_string_tab[2323]
#define __pyx_n_u_cudaGraph_t_getter __pyx_string_tab[2324]
#define __pyx_n_u_cudaGraphicsCubeFace __pyx_string_tab[2325]
#define __pyx_n_u_cudaGraphicsCubeFaceNegativeX __pyx_string_tab[2326]
#define __pyx_n_u_cudaGraphicsCubeFaceNegativeY __pyx_string_tab[2327]
#define __pyx_n_u_cudaGraphicsCubeFaceNegativeZ __pyx_string_tab[2328]
#define __pyx_n_u_cudaGraphicsCubeFacePositiveX __pyx_string_tab[2329]
#define __pyx_n_u_cudaGraphicsCubeFacePositiveY __pyx_string_tab[2330]
#define __pyx_n_u_cudaGraphicsCubeFacePositiveZ __pyx_string_tab[2331]
#define __pyx_n_u_cudaGraphicsEGLRegisterImage __pyx_string_tab[2332]
#define __pyx_n_u_cudaGraphicsGLRegisterBuffer __pyx_string_tab[2333]
#define __pyx_n_u_cudaGraphicsGLRegisterImage __pyx_string_tab[2334]
#define __pyx_n_u_cudaGraphicsMapFlags __pyx_string_tab[2335]
#define __pyx_n_u_cudaGraphicsMapFlagsNone __pyx_string_tab[2336]
#define __pyx_n_u_cudaGraphicsMapFlagsReadOnly __pyx_string_tab[2337]
#define __pyx_n_u_cudaGraphicsMapFlagsWriteDiscard __pyx_string_tab[2338]
#define __pyx_n_u_cudaGraphicsMapResources __pyx_string_tab[2339]
#define __pyx_n_u_cudaGraphicsRegisterFlags __pyx_string_tab[2340]
#define __pyx_n_u_cudaGraphicsRegisterFlagsNone __pyx_string_tab[2341]
#define __pyx_n_u_cudaGraphicsRegisterFlagsReadOnl __pyx_string_tab[2342]
#define __pyx_n_u_cudaGraphicsRegisterFlagsSurface __pyx_string_tab[2343]
#define __pyx_n_u_cudaGraphicsRegisterFlagsTexture __pyx_string_tab[2344]
#define __pyx_n_u_cudaGraphicsRegisterFlagsWriteDi __pyx_string_tab[2345]
#define __pyx_n_u_cudaGraphicsResourceGetMappedEgl __pyx_string_tab[2346]
#define __pyx_n_u_cudaGraphicsResourceGetMappedMip __pyx_string_tab[2347]
#define __pyx_n_u_cudaGraphicsResourceGetMappedPoi __pyx_string_tab[2348]
#define __pyx_n_u_cudaGraphicsResourceSetMapFlags __pyx_string_tab[2349]
#define __pyx_n_u_cudaGraphicsResource_t_2 __pyx_string_tab[2350]
#define __pyx_n_u_cudaGraphicsResource_t___reduce __pyx_string_tab[2351]
#define __pyx_n_u_cudaGraphicsResource_t___setstat __pyx_string_tab[2352]
#define __pyx_n_u_cudaGraphicsResource_t_getPtr __pyx_string_tab[2353]
#define __pyx_n_u_cudaGraphicsResource_t_getter __pyx_string_tab[2354]
#define __pyx_n_u_cudaGraphicsSubResourceGetMapped __pyx_string_tab[2355]
#define __pyx_n_u_cudaGraphicsUnmapResources __pyx_string_tab[2356]
#define __pyx_n_u_cudaGraphicsUnregisterResource __pyx_string_tab[2357]
#define __pyx_n_u_cudaGraphicsVDPAURegisterOutputS __pyx_string_tab[2358]
#define __pyx_n_u_cudaGraphicsVDPAURegisterVideoSu __pyx_string_tab[2359]
#define __pyx_n_u_cudaGreenCtxCreate __pyx_string_tab[2360]
#define __pyx_n_u_cudaHostAlloc __pyx_string_tab[2361]
#define __pyx_n_u_cudaHostAllocDefault __pyx_string_tab[2362]
#define __pyx_n_u_cudaHostAllocMapped __pyx_string_tab[2363]
#define __pyx_n_u_cudaHostAllocPortable __pyx_string_tab[2364]
#define __pyx_n_u_cudaHostAllocWriteCombined __pyx_string_tab[2365]
#define __pyx_n_u_cudaHostFn_t_2 __pyx_string_tab[2366]
#define __pyx_n_u_cudaHostFn_t___reduce_cython __pyx_string_tab[2367]
#define __pyx_n_u_cudaHostFn_t___setstate_cython __pyx_string_tab[2368]
#define __pyx_n_u_cudaHostFn_t_getPtr __pyx_string_tab[2369]
#define __pyx_n_u_cudaHostGetDevicePointer __pyx_string_tab[2370]
#define __pyx_n_u_cudaHostGetFlags __pyx_string_tab[2371]
#define __pyx_n_u_cudaHostNodeParams __pyx_string_tab[2372]
#define __pyx_n_u_cudaHostNodeParamsV2 __pyx_string_tab[2373]
#define __pyx_n_u_cudaHostNodeParamsV2___reduce_cy __pyx_string_tab[2374]
#define __pyx_n_u_cudaHostNodeParamsV2___setstate __pyx_string_tab[2375]
#define __pyx_n_u_cudaHostNodeParamsV2_getPtr __pyx_string_tab[2376]
#define __pyx_n_u_cudaHostNodeParams___reduce_cyth __pyx_string_tab[2377]
#define __pyx_n_u_cudaHostNodeParams___setstate_cy __pyx_string_tab[2378]
#define __pyx_n_u_cudaHostNodeParams_getPtr __pyx_string_tab[2379]
#define __pyx_n_u_cudaHostRegister __pyx_string_tab[2380]
#define __pyx_n_u_cudaHostRegisterDefault __pyx_string_tab[2381]
#define __pyx_n_u_cudaHostRegisterIoMemory __pyx_string_tab[2382]
#define __pyx_n_u_cudaHostRegisterMapped __pyx_string_tab[2383]
#define __pyx_n_u_cudaHostRegisterPortable __pyx_string_tab[2384]
#define __pyx_n_u_cudaHostRegisterReadOnly __pyx_string_tab[2385]
#define __pyx_n_u_cudaHostUnregister __pyx_string_tab[2386]
#define __pyx_n_u_cudaImportExternalMemory __pyx_string_tab[2387]
#define __pyx_n_u_cudaImportExternalSemaphore __pyx_string_tab[2388]
#define __pyx_n_u_cudaInitDevice __pyx_string_tab[2389]
#define __pyx_n_u_cudaInitDeviceFlagsAreValid __pyx_string_tab[2390]
#define __pyx_n_u_cudaInvalidDeviceId __pyx_string_tab[2391]
#define __pyx_n_u_cudaIpcCloseMemHandle __pyx_string_tab[2392]
#define __pyx_n_u_cudaIpcEventHandle_st __pyx_string_tab[2393]
#define __pyx_n_u_cudaIpcEventHandle_st___reduce_c __pyx_string_tab[2394]
#define __pyx_n_u_cudaIpcEventHandle_st___setstate __pyx_string_tab[2395]
#define __pyx_n_u_cudaIpcEventHandle_st_getPtr __pyx_string_tab[2396]
#define __pyx_n_u_cudaIpcEventHandle_t __pyx_string_tab[2397]
#define __pyx_n_u_cudaIpcGetEventHandle __pyx_string_tab[2398]
#define __pyx_n_u_cudaIpcGetMemHandle __pyx_string_tab[2399]
#define __pyx_n_u_cudaIpcMemHandle_st __pyx_string_tab[2400]
#define __pyx_n_u_cudaIpcMemHandle_st___reduce_cyt __pyx_string_tab[2401]
#define __pyx_n_u_cudaIpcMemHandle_st___setstate_c __pyx_string_tab[2402]
#define __pyx_n_u_cudaIpcMemHandle_st_getPtr __pyx_string_tab[2403]
#define __pyx_n_u_cudaIpcMemHandle_t __pyx_string_tab[2404]
#define __pyx_n_u_cudaIpcMemLazyEnablePeerAccess __pyx_string_tab[2405]
#define __pyx_n_u_cudaIpcOpenEventHandle __pyx_string_tab[2406]
#define __pyx_n_u_cudaIpcOpenMemHandle __pyx_string_tab[2407]
#define __pyx_n_u_cudaJitCacheMode __pyx_string_tab[2408]
#define __pyx_n_u_cudaJitCacheOptionCA __pyx_string_tab[2409]
#define __pyx_n_u_cudaJitCacheOptionCG __pyx_string_tab[2410]
#define __pyx_n_u_cudaJitCacheOptionNone __pyx_string_tab[2411]
#define __pyx_n_u_cudaJitErrorLogBuffer __pyx_string_tab[2412]
#define __pyx_n_u_cudaJitErrorLogBufferSizeBytes __pyx_string_tab[2413]
#define __pyx_n_u_cudaJitFallbackStrategy __pyx_string_tab[2414]
#define __pyx_n_u_cudaJitGenerateDebugInfo __pyx_string_tab[2415]
#define __pyx_n_u_cudaJitGenerateLineInfo __pyx_string_tab[2416]
#define __pyx_n_u_cudaJitInfoLogBuffer __pyx_string_tab[2417]
#define __pyx_n_u_cudaJitInfoLogBufferSizeBytes __pyx_string_tab[2418]
#define __pyx_n_u_cudaJitLogVerbose __pyx_string_tab[2419]
#define __pyx_n_u_cudaJitMaxRegisters __pyx_string_tab[2420]
#define __pyx_n_u_cudaJitMaxThreadsPerBlock __pyx_string_tab[2421]
#define __pyx_n_u_cudaJitMinCtaPerSm __pyx_string_tab[2422]
#define __pyx_n_u_cudaJitOptimizationLevel __pyx_string_tab[2423]
#define __pyx_n_u_cudaJitOption __pyx_string_tab[2424]
#define __pyx_n_u_cudaJitOverrideDirectiveValues __pyx_string_tab[2425]
#define __pyx_n_u_cudaJitPositionIndependentCode __pyx_string_tab[2426]
#define __pyx_n_u_cudaJitThreadsPerBlock __pyx_string_tab[2427]
#define __pyx_n_u_cudaJitWallTime __pyx_string_tab[2428]
#define __pyx_n_u_cudaJit_CacheMode __pyx_string_tab[2429]
#define __pyx_n_u_cudaJit_Fallback __pyx_string_tab[2430]
#define __pyx_n_u_cudaKernelNodeAttrID __pyx_string_tab[2431]
#define __pyx_n_u_cudaKernelNodeAttrValue __pyx_string_tab[2432]
#define __pyx_n_u_cudaKernelNodeAttributeAccessPol __pyx_string_tab[2433]
#define __pyx_n_u_cudaKernelNodeAttributeClusterDi __pyx_string_tab[2434]
#define __pyx_n_u_cudaKernelNodeAttributeClusterSc __pyx_string_tab[2435]
#define __pyx_n_u_cudaKernelNodeAttributeCooperati __pyx_string_tab[2436]
#define __pyx_n_u_cudaKernelNodeAttributeDeviceUpd __pyx_string_tab[2437]
#define __pyx_n_u_cudaKernelNodeAttributeMemSyncDo __pyx_string_tab[2438]
#define __pyx_n_u_cudaKernelNodeAttributeMemSyncDo_2 __pyx_string_tab[2439]
#define __pyx_n_u_cudaKernelNodeAttributeNvlinkUti __pyx_string_tab[2440]
#define __pyx_n_u_cudaKernelNodeAttributePreferred __pyx_string_tab[2441]
#define __pyx_n_u_cudaKernelNodeAttributePriority __pyx_string_tab[2442]
#define __pyx_n_u_cudaKernelNodeParams __pyx_string_tab[2443]
#define __pyx_n_u_cudaKernelNodeParamsV2 __pyx_string_tab[2444]
#define __pyx_n_u_cudaKernelNodeParamsV2___reduce __pyx_string_tab[2445]
#define __pyx_n_u_cudaKernelNodeParamsV2___setstat __pyx_string_tab[2446]
#define __pyx_n_u_cudaKernelNodeParamsV2_getPtr __pyx_string_tab[2447]
#define __pyx_n_u_cudaKernelNodeParams___reduce_cy __pyx_string_tab[2448]
#define __pyx_n_u_cudaKernelNodeParams___setstate __pyx_string_tab[2449]
#define __pyx_n_u_cudaKernelNodeParams_getPtr __pyx_string_tab[2450]
#define __pyx_n_u_cudaKernelSetAttributeForDevice __pyx_string_tab[2451]
#define __pyx_n_u_cudaKernel_t_2 __pyx_string_tab[2452]
#define __pyx_n_u_cudaKernel_t___reduce_cython __pyx_string_tab[2453]
#define __pyx_n_u_cudaKernel_t___setstate_cython __pyx_string_tab[2454]
#define __pyx_n_u_cudaKernel_t_getPtr __pyx_string_tab[2455]
#define __pyx_n_u_cudaKernel_t_getter __pyx_string_tab[2456]
#define __pyx_n_u_cudaLaunchAttribute __pyx_string_tab[2457]
#define __pyx_n_u_cudaLaunchAttributeAccessPolicyW __pyx_string_tab[2458]
#define __pyx_n_u_cudaLaunchAttributeClusterDimens __pyx_string_tab[2459]
#define __pyx_n_u_cudaLaunchAttributeClusterSchedu __pyx_string_tab[2460]
#define __pyx_n_u_cudaLaunchAttributeCooperative __pyx_string_tab[2461]
#define __pyx_n_u_cudaLaunchAttributeDeviceUpdatab __pyx_string_tab[2462]
#define __pyx_n_u_cudaLaunchAttributeID __pyx_string_tab[2463]
#define __pyx_n_u_cudaLaunchAttributeIgnore __pyx_string_tab[2464]
#define __pyx_n_u_cudaLaunchAttributeLaunchComplet __pyx_string_tab[2465]
#define __pyx_n_u_cudaLaunchAttributeMemSyncDomain __pyx_string_tab[2466]
#define __pyx_n_u_cudaLaunchAttributeMemSyncDomain_2 __pyx_string_tab[2467]
#define __pyx_n_u_cudaLaunchAttributeNvlinkUtilCen __pyx_string_tab[2468]
#define __pyx_n_u_cudaLaunchAttributePreferredClus __pyx_string_tab[2469]
#define __pyx_n_u_cudaLaunchAttributePreferredShar __pyx_string_tab[2470]
#define __pyx_n_u_cudaLaunchAttributePriority __pyx_string_tab[2471]
#define __pyx_n_u_cudaLaunchAttributeProgrammaticE __pyx_string_tab[2472]
#define __pyx_n_u_cudaLaunchAttributeProgrammaticS __pyx_string_tab[2473]
#define __pyx_n_u_cudaLaunchAttributeSynchronizati __pyx_string_tab[2474]
#define __pyx_n_u_cudaLaunchAttributeValue __pyx_string_tab[2475]
#define __pyx_n_u_cudaLaunchAttributeValue___reduc __pyx_string_tab[2476]
#define __pyx_n_u_cudaLaunchAttributeValue___setst __pyx_string_tab[2477]
#define __pyx_n_u_cudaLaunchAttributeValue_getPtr __pyx_string_tab[2478]
#define __pyx_n_u_cudaLaunchAttribute_st __pyx_string_tab[2479]
#define __pyx_n_u_cudaLaunchAttribute_st___reduce __pyx_string_tab[2480]
#define __pyx_n_u_cudaLaunchAttribute_st___setstat __pyx_string_tab[2481]
#define __pyx_n_u_cudaLaunchAttribute_st_getPtr __pyx_string_tab[2482]
#define __pyx_n_u_cudaLaunchHostFunc __pyx_string_tab[2483]
#define __pyx_n_u_cudaLaunchMemSyncDomain __pyx_string_tab[2484]
#define __pyx_n_u_cudaLaunchMemSyncDomainDefault __pyx_string_tab[2485]
#define __pyx_n_u_cudaLaunchMemSyncDomainMap __pyx_string_tab[2486]
#define __pyx_n_u_cudaLaunchMemSyncDomainMap_st __pyx_string_tab[2487]
#define __pyx_n_u_cudaLaunchMemSyncDomainMap_st_2 __pyx_string_tab[2488]
#define __pyx_n_u_cudaLaunchMemSyncDomainMap_st_3 __pyx_string_tab[2489]
#define __pyx_n_u_cudaLaunchMemSyncDomainMap_st_ge __pyx_string_tab[2490]
#define __pyx_n_u_cudaLaunchMemSyncDomainRemote __pyx_string_tab[2491]
#define __pyx_n_u_cudaLibraryBinaryIsPreserved __pyx_string_tab[2492]
#define __pyx_n_u_cudaLibraryEnumerateKernels __pyx_string_tab[2493]
#define __pyx_n_u_cudaLibraryGetGlobal __pyx_string_tab[2494]
#define __pyx_n_u_cudaLibraryGetKernel __pyx_string_tab[2495]
#define __pyx_n_u_cudaLibraryGetKernelCount __pyx_string_tab[2496]
#define __pyx_n_u_cudaLibraryGetManaged __pyx_string_tab[2497]
#define __pyx_n_u_cudaLibraryGetUnifiedFunction __pyx_string_tab[2498]
#define __pyx_n_u_cudaLibraryHostUniversalFunction __pyx_string_tab[2499]
#define __pyx_n_u_cudaLibraryLoadData __pyx_string_tab[2500]
#define __pyx_n_u_cudaLibraryLoadData_locals_genex __pyx_string_tab[2501]
#define __pyx_n_u_cudaLibraryLoadFromFile __pyx_string_tab[2502]
#define __pyx_n_u_cudaLibraryLoadFromFile_locals_g __pyx_string_tab[2503]
#define __pyx_n_u_cudaLibraryOption __pyx_string_tab[2504]
#define __pyx_n_u_cudaLibraryUnload __pyx_string_tab[2505]
#define __pyx_n_u_cudaLibrary_t_2 __pyx_string_tab[2506]
#define __pyx_n_u_cudaLibrary_t___reduce_cython __pyx_string_tab[2507]
#define __pyx_n_u_cudaLibrary_t___setstate_cython __pyx_string_tab[2508]
#define __pyx_n_u_cudaLibrary_t_getPtr __pyx_string_tab[2509]
#define __pyx_n_u_cudaLibrary_t_getter __pyx_string_tab[2510]
#define __pyx_n_u_cudaLimit __pyx_string_tab[2511]
#define __pyx_n_u_cudaLimitDevRuntimePendingLaunch __pyx_string_tab[2512]
#define __pyx_n_u_cudaLimitDevRuntimeSyncDepth __pyx_string_tab[2513]
#define __pyx_n_u_cudaLimitMallocHeapSize __pyx_string_tab[2514]
#define __pyx_n_u_cudaLimitMaxL2FetchGranularity __pyx_string_tab[2515]
#define __pyx_n_u_cudaLimitPersistingL2CacheSize __pyx_string_tab[2516]
#define __pyx_n_u_cudaLimitPrintfFifoSize __pyx_string_tab[2517]
#define __pyx_n_u_cudaLimitStackSize __pyx_string_tab[2518]
#define __pyx_n_u_cudaLogIterator_2 __pyx_string_tab[2519]
#define __pyx_n_u_cudaLogIterator___reduce_cython __pyx_string_tab[2520]
#define __pyx_n_u_cudaLogIterator___setstate_cytho __pyx_string_tab[2521]
#define __pyx_n_u_cudaLogIterator_getPtr __pyx_string_tab[2522]
#define __pyx_n_u_cudaLogLevel __pyx_string_tab[2523]
#define __pyx_n_u_cudaLogLevelError __pyx_string_tab[2524]
#define __pyx_n_u_cudaLogLevelWarning __pyx_string_tab[2525]
#define __pyx_n_u_cudaLogsCallbackHandle_2 __pyx_string_tab[2526]
#define __pyx_n_u_cudaLogsCallbackHandle___reduce __pyx_string_tab[2527]
#define __pyx_n_u_cudaLogsCallbackHandle___setstat __pyx_string_tab[2528]
#define __pyx_n_u_cudaLogsCallbackHandle_getPtr __pyx_string_tab[2529]
#define __pyx_n_u_cudaLogsCallbackHandle_getter __pyx_string_tab[2530]
#define __pyx_n_u_cudaLogsCallback_t_2 __pyx_string_tab[2531]
#define __pyx_n_u_cudaLogsCallback_t___reduce_cyth __pyx_string_tab[2532]
#define __pyx_n_u_cudaLogsCallback_t___setstate_cy __pyx_string_tab[2533]
#define __pyx_n_u_cudaLogsCallback_t_getPtr __pyx_string_tab[2534]
#define __pyx_n_u_cudaLogsCurrent __pyx_string_tab[2535]
#define __pyx_n_u_cudaLogsDumpToFile __pyx_string_tab[2536]
#define __pyx_n_u_cudaLogsDumpToMemory __pyx_string_tab[2537]
#define __pyx_n_u_cudaLogsRegisterCallback __pyx_string_tab[2538]
#define __pyx_n_u_cudaLogsUnregisterCallback __pyx_string_tab[2539]
#define __pyx_n_u_cudaMalloc __pyx_string_tab[2540]
#define __pyx_n_u_cudaMalloc3D __pyx_string_tab[2541]
#define __pyx_n_u_cudaMalloc3DArray __pyx_string_tab[2542]
#define __pyx_n_u_cudaMallocArray __pyx_string_tab[2543]
#define __pyx_n_u_cudaMallocAsync __pyx_string_tab[2544]
#define __pyx_n_u_cudaMallocFromPoolAsync __pyx_string_tab[2545]
#define __pyx_n_u_cudaMallocHost __pyx_string_tab[2546]
#define __pyx_n_u_cudaMallocManaged __pyx_string_tab[2547]
#define __pyx_n_u_cudaMallocMipmappedArray __pyx_string_tab[2548]
#define __pyx_n_u_cudaMallocPitch __pyx_string_tab[2549]
#define __pyx_n_u_cudaMemAccessDesc __pyx_string_tab[2550]
#define __pyx_n_u_cudaMemAccessDesc___reduce_cytho __pyx_string_tab[2551]
#define __pyx_n_u_cudaMemAccessDesc___setstate_cyt __pyx_string_tab[2552]
#define __pyx_n_u_cudaMemAccessDesc_getPtr __pyx_string_tab[2553]
#define __pyx_n_u_cudaMemAccessFlags __pyx_string_tab[2554]
#define __pyx_n_u_cudaMemAccessFlagsProtNone __pyx_string_tab[2555]
#define __pyx_n_u_cudaMemAccessFlagsProtRead __pyx_string_tab[2556]
#define __pyx_n_u_cudaMemAccessFlagsProtReadWrite __pyx_string_tab[2557]
#define __pyx_n_u_cudaMemAdvise __pyx_string_tab[2558]
#define __pyx_n_u_cudaMemAdviseSetAccessedBy __pyx_string_tab[2559]
#define __pyx_n_u_cudaMemAdviseSetPreferredLocatio __pyx_string_tab[2560]
#define __pyx_n_u_cudaMemAdviseSetReadMostly __pyx_string_tab[2561]
#define __pyx_n_u_cudaMemAdviseUnsetAccessedBy __pyx_string_tab[2562]
#define __pyx_n_u_cudaMemAdviseUnsetPreferredLocat __pyx_string_tab[2563]
#define __pyx_n_u_cudaMemAdviseUnsetReadMostly __pyx_string_tab[2564]
#define __pyx_n_u_cudaMemAllocNodeParams __pyx_string_tab[2565]
#define __pyx_n_u_cudaMemAllocNodeParamsV2 __pyx_string_tab[2566]
#define __pyx_n_u_cudaMemAllocNodeParamsV2___reduc __pyx_string_tab[2567]
#define __pyx_n_u_cudaMemAllocNodeParamsV2___setst __pyx_string_tab[2568]
#define __pyx_n_u_cudaMemAllocNodeParamsV2_getPtr __pyx_string_tab[2569]
#define __pyx_n_u_cudaMemAllocNodeParams___reduce __pyx_string_tab[2570]
#define __pyx_n_u_cudaMemAllocNodeParams___setstat __pyx_string_tab[2571]
#define __pyx_n_u_cudaMemAllocNodeParams_getPtr __pyx_string_tab[2572]
#define __pyx_n_u_cudaMemAllocationHandleType __pyx_string_tab[2573]
#define __pyx_n_u_cudaMemAllocationType __pyx_string_tab[2574]
#define __pyx_n_u_cudaMemAllocationTypeInvalid __pyx_string_tab[2575]
#define __pyx_n_u_cudaMemAllocationTypeManaged __pyx_string_tab[2576]
#define __pyx_n_u_cudaMemAllocationTypeMax __pyx_string_tab[2577]
#define __pyx_n_u_cudaMemAllocationTypePinned __pyx_string_tab[2578]
#define __pyx_n_u_cudaMemAttachGlobal __pyx_string_tab[2579]
#define __pyx_n_u_cudaMemAttachHost __pyx_string_tab[2580]
#define __pyx_n_u_cudaMemAttachSingle __pyx_string_tab[2581]
#define __pyx_n_u_cudaMemDiscardAndPrefetchBatchAs __pyx_string_tab[2582]
#define __pyx_n_u_cudaMemDiscardAndPrefetchBatchAs_2 __pyx_string_tab[2583]
#define __pyx_n_u_cudaMemDiscardBatchAsync __pyx_string_tab[2584]
#define __pyx_n_u_cudaMemDiscardBatchAsync_locals __pyx_string_tab[2585]
#define __pyx_n_u_cudaMemFabricHandle_st __pyx_string_tab[2586]
#define __pyx_n_u_cudaMemFabricHandle_st___reduce __pyx_string_tab[2587]
#define __pyx_n_u_cudaMemFabricHandle_st___setstat __pyx_string_tab[2588]
#define __pyx_n_u_cudaMemFabricHandle_st_getPtr __pyx_string_tab[2589]
#define __pyx_n_u_cudaMemFabricHandle_t __pyx_string_tab[2590]
#define __pyx_n_u_cudaMemFreeNodeParams __pyx_string_tab[2591]
#define __pyx_n_u_cudaMemFreeNodeParams___reduce_c __pyx_string_tab[2592]
#define __pyx_n_u_cudaMemFreeNodeParams___setstate __pyx_string_tab[2593]
#define __pyx_n_u_cudaMemFreeNodeParams_getPtr __pyx_string_tab[2594]
#define __pyx_n_u_cudaMemGetDefaultMemPool __pyx_string_tab[2595]
#define __pyx_n_u_cudaMemGetInfo __pyx_string_tab[2596]
#define __pyx_n_u_cudaMemGetMemPool __pyx_string_tab[2597]
#define __pyx_n_u_cudaMemHandleTypeFabric __pyx_string_tab[2598]
#define __pyx_n_u_cudaMemHandleTypeNone __pyx_string_tab[2599]
#define __pyx_n_u_cudaMemHandleTypePosixFileDescri __pyx_string_tab[2600]
#define __pyx_n_u_cudaMemHandleTypeWin32 __pyx_string_tab[2601]
#define __pyx_n_u_cudaMemHandleTypeWin32Kmt __pyx_string_tab[2602]
#define __pyx_n_u_cudaMemLocation __pyx_string_tab[2603]
#define __pyx_n_u_cudaMemLocationType __pyx_string_tab[2604]
#define __pyx_n_u_cudaMemLocationTypeDevice __pyx_string_tab[2605]
#define __pyx_n_u_cudaMemLocationTypeHost __pyx_string_tab[2606]
#define __pyx_n_u_cudaMemLocationTypeHostNuma __pyx_string_tab[2607]
#define __pyx_n_u_cudaMemLocationTypeHostNumaCurre __pyx_string_tab[2608]
#define __pyx_n_u_cudaMemLocationTypeInvalid __pyx_string_tab[2609]
#define __pyx_n_u_cudaMemLocationTypeNone __pyx_string_tab[2610]
#define __pyx_n_u_cudaMemLocation___reduce_cython __pyx_string_tab[2611]
#define __pyx_n_u_cudaMemLocation___setstate_cytho __pyx_string_tab[2612]
#define __pyx_n_u_cudaMemLocation_getPtr __pyx_string_tab[2613]
#define __pyx_n_u_cudaMemPoolAttr __pyx_string_tab[2614]
#define __pyx_n_u_cudaMemPoolAttrReleaseThreshold __pyx_string_tab[2615]
#define __pyx_n_u_cudaMemPoolAttrReservedMemCurren __pyx_string_tab[2616]
#define __pyx_n_u_cudaMemPoolAttrReservedMemHigh __pyx_string_tab[2617]
#define __pyx_n_u_cudaMemPoolAttrUsedMemCurrent __pyx_string_tab[2618]
#define __pyx_n_u_cudaMemPoolAttrUsedMemHigh __pyx_string_tab[2619]
#define __pyx_n_u_cudaMemPoolCreate __pyx_string_tab[2620]
#define __pyx_n_u_cudaMemPoolCreateUsageHwDecompre __pyx_string_tab[2621]
#define __pyx_n_u_cudaMemPoolDestroy __pyx_string_tab[2622]
#define __pyx_n_u_cudaMemPoolExportPointer __pyx_string_tab[2623]
#define __pyx_n_u_cudaMemPoolExportToShareableHand __pyx_string_tab[2624]
#define __pyx_n_u_cudaMemPoolGetAccess __pyx_string_tab[2625]
#define __pyx_n_u_cudaMemPoolGetAttribute __pyx_string_tab[2626]
#define __pyx_n_u_cudaMemPoolImportFromShareableHa __pyx_string_tab[2627]
#define __pyx_n_u_cudaMemPoolImportPointer __pyx_string_tab[2628]
#define __pyx_n_u_cudaMemPoolProps __pyx_string_tab[2629]
#define __pyx_n_u_cudaMemPoolProps___reduce_cython __pyx_string_tab[2630]
#define __pyx_n_u_cudaMemPoolProps___setstate_cyth __pyx_string_tab[2631]
#define __pyx_n_u_cudaMemPoolProps_getPtr __pyx_string_tab[2632]
#define __pyx_n_u_cudaMemPoolPtrExportData __pyx_string_tab[2633]
#define __pyx_n_u_cudaMemPoolPtrExportData___reduc __pyx_string_tab[2634]
#define __pyx_n_u_cudaMemPoolPtrExportData___setst __pyx_string_tab[2635]
#define __pyx_n_u_cudaMemPoolPtrExportData_getPtr __pyx_string_tab[2636]
#define __pyx_n_u_cudaMemPoolReuseAllowInternalDep __pyx_string_tab[2637]
#define __pyx_n_u_cudaMemPoolReuseAllowOpportunist __pyx_string_tab[2638]
#define __pyx_n_u_cudaMemPoolReuseFollowEventDepen __pyx_string_tab[2639]
#define __pyx_n_u_cudaMemPoolSetAccess __pyx_string_tab[2640]
#define __pyx_n_u_cudaMemPoolSetAccess_locals_gene __pyx_string_tab[2641]
#define __pyx_n_u_cudaMemPoolSetAttribute __pyx_string_tab[2642]
#define __pyx_n_u_cudaMemPoolTrimTo __pyx_string_tab[2643]
#define __pyx_n_u_cudaMemPool_t __pyx_string_tab[2644]
#define __pyx_n_u_cudaMemPool_t_getter __pyx_string_tab[2645]
#define __pyx_n_u_cudaMemPrefetchAsync __pyx_string_tab[2646]
#define __pyx_n_u_cudaMemPrefetchBatchAsync __pyx_string_tab[2647]
#define __pyx_n_u_cudaMemPrefetchBatchAsync_locals __pyx_string_tab[2648]
#define __pyx_n_u_cudaMemRangeAttribute __pyx_string_tab[2649]
#define __pyx_n_u_cudaMemRangeAttributeAccessedBy __pyx_string_tab[2650]
#define __pyx_n_u_cudaMemRangeAttributeLastPrefetc __pyx_string_tab[2651]
#define __pyx_n_u_cudaMemRangeAttributeLastPrefetc_2 __pyx_string_tab[2652]
#define __pyx_n_u_cudaMemRangeAttributeLastPrefetc_3 __pyx_string_tab[2653]
#define __pyx_n_u_cudaMemRangeAttributePreferredLo __pyx_string_tab[2654]
#define __pyx_n_u_cudaMemRangeAttributePreferredLo_2 __pyx_string_tab[2655]
#define __pyx_n_u_cudaMemRangeAttributePreferredLo_3 __pyx_string_tab[2656]
#define __pyx_n_u_cudaMemRangeAttributeReadMostly __pyx_string_tab[2657]
#define __pyx_n_u_cudaMemRangeGetAttribute __pyx_string_tab[2658]
#define __pyx_n_u_cudaMemRangeGetAttributes __pyx_string_tab[2659]
#define __pyx_n_u_cudaMemRangeGetAttributes_locals __pyx_string_tab[2660]
#define __pyx_n_u_cudaMemSetMemPool __pyx_string_tab[2661]
#define __pyx_n_u_cudaMemcpy __pyx_string_tab[2662]
#define __pyx_n_u_cudaMemcpy2D __pyx_string_tab[2663]
#define __pyx_n_u_cudaMemcpy2DArrayToArray __pyx_string_tab[2664]
#define __pyx_n_u_cudaMemcpy2DAsync __pyx_string_tab[2665]
#define __pyx_n_u_cudaMemcpy2DFromArray __pyx_string_tab[2666]
#define __pyx_n_u_cudaMemcpy2DFromArrayAsync __pyx_string_tab[2667]
#define __pyx_n_u_cudaMemcpy2DToArray __pyx_string_tab[2668]
#define __pyx_n_u_cudaMemcpy2DToArrayAsync __pyx_string_tab[2669]
#define __pyx_n_u_cudaMemcpy3D __pyx_string_tab[2670]
#define __pyx_n_u_cudaMemcpy3DAsync __pyx_string_tab[2671]
#define __pyx_n_u_cudaMemcpy3DBatchAsync __pyx_string_tab[2672]
#define __pyx_n_u_cudaMemcpy3DBatchAsync_locals_ge __pyx_string_tab[2673]
#define __pyx_n_u_cudaMemcpy3DBatchOp __pyx_string_tab[2674]
#define __pyx_n_u_cudaMemcpy3DBatchOp___reduce_cyt __pyx_string_tab[2675]
#define __pyx_n_u_cudaMemcpy3DBatchOp___setstate_c __pyx_string_tab[2676]
#define __pyx_n_u_cudaMemcpy3DBatchOp_getPtr __pyx_string_tab[2677]
#define __pyx_n_u_cudaMemcpy3DOperand __pyx_string_tab[2678]
#define __pyx_n_u_cudaMemcpy3DOperandType __pyx_string_tab[2679]
#define __pyx_n_u_cudaMemcpy3DOperand___reduce_cyt __pyx_string_tab[2680]
#define __pyx_n_u_cudaMemcpy3DOperand___setstate_c __pyx_string_tab[2681]
#define __pyx_n_u_cudaMemcpy3DOperand_getPtr __pyx_string_tab[2682]
#define __pyx_n_u_cudaMemcpy3DParms __pyx_string_tab[2683]
#define __pyx_n_u_cudaMemcpy3DParms___reduce_cytho __pyx_string_tab[2684]
#define __pyx_n_u_cudaMemcpy3DParms___setstate_cyt __pyx_string_tab[2685]
#define __pyx_n_u_cudaMemcpy3DParms_getPtr __pyx_string_tab[2686]
#define __pyx_n_u_cudaMemcpy3DPeer __pyx_string_tab[2687]
#define __pyx_n_u_cudaMemcpy3DPeerAsync __pyx_string_tab[2688]
#define __pyx_n_u_cudaMemcpy3DPeerParms __pyx_string_tab[2689]
#define __pyx_n_u_cudaMemcpy3DPeerParms___reduce_c __pyx_string_tab[2690]
#define __pyx_n_u_cudaMemcpy3DPeerParms___setstate __pyx_string_tab[2691]
#define __pyx_n_u_cudaMemcpy3DPeerParms_getPtr __pyx_string_tab[2692]
#define __pyx_n_u_cudaMemcpyArrayToArray __pyx_string_tab[2693]
#define __pyx_n_u_cudaMemcpyAsync __pyx_string_tab[2694]
#define __pyx_n_u_cudaMemcpyAttributes __pyx_string_tab[2695]
#define __pyx_n_u_cudaMemcpyAttributes___reduce_cy __pyx_string_tab[2696]
#define __pyx_n_u_cudaMemcpyAttributes___setstate __pyx_string_tab[2697]
#define __pyx_n_u_cudaMemcpyAttributes_getPtr __pyx_string_tab[2698]
#define __pyx_n_u_cudaMemcpyBatchAsync __pyx_string_tab[2699]
#define __pyx_n_u_cudaMemcpyBatchAsync_locals_gene __pyx_string_tab[2700]
#define __pyx_n_u_cudaMemcpyDefault __pyx_string_tab[2701]
#define __pyx_n_u_cudaMemcpyDeviceToDevice __pyx_string_tab[2702]
#define __pyx_n_u_cudaMemcpyDeviceToHost __pyx_string_tab[2703]
#define __pyx_n_u_cudaMemcpyFlagDefault __pyx_string_tab[2704]
#define __pyx_n_u_cudaMemcpyFlagPreferOverlapWithC __pyx_string_tab[2705]
#define __pyx_n_u_cudaMemcpyFlags __pyx_string_tab[2706]
#define __pyx_n_u_cudaMemcpyFromArray __pyx_string_tab[2707]
#define __pyx_n_u_cudaMemcpyFromArrayAsync __pyx_string_tab[2708]
#define __pyx_n_u_cudaMemcpyHostToDevice __pyx_string_tab[2709]
#define __pyx_n_u_cudaMemcpyHostToHost __pyx_string_tab[2710]
#define __pyx_n_u_cudaMemcpyKind __pyx_string_tab[2711]
#define __pyx_n_u_cudaMemcpyNodeParams __pyx_string_tab[2712]
#define __pyx_n_u_cudaMemcpyNodeParams___reduce_cy __pyx_string_tab[2713]
#define __pyx_n_u_cudaMemcpyNodeParams___setstate __pyx_string_tab[2714]
#define __pyx_n_u_cudaMemcpyNodeParams_getPtr __pyx_string_tab[2715]
#define __pyx_n_u_cudaMemcpyOperandTypeArray __pyx_string_tab[2716]
#define __pyx_n_u_cudaMemcpyOperandTypeMax __pyx_string_tab[2717]
#define __pyx_n_u_cudaMemcpyOperandTypePointer __pyx_string_tab[2718]
#define __pyx_n_u_cudaMemcpyPeer __pyx_string_tab[2719]
#define __pyx_n_u_cudaMemcpyPeerAsync __pyx_string_tab[2720]
#define __pyx_n_u_cudaMemcpySrcAccessOrder __pyx_string_tab[2721]
#define __pyx_n_u_cudaMemcpySrcAccessOrderAny __pyx_string_tab[2722]
#define __pyx_n_u_cudaMemcpySrcAccessOrderDuringAp __pyx_string_tab[2723]
#define __pyx_n_u_cudaMemcpySrcAccessOrderInvalid __pyx_string_tab[2724]
#define __pyx_n_u_cudaMemcpySrcAccessOrderMax __pyx_string_tab[2725]
#define __pyx_n_u_cudaMemcpySrcAccessOrderStream __pyx_string_tab[2726]
#define __pyx_n_u_cudaMemcpyToArray __pyx_string_tab[2727]
#define __pyx_n_u_cudaMemcpyToArrayAsync __pyx_string_tab[2728]
#define __pyx_n_u_cudaMemoryAdvise __pyx_string_tab[2729]
#define __pyx_n_u_cudaMemoryType __pyx_string_tab[2730]
#define __pyx_n_u_cudaMemoryTypeDevice __pyx_string_tab[2731]
#define __pyx_n_u_cudaMemoryTypeHost __pyx_string_tab[2732]
#define __pyx_n_u_cudaMemoryTypeManaged __pyx_string_tab[2733]
#define __pyx_n_u_cudaMemoryTypeUnregistered __pyx_string_tab[2734]
#define __pyx_n_u_cudaMemset __pyx_string_tab[2735]
#define __pyx_n_u_cudaMemset2D __pyx_string_tab[2736]
#define __pyx_n_u_cudaMemset2DAsync __pyx_string_tab[2737]
#define __pyx_n_u_cudaMemset3D __pyx_string_tab[2738]
#define __pyx_n_u_cudaMemset3DAsync __pyx_string_tab[2739]
#define __pyx_n_u_cudaMemsetAsync __pyx_string_tab[2740]
#define __pyx_n_u_cudaMemsetParams __pyx_string_tab[2741]
#define __pyx_n_u_cudaMemsetParamsV2 __pyx_string_tab[2742]
#define __pyx_n_u_cudaMemsetParamsV2___reduce_cyth __pyx_string_tab[2743]
#define __pyx_n_u_cudaMemsetParamsV2___setstate_cy __pyx_string_tab[2744]
#define __pyx_n_u_cudaMemsetParamsV2_getPtr __pyx_string_tab[2745]
#define __pyx_n_u_cudaMemsetParams___reduce_cython __pyx_string_tab[2746]
#define __pyx_n_u_cudaMemsetParams___setstate_cyth __pyx_string_tab[2747]
#define __pyx_n_u_cudaMemsetParams_getPtr __pyx_string_tab[2748]
#define __pyx_n_u_cudaMipmappedArrayGetMemoryRequi __pyx_string_tab[2749]
#define __pyx_n_u_cudaMipmappedArrayGetSparsePrope __pyx_string_tab[2750]
#define __pyx_n_u_cudaMipmappedArray_const_t_2 __pyx_string_tab[2751]
#define __pyx_n_u_cudaMipmappedArray_const_t___red __pyx_string_tab[2752]
#define __pyx_n_u_cudaMipmappedArray_const_t___set __pyx_string_tab[2753]
#define __pyx_n_u_cudaMipmappedArray_const_t_getPt __pyx_string_tab[2754]
#define __pyx_n_u_cudaMipmappedArray_const_t_gette __pyx_string_tab[2755]
#define __pyx_n_u_cudaMipmappedArray_t_2 __pyx_string_tab[2756]
#define __pyx_n_u_cudaMipmappedArray_t___reduce_cy __pyx_string_tab[2757]
#define __pyx_n_u_cudaMipmappedArray_t___setstate __pyx_string_tab[2758]
#define __pyx_n_u_cudaMipmappedArray_t_getPtr __pyx_string_tab[2759]
#define __pyx_n_u_cudaMipmappedArray_t_getter __pyx_string_tab[2760]
#define __pyx_n_u_cudaNvSciSyncAttrSignal __pyx_string_tab[2761]
#define __pyx_n_u_cudaNvSciSyncAttrWait __pyx_string_tab[2762]
#define __pyx_n_u_cudaOccupancyAvailableDynamicSMe __pyx_string_tab[2763]
#define __pyx_n_u_cudaOccupancyDefault __pyx_string_tab[2764]
#define __pyx_n_u_cudaOccupancyDisableCachingOverr __pyx_string_tab[2765]
#define __pyx_n_u_cudaOccupancyMaxActiveBlocksPerM __pyx_string_tab[2766]
#define __pyx_n_u_cudaOccupancyMaxActiveBlocksPerM_2 __pyx_string_tab[2767]
#define __pyx_n_u_cudaOffset3D __pyx_string_tab[2768]
#define __pyx_n_u_cudaOffset3D___reduce_cython __pyx_string_tab[2769]
#define __pyx_n_u_cudaOffset3D___setstate_cython __pyx_string_tab[2770]
#define __pyx_n_u_cudaOffset3D_getPtr __pyx_string_tab[2771]
#define __pyx_n_u_cudaPeekAtLastError __pyx_string_tab[2772]
#define __pyx_n_u_cudaPeerAccessDefault __pyx_string_tab[2773]
#define __pyx_n_u_cudaPitchedPtr __pyx_string_tab[2774]
#define __pyx_n_u_cudaPitchedPtr___reduce_cython __pyx_string_tab[2775]
#define __pyx_n_u_cudaPitchedPtr___setstate_cython __pyx_string_tab[2776]
#define __pyx_n_u_cudaPitchedPtr_getPtr __pyx_string_tab[2777]
#define __pyx_n_u_cudaPointerAttributes __pyx_string_tab[2778]
#define __pyx_n_u_cudaPointerAttributes___reduce_c __pyx_string_tab[2779]
#define __pyx_n_u_cudaPointerAttributes___setstate __pyx_string_tab[2780]
#define __pyx_n_u_cudaPointerAttributes_getPtr __pyx_string_tab[2781]
#define __pyx_n_u_cudaPointerGetAttributes __pyx_string_tab[2782]
#define __pyx_n_u_cudaPos __pyx_string_tab[2783]
#define __pyx_n_u_cudaPos___reduce_cython __pyx_string_tab[2784]
#define __pyx_n_u_cudaPos___setstate_cython __pyx_string_tab[2785]
#define __pyx_n_u_cudaPos_getPtr __pyx_string_tab[2786]
#define __pyx_n_u_cudaPreferBinary __pyx_string_tab[2787]
#define __pyx_n_u_cudaPreferPtx __pyx_string_tab[2788]
#define __pyx_n_u_cudaProfilerStart __pyx_string_tab[2789]
#define __pyx_n_u_cudaProfilerStop __pyx_string_tab[2790]
#define __pyx_n_u_cudaReadModeElementType __pyx_string_tab[2791]
#define __pyx_n_u_cudaReadModeNormalizedFloat __pyx_string_tab[2792]
#define __pyx_n_u_cudaResViewFormatFloat1 __pyx_string_tab[2793]
#define __pyx_n_u_cudaResViewFormatFloat2 __pyx_string_tab[2794]
#define __pyx_n_u_cudaResViewFormatFloat4 __pyx_string_tab[2795]
#define __pyx_n_u_cudaResViewFormatHalf1 __pyx_string_tab[2796]
#define __pyx_n_u_cudaResViewFormatHalf2 __pyx_string_tab[2797]
#define __pyx_n_u_cudaResViewFormatHalf4 __pyx_string_tab[2798]
#define __pyx_n_u_cudaResViewFormatNone __pyx_string_tab[2799]
#define __pyx_n_u_cudaResViewFormatSignedBlockComp __pyx_string_tab[2800]
#define __pyx_n_u_cudaResViewFormatSignedBlockComp_2 __pyx_string_tab[2801]
#define __pyx_n_u_cudaResViewFormatSignedBlockComp_3 __pyx_string_tab[2802]
#define __pyx_n_u_cudaResViewFormatSignedChar1 __pyx_string_tab[2803]
#define __pyx_n_u_cudaResViewFormatSignedChar2 __pyx_string_tab[2804]
#define __pyx_n_u_cudaResViewFormatSignedChar4 __pyx_string_tab[2805]
#define __pyx_n_u_cudaResViewFormatSignedInt1 __pyx_string_tab[2806]
#define __pyx_n_u_cudaResViewFormatSignedInt2 __pyx_string_tab[2807]
#define __pyx_n_u_cudaResViewFormatSignedInt4 __pyx_string_tab[2808]
#define __pyx_n_u_cudaResViewFormatSignedShort1 __pyx_string_tab[2809]
#define __pyx_n_u_cudaResViewFormatSignedShort2 __pyx_string_tab[2810]
#define __pyx_n_u_cudaResViewFormatSignedShort4 __pyx_string_tab[2811]
#define __pyx_n_u_cudaResViewFormatUnsignedBlockCo __pyx_string_tab[2812]
#define __pyx_n_u_cudaResViewFormatUnsignedBlockCo_2 __pyx_string_tab[2813]
#define __pyx_n_u_cudaResViewFormatUnsignedBlockCo_3 __pyx_string_tab[2814]
#define __pyx_n_u_cudaResViewFormatUnsignedBlockCo_4 __pyx_string_tab[2815]
#define __pyx_n_u_cudaResViewFormatUnsignedBlockCo_5 __pyx_string_tab[2816]
#define __pyx_n_u_cudaResViewFormatUnsignedBlockCo_6 __pyx_string_tab[2817]
#define __pyx_n_u_cudaResViewFormatUnsignedBlockCo_7 __pyx_string_tab[2818]
#define __pyx_n_u_cudaResViewFormatUnsignedChar1 __pyx_string_tab[2819]
#define __pyx_n_u_cudaResViewFormatUnsignedChar2 __pyx_string_tab[2820]
#define __pyx_n_u_cudaResViewFormatUnsignedChar4 __pyx_string_tab[2821]
#define __pyx_n_u_cudaResViewFormatUnsignedInt1 __pyx_string_tab[2822]
#define __pyx_n_u_cudaResViewFormatUnsignedInt2 __pyx_string_tab[2823]
#define __pyx_n_u_cudaResViewFormatUnsignedInt4 __pyx_string_tab[2824]
#define __pyx_n_u_cudaResViewFormatUnsignedShort1 __pyx_string_tab[2825]
#define __pyx_n_u_cudaResViewFormatUnsignedShort2 __pyx_string_tab[2826]
#define __pyx_n_u_cudaResViewFormatUnsignedShort4 __pyx_string_tab[2827]
#define __pyx_n_u_cudaResourceDesc __pyx_string_tab[2828]
#define __pyx_n_u_cudaResourceDesc___reduce_cython __pyx_string_tab[2829]
#define __pyx_n_u_cudaResourceDesc___setstate_cyth __pyx_string_tab[2830]
#define __pyx_n_u_cudaResourceDesc_getPtr __pyx_string_tab[2831]
#define __pyx_n_u_cudaResourceType __pyx_string_tab[2832]
#define __pyx_n_u_cudaResourceTypeArray __pyx_string_tab[2833]
#define __pyx_n_u_cudaResourceTypeLinear __pyx_string_tab[2834]
#define __pyx_n_u_cudaResourceTypeMipmappedArray __pyx_string_tab[2835]
#define __pyx_n_u_cudaResourceTypePitch2D __pyx_string_tab[2836]
#define __pyx_n_u_cudaResourceViewDesc __pyx_string_tab[2837]
#define __pyx_n_u_cudaResourceViewDesc___reduce_cy __pyx_string_tab[2838]
#define __pyx_n_u_cudaResourceViewDesc___setstate __pyx_string_tab[2839]
#define __pyx_n_u_cudaResourceViewDesc_getPtr __pyx_string_tab[2840]
#define __pyx_n_u_cudaResourceViewFormat __pyx_string_tab[2841]
#define __pyx_n_u_cudaRoundMinInf __pyx_string_tab[2842]
#define __pyx_n_u_cudaRoundMode __pyx_string_tab[2843]
#define __pyx_n_u_cudaRoundNearest __pyx_string_tab[2844]
#define __pyx_n_u_cudaRoundPosInf __pyx_string_tab[2845]
#define __pyx_n_u_cudaRoundZero __pyx_string_tab[2846]
#define __pyx_n_u_cudaRuntimeGetVersion __pyx_string_tab[2847]
#define __pyx_n_u_cudaSetDevice __pyx_string_tab[2848]
#define __pyx_n_u_cudaSetDeviceFlags __pyx_string_tab[2849]
#define __pyx_n_u_cudaSharedCarveout __pyx_string_tab[2850]
#define __pyx_n_u_cudaSharedMemBankSizeDefault __pyx_string_tab[2851]
#define __pyx_n_u_cudaSharedMemBankSizeEightByte __pyx_string_tab[2852]
#define __pyx_n_u_cudaSharedMemBankSizeFourByte __pyx_string_tab[2853]
#define __pyx_n_u_cudaSharedMemConfig __pyx_string_tab[2854]
#define __pyx_n_u_cudaSharedmemCarveoutDefault __pyx_string_tab[2855]
#define __pyx_n_u_cudaSharedmemCarveoutMaxL1 __pyx_string_tab[2856]
#define __pyx_n_u_cudaSharedmemCarveoutMaxShared __pyx_string_tab[2857]
#define __pyx_n_u_cudaSignalExternalSemaphoresAsyn __pyx_string_tab[2858]
#define __pyx_n_u_cudaSignalExternalSemaphoresAsyn_2 __pyx_string_tab[2859]
#define __pyx_n_u_cudaStreamAddCallback __pyx_string_tab[2860]
#define __pyx_n_u_cudaStreamAddCaptureDependencies __pyx_string_tab[2861]
#define __pyx_n_u_cudaStreamAttachMemAsync __pyx_string_tab[2862]
#define __pyx_n_u_cudaStreamAttrID __pyx_string_tab[2863]
#define __pyx_n_u_cudaStreamAttrValue __pyx_string_tab[2864]
#define __pyx_n_u_cudaStreamAttributeAccessPolicyW __pyx_string_tab[2865]
#define __pyx_n_u_cudaStreamAttributeMemSyncDomain __pyx_string_tab[2866]
#define __pyx_n_u_cudaStreamAttributeMemSyncDomain_2 __pyx_string_tab[2867]
#define __pyx_n_u_cudaStreamAttributePriority __pyx_string_tab[2868]
#define __pyx_n_u_cudaStreamAttributeSynchronizati __pyx_string_tab[2869]
#define __pyx_n_u_cudaStreamBeginCapture __pyx_string_tab[2870]
#define __pyx_n_u_cudaStreamBeginCaptureToGraph __pyx_string_tab[2871]
#define __pyx_n_u_cudaStreamBeginCaptureToGraph_lo __pyx_string_tab[2872]
#define __pyx_n_u_cudaStreamCallback_t_2 __pyx_string_tab[2873]
#define __pyx_n_u_cudaStreamCallback_t___reduce_cy __pyx_string_tab[2874]
#define __pyx_n_u_cudaStreamCallback_t___setstate __pyx_string_tab[2875]
#define __pyx_n_u_cudaStreamCallback_t_getPtr __pyx_string_tab[2876]
#define __pyx_n_u_cudaStreamCaptureMode __pyx_string_tab[2877]
#define __pyx_n_u_cudaStreamCaptureModeGlobal __pyx_string_tab[2878]
#define __pyx_n_u_cudaStreamCaptureModeRelaxed __pyx_string_tab[2879]
#define __pyx_n_u_cudaStreamCaptureModeThreadLocal __pyx_string_tab[2880]
#define __pyx_n_u_cudaStreamCaptureStatus __pyx_string_tab[2881]
#define __pyx_n_u_cudaStreamCaptureStatusActive __pyx_string_tab[2882]
#define __pyx_n_u_cudaStreamCaptureStatusInvalidat __pyx_string_tab[2883]
#define __pyx_n_u_cudaStreamCaptureStatusNone __pyx_string_tab[2884]
#define __pyx_n_u_cudaStreamCopyAttributes __pyx_string_tab[2885]
#define __pyx_n_u_cudaStreamCreate __pyx_string_tab[2886]
#define __pyx_n_u_cudaStreamCreateWithFlags __pyx_string_tab[2887]
#define __pyx_n_u_cudaStreamCreateWithPriority __pyx_string_tab[2888]
#define __pyx_n_u_cudaStreamDefault __pyx_string_tab[2889]
#define __pyx_n_u_cudaStreamDestroy __pyx_string_tab[2890]
#define __pyx_n_u_cudaStreamEndCapture __pyx_string_tab[2891]
#define __pyx_n_u_cudaStreamGetAttribute __pyx_string_tab[2892]
#define __pyx_n_u_cudaStreamGetCaptureInfo __pyx_string_tab[2893]
#define __pyx_n_u_cudaStreamGetDevResource __pyx_string_tab[2894]
#define __pyx_n_u_cudaStreamGetDevice __pyx_string_tab[2895]
#define __pyx_n_u_cudaStreamGetFlags __pyx_string_tab[2896]
#define __pyx_n_u_cudaStreamGetId __pyx_string_tab[2897]
#define __pyx_n_u_cudaStreamGetPriority __pyx_string_tab[2898]
#define __pyx_n_u_cudaStreamIsCapturing __pyx_string_tab[2899]
#define __pyx_n_u_cudaStreamLegacy __pyx_string_tab[2900]
#define __pyx_n_u_cudaStreamNonBlocking __pyx_string_tab[2901]
#define __pyx_n_u_cudaStreamPerThread __pyx_string_tab[2902]
#define __pyx_n_u_cudaStreamQuery __pyx_string_tab[2903]
#define __pyx_n_u_cudaStreamSetAttribute __pyx_string_tab[2904]
#define __pyx_n_u_cudaStreamSetCaptureDependencies __pyx_string_tab[2905]
#define __pyx_n_u_cudaStreamSynchronize __pyx_string_tab[2906]
#define __pyx_n_u_cudaStreamUpdateCaptureDependenc __pyx_string_tab[2907]
#define __pyx_n_u_cudaStreamUpdateCaptureDependenc_2 __pyx_string_tab[2908]
#define __pyx_n_u_cudaStreamUpdateCaptureDependenc_3 __pyx_string_tab[2909]
#define __pyx_n_u_cudaStreamWaitEvent __pyx_string_tab[2910]
#define __pyx_n_u_cudaStream_t __pyx_string_tab[2911]
#define __pyx_n_u_cudaStream_t_getter __pyx_string_tab[2912]
#define __pyx_n_u_cudaSuccess __pyx_string_tab[2913]
#define __pyx_n_u_cudaSurfaceBoundaryMode __pyx_string_tab[2914]
#define __pyx_n_u_cudaSurfaceFormatMode __pyx_string_tab[2915]
#define __pyx_n_u_cudaSurfaceObject_t_2 __pyx_string_tab[2916]
#define __pyx_n_u_cudaSurfaceObject_t___reduce_cyt __pyx_string_tab[2917]
#define __pyx_n_u_cudaSurfaceObject_t___setstate_c __pyx_string_tab[2918]
#define __pyx_n_u_cudaSurfaceObject_t_getPtr __pyx_string_tab[2919]
#define __pyx_n_u_cudaSurfaceType1D __pyx_string_tab[2920]
#define __pyx_n_u_cudaSurfaceType1DLayered __pyx_string_tab[2921]
#define __pyx_n_u_cudaSurfaceType2D __pyx_string_tab[2922]
#define __pyx_n_u_cudaSurfaceType2DLayered __pyx_string_tab[2923]
#define __pyx_n_u_cudaSurfaceType3D __pyx_string_tab[2924]
#define __pyx_n_u_cudaSurfaceTypeCubemap __pyx_string_tab[2925]
#define __pyx_n_u_cudaSurfaceTypeCubemapLayered __pyx_string_tab[2926]
#define __pyx_n_u_cudaSyncPolicyAuto __pyx_string_tab[2927]
#define __pyx_n_u_cudaSyncPolicyBlockingSync __pyx_string_tab[2928]
#define __pyx_n_u_cudaSyncPolicySpin __pyx_string_tab[2929]
#define __pyx_n_u_cudaSyncPolicyYield __pyx_string_tab[2930]
#define __pyx_n_u_cudaSynchronizationPolicy __pyx_string_tab[2931]
#define __pyx_n_u_cudaTextureAddressMode __pyx_string_tab[2932]
#define __pyx_n_u_cudaTextureDesc __pyx_string_tab[2933]
#define __pyx_n_u_cudaTextureDesc___reduce_cython __pyx_string_tab[2934]
#define __pyx_n_u_cudaTextureDesc___setstate_cytho __pyx_string_tab[2935]
#define __pyx_n_u_cudaTextureDesc_getPtr __pyx_string_tab[2936]
#define __pyx_n_u_cudaTextureFilterMode __pyx_string_tab[2937]
#define __pyx_n_u_cudaTextureObject_t_2 __pyx_string_tab[2938]
#define __pyx_n_u_cudaTextureObject_t___reduce_cyt __pyx_string_tab[2939]
#define __pyx_n_u_cudaTextureObject_t___setstate_c __pyx_string_tab[2940]
#define __pyx_n_u_cudaTextureObject_t_getPtr __pyx_string_tab[2941]
#define __pyx_n_u_cudaTextureReadMode __pyx_string_tab[2942]
#define __pyx_n_u_cudaTextureType1D __pyx_string_tab[2943]
#define __pyx_n_u_cudaTextureType1DLayered __pyx_string_tab[2944]
#define __pyx_n_u_cudaTextureType2D __pyx_string_tab[2945]
#define __pyx_n_u_cudaTextureType2DLayered __pyx_string_tab[2946]
#define __pyx_n_u_cudaTextureType3D __pyx_string_tab[2947]
#define __pyx_n_u_cudaTextureTypeCubemap __pyx_string_tab[2948]
#define __pyx_n_u_cudaTextureTypeCubemapLayered __pyx_string_tab[2949]
#define __pyx_n_u_cudaThreadExchangeStreamCaptureM __pyx_string_tab[2950]
#define __pyx_n_u_cudaUUID_t __pyx_string_tab[2951]
#define __pyx_n_u_cudaUserObjectCreate __pyx_string_tab[2952]
#define __pyx_n_u_cudaUserObjectFlags __pyx_string_tab[2953]
#define __pyx_n_u_cudaUserObjectNoDestructorSync __pyx_string_tab[2954]
#define __pyx_n_u_cudaUserObjectRelease __pyx_string_tab[2955]
#define __pyx_n_u_cudaUserObjectRetain __pyx_string_tab[2956]
#define __pyx_n_u_cudaUserObjectRetainFlags __pyx_string_tab[2957]
#define __pyx_n_u_cudaUserObject_t __pyx_string_tab[2958]
#define __pyx_n_u_cudaUserObject_t_getter __pyx_string_tab[2959]
#define __pyx_n_u_cudaVDPAUGetDevice __pyx_string_tab[2960]
#define __pyx_n_u_cudaVDPAUSetVDPAUDevice __pyx_string_tab[2961]
#define __pyx_n_u_cudaVersion __pyx_string_tab[2962]
#define __pyx_n_u_cudaWaitExternalSemaphoresAsync __pyx_string_tab[2963]
#define __pyx_n_u_cudaWaitExternalSemaphoresAsync_2 __pyx_string_tab[2964]
#define __pyx_n_u_cuda_bindings_driver __pyx_string_tab[2965]
#define __pyx_n_u_cuda_bindings_runtime __pyx_string_tab[2966]
#define __pyx_n_u_cuda_bindings_utils __pyx_string_tab[2967]
#define __pyx_n_u_cudalibraryHostUniversalFunction __pyx_string_tab[2968]
#define __pyx_n_u_cudalibraryHostUniversalFunction_2 __pyx_string_tab[2969]
#define __pyx_n_u_cudalibraryHostUniversalFunction_3 __pyx_string_tab[2970]
#define __pyx_n_u_cudalibraryHostUniversalFunction_4 __pyx_string_tab[2971]
#define __pyx_n_u_cuuint64_t __pyx_string_tab[2972]
#define __pyx_n_u_cyadvice __pyx_string_tab[2973]
#define __pyx_n_u_cyarray __pyx_string_tab[2974]
#define __pyx_n_u_cyattr __pyx_string_tab[2975]
#define __pyx_n_u_cyattribute __pyx_string_tab[2976]
#define __pyx_n_u_cyattributes __pyx_string_tab[2977]
#define __pyx_n_u_cyattrs __pyx_string_tab[2978]
#define __pyx_n_u_cyattrsIdxs __pyx_string_tab[2979]
#define __pyx_n_u_cybuffer __pyx_string_tab[2980]
#define __pyx_n_u_cybufferDesc_ptr __pyx_string_tab[2981]
#define __pyx_n_u_cycacheConfig __pyx_string_tab[2982]
#define __pyx_n_u_cycallback __pyx_string_tab[2983]
#define __pyx_n_u_cycallbackFunc __pyx_string_tab[2984]
#define __pyx_n_u_cycapabilities __pyx_string_tab[2985]
#define __pyx_n_u_cychildGraph __pyx_string_tab[2986]
#define __pyx_n_u_cyclonedGraph __pyx_string_tab[2987]
#define __pyx_n_u_cycode __pyx_string_tab[2988]
#define __pyx_n_u_cycode_ptr __pyx_string_tab[2989]
#define __pyx_n_u_cyconfig __pyx_string_tab[2990]
#define __pyx_n_u_cyconn __pyx_string_tab[2991]
#define __pyx_n_u_cyctx __pyx_string_tab[2992]
#define __pyx_n_u_cyd __pyx_string_tab[2993]
#define __pyx_n_u_cyd_ptr __pyx_string_tab[2994]
#define __pyx_n_u_cydata __pyx_string_tab[2995]
#define __pyx_n_u_cydataSizes __pyx_string_tab[2996]
#define __pyx_n_u_cydata_ptr __pyx_string_tab[2997]
#define __pyx_n_u_cydependencies __pyx_string_tab[2998]
#define __pyx_n_u_cydependencies_out __pyx_string_tab[2999]
#define __pyx_n_u_cydependencyData __pyx_string_tab[3000]
#define __pyx_n_u_cydesc __pyx_string_tab[3001]
#define __pyx_n_u_cydescList __pyx_string_tab[3002]
#define __pyx_n_u_cydesc_ptr __pyx_string_tab[3003]
#define __pyx_n_u_cydestroy __pyx_string_tab[3004]
#define __pyx_n_u_cydevPtr __pyx_string_tab[3005]
#define __pyx_n_u_cydevPtr_ptr __pyx_string_tab[3006]
#define __pyx_n_u_cydeviceList __pyx_string_tab[3007]
#define __pyx_n_u_cydptr __pyx_string_tab[3008]
#define __pyx_n_u_cydptr_out_ptr __pyx_string_tab[3009]
#define __pyx_n_u_cydptr_ptr __pyx_string_tab[3010]
#define __pyx_n_u_cydptrs_ptr __pyx_string_tab[3011]
#define __pyx_n_u_cydst __pyx_string_tab[3012]
#define __pyx_n_u_cydst_ptr __pyx_string_tab[3013]
#define __pyx_n_u_cydsts_ptr __pyx_string_tab[3014]
#define __pyx_n_u_cyedgeData __pyx_string_tab[3015]
#define __pyx_n_u_cyedgeData_out __pyx_string_tab[3016]
#define __pyx_n_u_cyeglStream __pyx_string_tab[3017]
#define __pyx_n_u_cyeglSync __pyx_string_tab[3018]
#define __pyx_n_u_cyeglframe_ptr __pyx_string_tab[3019]
#define __pyx_n_u_cyend __pyx_string_tab[3020]
#define __pyx_n_u_cyentryFuncAddr __pyx_string_tab[3021]
#define __pyx_n_u_cyentryFuncAddr_ptr __pyx_string_tab[3022]
#define __pyx_n_u_cyerror __pyx_string_tab[3023]
#define __pyx_n_u_cyevent __pyx_string_tab[3024]
#define __pyx_n_u_cyexportData_ptr __pyx_string_tab[3025]
#define __pyx_n_u_cyextMem __pyx_string_tab[3026]
#define __pyx_n_u_cyextSem __pyx_string_tab[3027]
#define __pyx_n_u_cyextSemArray __pyx_string_tab[3028]
#define __pyx_n_u_cyf __pyx_string_tab[3029]
#define __pyx_n_u_cyfmtDesc_ptr __pyx_string_tab[3030]
#define __pyx_n_u_cyfn __pyx_string_tab[3031]
#define __pyx_n_u_cyfrom __pyx_string_tab[3032]
#define __pyx_n_u_cyfunc __pyx_string_tab[3033]
#define __pyx_n_u_cyfunc_ptr __pyx_string_tab[3034]
#define __pyx_n_u_cygraph __pyx_string_tab[3035]
#define __pyx_n_u_cygraphExec __pyx_string_tab[3036]
#define __pyx_n_u_cygroupParams_ptr __pyx_string_tab[3037]
#define __pyx_n_u_cyhArray __pyx_string_tab[3038]
#define __pyx_n_u_cyhDst __pyx_string_tab[3039]
#define __pyx_n_u_cyhGraph __pyx_string_tab[3040]
#define __pyx_n_u_cyhGraphExec __pyx_string_tab[3041]
#define __pyx_n_u_cyhNode __pyx_string_tab[3042]
#define __pyx_n_u_cyhSrc __pyx_string_tab[3043]
#define __pyx_n_u_cyhStream __pyx_string_tab[3044]
#define __pyx_n_u_cyhandleType __pyx_string_tab[3045]
#define __pyx_n_u_cyheight __pyx_string_tab[3046]
#define __pyx_n_u_cyimage __pyx_string_tab[3047]
#define __pyx_n_u_cyinput__ptr __pyx_string_tab[3048]
#define __pyx_n_u_cyinstantiateParams_ptr __pyx_string_tab[3049]
#define __pyx_n_u_cyiterator __pyx_string_tab[3050]
#define __pyx_n_u_cyjitOptions __pyx_string_tab[3051]
#define __pyx_n_u_cyjitOptionsValues_ptr __pyx_string_tab[3052]
#define __pyx_n_u_cykernel __pyx_string_tab[3053]
#define __pyx_n_u_cykernels __pyx_string_tab[3054]
#define __pyx_n_u_cykind __pyx_string_tab[3055]
#define __pyx_n_u_cylib __pyx_string_tab[3056]
#define __pyx_n_u_cylibrary __pyx_string_tab[3057]
#define __pyx_n_u_cylibraryOptionValues_ptr __pyx_string_tab[3058]
#define __pyx_n_u_cylibraryOptions __pyx_string_tab[3059]
#define __pyx_n_u_cylimit __pyx_string_tab[3060]
#define __pyx_n_u_cylocation_ptr __pyx_string_tab[3061]
#define __pyx_n_u_cymemHandleDesc_ptr __pyx_string_tab[3062]
#define __pyx_n_u_cymemPool __pyx_string_tab[3063]
#define __pyx_n_u_cymipmap __pyx_string_tab[3064]
#define __pyx_n_u_cymipmapDesc_ptr __pyx_string_tab[3065]
#define __pyx_n_u_cymipmappedArray __pyx_string_tab[3066]
#define __pyx_n_u_cymode __pyx_string_tab[3067]
#define __pyx_n_u_cynbGroups __pyx_string_tab[3068]
#define __pyx_n_u_cynode __pyx_string_tab[3069]
#define __pyx_n_u_cynodeParams_ptr __pyx_string_tab[3070]
#define __pyx_n_u_cynodes __pyx_string_tab[3071]
#define __pyx_n_u_cynvSciSyncAttrList __pyx_string_tab[3072]
#define __pyx_n_u_cynvSciSyncAttrList_ptr __pyx_string_tab[3073]
#define __pyx_n_u_cyobject __pyx_string_tab[3074]
#define __pyx_n_u_cyopList __pyx_string_tab[3075]
#define __pyx_n_u_cyoperations __pyx_string_tab[3076]
#define __pyx_n_u_cyoriginalGraph __pyx_string_tab[3077]
#define __pyx_n_u_cyoriginalNode __pyx_string_tab[3078]
#define __pyx_n_u_cypCopyParams_ptr __pyx_string_tab[3079]
#define __pyx_n_u_cypCudaDevices __pyx_string_tab[3080]
#define __pyx_n_u_cypCudaResource __pyx_string_tab[3081]
#define __pyx_n_u_cypDependencies __pyx_string_tab[3082]
#define __pyx_n_u_cypDependentNodes __pyx_string_tab[3083]
#define __pyx_n_u_cypExportTableId_ptr __pyx_string_tab[3084]
#define __pyx_n_u_cypHost __pyx_string_tab[3085]
#define __pyx_n_u_cypHost_ptr __pyx_string_tab[3086]
#define __pyx_n_u_cypMemsetParams_ptr __pyx_string_tab[3087]
#define __pyx_n_u_cypNodeParams_ptr __pyx_string_tab[3088]
#define __pyx_n_u_cypResDesc_ptr __pyx_string_tab[3089]
#define __pyx_n_u_cypResViewDesc_ptr __pyx_string_tab[3090]
#define __pyx_n_u_cypRootNodes __pyx_string_tab[3091]
#define __pyx_n_u_cypStream __pyx_string_tab[3092]
#define __pyx_n_u_cypTexDesc_ptr __pyx_string_tab[3093]
#define __pyx_n_u_cyp_ptr __pyx_string_tab[3094]
#define __pyx_n_u_cyparamsArray __pyx_string_tab[3095]
#define __pyx_n_u_cypoolProps_ptr __pyx_string_tab[3096]
#define __pyx_n_u_cyprefetchLocIdxs __pyx_string_tab[3097]
#define __pyx_n_u_cyprefetchLocs __pyx_string_tab[3098]
#define __pyx_n_u_cyprop_ptr __pyx_string_tab[3099]
#define __pyx_n_u_cyptr __pyx_string_tab[3100]
#define __pyx_n_u_cyptr_ptr __pyx_string_tab[3101]
#define __pyx_n_u_cyresource __pyx_string_tab[3102]
#define __pyx_n_u_cyresources __pyx_string_tab[3103]
#define __pyx_n_u_cyresult __pyx_string_tab[3104]
#define __pyx_n_u_cyscope __pyx_string_tab[3105]
#define __pyx_n_u_cysemHandleDesc_ptr __pyx_string_tab[3106]
#define __pyx_n_u_cyshareableHandle __pyx_string_tab[3107]
#define __pyx_n_u_cyshareableHandle_ptr __pyx_string_tab[3108]
#define __pyx_n_u_cysizes __pyx_string_tab[3109]
#define __pyx_n_u_cysrc __pyx_string_tab[3110]
#define __pyx_n_u_cysrc_ptr __pyx_string_tab[3111]
#define __pyx_n_u_cysrcs_ptr __pyx_string_tab[3112]
#define __pyx_n_u_cystart __pyx_string_tab[3113]
#define __pyx_n_u_cystream __pyx_string_tab[3114]
#define __pyx_n_u_cysurfObject __pyx_string_tab[3115]
#define __pyx_n_u_cytarget __pyx_string_tab[3116]
#define __pyx_n_u_cytexObject __pyx_string_tab[3117]
#define __pyx_n_u_cyto __pyx_string_tab[3118]
#define __pyx_n_u_cytypename __pyx_string_tab[3119]
#define __pyx_n_u_cyuserData __pyx_string_tab[3120]
#define __pyx_n_u_cyuserData_ptr __pyx_string_tab[3121]
#define __pyx_n_u_cyvalue __pyx_string_tab[3122]
#define __pyx_n_u_cyvalue_ptr __pyx_string_tab[3123]
#define __pyx_n_u_cyvdpDevice __pyx_string_tab[3124]
#define __pyx_n_u_cyvdpGetProcAddress __pyx_string_tab[3125]
#define __pyx_n_u_cyvdpSurface __pyx_string_tab[3126]
#define __pyx_n_u_cyvoidStarHelper_ptr __pyx_string_tab[3127]
#define __pyx_n_u_cywidth __pyx_string_tab[3128]
#define __pyx_n_u_d __pyx_string_tab[3129]
#define __pyx_n_u_dataSize __pyx_string_tab[3130]
#define __pyx_n_u_dataSizes __pyx_string_tab[3131]
#define __pyx_n_u_dataTable_2 __pyx_string_tab[3132]
#define __pyx_n_u_dataWindowSize_2 __pyx_string_tab[3133]
#define __pyx_n_u_data_size __pyx_string_tab[3134]
#define __pyx_n_u_decode __pyx_string_tab[3135]
#define __pyx_n_u_defaultLaunchValue __pyx_string_tab[3136]
#define __pyx_n_u_default_2 __pyx_string_tab[3137]
#define __pyx_n_u_deferredMappingCudaArraySupporte_2 __pyx_string_tab[3138]
#define __pyx_n_u_dependencies __pyx_string_tab[3139]
#define __pyx_n_u_dependencyData __pyx_string_tab[3140]
#define __pyx_n_u_depth_2 __pyx_string_tab[3141]
#define __pyx_n_u_descList __pyx_string_tab[3142]
#define __pyx_n_u_desc_2 __pyx_string_tab[3143]
#define __pyx_n_u_destroy __pyx_string_tab[3144]
#define __pyx_n_u_devNode_2 __pyx_string_tab[3145]
#define __pyx_n_u_devPtr_2 __pyx_string_tab[3146]
#define __pyx_n_u_deviceFlags __pyx_string_tab[3147]
#define __pyx_n_u_deviceList __pyx_string_tab[3148]
#define __pyx_n_u_deviceNumaConfig_2 __pyx_string_tab[3149]
#define __pyx_n_u_deviceNumaId_2 __pyx_string_tab[3150]
#define __pyx_n_u_devicePointer_2 __pyx_string_tab[3151]
#define __pyx_n_u_deviceUpdatableKernelNode_2 __pyx_string_tab[3152]
#define __pyx_n_u_deviceUpdatable_2 __pyx_string_tab[3153]
#define __pyx_n_u_device_2 __pyx_string_tab[3154]
#define __pyx_n_u_dict __pyx_string_tab[3155]
#define __pyx_n_u_dict_cudaAccessProperty __pyx_string_tab[3156]
#define __pyx_n_u_dict_cudaAsyncNotificationType __pyx_string_tab[3157]
#define __pyx_n_u_dict_cudaAtomicOperation __pyx_string_tab[3158]
#define __pyx_n_u_dict_cudaAtomicOperationCapabil __pyx_string_tab[3159]
#define __pyx_n_u_dict_cudaCGScope __pyx_string_tab[3160]
#define __pyx_n_u_dict_cudaChannelFormatKind __pyx_string_tab[3161]
#define __pyx_n_u_dict_cudaClusterSchedulingPolic __pyx_string_tab[3162]
#define __pyx_n_u_dict_cudaComputeMode __pyx_string_tab[3163]
#define __pyx_n_u_dict_cudaDataType __pyx_string_tab[3164]
#define __pyx_n_u_dict_cudaDevResourceType __pyx_string_tab[3165]
#define __pyx_n_u_dict_cudaDevSmResourceGroup_fla __pyx_string_tab[3166]
#define __pyx_n_u_dict_cudaDevSmResourceSplitByCo __pyx_string_tab[3167]
#define __pyx_n_u_dict_cudaDevWorkqueueConfigScop __pyx_string_tab[3168]
#define __pyx_n_u_dict_cudaDeviceAttr __pyx_string_tab[3169]
#define __pyx_n_u_dict_cudaDeviceNumaConfig __pyx_string_tab[3170]
#define __pyx_n_u_dict_cudaDeviceP2PAttr __pyx_string_tab[3171]
#define __pyx_n_u_dict_cudaDriverEntryPointQueryR __pyx_string_tab[3172]
#define __pyx_n_u_dict_cudaEglColorFormat __pyx_string_tab[3173]
#define __pyx_n_u_dict_cudaEglFrameType __pyx_string_tab[3174]
#define __pyx_n_u_dict_cudaEglResourceLocationFla __pyx_string_tab[3175]
#define __pyx_n_u_dict_cudaEmulationMantissaContr __pyx_string_tab[3176]
#define __pyx_n_u_dict_cudaEmulationSpecialValues __pyx_string_tab[3177]
#define __pyx_n_u_dict_cudaEmulationStrategy __pyx_string_tab[3178]
#define __pyx_n_u_dict_cudaError_t __pyx_string_tab[3179]
#define __pyx_n_u_dict_cudaExternalMemoryHandleTy __pyx_string_tab[3180]
#define __pyx_n_u_dict_cudaExternalSemaphoreHandl __pyx_string_tab[3181]
#define __pyx_n_u_dict_cudaFlushGPUDirectRDMAWrit __pyx_string_tab[3182]
#define __pyx_n_u_dict_cudaFlushGPUDirectRDMAWrit_2 __pyx_string_tab[3183]
#define __pyx_n_u_dict_cudaFlushGPUDirectRDMAWrit_3 __pyx_string_tab[3184]
#define __pyx_n_u_dict_cudaFuncAttribute __pyx_string_tab[3185]
#define __pyx_n_u_dict_cudaFuncCache __pyx_string_tab[3186]
#define __pyx_n_u_dict_cudaGLDeviceList __pyx_string_tab[3187]
#define __pyx_n_u_dict_cudaGLMapFlags __pyx_string_tab[3188]
#define __pyx_n_u_dict_cudaGPUDirectRDMAWritesOrd __pyx_string_tab[3189]
#define __pyx_n_u_dict_cudaGetDriverEntryPointFla __pyx_string_tab[3190]
#define __pyx_n_u_dict_cudaGraphChildGraphNodeOwn __pyx_string_tab[3191]
#define __pyx_n_u_dict_cudaGraphConditionalHandle __pyx_string_tab[3192]
#define __pyx_n_u_dict_cudaGraphConditionalNodeTy __pyx_string_tab[3193]
#define __pyx_n_u_dict_cudaGraphDebugDotFlags __pyx_string_tab[3194]
#define __pyx_n_u_dict_cudaGraphDependencyType __pyx_string_tab[3195]
#define __pyx_n_u_dict_cudaGraphExecUpdateResult __pyx_string_tab[3196]
#define __pyx_n_u_dict_cudaGraphInstantiateFlags __pyx_string_tab[3197]
#define __pyx_n_u_dict_cudaGraphInstantiateResult __pyx_string_tab[3198]
#define __pyx_n_u_dict_cudaGraphKernelNodeField __pyx_string_tab[3199]
#define __pyx_n_u_dict_cudaGraphMemAttributeType __pyx_string_tab[3200]
#define __pyx_n_u_dict_cudaGraphNodeType __pyx_string_tab[3201]
#define __pyx_n_u_dict_cudaGraphicsCubeFace __pyx_string_tab[3202]
#define __pyx_n_u_dict_cudaGraphicsMapFlags __pyx_string_tab[3203]
#define __pyx_n_u_dict_cudaGraphicsRegisterFlags __pyx_string_tab[3204]
#define __pyx_n_u_dict_cudaJitOption __pyx_string_tab[3205]
#define __pyx_n_u_dict_cudaJit_CacheMode __pyx_string_tab[3206]
#define __pyx_n_u_dict_cudaJit_Fallback __pyx_string_tab[3207]
#define __pyx_n_u_dict_cudaLaunchAttributeID __pyx_string_tab[3208]
#define __pyx_n_u_dict_cudaLaunchMemSyncDomain __pyx_string_tab[3209]
#define __pyx_n_u_dict_cudaLibraryOption __pyx_string_tab[3210]
#define __pyx_n_u_dict_cudaLimit __pyx_string_tab[3211]
#define __pyx_n_u_dict_cudaLogLevel __pyx_string_tab[3212]
#define __pyx_n_u_dict_cudaMemAccessFlags __pyx_string_tab[3213]
#define __pyx_n_u_dict_cudaMemAllocationHandleTyp __pyx_string_tab[3214]
#define __pyx_n_u_dict_cudaMemAllocationType __pyx_string_tab[3215]
#define __pyx_n_u_dict_cudaMemLocationType __pyx_string_tab[3216]
#define __pyx_n_u_dict_cudaMemPoolAttr __pyx_string_tab[3217]
#define __pyx_n_u_dict_cudaMemRangeAttribute __pyx_string_tab[3218]
#define __pyx_n_u_dict_cudaMemcpy3DOperandType __pyx_string_tab[3219]
#define __pyx_n_u_dict_cudaMemcpyFlags __pyx_string_tab[3220]
#define __pyx_n_u_dict_cudaMemcpyKind __pyx_string_tab[3221]
#define __pyx_n_u_dict_cudaMemcpySrcAccessOrder __pyx_string_tab[3222]
#define __pyx_n_u_dict_cudaMemoryAdvise __pyx_string_tab[3223]
#define __pyx_n_u_dict_cudaMemoryType __pyx_string_tab[3224]
#define __pyx_n_u_dict_cudaResourceType __pyx_string_tab[3225]
#define __pyx_n_u_dict_cudaResourceViewFormat __pyx_string_tab[3226]
#define __pyx_n_u_dict_cudaRoundMode __pyx_string_tab[3227]
#define __pyx_n_u_dict_cudaSharedCarveout __pyx_string_tab[3228]
#define __pyx_n_u_dict_cudaSharedMemConfig __pyx_string_tab[3229]
#define __pyx_n_u_dict_cudaStreamCaptureMode __pyx_string_tab[3230]
#define __pyx_n_u_dict_cudaStreamCaptureStatus __pyx_string_tab[3231]
#define __pyx_n_u_dict_cudaStreamUpdateCaptureDep __pyx_string_tab[3232]
#define __pyx_n_u_dict_cudaSurfaceBoundaryMode __pyx_string_tab[3233]
#define __pyx_n_u_dict_cudaSurfaceFormatMode __pyx_string_tab[3234]
#define __pyx_n_u_dict_cudaSynchronizationPolicy __pyx_string_tab[3235]
#define __pyx_n_u_dict_cudaTextureAddressMode __pyx_string_tab[3236]
#define __pyx_n_u_dict_cudaTextureFilterMode __pyx_string_tab[3237]
#define __pyx_n_u_dict_cudaTextureReadMode __pyx_string_tab[3238]
#define __pyx_n_u_dict_cudaUserObjectFlags __pyx_string_tab[3239]
#define __pyx_n_u_dict_cudaUserObjectRetainFlags __pyx_string_tab[3240]
#define __pyx_n_u_dict_libraryPropertyType __pyx_string_tab[3241]
#define __pyx_n_u_dim3 __pyx_string_tab[3242]
#define __pyx_n_u_dim3___reduce_cython __pyx_string_tab[3243]
#define __pyx_n_u_dim3___setstate_cython __pyx_string_tab[3244]
#define __pyx_n_u_dim3_getPtr __pyx_string_tab[3245]
#define __pyx_n_u_directManagedMemAccessFromHost_2 __pyx_string_tab[3246]
#define __pyx_n_u_disableTrilinearOptimization_2 __pyx_string_tab[3247]
#define __pyx_n_u_doc __pyx_string_tab[3248]
#define __pyx_n_u_dpitch __pyx_string_tab[3249]
#define __pyx_n_u_dptr_2 __pyx_string_tab[3250]
#define __pyx_n_u_dptr_out __pyx_string_tab[3251]
#define __pyx_n_u_dptrs __pyx_string_tab[3252]
#define __pyx_n_u_driver __pyx_string_tab[3253]
#define __pyx_n_u_driverStatus __pyx_string_tab[3254]
#define __pyx_n_u_driverVersion __pyx_string_tab[3255]
#define __pyx_n_u_driver_2 __pyx_string_tab[3256]
#define __pyx_n_u_dstArray_2 __pyx_string_tab[3257]
#define __pyx_n_u_dstDevice_2 __pyx_string_tab[3258]
#define __pyx_n_u_dstLocHint_2 __pyx_string_tab[3259]
#define __pyx_n_u_dstPos_2 __pyx_string_tab[3260]
#define __pyx_n_u_dstPtr_2 __pyx_string_tab[3261]
#define __pyx_n_u_dst_2 __pyx_string_tab[3262]
#define __pyx_n_u_dsts __pyx_string_tab[3263]
#define __pyx_n_u_dynamicSMemSize __pyx_string_tab[3264]
#define __pyx_n_u_dynamicSmemSize __pyx_string_tab[3265]
#define __pyx_n_u_edgeData __pyx_string_tab[3266]
#define __pyx_n_u_eglColorFormat_2 __pyx_string_tab[3267]
#define __pyx_n_u_eglFrame __pyx_string_tab[3268]
#define __pyx_n_u_eglStream __pyx_string_tab[3269]
#define __pyx_n_u_eglSync __pyx_string_tab[3270]
#define __pyx_n_u_eglframe __pyx_string_tab[3271]
#define __pyx_n_u_elementSize_2 __pyx_string_tab[3272]
#define __pyx_n_u_end __pyx_string_tab[3273]
#define __pyx_n_u_entryFuncAddr __pyx_string_tab[3274]
#define __pyx_n_u_enum __pyx_string_tab[3275]
#define __pyx_n_u_enumerate __pyx_string_tab[3276]
#define __pyx_n_u_err __pyx_string_tab[3277]
#define __pyx_n_u_errNode_out_2 __pyx_string_tab[3278]
#define __pyx_n_u_error __pyx_string_tab[3279]
#define __pyx_n_u_errorFromNode_2 __pyx_string_tab[3280]
#define __pyx_n_u_errorNode_2 __pyx_string_tab[3281]
#define __pyx_n_u_eventRecord_2 __pyx_string_tab[3282]
#define __pyx_n_u_eventWait_2 __pyx_string_tab[3283]
#define __pyx_n_u_event_2 __pyx_string_tab[3284]
#define __pyx_n_u_event_out __pyx_string_tab[3285]
#define __pyx_n_u_exportData __pyx_string_tab[3286]
#define __pyx_n_u_extMem __pyx_string_tab[3287]
#define __pyx_n_u_extMem_out __pyx_string_tab[3288]
#define __pyx_n_u_extSem __pyx_string_tab[3289]
#define __pyx_n_u_extSemArray_2 __pyx_string_tab[3290]
#define __pyx_n_u_extSemSignal_2 __pyx_string_tab[3291]
#define __pyx_n_u_extSemWait_2 __pyx_string_tab[3292]
#define __pyx_n_u_extSem_out __pyx_string_tab[3293]
#define __pyx_n_u_extent_2 __pyx_string_tab[3294]
#define __pyx_n_u_extra_2 __pyx_string_tab[3295]
#define __pyx_n_u_f_2 __pyx_string_tab[3296]
#define __pyx_n_u_fd_2 __pyx_string_tab[3297]
#define __pyx_n_u_fence_2 __pyx_string_tab[3298]
#define __pyx_n_u_field_2 __pyx_string_tab[3299]
#define __pyx_n_u_fileName __pyx_string_tab[3300]
#define __pyx_n_u_filterMode_2 __pyx_string_tab[3301]
#define __pyx_n_u_firstLayer_2 __pyx_string_tab[3302]
#define __pyx_n_u_firstMipmapLevel_2 __pyx_string_tab[3303]
#define __pyx_n_u_flags_2 __pyx_string_tab[3304]
#define __pyx_n_u_fmtDesc __pyx_string_tab[3305]
#define __pyx_n_u_fn_2 __pyx_string_tab[3306]
#define __pyx_n_u_format __pyx_string_tab[3307]
#define __pyx_n_u_formatDesc_2 __pyx_string_tab[3308]
#define __pyx_n_u_fptr __pyx_string_tab[3309]
#define __pyx_n_u_frameType_2 __pyx_string_tab[3310]
#define __pyx_n_u_frame_2 __pyx_string_tab[3311]
#define __pyx_n_u_free_2 __pyx_string_tab[3312]
#define __pyx_n_u_from __pyx_string_tab[3313]
#define __pyx_n_u_from_port_2 __pyx_string_tab[3314]
#define __pyx_n_u_funcPtr __pyx_string_tab[3315]
#define __pyx_n_u_func_2 __pyx_string_tab[3316]
#define __pyx_n_u_func_3 __pyx_string_tab[3317]
#define __pyx_n_u_functionTable_2 __pyx_string_tab[3318]
#define __pyx_n_u_functionWindowSize_2 __pyx_string_tab[3319]
#define __pyx_n_u_genexpr __pyx_string_tab[3320]
#define __pyx_n_u_getLocalRuntimeVersion __pyx_string_tab[3321]
#define __pyx_n_u_getPtr __pyx_string_tab[3322]
#define __pyx_n_u_getstate __pyx_string_tab[3323]
#define __pyx_n_u_globalL1CacheSupported_2 __pyx_string_tab[3324]
#define __pyx_n_u_gpuDirectRDMAFlushWritesOptions_2 __pyx_string_tab[3325]
#define __pyx_n_u_gpuDirectRDMASupported_2 __pyx_string_tab[3326]
#define __pyx_n_u_gpuDirectRDMAWritesOrdering_2 __pyx_string_tab[3327]
#define __pyx_n_u_gpuPciDeviceID_2 __pyx_string_tab[3328]
#define __pyx_n_u_gpuPciSubsystemID_2 __pyx_string_tab[3329]
#define __pyx_n_u_graphExec __pyx_string_tab[3330]
#define __pyx_n_u_graphID __pyx_string_tab[3331]
#define __pyx_n_u_graph_2 __pyx_string_tab[3332]
#define __pyx_n_u_graph_length __pyx_string_tab[3333]
#define __pyx_n_u_graph_out __pyx_string_tab[3334]
#define __pyx_n_u_greatestPriority __pyx_string_tab[3335]
#define __pyx_n_u_gridDim_2 __pyx_string_tab[3336]
#define __pyx_n_u_groupParams __pyx_string_tab[3337]
#define __pyx_n_u_h __pyx_string_tab[3338]
#define __pyx_n_u_hArray __pyx_string_tab[3339]
#define __pyx_n_u_hDst __pyx_string_tab[3340]
#define __pyx_n_u_hGraph __pyx_string_tab[3341]
#define __pyx_n_u_hGraphExec __pyx_string_tab[3342]
#define __pyx_n_u_hNode __pyx_string_tab[3343]
#define __pyx_n_u_hOffset __pyx_string_tab[3344]
#define __pyx_n_u_hOffsetDst __pyx_string_tab[3345]
#define __pyx_n_u_hOffsetSrc __pyx_string_tab[3346]
#define __pyx_n_u_hSrc __pyx_string_tab[3347]
#define __pyx_n_u_hStream __pyx_string_tab[3348]
#define __pyx_n_u_handleType __pyx_string_tab[3349]
#define __pyx_n_u_handleTypes_2 __pyx_string_tab[3350]
#define __pyx_n_u_handle_2 __pyx_string_tab[3351]
#define __pyx_n_u_height_2 __pyx_string_tab[3352]
#define __pyx_n_u_hex __pyx_string_tab[3353]
#define __pyx_n_u_hitProp_2 __pyx_string_tab[3354]
#define __pyx_n_u_hitRatio_2 __pyx_string_tab[3355]
#define __pyx_n_u_hostNativeAtomicSupported_2 __pyx_string_tab[3356]
#define __pyx_n_u_hostNumaId_2 __pyx_string_tab[3357]
#define __pyx_n_u_hostNumaMultinodeIpcSupported_2 __pyx_string_tab[3358]
#define __pyx_n_u_hostPointer_2 __pyx_string_tab[3359]
#define __pyx_n_u_hostRegisterReadOnlySupported_2 __pyx_string_tab[3360]
#define __pyx_n_u_hostRegisterSupported_2 __pyx_string_tab[3361]
#define __pyx_n_u_host_2 __pyx_string_tab[3362]
#define __pyx_n_u_id_2 __pyx_string_tab[3363]
#define __pyx_n_u_id_out __pyx_string_tab[3364]
#define __pyx_n_u_idx __pyx_string_tab[3365]
#define __pyx_n_u_image __pyx_string_tab[3366]
#define __pyx_n_u_index __pyx_string_tab[3367]
#define __pyx_n_u_info_2 __pyx_string_tab[3368]
#define __pyx_n_u_init_value __pyx_string_tab[3369]
#define __pyx_n_u_initialRefcount __pyx_string_tab[3370]
#define __pyx_n_u_input __pyx_string_tab[3371]
#define __pyx_n_u_instantiateParams __pyx_string_tab[3372]
#define __pyx_n_u_int __pyx_string_tab[3373]
#define __pyx_n_u_integrated_2 __pyx_string_tab[3374]
#define __pyx_n_u_internal_padding_2 __pyx_string_tab[3375]
#define __pyx_n_u_ipcEventSupported_2 __pyx_string_tab[3376]
#define __pyx_n_u_isEnabled_2 __pyx_string_tab[3377]
#define __pyx_n_u_isMultiGpuBoard_2 __pyx_string_tab[3378]
#define __pyx_n_u_is_coroutine __pyx_string_tab[3379]
#define __pyx_n_u_is_getter __pyx_string_tab[3380]
#define __pyx_n_u_items __pyx_string_tab[3381]
#define __pyx_n_u_iterator __pyx_string_tab[3382]
#define __pyx_n_u_iterator_out __pyx_string_tab[3383]
#define __pyx_n_u_jitOptions __pyx_string_tab[3384]
#define __pyx_n_u_jitOptionsValues __pyx_string_tab[3385]
#define __pyx_n_u_k __pyx_string_tab[3386]
#define __pyx_n_u_kernelParams __pyx_string_tab[3387]
#define __pyx_n_u_kernelPtr __pyx_string_tab[3388]
#define __pyx_n_u_kernel_2 __pyx_string_tab[3389]
#define __pyx_n_u_key_2 __pyx_string_tab[3390]
#define __pyx_n_u_keyedMutex_2 __pyx_string_tab[3391]
#define __pyx_n_u_kind_2 __pyx_string_tab[3392]
#define __pyx_n_u_l2CacheSize_2 __pyx_string_tab[3393]
#define __pyx_n_u_lambda __pyx_string_tab[3394]
#define __pyx_n_u_lastLayer_2 __pyx_string_tab[3395]
#define __pyx_n_u_lastMipmapLevel_2 __pyx_string_tab[3396]
#define __pyx_n_u_launchCompletionEvent_2 __pyx_string_tab[3397]
#define __pyx_n_u_layerHeight_2 __pyx_string_tab[3398]
#define __pyx_n_u_leastPriority __pyx_string_tab[3399]
#define __pyx_n_u_length __pyx_string_tab[3400]
#define __pyx_n_u_level __pyx_string_tab[3401]
#define __pyx_n_u_levelArray __pyx_string_tab[3402]
#define __pyx_n_u_lib __pyx_string_tab[3403]
#define __pyx_n_u_library __pyx_string_tab[3404]
#define __pyx_n_u_libraryOptionValues __pyx_string_tab[3405]
#define __pyx_n_u_libraryOptions __pyx_string_tab[3406]
#define __pyx_n_u_libraryPropertyType __pyx_string_tab[3407]
#define __pyx_n_u_limit __pyx_string_tab[3408]
#define __pyx_n_u_linear_2 __pyx_string_tab[3409]
#define __pyx_n_u_locHint_2 __pyx_string_tab[3410]
#define __pyx_n_u_localL1CacheSupported_2 __pyx_string_tab[3411]
#define __pyx_n_u_localSizeBytes_2 __pyx_string_tab[3412]
#define __pyx_n_u_location_2 __pyx_string_tab[3413]
#define __pyx_n_u_lst __pyx_string_tab[3414]
#define __pyx_n_u_luidDeviceNodeMask_2 __pyx_string_tab[3415]
#define __pyx_n_u_luid_2 __pyx_string_tab[3416]
#define __pyx_n_u_main __pyx_string_tab[3417]
#define __pyx_n_u_major_2 __pyx_string_tab[3418]
#define __pyx_n_u_make_cudaExtent __pyx_string_tab[3419]
#define __pyx_n_u_make_cudaPitchedPtr __pyx_string_tab[3420]
#define __pyx_n_u_make_cudaPos __pyx_string_tab[3421]
#define __pyx_n_u_managedMemory_2 __pyx_string_tab[3422]
#define __pyx_n_u_max __pyx_string_tab[3423]
#define __pyx_n_u_maxAnisotropy_2 __pyx_string_tab[3424]
#define __pyx_n_u_maxBlocksPerMultiProcessor_2 __pyx_string_tab[3425]
#define __pyx_n_u_maxDynamicSharedSizeBytes_2 __pyx_string_tab[3426]
#define __pyx_n_u_maxGridSize_2 __pyx_string_tab[3427]
#define __pyx_n_u_maxMipmapLevelClamp_2 __pyx_string_tab[3428]
#define __pyx_n_u_maxSize_2 __pyx_string_tab[3429]
#define __pyx_n_u_maxSurface1DLayered_2 __pyx_string_tab[3430]
#define __pyx_n_u_maxSurface1D_2 __pyx_string_tab[3431]
#define __pyx_n_u_maxSurface2DLayered_2 __pyx_string_tab[3432]
#define __pyx_n_u_maxSurface2D_2 __pyx_string_tab[3433]
#define __pyx_n_u_maxSurface3D_2 __pyx_string_tab[3434]
#define __pyx_n_u_maxSurfaceCubemapLayered_2 __pyx_string_tab[3435]
#define __pyx_n_u_maxSurfaceCubemap_2 __pyx_string_tab[3436]
#define __pyx_n_u_maxTexture1DLayered_2 __pyx_string_tab[3437]
#define __pyx_n_u_maxTexture1DMipmap_2 __pyx_string_tab[3438]
#define __pyx_n_u_maxTexture1D_2 __pyx_string_tab[3439]
#define __pyx_n_u_maxTexture2DGather_2 __pyx_string_tab[3440]
#define __pyx_n_u_maxTexture2DLayered_2 __pyx_string_tab[3441]
#define __pyx_n_u_maxTexture2DLinear_2 __pyx_string_tab[3442]
#define __pyx_n_u_maxTexture2DMipmap_2 __pyx_string_tab[3443]
#define __pyx_n_u_maxTexture2D_2 __pyx_string_tab[3444]
#define __pyx_n_u_maxTexture3DAlt_2 __pyx_string_tab[3445]
#define __pyx_n_u_maxTexture3D_2 __pyx_string_tab[3446]
#define __pyx_n_u_maxTextureCubemapLayered_2 __pyx_string_tab[3447]
#define __pyx_n_u_maxTextureCubemap_2 __pyx_string_tab[3448]
#define __pyx_n_u_maxThreadsDim_2 __pyx_string_tab[3449]
#define __pyx_n_u_maxThreadsPerBlock_2 __pyx_string_tab[3450]
#define __pyx_n_u_maxThreadsPerMultiProcessor_2 __pyx_string_tab[3451]
#define __pyx_n_u_maxWidthInElements __pyx_string_tab[3452]
#define __pyx_n_u_max_param_size __pyx_string_tab[3453]
#define __pyx_n_u_memHandleDesc __pyx_string_tab[3454]
#define __pyx_n_u_memPitch_2 __pyx_string_tab[3455]
#define __pyx_n_u_memPool __pyx_string_tab[3456]
#define __pyx_n_u_memSyncDomainMap_2 __pyx_string_tab[3457]
#define __pyx_n_u_memSyncDomain_2 __pyx_string_tab[3458]
#define __pyx_n_u_members __pyx_string_tab[3459]
#define __pyx_n_u_memcpy_2 __pyx_string_tab[3460]
#define __pyx_n_u_memoryBusWidth_2 __pyx_string_tab[3461]
#define __pyx_n_u_memoryPoolSupportedHandleTypes_2 __pyx_string_tab[3462]
#define __pyx_n_u_memoryPoolsSupported_2 __pyx_string_tab[3463]
#define __pyx_n_u_memoryRequirements __pyx_string_tab[3464]
#define __pyx_n_u_memset_2 __pyx_string_tab[3465]
#define __pyx_n_u_metaclass __pyx_string_tab[3466]
#define __pyx_n_u_minBytesToKeep __pyx_string_tab[3467]
#define __pyx_n_u_minCount __pyx_string_tab[3468]
#define __pyx_n_u_minMipmapLevelClamp_2 __pyx_string_tab[3469]
#define __pyx_n_u_minSmPartitionSize_2 __pyx_string_tab[3470]
#define __pyx_n_u_minor_2 __pyx_string_tab[3471]
#define __pyx_n_u_mipLevel __pyx_string_tab[3472]
#define __pyx_n_u_mipmapDesc __pyx_string_tab[3473]
#define __pyx_n_u_mipmapFilterMode_2 __pyx_string_tab[3474]
#define __pyx_n_u_mipmapLevelBias_2 __pyx_string_tab[3475]
#define __pyx_n_u_mipmap_2 __pyx_string_tab[3476]
#define __pyx_n_u_mipmappedArray __pyx_string_tab[3477]
#define __pyx_n_u_miptailFirstLevel_2 __pyx_string_tab[3478]
#define __pyx_n_u_miptailSize_2 __pyx_string_tab[3479]
#define __pyx_n_u_missProp_2 __pyx_string_tab[3480]
#define __pyx_n_u_mode __pyx_string_tab[3481]
#define __pyx_n_u_module __pyx_string_tab[3482]
#define __pyx_n_u_mpsEnabled_2 __pyx_string_tab[3483]
#define __pyx_n_u_mro_entries __pyx_string_tab[3484]
#define __pyx_n_u_ms __pyx_string_tab[3485]
#define __pyx_n_u_multiGpuBoardGroupID_2 __pyx_string_tab[3486]
#define __pyx_n_u_multiProcessorCount_2 __pyx_string_tab[3487]
#define __pyx_n_u_name __pyx_string_tab[3488]
#define __pyx_n_u_name_3 __pyx_string_tab[3489]
#define __pyx_n_u_nbGroups __pyx_string_tab[3490]
#define __pyx_n_u_nbResources __pyx_string_tab[3491]
#define __pyx_n_u_next __pyx_string_tab[3492]
#define __pyx_n_u_nextResource_2 __pyx_string_tab[3493]
#define __pyx_n_u_nodeId __pyx_string_tab[3494]
#define __pyx_n_u_nodeParams __pyx_string_tab[3495]
#define __pyx_n_u_node_2 __pyx_string_tab[3496]
#define __pyx_n_u_nonPortableClusterSizeAllowed_2 __pyx_string_tab[3497]
#define __pyx_n_u_normalizedCoords_2 __pyx_string_tab[3498]
#define __pyx_n_u_numAttributes __pyx_string_tab[3499]
#define __pyx_n_u_numAttrs __pyx_string_tab[3500]
#define __pyx_n_u_numBlocks __pyx_string_tab[3501]
#define __pyx_n_u_numChannels_2 __pyx_string_tab[3502]
#define __pyx_n_u_numDependencies __pyx_string_tab[3503]
#define __pyx_n_u_numDependencies_out __pyx_string_tab[3504]
#define __pyx_n_u_numEdges __pyx_string_tab[3505]
#define __pyx_n_u_numExtSems_2 __pyx_string_tab[3506]
#define __pyx_n_u_numJitOptions __pyx_string_tab[3507]
#define __pyx_n_u_numKernels __pyx_string_tab[3508]
#define __pyx_n_u_numLevels_2 __pyx_string_tab[3509]
#define __pyx_n_u_numLibraryOptions __pyx_string_tab[3510]
#define __pyx_n_u_numNodes __pyx_string_tab[3511]
#define __pyx_n_u_numOps __pyx_string_tab[3512]
#define __pyx_n_u_numPrefetchLocs __pyx_string_tab[3513]
#define __pyx_n_u_numRegs_2 __pyx_string_tab[3514]
#define __pyx_n_u_num_bytes_2 __pyx_string_tab[3515]
#define __pyx_n_u_numbytes __pyx_string_tab[3516]
#define __pyx_n_u_nvSciBufObject_2 __pyx_string_tab[3517]
#define __pyx_n_u_nvSciSyncAttrList __pyx_string_tab[3518]
#define __pyx_n_u_nvSciSyncObj_2 __pyx_string_tab[3519]
#define __pyx_n_u_nvSciSync_2 __pyx_string_tab[3520]
#define __pyx_n_u_nvlinkUtilCentricScheduling_2 __pyx_string_tab[3521]
#define __pyx_n_u_obj __pyx_string_tab[3522]
#define __pyx_n_u_objType __pyx_string_tab[3523]
#define __pyx_n_u_object __pyx_string_tab[3524]
#define __pyx_n_u_object_out __pyx_string_tab[3525]
#define __pyx_n_u_offset_2 __pyx_string_tab[3526]
#define __pyx_n_u_opList __pyx_string_tab[3527]
#define __pyx_n_u_op_2 __pyx_string_tab[3528]
#define __pyx_n_u_operations __pyx_string_tab[3529]
#define __pyx_n_u_originalGraph __pyx_string_tab[3530]
#define __pyx_n_u_originalNode __pyx_string_tab[3531]
#define __pyx_n_u_overBudget_2 __pyx_string_tab[3532]
#define __pyx_n_u_oversize_2 __pyx_string_tab[3533]
#define __pyx_n_u_ownership_2 __pyx_string_tab[3534]
#define __pyx_n_u_p __pyx_string_tab[3535]
#define __pyx_n_u_pArray_2 __pyx_string_tab[3536]
#define __pyx_n_u_pCacheConfig __pyx_string_tab[3537]
#define __pyx_n_u_pCaptureStatus __pyx_string_tab[3538]
#define __pyx_n_u_pConfig __pyx_string_tab[3539]
#define __pyx_n_u_pCopyParams __pyx_string_tab[3540]
#define __pyx_n_u_pCudaDeviceCount __pyx_string_tab[3541]
#define __pyx_n_u_pCudaResource __pyx_string_tab[3542]
#define __pyx_n_u_pDependencies __pyx_string_tab[3543]
#define __pyx_n_u_pDevice __pyx_string_tab[3544]
#define __pyx_n_u_pExportTableId __pyx_string_tab[3545]
#define __pyx_n_u_pFlags __pyx_string_tab[3546]
#define __pyx_n_u_pGraph __pyx_string_tab[3547]
#define __pyx_n_u_pGraphClone __pyx_string_tab[3548]
#define __pyx_n_u_pGraphExec __pyx_string_tab[3549]
#define __pyx_n_u_pGraphNode __pyx_string_tab[3550]
#define __pyx_n_u_pHandle_out __pyx_string_tab[3551]
#define __pyx_n_u_pHost __pyx_string_tab[3552]
#define __pyx_n_u_pKernel __pyx_string_tab[3553]
#define __pyx_n_u_pMemsetParams __pyx_string_tab[3554]
#define __pyx_n_u_pNode __pyx_string_tab[3555]
#define __pyx_n_u_pNodeParams __pyx_string_tab[3556]
#define __pyx_n_u_pNumDependencies __pyx_string_tab[3557]
#define __pyx_n_u_pNumDependentNodes __pyx_string_tab[3558]
#define __pyx_n_u_pNumRootNodes __pyx_string_tab[3559]
#define __pyx_n_u_pPitch_2 __pyx_string_tab[3560]
#define __pyx_n_u_pPlaneArray __pyx_string_tab[3561]
#define __pyx_n_u_pResDesc __pyx_string_tab[3562]
#define __pyx_n_u_pResViewDesc __pyx_string_tab[3563]
#define __pyx_n_u_pStream __pyx_string_tab[3564]
#define __pyx_n_u_pSurfObject __pyx_string_tab[3565]
#define __pyx_n_u_pTexDesc __pyx_string_tab[3566]
#define __pyx_n_u_pTexObject __pyx_string_tab[3567]
#define __pyx_n_u_pType __pyx_string_tab[3568]
#define __pyx_n_u_pValue_2 __pyx_string_tab[3569]
#define __pyx_n_u_pad_2 __pyx_string_tab[3570]
#define __pyx_n_u_pageableMemoryAccessUsesHostPage_2 __pyx_string_tab[3571]
#define __pyx_n_u_pageableMemoryAccess_2 __pyx_string_tab[3572]
#define __pyx_n_u_param_2 __pyx_string_tab[3573]
#define __pyx_n_u_paramsArray_2 __pyx_string_tab[3574]
#define __pyx_n_u_params_2 __pyx_string_tab[3575]
#define __pyx_n_u_params_out __pyx_string_tab[3576]
#define __pyx_n_u_parray __pyx_string_tab[3577]
#define __pyx_n_u_path __pyx_string_tab[3578]
#define __pyx_n_u_pathToFile __pyx_string_tab[3579]
#define __pyx_n_u_pbuffer __pyx_string_tab[3580]
#define __pyx_n_u_pcallback __pyx_string_tab[3581]
#define __pyx_n_u_pcallbackFunc __pyx_string_tab[3582]
#define __pyx_n_u_pchildGraph __pyx_string_tab[3583]
#define __pyx_n_u_pciBusID_2 __pyx_string_tab[3584]
#define __pyx_n_u_pciBusId __pyx_string_tab[3585]
#define __pyx_n_u_pciDeviceID_2 __pyx_string_tab[3586]
#define __pyx_n_u_pciDomainID_2 __pyx_string_tab[3587]
#define __pyx_n_u_pclonedGraph __pyx_string_tab[3588]
#define __pyx_n_u_pconn __pyx_string_tab[3589]
#define __pyx_n_u_pctx __pyx_string_tab[3590]
#define __pyx_n_u_pdesc __pyx_string_tab[3591]
#define __pyx_n_u_pdestroy __pyx_string_tab[3592]
#define __pyx_n_u_pdst __pyx_string_tab[3593]
#define __pyx_n_u_peerDevice __pyx_string_tab[3594]
#define __pyx_n_u_peglStream __pyx_string_tab[3595]
#define __pyx_n_u_peglSync __pyx_string_tab[3596]
#define __pyx_n_u_pend __pyx_string_tab[3597]
#define __pyx_n_u_persistingL2CacheMaxSize_2 __pyx_string_tab[3598]
#define __pyx_n_u_pevent __pyx_string_tab[3599]
#define __pyx_n_u_pextMem __pyx_string_tab[3600]
#define __pyx_n_u_pextSem __pyx_string_tab[3601]
#define __pyx_n_u_pfn __pyx_string_tab[3602]
#define __pyx_n_u_pgraph __pyx_string_tab[3603]
#define __pyx_n_u_pgraphExec __pyx_string_tab[3604]
#define __pyx_n_u_phArray __pyx_string_tab[3605]
#define __pyx_n_u_phCtx __pyx_string_tab[3606]
#define __pyx_n_u_phDesc __pyx_string_tab[3607]
#define __pyx_n_u_phDst __pyx_string_tab[3608]
#define __pyx_n_u_phEvent __pyx_string_tab[3609]
#define __pyx_n_u_phGraph __pyx_string_tab[3610]
#define __pyx_n_u_phGraphExec __pyx_string_tab[3611]
#define __pyx_n_u_phGraph_out_2 __pyx_string_tab[3612]
#define __pyx_n_u_phNode __pyx_string_tab[3613]
#define __pyx_n_u_phSrc __pyx_string_tab[3614]
#define __pyx_n_u_phStream __pyx_string_tab[3615]
#define __pyx_n_u_pheight __pyx_string_tab[3616]
#define __pyx_n_u_pimage __pyx_string_tab[3617]
#define __pyx_n_u_pitch2D_2 __pyx_string_tab[3618]
#define __pyx_n_u_pitchInBytes_2 __pyx_string_tab[3619]
#define __pyx_n_u_pitch_2 __pyx_string_tab[3620]
#define __pyx_n_u_pitchedDevPtr __pyx_string_tab[3621]
#define __pyx_n_u_pkernel __pyx_string_tab[3622]
#define __pyx_n_u_planeCount_2 __pyx_string_tab[3623]
#define __pyx_n_u_planeDesc_2 __pyx_string_tab[3624]
#define __pyx_n_u_planeIdx __pyx_string_tab[3625]
#define __pyx_n_u_plib __pyx_string_tab[3626]
#define __pyx_n_u_plibrary __pyx_string_tab[3627]
#define __pyx_n_u_pmemPool __pyx_string_tab[3628]
#define __pyx_n_u_pmipmap __pyx_string_tab[3629]
#define __pyx_n_u_pmipmappedArray __pyx_string_tab[3630]
#define __pyx_n_u_pnode __pyx_string_tab[3631]
#define __pyx_n_u_pobject __pyx_string_tab[3632]
#define __pyx_n_u_poolProps_2 __pyx_string_tab[3633]
#define __pyx_n_u_pop __pyx_string_tab[3634]
#define __pyx_n_u_poriginalGraph __pyx_string_tab[3635]
#define __pyx_n_u_poriginalNode __pyx_string_tab[3636]
#define __pyx_n_u_ppCudaResource __pyx_string_tab[3637]
#define __pyx_n_u_ppExportTable __pyx_string_tab[3638]
#define __pyx_n_u_ppStream __pyx_string_tab[3639]
#define __pyx_n_u_preferredClusterDim_2 __pyx_string_tab[3640]
#define __pyx_n_u_preferredCoscheduledSmCount_2 __pyx_string_tab[3641]
#define __pyx_n_u_preferredShmemCarveout_2 __pyx_string_tab[3642]
#define __pyx_n_u_prefetchLocIdxs __pyx_string_tab[3643]
#define __pyx_n_u_prefetchLocs __pyx_string_tab[3644]
#define __pyx_n_u_prepare __pyx_string_tab[3645]
#define __pyx_n_u_presource __pyx_string_tab[3646]
#define __pyx_n_u_presources __pyx_string_tab[3647]
#define __pyx_n_u_priority_2 __pyx_string_tab[3648]
#define __pyx_n_u_programmaticEvent_2 __pyx_string_tab[3649]
#define __pyx_n_u_programmaticStreamSerializationA_2 __pyx_string_tab[3650]
#define __pyx_n_u_prop __pyx_string_tab[3651]
#define __pyx_n_u_psrc __pyx_string_tab[3652]
#define __pyx_n_u_pstart __pyx_string_tab[3653]
#define __pyx_n_u_pstream __pyx_string_tab[3654]
#define __pyx_n_u_psurfObject __pyx_string_tab[3655]
#define __pyx_n_u_ptarget __pyx_string_tab[3656]
#define __pyx_n_u_ptexObject __pyx_string_tab[3657]
#define __pyx_n_u_ptr __pyx_string_tab[3658]
#define __pyx_n_u_ptr_2 __pyx_string_tab[3659]
#define __pyx_n_u_ptxVersion_2 __pyx_string_tab[3660]
#define __pyx_n_u_pvdpDevice __pyx_string_tab[3661]
#define __pyx_n_u_pvdpGetProcAddress __pyx_string_tab[3662]
#define __pyx_n_u_pvdpSurface __pyx_string_tab[3663]
#define __pyx_n_u_pwidth __pyx_string_tab[3664]
#define __pyx_n_u_pyObj __pyx_string_tab[3665]
#define __pyx_n_u_pyattributes __pyx_string_tab[3666]
#define __pyx_n_u_pycapabilities __pyx_string_tab[3667]
#define __pyx_n_u_pydataSizes __pyx_string_tab[3668]
#define __pyx_n_u_pydependencies_out __pyx_string_tab[3669]
#define __pyx_n_u_pydptrs __pyx_string_tab[3670]
#define __pyx_n_u_pydsts __pyx_string_tab[3671]
#define __pyx_n_u_pyedgeData __pyx_string_tab[3672]
#define __pyx_n_u_pyedgeData_out __pyx_string_tab[3673]
#define __pyx_n_u_pyfrom __pyx_string_tab[3674]
#define __pyx_n_u_pyjitOptions __pyx_string_tab[3675]
#define __pyx_n_u_pykernels __pyx_string_tab[3676]
#define __pyx_n_u_pylibraryOptions __pyx_string_tab[3677]
#define __pyx_n_u_pylist __pyx_string_tab[3678]
#define __pyx_n_u_pynodes __pyx_string_tab[3679]
#define __pyx_n_u_pyoperations __pyx_string_tab[3680]
#define __pyx_n_u_pyoptionValues __pyx_string_tab[3681]
#define __pyx_n_u_pyoptions __pyx_string_tab[3682]
#define __pyx_n_u_pypCudaDevices __pyx_string_tab[3683]
#define __pyx_n_u_pypDependencies __pyx_string_tab[3684]
#define __pyx_n_u_pypDependentNodes __pyx_string_tab[3685]
#define __pyx_n_u_pypRootNodes __pyx_string_tab[3686]
#define __pyx_n_u_pypciBusId __pyx_string_tab[3687]
#define __pyx_n_u_pyresult __pyx_string_tab[3688]
#define __pyx_n_u_pysrcs __pyx_string_tab[3689]
#define __pyx_n_u_pyto __pyx_string_tab[3690]
#define __pyx_n_u_pyx_state __pyx_string_tab[3691]
#define __pyx_n_u_qualname __pyx_string_tab[3692]
#define __pyx_n_u_readMode_2 __pyx_string_tab[3693]
#define __pyx_n_u_reduce __pyx_string_tab[3694]
#define __pyx_n_u_reduce_cython __pyx_string_tab[3695]
#define __pyx_n_u_reduce_ex __pyx_string_tab[3696]
#define __pyx_n_u_regsPerBlock_2 __pyx_string_tab[3697]
#define __pyx_n_u_regsPerMultiprocessor_2 __pyx_string_tab[3698]
#define __pyx_n_u_remainder __pyx_string_tab[3699]
#define __pyx_n_u_remaining __pyx_string_tab[3700]
#define __pyx_n_u_remote_2 __pyx_string_tab[3701]
#define __pyx_n_u_requiredClusterDepth_2 __pyx_string_tab[3702]
#define __pyx_n_u_requiredClusterHeight_2 __pyx_string_tab[3703]
#define __pyx_n_u_requiredClusterWidth_2 __pyx_string_tab[3704]
#define __pyx_n_u_resType_2 __pyx_string_tab[3705]
#define __pyx_n_u_res_2 __pyx_string_tab[3706]
#define __pyx_n_u_reserved0_2 __pyx_string_tab[3707]
#define __pyx_n_u_reserved1_2 __pyx_string_tab[3708]
#define __pyx_n_u_reserved2_2 __pyx_string_tab[3709]
#define __pyx_n_u_reservedSharedMemPerBlock_2 __pyx_string_tab[3710]
#define __pyx_n_u_reserved_2 __pyx_string_tab[3711]
#define __pyx_n_u_resource __pyx_string_tab[3712]
#define __pyx_n_u_resources __pyx_string_tab[3713]
#define __pyx_n_u_resultInfo __pyx_string_tab[3714]
#define __pyx_n_u_result_2 __pyx_string_tab[3715]
#define __pyx_n_u_result_out_2 __pyx_string_tab[3716]
#define __pyx_n_u_rowLength_2 __pyx_string_tab[3717]
#define __pyx_n_u_runtimeVersion __pyx_string_tab[3718]
#define __pyx_n_u_sRGB_2 __pyx_string_tab[3719]
#define __pyx_n_u_scope __pyx_string_tab[3720]
#define __pyx_n_u_seamlessCubemap_2 __pyx_string_tab[3721]
#define __pyx_n_u_self __pyx_string_tab[3722]
#define __pyx_n_u_semHandleDesc __pyx_string_tab[3723]
#define __pyx_n_u_send __pyx_string_tab[3724]
#define __pyx_n_u_set_name __pyx_string_tab[3725]
#define __pyx_n_u_setdefault __pyx_string_tab[3726]
#define __pyx_n_u_setstate __pyx_string_tab[3727]
#define __pyx_n_u_setstate_cython __pyx_string_tab[3728]
#define __pyx_n_u_shareableHandle __pyx_string_tab[3729]
#define __pyx_n_u_sharedMemBytes_2 __pyx_string_tab[3730]
#define __pyx_n_u_sharedMemCarveout_2 __pyx_string_tab[3731]
#define __pyx_n_u_sharedMemPerBlockOptin_2 __pyx_string_tab[3732]
#define __pyx_n_u_sharedMemPerBlock_2 __pyx_string_tab[3733]
#define __pyx_n_u_sharedMemPerMultiprocessor_2 __pyx_string_tab[3734]
#define __pyx_n_u_sharedSizeBytes_2 __pyx_string_tab[3735]
#define __pyx_n_u_sharingScope_2 __pyx_string_tab[3736]
#define __pyx_n_u_sizeInBytes_2 __pyx_string_tab[3737]
#define __pyx_n_u_size_2 __pyx_string_tab[3738]
#define __pyx_n_u_sizeof __pyx_string_tab[3739]
#define __pyx_n_u_sizes __pyx_string_tab[3740]
#define __pyx_n_u_smCoscheduledAlignment_2 __pyx_string_tab[3741]
#define __pyx_n_u_smCount_2 __pyx_string_tab[3742]
#define __pyx_n_u_sm_2 __pyx_string_tab[3743]
#define __pyx_n_u_sparseCudaArraySupported_2 __pyx_string_tab[3744]
#define __pyx_n_u_sparseProperties __pyx_string_tab[3745]
#define __pyx_n_u_spitch __pyx_string_tab[3746]
#define __pyx_n_u_srcAccessOrder_2 __pyx_string_tab[3747]
#define __pyx_n_u_srcArray_2 __pyx_string_tab[3748]
#define __pyx_n_u_srcDevice_2 __pyx_string_tab[3749]
#define __pyx_n_u_srcLocHint_2 __pyx_string_tab[3750]
#define __pyx_n_u_srcPos_2 __pyx_string_tab[3751]
#define __pyx_n_u_srcPtr_2 __pyx_string_tab[3752]
#define __pyx_n_u_src_2 __pyx_string_tab[3753]
#define __pyx_n_u_srcs __pyx_string_tab[3754]
#define __pyx_n_u_start __pyx_string_tab[3755]
#define __pyx_n_u_stream __pyx_string_tab[3756]
#define __pyx_n_u_streamId __pyx_string_tab[3757]
#define __pyx_n_u_streamPrioritiesSupported_2 __pyx_string_tab[3758]
#define __pyx_n_u_supported_types __pyx_string_tab[3759]
#define __pyx_n_u_surfObject __pyx_string_tab[3760]
#define __pyx_n_u_surfaceAlignment_2 __pyx_string_tab[3761]
#define __pyx_n_u_symbol __pyx_string_tab[3762]
#define __pyx_n_u_syncPolicy_2 __pyx_string_tab[3763]
#define __pyx_n_u_t __pyx_string_tab[3764]
#define __pyx_n_u_target __pyx_string_tab[3765]
#define __pyx_n_u_tccDriver_2 __pyx_string_tab[3766]
#define __pyx_n_u_test __pyx_string_tab[3767]
#define __pyx_n_u_texObject __pyx_string_tab[3768]
#define __pyx_n_u_textureAlignment_2 __pyx_string_tab[3769]
#define __pyx_n_u_texturePitchAlignment_2 __pyx_string_tab[3770]
#define __pyx_n_u_throw __pyx_string_tab[3771]
#define __pyx_n_u_tileExtent_2 __pyx_string_tab[3772]
#define __pyx_n_u_timelineSemaphoreInteropSupporte_2 __pyx_string_tab[3773]
#define __pyx_n_u_timeout __pyx_string_tab[3774]
#define __pyx_n_u_timeoutMs_2 __pyx_string_tab[3775]
#define __pyx_n_u_to __pyx_string_tab[3776]
#define __pyx_n_u_to_port_2 __pyx_string_tab[3777]
#define __pyx_n_u_toolsNodeId __pyx_string_tab[3778]
#define __pyx_n_u_total __pyx_string_tab[3779]
#define __pyx_n_u_totalConstMem_2 __pyx_string_tab[3780]
#define __pyx_n_u_totalGlobalMem_2 __pyx_string_tab[3781]
#define __pyx_n_u_triggerAtBlockStart_2 __pyx_string_tab[3782]
#define __pyx_n_u_type_2 __pyx_string_tab[3783]
#define __pyx_n_u_typename __pyx_string_tab[3784]
#define __pyx_n_u_typing __pyx_string_tab[3785]
#define __pyx_n_u_unifiedAddressing_2 __pyx_string_tab[3786]
#define __pyx_n_u_unifiedFunctionPointers_2 __pyx_string_tab[3787]
#define __pyx_n_u_updateData_2 __pyx_string_tab[3788]
#define __pyx_n_u_uploadStream_2 __pyx_string_tab[3789]
#define __pyx_n_u_usage_2 __pyx_string_tab[3790]
#define __pyx_n_u_userData_2 __pyx_string_tab[3791]
#define __pyx_n_u_uuid_2 __pyx_string_tab[3792]
#define __pyx_n_u_v __pyx_string_tab[3793]
#define __pyx_n_u_val_2 __pyx_string_tab[3794]
#define __pyx_n_u_value __pyx_string_tab[3795]
#define __pyx_n_u_value_out __pyx_string_tab[3796]
#define __pyx_n_u_values __pyx_string_tab[3797]
#define __pyx_n_u_vdpDevice __pyx_string_tab[3798]
#define __pyx_n_u_vdpGetProcAddress __pyx_string_tab[3799]
#define __pyx_n_u_vdpSurface __pyx_string_tab[3800]
#define __pyx_n_u_voidStarHelperdata __pyx_string_tab[3801]
#define __pyx_n_u_voidStarHelperdptrs __pyx_string_tab[3802]
#define __pyx_n_u_voidStarHelperdsts __pyx_string_tab[3803]
#define __pyx_n_u_voidStarHelperjitOptionsValues __pyx_string_tab[3804]
#define __pyx_n_u_voidStarHelperlibraryOptionValue __pyx_string_tab[3805]
#define __pyx_n_u_voidStarHelpersrcs __pyx_string_tab[3806]
#define __pyx_n_u_wOffset __pyx_string_tab[3807]
#define __pyx_n_u_wOffsetDst __pyx_string_tab[3808]
#define __pyx_n_u_wOffsetSrc __pyx_string_tab[3809]
#define __pyx_n_u_w_2 __pyx_string_tab[3810]
#define __pyx_n_u_warpSize_2 __pyx_string_tab[3811]
#define __pyx_n_u_width_2 __pyx_string_tab[3812]
#define __pyx_n_u_win32SecurityAttributes_2 __pyx_string_tab[3813]
#define __pyx_n_u_win32_2 __pyx_string_tab[3814]
#define __pyx_n_u_wqConcurrencyLimit_2 __pyx_string_tab[3815]
#define __pyx_n_u_wqConfig_2 __pyx_string_tab[3816]
#define __pyx_n_u_wq_2 __pyx_string_tab[3817]
#define __pyx_n_u_wrapper __pyx_string_tab[3818]
#define __pyx_n_u_x_2 __pyx_string_tab[3819]
#define __pyx_n_u_x_3 __pyx_string_tab[3820]
#define __pyx_n_u_xsize_2 __pyx_string_tab[3821]
#define __pyx_n_u_xsz __pyx_string_tab[3822]
#define __pyx_n_u_y_2 __pyx_string_tab[3823]
#define __pyx_n_u_ysize_2 __pyx_string_tab[3824]
#define __pyx_n_u_ysz __pyx_string_tab[3825]
#define __pyx_n_u_z_2 __pyx_string_tab[3826]
#define __pyx_n_u_zip __pyx_string_tab[3827]
#define __pyx_kp_b__5 __pyx_string_tab[3828]
#define __pyx_kp_b_char_const_cudaError_t_cudaError __pyx_string_tab[3829]
#define __pyx_kp_b_iso88591_01R_EQ_J_Wddrry_z_D_D_E_314XXbb __pyx_string_tab[3830]
#define __pyx_kp_b_iso88591_0V_G_V1_d_A_Qa __pyx_string_tab[3831]
#define __pyx_kp_b_iso88591_0Z_P_P_T_wc_1I_0_Qa_Ql_1_z_iq_6 __pyx_string_tab[3832]
#define __pyx_kp_b_iso88591_0_Q_4q_aq_xq_t_q_QfA __pyx_string_tab[3833]
#define __pyx_kp_b_iso88591_0_Q_a_1M_7q_c_c_j_t_q_QfA __pyx_string_tab[3834]
#define __pyx_kp_b_iso88591_0_q_7_E_1_Qa __pyx_string_tab[3835]
#define __pyx_kp_b_iso88591_0_t3a_q_1F_Q_s_1_s_q_Ja_t3a_q_1 __pyx_string_tab[3836]
#define __pyx_kp_b_iso88591_0_vS_1H_2_AQ_A_AQ_1_7q_AYY_a_t __pyx_string_tab[3837]
#define __pyx_kp_b_iso88591_0_wc_1IQ_Qa_Q_1_z_1_Qa __pyx_string_tab[3838]
#define __pyx_kp_b_iso88591_0_wc_1I_0_Qa_Ql_1_z_4A_G_UV_Qiq __pyx_string_tab[3839]
#define __pyx_kp_b_iso88591_0_wc_1I_0_Qa_Ql_1_z_Qa_Qa __pyx_string_tab[3840]
#define __pyx_kp_b_iso88591_0_wc_1I_q_Qa_Qk_j_az_t_q_QfA __pyx_string_tab[3841]
#define __pyx_kp_b_iso88591_0_z_A_Q_1L_S_S_AQ_1_1_5Q_8_9VV __pyx_string_tab[3842]
#define __pyx_kp_b_iso88591_0_z_A_Q_1L_S_S_AQ_1_1_O1_7q8TT __pyx_string_tab[3843]
#define __pyx_kp_b_iso88591_1 __pyx_string_tab[3844]
#define __pyx_kp_b_iso88591_12H_F_Q_iq_vS_1H_a_AQ_A_Zq_oQ_6 __pyx_string_tab[3845]
#define __pyx_kp_b_iso88591_1Q_Q_R_F_F_Q_iq_vS_1H_a_AQ_A_Zq __pyx_string_tab[3846]
#define __pyx_kp_b_iso88591_1_2 __pyx_string_tab[3847]
#define __pyx_kp_b_iso88591_1_3 __pyx_string_tab[3848]
#define __pyx_kp_b_iso88591_1_4 __pyx_string_tab[3849]
#define __pyx_kp_b_iso88591_1_7Jeeffooppq __pyx_string_tab[3850]
#define __pyx_kp_b_iso88591_1_81HA_t_q_QfA __pyx_string_tab[3851]
#define __pyx_kp_b_iso88591_1_AXQhfIQdRS_t_q_QfA __pyx_string_tab[3852]
#define __pyx_kp_b_iso88591_1_Qa __pyx_string_tab[3853]
#define __pyx_kp_b_iso88591_1_Qa_2 __pyx_string_tab[3854]
#define __pyx_kp_b_iso88591_2_0_Gq_q_7_E_0_1VV_kkl_t_q_QfA __pyx_string_tab[3855]
#define __pyx_kp_b_iso88591_2_a_q_t_q_QfA __pyx_string_tab[3856]
#define __pyx_kp_b_iso88591_2_t3a_q_1F_s_1_s_j_a_1_81_t_q_Q __pyx_string_tab[3857]
#define __pyx_kp_b_iso88591_2_uCq_1G_1_1A_1O1A_AQ_Qa __pyx_string_tab[3858]
#define __pyx_kp_b_iso88591_2_uCq_1G_1_1A_1O1A_uCq_1G_1_1A __pyx_string_tab[3859]
#define __pyx_kp_b_iso88591_2_vS_1H_2_AQ_A_AQ_1_1_Q_DA_7q_I __pyx_string_tab[3860]
#define __pyx_kp_b_iso88591_2_vS_1H_2_AQ_A_AQ_1_q_q_t_q_QfA __pyx_string_tab[3861]
#define __pyx_kp_b_iso88591_2_xs_1_1J_1_3aq_3a_1A_a_aq_t_q __pyx_string_tab[3862]
#define __pyx_kp_b_iso88591_2_xs_1_1J_2_3aq_3a_AQ_1_5X_SZZd __pyx_string_tab[3863]
#define __pyx_kp_b_iso88591_2_y_1_A_1Kq_Cq_Cq_1_6j_Qha_t_q __pyx_string_tab[3864]
#define __pyx_kp_b_iso88591_2_y_1_A_1Kq_Cq_Cq_aq_3_Q_6aq_Qa __pyx_string_tab[3865]
#define __pyx_kp_b_iso88591_2_y_q_XQ_1_t_q_QfA __pyx_string_tab[3866]
#define __pyx_kp_b_iso88591_2_z_A_Q_1L_S_S_AQ_1_1_A_A_jjuuv __pyx_string_tab[3867]
#define __pyx_kp_b_iso88591_31A_Qa __pyx_string_tab[3868]
#define __pyx_kp_b_iso88591_344_Q_hV_ggh_AQ_RRaab_t_q_QfA __pyx_string_tab[3869]
#define __pyx_kp_b_iso88591_34D_xs_1_1J_2_3aq_3a_AQ_1_Wbbii __pyx_string_tab[3870]
#define __pyx_kp_b_iso88591_34H_wc_1I_0_Qa_Ql_1_z_V7_Zq_iq __pyx_string_tab[3871]
#define __pyx_kp_b_iso88591_34R_wc_1I_0_Qa_Ql_1_z_2_a_az_Qa __pyx_string_tab[3872]
#define __pyx_kp_b_iso88591_34_3_4AQ_Qa __pyx_string_tab[3873]
#define __pyx_kp_b_iso88591_34_uCq_1G_1_1A_1O1A_mS__ffppq_2 __pyx_string_tab[3874]
#define __pyx_kp_b_iso88591_34j_F_Q_iq_vS_1H_a_AQ_A_Zq_oQ_6 __pyx_string_tab[3875]
#define __pyx_kp_b_iso88591_37_WLhhiirrsst __pyx_string_tab[3876]
#define __pyx_kp_b_iso88591_3K_K_L_f_wc_1I_0_Qa_Ql_1_z_Cz_i __pyx_string_tab[3877]
#define __pyx_kp_b_iso88591_3S_S_T_P_F_Q_iq_vS_1H_a_AQ_A_Zq __pyx_string_tab[3878]
#define __pyx_kp_b_iso88591_3S_S_T_l_F_Q_iq_vS_1H_a_AQ_A_Zq __pyx_string_tab[3879]
#define __pyx_kp_b_iso88591_3U_U_V_D_F_Q_iq_vS_1H_a_AQ_A_Zq __pyx_string_tab[3880]
#define __pyx_kp_b_iso88591_3a_q_1N_4A_s_1_s_aq_Q_Cq_1O_9_1 __pyx_string_tab[3881]
#define __pyx_kp_b_iso88591_452_xs_1_1J_1_3aq_3a_1A_T_A_a_B __pyx_string_tab[3882]
#define __pyx_kp_b_iso88591_45T_Zq_iq_Q_vS_awa_Q_Q_J_CqPWWY __pyx_string_tab[3883]
#define __pyx_kp_b_iso88591_45b_2_A_0_Qa __pyx_string_tab[3884]
#define __pyx_kp_b_iso88591_4Na4_xs_1_1J_1_3aq_3a_1A_T_6e_g __pyx_string_tab[3885]
#define __pyx_kp_b_iso88591_4_A_Ja_1_gQ_Ja_1_Ja_iq_K_K_M_M __pyx_string_tab[3886]
#define __pyx_kp_b_iso88591_4_a_1A_Kq_a __pyx_string_tab[3887]
#define __pyx_kp_b_iso88591_4_a_Qaq_t_q_QfA __pyx_string_tab[3888]
#define __pyx_kp_b_iso88591_4_t3a_q_1F_s_1_s_j_A_QgQa_t_q_Q __pyx_string_tab[3889]
#define __pyx_kp_b_iso88591_4_uCq_1G_1_1A_1O1A_C1_6ax_bbllm __pyx_string_tab[3890]
#define __pyx_kp_b_iso88591_4_vS_1H_a_AQ_A_Zq_ay_a_Qa __pyx_string_tab[3891]
#define __pyx_kp_b_iso88591_4_wc_1I_0_Qa_Ql_1_z_Qa __pyx_string_tab[3892]
#define __pyx_kp_b_iso88591_4_wc_1I_0_Qa_Ql_1_z_q_Qa __pyx_string_tab[3893]
#define __pyx_kp_b_iso88591_4_xs_Zq_1J_1_7_Zq_1Ja_Zq_iq_A_A __pyx_string_tab[3894]
#define __pyx_kp_b_iso88591_4_z_A_Q_1L_6a_S_S_Zq_A_Qm1A_t_q __pyx_string_tab[3895]
#define __pyx_kp_b_iso88591_4_z_A_Q_1L_S_S_Qa_A_q_4A5YY_hhi __pyx_string_tab[3896]
#define __pyx_kp_b_iso88591_56L_Zq_iq_Q_vS_awa_Q_Q_J_CqPWWY __pyx_string_tab[3897]
#define __pyx_kp_b_iso88591_56R_vS_1H_a_AQ_A_Zq_F_Q_iq_vS_1 __pyx_string_tab[3898]
#define __pyx_kp_b_iso88591_56_uCq_1G_1_1A_1O1A_9_MQ_ddnno __pyx_string_tab[3899]
#define __pyx_kp_b_iso88591_56_uCq_1G_1_1A_1O1A_R_eeoop_4AX __pyx_string_tab[3900]
#define __pyx_kp_b_iso88591_56_uCq_1G_1_1A_1O1A_Uaahhrrs_4A __pyx_string_tab[3901]
#define __pyx_kp_b_iso88591_56_xs_1_1J_2_3aq_3a_AQ_1_D_H_sR __pyx_string_tab[3902]
#define __pyx_kp_b_iso88591_56t_xs_1_1J_2_3aq_3a_AQ_1_D_H_w __pyx_string_tab[3903]
#define __pyx_kp_b_iso88591_5M_M_N_wc_1I_0_Qa_Ql_1_z_Cz_iq __pyx_string_tab[3904]
#define __pyx_kp_b_iso88591_5Q_G_V1_Q_MTQ_t_q_QfA __pyx_string_tab[3905]
#define __pyx_kp_b_iso88591_5Q_Qa __pyx_string_tab[3906]
#define __pyx_kp_b_iso88591_5T_T_U_V_F_Q_iq_vS_1H_a_AQ_A_Zq __pyx_string_tab[3907]
#define __pyx_kp_b_iso88591_5WKwNkklluuvvw __pyx_string_tab[3908]
#define __pyx_kp_b_iso88591_5o_o_p_p_F_Q_iq_vS_1H_a_AQ_A_Zq __pyx_string_tab[3909]
#define __pyx_kp_b_iso88591_676_xs_Zq_1J_1_7_Zq_1Ja_Zq_iq_A __pyx_string_tab[3910]
#define __pyx_kp_b_iso88591_67N_Q_a_1M_31_c_c_Qa_A_F_Q_iq_v __pyx_string_tab[3911]
#define __pyx_kp_b_iso88591_6_AS_1_7_9AU_1 __pyx_string_tab[3912]
#define __pyx_kp_b_iso88591_6_G_V1_A_CTT_kkl_t_q_QfA __pyx_string_tab[3913]
#define __pyx_kp_b_iso88591_6_G_V1_EQa_R_iij_t_q_QfA __pyx_string_tab[3914]
#define __pyx_kp_b_iso88591_6_O1_4HA_0_9UU_hhi_t_q_QfA __pyx_string_tab[3915]
#define __pyx_kp_b_iso88591_6_a_A_GwkYZ_t_q_QfA __pyx_string_tab[3916]
#define __pyx_kp_b_iso88591_6_t3a_q_1F_s_1_s_Zq_Q_Q_V1L_S_Q __pyx_string_tab[3917]
#define __pyx_kp_b_iso88591_6_t3a_q_1F_s_1_s_j_O1_4HA_6aw_Z __pyx_string_tab[3918]
#define __pyx_kp_b_iso88591_6_vS_1H_a_AQ_A_Zq_Qa __pyx_string_tab[3919]
#define __pyx_kp_b_iso88591_6_wc_1I_0_Qa_Ql_1_z_z_A_Q_1L_6a __pyx_string_tab[3920]
#define __pyx_kp_b_iso88591_6_xs_1_1Ja_3aq_3a_AQ_1_A_A_Fg_X __pyx_string_tab[3921]
#define __pyx_kp_b_iso88591_6nMQ_ggqqr_t_q_QfA __pyx_string_tab[3922]
#define __pyx_kp_b_iso88591_78J_q_7_E_q_7_E_4q_k_Qa __pyx_string_tab[3923]
#define __pyx_kp_b_iso88591_78L_vS_1H_a_AQ_A_Zq_F_Q_iq_vS_1 __pyx_string_tab[3924]
#define __pyx_kp_b_iso88591_78r_G_V1_2_2_q_Qa __pyx_string_tab[3925]
#define __pyx_kp_b_iso88591_7BYYZZccdde __pyx_string_tab[3926]
#define __pyx_kp_b_iso88591_7_WD_ffggh __pyx_string_tab[3927]
#define __pyx_kp_b_iso88591_7d_J_6QXXbbc_WJgQ_6axxq_Qa __pyx_string_tab[3928]
#define __pyx_kp_b_iso88591_7wk_Pnnooxxyyz __pyx_string_tab[3929]
#define __pyx_kp_b_iso88591_89_3_a_1AQ_t_q_Qf_9 __pyx_string_tab[3930]
#define __pyx_kp_b_iso88591_89p_G_V1_1_A_a_1_Qa __pyx_string_tab[3931]
#define __pyx_kp_b_iso88591_8_1_gZxq_Qa __pyx_string_tab[3932]
#define __pyx_kp_b_iso88591_8_5A_G_UV_Qa __pyx_string_tab[3933]
#define __pyx_kp_b_iso88591_8_q_3a_j_9AU_1 __pyx_string_tab[3934]
#define __pyx_kp_b_iso88591_8_t3a_q_1F_s_1_s_j_31A_Qa __pyx_string_tab[3935]
#define __pyx_kp_b_iso88591_8_uCq_1G_1_1A_1O1A_R_ddnno_axq __pyx_string_tab[3936]
#define __pyx_kp_b_iso88591_8_uCq_1G_1_1A_1O1A_k_7q_XX___t __pyx_string_tab[3937]
#define __pyx_kp_b_iso88591_8_wc_1I_4A_Qa_Q_aq_Q_AZq_Qa __pyx_string_tab[3938]
#define __pyx_kp_b_iso88591_8_y_1_A_1Kq_Cq_Cq_aq_3_Q_1_q_AX __pyx_string_tab[3939]
#define __pyx_kp_b_iso88591_9nnoB_B_q_uA_Q_Qa __pyx_string_tab[3940]
#define __pyx_kp_b_iso88591_A __pyx_string_tab[3941]
#define __pyx_kp_b_iso88591_AB_xs_Zq_1J_1_7_Zq_1Ja_Zq_iq_A __pyx_string_tab[3942]
#define __pyx_kp_b_iso88591_A_1_2UUXXccd_t_q_QfA __pyx_string_tab[3943]
#define __pyx_kp_b_iso88591_A_2 __pyx_string_tab[3944]
#define __pyx_kp_b_iso88591_A_3 __pyx_string_tab[3945]
#define __pyx_kp_b_iso88591_A_4w_Q_4q_q_1D_auD_uAS_PQQR_1_WA __pyx_string_tab[3946]
#define __pyx_kp_b_iso88591_A_B_b_t3a_q_1F_s_1_s_AQ_1_q_7_E __pyx_string_tab[3947]
#define __pyx_kp_b_iso88591_A_B_t_q_QfA __pyx_string_tab[3948]
#define __pyx_kp_b_iso88591_A_C1_4q_C1_4q_C1_T_C1_4q_C1_4q_1 __pyx_string_tab[3949]
#define __pyx_kp_b_iso88591_A_L_L_r_r_s_d_V_Zq_iq_6_c_1_iq __pyx_string_tab[3950]
#define __pyx_kp_b_iso88591_A_SZZ_H_H_I_I_J __pyx_string_tab[3951]
#define __pyx_kp_b_iso88591_A_t1 __pyx_string_tab[3952]
#define __pyx_kp_b_iso88591_A_t_s_4w_1_4q_Q_4q_1_WAT __pyx_string_tab[3953]
#define __pyx_kp_b_iso88591_A_t_s_4w_1_4q_Q_4q_Q_4q_Q_T_Q_4q __pyx_string_tab[3954]
#define __pyx_kp_b_iso88591_A_t_s_4w_A_4q_1_WAT __pyx_string_tab[3955]
#define __pyx_kp_b_iso88591_A_t_s_4y_A_4q_a_4q_1_WAT __pyx_string_tab[3956]
#define __pyx_kp_b_iso88591_A_z_Q __pyx_string_tab[3957]
#define __pyx_kp_b_iso88591_A_z_iq __pyx_string_tab[3958]
#define __pyx_kp_b_iso88591_A_z_iq_2 __pyx_string_tab[3959]
#define __pyx_kp_b_iso88591_A_z_iq_Q __pyx_string_tab[3960]
#define __pyx_kp_b_iso88591_A_z_iq_Q_2 __pyx_string_tab[3961]
#define __pyx_kp_b_iso88591_A_z_iq_a __pyx_string_tab[3962]
#define __pyx_kp_b_iso88591_A_z_iq_q __pyx_string_tab[3963]
#define __pyx_kp_b_iso88591_BC_0q_q_s_gU_1_y_1_vQj_9Cq_Q_J __pyx_string_tab[3964]
#define __pyx_kp_b_iso88591_B_7t_WT___q_P_cckkl_t_q_QfA __pyx_string_tab[3965]
#define __pyx_kp_b_iso88591_B_A_8_S_gghhi_t_q_a_QfI_LAQ __pyx_string_tab[3966]
#define __pyx_kp_b_iso88591_B_S_1_6a_AQ_A_Zq_a_a_UV_t_q_QfA __pyx_string_tab[3967]
#define __pyx_kp_b_iso88591_B_vS_1HA_AQ_A_Zq_UUV_6a7__qq_F __pyx_string_tab[3968]
#define __pyx_kp_b_iso88591_B_vS_1H_a_AQ_A_Zq_vS_1H_2_AQ_A __pyx_string_tab[3969]
#define __pyx_kp_b_iso88591_B_vS_1H_a_AQ_A_Zq_vS_1H_2_AQ_A_2 __pyx_string_tab[3970]
#define __pyx_kp_b_iso88591_B_wc_1IQ_Qa_Q_1_z_UUV_q_hhz_F_F __pyx_string_tab[3971]
#define __pyx_kp_b_iso88591_C7_U_A_A_B_B_K_K_L_L_M __pyx_string_tab[3972]
#define __pyx_kp_b_iso88591_CDJ_wc_1I_0_Qa_Ql_1_z_1_gZxq_A __pyx_string_tab[3973]
#define __pyx_kp_b_iso88591_CDL_0q_Qc_Cs_a_9AU_K_Q __pyx_string_tab[3974]
#define __pyx_kp_b_iso88591_CDN_0_K1KWX_G_V1_7y_1_gZxq_0_Z __pyx_string_tab[3975]
#define __pyx_kp_b_iso88591_CD_uCq_1G_1_1A_1O1A_Q_a_1M_7q_c __pyx_string_tab[3976]
#define __pyx_kp_b_iso88591_CDj_wc_1IQ_Qa_Q_1_z_1_LJVccnnuu __pyx_string_tab[3977]
#define __pyx_kp_b_iso88591_C_C_R_R_f_f_g_F_4Cz_V_Zq_iq_v_c __pyx_string_tab[3978]
#define __pyx_kp_b_iso88591_C_b_b_c_H_F_Q_iq_vS_1H_a_AQ_A_Z __pyx_string_tab[3979]
#define __pyx_kp_b_iso88591_Cq_1O1_1A_1_aq_3_Q_AQ_z_1_EQ_0 __pyx_string_tab[3980]
#define __pyx_kp_b_iso88591_D_1_gZxq_Qa_Qa __pyx_string_tab[3981]
#define __pyx_kp_b_iso88591_D_A_1_2K7R_t_q_QfA __pyx_string_tab[3982]
#define __pyx_kp_b_iso88591_D_E_wc_1I_0_Qa_Ql_1_z_t3a_q_1F __pyx_string_tab[3983]
#define __pyx_kp_b_iso88591_D_q_aq_aq_t_q_a_QfF __pyx_string_tab[3984]
#define __pyx_kp_b_iso88591_D_vS_1H_2_AQ_A_AQ_1_Q_a_1M_7q_c __pyx_string_tab[3985]
#define __pyx_kp_b_iso88591_D_wc_1I_0_Qa_Ql_1_z_xs_1_1J_2_3 __pyx_string_tab[3986]
#define __pyx_kp_b_iso88591_D_wc_1I_4A_Qa_Q_aq_Q_vS_1H_a_AQ __pyx_string_tab[3987]
#define __pyx_kp_b_iso88591_D_xs_1_1Ja_3aq_3a_AQ_1_1_AXQfAZ __pyx_string_tab[3988]
#define __pyx_kp_b_iso88591_EFR_uCq_1G_1_1A_1O1A_Q_a_1M_7q __pyx_string_tab[3989]
#define __pyx_kp_b_iso88591_EF_uCq_1G_1_1A_1O1A_Q_a_1M_7q_c __pyx_string_tab[3990]
#define __pyx_kp_b_iso88591_EF_vS_1H_2_AQ_A_AQ_1_K_Ubbmmtt __pyx_string_tab[3991]
#define __pyx_kp_b_iso88591_EFt_uCq_1G_1_1A_1O1A_Q_a_1M_7q __pyx_string_tab[3992]
#define __pyx_kp_b_iso88591_E_d_d_e_H_F_Q_iq_vS_1H_a_AQ_A_Z __pyx_string_tab[3993]
#define __pyx_kp_b_iso88591_FGJ_xs_1_1J_2_3aq_3a_AQ_1____wj __pyx_string_tab[3994]
#define __pyx_kp_b_iso88591_F_1_gZxq_A_7_Qa __pyx_string_tab[3995]
#define __pyx_kp_b_iso88591_F_4AQa_t_q_Qf_7q __pyx_string_tab[3996]
#define __pyx_kp_b_iso88591_F_A_Ja_1_gQ_Ja_1_Ja_iq_K_K_M_M __pyx_string_tab[3997]
#define __pyx_kp_b_iso88591_F_G_z_wc_1I_0_Qa_Ql_1_z_t3a_q_1 __pyx_string_tab[3998]
#define __pyx_kp_b_iso88591_F_vS_1H_a_AQ_A_Zq_22LA_8_9_kkvv __pyx_string_tab[3999]
#define __pyx_kp_b_iso88591_GH_vS_1H_2_AQ_A_AQ_1_MZWddoov_w __pyx_string_tab[4000]
#define __pyx_kp_b_iso88591_GwkY_a_G_G_H_H_Q_Q_R_R_S __pyx_string_tab[4001]
#define __pyx_kp_b_iso88591_H_Q_8_t_q_a_QfO1 __pyx_string_tab[4002]
#define __pyx_kp_b_iso88591_H_a_GuKW_ffggh_t_q_QfA __pyx_string_tab[4003]
#define __pyx_kp_b_iso88591_H_ax_A_Qa __pyx_string_tab[4004]
#define __pyx_kp_b_iso88591_H_uCq_1G_1_1A_1O1A_z_A_Q_1L_6a __pyx_string_tab[4005]
#define __pyx_kp_b_iso88591_H_vS_1H_a_AQ_A_Zq_t3a_q_1F_s_1 __pyx_string_tab[4006]
#define __pyx_kp_b_iso88591_H_vS_1H_a_AQ_A_Zq_wc_1I_0_Qa_Ql __pyx_string_tab[4007]
#define __pyx_kp_b_iso88591_H_xs_1_1J_2_3aq_3a_AQ_1_Q_Qa __pyx_string_tab[4008]
#define __pyx_kp_b_iso88591_H_xs_1_1Ja_3aq_3a_AQ_1_1_QhavQj __pyx_string_tab[4009]
#define __pyx_kp_b_iso88591_IIs_t_b_b_r_r_s_L_wc_1I_0_Qa_Ql __pyx_string_tab[4010]
#define __pyx_kp_b_iso88591_IJ_q_Q_s_vQ_7q_Q_Q_J_CqPaaccggi __pyx_string_tab[4011]
#define __pyx_kp_b_iso88591_I_P_b_c_J_J_K_K_T_T_U_U_V __pyx_string_tab[4012]
#define __pyx_kp_b_iso88591_J_q_7_E_q_7_E_a_ST_Qa __pyx_string_tab[4013]
#define __pyx_kp_b_iso88591_J_vS_1H_a_AQ_A_Zq_t3a_q_1F_s_1 __pyx_string_tab[4014]
#define __pyx_kp_b_iso88591_J_wc_1I_0_Qa_Ql_1_z_1_gZxq_q_gW __pyx_string_tab[4015]
#define __pyx_kp_b_iso88591_J_wc_1I_0_Qa_Ql_1_z_vS_1H_a_AQ __pyx_string_tab[4016]
#define __pyx_kp_b_iso88591_J_wc_1I_0_Qa_Ql_1_z_z_A_9_1_1L __pyx_string_tab[4017]
#define __pyx_kp_b_iso88591_J_y_1_A_1Kq_Cq_Cq_aq_3_Q_Q_Q_WW __pyx_string_tab[4018]
#define __pyx_kp_b_iso88591_K_K_L_T_V_Zq_iq_6_c_1_iq_wc_1I __pyx_string_tab[4019]
#define __pyx_kp_b_iso88591_L_7d_J_6QTT___WJgQ_6axxq_t_q_Qf __pyx_string_tab[4020]
#define __pyx_kp_b_iso88591_L_7q_1_gZxq_1_K6Q_t_q_QfA __pyx_string_tab[4021]
#define __pyx_kp_b_iso88591_L_a_A_X_gghhi_t_q_QfA __pyx_string_tab[4022]
#define __pyx_kp_b_iso88591_L_axq_Q_t_q_QfA __pyx_string_tab[4023]
#define __pyx_kp_b_iso88591_L_t3a_q_1F_s_1_s_j_vS_1H_a_AQ_A __pyx_string_tab[4024]
#define __pyx_kp_b_iso88591_L_uCq_1G_1_1A_1O1A_6a_a_S_6fA_A __pyx_string_tab[4025]
#define __pyx_kp_b_iso88591_L_uCq_1G_1_1A_1O1A_8_S_8_a_a_S __pyx_string_tab[4026]
#define __pyx_kp_b_iso88591_L_wc_1I_0_Qa_Ql_1_z_q_7_E_q_7_E __pyx_string_tab[4027]
#define __pyx_kp_b_iso88591_L_xs_1_1J_1_3aq_3a_1A_1_q_q_t_q __pyx_string_tab[4028]
#define __pyx_kp_b_iso88591_L_y_1_A_1Kq_Cq_Cq_AQ_1_1_wc_1I __pyx_string_tab[4029]
#define __pyx_kp_b_iso88591_NNxxyN_Q_6hm9T_eef_5X_SZZdde_l __pyx_string_tab[4030]
#define __pyx_kp_b_iso88591_N_vS_1HA_AQ_A_Zq_66Oq_4A5_kkvvw __pyx_string_tab[4031]
#define __pyx_kp_b_iso88591_N_wc_1IQ_Qa_Q_1_z_66Oq_Q_ddtt_A __pyx_string_tab[4032]
#define __pyx_kp_b_iso88591_N_wc_1IQ_Qa_Qk_j_a_B_Xbbc_t_q_Q __pyx_string_tab[4033]
#define __pyx_kp_b_iso88591_N_wc_1I_0_Qa_Ql_1_z_z_A_9_1_1L __pyx_string_tab[4034]
#define __pyx_kp_b_iso88591_N_xs_1_1J_1_3aq_3a_1A_q_q_1A_t __pyx_string_tab[4035]
#define __pyx_kp_b_iso88591_N_xs_1_1Ja_3aq_3az_j_2_3K7R_hhi __pyx_string_tab[4036]
#define __pyx_kp_b_iso88591_Oqd_wc_1I_0_Qa_Ql_1_z_iq_F_Q_Q __pyx_string_tab[4037]
#define __pyx_kp_b_iso88591_Oqr_Zq_iq_iq_Q_e_Yiillmmyyz_55K __pyx_string_tab[4038]
#define __pyx_kp_b_iso88591_PPQR_a_5X_SZZdde_6ha_DG_Vffg_t __pyx_string_tab[4039]
#define __pyx_kp_b_iso88591_PPQ_7t_WT___B_R_ddmmnnrrs_t_q_Q __pyx_string_tab[4040]
#define __pyx_kp_b_iso88591_PPQd_xs_1_1J_2_3aq_3a_AQ_1_5X_S __pyx_string_tab[4041]
#define __pyx_kp_b_iso88591_PQ_a_1A_wj8I_j_A_WW_i_j_A_A_O_O __pyx_string_tab[4042]
#define __pyx_kp_b_iso88591_P_Q_F_F_R_R_S_D_wc_1I_0_Qa_Ql_1 __pyx_string_tab[4043]
#define __pyx_kp_b_iso88591_P_Q_a_1M_31_c_c_Qa_A_uCq_1G_1_1 __pyx_string_tab[4044]
#define __pyx_kp_b_iso88591_P_Q_a_1M_c_c_1_z_A_ax_R_a_t_q_Q __pyx_string_tab[4045]
#define __pyx_kp_b_iso88591_P_Q_a_1M_c_c_j_A_QhkQ___t_q_QfA __pyx_string_tab[4046]
#define __pyx_kp_b_iso88591_P_Q_t3a_q_1F_s_1_s_AQ_1_t3a_q_1 __pyx_string_tab[4047]
#define __pyx_kp_b_iso88591_P_a_1A_t_q_QfA __pyx_string_tab[4048]
#define __pyx_kp_b_iso88591_P_q_Qa __pyx_string_tab[4049]
#define __pyx_kp_b_iso88591_P_wc_1IQ_Qa_QfAQ_1_A_4AX_RS_t_q __pyx_string_tab[4050]
#define __pyx_kp_b_iso88591_P_wc_1I_0_Qa_Ql_1_z_Q_A_q_Q_Q_a __pyx_string_tab[4051]
#define __pyx_kp_b_iso88591_P_y_1_A_1Kq_Cq_Cq_aq_3_Q_Q_VV_f __pyx_string_tab[4052]
#define __pyx_kp_b_iso88591_Q __pyx_string_tab[4053]
#define __pyx_kp_b_iso88591_QRT_uCq_1G_1_1A_1O1A_q_7_E_q_7 __pyx_string_tab[4054]
#define __pyx_kp_b_iso88591_Q_1A_t_q_QfA __pyx_string_tab[4055]
#define __pyx_kp_b_iso88591_Q_2 __pyx_string_tab[4056]
#define __pyx_kp_b_iso88591_Q_3 __pyx_string_tab[4057]
#define __pyx_kp_b_iso88591_Q_4 __pyx_string_tab[4058]
#define __pyx_kp_b_iso88591_Q_AQa_t_q_QfA __pyx_string_tab[4059]
#define __pyx_kp_b_iso88591_Q_Qa __pyx_string_tab[4060]
#define __pyx_kp_b_iso88591_Q_a_1M_c_c_Qa_2_A_0_Qa __pyx_string_tab[4061]
#define __pyx_kp_b_iso88591_Q_a_1M_c_c_Qa_2_A_5Q_8_9VV_iij __pyx_string_tab[4062]
#define __pyx_kp_b_iso88591_Q_q0K4_Z_t_q_QfA __pyx_string_tab[4063]
#define __pyx_kp_b_iso88591_Q_q_t_q_QfA __pyx_string_tab[4064]
#define __pyx_kp_b_iso88591_Qa __pyx_string_tab[4065]
#define __pyx_kp_b_iso88591_Qa_2 __pyx_string_tab[4066]
#define __pyx_kp_b_iso88591_Qa_Q_1IS_Q_9AU_1 __pyx_string_tab[4067]
#define __pyx_kp_b_iso88591_R_0_t_q_QfM __pyx_string_tab[4068]
#define __pyx_kp_b_iso88591_R_1_gZxq_y_Qa __pyx_string_tab[4069]
#define __pyx_kp_b_iso88591_R_t3a_q_1F_s_1_s_aq_Q_q_7_E_4q __pyx_string_tab[4070]
#define __pyx_kp_b_iso88591_R_vS_1H_2_AQ_A_AQ_1_Q_a_1M_7q_c __pyx_string_tab[4071]
#define __pyx_kp_b_iso88591_R_vS_1H_a_AQ_A_Zq_a_a_S_fA_A_83 __pyx_string_tab[4072]
#define __pyx_kp_b_iso88591_T_0_1I_kYZ_t_q_QfA __pyx_string_tab[4073]
#define __pyx_kp_b_iso88591_T_j_Q_iq_Q_2_s_b_36_Ql_s_Q_J_Cq __pyx_string_tab[4074]
#define __pyx_kp_b_iso88591_T_y_1_A_1Kq_Cq_Cq_aq_3_Q_7q_A_Q __pyx_string_tab[4075]
#define __pyx_kp_b_iso88591_UVH_vS_1H_2_AQ_A_AQ_1_Q_a_1M_7q __pyx_string_tab[4076]
#define __pyx_kp_b_iso88591_U_eellmmn __pyx_string_tab[4077]
#define __pyx_kp_b_iso88591_V_1_b_zQR_AQ_Qa __pyx_string_tab[4078]
#define __pyx_kp_b_iso88591_V_QhawfA_t_q_QfA __pyx_string_tab[4079]
#define __pyx_kp_b_iso88591_V_wc_1IQ_Qa_QfAQ_1_vS_1HA_AQ_AV __pyx_string_tab[4080]
#define __pyx_kp_b_iso88591_V_xs_1_1Ja_3aq_3a_1A_7q_q_7_E_A __pyx_string_tab[4081]
#define __pyx_kp_b_iso88591_WKwF___iijjk __pyx_string_tab[4082]
#define __pyx_kp_b_iso88591_WKwVwwx_y_B_B_C_C_D __pyx_string_tab[4083]
#define __pyx_kp_b_iso88591_WWX_A_1D_vYVWWX_Qa __pyx_string_tab[4084]
#define __pyx_kp_b_iso88591_WWX_a_5X_SZZdde_6ha_0_1K7R_mmn __pyx_string_tab[4085]
#define __pyx_kp_b_iso88591_WWXd_0_C1_7t_WT___0_1RR_kkww_G __pyx_string_tab[4086]
#define __pyx_kp_b_iso88591_WXH_vS_1H_2_AQ_A_AQ_1_Q_a_1M_7q __pyx_string_tab[4087]
#define __pyx_kp_b_iso88591_X_2_q_Qa __pyx_string_tab[4088]
#define __pyx_kp_b_iso88591_X_Cq_1O1_1A_1_Qa_2_A_AQ_z_1_fAW __pyx_string_tab[4089]
#define __pyx_kp_b_iso88591_X_G_V1_NaqP_ggr_s_D_D_E_t_q_QfA __pyx_string_tab[4090]
#define __pyx_kp_b_iso88591_X_q_7_E_F_Qa __pyx_string_tab[4091]
#define __pyx_kp_b_iso88591_X_vS_1H_a_AQ_A_Zq_1_Q_OvU_a_t_q __pyx_string_tab[4092]
#define __pyx_kp_b_iso88591_X_wc_1I_0_Qa_Ql_1_z_1_gZxq_wgXU __pyx_string_tab[4093]
#define __pyx_kp_b_iso88591_YYZ2_vS_1H_2_AQ_A_AQ_1_1_Q_FRYY __pyx_string_tab[4094]
#define __pyx_kp_b_iso88591_Z_1_q_t_q_a_QfHA __pyx_string_tab[4095]
#define __pyx_kp_b_iso88591_Z_2_y_q_XQ_A_t_q_a_QfJa __pyx_string_tab[4096]
#define __pyx_kp_b_iso88591_Z_Qa_MQ_8_9RRZZ_Qa __pyx_string_tab[4097]
#define __pyx_kp_b_iso88591_Z_t3a_q_1F_s_1_s_j_q_Qa __pyx_string_tab[4098]
#define __pyx_kp_b_iso88591_Z_wc_1I_0_Qa_Ql_1_z_Qj_t_q_Qf_1 __pyx_string_tab[4099]
#define __pyx_kp_b_iso88591__10 __pyx_string_tab[4100]
#define __pyx_kp_b_iso88591__11 __pyx_string_tab[4101]
#define __pyx_kp_b_iso88591__12 __pyx_string_tab[4102]
#define __pyx_kp_b_iso88591__13 __pyx_string_tab[4103]
#define __pyx_kp_b_iso88591__14 __pyx_string_tab[4104]
#define __pyx_kp_b_iso88591__15 __pyx_string_tab[4105]
#define __pyx_kp_b_iso88591__16 __pyx_string_tab[4106]
#define __pyx_kp_b_iso88591__17 __pyx_string_tab[4107]
#define __pyx_kp_b_iso88591__18 __pyx_string_tab[4108]
#define __pyx_kp_b_iso88591__19 __pyx_string_tab[4109]
#define __pyx_kp_b_iso88591__20 __pyx_string_tab[4110]
#define __pyx_kp_b_iso88591_a __pyx_string_tab[4111]
#define __pyx_kp_b_iso88591_aR_t3a_q_1F_s_1_s_AQ_1_q_7_E_4q __pyx_string_tab[4112]
#define __pyx_kp_b_iso88591_a_0_M_gZWX_t_q_QfA __pyx_string_tab[4113]
#define __pyx_kp_b_iso88591_a_1_K_Q __pyx_string_tab[4114]
#define __pyx_kp_b_iso88591_a_2 __pyx_string_tab[4115]
#define __pyx_kp_b_iso88591_a_314NgU_a_t_q_QfA __pyx_string_tab[4116]
#define __pyx_kp_b_iso88591_a_6hm9T_eef_q0PP_ffg_t_q_QfA __pyx_string_tab[4117]
#define __pyx_kp_b_iso88591_a_K_Q __pyx_string_tab[4118]
#define __pyx_kp_b_iso88591_a_Qaq_t_q_QfA __pyx_string_tab[4119]
#define __pyx_kp_b_iso88591_a_WJoQ_Q_y_ST_t_q_QfA __pyx_string_tab[4120]
#define __pyx_kp_b_iso88591_a_b_b_t3a_q_1F_s_1_s_AQ_1_t3a_q __pyx_string_tab[4121]
#define __pyx_kp_b_iso88591_abZ_uCq_1G_1_1A_1O1A_Q_a_1M_7q __pyx_string_tab[4122]
#define __pyx_kp_b_iso88591_aq_Qa __pyx_string_tab[4123]
#define __pyx_kp_b_iso88591_at_1_gZxq_vQ_QnG_XYVWWX_Qa __pyx_string_tab[4124]
#define __pyx_kp_b_iso88591_b_Qa_Qa __pyx_string_tab[4125]
#define __pyx_kp_b_iso88591_b_Qj_t_q_QfA __pyx_string_tab[4126]
#define __pyx_kp_b_iso88591_b_t3a_q_1F_s_1_s_aq_Q_q_7_E_4q __pyx_string_tab[4127]
#define __pyx_kp_b_iso88591_b_wc_1IQ_Qa_Q_1_z_1_DJm_ffmmwwx __pyx_string_tab[4128]
#define __pyx_kp_b_iso88591_c_1_Q_Qa_Q_2_1_7z_aq_Qa __pyx_string_tab[4129]
#define __pyx_kp_b_iso88591_c_1_Q_Qa_Q_8_Zq_Q_2_3K_U_rrs_t __pyx_string_tab[4130]
#define __pyx_kp_b_iso88591_cdd_wc_1I_0_Qa_Ql_1_z_t3a_q_1F __pyx_string_tab[4131]
#define __pyx_kp_b_iso88591_d_A_WJgQ_0_PQ_t_q_QfA __pyx_string_tab[4132]
#define __pyx_kp_b_iso88591_d_wc_1I_0_Qa_Ql_1_z_q_7_E_q_7_E __pyx_string_tab[4133]
#define __pyx_kp_b_iso88591_efd_wc_1I_0_Qa_Ql_1_z_t3a_q_1F __pyx_string_tab[4134]
#define __pyx_kp_b_iso88591_f_A_4A5NgU_ggh_t_q_QfA __pyx_string_tab[4135]
#define __pyx_kp_b_iso88591_fg_q_7_E_q_7_E_4q_A_87RZZ_Qa __pyx_string_tab[4136]
#define __pyx_kp_b_iso88591_j_Q_d_1_7_Q_t_q_QfA __pyx_string_tab[4137]
#define __pyx_kp_b_iso88591_k_l_q_q_r_B_vYc_1_iq_s_Zq_iq_F __pyx_string_tab[4138]
#define __pyx_kp_b_iso88591_k_q_kQR_t_q_QfA __pyx_string_tab[4139]
#define __pyx_kp_b_iso88591_klz_wc_1I_0_Qa_Ql_1_z_q_7_E_q_7 __pyx_string_tab[4140]
#define __pyx_kp_b_iso88591_n_o_t_t_u_H_vYc_1_iq_s_Zq_iq_F __pyx_string_tab[4141]
#define __pyx_kp_b_iso88591_n_vS_1H_a_AQ_A_Zq_oQ_A_I_S_ggh __pyx_string_tab[4142]
#define __pyx_kp_b_iso88591_n_wc_1I_0_Qa_Ql_1_z_y_WFR_a_Qa __pyx_string_tab[4143]
#define __pyx_kp_b_iso88591_n_wc_1I_q_Qa_Qk_j_Q_a_1M_7q_c_c __pyx_string_tab[4144]
#define __pyx_kp_b_iso88591_p_a_7y_ZW_hhi_DG_VW_t_q_QfA __pyx_string_tab[4145]
#define __pyx_kp_b_iso88591_q __pyx_string_tab[4146]
#define __pyx_kp_b_iso88591_q_2 __pyx_string_tab[4147]
#define __pyx_kp_b_iso88591_q_3 __pyx_string_tab[4148]
#define __pyx_kp_b_iso88591_q_7_E_AQ_Qa __pyx_string_tab[4149]
#define __pyx_kp_b_iso88591_q_G_Taaoov_w_A_A_B_0_1RR_ggh_t __pyx_string_tab[4150]
#define __pyx_kp_b_iso88591_q_Q_t_q_QfA __pyx_string_tab[4151]
#define __pyx_kp_b_iso88591_q_WJgQ_t_q_QfA __pyx_string_tab[4152]
#define __pyx_kp_b_iso88591_q_q_DLP_t_q_QfA __pyx_string_tab[4153]
#define __pyx_kp_b_iso88591_r_vS_1H_a_AQ_A_Zq_oQ_5Q6RR_ggpp __pyx_string_tab[4154]
#define __pyx_kp_b_iso88591_r_wc_1I_0_Qa_Ql_1_z_0_b_zQR_1_Q __pyx_string_tab[4155]
#define __pyx_kp_b_iso88591_s_Q_a_1E_c_c_aq_Q_wc_1I_0_Qa_Ql __pyx_string_tab[4156]
#define __pyx_kp_b_iso88591_t3a_q_1F_A_s_1_s_aq_Q_vS_1H_a_A __pyx_string_tab[4157]
#define __pyx_kp_b_iso88591_t3a_q_1F_s_1_s_Zq_a_1_7_t_q_QfA __pyx_string_tab[4158]
#define __pyx_kp_b_iso88591_t_t3a_q_1F_s_1_s_j_Q_4A5NhVaahh __pyx_string_tab[4159]
#define __pyx_kp_b_iso88591_t_u_D_D_X_X_Y_D_4Cz_V_Zq_iq_v_c __pyx_string_tab[4160]
#define __pyx_kp_b_iso88591_t_wc_1IQ_Qa_Ql_1_z_d_7q_QR_Qa __pyx_string_tab[4161]
#define __pyx_kp_b_iso88591_uA_1HA_t_q_QfA __pyx_string_tab[4162]
#define __pyx_kp_b_iso88591_uA_9A_Qa __pyx_string_tab[4163]
#define __pyx_kp_b_iso88591_uCq_1G1_1A_1_j_a_NeS_ffnno_t_q __pyx_string_tab[4164]
#define __pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_4AX_ffg_t_q_Qf __pyx_string_tab[4165]
#define __pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_4AX_iij_t_q_Qf __pyx_string_tab[4166]
#define __pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_8_4AX_ZZeef_t __pyx_string_tab[4167]
#define __pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_AXQa_t_q_Qf_5Q __pyx_string_tab[4168]
#define __pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_A_2_8_ZZeef_t __pyx_string_tab[4169]
#define __pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_A_6ax_WW_a_t_q __pyx_string_tab[4170]
#define __pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_A_8_AYYbbc_t_q __pyx_string_tab[4171]
#define __pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_Q_q_5Qha_t_q_Q __pyx_string_tab[4172]
#define __pyx_kp_b_iso88591_uCq_5Zq_1G_9_G1_5Zq_1G1_5Zq_iq __pyx_string_tab[4173]
#define __pyx_kp_b_iso88591_vS_1HA_AQ_A_Zq_1_Zq_a_K4_Zqqw_x __pyx_string_tab[4174]
#define __pyx_kp_b_iso88591_vS_1HA_AQ_A_Zq_Qa_Qa __pyx_string_tab[4175]
#define __pyx_kp_b_iso88591_vS_1HA_AQ_A_aq_Q_1_MTQ_t_q_QfA __pyx_string_tab[4176]
#define __pyx_kp_b_iso88591_vS_1H_2_AQ_A_AQ_1_DAYN_I_I_J_t __pyx_string_tab[4177]
#define __pyx_kp_b_iso88591_vS_1H_2_AQ_A_AQ_1_aab_Fay_Q_C_C __pyx_string_tab[4178]
#define __pyx_kp_b_iso88591_vS_1H_2_AQ_A_AQ_1_q_t_q_QfA __pyx_string_tab[4179]
#define __pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_31_1_S_36_1_Q_J __pyx_string_tab[4180]
#define __pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_AQ_Qa __pyx_string_tab[4181]
#define __pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_Qa __pyx_string_tab[4182]
#define __pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_a_a_S_fA_A_83a __pyx_string_tab[4183]
#define __pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_aq_Qa __pyx_string_tab[4184]
#define __pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_oQ_IIZZggy_z_A __pyx_string_tab[4185]
#define __pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_uCq_1G_1_1A_1O1 __pyx_string_tab[4186]
#define __pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_uCq_1G_1_1A_1O1_2 __pyx_string_tab[4187]
#define __pyx_kp_b_iso88591_vYc_1_iq_xs_1_1J_2_3aq_3a_AQ_1 __pyx_string_tab[4188]
#define __pyx_kp_b_iso88591_v_vS_1HA_AQ_A_Zq_00Fa_4A_YVW_t __pyx_string_tab[4189]
#define __pyx_kp_b_iso88591_w_x_V_Zq_iq_F_Q_iq_vS_1H_a_AQ_A __pyx_string_tab[4190]
#define __pyx_kp_b_iso88591_wc_1IQ_Qa_Q_Qa_2_A_4AQ_Qa __pyx_string_tab[4191]
#define __pyx_kp_b_iso88591_wc_1IQ_Qa_QfAQ_1_vS_1HA_AQ_AV1A __pyx_string_tab[4192]
#define __pyx_kp_b_iso88591_wc_1I_0_Qa_Ql_1_z_1_gZxq_0_QR_Q __pyx_string_tab[4193]
#define __pyx_kp_b_iso88591_wc_1I_0_Qa_Ql_1_z_k_AZ7OvUV_t_q __pyx_string_tab[4194]
#define __pyx_kp_b_iso88591_wc_1I_0_Qa_Ql_1_z_vS_1H_a_AQ_A __pyx_string_tab[4195]
#define __pyx_kp_b_iso88591_wc_1I_0_Qa_Ql_1_z_z_A_Q_1L_6a_S __pyx_string_tab[4196]
#define __pyx_kp_b_iso88591_wc_1I_4A_Qa_Q_aq_Q_Qj_Qa __pyx_string_tab[4197]
#define __pyx_kp_b_iso88591_wc_1I_4A_Qa_Q_aq_Q_vS_1H_a_AQ_A __pyx_string_tab[4198]
#define __pyx_kp_b_iso88591_wkQXXzz_E_E_F_F_G __pyx_string_tab[4199]
#define __pyx_kp_b_iso88591_wk_Hbbccllmmn __pyx_string_tab[4200]
#define __pyx_kp_b_iso88591_x_1_86_t_q_QfA __pyx_string_tab[4201]
#define __pyx_kp_b_iso88591_x_A_q_7_E_0_1SS_hhi_t_q_QfA __pyx_string_tab[4202]
#define __pyx_kp_b_iso88591_xs_1_1J_1_3aq_3a_1A_1_gZxq_QnA __pyx_string_tab[4203]
#define __pyx_kp_b_iso88591_xs_1_1J_1_3aq_3a_1A_O1_4HA_0_XX __pyx_string_tab[4204]
#define __pyx_kp_b_iso88591_xs_1_1J_1_3aq_3a_1A_Qk_t_q_QfA __pyx_string_tab[4205]
#define __pyx_kp_b_iso88591_xs_1_1J_1_3aq_3a_1A_a_1Kq_t_q_Q __pyx_string_tab[4206]
#define __pyx_kp_b_iso88591_xs_1_1J_2_3aq_3a_AQ_1_1_Qa __pyx_string_tab[4207]
#define __pyx_kp_b_iso88591_xs_1_1J_2_3aq_3a_AQ_1_AXQ_Qa __pyx_string_tab[4208]
#define __pyx_kp_b_iso88591_xs_1_1Ja_3aq_3a_AQ_1_5Qhav_PQ_t __pyx_string_tab[4209]
#define __pyx_kp_b_iso88591_xs_1_1Ja_3aq_3a_AQ_1_Qa __pyx_string_tab[4210]
#define __pyx_kp_b_iso88591_xs_Zq_1J_1_7_Zq_1Ja_Zq_iq_A_A_B __pyx_string_tab[4211]
#define __pyx_kp_b_iso88591_xs_q_xs_q_xs_q_xs_q_xs_q_xs_q_x __pyx_string_tab[4212]
#define __pyx_kp_b_iso88591_xxyP_0q_q_s_gU_1_y_1_vQj_9Cq_Q __pyx_string_tab[4213]
#define __pyx_kp_b_iso88591_y_1_A_1Kq_Cq_Cq_aq_3_Q_2_1_Qa __pyx_string_tab[4214]
#define __pyx_kp_b_iso88591_y_1_A_1Kq_Cq_Cq_aq_3_Q_C1_C1Dee __pyx_string_tab[4215]
#define __pyx_kp_b_iso88591_z_A_Q_1L_6a_S_S_Zq_AQ_Qa __pyx_string_tab[4216]
#define __pyx_kp_b_iso88591_z_A_Q_1L_S_S_AQ_1_1_0_Qa __pyx_string_tab[4217]
#define __pyx_kp_b_iso88591_z_A_Q_1L_S_S_Qa_A_q_Q_bbffqq_t __pyx_string_tab[4218]
#define __pyx_kp_b_iso88591_z_A_q_QRRS_t_q_a_QfI_LAQ __pyx_string_tab[4219]
#define __pyx_int_0 __pyx_number_tab[0]
#define __pyx_int_1 __pyx_number_tab[1]
#define __pyx_int_127 __pyx_number_tab[2]
#define __pyx_int_neg_129 __pyx_number_tab[3]
#define __pyx_int_256 __pyx_number_tab[4]
#define __pyx_int_1024 __pyx_number_tab[5]
/* #### 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
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperKernelParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperInputVoidPtr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemPool_attribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmem_range_attribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUpointer_attribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUgraphMem_attribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUjit_option);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCudaJitOption);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUlibraryOption);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCudaLibraryOption);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__InputVoidPtrPtrHelper);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUcoredumpSettings);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcontext);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmodule);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUfunction);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlibrary);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUkernel);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUarray);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmipmappedArray);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtexref);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUsurfref);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUevent);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstream);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphicsResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexternalMemory);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexternalSemaphore);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraph);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphDeviceNode);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallbackHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgreenCtx);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlinkState);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevResourceDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallbackHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_EGLImageKHR);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_EGLStreamKHR);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_EGLSyncKHR);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallback);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUhostFn);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamCallback);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUoccupancyB2DSize);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallback);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUuuid_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct0);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct3);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct4);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct5);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue_union);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union3);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct6);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct7);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct8);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct9);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct10);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct11);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union4);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct12);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union5);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct13);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union6);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct14);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union7);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct15);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct16);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct17);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union8);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct18);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct19);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union9);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct20);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct21);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union10);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union11);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct22);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct23);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct24);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union12);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union15);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevice);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtexObject);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphConditionalHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUuuid);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_cuuint32_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_cuuint64_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr_v2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevice_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtexObject_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlogIterator);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_GLenum);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_GLuint);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_EGLint);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_VdpDevice);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_VdpGetProcAddress);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_VdpVideoSurface);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_6driver_VdpOutputSurface);
  Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4type_type);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperKernelParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaArray_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaKernel_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_EGLImageKHR);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_dim3);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_dim3);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct0);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExtent);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaPos);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct3);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct4);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct5);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union0);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemLocation);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaOffset3D);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct6);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct7);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union1);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_CUuuid_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct8);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct9);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union3);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct10);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union4);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct11);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct12);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct13);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union5);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct14);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct15);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct16);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union8);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct17);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct18);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct19);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct20);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct21);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct22);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union9);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union10);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_CUuuid);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaUUID_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevResource);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaStream_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEvent_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraph_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaFunction_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLogIterator);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_GLenum);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_GLenum);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_GLuint);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_GLuint);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_EGLint);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_EGLint);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_VdpDevice);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr);
  for (int i=0; i<935; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<4220; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<6; ++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);

/* Generator.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_GeneratorType);

/* #### 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);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperKernelParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperInputVoidPtr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemPool_attribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmem_range_attribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUpointer_attribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUgraphMem_attribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUjit_option);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCudaJitOption);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUlibraryOption);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCudaLibraryOption);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__InputVoidPtrPtrHelper);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver__HelperCUcoredumpSettings);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcontext);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmodule);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUfunction);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlibrary);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUkernel);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUarray);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmipmappedArray);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtexref);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUsurfref);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUevent);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstream);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphicsResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexternalMemory);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexternalSemaphore);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraph);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphDeviceNode);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallbackHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgreenCtx);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlinkState);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevResourceDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallbackHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_EGLImageKHR);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_EGLStreamKHR);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_EGLSyncKHR);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallback);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUhostFn);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamCallback);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUoccupancyB2DSize);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallback);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUuuid_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct0);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct3);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct4);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct5);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue_union);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union3);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct6);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct7);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct8);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct9);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct10);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct11);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union4);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct12);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union5);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct13);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union6);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct14);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union7);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct15);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct16);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct17);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union8);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct18);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct19);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union9);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct20);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct21);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union10);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union11);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct22);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct23);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_struct24);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union12);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_anon_union15);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevice);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtexObject);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphConditionalHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUuuid);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_cuuint32_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_cuuint64_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr_v2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUdevice_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUtexObject_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_CUlogIterator);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_GLenum);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_GLuint);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_EGLint);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_VdpDevice);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_VdpGetProcAddress);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_VdpVideoSurface);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_6driver_VdpOutputSurface);
  Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4type_type);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperKernelParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaArray_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaKernel_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_EGLImageKHR);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_dim3);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_dim3);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct0);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExtent);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaPos);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct3);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct4);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct5);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union0);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemLocation);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaOffset3D);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct6);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct7);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union1);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_CUuuid_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct8);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct9);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union3);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct10);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union4);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct11);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct12);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct13);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union5);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct14);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct15);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct16);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union8);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct17);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct18);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct19);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct20);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct21);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_struct22);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union9);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_anon_union10);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_CUuuid);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaUUID_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaDevResource);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaStream_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEvent_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraph_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaFunction_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaLogIterator);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_GLenum);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_GLenum);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_GLuint);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_GLuint);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_EGLint);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_EGLint);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_VdpDevice);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr);
  for (int i=0; i<935; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<4220; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<6; ++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);

/* Generator.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_GeneratorType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_674generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1026
 *     cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase
 * 
 * _dict_cudaError_t = dict(((int(v), v) for k, v in cudaError_t.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphDependencyType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_672genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1026, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_674generator, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1026, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_674generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1026, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1026, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1026, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_677generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1044
 *     cudaGraphDependencyTypeProgrammatic = cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic
 * 
 * _dict_cudaGraphDependencyType = dict(((int(v), v) for k, v in cudaGraphDependencyType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphInstantiateResult(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_675genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1044, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_677generator1, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1044, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_677generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1044, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1044, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1044, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_680generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1073
 *     cudaGraphInstantiateConditionalHandleUnused = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateConditionalHandleUnused
 * 
 * _dict_cudaGraphInstantiateResult = dict(((int(v), v) for k, v in cudaGraphInstantiateResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLaunchMemSyncDomain(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_678genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1073, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_680generator2, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1073, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_680generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1073, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1073, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1073, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_683generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1103
 *     cudaLaunchMemSyncDomainRemote = cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote
 * 
 * _dict_cudaLaunchMemSyncDomain = dict(((int(v), v) for k, v in cudaLaunchMemSyncDomain.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLaunchAttributeID(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_681genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1103, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_683generator3, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1103, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_683generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1103, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1103, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1103, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_686generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1299
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAsyncNotificationType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_684genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1299, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_686generator4, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1299, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_686generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1299, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1299, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1299, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_689generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1309
 *     cudaAsyncNotificationTypeOverBudget = cyruntime.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget
 * 
 * _dict_cudaAsyncNotificationType = dict(((int(v), v) for k, v in cudaAsyncNotificationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLogLevel(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_687genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1309, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_689generator5, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1309, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_689generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1309, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1309, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1309, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_692generator6(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1318
 *     cudaLogLevelWarning = cyruntime.CUDAlogLevel_enum.cudaLogLevelWarning
 * 
 * _dict_cudaLogLevel = dict(((int(v), v) for k, v in cudaLogLevel.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDataType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_690genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1318, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_692generator6, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1318, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_692generator6(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1318, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1318, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1318, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1318, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1318, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1318, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_695generator7(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1358
 *     CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1
 * 
 * _dict_cudaDataType = dict(((int(v), v) for k, v in cudaDataType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationStrategy(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_693genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1358, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_695generator7, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1358, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_695generator7(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1358, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1358, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1358, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1358, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1358, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_698generator8(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1366
 *     CUDA_EMULATION_STRATEGY_EAGER = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_EAGER
 * 
 * _dict_cudaEmulationStrategy = dict(((int(v), v) for k, v in cudaEmulationStrategy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationMantissaControl(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_696genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1366, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_698generator8, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1366, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_698generator8(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1366, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1366, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1366, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_701generator9(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1373
 *     CUDA_EMULATION_MANTISSA_CONTROL_FIXED = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_FIXED
 * 
 * _dict_cudaEmulationMantissaControl = dict(((int(v), v) for k, v in cudaEmulationMantissaControl.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationSpecialValuesSupport(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_699genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1373, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_701generator9, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1373, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_701generator9(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1373, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1373, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1373, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_704generator10(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1382
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT
 * 
 * _dict_cudaEmulationSpecialValuesSupport = dict(((int(v), v) for k, v in cudaEmulationSpecialValuesSupport.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class libraryPropertyType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_702genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1382, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_704generator10, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1382, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_704generator10(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1382, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1382, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1382, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_707generator11(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1390
 *     PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL
 * 
 * _dict_libraryPropertyType = dict(((int(v), v) for k, v in libraryPropertyType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglFrameType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_705genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1390, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_707generator11, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1390, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_707generator11(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1390, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1390, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1390, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1390, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1390, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_710generator12(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1403
 *     cudaEglFrameTypePitch = cyruntime.cudaEglFrameType_enum.cudaEglFrameTypePitch
 * 
 * _dict_cudaEglFrameType = dict(((int(v), v) for k, v in cudaEglFrameType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglResourceLocationFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_708genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1403, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_710generator12, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1403, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_710generator12(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1403, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1403, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1403, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1403, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_713generator13(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1426
 *     cudaEglResourceLocationVidmem = cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem
 * 
 * _dict_cudaEglResourceLocationFlags = dict(((int(v), v) for k, v in cudaEglResourceLocationFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglColorFormat(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_711genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1426, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_713generator13, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1426, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_713generator13(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1426, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1426, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1426, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1426, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1426, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1426, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_716generator14(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1867
 *     cudaEglColorFormatUYVY2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY2020
 * 
 * _dict_cudaEglColorFormat = dict(((int(v), v) for k, v in cudaEglColorFormat.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaChannelFormatKind(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_714genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1867, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_716generator14, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1867, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_716generator14(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1867, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1867, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1867, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1867, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_719generator15(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":1984
 *     cudaChannelFormatKindUnsignedNormalized1010102 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized1010102
 * 
 * _dict_cudaChannelFormatKind = dict(((int(v), v) for k, v in cudaChannelFormatKind.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemoryType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_717genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 1984, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_719generator15, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[15]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 1984, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_719generator15(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 1984, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 1984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 1984, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 1984, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 1984, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1984, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 1984, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_722generator16(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2003
 *     cudaMemoryTypeManaged = cyruntime.cudaMemoryType.cudaMemoryTypeManaged
 * 
 * _dict_cudaMemoryType = dict(((int(v), v) for k, v in cudaMemoryType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpyKind(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_720genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2003, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_722generator16, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2003, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_722generator16(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2003, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2003, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2003, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2003, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2003, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_725generator17(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2026
 *     cudaMemcpyDefault = cyruntime.cudaMemcpyKind.cudaMemcpyDefault
 * 
 * _dict_cudaMemcpyKind = dict(((int(v), v) for k, v in cudaMemcpyKind.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAccessProperty(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_723genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2026, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_725generator17, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2026, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_725generator17(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2026, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2026, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2026, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_728generator18(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2043
 *     cudaAccessPropertyPersisting = cyruntime.cudaAccessProperty.cudaAccessPropertyPersisting
 * 
 * _dict_cudaAccessProperty = dict(((int(v), v) for k, v in cudaAccessProperty.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamCaptureStatus(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_726genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2043, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_728generator18, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2043, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_728generator18(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2043, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2043, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2043, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2043, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_731generator19(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2061
 *     cudaStreamCaptureStatusInvalidated = cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated
 * 
 * _dict_cudaStreamCaptureStatus = dict(((int(v), v) for k, v in cudaStreamCaptureStatus.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamCaptureMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_729genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2061, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_731generator19, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2061, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_731generator19(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2061, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2061, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2061, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_734generator20(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2073
 *     cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed
 * 
 * _dict_cudaStreamCaptureMode = dict(((int(v), v) for k, v in cudaStreamCaptureMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSynchronizationPolicy(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_732genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2073, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_734generator20, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2073, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_734generator20(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2073, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2073, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2073, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_737generator21(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2084
 *     cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync
 * 
 * _dict_cudaSynchronizationPolicy = dict(((int(v), v) for k, v in cudaSynchronizationPolicy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaClusterSchedulingPolicy(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_735genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2084, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_737generator21, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2084, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_737generator21(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2084, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2084, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2084, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2084, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2084, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_740generator22(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2102
 *     cudaClusterSchedulingPolicyLoadBalancing = cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing
 * 
 * _dict_cudaClusterSchedulingPolicy = dict(((int(v), v) for k, v in cudaClusterSchedulingPolicy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamUpdateCaptureDependenciesFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_738genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2102, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_740generator22, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2102, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_740generator22(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2102, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2102, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2102, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_743generator23(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2115
 *     cudaStreamSetCaptureDependencies = cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies
 * 
 * _dict_cudaStreamUpdateCaptureDependenciesFlags = dict(((int(v), v) for k, v in cudaStreamUpdateCaptureDependenciesFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaUserObjectFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_741genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2115, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_743generator23, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2115, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_743generator23(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2115, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2115, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2115, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2115, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_746generator24(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2126
 *     cudaUserObjectNoDestructorSync = cyruntime.cudaUserObjectFlags.cudaUserObjectNoDestructorSync
 * 
 * _dict_cudaUserObjectFlags = dict(((int(v), v) for k, v in cudaUserObjectFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaUserObjectRetainFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_744genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2126, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_746generator24, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2126, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_746generator24(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2126, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2126, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2126, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_749generator25(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2137
 *     cudaGraphUserObjectMove = cyruntime.cudaUserObjectRetainFlags.cudaGraphUserObjectMove
 * 
 * _dict_cudaUserObjectRetainFlags = dict(((int(v), v) for k, v in cudaUserObjectRetainFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsRegisterFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_747genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2137, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_749generator25, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2137, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_749generator25(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2137, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2137, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2137, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2137, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_752generator26(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2159
 *     cudaGraphicsRegisterFlagsTextureGather = cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather
 * 
 * _dict_cudaGraphicsRegisterFlags = dict(((int(v), v) for k, v in cudaGraphicsRegisterFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsMapFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_750genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2159, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_752generator26, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2159, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_752generator26(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2159, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2159, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2159, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_755generator27(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2175
 *     cudaGraphicsMapFlagsWriteDiscard = cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard
 * 
 * _dict_cudaGraphicsMapFlags = dict(((int(v), v) for k, v in cudaGraphicsMapFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsCubeFace(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_753genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2175, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_755generator27, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[27]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2175, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_755generator27(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2175, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2175, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2175, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2175, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2175, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2175, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_758generator28(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2200
 *     cudaGraphicsCubeFaceNegativeZ = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ
 * 
 * _dict_cudaGraphicsCubeFace = dict(((int(v), v) for k, v in cudaGraphicsCubeFace.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaResourceType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_756genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2200, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_758generator28, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[28]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2200, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_758generator28(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2200, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2200, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2200, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_761generator29(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2219
 *     cudaResourceTypePitch2D = cyruntime.cudaResourceType.cudaResourceTypePitch2D
 * 
 * _dict_cudaResourceType = dict(((int(v), v) for k, v in cudaResourceType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaResourceViewFormat(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_759genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2219, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_761generator29, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2219, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_761generator29(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2219, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2219, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2219, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_764generator30(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2331
 *     cudaResViewFormatUnsignedBlockCompressed7 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7
 * 
 * _dict_cudaResourceViewFormat = dict(((int(v), v) for k, v in cudaResourceViewFormat.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFuncAttribute(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_762genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2331, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_764generator30, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[30]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2331, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_764generator30(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2331, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2331, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2331, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2331, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2331, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2331, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_767generator31(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2365
 *     cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax
 * 
 * _dict_cudaFuncAttribute = dict(((int(v), v) for k, v in cudaFuncAttribute.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFuncCache(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_765genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2365, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_767generator31, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[31]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2365, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_767generator31(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2365, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2365, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2365, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_770generator32(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2384
 *     cudaFuncCachePreferEqual = cyruntime.cudaFuncCache.cudaFuncCachePreferEqual
 * 
 * _dict_cudaFuncCache = dict(((int(v), v) for k, v in cudaFuncCache.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSharedMemConfig(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_768genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2384, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_770generator32, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[32]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2384, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_770generator32(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2384, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2384, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2384, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_773generator33(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2394
 *     cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte
 * 
 * _dict_cudaSharedMemConfig = dict(((int(v), v) for k, v in cudaSharedMemConfig.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSharedCarveout(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_771genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2394, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_773generator33, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[33]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2394, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_773generator33(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2394, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2394, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2394, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_776generator34(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2411
 *     cudaSharedmemCarveoutMaxShared = cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared
 * 
 * _dict_cudaSharedCarveout = dict(((int(v), v) for k, v in cudaSharedCarveout.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaComputeMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_774genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2411, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_776generator34, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[34]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2411, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_776generator34(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2411, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2411, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2411, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_779generator35(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2434
 *     cudaComputeModeExclusiveProcess = cyruntime.cudaComputeMode.cudaComputeModeExclusiveProcess
 * 
 * _dict_cudaComputeMode = dict(((int(v), v) for k, v in cudaComputeMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLimit(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_777genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2434, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_779generator35, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2434, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_779generator35(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2434, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2434, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2434, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2434, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2434, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_782generator36(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2463
 *     cudaLimitPersistingL2CacheSize = cyruntime.cudaLimit.cudaLimitPersistingL2CacheSize
 * 
 * _dict_cudaLimit = dict(((int(v), v) for k, v in cudaLimit.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemoryAdvise(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_780genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2463, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_782generator36, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2463, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_782generator36(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2463, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2463, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2463, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2463, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_785generator37(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2490
 *     cudaMemAdviseUnsetAccessedBy = cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy
 * 
 * _dict_cudaMemoryAdvise = dict(((int(v), v) for k, v in cudaMemoryAdvise.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemRangeAttribute(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_783genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2490, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_785generator37, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2490, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_785generator37(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2490, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2490, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2490, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2490, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2490, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_788generator38(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2523
 *     cudaMemRangeAttributeLastPrefetchLocationId = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId
 * 
 * _dict_cudaMemRangeAttribute = dict(((int(v), v) for k, v in cudaMemRangeAttribute.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesOptions(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_786genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2523, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_788generator38, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[38]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2523, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_788generator38(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2523, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2523, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2523, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2523, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2523, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2523, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_791generator39(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2539
 *     cudaFlushGPUDirectRDMAWritesOptionMemOps = cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesOptions = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesOptions.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGPUDirectRDMAWritesOrdering(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_789genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2539, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_791generator39, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[39]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2539, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_791generator39(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2539, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2539, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2539, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2539, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2539, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_794generator40(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2559
 *     cudaGPUDirectRDMAWritesOrderingAllDevices = cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices
 * 
 * _dict_cudaGPUDirectRDMAWritesOrdering = dict(((int(v), v) for k, v in cudaGPUDirectRDMAWritesOrdering.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesScope(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_792genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2559, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_794generator40, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[40]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2559, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_794generator40(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2559, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2559, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2559, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2559, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_797generator41(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2573
 *     cudaFlushGPUDirectRDMAWritesToAllDevices = cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesScope = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesTarget(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_795genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2573, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_797generator41, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[41]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2573, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_797generator41(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2573, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2573, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2573, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2573, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_800generator42(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":2584
 *     cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = cyruntime.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesTarget = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesTarget.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceAttr(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_798genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 2584, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_800generator42, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[42]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 2584, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_800generator42(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 2584, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 2584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 2584, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 2584, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 2584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 2584, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_803generator43(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3005
 *     cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax
 * 
 * _dict_cudaDeviceAttr = dict(((int(v), v) for k, v in cudaDeviceAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemPoolAttr(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_801genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3005, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_803generator43, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[43]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3005, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_803generator43(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3005, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3005, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3005, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3005, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3005, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3005, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_806generator44(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3053
 *     cudaMemPoolAttrUsedMemHigh = cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh
 * 
 * _dict_cudaMemPoolAttr = dict(((int(v), v) for k, v in cudaMemPoolAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemLocationType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_804genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3053, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_806generator44, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[44]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3053, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_806generator44(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3053, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3053, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3053, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3053, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3053, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_809generator45(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3078
 *     cudaMemLocationTypeHostNumaCurrent = cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent
 * 
 * _dict_cudaMemLocationType = dict(((int(v), v) for k, v in cudaMemLocationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAccessFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_807genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3078, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_809generator45, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[45]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3078, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_809generator45(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3078, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3078, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3078, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3078, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_812generator46(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3094
 *     cudaMemAccessFlagsProtReadWrite = cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite
 * 
 * _dict_cudaMemAccessFlags = dict(((int(v), v) for k, v in cudaMemAccessFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAllocationType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_810genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3094, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_812generator46, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[46]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3094, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_812generator46(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3094, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3094, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3094, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3094, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_815generator47(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3110
 *     cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax
 * 
 * _dict_cudaMemAllocationType = dict(((int(v), v) for k, v in cudaMemAllocationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAllocationHandleType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_813genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3110, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_815generator47, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[47]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3110, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_815generator47(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3110, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3110, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3110, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3110, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_818generator48(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3134
 *     cudaMemHandleTypeFabric = cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeFabric
 * 
 * _dict_cudaMemAllocationHandleType = dict(((int(v), v) for k, v in cudaMemAllocationHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphMemAttributeType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_816genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3134, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_818generator48, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[48]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3134, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_818generator48(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3134, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3134, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3134, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3134, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3134, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_821generator49(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3159
 *     cudaGraphMemAttrReservedMemHigh = cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh
 * 
 * _dict_cudaGraphMemAttributeType = dict(((int(v), v) for k, v in cudaGraphMemAttributeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpyFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_819genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3159, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_821generator49, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[49]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3159, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_821generator49(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3159, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3159, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3159, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_824generator50(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3172
 *     cudaMemcpyFlagPreferOverlapWithCompute = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagPreferOverlapWithCompute
 * 
 * _dict_cudaMemcpyFlags = dict(((int(v), v) for k, v in cudaMemcpyFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpySrcAccessOrder(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_822genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3172, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_824generator50, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[50]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3172, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_824generator50(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3172, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3172, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3172, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3172, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_827generator51(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3205
 *     cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax
 * 
 * _dict_cudaMemcpySrcAccessOrder = dict(((int(v), v) for k, v in cudaMemcpySrcAccessOrder.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpy3DOperandType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_825genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3205, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_827generator51, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[51]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3205, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_827generator51(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3205, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3205, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3205, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3205, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_830generator52(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3220
 *     cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax
 * 
 * _dict_cudaMemcpy3DOperandType = dict(((int(v), v) for k, v in cudaMemcpy3DOperandType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceP2PAttr(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_828genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3220, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_830generator52, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[52]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3220, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_830generator52(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3220, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3220, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3220, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3220, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_833generator53(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3243
 *     cudaDevP2PAttrOnlyPartialNativeAtomicSupported = cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrOnlyPartialNativeAtomicSupported
 * 
 * _dict_cudaDeviceP2PAttr = dict(((int(v), v) for k, v in cudaDeviceP2PAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAtomicOperation(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_831genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3243, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_833generator53, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[53]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3243, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_833generator53(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3243, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3243, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3243, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_836generator54(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3263
 *     cudaAtomicOperationFloatMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMax
 * 
 * _dict_cudaAtomicOperation = dict(((int(v), v) for k, v in cudaAtomicOperation.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAtomicOperationCapability(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_834genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3263, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_836generator54, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[54]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3263, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_836generator54(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3263, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3263, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3263, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3263, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_839generator55(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3277
 * 
 * 
 * _dict_cudaAtomicOperationCapability = dict(((int(v), v) for k, v in cudaAtomicOperationCapability.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaExternalMemoryHandleType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_837genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3277, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_839generator55, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[55]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3277, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_839generator55(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3277, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3277, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3277, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3277, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_842generator56(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3308
 *     cudaExternalMemoryHandleTypeNvSciBuf = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf
 * 
 * _dict_cudaExternalMemoryHandleType = dict(((int(v), v) for k, v in cudaExternalMemoryHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaExternalSemaphoreHandleType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_840genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3308, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_842generator56, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[56]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3308, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_842generator56(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3308, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3308, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3308, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3308, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_845generator57(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3347
 *     cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32
 * 
 * _dict_cudaExternalSemaphoreHandleType = dict(((int(v), v) for k, v in cudaExternalSemaphoreHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevSmResourceGroup_flags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_843genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3347, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_845generator57, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[57]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3347, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_845generator57(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3347, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3347, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3347, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3347, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_848generator58(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3356
 *     cudaDevSmResourceGroupBackfill = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupBackfill
 * 
 * _dict_cudaDevSmResourceGroup_flags = dict(((int(v), v) for k, v in cudaDevSmResourceGroup_flags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevSmResourceSplitByCount_flags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_846genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3356, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_848generator58, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[58]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3356, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_848generator58(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3356, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3356, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3356, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_851generator59(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3365
 *     cudaDevSmResourceSplitMaxPotentialClusterSize = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitMaxPotentialClusterSize
 * 
 * _dict_cudaDevSmResourceSplitByCount_flags = dict(((int(v), v) for k, v in cudaDevSmResourceSplitByCount_flags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevResourceType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_849genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3365, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_851generator59, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[59]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3365, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_851generator59(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3365, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3365, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3365, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_854generator60(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3382
 *     cudaDevResourceTypeWorkqueue = cyruntime.cudaDevResourceType.cudaDevResourceTypeWorkqueue
 * 
 * _dict_cudaDevResourceType = dict(((int(v), v) for k, v in cudaDevResourceType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevWorkqueueConfigScope(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_852genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3382, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_854generator60, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[60]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3382, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_854generator60(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3382, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3382, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3382, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_857generator61(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3397
 *     cudaDevWorkqueueConfigScopeGreenCtxBalanced = cyruntime.cudaDevWorkqueueConfigScope.cudaDevWorkqueueConfigScopeGreenCtxBalanced
 * 
 * _dict_cudaDevWorkqueueConfigScope = dict(((int(v), v) for k, v in cudaDevWorkqueueConfigScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJitOption(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_855genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3397, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_857generator61, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[61]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3397, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_857generator61(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3397, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3397, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3397, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3397, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_860generator62(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3527
 *     cudaJitOverrideDirectiveValues = cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues
 * 
 * _dict_cudaJitOption = dict(((int(v), v) for k, v in cudaJitOption.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLibraryOption(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_858genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3527, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_860generator62, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[62]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3527, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_860generator62(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3527, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3527, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3527, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3527, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3527, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3527, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_863generator63(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3548
 *     cudaLibraryBinaryIsPreserved = cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved
 * 
 * _dict_cudaLibraryOption = dict(((int(v), v) for k, v in cudaLibraryOption.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJit_CacheMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_861genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3548, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_863generator63, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[63]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3548, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_863generator63(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3548, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3548, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3548, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3548, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_866generator64(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3564
 *     cudaJitCacheOptionCA = cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCA
 * 
 * _dict_cudaJit_CacheMode = dict(((int(v), v) for k, v in cudaJit_CacheMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJit_Fallback(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_864genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3564, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_866generator64, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[64]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3564, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_866generator64(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3564, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3564, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3564, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3564, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_869generator65(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3578
 *     cudaPreferBinary = cyruntime.cudaJit_Fallback.cudaPreferBinary
 * 
 * _dict_cudaJit_Fallback = dict(((int(v), v) for k, v in cudaJit_Fallback.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaCGScope(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_867genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3578, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_869generator65, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[65]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3578, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_869generator65(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3578, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3578, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3578, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3578, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_872generator66(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3594
 *     cudaCGScopeReserved = cyruntime.cudaCGScope.cudaCGScopeReserved
 * 
 * _dict_cudaCGScope = dict(((int(v), v) for k, v in cudaCGScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphConditionalHandleFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_870genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3594, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_872generator66, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[66]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3594, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_872generator66(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3594, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3594, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3594, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3594, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_875generator67(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3604
 *     cudaGraphCondAssignDefault = cyruntime.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault
 * 
 * _dict_cudaGraphConditionalHandleFlags = dict(((int(v), v) for k, v in cudaGraphConditionalHandleFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphConditionalNodeType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_873genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3604, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_875generator67, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[67]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3604, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_875generator67(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3604, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3604, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3604, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_878generator68(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3625
 *     cudaGraphCondTypeSwitch = cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeSwitch
 * 
 * _dict_cudaGraphConditionalNodeType = dict(((int(v), v) for k, v in cudaGraphConditionalNodeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphNodeType(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_876genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3625, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_878generator68, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[68]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3625, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_878generator68(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3625, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3625, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3625, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_881generator69(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3696
 *     cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount
 * 
 * _dict_cudaGraphNodeType = dict(((int(v), v) for k, v in cudaGraphNodeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphChildGraphNodeOwnership(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_879genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3696, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_881generator69, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[69]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3696, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_881generator69(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3696, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3696, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3696, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3696, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_884generator70(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3719
 *     cudaGraphChildGraphOwnershipMove = cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipMove
 * 
 * _dict_cudaGraphChildGraphNodeOwnership = dict(((int(v), v) for k, v in cudaGraphChildGraphNodeOwnership.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphExecUpdateResult(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_882genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3719, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_884generator70, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[70]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3719, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_884generator70(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3719, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3719, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3719, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3719, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_887generator71(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3758
 *     cudaGraphExecUpdateErrorAttributesChanged = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged
 * 
 * _dict_cudaGraphExecUpdateResult = dict(((int(v), v) for k, v in cudaGraphExecUpdateResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphKernelNodeField(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_885genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3758, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_887generator71, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[71]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3758, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_887generator71(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3758, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3758, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3758, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3758, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_890generator72(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3778
 *     cudaGraphKernelNodeFieldEnabled = cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled
 * 
 * _dict_cudaGraphKernelNodeField = dict(((int(v), v) for k, v in cudaGraphKernelNodeField.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGetDriverEntryPointFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_888genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3778, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_890generator72, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[72]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3778, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_890generator72(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3778, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3778, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3778, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3778, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_893generator73(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3796
 *     cudaEnablePerThreadDefaultStream = cyruntime.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream
 * 
 * _dict_cudaGetDriverEntryPointFlags = dict(((int(v), v) for k, v in cudaGetDriverEntryPointFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDriverEntryPointQueryResult(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_891genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3796, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_893generator73, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[73]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3796, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_893generator73(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3796, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3796, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3796, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3796, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3796, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_896generator74(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3813
 *     cudaDriverEntryPointVersionNotSufficent = cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent
 * 
 * _dict_cudaDriverEntryPointQueryResult = dict(((int(v), v) for k, v in cudaDriverEntryPointQueryResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphDebugDotFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_894genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3813, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_896generator74, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[74]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3813, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_896generator74(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3813, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3813, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3813, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3813, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3813, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3813, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_899generator75(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3854
 *     cudaGraphDebugDotFlagsConditionalNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams
 * 
 * _dict_cudaGraphDebugDotFlags = dict(((int(v), v) for k, v in cudaGraphDebugDotFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphInstantiateFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_897genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3854, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_899generator75, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[75]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3854, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_899generator75(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3854, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3854, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3854, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3854, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3854, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3854, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_902generator76(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3882
 *     cudaGraphInstantiateFlagUseNodePriority = cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority
 * 
 * _dict_cudaGraphInstantiateFlags = dict(((int(v), v) for k, v in cudaGraphInstantiateFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceNumaConfig(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_900genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3882, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_902generator76, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[76]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3882, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_902generator76(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3882, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3882, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3882, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3882, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3882, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3882, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_905generator77(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3895
 *     cudaDeviceNumaConfigNumaNode = cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode
 * 
 * _dict_cudaDeviceNumaConfig = dict(((int(v), v) for k, v in cudaDeviceNumaConfig.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSurfaceBoundaryMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_903genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3895, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_905generator77, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[77]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3895, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_905generator77(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3895, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3895, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3895, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3895, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3895, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3895, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_908generator78(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3911
 *     cudaBoundaryModeTrap = cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap
 * 
 * _dict_cudaSurfaceBoundaryMode = dict(((int(v), v) for k, v in cudaSurfaceBoundaryMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSurfaceFormatMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_906genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3911, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_908generator78, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[78]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3911, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_908generator78(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3911, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3911, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3911, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3911, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_911generator79(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3924
 *     cudaFormatModeAuto = cyruntime.cudaSurfaceFormatMode.cudaFormatModeAuto
 * 
 * _dict_cudaSurfaceFormatMode = dict(((int(v), v) for k, v in cudaSurfaceFormatMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureAddressMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_909genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3924, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_911generator79, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[79]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3924, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_911generator79(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3924, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3924, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3924, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3924, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3924, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_914generator80(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3943
 *     cudaAddressModeBorder = cyruntime.cudaTextureAddressMode.cudaAddressModeBorder
 * 
 * _dict_cudaTextureAddressMode = dict(((int(v), v) for k, v in cudaTextureAddressMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureFilterMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_912genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3943, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_914generator80, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[80]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3943, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_914generator80(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3943, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3943, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3943, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3943, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_917generator81(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3956
 *     cudaFilterModeLinear = cyruntime.cudaTextureFilterMode.cudaFilterModeLinear
 * 
 * _dict_cudaTextureFilterMode = dict(((int(v), v) for k, v in cudaTextureFilterMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureReadMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_915genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3956, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_917generator81, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[81]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3956, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_917generator81(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3956, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3956, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3956, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3956, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3956, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3956, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_920generator82(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3969
 *     cudaReadModeNormalizedFloat = cyruntime.cudaTextureReadMode.cudaReadModeNormalizedFloat
 * 
 * _dict_cudaTextureReadMode = dict(((int(v), v) for k, v in cudaTextureReadMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaRoundMode(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_918genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3969, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_920generator82, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[82]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3969, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_920generator82(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3969, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3969, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3969, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3969, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_923generator83(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3978
 *     cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf
 * 
 * _dict_cudaRoundMode = dict(((int(v), v) for k, v in cudaRoundMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGLDeviceList(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_921genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3978, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_923generator83, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[83]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3978, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_923generator83(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3978, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3978, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3978, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3978, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_926generator84(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":3996
 *     cudaGLDeviceListNextFrame = cyruntime.cudaGLDeviceList.cudaGLDeviceListNextFrame
 * 
 * _dict_cudaGLDeviceList = dict(((int(v), v) for k, v in cudaGLDeviceList.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGLMapFlags(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_924genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 3996, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_926generator84, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[84]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 3996, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_926generator84(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 3996, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 3996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 3996, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 3996, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 3996, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3996, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 3996, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_929generator85(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":4012
 *     cudaGLMapFlagsWriteDiscard = cyruntime.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard
 * 
 * _dict_cudaGLMapFlags = dict(((int(v), v) for k, v in cudaGLMapFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamAttrID(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_927genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 4012, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_929generator85, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[85]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 4012, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_929generator85(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 4012, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 4012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 4012, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 4012, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 4012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 4012, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_932generator86(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":4208
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaKernelNodeAttrID(IntEnum):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_930genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 4208, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_932generator86, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[86]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 4208, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_932generator86(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 4208, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 4208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 4208, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 4208, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 4208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 4208, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_935generator87(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":4404
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDevResourceDesc_t:
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_933genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 4404, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_935generator87, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[87]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 4404, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_935generator87(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 4404, __pyx_L1_error)
  __pyx_r = PyDict_New(); if (unlikely(!__pyx_r)) __PYX_ERR(0, 4404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  __pyx_t_2 = 0;
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 4404, __pyx_L1_error) }
  if (unlikely(__pyx_cur_scope->__pyx_genexpr_arg_0 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 4404, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_cur_scope->__pyx_genexpr_arg_0, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 4404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_k);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_k, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_v, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_cur_scope->__pyx_v_v); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(PyDict_SetItem(__pyx_r, (PyObject*)__pyx_t_6, (PyObject*)__pyx_cur_scope->__pyx_v_v))) __PYX_ERR(0, 4404, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_unsigned_int")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_unsigned_int(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_py_unsigned_int(unsigned int *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_py_unsigned_int", 0);

  /* "carray.to_py":117
 *     cdef Py_ssize_t i
 *     cdef object value
 *     l = PyList_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_l = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":118
 *     cdef object value
 *     l = PyList_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":119
 *     l = PyList_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":120
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":121
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)             # <<<<<<<<<<<<<<
 *     return l
 * 
*/
    __pyx_t_5 = __Pyx_PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 121, __pyx_L1_error)
  }

  /* "carray.to_py":122
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_l);
  __pyx_r = __pyx_v_l;
  goto __pyx_L0;

  /* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_unsigned_int")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_unsigned_int(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_py_unsigned_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_unsigned_int")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_unsigned_int(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_unsigned_int(unsigned int *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_unsigned_int", 0);

  /* "carray.to_py":129
 *     cdef Py_ssize_t i
 *     cdef object value
 *     t = PyTuple_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_t = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":130
 *     cdef object value
 *     t = PyTuple_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":131
 *     t = PyTuple_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":132
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":133
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)             # <<<<<<<<<<<<<<
 *     return t
*/
    __pyx_t_5 = __Pyx_PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 133, __pyx_L1_error)
  }

  /* "carray.to_py":134
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_t);
  __pyx_r = __pyx_v_t;
  goto __pyx_L0;

  /* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_unsigned_int")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_unsigned_int(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_tuple_unsigned_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_unsigned_int")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_unsigned_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

static int __Pyx_carray_from_py_unsigned_int(PyObject *__pyx_v_o, unsigned int *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_item = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  unsigned int __pyx_t_11;
  char const *__pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_from_py_unsigned_int", 0);

  /* "carray.from_py":80
 * @cname("__Pyx_carray_from_py_unsigned_int")
 * cdef int __Pyx_carray_from_py_unsigned_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length             # <<<<<<<<<<<<<<
 *     try:
 *         i = len(o)
*/
  __pyx_v_i = __pyx_v_length;

  /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_unsigned_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "carray.from_py":82
 *     cdef Py_ssize_t i = length
 *     try:
 *         i = len(o)             # <<<<<<<<<<<<<<
 *     except (TypeError, OverflowError):
 *         pass
*/
      __pyx_t_4 = PyObject_Length(__pyx_v_o); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 82, __pyx_L3_error)
      __pyx_v_i = __pyx_t_4;

      /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_unsigned_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "carray.from_py":83
 *     try:
 *         i = len(o)
 *     except (TypeError, OverflowError):             # <<<<<<<<<<<<<<
 *         pass
 *     if i == length:
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches2(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), ((PyObject *)(((PyTypeObject*)PyExc_OverflowError))));
    if (__pyx_t_5) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_unsigned_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
  if (__pyx_t_6) {

    /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    __pyx_t_4 = 0;
    if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
      __pyx_t_7 = __pyx_v_o; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 86, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 86, __pyx_L1_error)
      } else {
        __pyx_t_10 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 86, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_v_i = __pyx_t_4;
      __pyx_t_4 = (__pyx_t_4 + 1);

      /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":88
 *         for i, item in enumerate(o):
 *             if i >= length:
 *                 break             # <<<<<<<<<<<<<<
 *             v[i] = item
 *         else:
*/
        goto __pyx_L13_break;

        /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      }

      /* "carray.from_py":89
 *             if i >= length:
 *                 break
 *             v[i] = item             # <<<<<<<<<<<<<<
 *         else:
 *             i += 1  # convert index to length
*/
      __pyx_t_11 = __Pyx_PyLong_As_unsigned_int(__pyx_v_item); if (unlikely((__pyx_t_11 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 89, __pyx_L1_error)
      (__pyx_v_v[__pyx_v_i]) = __pyx_t_11;

      /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L15_for_else;
    __pyx_L13_break:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L16_for_end;
    /*else*/ {
      __pyx_L15_for_else:;

      /* "carray.from_py":91
 *             v[i] = item
 *         else:
 *             i += 1  # convert index to length             # <<<<<<<<<<<<<<
 *             if i == length:
 *                 return 0
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":93
 *             i += 1  # convert index to length
 *             if i == length:
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *     PyErr_Format(
*/
        __pyx_r = 0;
        goto __pyx_L0;

        /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      }
    }
    __pyx_L16_for_end:;

    /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  }

  /* "carray.from_py":98
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
 *          if i >= length else             # <<<<<<<<<<<<<<
 *          "not enough values found during array assignment, expected %zd, got %zd"),
 *         length, i)
*/
  __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
  if (__pyx_t_6) {
    __pyx_t_12 = __pyx_k_too_many_values_found_during_arr;
  } else {
    __pyx_t_12 = __pyx_k_not_enough_values_found_during_a;
  }

  /* "carray.from_py":95
 *                 return 0
 * 
 *     PyErr_Format(             # <<<<<<<<<<<<<<
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
*/
  __pyx_t_7 = PyErr_Format(((PyObject *)(((PyTypeObject*)PyExc_IndexError))), __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_unsigned_int")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_unsigned_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("carray.from_py.__Pyx_carray_from_py_unsigned_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_int")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_int(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_py_int(int *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_py_int", 0);

  /* "carray.to_py":117
 *     cdef Py_ssize_t i
 *     cdef object value
 *     l = PyList_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_l = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":118
 *     cdef object value
 *     l = PyList_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":119
 *     l = PyList_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":120
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":121
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)             # <<<<<<<<<<<<<<
 *     return l
 * 
*/
    __pyx_t_5 = __Pyx_PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 121, __pyx_L1_error)
  }

  /* "carray.to_py":122
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_l);
  __pyx_r = __pyx_v_l;
  goto __pyx_L0;

  /* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_int")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_int(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_py_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_int")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_int(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_int(int *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_int", 0);

  /* "carray.to_py":129
 *     cdef Py_ssize_t i
 *     cdef object value
 *     t = PyTuple_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_t = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":130
 *     cdef object value
 *     t = PyTuple_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":131
 *     t = PyTuple_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":132
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":133
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)             # <<<<<<<<<<<<<<
 *     return t
*/
    __pyx_t_5 = __Pyx_PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 133, __pyx_L1_error)
  }

  /* "carray.to_py":134
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_t);
  __pyx_r = __pyx_v_t;
  goto __pyx_L0;

  /* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_int")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_int(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_tuple_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_int")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

static int __Pyx_carray_from_py_int(PyObject *__pyx_v_o, int *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_item = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  char const *__pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_from_py_int", 0);

  /* "carray.from_py":80
 * @cname("__Pyx_carray_from_py_int")
 * cdef int __Pyx_carray_from_py_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length             # <<<<<<<<<<<<<<
 *     try:
 *         i = len(o)
*/
  __pyx_v_i = __pyx_v_length;

  /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "carray.from_py":82
 *     cdef Py_ssize_t i = length
 *     try:
 *         i = len(o)             # <<<<<<<<<<<<<<
 *     except (TypeError, OverflowError):
 *         pass
*/
      __pyx_t_4 = PyObject_Length(__pyx_v_o); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 82, __pyx_L3_error)
      __pyx_v_i = __pyx_t_4;

      /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "carray.from_py":83
 *     try:
 *         i = len(o)
 *     except (TypeError, OverflowError):             # <<<<<<<<<<<<<<
 *         pass
 *     if i == length:
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches2(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), ((PyObject *)(((PyTypeObject*)PyExc_OverflowError))));
    if (__pyx_t_5) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
  if (__pyx_t_6) {

    /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    __pyx_t_4 = 0;
    if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
      __pyx_t_7 = __pyx_v_o; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 86, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 86, __pyx_L1_error)
      } else {
        __pyx_t_10 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 86, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_v_i = __pyx_t_4;
      __pyx_t_4 = (__pyx_t_4 + 1);

      /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":88
 *         for i, item in enumerate(o):
 *             if i >= length:
 *                 break             # <<<<<<<<<<<<<<
 *             v[i] = item
 *         else:
*/
        goto __pyx_L13_break;

        /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      }

      /* "carray.from_py":89
 *             if i >= length:
 *                 break
 *             v[i] = item             # <<<<<<<<<<<<<<
 *         else:
 *             i += 1  # convert index to length
*/
      __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_v_item); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 89, __pyx_L1_error)
      (__pyx_v_v[__pyx_v_i]) = __pyx_t_5;

      /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L15_for_else;
    __pyx_L13_break:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L16_for_end;
    /*else*/ {
      __pyx_L15_for_else:;

      /* "carray.from_py":91
 *             v[i] = item
 *         else:
 *             i += 1  # convert index to length             # <<<<<<<<<<<<<<
 *             if i == length:
 *                 return 0
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":93
 *             i += 1  # convert index to length
 *             if i == length:
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *     PyErr_Format(
*/
        __pyx_r = 0;
        goto __pyx_L0;

        /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      }
    }
    __pyx_L16_for_end:;

    /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  }

  /* "carray.from_py":98
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
 *          if i >= length else             # <<<<<<<<<<<<<<
 *          "not enough values found during array assignment, expected %zd, got %zd"),
 *         length, i)
*/
  __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
  if (__pyx_t_6) {
    __pyx_t_11 = __pyx_k_too_many_values_found_during_arr;
  } else {
    __pyx_t_11 = __pyx_k_not_enough_values_found_during_a;
  }

  /* "carray.from_py":95
 *                 return 0
 * 
 *     PyErr_Format(             # <<<<<<<<<<<<<<
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
*/
  __pyx_t_7 = PyErr_Format(((PyObject *)(((PyTypeObject*)PyExc_IndexError))), __pyx_t_11, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_int")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_int(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("carray.from_py.__Pyx_carray_from_py_int", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_long")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_long(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_py_long(long *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_py_long", 0);

  /* "carray.to_py":117
 *     cdef Py_ssize_t i
 *     cdef object value
 *     l = PyList_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_l = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":118
 *     cdef object value
 *     l = PyList_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":119
 *     l = PyList_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_long((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":120
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":121
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)             # <<<<<<<<<<<<<<
 *     return l
 * 
*/
    __pyx_t_5 = __Pyx_PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 121, __pyx_L1_error)
  }

  /* "carray.to_py":122
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_l);
  __pyx_r = __pyx_v_l;
  goto __pyx_L0;

  /* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_long")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_long(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_py_long", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_long")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_long(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_long(long *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_long", 0);

  /* "carray.to_py":129
 *     cdef Py_ssize_t i
 *     cdef object value
 *     t = PyTuple_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_t = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":130
 *     cdef object value
 *     t = PyTuple_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":131
 *     t = PyTuple_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_long((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":132
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":133
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)             # <<<<<<<<<<<<<<
 *     return t
*/
    __pyx_t_5 = __Pyx_PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 133, __pyx_L1_error)
  }

  /* "carray.to_py":134
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_t);
  __pyx_r = __pyx_v_t;
  goto __pyx_L0;

  /* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_long")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_long(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_tuple_long", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_long")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_long(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

static int __Pyx_carray_from_py_long(PyObject *__pyx_v_o, long *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_item = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  long __pyx_t_11;
  char const *__pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_from_py_long", 0);

  /* "carray.from_py":80
 * @cname("__Pyx_carray_from_py_long")
 * cdef int __Pyx_carray_from_py_long(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length             # <<<<<<<<<<<<<<
 *     try:
 *         i = len(o)
*/
  __pyx_v_i = __pyx_v_length;

  /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_long(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "carray.from_py":82
 *     cdef Py_ssize_t i = length
 *     try:
 *         i = len(o)             # <<<<<<<<<<<<<<
 *     except (TypeError, OverflowError):
 *         pass
*/
      __pyx_t_4 = PyObject_Length(__pyx_v_o); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 82, __pyx_L3_error)
      __pyx_v_i = __pyx_t_4;

      /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_long(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "carray.from_py":83
 *     try:
 *         i = len(o)
 *     except (TypeError, OverflowError):             # <<<<<<<<<<<<<<
 *         pass
 *     if i == length:
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches2(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), ((PyObject *)(((PyTypeObject*)PyExc_OverflowError))));
    if (__pyx_t_5) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_long(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
  if (__pyx_t_6) {

    /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    __pyx_t_4 = 0;
    if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
      __pyx_t_7 = __pyx_v_o; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 86, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 86, __pyx_L1_error)
      } else {
        __pyx_t_10 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 86, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_v_i = __pyx_t_4;
      __pyx_t_4 = (__pyx_t_4 + 1);

      /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":88
 *         for i, item in enumerate(o):
 *             if i >= length:
 *                 break             # <<<<<<<<<<<<<<
 *             v[i] = item
 *         else:
*/
        goto __pyx_L13_break;

        /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      }

      /* "carray.from_py":89
 *             if i >= length:
 *                 break
 *             v[i] = item             # <<<<<<<<<<<<<<
 *         else:
 *             i += 1  # convert index to length
*/
      __pyx_t_11 = __Pyx_PyLong_As_long(__pyx_v_item); if (unlikely((__pyx_t_11 == (long)-1) && PyErr_Occurred())) __PYX_ERR(2, 89, __pyx_L1_error)
      (__pyx_v_v[__pyx_v_i]) = __pyx_t_11;

      /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L15_for_else;
    __pyx_L13_break:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L16_for_end;
    /*else*/ {
      __pyx_L15_for_else:;

      /* "carray.from_py":91
 *             v[i] = item
 *         else:
 *             i += 1  # convert index to length             # <<<<<<<<<<<<<<
 *             if i == length:
 *                 return 0
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":93
 *             i += 1  # convert index to length
 *             if i == length:
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *     PyErr_Format(
*/
        __pyx_r = 0;
        goto __pyx_L0;

        /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      }
    }
    __pyx_L16_for_end:;

    /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  }

  /* "carray.from_py":98
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
 *          if i >= length else             # <<<<<<<<<<<<<<
 *          "not enough values found during array assignment, expected %zd, got %zd"),
 *         length, i)
*/
  __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
  if (__pyx_t_6) {
    __pyx_t_12 = __pyx_k_too_many_values_found_during_arr;
  } else {
    __pyx_t_12 = __pyx_k_not_enough_values_found_during_a;
  }

  /* "carray.from_py":95
 *                 return 0
 * 
 *     PyErr_Format(             # <<<<<<<<<<<<<<
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
*/
  __pyx_t_7 = PyErr_Format(((PyObject *)(((PyTypeObject*)PyExc_IndexError))), __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_long")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_long(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("carray.from_py.__Pyx_carray_from_py_long", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __Pyx_carray_from_py_char(PyObject *__pyx_v_o, char *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_item = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  char __pyx_t_11;
  char const *__pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_from_py_char", 0);

  /* "carray.from_py":80
 * @cname("__Pyx_carray_from_py_char")
 * cdef int __Pyx_carray_from_py_char(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length             # <<<<<<<<<<<<<<
 *     try:
 *         i = len(o)
*/
  __pyx_v_i = __pyx_v_length;

  /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_char(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "carray.from_py":82
 *     cdef Py_ssize_t i = length
 *     try:
 *         i = len(o)             # <<<<<<<<<<<<<<
 *     except (TypeError, OverflowError):
 *         pass
*/
      __pyx_t_4 = PyObject_Length(__pyx_v_o); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 82, __pyx_L3_error)
      __pyx_v_i = __pyx_t_4;

      /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_char(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "carray.from_py":83
 *     try:
 *         i = len(o)
 *     except (TypeError, OverflowError):             # <<<<<<<<<<<<<<
 *         pass
 *     if i == length:
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches2(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), ((PyObject *)(((PyTypeObject*)PyExc_OverflowError))));
    if (__pyx_t_5) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_char(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
  if (__pyx_t_6) {

    /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    __pyx_t_4 = 0;
    if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
      __pyx_t_7 = __pyx_v_o; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 86, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 86, __pyx_L1_error)
      } else {
        __pyx_t_10 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 86, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_v_i = __pyx_t_4;
      __pyx_t_4 = (__pyx_t_4 + 1);

      /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":88
 *         for i, item in enumerate(o):
 *             if i >= length:
 *                 break             # <<<<<<<<<<<<<<
 *             v[i] = item
 *         else:
*/
        goto __pyx_L13_break;

        /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      }

      /* "carray.from_py":89
 *             if i >= length:
 *                 break
 *             v[i] = item             # <<<<<<<<<<<<<<
 *         else:
 *             i += 1  # convert index to length
*/
      __pyx_t_11 = __Pyx_PyLong_As_char(__pyx_v_item); if (unlikely((__pyx_t_11 == (char)-1) && PyErr_Occurred())) __PYX_ERR(2, 89, __pyx_L1_error)
      (__pyx_v_v[__pyx_v_i]) = __pyx_t_11;

      /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L15_for_else;
    __pyx_L13_break:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L16_for_end;
    /*else*/ {
      __pyx_L15_for_else:;

      /* "carray.from_py":91
 *             v[i] = item
 *         else:
 *             i += 1  # convert index to length             # <<<<<<<<<<<<<<
 *             if i == length:
 *                 return 0
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":93
 *             i += 1  # convert index to length
 *             if i == length:
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *     PyErr_Format(
*/
        __pyx_r = 0;
        goto __pyx_L0;

        /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      }
    }
    __pyx_L16_for_end:;

    /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  }

  /* "carray.from_py":98
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
 *          if i >= length else             # <<<<<<<<<<<<<<
 *          "not enough values found during array assignment, expected %zd, got %zd"),
 *         length, i)
*/
  __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
  if (__pyx_t_6) {
    __pyx_t_12 = __pyx_k_too_many_values_found_during_arr;
  } else {
    __pyx_t_12 = __pyx_k_not_enough_values_found_during_a;
  }

  /* "carray.from_py":95
 *                 return 0
 * 
 *     PyErr_Format(             # <<<<<<<<<<<<<<
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
*/
  __pyx_t_7 = PyErr_Format(((PyObject *)(((PyTypeObject*)PyExc_IndexError))), __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_char")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_char(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("carray.from_py.__Pyx_carray_from_py_char", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_PY_LONG_LONG")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_PY_LONG_LONG(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_py_PY_LONG_LONG(PY_LONG_LONG *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_py_PY_LONG_LONG", 0);

  /* "carray.to_py":117
 *     cdef Py_ssize_t i
 *     cdef object value
 *     l = PyList_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_l = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":118
 *     cdef object value
 *     l = PyList_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":119
 *     l = PyList_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_PY_LONG_LONG((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":120
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":121
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)             # <<<<<<<<<<<<<<
 *     return l
 * 
*/
    __pyx_t_5 = __Pyx_PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 121, __pyx_L1_error)
  }

  /* "carray.to_py":122
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_l);
  __pyx_r = __pyx_v_l;
  goto __pyx_L0;

  /* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_PY_LONG_LONG")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_PY_LONG_LONG(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_py_PY_LONG_LONG", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_PY_LONG_LONG")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_PY_LONG_LONG(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_PY_LONG_LONG(PY_LONG_LONG *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_PY_LONG_LONG", 0);

  /* "carray.to_py":129
 *     cdef Py_ssize_t i
 *     cdef object value
 *     t = PyTuple_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_t = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":130
 *     cdef object value
 *     t = PyTuple_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":131
 *     t = PyTuple_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_PY_LONG_LONG((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":132
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":133
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)             # <<<<<<<<<<<<<<
 *     return t
*/
    __pyx_t_5 = __Pyx_PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 133, __pyx_L1_error)
  }

  /* "carray.to_py":134
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_t);
  __pyx_r = __pyx_v_t;
  goto __pyx_L0;

  /* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_PY_LONG_LONG")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_PY_LONG_LONG(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_tuple_PY_LONG_LONG", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_PY_LONG_LONG")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_PY_LONG_LONG(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

static int __Pyx_carray_from_py_PY_LONG_LONG(PyObject *__pyx_v_o, PY_LONG_LONG *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_item = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PY_LONG_LONG __pyx_t_11;
  char const *__pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_from_py_PY_LONG_LONG", 0);

  /* "carray.from_py":80
 * @cname("__Pyx_carray_from_py_PY_LONG_LONG")
 * cdef int __Pyx_carray_from_py_PY_LONG_LONG(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length             # <<<<<<<<<<<<<<
 *     try:
 *         i = len(o)
*/
  __pyx_v_i = __pyx_v_length;

  /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_PY_LONG_LONG(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "carray.from_py":82
 *     cdef Py_ssize_t i = length
 *     try:
 *         i = len(o)             # <<<<<<<<<<<<<<
 *     except (TypeError, OverflowError):
 *         pass
*/
      __pyx_t_4 = PyObject_Length(__pyx_v_o); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 82, __pyx_L3_error)
      __pyx_v_i = __pyx_t_4;

      /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_PY_LONG_LONG(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "carray.from_py":83
 *     try:
 *         i = len(o)
 *     except (TypeError, OverflowError):             # <<<<<<<<<<<<<<
 *         pass
 *     if i == length:
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches2(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), ((PyObject *)(((PyTypeObject*)PyExc_OverflowError))));
    if (__pyx_t_5) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_PY_LONG_LONG(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
  if (__pyx_t_6) {

    /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    __pyx_t_4 = 0;
    if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
      __pyx_t_7 = __pyx_v_o; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 86, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 86, __pyx_L1_error)
      } else {
        __pyx_t_10 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 86, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_v_i = __pyx_t_4;
      __pyx_t_4 = (__pyx_t_4 + 1);

      /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":88
 *         for i, item in enumerate(o):
 *             if i >= length:
 *                 break             # <<<<<<<<<<<<<<
 *             v[i] = item
 *         else:
*/
        goto __pyx_L13_break;

        /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      }

      /* "carray.from_py":89
 *             if i >= length:
 *                 break
 *             v[i] = item             # <<<<<<<<<<<<<<
 *         else:
 *             i += 1  # convert index to length
*/
      __pyx_t_11 = __Pyx_PyLong_As_PY_LONG_LONG(__pyx_v_item); if (unlikely((__pyx_t_11 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(2, 89, __pyx_L1_error)
      (__pyx_v_v[__pyx_v_i]) = __pyx_t_11;

      /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L15_for_else;
    __pyx_L13_break:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L16_for_end;
    /*else*/ {
      __pyx_L15_for_else:;

      /* "carray.from_py":91
 *             v[i] = item
 *         else:
 *             i += 1  # convert index to length             # <<<<<<<<<<<<<<
 *             if i == length:
 *                 return 0
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":93
 *             i += 1  # convert index to length
 *             if i == length:
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *     PyErr_Format(
*/
        __pyx_r = 0;
        goto __pyx_L0;

        /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      }
    }
    __pyx_L16_for_end:;

    /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  }

  /* "carray.from_py":98
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
 *          if i >= length else             # <<<<<<<<<<<<<<
 *          "not enough values found during array assignment, expected %zd, got %zd"),
 *         length, i)
*/
  __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
  if (__pyx_t_6) {
    __pyx_t_12 = __pyx_k_too_many_values_found_during_arr;
  } else {
    __pyx_t_12 = __pyx_k_not_enough_values_found_during_a;
  }

  /* "carray.from_py":95
 *                 return 0
 * 
 *     PyErr_Format(             # <<<<<<<<<<<<<<
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
*/
  __pyx_t_7 = PyErr_Format(((PyObject *)(((PyTypeObject*)PyExc_IndexError))), __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_PY_LONG_LONG")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_PY_LONG_LONG(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("carray.from_py.__Pyx_carray_from_py_PY_LONG_LONG", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_enum__cudaTextureAddressMode")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_enum__cudaTextureAddressMode(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_py_enum__cudaTextureAddressMode(enum cudaTextureAddressMode *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_py_enum__cudaTextureAddressMode", 0);

  /* "carray.to_py":117
 *     cdef Py_ssize_t i
 *     cdef object value
 *     l = PyList_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_l = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":118
 *     cdef object value
 *     l = PyList_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":119
 *     l = PyList_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_enum__cudaTextureAddressMode((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":120
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":121
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)             # <<<<<<<<<<<<<<
 *     return l
 * 
*/
    __pyx_t_5 = __Pyx_PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 121, __pyx_L1_error)
  }

  /* "carray.to_py":122
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_l);
  __pyx_r = __pyx_v_l;
  goto __pyx_L0;

  /* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_enum__cudaTextureAddressMode")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_enum__cudaTextureAddressMode(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_py_enum__cudaTextureAddressMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_enum__cudaTextureAddressMode")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_enum__cudaTextureAddressMode(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_enum__cudaTextureAddressMode(enum cudaTextureAddressMode *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_enum__cudaTextureAddressMode", 0);

  /* "carray.to_py":129
 *     cdef Py_ssize_t i
 *     cdef object value
 *     t = PyTuple_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_t = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":130
 *     cdef object value
 *     t = PyTuple_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":131
 *     t = PyTuple_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
*/
    __pyx_t_1 = __Pyx_PyLong_From_enum__cudaTextureAddressMode((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":132
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":133
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)             # <<<<<<<<<<<<<<
 *     return t
*/
    __pyx_t_5 = __Pyx_PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 133, __pyx_L1_error)
  }

  /* "carray.to_py":134
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_t);
  __pyx_r = __pyx_v_t;
  goto __pyx_L0;

  /* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_enum__cudaTextureAddressMode")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_enum__cudaTextureAddressMode(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_tuple_enum__cudaTextureAddressMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_enum__cudaTextureAddressMode")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_enum__cudaTextureAddressMode(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

static int __Pyx_carray_from_py_enum__cudaTextureAddressMode(PyObject *__pyx_v_o, enum cudaTextureAddressMode *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_item = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  enum cudaTextureAddressMode __pyx_t_11;
  char const *__pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_from_py_enum__cudaTextureAddressMode", 0);

  /* "carray.from_py":80
 * @cname("__Pyx_carray_from_py_enum__cudaTextureAddressMode")
 * cdef int __Pyx_carray_from_py_enum__cudaTextureAddressMode(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length             # <<<<<<<<<<<<<<
 *     try:
 *         i = len(o)
*/
  __pyx_v_i = __pyx_v_length;

  /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_enum__cudaTextureAddressMode(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "carray.from_py":82
 *     cdef Py_ssize_t i = length
 *     try:
 *         i = len(o)             # <<<<<<<<<<<<<<
 *     except (TypeError, OverflowError):
 *         pass
*/
      __pyx_t_4 = PyObject_Length(__pyx_v_o); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 82, __pyx_L3_error)
      __pyx_v_i = __pyx_t_4;

      /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_enum__cudaTextureAddressMode(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "carray.from_py":83
 *     try:
 *         i = len(o)
 *     except (TypeError, OverflowError):             # <<<<<<<<<<<<<<
 *         pass
 *     if i == length:
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches2(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), ((PyObject *)(((PyTypeObject*)PyExc_OverflowError))));
    if (__pyx_t_5) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_enum__cudaTextureAddressMode(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
  if (__pyx_t_6) {

    /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    __pyx_t_4 = 0;
    if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
      __pyx_t_7 = __pyx_v_o; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 86, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 86, __pyx_L1_error)
      } else {
        __pyx_t_10 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 86, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_v_i = __pyx_t_4;
      __pyx_t_4 = (__pyx_t_4 + 1);

      /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":88
 *         for i, item in enumerate(o):
 *             if i >= length:
 *                 break             # <<<<<<<<<<<<<<
 *             v[i] = item
 *         else:
*/
        goto __pyx_L13_break;

        /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      }

      /* "carray.from_py":89
 *             if i >= length:
 *                 break
 *             v[i] = item             # <<<<<<<<<<<<<<
 *         else:
 *             i += 1  # convert index to length
*/
      __pyx_t_11 = ((enum cudaTextureAddressMode)__Pyx_PyLong_As_enum__cudaTextureAddressMode(__pyx_v_item)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 89, __pyx_L1_error)
      (__pyx_v_v[__pyx_v_i]) = __pyx_t_11;

      /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L15_for_else;
    __pyx_L13_break:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L16_for_end;
    /*else*/ {
      __pyx_L15_for_else:;

      /* "carray.from_py":91
 *             v[i] = item
 *         else:
 *             i += 1  # convert index to length             # <<<<<<<<<<<<<<
 *             if i == length:
 *                 return 0
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":93
 *             i += 1  # convert index to length
 *             if i == length:
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *     PyErr_Format(
*/
        __pyx_r = 0;
        goto __pyx_L0;

        /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      }
    }
    __pyx_L16_for_end:;

    /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  }

  /* "carray.from_py":98
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
 *          if i >= length else             # <<<<<<<<<<<<<<
 *          "not enough values found during array assignment, expected %zd, got %zd"),
 *         length, i)
*/
  __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
  if (__pyx_t_6) {
    __pyx_t_12 = __pyx_k_too_many_values_found_during_arr;
  } else {
    __pyx_t_12 = __pyx_k_not_enough_values_found_during_a;
  }

  /* "carray.from_py":95
 *                 return 0
 * 
 *     PyErr_Format(             # <<<<<<<<<<<<<<
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
*/
  __pyx_t_7 = PyErr_Format(((PyObject *)(((PyTypeObject*)PyExc_IndexError))), __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_enum__cudaTextureAddressMode")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_enum__cudaTextureAddressMode(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("carray.from_py.__Pyx_carray_from_py_enum__cudaTextureAddressMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_float")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_float(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_py_float(float *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_py_float", 0);

  /* "carray.to_py":117
 *     cdef Py_ssize_t i
 *     cdef object value
 *     l = PyList_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_l = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":118
 *     cdef object value
 *     l = PyList_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":119
 *     l = PyList_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
*/
    __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":120
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":121
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)             # <<<<<<<<<<<<<<
 *     return l
 * 
*/
    __pyx_t_5 = __Pyx_PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 121, __pyx_L1_error)
  }

  /* "carray.to_py":122
 *         Py_INCREF(value)
 *         __Pyx_PyList_SET_ITEM(l, i, value)
 *     return l             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_l);
  __pyx_r = __pyx_v_l;
  goto __pyx_L0;

  /* "carray.to_py":113
 * 
 * 
 * @cname("__Pyx_carray_to_py_float")             # <<<<<<<<<<<<<<
 * cdef inline list __Pyx_carray_to_py_float(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_py_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_float")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_float(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_float(float *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_float", 0);

  /* "carray.to_py":129
 *     cdef Py_ssize_t i
 *     cdef object value
 *     t = PyTuple_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(length):
 *         value = v[<size_t> i]
*/
  __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_t = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":130
 *     cdef object value
 *     t = PyTuple_New(length)
 *     for i in range(length):             # <<<<<<<<<<<<<<
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
*/
  __pyx_t_2 = __pyx_v_length;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":131
 *     t = PyTuple_New(length)
 *     for i in range(length):
 *         value = v[<size_t> i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
*/
    __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[((size_t)__pyx_v_i)])); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":132
 *     for i in range(length):
 *         value = v[<size_t> i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t
*/
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":133
 *         value = v[<size_t> i]
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)             # <<<<<<<<<<<<<<
 *     return t
*/
    __pyx_t_5 = __Pyx_PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 133, __pyx_L1_error)
  }

  /* "carray.to_py":134
 *         Py_INCREF(value)
 *         __Pyx_PyTuple_SET_ITEM(t, i, value)
 *     return t             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_t);
  __pyx_r = __pyx_v_t;
  goto __pyx_L0;

  /* "carray.to_py":125
 * 
 * 
 * @cname("__Pyx_carray_to_tuple_float")             # <<<<<<<<<<<<<<
 * cdef inline tuple __Pyx_carray_to_tuple_float(base_type *v, Py_ssize_t length):
 *     cdef Py_ssize_t i
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_tuple_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_float")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_float(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

static int __Pyx_carray_from_py_float(PyObject *__pyx_v_o, float *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_item = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  float __pyx_t_11;
  char const *__pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_from_py_float", 0);

  /* "carray.from_py":80
 * @cname("__Pyx_carray_from_py_float")
 * cdef int __Pyx_carray_from_py_float(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length             # <<<<<<<<<<<<<<
 *     try:
 *         i = len(o)
*/
  __pyx_v_i = __pyx_v_length;

  /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_float(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "carray.from_py":82
 *     cdef Py_ssize_t i = length
 *     try:
 *         i = len(o)             # <<<<<<<<<<<<<<
 *     except (TypeError, OverflowError):
 *         pass
*/
      __pyx_t_4 = PyObject_Length(__pyx_v_o); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 82, __pyx_L3_error)
      __pyx_v_i = __pyx_t_4;

      /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_float(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;

    /* "carray.from_py":83
 *     try:
 *         i = len(o)
 *     except (TypeError, OverflowError):             # <<<<<<<<<<<<<<
 *         pass
 *     if i == length:
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches2(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), ((PyObject *)(((PyTypeObject*)PyExc_OverflowError))));
    if (__pyx_t_5) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "carray.from_py":81
 * cdef int __Pyx_carray_from_py_float(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
 *     try:             # <<<<<<<<<<<<<<
 *         i = len(o)
 *     except (TypeError, OverflowError):
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
  if (__pyx_t_6) {

    /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    __pyx_t_4 = 0;
    if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
      __pyx_t_7 = __pyx_v_o; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 86, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 86, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 86, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_10 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_10 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 86, __pyx_L1_error)
      } else {
        __pyx_t_10 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 86, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_v_i = __pyx_t_4;
      __pyx_t_4 = (__pyx_t_4 + 1);

      /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":88
 *         for i, item in enumerate(o):
 *             if i >= length:
 *                 break             # <<<<<<<<<<<<<<
 *             v[i] = item
 *         else:
*/
        goto __pyx_L13_break;

        /* "carray.from_py":87
 *     if i == length:
 *         for i, item in enumerate(o):
 *             if i >= length:             # <<<<<<<<<<<<<<
 *                 break
 *             v[i] = item
*/
      }

      /* "carray.from_py":89
 *             if i >= length:
 *                 break
 *             v[i] = item             # <<<<<<<<<<<<<<
 *         else:
 *             i += 1  # convert index to length
*/
      __pyx_t_11 = __Pyx_PyFloat_AsFloat(__pyx_v_item); if (unlikely((__pyx_t_11 == (float)-1) && PyErr_Occurred())) __PYX_ERR(2, 89, __pyx_L1_error)
      (__pyx_v_v[__pyx_v_i]) = __pyx_t_11;

      /* "carray.from_py":86
 *         pass
 *     if i == length:
 *         for i, item in enumerate(o):             # <<<<<<<<<<<<<<
 *             if i >= length:
 *                 break
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L15_for_else;
    __pyx_L13_break:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L16_for_end;
    /*else*/ {
      __pyx_L15_for_else:;

      /* "carray.from_py":91
 *             v[i] = item
 *         else:
 *             i += 1  # convert index to length             # <<<<<<<<<<<<<<
 *             if i == length:
 *                 return 0
*/
      __pyx_v_i = (__pyx_v_i + 1);

      /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      __pyx_t_6 = (__pyx_v_i == __pyx_v_length);
      if (__pyx_t_6) {

        /* "carray.from_py":93
 *             i += 1  # convert index to length
 *             if i == length:
 *                 return 0             # <<<<<<<<<<<<<<
 * 
 *     PyErr_Format(
*/
        __pyx_r = 0;
        goto __pyx_L0;

        /* "carray.from_py":92
 *         else:
 *             i += 1  # convert index to length
 *             if i == length:             # <<<<<<<<<<<<<<
 *                 return 0
 * 
*/
      }
    }
    __pyx_L16_for_end:;

    /* "carray.from_py":85
 *     except (TypeError, OverflowError):
 *         pass
 *     if i == length:             # <<<<<<<<<<<<<<
 *         for i, item in enumerate(o):
 *             if i >= length:
*/
  }

  /* "carray.from_py":98
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
 *          if i >= length else             # <<<<<<<<<<<<<<
 *          "not enough values found during array assignment, expected %zd, got %zd"),
 *         length, i)
*/
  __pyx_t_6 = (__pyx_v_i >= __pyx_v_length);
  if (__pyx_t_6) {
    __pyx_t_12 = __pyx_k_too_many_values_found_during_arr;
  } else {
    __pyx_t_12 = __pyx_k_not_enough_values_found_during_a;
  }

  /* "carray.from_py":95
 *                 return 0
 * 
 *     PyErr_Format(             # <<<<<<<<<<<<<<
 *         IndexError,
 *         ("too many values found during array assignment, expected %zd"
*/
  __pyx_t_7 = PyErr_Format(((PyObject *)(((PyTypeObject*)PyExc_IndexError))), __pyx_t_12, __pyx_v_length, __pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "carray.from_py":78
 *     object PyErr_Format(exc, const char *format, ...)
 * 
 * @cname("__Pyx_carray_from_py_float")             # <<<<<<<<<<<<<<
 * cdef int __Pyx_carray_from_py_float(object o, base_type *v, Py_ssize_t length) except -1:
 *     cdef Py_ssize_t i = length
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("carray.from_py.__Pyx_carray_from_py_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "vector.from_py":51
 *     cdef Py_ssize_t __Pyx_PyObject_LengthHint(object o, Py_ssize_t defaultval) except -1
 * 
 * @cname("__pyx_convert_vector_from_py_char___2a_")             # <<<<<<<<<<<<<<
 * cdef vector[X] __pyx_convert_vector_from_py_char___2a_(object o) except *:
 * 
*/

static std::vector<char *>  __pyx_convert_vector_from_py_char___2a_(PyObject *__pyx_v_o) {
  std::vector<char *>  __pyx_v_v;
  Py_ssize_t __pyx_v_s;
  PyObject *__pyx_v_item = NULL;
  std::vector<char *>  __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  char *__pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_vector_from_py_char___2a_", 0);

  /* "vector.from_py":55
 * 
 *     cdef vector[X] v
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)             # <<<<<<<<<<<<<<
 * 
 *     if s > 0:
*/
  __pyx_t_1 = __Pyx_PyObject_LengthHint(__pyx_v_o, 0); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(2, 55, __pyx_L1_error)
  __pyx_v_s = __pyx_t_1;

  /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  __pyx_t_2 = (__pyx_v_s > 0);
  if (__pyx_t_2) {

    /* "vector.from_py":58
 * 
 *     if s > 0:
 *         v.reserve(<size_t> s)             # <<<<<<<<<<<<<<
 * 
 *     for item in o:
*/
    try {
      __pyx_v_v.reserve(((size_t)__pyx_v_s));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 58, __pyx_L1_error)
    }

    /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  }

  /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
    __pyx_t_3 = __pyx_v_o; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 60, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 60, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_3);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 60, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "vector.from_py":61
 * 
 *     for item in o:
 *         v.push_back(<X>item)             # <<<<<<<<<<<<<<
 * 
 *     return v
*/
    __pyx_t_6 = __Pyx_PyObject_AsWritableString(__pyx_v_item); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(2, 61, __pyx_L1_error)
    try {
      __pyx_v_v.push_back(((char *)__pyx_t_6));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 61, __pyx_L1_error)
    }

    /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "vector.from_py":63
 *         v.push_back(<X>item)
 * 
 *     return v             # <<<<<<<<<<<<<<
 * 
*/
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "vector.from_py":51
 *     cdef Py_ssize_t __Pyx_PyObject_LengthHint(object o, Py_ssize_t defaultval) except -1
 * 
 * @cname("__pyx_convert_vector_from_py_char___2a_")             # <<<<<<<<<<<<<<
 * cdef vector[X] __pyx_convert_vector_from_py_char___2a_(object o) except *:
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("vector.from_py.__pyx_convert_vector_from_py_char___2a_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static std::vector<enum cudaAtomicOperation>  __pyx_convert_vector_from_py_enum__cudaAtomicOperation(PyObject *__pyx_v_o) {
  std::vector<enum cudaAtomicOperation>  __pyx_v_v;
  Py_ssize_t __pyx_v_s;
  PyObject *__pyx_v_item = NULL;
  std::vector<enum cudaAtomicOperation>  __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  enum cudaAtomicOperation __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_vector_from_py_enum__cudaAtomicOperation", 0);

  /* "vector.from_py":55
 * 
 *     cdef vector[X] v
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)             # <<<<<<<<<<<<<<
 * 
 *     if s > 0:
*/
  __pyx_t_1 = __Pyx_PyObject_LengthHint(__pyx_v_o, 0); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(2, 55, __pyx_L1_error)
  __pyx_v_s = __pyx_t_1;

  /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  __pyx_t_2 = (__pyx_v_s > 0);
  if (__pyx_t_2) {

    /* "vector.from_py":58
 * 
 *     if s > 0:
 *         v.reserve(<size_t> s)             # <<<<<<<<<<<<<<
 * 
 *     for item in o:
*/
    try {
      __pyx_v_v.reserve(((size_t)__pyx_v_s));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 58, __pyx_L1_error)
    }

    /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  }

  /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
    __pyx_t_3 = __pyx_v_o; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 60, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 60, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_3);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 60, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "vector.from_py":61
 * 
 *     for item in o:
 *         v.push_back(<X>item)             # <<<<<<<<<<<<<<
 * 
 *     return v
*/
    __pyx_t_6 = ((enum cudaAtomicOperation)__Pyx_PyLong_As_enum__cudaAtomicOperation(__pyx_v_item)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 61, __pyx_L1_error)
    try {
      __pyx_v_v.push_back(((enum cudaAtomicOperation)__pyx_t_6));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 61, __pyx_L1_error)
    }

    /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "vector.from_py":63
 *         v.push_back(<X>item)
 * 
 *     return v             # <<<<<<<<<<<<<<
 * 
*/
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "vector.from_py":51
 *     cdef Py_ssize_t __Pyx_PyObject_LengthHint(object o, Py_ssize_t defaultval) except -1
 * 
 * @cname("__pyx_convert_vector_from_py_enum__cudaAtomicOperation")             # <<<<<<<<<<<<<<
 * cdef vector[X] __pyx_convert_vector_from_py_enum__cudaAtomicOperation(object o) except *:
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("vector.from_py.__pyx_convert_vector_from_py_enum__cudaAtomicOperation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static std::vector<size_t>  __pyx_convert_vector_from_py_size_t(PyObject *__pyx_v_o) {
  std::vector<size_t>  __pyx_v_v;
  Py_ssize_t __pyx_v_s;
  PyObject *__pyx_v_item = NULL;
  std::vector<size_t>  __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_vector_from_py_size_t", 0);

  /* "vector.from_py":55
 * 
 *     cdef vector[X] v
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)             # <<<<<<<<<<<<<<
 * 
 *     if s > 0:
*/
  __pyx_t_1 = __Pyx_PyObject_LengthHint(__pyx_v_o, 0); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(2, 55, __pyx_L1_error)
  __pyx_v_s = __pyx_t_1;

  /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  __pyx_t_2 = (__pyx_v_s > 0);
  if (__pyx_t_2) {

    /* "vector.from_py":58
 * 
 *     if s > 0:
 *         v.reserve(<size_t> s)             # <<<<<<<<<<<<<<
 * 
 *     for item in o:
*/
    try {
      __pyx_v_v.reserve(((size_t)__pyx_v_s));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 58, __pyx_L1_error)
    }

    /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  }

  /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
    __pyx_t_3 = __pyx_v_o; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 60, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 60, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_3);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 60, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "vector.from_py":61
 * 
 *     for item in o:
 *         v.push_back(<X>item)             # <<<<<<<<<<<<<<
 * 
 *     return v
*/
    __pyx_t_6 = __Pyx_PyLong_As_size_t(__pyx_v_item); if (unlikely((__pyx_t_6 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 61, __pyx_L1_error)
    try {
      __pyx_v_v.push_back(((size_t)__pyx_t_6));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 61, __pyx_L1_error)
    }

    /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "vector.from_py":63
 *         v.push_back(<X>item)
 * 
 *     return v             # <<<<<<<<<<<<<<
 * 
*/
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "vector.from_py":51
 *     cdef Py_ssize_t __Pyx_PyObject_LengthHint(object o, Py_ssize_t defaultval) except -1
 * 
 * @cname("__pyx_convert_vector_from_py_size_t")             # <<<<<<<<<<<<<<
 * cdef vector[X] __pyx_convert_vector_from_py_size_t(object o) except *:
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("vector.from_py.__pyx_convert_vector_from_py_size_t", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static std::vector<enum cudaMemRangeAttribute>  __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(PyObject *__pyx_v_o) {
  std::vector<enum cudaMemRangeAttribute>  __pyx_v_v;
  Py_ssize_t __pyx_v_s;
  PyObject *__pyx_v_item = NULL;
  std::vector<enum cudaMemRangeAttribute>  __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  enum cudaMemRangeAttribute __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_vector_from_py_enum__cudaMemRangeAttribute", 0);

  /* "vector.from_py":55
 * 
 *     cdef vector[X] v
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)             # <<<<<<<<<<<<<<
 * 
 *     if s > 0:
*/
  __pyx_t_1 = __Pyx_PyObject_LengthHint(__pyx_v_o, 0); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(2, 55, __pyx_L1_error)
  __pyx_v_s = __pyx_t_1;

  /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  __pyx_t_2 = (__pyx_v_s > 0);
  if (__pyx_t_2) {

    /* "vector.from_py":58
 * 
 *     if s > 0:
 *         v.reserve(<size_t> s)             # <<<<<<<<<<<<<<
 * 
 *     for item in o:
*/
    try {
      __pyx_v_v.reserve(((size_t)__pyx_v_s));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 58, __pyx_L1_error)
    }

    /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  }

  /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
    __pyx_t_3 = __pyx_v_o; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 60, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 60, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_3);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 60, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "vector.from_py":61
 * 
 *     for item in o:
 *         v.push_back(<X>item)             # <<<<<<<<<<<<<<
 * 
 *     return v
*/
    __pyx_t_6 = ((enum cudaMemRangeAttribute)__Pyx_PyLong_As_enum__cudaMemRangeAttribute(__pyx_v_item)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 61, __pyx_L1_error)
    try {
      __pyx_v_v.push_back(((enum cudaMemRangeAttribute)__pyx_t_6));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 61, __pyx_L1_error)
    }

    /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "vector.from_py":63
 *         v.push_back(<X>item)
 * 
 *     return v             # <<<<<<<<<<<<<<
 * 
*/
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "vector.from_py":51
 *     cdef Py_ssize_t __Pyx_PyObject_LengthHint(object o, Py_ssize_t defaultval) except -1
 * 
 * @cname("__pyx_convert_vector_from_py_enum__cudaMemRangeAttribute")             # <<<<<<<<<<<<<<
 * cdef vector[X] __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(object o) except *:
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("vector.from_py.__pyx_convert_vector_from_py_enum__cudaMemRangeAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static std::vector<enum cudaJitOption>  __pyx_convert_vector_from_py_enum__cudaJitOption(PyObject *__pyx_v_o) {
  std::vector<enum cudaJitOption>  __pyx_v_v;
  Py_ssize_t __pyx_v_s;
  PyObject *__pyx_v_item = NULL;
  std::vector<enum cudaJitOption>  __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  enum cudaJitOption __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_vector_from_py_enum__cudaJitOption", 0);

  /* "vector.from_py":55
 * 
 *     cdef vector[X] v
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)             # <<<<<<<<<<<<<<
 * 
 *     if s > 0:
*/
  __pyx_t_1 = __Pyx_PyObject_LengthHint(__pyx_v_o, 0); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(2, 55, __pyx_L1_error)
  __pyx_v_s = __pyx_t_1;

  /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  __pyx_t_2 = (__pyx_v_s > 0);
  if (__pyx_t_2) {

    /* "vector.from_py":58
 * 
 *     if s > 0:
 *         v.reserve(<size_t> s)             # <<<<<<<<<<<<<<
 * 
 *     for item in o:
*/
    try {
      __pyx_v_v.reserve(((size_t)__pyx_v_s));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 58, __pyx_L1_error)
    }

    /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  }

  /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
    __pyx_t_3 = __pyx_v_o; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 60, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 60, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_3);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 60, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "vector.from_py":61
 * 
 *     for item in o:
 *         v.push_back(<X>item)             # <<<<<<<<<<<<<<
 * 
 *     return v
*/
    __pyx_t_6 = ((enum cudaJitOption)__Pyx_PyLong_As_enum__cudaJitOption(__pyx_v_item)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 61, __pyx_L1_error)
    try {
      __pyx_v_v.push_back(((enum cudaJitOption)__pyx_t_6));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 61, __pyx_L1_error)
    }

    /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "vector.from_py":63
 *         v.push_back(<X>item)
 * 
 *     return v             # <<<<<<<<<<<<<<
 * 
*/
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "vector.from_py":51
 *     cdef Py_ssize_t __Pyx_PyObject_LengthHint(object o, Py_ssize_t defaultval) except -1
 * 
 * @cname("__pyx_convert_vector_from_py_enum__cudaJitOption")             # <<<<<<<<<<<<<<
 * cdef vector[X] __pyx_convert_vector_from_py_enum__cudaJitOption(object o) except *:
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("vector.from_py.__pyx_convert_vector_from_py_enum__cudaJitOption", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static std::vector<enum cudaLibraryOption>  __pyx_convert_vector_from_py_enum__cudaLibraryOption(PyObject *__pyx_v_o) {
  std::vector<enum cudaLibraryOption>  __pyx_v_v;
  Py_ssize_t __pyx_v_s;
  PyObject *__pyx_v_item = NULL;
  std::vector<enum cudaLibraryOption>  __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  enum cudaLibraryOption __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert_vector_from_py_enum__cudaLibraryOption", 0);

  /* "vector.from_py":55
 * 
 *     cdef vector[X] v
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)             # <<<<<<<<<<<<<<
 * 
 *     if s > 0:
*/
  __pyx_t_1 = __Pyx_PyObject_LengthHint(__pyx_v_o, 0); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1L))) __PYX_ERR(2, 55, __pyx_L1_error)
  __pyx_v_s = __pyx_t_1;

  /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  __pyx_t_2 = (__pyx_v_s > 0);
  if (__pyx_t_2) {

    /* "vector.from_py":58
 * 
 *     if s > 0:
 *         v.reserve(<size_t> s)             # <<<<<<<<<<<<<<
 * 
 *     for item in o:
*/
    try {
      __pyx_v_v.reserve(((size_t)__pyx_v_s));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 58, __pyx_L1_error)
    }

    /* "vector.from_py":57
 *     cdef Py_ssize_t s = __Pyx_PyObject_LengthHint(o, 0)
 * 
 *     if s > 0:             # <<<<<<<<<<<<<<
 *         v.reserve(<size_t> s)
 * 
*/
  }

  /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  if (likely(PyList_CheckExact(__pyx_v_o)) || PyTuple_CheckExact(__pyx_v_o)) {
    __pyx_t_3 = __pyx_v_o; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_o); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 60, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 60, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 60, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_3);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 60, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "vector.from_py":61
 * 
 *     for item in o:
 *         v.push_back(<X>item)             # <<<<<<<<<<<<<<
 * 
 *     return v
*/
    __pyx_t_6 = ((enum cudaLibraryOption)__Pyx_PyLong_As_enum__cudaLibraryOption(__pyx_v_item)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 61, __pyx_L1_error)
    try {
      __pyx_v_v.push_back(((enum cudaLibraryOption)__pyx_t_6));
    } catch(...) {
      __Pyx_CppExn2PyErr();
      __PYX_ERR(2, 61, __pyx_L1_error)
    }

    /* "vector.from_py":60
 *         v.reserve(<size_t> s)
 * 
 *     for item in o:             # <<<<<<<<<<<<<<
 *         v.push_back(<X>item)
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "vector.from_py":63
 *         v.push_back(<X>item)
 * 
 *     return v             # <<<<<<<<<<<<<<
 * 
*/
  __pyx_r = __pyx_v_v;
  goto __pyx_L0;

  /* "vector.from_py":51
 *     cdef Py_ssize_t __Pyx_PyObject_LengthHint(object o, Py_ssize_t defaultval) except -1
 * 
 * @cname("__pyx_convert_vector_from_py_enum__cudaLibraryOption")             # <<<<<<<<<<<<<<
 * cdef vector[X] __pyx_convert_vector_from_py_enum__cudaLibraryOption(object o) except *:
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("vector.from_py.__pyx_convert_vector_from_py_enum__cudaLibraryOption", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":14
 * cimport cuda.bindings._lib.param_packer as param_packer
 * 
 * cdef void* _callocWrapper(length, size):             # <<<<<<<<<<<<<<
 *     cdef void* out = calloc(length, size)
 *     if out is NULL:
*/

static void *__pyx_f_4cuda_8bindings_7runtime__callocWrapper(PyObject *__pyx_v_length, PyObject *__pyx_v_size) {
  void *__pyx_v_out;
  void *__pyx_r;
  __Pyx_RefNannyDeclarations
  size_t __pyx_t_1;
  size_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_callocWrapper", 0);

  /* "cuda/bindings/_lib/utils.pxi":15
 * 
 * cdef void* _callocWrapper(length, size):
 *     cdef void* out = calloc(length, size)             # <<<<<<<<<<<<<<
 *     if out is NULL:
 *         raise MemoryError('Failed to allocated length x size memory: {}x{}'.format(length, size))
*/
  __pyx_t_1 = __Pyx_PyLong_As_size_t(__pyx_v_length); if (unlikely((__pyx_t_1 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 15, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_As_size_t(__pyx_v_size); if (unlikely((__pyx_t_2 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 15, __pyx_L1_error)
  __pyx_v_out = calloc(__pyx_t_1, __pyx_t_2);

  /* "cuda/bindings/_lib/utils.pxi":16
 * cdef void* _callocWrapper(length, size):
 *     cdef void* out = calloc(length, size)
 *     if out is NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('Failed to allocated length x size memory: {}x{}'.format(length, size))
 *     return out
*/
  __pyx_t_3 = (__pyx_v_out == NULL);
  if (unlikely(__pyx_t_3)) {

    /* "cuda/bindings/_lib/utils.pxi":17
 *     cdef void* out = calloc(length, size)
 *     if out is NULL:
 *         raise MemoryError('Failed to allocated length x size memory: {}x{}'.format(length, size))             # <<<<<<<<<<<<<<
 *     return out
 * 
*/
    __pyx_t_5 = NULL;
    __pyx_t_7 = __pyx_mstate_global->__pyx_kp_u_Failed_to_allocated_length_x_siz;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_2 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_v_length, __pyx_v_size};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_2, (3-__pyx_t_2) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 17, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_t_2 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_2, (2-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 17, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(1, 17, __pyx_L1_error)

    /* "cuda/bindings/_lib/utils.pxi":16
 * cdef void* _callocWrapper(length, size):
 *     cdef void* out = calloc(length, size)
 *     if out is NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('Failed to allocated length x size memory: {}x{}'.format(length, size))
 *     return out
*/
  }

  /* "cuda/bindings/_lib/utils.pxi":18
 *     if out is NULL:
 *         raise MemoryError('Failed to allocated length x size memory: {}x{}'.format(length, size))
 *     return out             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperKernelParams:
*/
  __pyx_r = __pyx_v_out;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":14
 * cimport cuda.bindings._lib.param_packer as param_packer
 * 
 * cdef void* _callocWrapper(length, size):             # <<<<<<<<<<<<<<
 *     cdef void* out = calloc(length, size)
 *     if out is NULL:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime._callocWrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":40
 *     }
 * 
 *     max_param_size = max(_ctypes.sizeof(max(_HelperKernelParams.supported_types, key=lambda t:_ctypes.sizeof(t))), sizeof(void_ptr))             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self, kernelParams):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_4lambda(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19_HelperKernelParams_4lambda = {"lambda", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_4lambda, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_4lambda(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_t = 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("lambda (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_t,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 40, __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(1, 40, __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, "lambda", 0) < (0)) __PYX_ERR(1, 40, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("lambda", 1, 1, 1, i); __PYX_ERR(1, 40, __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(1, 40, __pyx_L3_error)
    }
    __pyx_v_t = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("lambda", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 40, __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.runtime._HelperKernelParams.lambda", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_lambda_funcdef_4cuda_8bindings_7runtime_19_HelperKernelParams_lambda(__pyx_self, __pyx_v_t);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_lambda_funcdef_4cuda_8bindings_7runtime_19_HelperKernelParams_lambda(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_t) {
  PyObject *__pyx_r = NULL;
  __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;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("lambda", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_sizeof); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_t};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 40, __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_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperKernelParams.lambda", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":42
 *     max_param_size = max(_ctypes.sizeof(max(_HelperKernelParams.supported_types, key=lambda t:_ctypes.sizeof(t))), sizeof(void_ptr))
 * 
 *     def __cinit__(self, kernelParams):             # <<<<<<<<<<<<<<
 *         self._pyobj_acquired = False
 *         self._malloc_list_created = False
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_kernelParams = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_kernelParams,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 42, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 42, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 42, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(1, 42, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 42, __pyx_L3_error)
    }
    __pyx_v_kernelParams = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 42, __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.runtime._HelperKernelParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)__pyx_v_self), __pyx_v_kernelParams);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self, PyObject *__pyx_v_kernelParams) {
  int __pyx_v_err_buffer;
  PyObject *__pyx_v_idx = NULL;
  PyObject *__pyx_v_data_idx = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_ctype = NULL;
  PyObject *__pyx_v_size = NULL;
  void *__pyx_v_addr;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  void *__pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *(*__pyx_t_13)(PyObject *);
  PyObject *__pyx_t_14 = NULL;
  PyObject *(*__pyx_t_15)(PyObject *);
  Py_ssize_t __pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_20;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":43
 * 
 *     def __cinit__(self, kernelParams):
 *         self._pyobj_acquired = False             # <<<<<<<<<<<<<<
 *         self._malloc_list_created = False
 *         if kernelParams is None:
*/
  __pyx_v_self->_pyobj_acquired = 0;

  /* "cuda/bindings/_lib/utils.pxi":44
 *     def __cinit__(self, kernelParams):
 *         self._pyobj_acquired = False
 *         self._malloc_list_created = False             # <<<<<<<<<<<<<<
 *         if kernelParams is None:
 *             self._ckernelParams = NULL
*/
  __pyx_v_self->_malloc_list_created = 0;

  /* "cuda/bindings/_lib/utils.pxi":45
 *         self._pyobj_acquired = False
 *         self._malloc_list_created = False
 *         if kernelParams is None:             # <<<<<<<<<<<<<<
 *             self._ckernelParams = NULL
 *         elif isinstance(kernelParams, (int)):
*/
  __pyx_t_1 = (__pyx_v_kernelParams == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":46
 *         self._malloc_list_created = False
 *         if kernelParams is None:
 *             self._ckernelParams = NULL             # <<<<<<<<<<<<<<
 *         elif isinstance(kernelParams, (int)):
 *             # Easy run, user gave us an already configured void** address
*/
    __pyx_v_self->_ckernelParams = NULL;

    /* "cuda/bindings/_lib/utils.pxi":45
 *         self._pyobj_acquired = False
 *         self._malloc_list_created = False
 *         if kernelParams is None:             # <<<<<<<<<<<<<<
 *             self._ckernelParams = NULL
 *         elif isinstance(kernelParams, (int)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/_lib/utils.pxi":47
 *         if kernelParams is None:
 *             self._ckernelParams = NULL
 *         elif isinstance(kernelParams, (int)):             # <<<<<<<<<<<<<<
 *             # Easy run, user gave us an already configured void** address
 *             self._ckernelParams = <void**><void_ptr>kernelParams
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_kernelParams); 
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":49
 *         elif isinstance(kernelParams, (int)):
 *             # Easy run, user gave us an already configured void** address
 *             self._ckernelParams = <void**><void_ptr>kernelParams             # <<<<<<<<<<<<<<
 *         elif PyObject_CheckBuffer(kernelParams):
 *             # Easy run, get address from Python Buffer Protocol
*/
    __pyx_t_2 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_kernelParams); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 49, __pyx_L1_error)
    __pyx_v_self->_ckernelParams = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_2));

    /* "cuda/bindings/_lib/utils.pxi":47
 *         if kernelParams is None:
 *             self._ckernelParams = NULL
 *         elif isinstance(kernelParams, (int)):             # <<<<<<<<<<<<<<
 *             # Easy run, user gave us an already configured void** address
 *             self._ckernelParams = <void**><void_ptr>kernelParams
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/_lib/utils.pxi":50
 *             # Easy run, user gave us an already configured void** address
 *             self._ckernelParams = <void**><void_ptr>kernelParams
 *         elif PyObject_CheckBuffer(kernelParams):             # <<<<<<<<<<<<<<
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(kernelParams, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
*/
  __pyx_t_1 = PyObject_CheckBuffer(__pyx_v_kernelParams);
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":52
 *         elif PyObject_CheckBuffer(kernelParams):
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(kernelParams, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *             if err_buffer == -1:
 *                 raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol")
*/
    __pyx_t_3 = PyObject_GetBuffer(__pyx_v_kernelParams, (&__pyx_v_self->_pybuffer), (PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(1, 52, __pyx_L1_error)
    __pyx_v_err_buffer = __pyx_t_3;

    /* "cuda/bindings/_lib/utils.pxi":53
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(kernelParams, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
 *             if err_buffer == -1:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol")
 *             self._pyobj_acquired = True
*/
    __pyx_t_1 = (__pyx_v_err_buffer == -1L);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/_lib/utils.pxi":54
 *             err_buffer = PyObject_GetBuffer(kernelParams, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
 *             if err_buffer == -1:
 *                 raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol")             # <<<<<<<<<<<<<<
 *             self._pyobj_acquired = True
 *             self._ckernelParams = <void**><void_ptr>self._pybuffer.buf
*/
      __pyx_t_5 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Argument_kernelParams_failed_to};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 54, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(1, 54, __pyx_L1_error)

      /* "cuda/bindings/_lib/utils.pxi":53
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(kernelParams, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
 *             if err_buffer == -1:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol")
 *             self._pyobj_acquired = True
*/
    }

    /* "cuda/bindings/_lib/utils.pxi":55
 *             if err_buffer == -1:
 *                 raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol")
 *             self._pyobj_acquired = True             # <<<<<<<<<<<<<<
 *             self._ckernelParams = <void**><void_ptr>self._pybuffer.buf
 *         elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)):
*/
    __pyx_v_self->_pyobj_acquired = 1;

    /* "cuda/bindings/_lib/utils.pxi":56
 *                 raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol")
 *             self._pyobj_acquired = True
 *             self._ckernelParams = <void**><void_ptr>self._pybuffer.buf             # <<<<<<<<<<<<<<
 *         elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)):
 *             # Hard run, construct and fill out contigues memory using provided kernel values and types based
*/
    __pyx_v_self->_ckernelParams = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pybuffer.buf));

    /* "cuda/bindings/_lib/utils.pxi":50
 *             # Easy run, user gave us an already configured void** address
 *             self._ckernelParams = <void**><void_ptr>kernelParams
 *         elif PyObject_CheckBuffer(kernelParams):             # <<<<<<<<<<<<<<
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(kernelParams, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/_lib/utils.pxi":57
 *             self._pyobj_acquired = True
 *             self._ckernelParams = <void**><void_ptr>self._pybuffer.buf
 *         elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)):             # <<<<<<<<<<<<<<
 *             # Hard run, construct and fill out contigues memory using provided kernel values and types based
 *             if len(kernelParams[0]) != len(kernelParams[1]):
*/
  __pyx_t_7 = PyTuple_Check(__pyx_v_kernelParams); 
  if (__pyx_t_7) {
  } else {
    __pyx_t_1 = __pyx_t_7;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_8 = PyObject_Length(__pyx_v_kernelParams); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(1, 57, __pyx_L1_error)
  __pyx_t_7 = (__pyx_t_8 == 2);
  if (__pyx_t_7) {
  } else {
    __pyx_t_1 = __pyx_t_7;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_kernelParams, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = PyTuple_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (__pyx_t_7) {
  } else {
    __pyx_t_1 = __pyx_t_7;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_kernelParams, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = PyTuple_Check(__pyx_t_4); 
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __pyx_t_7;
  __pyx_L5_bool_binop_done:;
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/_lib/utils.pxi":59
 *         elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)):
 *             # Hard run, construct and fill out contigues memory using provided kernel values and types based
 *             if len(kernelParams[0]) != len(kernelParams[1]):             # <<<<<<<<<<<<<<
 *                 raise TypeError("Argument 'kernelParams' has tuples with different length")
 *             if len(kernelParams[0]) != 0:
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_kernelParams, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 59, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(1, 59, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_kernelParams, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 59, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(1, 59, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_1 = (__pyx_t_8 != __pyx_t_9);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/_lib/utils.pxi":60
 *             # Hard run, construct and fill out contigues memory using provided kernel values and types based
 *             if len(kernelParams[0]) != len(kernelParams[1]):
 *                 raise TypeError("Argument 'kernelParams' has tuples with different length")             # <<<<<<<<<<<<<<
 *             if len(kernelParams[0]) != 0:
 *                 self._length = len(kernelParams[0])
*/
      __pyx_t_5 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Argument_kernelParams_has_tuples};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 60, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(1, 60, __pyx_L1_error)

      /* "cuda/bindings/_lib/utils.pxi":59
 *         elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)):
 *             # Hard run, construct and fill out contigues memory using provided kernel values and types based
 *             if len(kernelParams[0]) != len(kernelParams[1]):             # <<<<<<<<<<<<<<
 *                 raise TypeError("Argument 'kernelParams' has tuples with different length")
 *             if len(kernelParams[0]) != 0:
*/
    }

    /* "cuda/bindings/_lib/utils.pxi":61
 *             if len(kernelParams[0]) != len(kernelParams[1]):
 *                 raise TypeError("Argument 'kernelParams' has tuples with different length")
 *             if len(kernelParams[0]) != 0:             # <<<<<<<<<<<<<<
 *                 self._length = len(kernelParams[0])
 *                 self._ckernelParams = <void**>_callocWrapper(len(kernelParams[0]), sizeof(void*))
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_kernelParams, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 61, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(1, 61, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_1 = (__pyx_t_9 != 0);
    if (__pyx_t_1) {

      /* "cuda/bindings/_lib/utils.pxi":62
 *                 raise TypeError("Argument 'kernelParams' has tuples with different length")
 *             if len(kernelParams[0]) != 0:
 *                 self._length = len(kernelParams[0])             # <<<<<<<<<<<<<<
 *                 self._ckernelParams = <void**>_callocWrapper(len(kernelParams[0]), sizeof(void*))
 *                 self._ckernelParamsData = <char*>_callocWrapper(len(kernelParams[0]), _HelperKernelParams.max_param_size)
*/
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_kernelParams, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 62, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(1, 62, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_v_self->_length = __pyx_t_9;

      /* "cuda/bindings/_lib/utils.pxi":63
 *             if len(kernelParams[0]) != 0:
 *                 self._length = len(kernelParams[0])
 *                 self._ckernelParams = <void**>_callocWrapper(len(kernelParams[0]), sizeof(void*))             # <<<<<<<<<<<<<<
 *                 self._ckernelParamsData = <char*>_callocWrapper(len(kernelParams[0]), _HelperKernelParams.max_param_size)
 *                 self._malloc_list_created = True
*/
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_kernelParams, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 63, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(1, 63, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 63, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(void *))); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 63, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_10 = __pyx_f_4cuda_8bindings_7runtime__callocWrapper(__pyx_t_4, __pyx_t_5); if (unlikely(__pyx_t_10 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(1, 63, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_self->_ckernelParams = ((void **)__pyx_t_10);

      /* "cuda/bindings/_lib/utils.pxi":64
 *                 self._length = len(kernelParams[0])
 *                 self._ckernelParams = <void**>_callocWrapper(len(kernelParams[0]), sizeof(void*))
 *                 self._ckernelParamsData = <char*>_callocWrapper(len(kernelParams[0]), _HelperKernelParams.max_param_size)             # <<<<<<<<<<<<<<
 *                 self._malloc_list_created = True
 * 
*/
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_kernelParams, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 64, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_9 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(1, 64, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 64, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams), __pyx_mstate_global->__pyx_n_u_max_param_size); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 64, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __pyx_f_4cuda_8bindings_7runtime__callocWrapper(__pyx_t_5, __pyx_t_4); if (unlikely(__pyx_t_10 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(1, 64, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_v_self->_ckernelParamsData = ((char *)__pyx_t_10);

      /* "cuda/bindings/_lib/utils.pxi":65
 *                 self._ckernelParams = <void**>_callocWrapper(len(kernelParams[0]), sizeof(void*))
 *                 self._ckernelParamsData = <char*>_callocWrapper(len(kernelParams[0]), _HelperKernelParams.max_param_size)
 *                 self._malloc_list_created = True             # <<<<<<<<<<<<<<
 * 
 *             idx = 0
*/
      __pyx_v_self->_malloc_list_created = 1;

      /* "cuda/bindings/_lib/utils.pxi":61
 *             if len(kernelParams[0]) != len(kernelParams[1]):
 *                 raise TypeError("Argument 'kernelParams' has tuples with different length")
 *             if len(kernelParams[0]) != 0:             # <<<<<<<<<<<<<<
 *                 self._length = len(kernelParams[0])
 *                 self._ckernelParams = <void**>_callocWrapper(len(kernelParams[0]), sizeof(void*))
*/
    }

    /* "cuda/bindings/_lib/utils.pxi":67
 *                 self._malloc_list_created = True
 * 
 *             idx = 0             # <<<<<<<<<<<<<<
 *             data_idx = 0
 *             for value, ctype in zip(kernelParams[0], kernelParams[1]):
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_idx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/_lib/utils.pxi":68
 * 
 *             idx = 0
 *             data_idx = 0             # <<<<<<<<<<<<<<
 *             for value, ctype in zip(kernelParams[0], kernelParams[1]):
 *                 if ctype is None:
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_data_idx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/_lib/utils.pxi":69
 *             idx = 0
 *             data_idx = 0
 *             for value, ctype in zip(kernelParams[0], kernelParams[1]):             # <<<<<<<<<<<<<<
 *                 if ctype is None:
 *                     # special cases for None
*/
    __pyx_t_5 = NULL;
    __pyx_t_11 = __Pyx_GetItemInt(__pyx_v_kernelParams, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_12 = __Pyx_GetItemInt(__pyx_v_kernelParams, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_11, __pyx_t_12};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_zip, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 69, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
      __pyx_t_12 = __pyx_t_4; __Pyx_INCREF(__pyx_t_12);
      __pyx_t_9 = 0;
      __pyx_t_13 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_12 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 69, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 69, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    for (;;) {
      if (likely(!__pyx_t_13)) {
        if (likely(PyList_CheckExact(__pyx_t_12))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_12);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 69, __pyx_L1_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_12, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_12);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 69, __pyx_L1_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_12, __pyx_t_9));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_12, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 69, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_13(__pyx_t_12);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 69, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
        PyObject* sequence = __pyx_t_4;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(1, 69, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_11 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_11);
          __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_5);
        } else {
          __pyx_t_11 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 69, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_11);
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 69, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_5);
        }
        #else
        __pyx_t_11 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 69, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 69, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        #endif
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_14 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 69, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_15 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_14);
        index = 0; __pyx_t_11 = __pyx_t_15(__pyx_t_14); if (unlikely(!__pyx_t_11)) goto __pyx_L13_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_11);
        index = 1; __pyx_t_5 = __pyx_t_15(__pyx_t_14); if (unlikely(!__pyx_t_5)) goto __pyx_L13_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_5);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_15(__pyx_t_14), 2) < (0)) __PYX_ERR(1, 69, __pyx_L1_error)
        __pyx_t_15 = NULL;
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        goto __pyx_L14_unpacking_done;
        __pyx_L13_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_15 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(1, 69, __pyx_L1_error)
        __pyx_L14_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_11);
      __pyx_t_11 = 0;
      __Pyx_XDECREF_SET(__pyx_v_ctype, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "cuda/bindings/_lib/utils.pxi":70
 *             data_idx = 0
 *             for value, ctype in zip(kernelParams[0], kernelParams[1]):
 *                 if ctype is None:             # <<<<<<<<<<<<<<
 *                     # special cases for None
 *                     if callable(getattr(value, 'getPtr', None)):
*/
      __pyx_t_1 = (__pyx_v_ctype == Py_None);
      if (__pyx_t_1) {

        /* "cuda/bindings/_lib/utils.pxi":72
 *                 if ctype is None:
 *                     # special cases for None
 *                     if callable(getattr(value, 'getPtr', None)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = <void*><void_ptr>value.getPtr()
 *                     elif isinstance(value, (_ctypes.Structure)):
*/
        __pyx_t_4 = __Pyx_GetAttr3(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_getPtr, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 72, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_1 = __Pyx_PyCallable_Check(__pyx_t_4); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 72, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (__pyx_t_1) {

          /* "cuda/bindings/_lib/utils.pxi":73
 *                     # special cases for None
 *                     if callable(getattr(value, 'getPtr', None)):
 *                         self._ckernelParams[idx] = <void*><void_ptr>value.getPtr()             # <<<<<<<<<<<<<<
 *                     elif isinstance(value, (_ctypes.Structure)):
 *                         self._ckernelParams[idx] = <void*><void_ptr>_ctypes.addressof(value)
*/
          __pyx_t_5 = __pyx_v_value;
          __Pyx_INCREF(__pyx_t_5);
          __pyx_t_6 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
            __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 73, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __pyx_t_2 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 73, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 73, __pyx_L1_error)
          (__pyx_v_self->_ckernelParams[__pyx_t_8]) = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_2));

          /* "cuda/bindings/_lib/utils.pxi":72
 *                 if ctype is None:
 *                     # special cases for None
 *                     if callable(getattr(value, 'getPtr', None)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = <void*><void_ptr>value.getPtr()
 *                     elif isinstance(value, (_ctypes.Structure)):
*/
          goto __pyx_L16;
        }

        /* "cuda/bindings/_lib/utils.pxi":74
 *                     if callable(getattr(value, 'getPtr', None)):
 *                         self._ckernelParams[idx] = <void*><void_ptr>value.getPtr()
 *                     elif isinstance(value, (_ctypes.Structure)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = <void*><void_ptr>_ctypes.addressof(value)
 *                     elif isinstance(value, (_Enum)):
*/
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 74, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Structure); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 74, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_1 = PyObject_IsInstance(__pyx_v_value, __pyx_t_5); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 74, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (__pyx_t_1) {

          /* "cuda/bindings/_lib/utils.pxi":75
 *                         self._ckernelParams[idx] = <void*><void_ptr>value.getPtr()
 *                     elif isinstance(value, (_ctypes.Structure)):
 *                         self._ckernelParams[idx] = <void*><void_ptr>_ctypes.addressof(value)             # <<<<<<<<<<<<<<
 *                     elif isinstance(value, (_Enum)):
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
*/
          __pyx_t_4 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 75, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_addressof); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 75, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          __pyx_t_6 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_14))) {
            __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_14);
            assert(__pyx_t_4);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_14);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_14, __pyx__function);
            __pyx_t_6 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_value};
            __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_14, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 75, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          __pyx_t_2 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_5); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 75, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 75, __pyx_L1_error)
          (__pyx_v_self->_ckernelParams[__pyx_t_8]) = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_2));

          /* "cuda/bindings/_lib/utils.pxi":74
 *                     if callable(getattr(value, 'getPtr', None)):
 *                         self._ckernelParams[idx] = <void*><void_ptr>value.getPtr()
 *                     elif isinstance(value, (_ctypes.Structure)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = <void*><void_ptr>_ctypes.addressof(value)
 *                     elif isinstance(value, (_Enum)):
*/
          goto __pyx_L16;
        }

        /* "cuda/bindings/_lib/utils.pxi":76
 *                     elif isinstance(value, (_ctypes.Structure)):
 *                         self._ckernelParams[idx] = <void*><void_ptr>_ctypes.addressof(value)
 *                     elif isinstance(value, (_Enum)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<int*>self._ckernelParams[idx])[0] = value.value
*/
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Enum); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 76, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_1 = PyObject_IsInstance(__pyx_v_value, __pyx_t_5); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 76, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (likely(__pyx_t_1)) {

          /* "cuda/bindings/_lib/utils.pxi":77
 *                         self._ckernelParams[idx] = <void*><void_ptr>_ctypes.addressof(value)
 *                     elif isinstance(value, (_Enum)):
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])             # <<<<<<<<<<<<<<
 *                         (<int*>self._ckernelParams[idx])[0] = value.value
 *                         data_idx += sizeof(int)
*/
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_data_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 77, __pyx_L1_error)
          __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 77, __pyx_L1_error)
          (__pyx_v_self->_ckernelParams[__pyx_t_16]) = (&(__pyx_v_self->_ckernelParamsData[__pyx_t_8]));

          /* "cuda/bindings/_lib/utils.pxi":78
 *                     elif isinstance(value, (_Enum)):
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<int*>self._ckernelParams[idx])[0] = value.value             # <<<<<<<<<<<<<<
 *                         data_idx += sizeof(int)
 *                     else:
*/
          __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 78, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_5); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 78, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 78, __pyx_L1_error)
          (((int *)(__pyx_v_self->_ckernelParams[__pyx_t_8]))[0]) = __pyx_t_3;

          /* "cuda/bindings/_lib/utils.pxi":79
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<int*>self._ckernelParams[idx])[0] = value.value
 *                         data_idx += sizeof(int)             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(_ctypes.Structure), type(_ctypes.c_void_p)))
*/
          __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 79, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_14 = PyNumber_InPlaceAdd(__pyx_v_data_idx, __pyx_t_5); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 79, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF_SET(__pyx_v_data_idx, __pyx_t_14);
          __pyx_t_14 = 0;

          /* "cuda/bindings/_lib/utils.pxi":76
 *                     elif isinstance(value, (_ctypes.Structure)):
 *                         self._ckernelParams[idx] = <void*><void_ptr>_ctypes.addressof(value)
 *                     elif isinstance(value, (_Enum)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<int*>self._ckernelParams[idx])[0] = value.value
*/
          goto __pyx_L16;
        }

        /* "cuda/bindings/_lib/utils.pxi":81
 *                         data_idx += sizeof(int)
 *                     else:
 *                         raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(_ctypes.Structure), type(_ctypes.c_void_p)))             # <<<<<<<<<<<<<<
 *                 elif ctype in _HelperKernelParams.supported_types:
 *                     self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
*/
        /*else*/ {
          __pyx_t_5 = NULL;
          __pyx_t_11 = __pyx_mstate_global->__pyx_kp_u_Provided_argument_is_of_type_but;
          __Pyx_INCREF(__pyx_t_11);
          __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_17)) __PYX_ERR(1, 81, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_17);
          __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_mstate_global->__pyx_n_u_Structure); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 81, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_18);
          __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
          __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_17)) __PYX_ERR(1, 81, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_17);
          __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_17, __pyx_mstate_global->__pyx_n_u_c_void_p); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 81, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_19);
          __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
          __pyx_t_6 = 0;
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_11, ((PyObject *)Py_TYPE(__pyx_v_value)), ((PyObject *)Py_TYPE(__pyx_t_18)), ((PyObject *)Py_TYPE(__pyx_t_19))};
            __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
            __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 81, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __pyx_t_6 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4};
            __pyx_t_14 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 81, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_14);
          }
          __Pyx_Raise(__pyx_t_14, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __PYX_ERR(1, 81, __pyx_L1_error)
        }
        __pyx_L16:;

        /* "cuda/bindings/_lib/utils.pxi":70
 *             data_idx = 0
 *             for value, ctype in zip(kernelParams[0], kernelParams[1]):
 *                 if ctype is None:             # <<<<<<<<<<<<<<
 *                     # special cases for None
 *                     if callable(getattr(value, 'getPtr', None)):
*/
        goto __pyx_L15;
      }

      /* "cuda/bindings/_lib/utils.pxi":82
 *                     else:
 *                         raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(_ctypes.Structure), type(_ctypes.c_void_p)))
 *                 elif ctype in _HelperKernelParams.supported_types:             # <<<<<<<<<<<<<<
 *                     self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 * 
*/
      __pyx_t_14 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams), __pyx_mstate_global->__pyx_n_u_supported_types); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 82, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_ctype, __pyx_t_14, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 82, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      if (__pyx_t_1) {

        /* "cuda/bindings/_lib/utils.pxi":83
 *                         raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(_ctypes.Structure), type(_ctypes.c_void_p)))
 *                 elif ctype in _HelperKernelParams.supported_types:
 *                     self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])             # <<<<<<<<<<<<<<
 * 
 *                     # handle case where a float is passed as a double
*/
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_data_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 83, __pyx_L1_error)
        __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 83, __pyx_L1_error)
        (__pyx_v_self->_ckernelParams[__pyx_t_16]) = (&(__pyx_v_self->_ckernelParamsData[__pyx_t_8]));

        /* "cuda/bindings/_lib/utils.pxi":86
 * 
 *                     # handle case where a float is passed as a double
 *                     if ctype == _ctypes.c_double and isinstance(value, _ctypes.c_float):             # <<<<<<<<<<<<<<
 *                         value = ctype(value.value)
 *                     if not isinstance(value, ctype): # make it a ctype
*/
        __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 86, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_c_double); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 86, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_14 = PyObject_RichCompare(__pyx_v_ctype, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_14); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 86, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_14); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(1, 86, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        if (__pyx_t_7) {
        } else {
          __pyx_t_1 = __pyx_t_7;
          goto __pyx_L18_bool_binop_done;
        }
        __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 86, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_c_float); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 86, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_7 = PyObject_IsInstance(__pyx_v_value, __pyx_t_4); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 86, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_1 = __pyx_t_7;
        __pyx_L18_bool_binop_done:;
        if (__pyx_t_1) {

          /* "cuda/bindings/_lib/utils.pxi":87
 *                     # handle case where a float is passed as a double
 *                     if ctype == _ctypes.c_double and isinstance(value, _ctypes.c_float):
 *                         value = ctype(value.value)             # <<<<<<<<<<<<<<
 *                     if not isinstance(value, ctype): # make it a ctype
 *                         size = param_packer.feed(self._ckernelParams[idx], value, ctype)
*/
          __pyx_t_14 = NULL;
          __Pyx_INCREF(__pyx_v_ctype);
          __pyx_t_5 = __pyx_v_ctype; 
          __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 87, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_19);
          __pyx_t_6 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_5))) {
            __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_5);
            assert(__pyx_t_14);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_14);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
            __pyx_t_6 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_19};
            __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
            __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 87, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_4);
          __pyx_t_4 = 0;

          /* "cuda/bindings/_lib/utils.pxi":86
 * 
 *                     # handle case where a float is passed as a double
 *                     if ctype == _ctypes.c_double and isinstance(value, _ctypes.c_float):             # <<<<<<<<<<<<<<
 *                         value = ctype(value.value)
 *                     if not isinstance(value, ctype): # make it a ctype
*/
        }

        /* "cuda/bindings/_lib/utils.pxi":88
 *                     if ctype == _ctypes.c_double and isinstance(value, _ctypes.c_float):
 *                         value = ctype(value.value)
 *                     if not isinstance(value, ctype): # make it a ctype             # <<<<<<<<<<<<<<
 *                         size = param_packer.feed(self._ckernelParams[idx], value, ctype)
 *                         if size == 0: # feed failed
*/
        __pyx_t_1 = PyObject_IsInstance(__pyx_v_value, __pyx_v_ctype); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 88, __pyx_L1_error)
        __pyx_t_7 = (!__pyx_t_1);
        if (__pyx_t_7) {

          /* "cuda/bindings/_lib/utils.pxi":89
 *                         value = ctype(value.value)
 *                     if not isinstance(value, ctype): # make it a ctype
 *                         size = param_packer.feed(self._ckernelParams[idx], value, ctype)             # <<<<<<<<<<<<<<
 *                         if size == 0: # feed failed
 *                             value = ctype(value)
*/
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 89, __pyx_L1_error)
          __pyx_t_4 = __Pyx_PyLong_From_int(feed((__pyx_v_self->_ckernelParams[__pyx_t_8]), __pyx_v_value, __pyx_v_ctype)); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 89, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_XDECREF_SET(__pyx_v_size, __pyx_t_4);
          __pyx_t_4 = 0;

          /* "cuda/bindings/_lib/utils.pxi":90
 *                     if not isinstance(value, ctype): # make it a ctype
 *                         size = param_packer.feed(self._ckernelParams[idx], value, ctype)
 *                         if size == 0: # feed failed             # <<<<<<<<<<<<<<
 *                             value = ctype(value)
 *                             size = _ctypes.sizeof(ctype)
*/
          __pyx_t_7 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_size, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(1, 90, __pyx_L1_error)
          if (__pyx_t_7) {

            /* "cuda/bindings/_lib/utils.pxi":91
 *                         size = param_packer.feed(self._ckernelParams[idx], value, ctype)
 *                         if size == 0: # feed failed
 *                             value = ctype(value)             # <<<<<<<<<<<<<<
 *                             size = _ctypes.sizeof(ctype)
 *                             addr = <void*>(<void_ptr>_ctypes.addressof(value))
*/
            __pyx_t_5 = NULL;
            __Pyx_INCREF(__pyx_v_ctype);
            __pyx_t_19 = __pyx_v_ctype; 
            __pyx_t_6 = 1;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_19))) {
              __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_19);
              assert(__pyx_t_5);
              PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_19);
              __Pyx_INCREF(__pyx_t_5);
              __Pyx_INCREF(__pyx__function);
              __Pyx_DECREF_SET(__pyx_t_19, __pyx__function);
              __pyx_t_6 = 0;
            }
            #endif
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_value};
              __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_19, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
              __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
              if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 91, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
            }
            __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_4);
            __pyx_t_4 = 0;

            /* "cuda/bindings/_lib/utils.pxi":92
 *                         if size == 0: # feed failed
 *                             value = ctype(value)
 *                             size = _ctypes.sizeof(ctype)             # <<<<<<<<<<<<<<
 *                             addr = <void*>(<void_ptr>_ctypes.addressof(value))
 *                             memcpy(self._ckernelParams[idx], addr, size)
*/
            __pyx_t_19 = NULL;
            __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 92, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_sizeof); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 92, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_14);
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __pyx_t_6 = 1;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_14))) {
              __pyx_t_19 = PyMethod_GET_SELF(__pyx_t_14);
              assert(__pyx_t_19);
              PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_14);
              __Pyx_INCREF(__pyx_t_19);
              __Pyx_INCREF(__pyx__function);
              __Pyx_DECREF_SET(__pyx_t_14, __pyx__function);
              __pyx_t_6 = 0;
            }
            #endif
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_19, __pyx_v_ctype};
              __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_14, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0;
              __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
              if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 92, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
            }
            __Pyx_DECREF_SET(__pyx_v_size, __pyx_t_4);
            __pyx_t_4 = 0;

            /* "cuda/bindings/_lib/utils.pxi":93
 *                             value = ctype(value)
 *                             size = _ctypes.sizeof(ctype)
 *                             addr = <void*>(<void_ptr>_ctypes.addressof(value))             # <<<<<<<<<<<<<<
 *                             memcpy(self._ckernelParams[idx], addr, size)
 *                     else:
*/
            __pyx_t_14 = NULL;
            __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 93, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_19);
            __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_addressof); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 93, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
            __pyx_t_6 = 1;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_5))) {
              __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_5);
              assert(__pyx_t_14);
              PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
              __Pyx_INCREF(__pyx_t_14);
              __Pyx_INCREF(__pyx__function);
              __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
              __pyx_t_6 = 0;
            }
            #endif
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_v_value};
              __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
              __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
              if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 93, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
            }
            __pyx_t_2 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 93, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __pyx_v_addr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_2));

            /* "cuda/bindings/_lib/utils.pxi":94
 *                             size = _ctypes.sizeof(ctype)
 *                             addr = <void*>(<void_ptr>_ctypes.addressof(value))
 *                             memcpy(self._ckernelParams[idx], addr, size)             # <<<<<<<<<<<<<<
 *                     else:
 *                         size = _ctypes.sizeof(ctype)
*/
            __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 94, __pyx_L1_error)
            __pyx_t_6 = __Pyx_PyLong_As_size_t(__pyx_v_size); if (unlikely((__pyx_t_6 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 94, __pyx_L1_error)
            (void)(memcpy((__pyx_v_self->_ckernelParams[__pyx_t_8]), __pyx_v_addr, __pyx_t_6));

            /* "cuda/bindings/_lib/utils.pxi":90
 *                     if not isinstance(value, ctype): # make it a ctype
 *                         size = param_packer.feed(self._ckernelParams[idx], value, ctype)
 *                         if size == 0: # feed failed             # <<<<<<<<<<<<<<
 *                             value = ctype(value)
 *                             size = _ctypes.sizeof(ctype)
*/
          }

          /* "cuda/bindings/_lib/utils.pxi":88
 *                     if ctype == _ctypes.c_double and isinstance(value, _ctypes.c_float):
 *                         value = ctype(value.value)
 *                     if not isinstance(value, ctype): # make it a ctype             # <<<<<<<<<<<<<<
 *                         size = param_packer.feed(self._ckernelParams[idx], value, ctype)
 *                         if size == 0: # feed failed
*/
          goto __pyx_L20;
        }

        /* "cuda/bindings/_lib/utils.pxi":96
 *                             memcpy(self._ckernelParams[idx], addr, size)
 *                     else:
 *                         size = _ctypes.sizeof(ctype)             # <<<<<<<<<<<<<<
 *                         addr = <void*>(<void_ptr>_ctypes.addressof(value))
 *                         memcpy(self._ckernelParams[idx], addr, size)
*/
        /*else*/ {
          __pyx_t_5 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 96, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_sizeof); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 96, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_19);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __pyx_t_6 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_19))) {
            __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_19);
            assert(__pyx_t_5);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_19);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_19, __pyx__function);
            __pyx_t_6 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_ctype};
            __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_19, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 96, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __Pyx_XDECREF_SET(__pyx_v_size, __pyx_t_4);
          __pyx_t_4 = 0;

          /* "cuda/bindings/_lib/utils.pxi":97
 *                     else:
 *                         size = _ctypes.sizeof(ctype)
 *                         addr = <void*>(<void_ptr>_ctypes.addressof(value))             # <<<<<<<<<<<<<<
 *                         memcpy(self._ckernelParams[idx], addr, size)
 *                     data_idx += size
*/
          __pyx_t_19 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 97, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_addressof); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 97, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_t_6 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_14))) {
            __pyx_t_19 = PyMethod_GET_SELF(__pyx_t_14);
            assert(__pyx_t_19);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_14);
            __Pyx_INCREF(__pyx_t_19);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_14, __pyx__function);
            __pyx_t_6 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_19, __pyx_v_value};
            __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_14, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0;
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 97, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __pyx_t_2 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 97, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_v_addr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_2));

          /* "cuda/bindings/_lib/utils.pxi":98
 *                         size = _ctypes.sizeof(ctype)
 *                         addr = <void*>(<void_ptr>_ctypes.addressof(value))
 *                         memcpy(self._ckernelParams[idx], addr, size)             # <<<<<<<<<<<<<<
 *                     data_idx += size
 *                 elif ctype == _ctypes.c_void_p:
*/
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 98, __pyx_L1_error)
          __pyx_t_6 = __Pyx_PyLong_As_size_t(__pyx_v_size); if (unlikely((__pyx_t_6 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 98, __pyx_L1_error)
          (void)(memcpy((__pyx_v_self->_ckernelParams[__pyx_t_8]), __pyx_v_addr, __pyx_t_6));
        }
        __pyx_L20:;

        /* "cuda/bindings/_lib/utils.pxi":99
 *                         addr = <void*>(<void_ptr>_ctypes.addressof(value))
 *                         memcpy(self._ckernelParams[idx], addr, size)
 *                     data_idx += size             # <<<<<<<<<<<<<<
 *                 elif ctype == _ctypes.c_void_p:
 *                     # special cases for void_p
*/
        __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_data_idx, __pyx_v_size); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 99, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_data_idx, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/_lib/utils.pxi":82
 *                     else:
 *                         raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(_ctypes.Structure), type(_ctypes.c_void_p)))
 *                 elif ctype in _HelperKernelParams.supported_types:             # <<<<<<<<<<<<<<
 *                     self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 * 
*/
        goto __pyx_L15;
      }

      /* "cuda/bindings/_lib/utils.pxi":100
 *                         memcpy(self._ckernelParams[idx], addr, size)
 *                     data_idx += size
 *                 elif ctype == _ctypes.c_void_p:             # <<<<<<<<<<<<<<
 *                     # special cases for void_p
 *                     if isinstance(value, (int, _ctypes.c_void_p)):
*/
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 100, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_void_p); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 100, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_ctype, __pyx_t_14, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 100, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(1, 100, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (likely(__pyx_t_7)) {

        /* "cuda/bindings/_lib/utils.pxi":102
 *                 elif ctype == _ctypes.c_void_p:
 *                     # special cases for void_p
 *                     if isinstance(value, (int, _ctypes.c_void_p)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value
*/
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 102, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_void_p); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 102, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_1 = PyLong_Check(__pyx_v_value); 
        if (!__pyx_t_1) {
        } else {
          __pyx_t_7 = __pyx_t_1;
          goto __pyx_L23_bool_binop_done;
        }
        __pyx_t_1 = PyObject_IsInstance(__pyx_v_value, __pyx_t_14); 
        __pyx_t_7 = __pyx_t_1;
        __pyx_L23_bool_binop_done:;
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        if (__pyx_t_7) {

          /* "cuda/bindings/_lib/utils.pxi":103
 *                     # special cases for void_p
 *                     if isinstance(value, (int, _ctypes.c_void_p)):
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])             # <<<<<<<<<<<<<<
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value
 *                         data_idx += sizeof(void_ptr)
*/
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_data_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 103, __pyx_L1_error)
          __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 103, __pyx_L1_error)
          (__pyx_v_self->_ckernelParams[__pyx_t_16]) = (&(__pyx_v_self->_ckernelParamsData[__pyx_t_8]));

          /* "cuda/bindings/_lib/utils.pxi":104
 *                     if isinstance(value, (int, _ctypes.c_void_p)):
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value             # <<<<<<<<<<<<<<
 *                         data_idx += sizeof(void_ptr)
 *                     elif callable(getattr(value, 'getPtr', None)):
*/
          __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 104, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_c_void_p); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 104, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __pyx_t_7 = PyObject_IsInstance(__pyx_v_value, __pyx_t_4); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 104, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (__pyx_t_7) {
            __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 104, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_20 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_20 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 104, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __pyx_t_2 = __pyx_t_20;
          } else {
            __pyx_t_20 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_value); if (unlikely((__pyx_t_20 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 104, __pyx_L1_error)
            __pyx_t_2 = __pyx_t_20;
          }
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 104, __pyx_L1_error)
          (((__pyx_t_4cuda_8bindings_7runtime_void_ptr *)(__pyx_v_self->_ckernelParams[__pyx_t_8]))[0]) = __pyx_t_2;

          /* "cuda/bindings/_lib/utils.pxi":105
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value
 *                         data_idx += sizeof(void_ptr)             # <<<<<<<<<<<<<<
 *                     elif callable(getattr(value, 'getPtr', None)):
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
*/
          __pyx_t_4 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_7runtime_void_ptr))); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 105, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __pyx_t_14 = PyNumber_InPlaceAdd(__pyx_v_data_idx, __pyx_t_4); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 105, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF_SET(__pyx_v_data_idx, __pyx_t_14);
          __pyx_t_14 = 0;

          /* "cuda/bindings/_lib/utils.pxi":102
 *                 elif ctype == _ctypes.c_void_p:
 *                     # special cases for void_p
 *                     if isinstance(value, (int, _ctypes.c_void_p)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value
*/
          goto __pyx_L22;
        }

        /* "cuda/bindings/_lib/utils.pxi":106
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value
 *                         data_idx += sizeof(void_ptr)
 *                     elif callable(getattr(value, 'getPtr', None)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.getPtr()
*/
        __pyx_t_14 = __Pyx_GetAttr3(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_getPtr, Py_None); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 106, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_7 = __Pyx_PyCallable_Check(__pyx_t_14); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(1, 106, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        if (likely(__pyx_t_7)) {

          /* "cuda/bindings/_lib/utils.pxi":107
 *                         data_idx += sizeof(void_ptr)
 *                     elif callable(getattr(value, 'getPtr', None)):
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])             # <<<<<<<<<<<<<<
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.getPtr()
 *                         data_idx += sizeof(void_ptr)
*/
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_data_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 107, __pyx_L1_error)
          __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 107, __pyx_L1_error)
          (__pyx_v_self->_ckernelParams[__pyx_t_16]) = (&(__pyx_v_self->_ckernelParamsData[__pyx_t_8]));

          /* "cuda/bindings/_lib/utils.pxi":108
 *                     elif callable(getattr(value, 'getPtr', None)):
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.getPtr()             # <<<<<<<<<<<<<<
 *                         data_idx += sizeof(void_ptr)
 *                     else:
*/
          __pyx_t_4 = __pyx_v_value;
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_6 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
            __pyx_t_14 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 108, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_14);
          }
          __pyx_t_2 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_14); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 108, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 108, __pyx_L1_error)
          (((__pyx_t_4cuda_8bindings_7runtime_void_ptr *)(__pyx_v_self->_ckernelParams[__pyx_t_8]))[0]) = __pyx_t_2;

          /* "cuda/bindings/_lib/utils.pxi":109
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.getPtr()
 *                         data_idx += sizeof(void_ptr)             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(int), type(_ctypes.c_void_p)))
*/
          __pyx_t_14 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_7runtime_void_ptr))); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 109, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_data_idx, __pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 109, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_DECREF_SET(__pyx_v_data_idx, __pyx_t_4);
          __pyx_t_4 = 0;

          /* "cuda/bindings/_lib/utils.pxi":106
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value
 *                         data_idx += sizeof(void_ptr)
 *                     elif callable(getattr(value, 'getPtr', None)):             # <<<<<<<<<<<<<<
 *                         self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx])
 *                         (<void_ptr*>self._ckernelParams[idx])[0] = value.getPtr()
*/
          goto __pyx_L22;
        }

        /* "cuda/bindings/_lib/utils.pxi":111
 *                         data_idx += sizeof(void_ptr)
 *                     else:
 *                         raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(int), type(_ctypes.c_void_p)))             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise TypeError("Unsupported type: " + str(type(ctype)))
*/
        /*else*/ {
          __pyx_t_14 = NULL;
          __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u_Provided_argument_is_of_type_but;
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 111, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_18);
          __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_c_void_p); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 111, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_11);
          __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
          __pyx_t_6 = 0;
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_5, ((PyObject *)Py_TYPE(__pyx_v_value)), ((PyObject *)Py_TYPE(((PyObject *)(&PyLong_Type)))), ((PyObject *)Py_TYPE(__pyx_t_11))};
            __pyx_t_19 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 111, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_19);
          }
          __pyx_t_6 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_19};
            __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
            __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 111, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __Pyx_Raise(__pyx_t_4, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __PYX_ERR(1, 111, __pyx_L1_error)
        }
        __pyx_L22:;

        /* "cuda/bindings/_lib/utils.pxi":100
 *                         memcpy(self._ckernelParams[idx], addr, size)
 *                     data_idx += size
 *                 elif ctype == _ctypes.c_void_p:             # <<<<<<<<<<<<<<
 *                     # special cases for void_p
 *                     if isinstance(value, (int, _ctypes.c_void_p)):
*/
        goto __pyx_L15;
      }

      /* "cuda/bindings/_lib/utils.pxi":113
 *                         raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(int), type(_ctypes.c_void_p)))
 *                 else:
 *                     raise TypeError("Unsupported type: " + str(type(ctype)))             # <<<<<<<<<<<<<<
 *                 idx += 1
 *         else:
*/
      /*else*/ {
        __pyx_t_19 = NULL;
        __pyx_t_14 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_ctype))); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 113, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_11 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Unsupported_type, __pyx_t_14); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 113, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_6 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_19, __pyx_t_11};
          __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0;
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 113, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_Raise(__pyx_t_4, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __PYX_ERR(1, 113, __pyx_L1_error)
      }
      __pyx_L15:;

      /* "cuda/bindings/_lib/utils.pxi":114
 *                 else:
 *                     raise TypeError("Unsupported type: " + str(type(ctype)))
 *                 idx += 1             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError("Argument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int")
*/
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_idx, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 114, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF_SET(__pyx_v_idx, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "cuda/bindings/_lib/utils.pxi":69
 *             idx = 0
 *             data_idx = 0
 *             for value, ctype in zip(kernelParams[0], kernelParams[1]):             # <<<<<<<<<<<<<<
 *                 if ctype is None:
 *                     # special cases for None
*/
    }
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

    /* "cuda/bindings/_lib/utils.pxi":57
 *             self._pyobj_acquired = True
 *             self._ckernelParams = <void**><void_ptr>self._pybuffer.buf
 *         elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)):             # <<<<<<<<<<<<<<
 *             # Hard run, construct and fill out contigues memory using provided kernel values and types based
 *             if len(kernelParams[0]) != len(kernelParams[1]):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/_lib/utils.pxi":116
 *                 idx += 1
 *         else:
 *             raise TypeError("Argument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int")             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_kernelParams_is_not_a_v};
      __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 116, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
    }
    __Pyx_Raise(__pyx_t_12, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __PYX_ERR(1, 116, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/_lib/utils.pxi":42
 *     max_param_size = max(_ctypes.sizeof(max(_HelperKernelParams.supported_types, key=lambda t:_ctypes.sizeof(t))), sizeof(void_ptr))
 * 
 *     def __cinit__(self, kernelParams):             # <<<<<<<<<<<<<<
 *         self._pyobj_acquired = False
 *         self._malloc_list_created = False
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_XDECREF(__pyx_t_18);
  __Pyx_XDECREF(__pyx_t_19);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperKernelParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_idx);
  __Pyx_XDECREF(__pyx_v_data_idx);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_ctype);
  __Pyx_XDECREF(__pyx_v_size);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":118
 *             raise TypeError("Argument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int")
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._pyobj_acquired is True:
 *             PyBuffer_Release(&self._pybuffer)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_2__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/_lib/utils.pxi":119
 * 
 *     def __dealloc__(self):
 *         if self._pyobj_acquired is True:             # <<<<<<<<<<<<<<
 *             PyBuffer_Release(&self._pybuffer)
 *         if self._malloc_list_created is True:
*/
  __pyx_t_1 = (__pyx_v_self->_pyobj_acquired == 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":120
 *     def __dealloc__(self):
 *         if self._pyobj_acquired is True:
 *             PyBuffer_Release(&self._pybuffer)             # <<<<<<<<<<<<<<
 *         if self._malloc_list_created is True:
 *             free(self._ckernelParams)
*/
    PyBuffer_Release((&__pyx_v_self->_pybuffer));

    /* "cuda/bindings/_lib/utils.pxi":119
 * 
 *     def __dealloc__(self):
 *         if self._pyobj_acquired is True:             # <<<<<<<<<<<<<<
 *             PyBuffer_Release(&self._pybuffer)
 *         if self._malloc_list_created is True:
*/
  }

  /* "cuda/bindings/_lib/utils.pxi":121
 *         if self._pyobj_acquired is True:
 *             PyBuffer_Release(&self._pybuffer)
 *         if self._malloc_list_created is True:             # <<<<<<<<<<<<<<
 *             free(self._ckernelParams)
 *             free(self._ckernelParamsData)
*/
  __pyx_t_1 = (__pyx_v_self->_malloc_list_created == 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":122
 *             PyBuffer_Release(&self._pybuffer)
 *         if self._malloc_list_created is True:
 *             free(self._ckernelParams)             # <<<<<<<<<<<<<<
 *             free(self._ckernelParamsData)
 * 
*/
    free(__pyx_v_self->_ckernelParams);

    /* "cuda/bindings/_lib/utils.pxi":123
 *         if self._malloc_list_created is True:
 *             free(self._ckernelParams)
 *             free(self._ckernelParamsData)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
    free(__pyx_v_self->_ckernelParamsData);

    /* "cuda/bindings/_lib/utils.pxi":121
 *         if self._pyobj_acquired is True:
 *             PyBuffer_Release(&self._pybuffer)
 *         if self._malloc_list_created is True:             # <<<<<<<<<<<<<<
 *             free(self._ckernelParams)
 *             free(self._ckernelParamsData)
*/
  }

  /* "cuda/bindings/_lib/utils.pxi":118
 *             raise TypeError("Argument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int")
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._pyobj_acquired is True:
 *             PyBuffer_Release(&self._pybuffer)
*/

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":125
 *             free(self._ckernelParamsData)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def ckernelParams(self):
 *         return <void_ptr>self._ckernelParams
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_13ckernelParams_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_13ckernelParams_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_13ckernelParams___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_13ckernelParams___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":127
 *     @property
 *     def ckernelParams(self):
 *         return <void_ptr>self._ckernelParams             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperInputVoidPtr:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_ckernelParams)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":125
 *             free(self._ckernelParamsData)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def ckernelParams(self):
 *         return <void_ptr>self._ckernelParams
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperKernelParams.ckernelParams.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_6__reduce_cython__(PyObject *__pyx_v_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_7runtime_19_HelperKernelParams_5__reduce_cython__, "_HelperKernelParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19_HelperKernelParams_6__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_6__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperKernelParams_5__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_6__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_5__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_5__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperKernelParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_8__setstate_cython__(PyObject *__pyx_v_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_7runtime_19_HelperKernelParams_7__setstate_cython__, "_HelperKernelParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19_HelperKernelParams_8__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_8__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperKernelParams_7__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_8__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperKernelParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_7__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperKernelParams_7__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperKernelParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":130
 * 
 * cdef class _HelperInputVoidPtr:
 *     def __cinit__(self, ptr):             # <<<<<<<<<<<<<<
 *         self._pyobj_acquired = False
 *         if ptr is None:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_ptr = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 130, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 130, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 130, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(1, 130, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 130, __pyx_L3_error)
    }
    __pyx_v_ptr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 130, __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.runtime._HelperInputVoidPtr.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_v_self), __pyx_v_ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self, PyObject *__pyx_v_ptr) {
  int __pyx_v_err_buffer;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":131
 * cdef class _HelperInputVoidPtr:
 *     def __cinit__(self, ptr):
 *         self._pyobj_acquired = False             # <<<<<<<<<<<<<<
 *         if ptr is None:
 *             self._cptr = NULL
*/
  __pyx_v_self->_pyobj_acquired = 0;

  /* "cuda/bindings/_lib/utils.pxi":132
 *     def __cinit__(self, ptr):
 *         self._pyobj_acquired = False
 *         if ptr is None:             # <<<<<<<<<<<<<<
 *             self._cptr = NULL
 *         elif isinstance(ptr, (int)):
*/
  __pyx_t_1 = (__pyx_v_ptr == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":133
 *         self._pyobj_acquired = False
 *         if ptr is None:
 *             self._cptr = NULL             # <<<<<<<<<<<<<<
 *         elif isinstance(ptr, (int)):
 *             # Easy run, user gave us an already configured void** address
*/
    __pyx_v_self->_cptr = NULL;

    /* "cuda/bindings/_lib/utils.pxi":132
 *     def __cinit__(self, ptr):
 *         self._pyobj_acquired = False
 *         if ptr is None:             # <<<<<<<<<<<<<<
 *             self._cptr = NULL
 *         elif isinstance(ptr, (int)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/_lib/utils.pxi":134
 *         if ptr is None:
 *             self._cptr = NULL
 *         elif isinstance(ptr, (int)):             # <<<<<<<<<<<<<<
 *             # Easy run, user gave us an already configured void** address
 *             self._cptr = <void*><void_ptr>ptr
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_ptr); 
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":136
 *         elif isinstance(ptr, (int)):
 *             # Easy run, user gave us an already configured void** address
 *             self._cptr = <void*><void_ptr>ptr             # <<<<<<<<<<<<<<
 *         elif isinstance(ptr, (_driver["CUdeviceptr"])):
 *             self._cptr = <void*><void_ptr>int(ptr)
*/
    __pyx_t_2 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ptr); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 136, __pyx_L1_error)
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_2));

    /* "cuda/bindings/_lib/utils.pxi":134
 *         if ptr is None:
 *             self._cptr = NULL
 *         elif isinstance(ptr, (int)):             # <<<<<<<<<<<<<<
 *             # Easy run, user gave us an already configured void** address
 *             self._cptr = <void*><void_ptr>ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/_lib/utils.pxi":137
 *             # Easy run, user gave us an already configured void** address
 *             self._cptr = <void*><void_ptr>ptr
 *         elif isinstance(ptr, (_driver["CUdeviceptr"])):             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>int(ptr)
 *         elif PyObject_CheckBuffer(ptr):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_CUdeviceptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = PyObject_IsInstance(__pyx_v_ptr, __pyx_t_4); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":138
 *             self._cptr = <void*><void_ptr>ptr
 *         elif isinstance(ptr, (_driver["CUdeviceptr"])):
 *             self._cptr = <void*><void_ptr>int(ptr)             # <<<<<<<<<<<<<<
 *         elif PyObject_CheckBuffer(ptr):
 *             # Easy run, get address from Python Buffer Protocol
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_ptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_2 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 138, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_2));

    /* "cuda/bindings/_lib/utils.pxi":137
 *             # Easy run, user gave us an already configured void** address
 *             self._cptr = <void*><void_ptr>ptr
 *         elif isinstance(ptr, (_driver["CUdeviceptr"])):             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>int(ptr)
 *         elif PyObject_CheckBuffer(ptr):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/_lib/utils.pxi":139
 *         elif isinstance(ptr, (_driver["CUdeviceptr"])):
 *             self._cptr = <void*><void_ptr>int(ptr)
 *         elif PyObject_CheckBuffer(ptr):             # <<<<<<<<<<<<<<
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(ptr, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
*/
  __pyx_t_1 = PyObject_CheckBuffer(__pyx_v_ptr);
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/_lib/utils.pxi":141
 *         elif PyObject_CheckBuffer(ptr):
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(ptr, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *             if err_buffer == -1:
 *                 raise RuntimeError("Failed to retrieve buffer through Buffer Protocol")
*/
    __pyx_t_5 = PyObject_GetBuffer(__pyx_v_ptr, (&__pyx_v_self->_pybuffer), (PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 141, __pyx_L1_error)
    __pyx_v_err_buffer = __pyx_t_5;

    /* "cuda/bindings/_lib/utils.pxi":142
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(ptr, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
 *             if err_buffer == -1:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("Failed to retrieve buffer through Buffer Protocol")
 *             self._pyobj_acquired = True
*/
    __pyx_t_1 = (__pyx_v_err_buffer == -1L);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/_lib/utils.pxi":143
 *             err_buffer = PyObject_GetBuffer(ptr, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
 *             if err_buffer == -1:
 *                 raise RuntimeError("Failed to retrieve buffer through Buffer Protocol")             # <<<<<<<<<<<<<<
 *             self._pyobj_acquired = True
 *             self._cptr = <void*><void_ptr>self._pybuffer.buf
*/
      __pyx_t_3 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_retrieve_buffer_throug};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 143, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(1, 143, __pyx_L1_error)

      /* "cuda/bindings/_lib/utils.pxi":142
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(ptr, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
 *             if err_buffer == -1:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("Failed to retrieve buffer through Buffer Protocol")
 *             self._pyobj_acquired = True
*/
    }

    /* "cuda/bindings/_lib/utils.pxi":144
 *             if err_buffer == -1:
 *                 raise RuntimeError("Failed to retrieve buffer through Buffer Protocol")
 *             self._pyobj_acquired = True             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._pybuffer.buf
 *         else:
*/
    __pyx_v_self->_pyobj_acquired = 1;

    /* "cuda/bindings/_lib/utils.pxi":145
 *                 raise RuntimeError("Failed to retrieve buffer through Buffer Protocol")
 *             self._pyobj_acquired = True
 *             self._cptr = <void*><void_ptr>self._pybuffer.buf             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError("Provided argument is of type {} but expected Type {}, {} or object with Buffer Protocol".format(type(ptr), type(None), type(int)))
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pybuffer.buf));

    /* "cuda/bindings/_lib/utils.pxi":139
 *         elif isinstance(ptr, (_driver["CUdeviceptr"])):
 *             self._cptr = <void*><void_ptr>int(ptr)
 *         elif PyObject_CheckBuffer(ptr):             # <<<<<<<<<<<<<<
 *             # Easy run, get address from Python Buffer Protocol
 *             err_buffer = PyObject_GetBuffer(ptr, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/_lib/utils.pxi":147
 *             self._cptr = <void*><void_ptr>self._pybuffer.buf
 *         else:
 *             raise TypeError("Provided argument is of type {} but expected Type {}, {} or object with Buffer Protocol".format(type(ptr), type(None), type(int)))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_8 = __pyx_mstate_global->__pyx_kp_u_Provided_argument_is_of_type_but_2;
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_8, ((PyObject *)Py_TYPE(__pyx_v_ptr)), ((PyObject *)Py_TYPE(Py_None)), ((PyObject *)Py_TYPE(((PyObject *)(&PyLong_Type))))};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 147, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 147, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(1, 147, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/_lib/utils.pxi":130
 * 
 * cdef class _HelperInputVoidPtr:
 *     def __cinit__(self, ptr):             # <<<<<<<<<<<<<<
 *         self._pyobj_acquired = False
 *         if ptr is None:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperInputVoidPtr.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":149
 *             raise TypeError("Provided argument is of type {} but expected Type {}, {} or object with Buffer Protocol".format(type(ptr), type(None), type(int)))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._pyobj_acquired is True:
 *             PyBuffer_Release(&self._pybuffer)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_2__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/_lib/utils.pxi":150
 * 
 *     def __dealloc__(self):
 *         if self._pyobj_acquired is True:             # <<<<<<<<<<<<<<
 *             PyBuffer_Release(&self._pybuffer)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->_pyobj_acquired == 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/_lib/utils.pxi":151
 *     def __dealloc__(self):
 *         if self._pyobj_acquired is True:
 *             PyBuffer_Release(&self._pybuffer)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
    PyBuffer_Release((&__pyx_v_self->_pybuffer));

    /* "cuda/bindings/_lib/utils.pxi":150
 * 
 *     def __dealloc__(self):
 *         if self._pyobj_acquired is True:             # <<<<<<<<<<<<<<
 *             PyBuffer_Release(&self._pybuffer)
 * 
*/
  }

  /* "cuda/bindings/_lib/utils.pxi":149
 *             raise TypeError("Provided argument is of type {} but expected Type {}, {} or object with Buffer Protocol".format(type(ptr), type(None), type(int)))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._pyobj_acquired is True:
 *             PyBuffer_Release(&self._pybuffer)
*/

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":153
 *             PyBuffer_Release(&self._pybuffer)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":155
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCUmemPool_attribute:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":153
 *             PyBuffer_Release(&self._pybuffer)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperInputVoidPtr.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_5__reduce_cython__(PyObject *__pyx_v_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_7runtime_19_HelperInputVoidPtr_4__reduce_cython__, "_HelperInputVoidPtr.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_5__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperInputVoidPtr.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_7__setstate_cython__(PyObject *__pyx_v_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_7runtime_19_HelperInputVoidPtr_6__setstate_cython__, "_HelperInputVoidPtr.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_6__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_7__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperInputVoidPtr.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_6__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperInputVoidPtr.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":158
 * 
 * cdef class _HelperCUmemPool_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):             # <<<<<<<<<<<<<<
 *         self._is_getter = is_getter
 *         self._attr = attr.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_init_value = 0;
  PyObject *__pyx_v_is_getter = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_is_getter,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 158, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 158, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 158, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 158, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 158, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, i); __PYX_ERR(1, 158, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 158, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 158, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 158, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_attr = values[0];
    __pyx_v_init_value = values[1];
    __pyx_v_is_getter = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, __pyx_nargs); __PYX_ERR(1, 158, __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.runtime._HelperCUmemPool_attribute.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)__pyx_v_self), __pyx_v_attr, __pyx_v_init_value, __pyx_v_is_getter);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value, PyObject *__pyx_v_is_getter) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  enum CUmemPool_attribute_enum __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":159
 * cdef class _HelperCUmemPool_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):
 *         self._is_getter = is_getter             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_is_getter); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 159, __pyx_L1_error)
  __pyx_v_self->_is_getter = __pyx_t_1;

  /* "cuda/bindings/_lib/utils.pxi":160
 *     def __cinit__(self, attr, init_value, is_getter=False):
 *         self._is_getter = is_getter
 *         self._attr = attr.value             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((enum CUmemPool_attribute_enum)__Pyx_PyLong_As_enum__CUmemPool_attribute_enum(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->_attr = __pyx_t_3;

  /* "cuda/bindings/_lib/utils.pxi":161
 *         self._is_getter = is_getter
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
*/
  switch (__pyx_v_self->_attr) {
    case CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES:
    case CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC:

    /* "cuda/bindings/_lib/utils.pxi":162
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
 *             self._int_val = init_value
*/
    case CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES:

    /* "cuda/bindings/_lib/utils.pxi":164
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
 *             self._int_val = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._int_val
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,
*/
    __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_init_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 164, __pyx_L1_error)
    __pyx_v_self->_int_val = __pyx_t_4;

    /* "cuda/bindings/_lib/utils.pxi":165
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
 *             self._int_val = init_value
 *             self._cptr = <void*>&self._int_val             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_int_val));

    /* "cuda/bindings/_lib/utils.pxi":161
 *         self._is_getter = is_getter
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
*/
    break;
    case CU_MEMPOOL_ATTR_RELEASE_THRESHOLD:

    /* "cuda/bindings/_lib/utils.pxi":166
 *             self._int_val = init_value
 *             self._cptr = <void*>&self._int_val
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,
*/
    case CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT:

    /* "cuda/bindings/_lib/utils.pxi":167
 *             self._cptr = <void*>&self._int_val
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,
*/
    case CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH:

    /* "cuda/bindings/_lib/utils.pxi":168
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,):
*/
    case CU_MEMPOOL_ATTR_USED_MEM_CURRENT:

    /* "cuda/bindings/_lib/utils.pxi":169
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,):
 *             if self._is_getter:
*/
    case CU_MEMPOOL_ATTR_USED_MEM_HIGH:

    /* "cuda/bindings/_lib/utils.pxi":171
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._cuuint64_t_val = _driver["cuuint64_t"]()
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()
*/
    if (__pyx_v_self->_is_getter) {

      /* "cuda/bindings/_lib/utils.pxi":172
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,):
 *             if self._is_getter:
 *                 self._cuuint64_t_val = _driver["cuuint64_t"]()             # <<<<<<<<<<<<<<
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()
 *             else:
*/
      __pyx_t_5 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 172, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cuuint64_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 172, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_8 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7);
        assert(__pyx_t_5);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
        __pyx_t_8 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 172, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_cuuint64_t))))) __PYX_ERR(1, 172, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_2);
      __Pyx_GOTREF((PyObject *)__pyx_v_self->_cuuint64_t_val);
      __Pyx_DECREF((PyObject *)__pyx_v_self->_cuuint64_t_val);
      __pyx_v_self->_cuuint64_t_val = ((struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "cuda/bindings/_lib/utils.pxi":173
 *             if self._is_getter:
 *                 self._cuuint64_t_val = _driver["cuuint64_t"]()
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()             # <<<<<<<<<<<<<<
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
*/
      __pyx_t_7 = ((PyObject *)__pyx_v_self->_cuuint64_t_val);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 173, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_9 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_9 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 173, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_9));

      /* "cuda/bindings/_lib/utils.pxi":171
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._cuuint64_t_val = _driver["cuuint64_t"]()
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()
*/
      goto __pyx_L3;
    }

    /* "cuda/bindings/_lib/utils.pxi":175
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    /*else*/ {
      __pyx_t_7 = __pyx_v_init_value;
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 175, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_9 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_9 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 175, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_9));
    }
    __pyx_L3:;

    /* "cuda/bindings/_lib/utils.pxi":166
 *             self._int_val = init_value
 *             self._cptr = <void*>&self._int_val
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":177
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_7 = NULL;
    __pyx_t_6 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_8 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_10};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 177, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_8 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 177, __pyx_L1_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(1, 177, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":158
 * 
 * cdef class _HelperCUmemPool_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):             # <<<<<<<<<<<<<<
 *         self._is_getter = is_getter
 *         self._attr = attr.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemPool_attribute.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":179
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":182
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":184
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 *     def pyObj(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":182
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemPool_attribute.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":186
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_5pyObj(PyObject *__pyx_v_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_7runtime_26_HelperCUmemPool_attribute_4pyObj, "_HelperCUmemPool_attribute.pyObj(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_5pyObj = {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4pyObj};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_5pyObj(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pyObj (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pyObj", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pyObj", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4pyObj(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pyObj", 0);

  /* "cuda/bindings/_lib/utils.pxi":187
 * 
 *     def pyObj(self):
 *         assert(self._is_getter == True)             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_1 = (__pyx_v_self->_is_getter == 1);
    if (unlikely(!__pyx_t_1)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
      __PYX_ERR(1, 187, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(1, 187, __pyx_L1_error)
  #endif

  /* "cuda/bindings/_lib/utils.pxi":188
 *     def pyObj(self):
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
*/
  switch (__pyx_v_self->_attr) {
    case CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES:
    case CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC:

    /* "cuda/bindings/_lib/utils.pxi":189
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
 *             return self._int_val
*/
    case CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES:

    /* "cuda/bindings/_lib/utils.pxi":191
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
 *             return self._int_val             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_int_val); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 191, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":188
 *     def pyObj(self):
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
*/
    break;
    case CU_MEMPOOL_ATTR_RELEASE_THRESHOLD:

    /* "cuda/bindings/_lib/utils.pxi":192
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
 *             return self._int_val
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,
*/
    case CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT:

    /* "cuda/bindings/_lib/utils.pxi":193
 *             return self._int_val
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,
*/
    case CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH:

    /* "cuda/bindings/_lib/utils.pxi":194
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,):
*/
    case CU_MEMPOOL_ATTR_USED_MEM_CURRENT:

    /* "cuda/bindings/_lib/utils.pxi":195
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,):
 *             return self._cuuint64_t_val
*/
    case CU_MEMPOOL_ATTR_USED_MEM_HIGH:

    /* "cuda/bindings/_lib/utils.pxi":197
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,):
 *             return self._cuuint64_t_val             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attr))
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_self->_cuuint64_t_val);
    __pyx_r = ((PyObject *)__pyx_v_self->_cuuint64_t_val);
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":192
 *                           cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,):
 *             return self._int_val
 *         elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,             # <<<<<<<<<<<<<<
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,
 *                             cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":199
 *             return self._cuuint64_t_val
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attr))             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCUmem_range_attribute:
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute_value;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyLong_From_enum__CUmemPool_attribute_enum(__pyx_v_self->_attr); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 199, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__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(1, 199, __pyx_L1_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(1, 199, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":186
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemPool_attribute.pyObj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_7__reduce_cython__(PyObject *__pyx_v_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_7runtime_26_HelperCUmemPool_attribute_6__reduce_cython__, "_HelperCUmemPool_attribute.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_7__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_6__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_7__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_6__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemPool_attribute.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_9__setstate_cython__(PyObject *__pyx_v_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_7runtime_26_HelperCUmemPool_attribute_8__setstate_cython__, "_HelperCUmemPool_attribute.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_9__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_8__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_9__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCUmemPool_attribute.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_8__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemPool_attribute.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":202
 * 
 * cdef class _HelperCUmem_range_attribute:
 *     def __cinit__(self, attr, data_size):             # <<<<<<<<<<<<<<
 *         self._data_size = data_size
 *         self._attr = attr.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_data_size = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_data_size,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 202, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 202, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 202, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 202, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, i); __PYX_ERR(1, 202, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 202, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 202, __pyx_L3_error)
    }
    __pyx_v_attr = values[0];
    __pyx_v_data_size = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, __pyx_nargs); __PYX_ERR(1, 202, __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.runtime._HelperCUmem_range_attribute.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *)__pyx_v_self), __pyx_v_attr, __pyx_v_data_size);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_data_size) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  size_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  enum CUmem_range_attribute_enum __pyx_t_3;
  void *__pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":203
 * cdef class _HelperCUmem_range_attribute:
 *     def __cinit__(self, attr, data_size):
 *         self._data_size = data_size             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,
*/
  __pyx_t_1 = __Pyx_PyLong_As_size_t(__pyx_v_data_size); if (unlikely((__pyx_t_1 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 203, __pyx_L1_error)
  __pyx_v_self->_data_size = __pyx_t_1;

  /* "cuda/bindings/_lib/utils.pxi":204
 *     def __cinit__(self, attr, data_size):
 *         self._data_size = data_size
 *         self._attr = attr.value             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((enum CUmem_range_attribute_enum)__Pyx_PyLong_As_enum__CUmem_range_attribute_enum(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 204, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->_attr = __pyx_t_3;

  /* "cuda/bindings/_lib/utils.pxi":205
 *         self._data_size = data_size
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
*/
  switch (__pyx_v_self->_attr) {
    case CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY:
    case CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION:

    /* "cuda/bindings/_lib/utils.pxi":206
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
 *             self._cptr = <void*>&self._int_val
*/
    case CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION:

    /* "cuda/bindings/_lib/utils.pxi":208
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
 *             self._cptr = <void*>&self._int_val             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):
 *             self._cptr = _callocWrapper(1, self._data_size)
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_int_val));

    /* "cuda/bindings/_lib/utils.pxi":205
 *         self._data_size = data_size
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
*/
    break;
    case CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY:

    /* "cuda/bindings/_lib/utils.pxi":210
 *             self._cptr = <void*>&self._int_val
 *         elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):
 *             self._cptr = _callocWrapper(1, self._data_size)             # <<<<<<<<<<<<<<
 *             self._int_val_list = <int*>self._cptr
 *         else:
*/
    __pyx_t_2 = __Pyx_PyLong_FromSize_t(__pyx_v_self->_data_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __pyx_f_4cuda_8bindings_7runtime__callocWrapper(__pyx_mstate_global->__pyx_int_1, __pyx_t_2); if (unlikely(__pyx_t_4 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(1, 210, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_self->_cptr = __pyx_t_4;

    /* "cuda/bindings/_lib/utils.pxi":211
 *         elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):
 *             self._cptr = _callocWrapper(1, self._data_size)
 *             self._int_val_list = <int*>self._cptr             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    __pyx_v_self->_int_val_list = ((int *)__pyx_v_self->_cptr);

    /* "cuda/bindings/_lib/utils.pxi":209
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
 *             self._cptr = <void*>&self._int_val
 *         elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):             # <<<<<<<<<<<<<<
 *             self._cptr = _callocWrapper(1, self._data_size)
 *             self._int_val_list = <int*>self._cptr
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":213
 *             self._int_val_list = <int*>self._cptr
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_5 = NULL;
    __pyx_t_7 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 213, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_1 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_8};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_1, (2-__pyx_t_1) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_t_1 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_1, (2-__pyx_t_1) | (__pyx_t_1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 213, __pyx_L1_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(1, 213, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":202
 * 
 * cdef class _HelperCUmem_range_attribute:
 *     def __cinit__(self, attr, data_size):             # <<<<<<<<<<<<<<
 *         self._data_size = data_size
 *         self._attr = attr.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmem_range_attribute.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":215
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):
 *             free(self._cptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_2__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self) {
  enum CUmem_range_attribute_enum __pyx_t_1;
  int __pyx_t_2;

  /* "cuda/bindings/_lib/utils.pxi":216
 * 
 *     def __dealloc__(self):
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):             # <<<<<<<<<<<<<<
 *             free(self._cptr)
 * 
*/
  __pyx_t_1 = __pyx_v_self->_attr;
  __pyx_t_2 = (__pyx_t_1 == CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY);
  if (__pyx_t_2) {

    /* "cuda/bindings/_lib/utils.pxi":217
 *     def __dealloc__(self):
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):
 *             free(self._cptr)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
    free(__pyx_v_self->_cptr);

    /* "cuda/bindings/_lib/utils.pxi":216
 * 
 *     def __dealloc__(self):
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):             # <<<<<<<<<<<<<<
 *             free(self._cptr)
 * 
*/
  }

  /* "cuda/bindings/_lib/utils.pxi":215
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):
 *             free(self._cptr)
*/

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":219
 *             free(self._cptr)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":221
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 *     def pyObj(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":219
 *             free(self._cptr)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmem_range_attribute.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":223
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_5pyObj(PyObject *__pyx_v_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_7runtime_28_HelperCUmem_range_attribute_4pyObj, "_HelperCUmem_range_attribute.pyObj(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_5pyObj = {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4pyObj};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_5pyObj(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pyObj (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pyObj", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pyObj", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4pyObj(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self) {
  PyObject *__pyx_7genexpr__pyx_v_idx = NULL;
  PyObject *__pyx_r = NULL;
  __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)(PyObject *);
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pyObj", 0);

  /* "cuda/bindings/_lib/utils.pxi":224
 * 
 *     def pyObj(self):
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
*/
  switch (__pyx_v_self->_attr) {
    case CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY:
    case CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION:

    /* "cuda/bindings/_lib/utils.pxi":225
 *     def pyObj(self):
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
 *             return self._int_val
*/
    case CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION:

    /* "cuda/bindings/_lib/utils.pxi":227
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
 *             return self._int_val             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):
 *             return [self._int_val_list[idx] for idx in range(int(self._data_size/4))]
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->_int_val); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":224
 * 
 *     def pyObj(self):
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,             # <<<<<<<<<<<<<<
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
*/
    break;
    case CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY:

    /* "cuda/bindings/_lib/utils.pxi":229
 *             return self._int_val
 *         elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):
 *             return [self._int_val_list[idx] for idx in range(int(self._data_size/4))]             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attr))
*/
    __Pyx_XDECREF(__pyx_r);
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 229, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = NULL;
      __pyx_t_4 = PyLong_FromDouble((((double)__pyx_v_self->_data_size) / 4.0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 229, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __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_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 229, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 229, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 229, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      for (;;) {
        {
          __pyx_t_2 = __pyx_t_6(__pyx_t_4);
          if (unlikely(!__pyx_t_2)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 229, __pyx_L5_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_2);
        if (__Pyx_PyInt_FromNumber(&__pyx_t_2, NULL, 1) < (0)) __PYX_ERR(1, 229, __pyx_L5_error)
        __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_idx, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;
        __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_7genexpr__pyx_v_idx); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 229, __pyx_L5_error)
        __pyx_t_2 = __Pyx_PyLong_From_int((__pyx_v_self->_int_val_list[__pyx_t_7])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 229, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) __PYX_ERR(1, 229, __pyx_L5_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_7genexpr__pyx_v_idx); __pyx_7genexpr__pyx_v_idx = 0;
      goto __pyx_L9_exit_scope;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_7genexpr__pyx_v_idx); __pyx_7genexpr__pyx_v_idx = 0;
      goto __pyx_L1_error;
      __pyx_L9_exit_scope:;
    } /* exit inner scope */
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":228
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,):
 *             return self._int_val
 *         elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,):             # <<<<<<<<<<<<<<
 *             return [self._int_val_list[idx] for idx in range(int(self._data_size/4))]
 *         else:
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":231
 *             return [self._int_val_list[idx] for idx in range(int(self._data_size/4))]
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attr))             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCUpointer_attribute:
*/
    __pyx_t_4 = NULL;
    __pyx_t_3 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute_value;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyLong_From_enum__CUmem_range_attribute_enum(__pyx_v_self->_attr); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 231, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 231, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_2};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 231, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 231, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":223
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmem_range_attribute.pyObj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_idx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_7__reduce_cython__(PyObject *__pyx_v_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_7runtime_28_HelperCUmem_range_attribute_6__reduce_cython__, "_HelperCUmem_range_attribute.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_7__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_6__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_7__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_6__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmem_range_attribute.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_9__setstate_cython__(PyObject *__pyx_v_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_7runtime_28_HelperCUmem_range_attribute_8__setstate_cython__, "_HelperCUmem_range_attribute.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_9__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_8__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_9__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCUmem_range_attribute.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_8__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmem_range_attribute.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":234
 * 
 * cdef class _HelperCUpointer_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):             # <<<<<<<<<<<<<<
 *         self._is_getter = is_getter
 *         self._attr = attr.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_init_value = 0;
  PyObject *__pyx_v_is_getter = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_is_getter,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 234, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 234, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 234, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 234, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 234, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, i); __PYX_ERR(1, 234, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 234, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 234, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 234, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_attr = values[0];
    __pyx_v_init_value = values[1];
    __pyx_v_is_getter = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, __pyx_nargs); __PYX_ERR(1, 234, __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.runtime._HelperCUpointer_attribute.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)__pyx_v_self), __pyx_v_attr, __pyx_v_init_value, __pyx_v_is_getter);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value, PyObject *__pyx_v_is_getter) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  enum CUpointer_attribute_enum __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_8;
  unsigned int __pyx_t_9;
  unsigned PY_LONG_LONG __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":235
 * cdef class _HelperCUpointer_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):
 *         self._is_getter = is_getter             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_is_getter); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 235, __pyx_L1_error)
  __pyx_v_self->_is_getter = __pyx_t_1;

  /* "cuda/bindings/_lib/utils.pxi":236
 *     def __cinit__(self, attr, init_value, is_getter=False):
 *         self._is_getter = is_getter
 *         self._attr = attr.value             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
 *             if self._is_getter:
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((enum CUpointer_attribute_enum)__Pyx_PyLong_As_enum__CUpointer_attribute_enum(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 236, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->_attr = __pyx_t_3;

  /* "cuda/bindings/_lib/utils.pxi":237
 *         self._is_getter = is_getter
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):             # <<<<<<<<<<<<<<
 *             if self._is_getter:
 *                 self._ctx = _driver["CUcontext"]()
*/
  switch (__pyx_v_self->_attr) {
    case CU_POINTER_ATTRIBUTE_CONTEXT:

    /* "cuda/bindings/_lib/utils.pxi":238
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._ctx = _driver["CUcontext"]()
 *                 self._cptr = <void*><void_ptr>self._ctx.getPtr()
*/
    if (__pyx_v_self->_is_getter) {

      /* "cuda/bindings/_lib/utils.pxi":239
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
 *             if self._is_getter:
 *                 self._ctx = _driver["CUcontext"]()             # <<<<<<<<<<<<<<
 *                 self._cptr = <void*><void_ptr>self._ctx.getPtr()
 *             else:
*/
      __pyx_t_4 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 239, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_CUcontext); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 239, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
        assert(__pyx_t_4);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
        __pyx_t_7 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 239, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUcontext))))) __PYX_ERR(1, 239, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_2);
      __Pyx_GOTREF((PyObject *)__pyx_v_self->_ctx);
      __Pyx_DECREF((PyObject *)__pyx_v_self->_ctx);
      __pyx_v_self->_ctx = ((struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "cuda/bindings/_lib/utils.pxi":240
 *             if self._is_getter:
 *                 self._ctx = _driver["CUcontext"]()
 *                 self._cptr = <void*><void_ptr>self._ctx.getPtr()             # <<<<<<<<<<<<<<
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
*/
      __pyx_t_6 = ((PyObject *)__pyx_v_self->_ctx);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 240, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 240, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));

      /* "cuda/bindings/_lib/utils.pxi":238
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._ctx = _driver["CUcontext"]()
 *                 self._cptr = <void*><void_ptr>self._ctx.getPtr()
*/
      goto __pyx_L3;
    }

    /* "cuda/bindings/_lib/utils.pxi":242
 *                 self._cptr = <void*><void_ptr>self._ctx.getPtr()
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
*/
    /*else*/ {
      __pyx_t_6 = __pyx_v_init_value;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 242, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));
    }
    __pyx_L3:;

    /* "cuda/bindings/_lib/utils.pxi":237
 *         self._is_getter = is_getter
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):             # <<<<<<<<<<<<<<
 *             if self._is_getter:
 *                 self._ctx = _driver["CUcontext"]()
*/
    break;
    case CU_POINTER_ATTRIBUTE_MEMORY_TYPE:

    /* "cuda/bindings/_lib/utils.pxi":243
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
*/
    case CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL:

    /* "cuda/bindings/_lib/utils.pxi":244
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,
*/
    case CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES:

    /* "cuda/bindings/_lib/utils.pxi":245
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
*/
    case CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE:

    /* "cuda/bindings/_lib/utils.pxi":246
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
 *             self._uint = init_value
*/
    case CU_POINTER_ATTRIBUTE_ACCESS_FLAGS:

    /* "cuda/bindings/_lib/utils.pxi":248
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
 *             self._uint = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._uint
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,
*/
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_int(__pyx_v_init_value); if (unlikely((__pyx_t_9 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 248, __pyx_L1_error)
    __pyx_v_self->_uint = __pyx_t_9;

    /* "cuda/bindings/_lib/utils.pxi":249
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
 *             self._uint = init_value
 *             self._cptr = <void*>&self._uint             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_uint));

    /* "cuda/bindings/_lib/utils.pxi":243
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
*/
    break;
    case CU_POINTER_ATTRIBUTE_DEVICE_POINTER:

    /* "cuda/bindings/_lib/utils.pxi":250
 *             self._uint = init_value
 *             self._cptr = <void*>&self._uint
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             if self._is_getter:
*/
    case CU_POINTER_ATTRIBUTE_RANGE_START_ADDR:

    /* "cuda/bindings/_lib/utils.pxi":252
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._devptr = _driver["CUdeviceptr"]()
 *                 self._cptr = <void*><void_ptr>self._devptr.getPtr()
*/
    if (__pyx_v_self->_is_getter) {

      /* "cuda/bindings/_lib/utils.pxi":253
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             if self._is_getter:
 *                 self._devptr = _driver["CUdeviceptr"]()             # <<<<<<<<<<<<<<
 *                 self._cptr = <void*><void_ptr>self._devptr.getPtr()
 *             else:
*/
      __pyx_t_6 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_CUdeviceptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 253, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_7 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
        assert(__pyx_t_6);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
        __pyx_t_7 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 253, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr))))) __PYX_ERR(1, 253, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_2);
      __Pyx_GOTREF((PyObject *)__pyx_v_self->_devptr);
      __Pyx_DECREF((PyObject *)__pyx_v_self->_devptr);
      __pyx_v_self->_devptr = ((struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "cuda/bindings/_lib/utils.pxi":254
 *             if self._is_getter:
 *                 self._devptr = _driver["CUdeviceptr"]()
 *                 self._cptr = <void*><void_ptr>self._devptr.getPtr()             # <<<<<<<<<<<<<<
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
*/
      __pyx_t_5 = ((PyObject *)__pyx_v_self->_devptr);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 254, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 254, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));

      /* "cuda/bindings/_lib/utils.pxi":252
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._devptr = _driver["CUdeviceptr"]()
 *                 self._cptr = <void*><void_ptr>self._devptr.getPtr()
*/
      goto __pyx_L4;
    }

    /* "cuda/bindings/_lib/utils.pxi":256
 *                 self._cptr = <void*><void_ptr>self._devptr.getPtr()
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,):
 *             self._void = <void**><void_ptr>init_value
*/
    /*else*/ {
      __pyx_t_5 = __pyx_v_init_value;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 256, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 256, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));
    }
    __pyx_L4:;

    /* "cuda/bindings/_lib/utils.pxi":250
 *             self._uint = init_value
 *             self._cptr = <void*>&self._uint
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             if self._is_getter:
*/
    break;
    case CU_POINTER_ATTRIBUTE_HOST_POINTER:

    /* "cuda/bindings/_lib/utils.pxi":258
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,):
 *             self._void = <void**><void_ptr>init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._void
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
*/
    __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_init_value); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 258, __pyx_L1_error)
    __pyx_v_self->_void = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));

    /* "cuda/bindings/_lib/utils.pxi":259
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,):
 *             self._void = <void**><void_ptr>init_value
 *             self._cptr = <void*>&self._void             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
 *             if self._is_getter:
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_void));

    /* "cuda/bindings/_lib/utils.pxi":257
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,):             # <<<<<<<<<<<<<<
 *             self._void = <void**><void_ptr>init_value
 *             self._cptr = <void*>&self._void
*/
    break;
    case CU_POINTER_ATTRIBUTE_P2P_TOKENS:

    /* "cuda/bindings/_lib/utils.pxi":261
 *             self._cptr = <void*>&self._void
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._token = _driver["CUDA_POINTER_ATTRIBUTE_P2P_TOKENS"]()
 *                 self._cptr = <void*><void_ptr>self._token.getPtr()
*/
    if (__pyx_v_self->_is_getter) {

      /* "cuda/bindings/_lib/utils.pxi":262
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
 *             if self._is_getter:
 *                 self._token = _driver["CUDA_POINTER_ATTRIBUTE_P2P_TOKENS"]()             # <<<<<<<<<<<<<<
 *                 self._cptr = <void*><void_ptr>self._token.getPtr()
 *             else:
*/
      __pyx_t_5 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 262, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_CUDA_POINTER_ATTRIBUTE_P2P_TOKEN); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 262, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_7 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
        assert(__pyx_t_5);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
        __pyx_t_7 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 262, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS))))) __PYX_ERR(1, 262, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_2);
      __Pyx_GOTREF((PyObject *)__pyx_v_self->_token);
      __Pyx_DECREF((PyObject *)__pyx_v_self->_token);
      __pyx_v_self->_token = ((struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "cuda/bindings/_lib/utils.pxi":263
 *             if self._is_getter:
 *                 self._token = _driver["CUDA_POINTER_ATTRIBUTE_P2P_TOKENS"]()
 *                 self._cptr = <void*><void_ptr>self._token.getPtr()             # <<<<<<<<<<<<<<
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
*/
      __pyx_t_4 = ((PyObject *)__pyx_v_self->_token);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 263, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 263, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));

      /* "cuda/bindings/_lib/utils.pxi":261
 *             self._cptr = <void*>&self._void
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._token = _driver["CUDA_POINTER_ATTRIBUTE_P2P_TOKENS"]()
 *                 self._cptr = <void*><void_ptr>self._token.getPtr()
*/
      goto __pyx_L5;
    }

    /* "cuda/bindings/_lib/utils.pxi":265
 *                 self._cptr = <void*><void_ptr>self._token.getPtr()
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,
*/
    /*else*/ {
      __pyx_t_4 = __pyx_v_init_value;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 265, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 265, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));
    }
    __pyx_L5:;

    /* "cuda/bindings/_lib/utils.pxi":260
 *             self._void = <void**><void_ptr>init_value
 *             self._cptr = <void*>&self._void
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):             # <<<<<<<<<<<<<<
 *             if self._is_getter:
 *                 self._token = _driver["CUDA_POINTER_ATTRIBUTE_P2P_TOKENS"]()
*/
    break;
    case CU_POINTER_ATTRIBUTE_SYNC_MEMOPS:

    /* "cuda/bindings/_lib/utils.pxi":266
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
*/
    case CU_POINTER_ATTRIBUTE_IS_MANAGED:

    /* "cuda/bindings/_lib/utils.pxi":267
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,):
*/
    case CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE:

    /* "cuda/bindings/_lib/utils.pxi":268
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,):
 *             self._bool = init_value
*/
    case CU_POINTER_ATTRIBUTE_MAPPED:

    /* "cuda/bindings/_lib/utils.pxi":270
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,):
 *             self._bool = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._bool
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_init_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 270, __pyx_L1_error)
    __pyx_v_self->_bool = __pyx_t_1;

    /* "cuda/bindings/_lib/utils.pxi":271
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,):
 *             self._bool = init_value
 *             self._cptr = <void*>&self._bool             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):
 *             self._ull = init_value
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_bool));

    /* "cuda/bindings/_lib/utils.pxi":266
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
*/
    break;
    case CU_POINTER_ATTRIBUTE_BUFFER_ID:

    /* "cuda/bindings/_lib/utils.pxi":273
 *             self._cptr = <void*>&self._bool
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):
 *             self._ull = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._ull
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):
*/
    __pyx_t_10 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_init_value); if (unlikely((__pyx_t_10 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 273, __pyx_L1_error)
    __pyx_v_self->_ull = __pyx_t_10;

    /* "cuda/bindings/_lib/utils.pxi":274
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):
 *             self._ull = init_value
 *             self._cptr = <void*>&self._ull             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):
 *             self._size = init_value
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_ull));

    /* "cuda/bindings/_lib/utils.pxi":272
 *             self._bool = init_value
 *             self._cptr = <void*>&self._bool
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):             # <<<<<<<<<<<<<<
 *             self._ull = init_value
 *             self._cptr = <void*>&self._ull
*/
    break;
    case CU_POINTER_ATTRIBUTE_RANGE_SIZE:

    /* "cuda/bindings/_lib/utils.pxi":276
 *             self._cptr = <void*>&self._ull
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):
 *             self._size = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._size
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):
*/
    __pyx_t_7 = __Pyx_PyLong_As_size_t(__pyx_v_init_value); if (unlikely((__pyx_t_7 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 276, __pyx_L1_error)
    __pyx_v_self->_size = __pyx_t_7;

    /* "cuda/bindings/_lib/utils.pxi":277
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):
 *             self._size = init_value
 *             self._cptr = <void*>&self._size             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):
 *             if self._is_getter:
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_size));

    /* "cuda/bindings/_lib/utils.pxi":275
 *             self._ull = init_value
 *             self._cptr = <void*>&self._ull
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):             # <<<<<<<<<<<<<<
 *             self._size = init_value
 *             self._cptr = <void*>&self._size
*/
    break;
    case CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE:

    /* "cuda/bindings/_lib/utils.pxi":279
 *             self._cptr = <void*>&self._size
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._mempool = _driver["CUmemoryPool"]()
 *                 self._cptr = <void*><void_ptr>self._mempool.getPtr()
*/
    if (__pyx_v_self->_is_getter) {

      /* "cuda/bindings/_lib/utils.pxi":280
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):
 *             if self._is_getter:
 *                 self._mempool = _driver["CUmemoryPool"]()             # <<<<<<<<<<<<<<
 *                 self._cptr = <void*><void_ptr>self._mempool.getPtr()
 *             else:
*/
      __pyx_t_4 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 280, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_CUmemoryPool); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 280, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
        assert(__pyx_t_4);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
        __pyx_t_7 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 280, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool))))) __PYX_ERR(1, 280, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_2);
      __Pyx_GOTREF((PyObject *)__pyx_v_self->_mempool);
      __Pyx_DECREF((PyObject *)__pyx_v_self->_mempool);
      __pyx_v_self->_mempool = ((struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "cuda/bindings/_lib/utils.pxi":281
 *             if self._is_getter:
 *                 self._mempool = _driver["CUmemoryPool"]()
 *                 self._cptr = <void*><void_ptr>self._mempool.getPtr()             # <<<<<<<<<<<<<<
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
*/
      __pyx_t_6 = ((PyObject *)__pyx_v_self->_mempool);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 281, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));

      /* "cuda/bindings/_lib/utils.pxi":279
 *             self._cptr = <void*>&self._size
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._mempool = _driver["CUmemoryPool"]()
 *                 self._cptr = <void*><void_ptr>self._mempool.getPtr()
*/
      goto __pyx_L6;
    }

    /* "cuda/bindings/_lib/utils.pxi":283
 *                 self._cptr = <void*><void_ptr>self._mempool.getPtr()
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    /*else*/ {
      __pyx_t_6 = __pyx_v_init_value;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 283, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 283, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));
    }
    __pyx_L6:;

    /* "cuda/bindings/_lib/utils.pxi":278
 *             self._size = init_value
 *             self._cptr = <void*>&self._size
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):             # <<<<<<<<<<<<<<
 *             if self._is_getter:
 *                 self._mempool = _driver["CUmemoryPool"]()
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":285
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_6 = NULL;
    __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_11};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 285, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 285, __pyx_L1_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(1, 285, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":234
 * 
 * cdef class _HelperCUpointer_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):             # <<<<<<<<<<<<<<
 *         self._is_getter = is_getter
 *         self._attr = attr.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUpointer_attribute.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":287
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":290
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":292
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 *     def pyObj(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":290
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUpointer_attribute.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":294
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_5pyObj(PyObject *__pyx_v_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_7runtime_26_HelperCUpointer_attribute_4pyObj, "_HelperCUpointer_attribute.pyObj(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_5pyObj = {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4pyObj};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_5pyObj(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pyObj (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pyObj", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pyObj", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4pyObj(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pyObj", 0);

  /* "cuda/bindings/_lib/utils.pxi":295
 * 
 *     def pyObj(self):
 *         assert(self._is_getter == True)             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
 *             return self._ctx
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_1 = (__pyx_v_self->_is_getter == 1);
    if (unlikely(!__pyx_t_1)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
      __PYX_ERR(1, 295, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(1, 295, __pyx_L1_error)
  #endif

  /* "cuda/bindings/_lib/utils.pxi":296
 *     def pyObj(self):
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):             # <<<<<<<<<<<<<<
 *             return self._ctx
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
*/
  switch (__pyx_v_self->_attr) {
    case CU_POINTER_ATTRIBUTE_CONTEXT:

    /* "cuda/bindings/_lib/utils.pxi":297
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
 *             return self._ctx             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_self->_ctx);
    __pyx_r = ((PyObject *)__pyx_v_self->_ctx);
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":296
 *     def pyObj(self):
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):             # <<<<<<<<<<<<<<
 *             return self._ctx
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
*/
    break;
    case CU_POINTER_ATTRIBUTE_MEMORY_TYPE:

    /* "cuda/bindings/_lib/utils.pxi":298
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
 *             return self._ctx
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
*/
    case CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL:

    /* "cuda/bindings/_lib/utils.pxi":299
 *             return self._ctx
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,
*/
    case CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES:

    /* "cuda/bindings/_lib/utils.pxi":300
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
*/
    case CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE:

    /* "cuda/bindings/_lib/utils.pxi":301
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
 *             return self._uint
*/
    case CU_POINTER_ATTRIBUTE_ACCESS_FLAGS:

    /* "cuda/bindings/_lib/utils.pxi":303
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
 *             return self._uint             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_unsigned_int(__pyx_v_self->_uint); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":298
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
 *             return self._ctx
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,
*/
    break;
    case CU_POINTER_ATTRIBUTE_DEVICE_POINTER:

    /* "cuda/bindings/_lib/utils.pxi":304
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
 *             return self._uint
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             return self._devptr
*/
    case CU_POINTER_ATTRIBUTE_RANGE_START_ADDR:

    /* "cuda/bindings/_lib/utils.pxi":306
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             return self._devptr             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,):
 *             return <void_ptr>self._void
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_self->_devptr);
    __pyx_r = ((PyObject *)__pyx_v_self->_devptr);
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":304
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,):
 *             return self._uint
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             return self._devptr
*/
    break;
    case CU_POINTER_ATTRIBUTE_HOST_POINTER:

    /* "cuda/bindings/_lib/utils.pxi":308
 *             return self._devptr
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,):
 *             return <void_ptr>self._void             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
 *             return self._token
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_void)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":307
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,):
 *             return self._devptr
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,):             # <<<<<<<<<<<<<<
 *             return <void_ptr>self._void
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
*/
    break;
    case CU_POINTER_ATTRIBUTE_P2P_TOKENS:

    /* "cuda/bindings/_lib/utils.pxi":310
 *             return <void_ptr>self._void
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
 *             return self._token             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_self->_token);
    __pyx_r = ((PyObject *)__pyx_v_self->_token);
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":309
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,):
 *             return <void_ptr>self._void
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):             # <<<<<<<<<<<<<<
 *             return self._token
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,
*/
    break;
    case CU_POINTER_ATTRIBUTE_SYNC_MEMOPS:

    /* "cuda/bindings/_lib/utils.pxi":311
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
 *             return self._token
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
*/
    case CU_POINTER_ATTRIBUTE_IS_MANAGED:

    /* "cuda/bindings/_lib/utils.pxi":312
 *             return self._token
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,):
*/
    case CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE:

    /* "cuda/bindings/_lib/utils.pxi":313
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,):
 *             return self._bool
*/
    case CU_POINTER_ATTRIBUTE_MAPPED:

    /* "cuda/bindings/_lib/utils.pxi":315
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,):
 *             return self._bool             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):
 *             return self._ull
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->_bool); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":311
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,):
 *             return self._token
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,             # <<<<<<<<<<<<<<
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,
*/
    break;
    case CU_POINTER_ATTRIBUTE_BUFFER_ID:

    /* "cuda/bindings/_lib/utils.pxi":317
 *             return self._bool
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):
 *             return self._ull             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):
 *             return self._size
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_self->_ull); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":316
 *                             cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,):
 *             return self._bool
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):             # <<<<<<<<<<<<<<
 *             return self._ull
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):
*/
    break;
    case CU_POINTER_ATTRIBUTE_RANGE_SIZE:

    /* "cuda/bindings/_lib/utils.pxi":319
 *             return self._ull
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):
 *             return self._size             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):
 *             return self._mempool
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_FromSize_t(__pyx_v_self->_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 319, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":318
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,):
 *             return self._ull
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):             # <<<<<<<<<<<<<<
 *             return self._size
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):
*/
    break;
    case CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE:

    /* "cuda/bindings/_lib/utils.pxi":321
 *             return self._size
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):
 *             return self._mempool             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attr))
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_self->_mempool);
    __pyx_r = ((PyObject *)__pyx_v_self->_mempool);
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":320
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,):
 *             return self._size
 *         elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,):             # <<<<<<<<<<<<<<
 *             return self._mempool
 *         else:
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":323
 *             return self._mempool
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attr))             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCUgraphMem_attribute:
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute_value;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyLong_From_enum__CUpointer_attribute_enum(__pyx_v_self->_attr); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 323, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__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(1, 323, __pyx_L1_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(1, 323, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":294
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUpointer_attribute.pyObj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_7__reduce_cython__(PyObject *__pyx_v_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_7runtime_26_HelperCUpointer_attribute_6__reduce_cython__, "_HelperCUpointer_attribute.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_7__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_6__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_7__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_6__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUpointer_attribute.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_9__setstate_cython__(PyObject *__pyx_v_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_7runtime_26_HelperCUpointer_attribute_8__setstate_cython__, "_HelperCUpointer_attribute.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_9__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_8__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_9__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCUpointer_attribute.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_8__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUpointer_attribute.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":326
 * 
 * cdef class _HelperCUgraphMem_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):             # <<<<<<<<<<<<<<
 *         self._is_getter = is_getter
 *         self._attr = attr.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_init_value = 0;
  PyObject *__pyx_v_is_getter = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_is_getter,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 326, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 326, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 326, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 326, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 326, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, i); __PYX_ERR(1, 326, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 326, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 326, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 326, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_attr = values[0];
    __pyx_v_init_value = values[1];
    __pyx_v_is_getter = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, __pyx_nargs); __PYX_ERR(1, 326, __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.runtime._HelperCUgraphMem_attribute.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)__pyx_v_self), __pyx_v_attr, __pyx_v_init_value, __pyx_v_is_getter);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value, PyObject *__pyx_v_is_getter) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  enum CUgraphMem_attribute_enum __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":327
 * cdef class _HelperCUgraphMem_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):
 *         self._is_getter = is_getter             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_is_getter); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 327, __pyx_L1_error)
  __pyx_v_self->_is_getter = __pyx_t_1;

  /* "cuda/bindings/_lib/utils.pxi":328
 *     def __cinit__(self, attr, init_value, is_getter=False):
 *         self._is_getter = is_getter
 *         self._attr = attr.value             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((enum CUgraphMem_attribute_enum)__Pyx_PyLong_As_enum__CUgraphMem_attribute_enum(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->_attr = __pyx_t_3;

  /* "cuda/bindings/_lib/utils.pxi":329
 *         self._is_getter = is_getter
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
*/
  switch (__pyx_v_self->_attr) {
    case CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT:
    case CU_GRAPH_MEM_ATTR_USED_MEM_HIGH:

    /* "cuda/bindings/_lib/utils.pxi":330
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,             # <<<<<<<<<<<<<<
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,):
*/
    case CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT:

    /* "cuda/bindings/_lib/utils.pxi":331
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,):
 *             if self._is_getter:
*/
    case CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH:

    /* "cuda/bindings/_lib/utils.pxi":333
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._cuuint64_t_val = _driver["cuuint64_t"]()
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()
*/
    if (__pyx_v_self->_is_getter) {

      /* "cuda/bindings/_lib/utils.pxi":334
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,):
 *             if self._is_getter:
 *                 self._cuuint64_t_val = _driver["cuuint64_t"]()             # <<<<<<<<<<<<<<
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()
 *             else:
*/
      __pyx_t_4 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 334, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_cuuint64_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 334, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
        assert(__pyx_t_4);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
        __pyx_t_7 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 334, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_cuuint64_t))))) __PYX_ERR(1, 334, __pyx_L1_error)
      __Pyx_GIVEREF(__pyx_t_2);
      __Pyx_GOTREF((PyObject *)__pyx_v_self->_cuuint64_t_val);
      __Pyx_DECREF((PyObject *)__pyx_v_self->_cuuint64_t_val);
      __pyx_v_self->_cuuint64_t_val = ((struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "cuda/bindings/_lib/utils.pxi":335
 *             if self._is_getter:
 *                 self._cuuint64_t_val = _driver["cuuint64_t"]()
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()             # <<<<<<<<<<<<<<
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
*/
      __pyx_t_6 = ((PyObject *)__pyx_v_self->_cuuint64_t_val);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 335, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 335, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));

      /* "cuda/bindings/_lib/utils.pxi":333
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._cuuint64_t_val = _driver["cuuint64_t"]()
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()
*/
      goto __pyx_L3;
    }

    /* "cuda/bindings/_lib/utils.pxi":337
 *                 self._cptr = <void*><void_ptr>self._cuuint64_t_val.getPtr()
 *             else:
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    /*else*/ {
      __pyx_t_6 = __pyx_v_init_value;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 337, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 337, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));
    }
    __pyx_L3:;

    /* "cuda/bindings/_lib/utils.pxi":329
 *         self._is_getter = is_getter
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":339
 *                 self._cptr = <void*><void_ptr>init_value.getPtr()
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_6 = NULL;
    __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_9};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 339, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 339, __pyx_L1_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(1, 339, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":326
 * 
 * cdef class _HelperCUgraphMem_attribute:
 *     def __cinit__(self, attr, init_value, is_getter=False):             # <<<<<<<<<<<<<<
 *         self._is_getter = is_getter
 *         self._attr = attr.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUgraphMem_attribute.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":341
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":344
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":346
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 *     def pyObj(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":344
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUgraphMem_attribute.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":348
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_5pyObj(PyObject *__pyx_v_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_7runtime_27_HelperCUgraphMem_attribute_4pyObj, "_HelperCUgraphMem_attribute.pyObj(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_5pyObj = {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4pyObj};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_5pyObj(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pyObj (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pyObj", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pyObj", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4pyObj(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pyObj", 0);

  /* "cuda/bindings/_lib/utils.pxi":349
 * 
 *     def pyObj(self):
 *         assert(self._is_getter == True)             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_1 = (__pyx_v_self->_is_getter == 1);
    if (unlikely(!__pyx_t_1)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
      __PYX_ERR(1, 349, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(1, 349, __pyx_L1_error)
  #endif

  /* "cuda/bindings/_lib/utils.pxi":350
 *     def pyObj(self):
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
*/
  switch (__pyx_v_self->_attr) {
    case CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT:
    case CU_GRAPH_MEM_ATTR_USED_MEM_HIGH:

    /* "cuda/bindings/_lib/utils.pxi":351
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,             # <<<<<<<<<<<<<<
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,):
*/
    case CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT:

    /* "cuda/bindings/_lib/utils.pxi":352
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,):
 *             return self._cuuint64_t_val
*/
    case CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH:

    /* "cuda/bindings/_lib/utils.pxi":354
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,):
 *             return self._cuuint64_t_val             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attr))
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_self->_cuuint64_t_val);
    __pyx_r = ((PyObject *)__pyx_v_self->_cuuint64_t_val);
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":350
 *     def pyObj(self):
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,
 *                           cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":356
 *             return self._cuuint64_t_val
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attr))             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCUjit_option:
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute_value;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyLong_From_enum__CUgraphMem_attribute_enum(__pyx_v_self->_attr); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 356, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__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(1, 356, __pyx_L1_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(1, 356, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":348
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUgraphMem_attribute.pyObj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_7__reduce_cython__(PyObject *__pyx_v_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_7runtime_27_HelperCUgraphMem_attribute_6__reduce_cython__, "_HelperCUgraphMem_attribute.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_7__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_6__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_7__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_6__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUgraphMem_attribute.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_9__setstate_cython__(PyObject *__pyx_v_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_7runtime_27_HelperCUgraphMem_attribute_8__setstate_cython__, "_HelperCUgraphMem_attribute.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_9__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_8__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_9__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCUgraphMem_attribute.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_8__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUgraphMem_attribute.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":359
 * 
 * cdef class _HelperCUjit_option:
 *     def __cinit__(self, attr, init_value):             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS,
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_init_value = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_init_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 359, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 359, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 359, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 359, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, i); __PYX_ERR(1, 359, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 359, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 359, __pyx_L3_error)
    }
    __pyx_v_attr = values[0];
    __pyx_v_init_value = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, __pyx_nargs); __PYX_ERR(1, 359, __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.runtime._HelperCUjit_option.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)__pyx_v_self), __pyx_v_attr, __pyx_v_init_value);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value) {
  PyObject *__pyx_v_pylist = NULL;
  PyObject *__pyx_8genexpr1__pyx_v_val = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum CUjit_option_enum __pyx_t_2;
  unsigned int __pyx_t_3;
  float __pyx_t_4;
  char *__pyx_t_5;
  enum CUjit_target_enum __pyx_t_6;
  enum CUjit_fallback_enum __pyx_t_7;
  int __pyx_t_8;
  enum CUjit_cacheMode_enum __pyx_t_9;
  std::vector<char *>  __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  Py_ssize_t __pyx_t_12;
  PyObject *(*__pyx_t_13)(PyObject *);
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  size_t __pyx_t_16;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_17;
  PyObject *__pyx_t_18 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":360
 * cdef class _HelperCUjit_option:
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS,
 *                           cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK,
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum CUjit_option_enum)__Pyx_PyLong_As_enum__CUjit_option_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 360, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->_attr = __pyx_t_2;

  /* "cuda/bindings/_lib/utils.pxi":361
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK,
 *                           cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES,
*/
  switch (__pyx_v_self->_attr) {
    case CU_JIT_MAX_REGISTERS:
    case CU_JIT_THREADS_PER_BLOCK:

    /* "cuda/bindings/_lib/utils.pxi":362
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS,
 *                           cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES,
 *                           cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES,
*/
    case CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES:

    /* "cuda/bindings/_lib/utils.pxi":363
 *         if self._attr in (cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS,
 *                           cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK,
 *                           cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES,
 *                           cydriver.CUjit_option_enum.CU_JIT_OPTIMIZATION_LEVEL,
*/
    case CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES:

    /* "cuda/bindings/_lib/utils.pxi":364
 *                           cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK,
 *                           cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES,
 *                           cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_OPTIMIZATION_LEVEL,
 *                           cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_COUNT,
*/
    case CU_JIT_OPTIMIZATION_LEVEL:

    /* "cuda/bindings/_lib/utils.pxi":365
 *                           cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES,
 *                           cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES,
 *                           cydriver.CUjit_option_enum.CU_JIT_OPTIMIZATION_LEVEL,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_COUNT,
 *                           cydriver.CUjit_option_enum.CU_JIT_TARGET_FROM_CUCONTEXT,
*/
    case CU_JIT_GLOBAL_SYMBOL_COUNT:

    /* "cuda/bindings/_lib/utils.pxi":366
 *                           cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES,
 *                           cydriver.CUjit_option_enum.CU_JIT_OPTIMIZATION_LEVEL,
 *                           cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_COUNT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_TARGET_FROM_CUCONTEXT,
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_COUNT,
*/
    case CU_JIT_TARGET_FROM_CUCONTEXT:

    /* "cuda/bindings/_lib/utils.pxi":367
 *                           cydriver.CUjit_option_enum.CU_JIT_OPTIMIZATION_LEVEL,
 *                           cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_COUNT,
 *                           cydriver.CUjit_option_enum.CU_JIT_TARGET_FROM_CUCONTEXT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_COUNT,
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_COUNT,
*/
    case CU_JIT_REFERENCED_KERNEL_COUNT:

    /* "cuda/bindings/_lib/utils.pxi":368
 *                           cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_COUNT,
 *                           cydriver.CUjit_option_enum.CU_JIT_TARGET_FROM_CUCONTEXT,
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_COUNT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_COUNT,
 *                           cydriver.CUjit_option_enum.CU_JIT_MIN_CTA_PER_SM,
*/
    case CU_JIT_REFERENCED_VARIABLE_COUNT:

    /* "cuda/bindings/_lib/utils.pxi":369
 *                           cydriver.CUjit_option_enum.CU_JIT_TARGET_FROM_CUCONTEXT,
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_COUNT,
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_COUNT,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_MIN_CTA_PER_SM,
 *                           cydriver.CUjit_option_enum.CU_JIT_SPLIT_COMPILE,):
*/
    case CU_JIT_MIN_CTA_PER_SM:

    /* "cuda/bindings/_lib/utils.pxi":370
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_COUNT,
 *                           cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_COUNT,
 *                           cydriver.CUjit_option_enum.CU_JIT_MIN_CTA_PER_SM,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_SPLIT_COMPILE,):
 *             self._uint = init_value
*/
    case CU_JIT_SPLIT_COMPILE:

    /* "cuda/bindings/_lib/utils.pxi":372
 *                           cydriver.CUjit_option_enum.CU_JIT_MIN_CTA_PER_SM,
 *                           cydriver.CUjit_option_enum.CU_JIT_SPLIT_COMPILE,):
 *             self._uint = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._uint
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_WALL_TIME,):
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_init_value); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 372, __pyx_L1_error)
    __pyx_v_self->_uint = __pyx_t_3;

    /* "cuda/bindings/_lib/utils.pxi":373
 *                           cydriver.CUjit_option_enum.CU_JIT_SPLIT_COMPILE,):
 *             self._uint = init_value
 *             self._cptr = <void*><void_ptr>self._uint             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_WALL_TIME,):
 *             self._float = init_value
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_uint));

    /* "cuda/bindings/_lib/utils.pxi":361
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS,             # <<<<<<<<<<<<<<
 *                           cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK,
 *                           cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES,
*/
    break;
    case CU_JIT_WALL_TIME:

    /* "cuda/bindings/_lib/utils.pxi":375
 *             self._cptr = <void*><void_ptr>self._uint
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_WALL_TIME,):
 *             self._float = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._float
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER,
*/
    __pyx_t_4 = __Pyx_PyFloat_AsFloat(__pyx_v_init_value); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 375, __pyx_L1_error)
    __pyx_v_self->_float = __pyx_t_4;

    /* "cuda/bindings/_lib/utils.pxi":376
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_WALL_TIME,):
 *             self._float = init_value
 *             self._cptr = <void*><void_ptr>self._float             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER,
 *                             cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER):
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_float));

    /* "cuda/bindings/_lib/utils.pxi":374
 *             self._uint = init_value
 *             self._cptr = <void*><void_ptr>self._uint
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_WALL_TIME,):             # <<<<<<<<<<<<<<
 *             self._float = init_value
 *             self._cptr = <void*><void_ptr>self._float
*/
    break;
    case CU_JIT_INFO_LOG_BUFFER:

    /* "cuda/bindings/_lib/utils.pxi":377
 *             self._float = init_value
 *             self._cptr = <void*><void_ptr>self._float
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER):
 *             self._charstar = init_value
*/
    case CU_JIT_ERROR_LOG_BUFFER:

    /* "cuda/bindings/_lib/utils.pxi":379
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER,
 *                             cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER):
 *             self._charstar = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._charstar
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_TARGET,):
*/
    __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_init_value); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(1, 379, __pyx_L1_error)
    __pyx_v_self->_charstar = __pyx_t_5;

    /* "cuda/bindings/_lib/utils.pxi":380
 *                             cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER):
 *             self._charstar = init_value
 *             self._cptr = <void*><void_ptr>self._charstar             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_TARGET,):
 *             self._target = init_value.value
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_charstar));

    /* "cuda/bindings/_lib/utils.pxi":377
 *             self._float = init_value
 *             self._cptr = <void*><void_ptr>self._float
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER):
 *             self._charstar = init_value
*/
    break;
    case CU_JIT_TARGET:

    /* "cuda/bindings/_lib/utils.pxi":382
 *             self._cptr = <void*><void_ptr>self._charstar
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_TARGET,):
 *             self._target = init_value.value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._target
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_FALLBACK_STRATEGY,):
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_init_value, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = ((enum CUjit_target_enum)__Pyx_PyLong_As_enum__CUjit_target_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 382, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_target = __pyx_t_6;

    /* "cuda/bindings/_lib/utils.pxi":383
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_TARGET,):
 *             self._target = init_value.value
 *             self._cptr = <void*><void_ptr>self._target             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_FALLBACK_STRATEGY,):
 *             self._fallback = init_value.value
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_target));

    /* "cuda/bindings/_lib/utils.pxi":381
 *             self._charstar = init_value
 *             self._cptr = <void*><void_ptr>self._charstar
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_TARGET,):             # <<<<<<<<<<<<<<
 *             self._target = init_value.value
 *             self._cptr = <void*><void_ptr>self._target
*/
    break;
    case CU_JIT_FALLBACK_STRATEGY:

    /* "cuda/bindings/_lib/utils.pxi":385
 *             self._cptr = <void*><void_ptr>self._target
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_FALLBACK_STRATEGY,):
 *             self._fallback = init_value.value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._fallback
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO,
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_init_value, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 385, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = ((enum CUjit_fallback_enum)__Pyx_PyLong_As_enum__CUjit_fallback_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 385, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_fallback = __pyx_t_7;

    /* "cuda/bindings/_lib/utils.pxi":386
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_FALLBACK_STRATEGY,):
 *             self._fallback = init_value.value
 *             self._cptr = <void*><void_ptr>self._fallback             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO,
 *                             cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE,
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_fallback));

    /* "cuda/bindings/_lib/utils.pxi":384
 *             self._target = init_value.value
 *             self._cptr = <void*><void_ptr>self._target
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_FALLBACK_STRATEGY,):             # <<<<<<<<<<<<<<
 *             self._fallback = init_value.value
 *             self._cptr = <void*><void_ptr>self._fallback
*/
    break;
    case CU_JIT_GENERATE_DEBUG_INFO:

    /* "cuda/bindings/_lib/utils.pxi":387
 *             self._fallback = init_value.value
 *             self._cptr = <void*><void_ptr>self._fallback
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE,
 *                             cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO,
*/
    case CU_JIT_LOG_VERBOSE:

    /* "cuda/bindings/_lib/utils.pxi":388
 *             self._cptr = <void*><void_ptr>self._fallback
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO,
 *                             cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO,
 *                             cydriver.CUjit_option_enum.CU_JIT_LTO,
*/
    case CU_JIT_GENERATE_LINE_INFO:

    /* "cuda/bindings/_lib/utils.pxi":389
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO,
 *                             cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE,
 *                             cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_LTO,
 *                             cydriver.CUjit_option_enum.CU_JIT_FTZ,
*/
    case CU_JIT_LTO:

    /* "cuda/bindings/_lib/utils.pxi":390
 *                             cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE,
 *                             cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO,
 *                             cydriver.CUjit_option_enum.CU_JIT_LTO,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_FTZ,
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_DIV,
*/
    case CU_JIT_FTZ:

    /* "cuda/bindings/_lib/utils.pxi":391
 *                             cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO,
 *                             cydriver.CUjit_option_enum.CU_JIT_LTO,
 *                             cydriver.CUjit_option_enum.CU_JIT_FTZ,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_DIV,
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_SQRT,
*/
    case CU_JIT_PREC_DIV:

    /* "cuda/bindings/_lib/utils.pxi":392
 *                             cydriver.CUjit_option_enum.CU_JIT_LTO,
 *                             cydriver.CUjit_option_enum.CU_JIT_FTZ,
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_DIV,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_SQRT,
 *                             cydriver.CUjit_option_enum.CU_JIT_FMA,
*/
    case CU_JIT_PREC_SQRT:

    /* "cuda/bindings/_lib/utils.pxi":393
 *                             cydriver.CUjit_option_enum.CU_JIT_FTZ,
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_DIV,
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_SQRT,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_FMA,
 *                             cydriver.CUjit_option_enum.CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES,):
*/
    case CU_JIT_FMA:

    /* "cuda/bindings/_lib/utils.pxi":394
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_DIV,
 *                             cydriver.CUjit_option_enum.CU_JIT_PREC_SQRT,
 *                             cydriver.CUjit_option_enum.CU_JIT_FMA,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES,):
 *             self._int = init_value
*/
    case CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES:

    /* "cuda/bindings/_lib/utils.pxi":396
 *                             cydriver.CUjit_option_enum.CU_JIT_FMA,
 *                             cydriver.CUjit_option_enum.CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES,):
 *             self._int = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._int
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_CACHE_MODE,):
*/
    __pyx_t_8 = __Pyx_PyLong_As_int(__pyx_v_init_value); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 396, __pyx_L1_error)
    __pyx_v_self->_int = __pyx_t_8;

    /* "cuda/bindings/_lib/utils.pxi":397
 *                             cydriver.CUjit_option_enum.CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES,):
 *             self._int = init_value
 *             self._cptr = <void*><void_ptr>self._int             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_CACHE_MODE,):
 *             self._cacheMode = init_value.value
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_int));

    /* "cuda/bindings/_lib/utils.pxi":387
 *             self._fallback = init_value.value
 *             self._cptr = <void*><void_ptr>self._fallback
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE,
 *                             cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO,
*/
    break;
    case CU_JIT_CACHE_MODE:

    /* "cuda/bindings/_lib/utils.pxi":399
 *             self._cptr = <void*><void_ptr>self._int
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_CACHE_MODE,):
 *             self._cacheMode = init_value.value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._cacheMode
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_NAMES,
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_init_value, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = ((enum CUjit_cacheMode_enum)__Pyx_PyLong_As_enum__CUjit_cacheMode_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 399, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_cacheMode = __pyx_t_9;

    /* "cuda/bindings/_lib/utils.pxi":400
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_CACHE_MODE,):
 *             self._cacheMode = init_value.value
 *             self._cptr = <void*><void_ptr>self._cacheMode             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_NAMES,
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_NAMES,
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cacheMode));

    /* "cuda/bindings/_lib/utils.pxi":398
 *             self._int = init_value
 *             self._cptr = <void*><void_ptr>self._int
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_CACHE_MODE,):             # <<<<<<<<<<<<<<
 *             self._cacheMode = init_value.value
 *             self._cptr = <void*><void_ptr>self._cacheMode
*/
    break;
    case CU_JIT_GLOBAL_SYMBOL_NAMES:

    /* "cuda/bindings/_lib/utils.pxi":401
 *             self._cacheMode = init_value.value
 *             self._cptr = <void*><void_ptr>self._cacheMode
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_NAMES,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_NAMES,
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_NAMES,):
*/
    case CU_JIT_REFERENCED_KERNEL_NAMES:

    /* "cuda/bindings/_lib/utils.pxi":402
 *             self._cptr = <void*><void_ptr>self._cacheMode
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_NAMES,
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_NAMES,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_NAMES,):
 *             self._charstarstar = init_value
*/
    case CU_JIT_REFERENCED_VARIABLE_NAMES:

    /* "cuda/bindings/_lib/utils.pxi":404
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_NAMES,
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_NAMES,):
 *             self._charstarstar = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._charstarstar[0]
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_ADDRESSES,):
*/
    __pyx_t_10 = __pyx_convert_vector_from_py_char___2a_(__pyx_v_init_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 404, __pyx_L1_error)
    __pyx_v_self->_charstarstar = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_10);

    /* "cuda/bindings/_lib/utils.pxi":405
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_NAMES,):
 *             self._charstarstar = init_value
 *             self._cptr = <void*>&self._charstarstar[0]             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_ADDRESSES,):
 *             pylist = [_HelperInputVoidPtr(val) for val in init_value]
*/
    __pyx_v_self->_cptr = ((void *)(&(__pyx_v_self->_charstarstar[0])));

    /* "cuda/bindings/_lib/utils.pxi":401
 *             self._cacheMode = init_value.value
 *             self._cptr = <void*><void_ptr>self._cacheMode
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_NAMES,             # <<<<<<<<<<<<<<
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_NAMES,
 *                             cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_NAMES,):
*/
    break;
    case CU_JIT_GLOBAL_SYMBOL_ADDRESSES:

    /* "cuda/bindings/_lib/utils.pxi":407
 *             self._cptr = <void*>&self._charstarstar[0]
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_ADDRESSES,):
 *             pylist = [_HelperInputVoidPtr(val) for val in init_value]             # <<<<<<<<<<<<<<
 *             self._voidstarstar = _InputVoidPtrPtrHelper(pylist)
 *             self._cptr = <void*><void_ptr>self._voidstarstar.cptr
*/
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 407, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (likely(PyList_CheckExact(__pyx_v_init_value)) || PyTuple_CheckExact(__pyx_v_init_value)) {
        __pyx_t_11 = __pyx_v_init_value; __Pyx_INCREF(__pyx_t_11);
        __pyx_t_12 = 0;
        __pyx_t_13 = NULL;
      } else {
        __pyx_t_12 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_v_init_value); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 407, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_11); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 407, __pyx_L5_error)
      }
      for (;;) {
        if (likely(!__pyx_t_13)) {
          if (likely(PyList_CheckExact(__pyx_t_11))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_11);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 407, __pyx_L5_error)
              #endif
              if (__pyx_t_12 >= __pyx_temp) break;
            }
            __pyx_t_14 = __Pyx_PyList_GetItemRefFast(__pyx_t_11, __pyx_t_12, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_12;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_11);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 407, __pyx_L5_error)
              #endif
              if (__pyx_t_12 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_14 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_12));
            #else
            __pyx_t_14 = __Pyx_PySequence_ITEM(__pyx_t_11, __pyx_t_12);
            #endif
            ++__pyx_t_12;
          }
          if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 407, __pyx_L5_error)
        } else {
          __pyx_t_14 = __pyx_t_13(__pyx_t_11);
          if (unlikely(!__pyx_t_14)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 407, __pyx_L5_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_val, __pyx_t_14);
        __pyx_t_14 = 0;
        __pyx_t_15 = NULL;
        __pyx_t_16 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_15, __pyx_8genexpr1__pyx_v_val};
          __pyx_t_14 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_16, (2-__pyx_t_16) | (__pyx_t_16*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
          if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 407, __pyx_L5_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_14);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_14))) __PYX_ERR(1, 407, __pyx_L5_error)
        __Pyx_DECREF((PyObject *)__pyx_t_14); __pyx_t_14 = 0;
      }
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_val); __pyx_8genexpr1__pyx_v_val = 0;
      goto __pyx_L9_exit_scope;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_val); __pyx_8genexpr1__pyx_v_val = 0;
      goto __pyx_L1_error;
      __pyx_L9_exit_scope:;
    } /* exit inner scope */
    __pyx_v_pylist = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "cuda/bindings/_lib/utils.pxi":408
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_ADDRESSES,):
 *             pylist = [_HelperInputVoidPtr(val) for val in init_value]
 *             self._voidstarstar = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._voidstarstar.cptr
 *         else:
*/
    __pyx_t_11 = NULL;
    __pyx_t_16 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_v_pylist};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_16, (2-__pyx_t_16) | (__pyx_t_16*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 408, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_1);
    }
    __Pyx_GIVEREF((PyObject *)__pyx_t_1);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->_voidstarstar);
    __Pyx_DECREF((PyObject *)__pyx_v_self->_voidstarstar);
    __pyx_v_self->_voidstarstar = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "cuda/bindings/_lib/utils.pxi":409
 *             pylist = [_HelperInputVoidPtr(val) for val in init_value]
 *             self._voidstarstar = _InputVoidPtrPtrHelper(pylist)
 *             self._cptr = <void*><void_ptr>self._voidstarstar.cptr             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_voidstarstar), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 409, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_17 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_17 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 409, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_17));

    /* "cuda/bindings/_lib/utils.pxi":406
 *             self._charstarstar = init_value
 *             self._cptr = <void*>&self._charstarstar[0]
 *         elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_ADDRESSES,):             # <<<<<<<<<<<<<<
 *             pylist = [_HelperInputVoidPtr(val) for val in init_value]
 *             self._voidstarstar = _InputVoidPtrPtrHelper(pylist)
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":411
 *             self._cptr = <void*><void_ptr>self._voidstarstar.cptr
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_11 = NULL;
    __pyx_t_15 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_15);
    __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_18);
    __pyx_t_16 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_15, __pyx_t_18};
      __pyx_t_14 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_16, (2-__pyx_t_16) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
      __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
      if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 411, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
    }
    __pyx_t_16 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_14};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_16, (2-__pyx_t_16) | (__pyx_t_16*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 411, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 411, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":359
 * 
 * cdef class _HelperCUjit_option:
 *     def __cinit__(self, attr, init_value):             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if self._attr in (cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS,
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_18);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUjit_option.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pylist);
  __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_val);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":413
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":416
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":418
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCudaJitOption:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":416
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUjit_option.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_5__reduce_cython__(PyObject *__pyx_v_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_7runtime_19_HelperCUjit_option_4__reduce_cython__, "_HelperCUjit_option.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19_HelperCUjit_option_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperCUjit_option_4__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_5__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_4__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUjit_option.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_7__setstate_cython__(PyObject *__pyx_v_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_7runtime_19_HelperCUjit_option_6__setstate_cython__, "_HelperCUjit_option.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19_HelperCUjit_option_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperCUjit_option_6__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_7__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCUjit_option.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_6__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19_HelperCUjit_option_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUjit_option.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":421
 * 
 * cdef class _HelperCudaJitOption:
 *     def __cinit__(self, attr, init_value):             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if self._attr in (cyruntime.cudaJitOption.cudaJitMaxRegisters,
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_init_value = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_init_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 421, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 421, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 421, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 421, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, i); __PYX_ERR(1, 421, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 421, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 421, __pyx_L3_error)
    }
    __pyx_v_attr = values[0];
    __pyx_v_init_value = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, __pyx_nargs); __PYX_ERR(1, 421, __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.runtime._HelperCudaJitOption.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *)__pyx_v_self), __pyx_v_attr, __pyx_v_init_value);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaJitOption __pyx_t_2;
  unsigned int __pyx_t_3;
  float __pyx_t_4;
  char *__pyx_t_5;
  enum cudaJit_Fallback __pyx_t_6;
  int __pyx_t_7;
  enum cudaJit_CacheMode __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  size_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":422
 * cdef class _HelperCudaJitOption:
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value             # <<<<<<<<<<<<<<
 *         if self._attr in (cyruntime.cudaJitOption.cudaJitMaxRegisters,
 *                           cyruntime.cudaJitOption.cudaJitThreadsPerBlock,
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaJitOption)__Pyx_PyLong_As_enum__cudaJitOption(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->_attr = __pyx_t_2;

  /* "cuda/bindings/_lib/utils.pxi":423
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value
 *         if self._attr in (cyruntime.cudaJitOption.cudaJitMaxRegisters,             # <<<<<<<<<<<<<<
 *                           cyruntime.cudaJitOption.cudaJitThreadsPerBlock,
 *                           cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes,
*/
  switch (__pyx_v_self->_attr) {
    case cudaJitMaxRegisters:
    case cudaJitThreadsPerBlock:

    /* "cuda/bindings/_lib/utils.pxi":424
 *         self._attr = attr.value
 *         if self._attr in (cyruntime.cudaJitOption.cudaJitMaxRegisters,
 *                           cyruntime.cudaJitOption.cudaJitThreadsPerBlock,             # <<<<<<<<<<<<<<
 *                           cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes,
 *                           cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes,
*/
    case cudaJitInfoLogBufferSizeBytes:

    /* "cuda/bindings/_lib/utils.pxi":425
 *         if self._attr in (cyruntime.cudaJitOption.cudaJitMaxRegisters,
 *                           cyruntime.cudaJitOption.cudaJitThreadsPerBlock,
 *                           cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes,             # <<<<<<<<<<<<<<
 *                           cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes,
 *                           cyruntime.cudaJitOption.cudaJitOptimizationLevel,
*/
    case cudaJitErrorLogBufferSizeBytes:

    /* "cuda/bindings/_lib/utils.pxi":426
 *                           cyruntime.cudaJitOption.cudaJitThreadsPerBlock,
 *                           cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes,
 *                           cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes,             # <<<<<<<<<<<<<<
 *                           cyruntime.cudaJitOption.cudaJitOptimizationLevel,
 *                           cyruntime.cudaJitOption.cudaJitMinCtaPerSm,):
*/
    case cudaJitOptimizationLevel:

    /* "cuda/bindings/_lib/utils.pxi":427
 *                           cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes,
 *                           cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes,
 *                           cyruntime.cudaJitOption.cudaJitOptimizationLevel,             # <<<<<<<<<<<<<<
 *                           cyruntime.cudaJitOption.cudaJitMinCtaPerSm,):
 *             self._uint = init_value
*/
    case cudaJitMinCtaPerSm:

    /* "cuda/bindings/_lib/utils.pxi":429
 *                           cyruntime.cudaJitOption.cudaJitOptimizationLevel,
 *                           cyruntime.cudaJitOption.cudaJitMinCtaPerSm,):
 *             self._uint = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._uint
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitWallTime,):
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_init_value); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 429, __pyx_L1_error)
    __pyx_v_self->_uint = __pyx_t_3;

    /* "cuda/bindings/_lib/utils.pxi":430
 *                           cyruntime.cudaJitOption.cudaJitMinCtaPerSm,):
 *             self._uint = init_value
 *             self._cptr = <void*><void_ptr>self._uint             # <<<<<<<<<<<<<<
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitWallTime,):
 *             self._float = init_value
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_uint));

    /* "cuda/bindings/_lib/utils.pxi":423
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value
 *         if self._attr in (cyruntime.cudaJitOption.cudaJitMaxRegisters,             # <<<<<<<<<<<<<<
 *                           cyruntime.cudaJitOption.cudaJitThreadsPerBlock,
 *                           cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes,
*/
    break;
    case cudaJitWallTime:

    /* "cuda/bindings/_lib/utils.pxi":432
 *             self._cptr = <void*><void_ptr>self._uint
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitWallTime,):
 *             self._float = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._float
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitInfoLogBuffer,
*/
    __pyx_t_4 = __Pyx_PyFloat_AsFloat(__pyx_v_init_value); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(1, 432, __pyx_L1_error)
    __pyx_v_self->_float = __pyx_t_4;

    /* "cuda/bindings/_lib/utils.pxi":433
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitWallTime,):
 *             self._float = init_value
 *             self._cptr = <void*><void_ptr>self._float             # <<<<<<<<<<<<<<
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitInfoLogBuffer,
 *                             cyruntime.cudaJitOption.cudaJitErrorLogBuffer):
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_float));

    /* "cuda/bindings/_lib/utils.pxi":431
 *             self._uint = init_value
 *             self._cptr = <void*><void_ptr>self._uint
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitWallTime,):             # <<<<<<<<<<<<<<
 *             self._float = init_value
 *             self._cptr = <void*><void_ptr>self._float
*/
    break;
    case cudaJitInfoLogBuffer:

    /* "cuda/bindings/_lib/utils.pxi":434
 *             self._float = init_value
 *             self._cptr = <void*><void_ptr>self._float
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitInfoLogBuffer,             # <<<<<<<<<<<<<<
 *                             cyruntime.cudaJitOption.cudaJitErrorLogBuffer):
 *             self._charstar = init_value
*/
    case cudaJitErrorLogBuffer:

    /* "cuda/bindings/_lib/utils.pxi":436
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitInfoLogBuffer,
 *                             cyruntime.cudaJitOption.cudaJitErrorLogBuffer):
 *             self._charstar = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._charstar
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitFallbackStrategy,):
*/
    __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_init_value); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(1, 436, __pyx_L1_error)
    __pyx_v_self->_charstar = __pyx_t_5;

    /* "cuda/bindings/_lib/utils.pxi":437
 *                             cyruntime.cudaJitOption.cudaJitErrorLogBuffer):
 *             self._charstar = init_value
 *             self._cptr = <void*><void_ptr>self._charstar             # <<<<<<<<<<<<<<
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitFallbackStrategy,):
 *             self._fallback = init_value.value
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_charstar));

    /* "cuda/bindings/_lib/utils.pxi":434
 *             self._float = init_value
 *             self._cptr = <void*><void_ptr>self._float
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitInfoLogBuffer,             # <<<<<<<<<<<<<<
 *                             cyruntime.cudaJitOption.cudaJitErrorLogBuffer):
 *             self._charstar = init_value
*/
    break;
    case cudaJitFallbackStrategy:

    /* "cuda/bindings/_lib/utils.pxi":439
 *             self._cptr = <void*><void_ptr>self._charstar
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitFallbackStrategy,):
 *             self._fallback = init_value.value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._fallback
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitGenerateDebugInfo,
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_init_value, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = ((enum cudaJit_Fallback)__Pyx_PyLong_As_enum__cudaJit_Fallback(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 439, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_fallback = __pyx_t_6;

    /* "cuda/bindings/_lib/utils.pxi":440
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitFallbackStrategy,):
 *             self._fallback = init_value.value
 *             self._cptr = <void*><void_ptr>self._fallback             # <<<<<<<<<<<<<<
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitGenerateDebugInfo,
 *                             cyruntime.cudaJitOption.cudaJitLogVerbose,
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_fallback));

    /* "cuda/bindings/_lib/utils.pxi":438
 *             self._charstar = init_value
 *             self._cptr = <void*><void_ptr>self._charstar
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitFallbackStrategy,):             # <<<<<<<<<<<<<<
 *             self._fallback = init_value.value
 *             self._cptr = <void*><void_ptr>self._fallback
*/
    break;
    case cudaJitGenerateDebugInfo:

    /* "cuda/bindings/_lib/utils.pxi":441
 *             self._fallback = init_value.value
 *             self._cptr = <void*><void_ptr>self._fallback
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitGenerateDebugInfo,             # <<<<<<<<<<<<<<
 *                             cyruntime.cudaJitOption.cudaJitLogVerbose,
 *                             cyruntime.cudaJitOption.cudaJitGenerateLineInfo,
*/
    case cudaJitLogVerbose:

    /* "cuda/bindings/_lib/utils.pxi":442
 *             self._cptr = <void*><void_ptr>self._fallback
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitGenerateDebugInfo,
 *                             cyruntime.cudaJitOption.cudaJitLogVerbose,             # <<<<<<<<<<<<<<
 *                             cyruntime.cudaJitOption.cudaJitGenerateLineInfo,
 *                             cyruntime.cudaJitOption.cudaJitPositionIndependentCode,
*/
    case cudaJitGenerateLineInfo:

    /* "cuda/bindings/_lib/utils.pxi":443
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitGenerateDebugInfo,
 *                             cyruntime.cudaJitOption.cudaJitLogVerbose,
 *                             cyruntime.cudaJitOption.cudaJitGenerateLineInfo,             # <<<<<<<<<<<<<<
 *                             cyruntime.cudaJitOption.cudaJitPositionIndependentCode,
 *                             cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock,
*/
    case cudaJitPositionIndependentCode:

    /* "cuda/bindings/_lib/utils.pxi":444
 *                             cyruntime.cudaJitOption.cudaJitLogVerbose,
 *                             cyruntime.cudaJitOption.cudaJitGenerateLineInfo,
 *                             cyruntime.cudaJitOption.cudaJitPositionIndependentCode,             # <<<<<<<<<<<<<<
 *                             cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock,
 *                             cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues,):
*/
    case cudaJitMaxThreadsPerBlock:

    /* "cuda/bindings/_lib/utils.pxi":445
 *                             cyruntime.cudaJitOption.cudaJitGenerateLineInfo,
 *                             cyruntime.cudaJitOption.cudaJitPositionIndependentCode,
 *                             cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock,             # <<<<<<<<<<<<<<
 *                             cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues,):
 *             self._int = init_value
*/
    case cudaJitOverrideDirectiveValues:

    /* "cuda/bindings/_lib/utils.pxi":447
 *                             cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock,
 *                             cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues,):
 *             self._int = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._int
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitCacheMode,):
*/
    __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_v_init_value); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 447, __pyx_L1_error)
    __pyx_v_self->_int = __pyx_t_7;

    /* "cuda/bindings/_lib/utils.pxi":448
 *                             cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues,):
 *             self._int = init_value
 *             self._cptr = <void*><void_ptr>self._int             # <<<<<<<<<<<<<<
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitCacheMode,):
 *             self._cacheMode = init_value.value
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_int));

    /* "cuda/bindings/_lib/utils.pxi":441
 *             self._fallback = init_value.value
 *             self._cptr = <void*><void_ptr>self._fallback
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitGenerateDebugInfo,             # <<<<<<<<<<<<<<
 *                             cyruntime.cudaJitOption.cudaJitLogVerbose,
 *                             cyruntime.cudaJitOption.cudaJitGenerateLineInfo,
*/
    break;
    case cudaJitCacheMode:

    /* "cuda/bindings/_lib/utils.pxi":450
 *             self._cptr = <void*><void_ptr>self._int
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitCacheMode,):
 *             self._cacheMode = init_value.value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._cacheMode
 *         else:
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_init_value, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = ((enum cudaJit_CacheMode)__Pyx_PyLong_As_enum__cudaJit_CacheMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 450, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_cacheMode = __pyx_t_8;

    /* "cuda/bindings/_lib/utils.pxi":451
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitCacheMode,):
 *             self._cacheMode = init_value.value
 *             self._cptr = <void*><void_ptr>self._cacheMode             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cacheMode));

    /* "cuda/bindings/_lib/utils.pxi":449
 *             self._int = init_value
 *             self._cptr = <void*><void_ptr>self._int
 *         elif self._attr in (cyruntime.cudaJitOption.cudaJitCacheMode,):             # <<<<<<<<<<<<<<
 *             self._cacheMode = init_value.value
 *             self._cptr = <void*><void_ptr>self._cacheMode
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":453
 *             self._cptr = <void*><void_ptr>self._cacheMode
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_9 = NULL;
    __pyx_t_11 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_11);
    __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_13 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_12};
      __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_13, (2-__pyx_t_13) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 453, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
    }
    __pyx_t_13 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_10};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_13, (2-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 453, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 453, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":421
 * 
 * cdef class _HelperCudaJitOption:
 *     def __cinit__(self, attr, init_value):             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if self._attr in (cyruntime.cudaJitOption.cudaJitMaxRegisters,
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCudaJitOption.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":455
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":458
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":460
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCUlibraryOption:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":458
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCudaJitOption.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_5__reduce_cython__(PyObject *__pyx_v_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_7runtime_20_HelperCudaJitOption_4__reduce_cython__, "_HelperCudaJitOption.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20_HelperCudaJitOption_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_5__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCudaJitOption.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_7__setstate_cython__(PyObject *__pyx_v_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_7runtime_20_HelperCudaJitOption_6__setstate_cython__, "_HelperCudaJitOption.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20_HelperCudaJitOption_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20_HelperCudaJitOption_6__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_7__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCudaJitOption.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_6__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20_HelperCudaJitOption_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCudaJitOption.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":463
 * 
 * cdef class _HelperCUlibraryOption:
 *     def __cinit__(self, attr, init_value):             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if False:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_init_value = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_init_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 463, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 463, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 463, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 463, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, i); __PYX_ERR(1, 463, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 463, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 463, __pyx_L3_error)
    }
    __pyx_v_attr = values[0];
    __pyx_v_init_value = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, __pyx_nargs); __PYX_ERR(1, 463, __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.runtime._HelperCUlibraryOption.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *)__pyx_v_self), __pyx_v_attr, __pyx_v_init_value);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum CUlibraryOption_enum __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  unsigned int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":464
 * cdef class _HelperCUlibraryOption:
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value             # <<<<<<<<<<<<<<
 *         if False:
 *             pass
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum CUlibraryOption_enum)__Pyx_PyLong_As_enum__CUlibraryOption_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->_attr = __pyx_t_2;

  /* "cuda/bindings/_lib/utils.pxi":465
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value
 *         if False:             # <<<<<<<<<<<<<<
 *             pass
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE,):
*/
  switch (__pyx_v_self->_attr) {
    case CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE:

    /* "cuda/bindings/_lib/utils.pxi":468
 *             pass
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE,):
 *             self._cptr = <void*><void_ptr>init_value.getPtr()             # <<<<<<<<<<<<<<
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_BINARY_IS_PRESERVED,):
 *             self._uint = init_value
*/
    __pyx_t_3 = __pyx_v_init_value;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 468, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 468, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

    /* "cuda/bindings/_lib/utils.pxi":467
 *         if False:
 *             pass
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE,):             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_BINARY_IS_PRESERVED,):
*/
    break;
    case CU_LIBRARY_BINARY_IS_PRESERVED:

    /* "cuda/bindings/_lib/utils.pxi":470
 *             self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_BINARY_IS_PRESERVED,):
 *             self._uint = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._uint
 *         else:
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_int(__pyx_v_init_value); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 470, __pyx_L1_error)
    __pyx_v_self->_uint = __pyx_t_6;

    /* "cuda/bindings/_lib/utils.pxi":471
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_BINARY_IS_PRESERVED,):
 *             self._uint = init_value
 *             self._cptr = <void*><void_ptr>self._uint             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_uint));

    /* "cuda/bindings/_lib/utils.pxi":469
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE,):
 *             self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_BINARY_IS_PRESERVED,):             # <<<<<<<<<<<<<<
 *             self._uint = init_value
 *             self._cptr = <void*><void_ptr>self._uint
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":473
 *             self._cptr = <void*><void_ptr>self._uint
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_3 = NULL;
    __pyx_t_8 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 473, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_9};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 473, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":463
 * 
 * cdef class _HelperCUlibraryOption:
 *     def __cinit__(self, attr, init_value):             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if False:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUlibraryOption.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":475
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":478
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":480
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCudaLibraryOption:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":478
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUlibraryOption.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_5__reduce_cython__(PyObject *__pyx_v_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_7runtime_22_HelperCUlibraryOption_4__reduce_cython__, "_HelperCUlibraryOption.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_5__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUlibraryOption.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_7__setstate_cython__(PyObject *__pyx_v_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_7runtime_22_HelperCUlibraryOption_6__setstate_cython__, "_HelperCUlibraryOption.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_6__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_7__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCUlibraryOption.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_6__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUlibraryOption.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":483
 * 
 * cdef class _HelperCudaLibraryOption:
 *     def __cinit__(self, attr, init_value):             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if False:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_init_value = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_init_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 483, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 483, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 483, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 483, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, i); __PYX_ERR(1, 483, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 483, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 483, __pyx_L3_error)
    }
    __pyx_v_attr = values[0];
    __pyx_v_init_value = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, __pyx_nargs); __PYX_ERR(1, 483, __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.runtime._HelperCudaLibraryOption.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *)__pyx_v_self), __pyx_v_attr, __pyx_v_init_value);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaLibraryOption __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  unsigned int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":484
 * cdef class _HelperCudaLibraryOption:
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value             # <<<<<<<<<<<<<<
 *         if False:
 *             pass
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaLibraryOption)__Pyx_PyLong_As_enum__cudaLibraryOption(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 484, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->_attr = __pyx_t_2;

  /* "cuda/bindings/_lib/utils.pxi":485
 *     def __cinit__(self, attr, init_value):
 *         self._attr = attr.value
 *         if False:             # <<<<<<<<<<<<<<
 *             pass
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable,):
*/
  switch (__pyx_v_self->_attr) {
    case cudaLibraryHostUniversalFunctionAndDataTable:

    /* "cuda/bindings/_lib/utils.pxi":488
 *             pass
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable,):
 *             self._cptr = <void*><void_ptr>init_value.getPtr()             # <<<<<<<<<<<<<<
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved,):
 *             self._uint = init_value
*/
    __pyx_t_3 = __pyx_v_init_value;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 488, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 488, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

    /* "cuda/bindings/_lib/utils.pxi":487
 *         if False:
 *             pass
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable,):             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved,):
*/
    break;
    case cudaLibraryBinaryIsPreserved:

    /* "cuda/bindings/_lib/utils.pxi":490
 *             self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved,):
 *             self._uint = init_value             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._uint
 *         else:
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_int(__pyx_v_init_value); if (unlikely((__pyx_t_6 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 490, __pyx_L1_error)
    __pyx_v_self->_uint = __pyx_t_6;

    /* "cuda/bindings/_lib/utils.pxi":491
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved,):
 *             self._uint = init_value
 *             self._cptr = <void*><void_ptr>self._uint             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_uint));

    /* "cuda/bindings/_lib/utils.pxi":489
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable,):
 *             self._cptr = <void*><void_ptr>init_value.getPtr()
 *         elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved,):             # <<<<<<<<<<<<<<
 *             self._uint = init_value
 *             self._cptr = <void*><void_ptr>self._uint
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":493
 *             self._cptr = <void*><void_ptr>self._uint
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_3 = NULL;
    __pyx_t_8 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_9};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 493, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 493, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 493, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":483
 * 
 * cdef class _HelperCudaLibraryOption:
 *     def __cinit__(self, attr, init_value):             # <<<<<<<<<<<<<<
 *         self._attr = attr.value
 *         if False:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCudaLibraryOption.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":495
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":498
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":500
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCUmemAllocationHandleType:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":498
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCudaLibraryOption.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_5__reduce_cython__(PyObject *__pyx_v_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_7runtime_24_HelperCudaLibraryOption_4__reduce_cython__, "_HelperCudaLibraryOption.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_5__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCudaLibraryOption.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_7__setstate_cython__(PyObject *__pyx_v_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_7runtime_24_HelperCudaLibraryOption_6__setstate_cython__, "_HelperCudaLibraryOption.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_6__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_7__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCudaLibraryOption.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_6__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCudaLibraryOption.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":503
 * 
 * cdef class _HelperCUmemAllocationHandleType:
 *     def __cinit__(self, attr):             # <<<<<<<<<<<<<<
 *         self._type = attr.value
 *         if False:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 503, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 503, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 503, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(1, 503, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 503, __pyx_L3_error)
    }
    __pyx_v_attr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 503, __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.runtime._HelperCUmemAllocationHandleType.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)__pyx_v_self), __pyx_v_attr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self, PyObject *__pyx_v_attr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum CUmemAllocationHandleType_enum __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":504
 * cdef class _HelperCUmemAllocationHandleType:
 *     def __cinit__(self, attr):
 *         self._type = attr.value             # <<<<<<<<<<<<<<
 *         if False:
 *             pass
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum CUmemAllocationHandleType_enum)__Pyx_PyLong_As_enum__CUmemAllocationHandleType_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 504, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->_type = __pyx_t_2;

  /* "cuda/bindings/_lib/utils.pxi":505
 *     def __cinit__(self, attr):
 *         self._type = attr.value
 *         if False:             # <<<<<<<<<<<<<<
 *             pass
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,):
*/
  switch (__pyx_v_self->_type) {
    case CU_MEM_HANDLE_TYPE_NONE:

    /* "cuda/bindings/_lib/utils.pxi":508
 *             pass
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,):
 *             self._cptr = <void*>&self._int             # <<<<<<<<<<<<<<
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):
 *             self._cptr = <void*>&self._int
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_int));

    /* "cuda/bindings/_lib/utils.pxi":507
 *         if False:
 *             pass
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,):             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):
*/
    break;
    case CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR:

    /* "cuda/bindings/_lib/utils.pxi":510
 *             self._cptr = <void*>&self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):
 *             self._cptr = <void*>&self._int             # <<<<<<<<<<<<<<
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):
 *             self._cptr = <void*>&self._handle
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_int));

    /* "cuda/bindings/_lib/utils.pxi":509
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,):
 *             self._cptr = <void*>&self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):
*/
    break;
    case CU_MEM_HANDLE_TYPE_WIN32:

    /* "cuda/bindings/_lib/utils.pxi":512
 *             self._cptr = <void*>&self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):
 *             self._cptr = <void*>&self._handle             # <<<<<<<<<<<<<<
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):
 *             self._cptr = <void*>&self._d3dkmt_handle
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_handle));

    /* "cuda/bindings/_lib/utils.pxi":511
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):
 *             self._cptr = <void*>&self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):
*/
    break;
    case CU_MEM_HANDLE_TYPE_WIN32_KMT:

    /* "cuda/bindings/_lib/utils.pxi":514
 *             self._cptr = <void*>&self._handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):
 *             self._cptr = <void*>&self._d3dkmt_handle             # <<<<<<<<<<<<<<
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):
 *             self._mem_fabric_handle = _driver["CUmemFabricHandle"]()
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_d3dkmt_handle));

    /* "cuda/bindings/_lib/utils.pxi":513
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):
 *             self._cptr = <void*>&self._handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):             # <<<<<<<<<<<<<<
 *             self._cptr = <void*>&self._d3dkmt_handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):
*/
    break;
    case CU_MEM_HANDLE_TYPE_FABRIC:

    /* "cuda/bindings/_lib/utils.pxi":516
 *             self._cptr = <void*>&self._d3dkmt_handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):
 *             self._mem_fabric_handle = _driver["CUmemFabricHandle"]()             # <<<<<<<<<<<<<<
 *             self._cptr = <void*><void_ptr>self._mem_fabric_handle.getPtr()
 *         else:
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_CUmemFabricHandle); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_1 = __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_1)) __PYX_ERR(1, 516, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle))))) __PYX_ERR(1, 516, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF((PyObject *)__pyx_v_self->_mem_fabric_handle);
    __Pyx_DECREF((PyObject *)__pyx_v_self->_mem_fabric_handle);
    __pyx_v_self->_mem_fabric_handle = ((struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "cuda/bindings/_lib/utils.pxi":517
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):
 *             self._mem_fabric_handle = _driver["CUmemFabricHandle"]()
 *             self._cptr = <void*><void_ptr>self._mem_fabric_handle.getPtr()             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self->_mem_fabric_handle);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 517, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_7 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 517, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_7));

    /* "cuda/bindings/_lib/utils.pxi":515
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):
 *             self._cptr = <void*>&self._d3dkmt_handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):             # <<<<<<<<<<<<<<
 *             self._mem_fabric_handle = _driver["CUmemFabricHandle"]()
 *             self._cptr = <void*><void_ptr>self._mem_fabric_handle.getPtr()
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":519
 *             self._cptr = <void*><void_ptr>self._mem_fabric_handle.getPtr()
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_5 = NULL;
    __pyx_t_4 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 519, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 519, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 519, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":503
 * 
 * cdef class _HelperCUmemAllocationHandleType:
 *     def __cinit__(self, attr):             # <<<<<<<<<<<<<<
 *         self._type = attr.value
 *         if False:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemAllocationHandleType.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":521
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":524
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":526
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 *     def pyObj(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":524
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemAllocationHandleType.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":528
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         if False:
 *             pass
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_5pyObj(PyObject *__pyx_v_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_7runtime_32_HelperCUmemAllocationHandleType_4pyObj, "_HelperCUmemAllocationHandleType.pyObj(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_5pyObj = {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4pyObj};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_5pyObj(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pyObj (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pyObj", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pyObj", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4pyObj(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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_RefNannySetupContext("pyObj", 0);

  /* "cuda/bindings/_lib/utils.pxi":529
 * 
 *     def pyObj(self):
 *         if False:             # <<<<<<<<<<<<<<
 *             pass
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,):
*/
  switch (__pyx_v_self->_type) {
    case CU_MEM_HANDLE_TYPE_NONE:

    /* "cuda/bindings/_lib/utils.pxi":532
 *             pass
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,):
 *             return self._int             # <<<<<<<<<<<<<<
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):
 *             return self._int
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->_int); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":531
 *         if False:
 *             pass
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,):             # <<<<<<<<<<<<<<
 *             return self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):
*/
    break;
    case CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR:

    /* "cuda/bindings/_lib/utils.pxi":534
 *             return self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):
 *             return self._int             # <<<<<<<<<<<<<<
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):
 *             return <void_ptr>self._handle
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->_int); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":533
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,):
 *             return self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):             # <<<<<<<<<<<<<<
 *             return self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):
*/
    break;
    case CU_MEM_HANDLE_TYPE_WIN32:

    /* "cuda/bindings/_lib/utils.pxi":536
 *             return self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):
 *             return <void_ptr>self._handle             # <<<<<<<<<<<<<<
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):
 *             return self._d3dkmt_handle
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":535
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,):
 *             return self._int
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):             # <<<<<<<<<<<<<<
 *             return <void_ptr>self._handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):
*/
    break;
    case CU_MEM_HANDLE_TYPE_WIN32_KMT:

    /* "cuda/bindings/_lib/utils.pxi":538
 *             return <void_ptr>self._handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):
 *             return self._d3dkmt_handle             # <<<<<<<<<<<<<<
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):
 *             return self._mem_fabric_handle
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(__pyx_v_self->_d3dkmt_handle); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":537
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,):
 *             return <void_ptr>self._handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):             # <<<<<<<<<<<<<<
 *             return self._d3dkmt_handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):
*/
    break;
    case CU_MEM_HANDLE_TYPE_FABRIC:

    /* "cuda/bindings/_lib/utils.pxi":540
 *             return self._d3dkmt_handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):
 *             return self._mem_fabric_handle             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(self._type))
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_self->_mem_fabric_handle);
    __pyx_r = ((PyObject *)__pyx_v_self->_mem_fabric_handle);
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":539
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,):
 *             return self._d3dkmt_handle
 *         elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,):             # <<<<<<<<<<<<<<
 *             return self._mem_fabric_handle
 *         else:
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":542
 *             return self._mem_fabric_handle
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(self._type))             # <<<<<<<<<<<<<<
 * 
 * cdef class _InputVoidPtrPtrHelper:
*/
    __pyx_t_2 = NULL;
    __pyx_t_4 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyLong_From_enum__CUmemAllocationHandleType_enum(__pyx_v_self->_type); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 542, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 542, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 542, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 542, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":528
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         if False:
 *             pass
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemAllocationHandleType.pyObj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_7__reduce_cython__(PyObject *__pyx_v_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_7runtime_32_HelperCUmemAllocationHandleType_6__reduce_cython__, "_HelperCUmemAllocationHandleType.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_7__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_6__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_7__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_6__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemAllocationHandleType.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_9__setstate_cython__(PyObject *__pyx_v_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_7runtime_32_HelperCUmemAllocationHandleType_8__setstate_cython__, "_HelperCUmemAllocationHandleType.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_9__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_8__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_9__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCUmemAllocationHandleType.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_8__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUmemAllocationHandleType.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":545
 * 
 * cdef class _InputVoidPtrPtrHelper:
 *     def __cinit__(self, lst):             # <<<<<<<<<<<<<<
 *         self._cptr = <void**>_callocWrapper(len(lst), sizeof(void*))
 *         for idx in range(len(lst)):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_lst = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_lst,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 545, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 545, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 545, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(1, 545, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 545, __pyx_L3_error)
    }
    __pyx_v_lst = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 545, __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.runtime._InputVoidPtrPtrHelper.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_v_self), __pyx_v_lst);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self, PyObject *__pyx_v_lst) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  void *__pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":546
 * cdef class _InputVoidPtrPtrHelper:
 *     def __cinit__(self, lst):
 *         self._cptr = <void**>_callocWrapper(len(lst), sizeof(void*))             # <<<<<<<<<<<<<<
 *         for idx in range(len(lst)):
 *             self._cptr[idx] = <void*><void_ptr>lst[idx].cptr
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_lst); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 546, __pyx_L1_error)
  __pyx_t_2 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(void *))); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_f_4cuda_8bindings_7runtime__callocWrapper(__pyx_t_2, __pyx_t_3); if (unlikely(__pyx_t_4 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(1, 546, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_self->_cptr = ((void **)__pyx_t_4);

  /* "cuda/bindings/_lib/utils.pxi":547
 *     def __cinit__(self, lst):
 *         self._cptr = <void**>_callocWrapper(len(lst), sizeof(void*))
 *         for idx in range(len(lst)):             # <<<<<<<<<<<<<<
 *             self._cptr[idx] = <void*><void_ptr>lst[idx].cptr
 * 
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_lst); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 547, __pyx_L1_error)
  __pyx_t_5 = __pyx_t_1;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_idx = __pyx_t_6;

    /* "cuda/bindings/_lib/utils.pxi":548
 *         self._cptr = <void**>_callocWrapper(len(lst), sizeof(void*))
 *         for idx in range(len(lst)):
 *             self._cptr[idx] = <void*><void_ptr>lst[idx].cptr             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_lst, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_7 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 548, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    (__pyx_v_self->_cptr[__pyx_v_idx]) = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_7));
  }

  /* "cuda/bindings/_lib/utils.pxi":545
 * 
 * cdef class _InputVoidPtrPtrHelper:
 *     def __cinit__(self, lst):             # <<<<<<<<<<<<<<
 *         self._cptr = <void**>_callocWrapper(len(lst), sizeof(void*))
 *         for idx in range(len(lst)):
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime._InputVoidPtrPtrHelper.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":550
 *             self._cptr[idx] = <void*><void_ptr>lst[idx].cptr
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         free(self._cptr)
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_2__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self) {

  /* "cuda/bindings/_lib/utils.pxi":551
 * 
 *     def __dealloc__(self):
 *         free(self._cptr)             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  free(__pyx_v_self->_cptr);

  /* "cuda/bindings/_lib/utils.pxi":550
 *             self._cptr[idx] = <void*><void_ptr>lst[idx].cptr
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         free(self._cptr)
 * 
*/

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":553
 *         free(self._cptr)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":555
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class _HelperCUcoredumpSettings:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":553
 *         free(self._cptr)
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._InputVoidPtrPtrHelper.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_5__reduce_cython__(PyObject *__pyx_v_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_7runtime_22_InputVoidPtrPtrHelper_4__reduce_cython__, "_InputVoidPtrPtrHelper.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_5__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_5__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._InputVoidPtrPtrHelper.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_7__setstate_cython__(PyObject *__pyx_v_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_7runtime_22_InputVoidPtrPtrHelper_6__setstate_cython__, "_InputVoidPtrPtrHelper.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_7__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_6__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_7__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._InputVoidPtrPtrHelper.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_6__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_6__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._InputVoidPtrPtrHelper.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":558
 * 
 * cdef class _HelperCUcoredumpSettings:
 *     def __cinit__(self, attr, init_value, is_getter=False):             # <<<<<<<<<<<<<<
 *         self._is_getter = is_getter
 *         self._attrib = attr.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_init_value = 0;
  PyObject *__pyx_v_is_getter = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_is_getter,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(1, 558, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 558, __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, "__cinit__", 0) < (0)) __PYX_ERR(1, 558, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, i); __PYX_ERR(1, 558, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 558, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 558, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_attr = values[0];
    __pyx_v_init_value = values[1];
    __pyx_v_is_getter = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, __pyx_nargs); __PYX_ERR(1, 558, __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.runtime._HelperCUcoredumpSettings.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *)__pyx_v_self), __pyx_v_attr, __pyx_v_init_value, __pyx_v_is_getter);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self, PyObject *__pyx_v_attr, PyObject *__pyx_v_init_value, PyObject *__pyx_v_is_getter) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  enum CUcoredumpSettings_enum __pyx_t_3;
  void *__pyx_t_4;
  char *__pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  size_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cuda/bindings/_lib/utils.pxi":559
 * cdef class _HelperCUcoredumpSettings:
 *     def __cinit__(self, attr, init_value, is_getter=False):
 *         self._is_getter = is_getter             # <<<<<<<<<<<<<<
 *         self._attrib = attr.value
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_is_getter); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 559, __pyx_L1_error)
  __pyx_v_self->_is_getter = __pyx_t_1;

  /* "cuda/bindings/_lib/utils.pxi":560
 *     def __cinit__(self, attr, init_value, is_getter=False):
 *         self._is_getter = is_getter
 *         self._attrib = attr.value             # <<<<<<<<<<<<<<
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((enum CUcoredumpSettings_enum)__Pyx_PyLong_As_enum__CUcoredumpSettings_enum(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 560, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->_attrib = __pyx_t_3;

  /* "cuda/bindings/_lib/utils.pxi":561
 *         self._is_getter = is_getter
 *         self._attrib = attr.value
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,             # <<<<<<<<<<<<<<
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             if self._is_getter:
*/
  switch (__pyx_v_self->_attrib) {
    case CU_COREDUMP_FILE:
    case CU_COREDUMP_PIPE:

    /* "cuda/bindings/_lib/utils.pxi":563
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._charstar = <char*>_callocWrapper(1024, 1)
 *                 self._cptr = <void*><void_ptr>self._charstar
*/
    if (__pyx_v_self->_is_getter) {

      /* "cuda/bindings/_lib/utils.pxi":564
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             if self._is_getter:
 *                 self._charstar = <char*>_callocWrapper(1024, 1)             # <<<<<<<<<<<<<<
 *                 self._cptr = <void*><void_ptr>self._charstar
 *                 self._size = 1024
*/
      __pyx_t_4 = __pyx_f_4cuda_8bindings_7runtime__callocWrapper(__pyx_mstate_global->__pyx_int_1024, __pyx_mstate_global->__pyx_int_1); if (unlikely(__pyx_t_4 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(1, 564, __pyx_L1_error)
      __pyx_v_self->_charstar = ((char *)__pyx_t_4);

      /* "cuda/bindings/_lib/utils.pxi":565
 *             if self._is_getter:
 *                 self._charstar = <char*>_callocWrapper(1024, 1)
 *                 self._cptr = <void*><void_ptr>self._charstar             # <<<<<<<<<<<<<<
 *                 self._size = 1024
 *             else:
*/
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_charstar));

      /* "cuda/bindings/_lib/utils.pxi":566
 *                 self._charstar = <char*>_callocWrapper(1024, 1)
 *                 self._cptr = <void*><void_ptr>self._charstar
 *                 self._size = 1024             # <<<<<<<<<<<<<<
 *             else:
 *                 self._charstar = init_value
*/
      __pyx_v_self->_size = 0x400;

      /* "cuda/bindings/_lib/utils.pxi":563
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             if self._is_getter:             # <<<<<<<<<<<<<<
 *                 self._charstar = <char*>_callocWrapper(1024, 1)
 *                 self._cptr = <void*><void_ptr>self._charstar
*/
      goto __pyx_L3;
    }

    /* "cuda/bindings/_lib/utils.pxi":568
 *                 self._size = 1024
 *             else:
 *                 self._charstar = init_value             # <<<<<<<<<<<<<<
 *                 self._cptr = <void*><void_ptr>self._charstar
 *                 self._size = len(init_value)
*/
    /*else*/ {
      __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_init_value); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(1, 568, __pyx_L1_error)
      __pyx_v_self->_charstar = __pyx_t_5;

      /* "cuda/bindings/_lib/utils.pxi":569
 *             else:
 *                 self._charstar = init_value
 *                 self._cptr = <void*><void_ptr>self._charstar             # <<<<<<<<<<<<<<
 *                 self._size = len(init_value)
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,
*/
      __pyx_v_self->_cptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_charstar));

      /* "cuda/bindings/_lib/utils.pxi":570
 *                 self._charstar = init_value
 *                 self._cptr = <void*><void_ptr>self._charstar
 *                 self._size = len(init_value)             # <<<<<<<<<<<<<<
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,
*/
      __pyx_t_6 = PyObject_Length(__pyx_v_init_value); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(1, 570, __pyx_L1_error)
      __pyx_v_self->_size = __pyx_t_6;
    }
    __pyx_L3:;

    /* "cuda/bindings/_lib/utils.pxi":561
 *         self._is_getter = is_getter
 *         self._attrib = attr.value
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,             # <<<<<<<<<<<<<<
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             if self._is_getter:
*/
    break;
    case CU_COREDUMP_ENABLE_ON_EXCEPTION:

    /* "cuda/bindings/_lib/utils.pxi":571
 *                 self._cptr = <void*><void_ptr>self._charstar
 *                 self._size = len(init_value)
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,             # <<<<<<<<<<<<<<
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
*/
    case CU_COREDUMP_TRIGGER_HOST:

    /* "cuda/bindings/_lib/utils.pxi":572
 *                 self._size = len(init_value)
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,             # <<<<<<<<<<<<<<
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,):
*/
    case CU_COREDUMP_LIGHTWEIGHT:

    /* "cuda/bindings/_lib/utils.pxi":573
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,             # <<<<<<<<<<<<<<
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,):
 *             if self._is_getter == False:
*/
    case CU_COREDUMP_ENABLE_USER_TRIGGER:

    /* "cuda/bindings/_lib/utils.pxi":575
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,):
 *             if self._is_getter == False:             # <<<<<<<<<<<<<<
 *                 self._bool = init_value
 * 
*/
    __pyx_t_1 = (__pyx_v_self->_is_getter == 0);
    if (__pyx_t_1) {

      /* "cuda/bindings/_lib/utils.pxi":576
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,):
 *             if self._is_getter == False:
 *                 self._bool = init_value             # <<<<<<<<<<<<<<
 * 
 *             self._cptr = <void*>&self._bool
*/
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_init_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 576, __pyx_L1_error)
      __pyx_v_self->_bool = __pyx_t_1;

      /* "cuda/bindings/_lib/utils.pxi":575
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,):
 *             if self._is_getter == False:             # <<<<<<<<<<<<<<
 *                 self._bool = init_value
 * 
*/
    }

    /* "cuda/bindings/_lib/utils.pxi":578
 *                 self._bool = init_value
 * 
 *             self._cptr = <void*>&self._bool             # <<<<<<<<<<<<<<
 *             self._size = 1
 *         else:
*/
    __pyx_v_self->_cptr = ((void *)(&__pyx_v_self->_bool));

    /* "cuda/bindings/_lib/utils.pxi":579
 * 
 *             self._cptr = <void*>&self._bool
 *             self._size = 1             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
*/
    __pyx_v_self->_size = 1;

    /* "cuda/bindings/_lib/utils.pxi":571
 *                 self._cptr = <void*><void_ptr>self._charstar
 *                 self._size = len(init_value)
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,             # <<<<<<<<<<<<<<
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":581
 *             self._size = 1
 *         else:
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_7 = NULL;
    __pyx_t_9 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute;
    __Pyx_INCREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_10};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 581, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_11 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_8};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 581, __pyx_L1_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(1, 581, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":558
 * 
 * cdef class _HelperCUcoredumpSettings:
 *     def __cinit__(self, attr, init_value, is_getter=False):             # <<<<<<<<<<<<<<
 *         self._is_getter = is_getter
 *         self._attrib = attr.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUcoredumpSettings.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":583
 *             raise TypeError('Unsupported attribute: {}'.format(attr.name))
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/_lib/utils.pxi":586
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4cptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4cptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4cptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4cptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/_lib/utils.pxi":588
 *     @property
 *     def cptr(self):
 *         return <void_ptr>self._cptr             # <<<<<<<<<<<<<<
 * 
 *     def size(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_cptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":586
 *         pass
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def cptr(self):
 *         return <void_ptr>self._cptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUcoredumpSettings.cptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":590
 *         return <void_ptr>self._cptr
 * 
 *     def size(self):             # <<<<<<<<<<<<<<
 *         return self._size
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_5size(PyObject *__pyx_v_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_7runtime_25_HelperCUcoredumpSettings_4size, "_HelperCUcoredumpSettings.size(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_5size = {"size", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_5size, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4size};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_5size(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("size (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("size", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("size", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4size(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4size(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_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("size", 0);

  /* "cuda/bindings/_lib/utils.pxi":591
 * 
 *     def size(self):
 *         return self._size             # <<<<<<<<<<<<<<
 * 
 *     def pyObj(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(__pyx_v_self->_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/_lib/utils.pxi":590
 *         return <void_ptr>self._cptr
 * 
 *     def size(self):             # <<<<<<<<<<<<<<
 *         return self._size
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUcoredumpSettings.size", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/_lib/utils.pxi":593
 *         return self._size
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_7pyObj(PyObject *__pyx_v_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_7runtime_25_HelperCUcoredumpSettings_6pyObj, "_HelperCUcoredumpSettings.pyObj(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_7pyObj = {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_7pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_6pyObj};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_7pyObj(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pyObj (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pyObj", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pyObj", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_6pyObj(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_6pyObj(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pyObj", 0);

  /* "cuda/bindings/_lib/utils.pxi":594
 * 
 *     def pyObj(self):
 *         assert(self._is_getter == True)             # <<<<<<<<<<<<<<
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_1 = (__pyx_v_self->_is_getter == 1);
    if (unlikely(!__pyx_t_1)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
      __PYX_ERR(1, 594, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(1, 594, __pyx_L1_error)
  #endif

  /* "cuda/bindings/_lib/utils.pxi":595
 *     def pyObj(self):
 *         assert(self._is_getter == True)
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,             # <<<<<<<<<<<<<<
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             return self._charstar
*/
  switch (__pyx_v_self->_attrib) {
    case CU_COREDUMP_FILE:
    case CU_COREDUMP_PIPE:

    /* "cuda/bindings/_lib/utils.pxi":597
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             return self._charstar             # <<<<<<<<<<<<<<
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_self->_charstar); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":595
 *     def pyObj(self):
 *         assert(self._is_getter == True)
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,             # <<<<<<<<<<<<<<
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             return self._charstar
*/
    break;
    case CU_COREDUMP_ENABLE_ON_EXCEPTION:

    /* "cuda/bindings/_lib/utils.pxi":598
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             return self._charstar
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,             # <<<<<<<<<<<<<<
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
*/
    case CU_COREDUMP_TRIGGER_HOST:

    /* "cuda/bindings/_lib/utils.pxi":599
 *             return self._charstar
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,             # <<<<<<<<<<<<<<
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,):
*/
    case CU_COREDUMP_LIGHTWEIGHT:

    /* "cuda/bindings/_lib/utils.pxi":600
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,             # <<<<<<<<<<<<<<
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,):
 *             return self._bool
*/
    case CU_COREDUMP_ENABLE_USER_TRIGGER:

    /* "cuda/bindings/_lib/utils.pxi":602
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,):
 *             return self._bool             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attrib))
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->_bool); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 602, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/_lib/utils.pxi":598
 *                           cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,):
 *             return self._charstar
 *         elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,             # <<<<<<<<<<<<<<
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,
 *                             cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,
*/
    break;
    default:

    /* "cuda/bindings/_lib/utils.pxi":604
 *             return self._bool
 *         else:
 *             raise TypeError('Unsupported attribute value: {}'.format(self._attrib))             # <<<<<<<<<<<<<<
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = __pyx_mstate_global->__pyx_kp_u_Unsupported_attribute_value;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyLong_From_enum__CUcoredumpSettings_enum(__pyx_v_self->_attrib); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 604, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__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(1, 604, __pyx_L1_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(1, 604, __pyx_L1_error)
    break;
  }

  /* "cuda/bindings/_lib/utils.pxi":593
 *         return self._size
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUcoredumpSettings.pyObj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_9__reduce_cython__(PyObject *__pyx_v_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_7runtime_25_HelperCUcoredumpSettings_8__reduce_cython__, "_HelperCUcoredumpSettings.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_9__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_9__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_8__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_9__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_8__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUcoredumpSettings.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_11__setstate_cython__(PyObject *__pyx_v_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_7runtime_25_HelperCUcoredumpSettings_10__setstate_cython__, "_HelperCUcoredumpSettings.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_11__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_11__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_10__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_11__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime._HelperCUcoredumpSettings.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_10__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime._HelperCUcoredumpSettings.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4417
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4417, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4417, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4417, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4417, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4417, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4417, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4417, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4417, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4417, __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.runtime.cudaDevResourceDesc_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4418
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaDevResourceDesc_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4419
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaDevResourceDesc_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4420
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaDevResourceDesc_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevResourceDesc_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaDevResourceDesc_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4418
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaDevResourceDesc_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4422
 *             self._pvt_ptr[0] = <cyruntime.cudaDevResourceDesc_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevResourceDesc_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaDevResourceDesc_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4417
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4423
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevResourceDesc_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4425
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaDevResourceDesc_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4426
 *         pass
 *     def __repr__(self):
 *         return '<cudaDevResourceDesc_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4426, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaDevResourceDesc_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4425
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaDevResourceDesc_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceDesc_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4427
 *     def __repr__(self):
 *         return '<cudaDevResourceDesc_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4428
 *         return '<cudaDevResourceDesc_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaDevResourceDesc_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4428, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4427
 *     def __repr__(self):
 *         return '<cudaDevResourceDesc_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceDesc_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4429
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaDevResourceDesc_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4430
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaDevResourceDesc_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaDevResourceDesc_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4431
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaDevResourceDesc_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaDevResourceDesc_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4430
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaDevResourceDesc_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaDevResourceDesc_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4432
 *         if not isinstance(other, cudaDevResourceDesc_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaDevResourceDesc_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4429
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaDevResourceDesc_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceDesc_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4433
 *             return False
 *         return self._pvt_ptr[0] == (<cudaDevResourceDesc_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4434
 *         return self._pvt_ptr[0] == (<cudaDevResourceDesc_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4433
 *             return False
 *         return self._pvt_ptr[0] == (<cudaDevResourceDesc_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceDesc_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4435
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4436
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4435
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceDesc_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4437
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_15getPtr(PyObject *__pyx_v_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_7runtime_21cudaDevResourceDesc_t_14getPtr, "cudaDevResourceDesc_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4438
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExecutionContext_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4437
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceDesc_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_21cudaDevResourceDesc_t_16__reduce_cython__, "cudaDevResourceDesc_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceDesc_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_21cudaDevResourceDesc_t_18__setstate_cython__, "cudaDevResourceDesc_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaDevResourceDesc_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceDesc_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4451
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4451, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4451, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4451, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4451, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4451, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4451, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4451, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4451, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4451, __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.runtime.cudaExecutionContext_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4452
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExecutionContext_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4453
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaExecutionContext_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4454
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExecutionContext_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExecutionContext_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaExecutionContext_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4452
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExecutionContext_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4456
 *             self._pvt_ptr[0] = <cyruntime.cudaExecutionContext_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExecutionContext_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaExecutionContext_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4451
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4457
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExecutionContext_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4459
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaExecutionContext_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4460
 *         pass
 *     def __repr__(self):
 *         return '<cudaExecutionContext_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4460, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaExecutionContext_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4459
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaExecutionContext_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionContext_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4461
 *     def __repr__(self):
 *         return '<cudaExecutionContext_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4462
 *         return '<cudaExecutionContext_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExecutionContext_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4461
 *     def __repr__(self):
 *         return '<cudaExecutionContext_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionContext_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4463
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaExecutionContext_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4464
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExecutionContext_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExecutionContext_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4465
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExecutionContext_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaExecutionContext_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4464
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExecutionContext_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExecutionContext_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4466
 *         if not isinstance(other, cudaExecutionContext_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExecutionContext_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4463
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaExecutionContext_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionContext_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4467
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExecutionContext_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4468
 *         return self._pvt_ptr[0] == (<cudaExecutionContext_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4468, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4467
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExecutionContext_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionContext_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4469
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4470
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4469
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionContext_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4471
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_15getPtr(PyObject *__pyx_v_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_7runtime_22cudaExecutionContext_t_14getPtr, "cudaExecutionContext_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaExecutionContext_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaExecutionContext_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4472
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaArray_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4471
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionContext_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_22cudaExecutionContext_t_16__reduce_cython__, "cudaExecutionContext_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaExecutionContext_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaExecutionContext_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionContext_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_22cudaExecutionContext_t_18__setstate_cython__, "cudaExecutionContext_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaExecutionContext_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaExecutionContext_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExecutionContext_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaExecutionContext_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionContext_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4485
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4485, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4485, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4485, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4485, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4485, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4485, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4485, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4485, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4485, __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.runtime.cudaArray_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4486
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4487
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4488
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArray_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaArray_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4486
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4490
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArray_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaArray_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4485
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4491
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArray_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4493
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4494
 *         pass
 *     def __repr__(self):
 *         return '<cudaArray_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4494, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaArray_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4493
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4495
 *     def __repr__(self):
 *         return '<cudaArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4496
 *         return '<cudaArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaArray_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4496, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4495
 *     def __repr__(self):
 *         return '<cudaArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4497
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaArray_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4498
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaArray_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4499
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaArray_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaArray_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4498
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaArray_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4500
 *         if not isinstance(other, cudaArray_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4497
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaArray_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4501
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4502
 *         return self._pvt_ptr[0] == (<cudaArray_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4502, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4501
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4503
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4504
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4503
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4505
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_15getPtr(PyObject *__pyx_v_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_7runtime_11cudaArray_t_14getPtr, "cudaArray_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11cudaArray_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11cudaArray_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4506
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaArray_const_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4505
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_11cudaArray_t_16__reduce_cython__, "cudaArray_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11cudaArray_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11cudaArray_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_11cudaArray_t_18__setstate_cython__, "cudaArray_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11cudaArray_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11cudaArray_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaArray_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11cudaArray_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4519
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4519, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4519, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4519, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4519, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4519, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4519, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4519, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4519, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4519, __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.runtime.cudaArray_const_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4520
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_const_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4521
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_const_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4522
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_const_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArray_const_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaArray_const_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4520
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_const_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4524
 *             self._pvt_ptr[0] = <cyruntime.cudaArray_const_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArray_const_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaArray_const_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4519
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4525
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArray_const_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4527
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4528
 *         pass
 *     def __repr__(self):
 *         return '<cudaArray_const_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaArray_const_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4527
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_const_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4529
 *     def __repr__(self):
 *         return '<cudaArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4530
 *         return '<cudaArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaArray_const_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4530, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4529
 *     def __repr__(self):
 *         return '<cudaArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_const_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4531
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaArray_const_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4532
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaArray_const_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_const_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4533
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaArray_const_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaArray_const_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4532
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaArray_const_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_const_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4534
 *         if not isinstance(other, cudaArray_const_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_const_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4531
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaArray_const_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_const_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4535
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_const_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4536
 *         return self._pvt_ptr[0] == (<cudaArray_const_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4535
 *             return False
 *         return self._pvt_ptr[0] == (<cudaArray_const_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_const_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4537
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4538
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4537
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_const_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4539
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_15getPtr(PyObject *__pyx_v_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_7runtime_17cudaArray_const_t_14getPtr, "cudaArray_const_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaArray_const_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaArray_const_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4540
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMipmappedArray_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4540, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4539
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_const_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_17cudaArray_const_t_16__reduce_cython__, "cudaArray_const_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaArray_const_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaArray_const_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_const_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_17cudaArray_const_t_18__setstate_cython__, "cudaArray_const_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaArray_const_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaArray_const_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaArray_const_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaArray_const_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArray_const_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4553
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4553, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4553, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4553, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4553, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4553, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4553, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4553, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4553, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4553, __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.runtime.cudaMipmappedArray_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4554
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4555
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4556
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMipmappedArray_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaMipmappedArray_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4554
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4558
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMipmappedArray_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaMipmappedArray_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4553
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4559
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMipmappedArray_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4561
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaMipmappedArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4562
 *         pass
 *     def __repr__(self):
 *         return '<cudaMipmappedArray_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaMipmappedArray_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4561
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaMipmappedArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4563
 *     def __repr__(self):
 *         return '<cudaMipmappedArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4564
 *         return '<cudaMipmappedArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaMipmappedArray_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4563
 *     def __repr__(self):
 *         return '<cudaMipmappedArray_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4565
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaMipmappedArray_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4566
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaMipmappedArray_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4567
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaMipmappedArray_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4566
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaMipmappedArray_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4568
 *         if not isinstance(other, cudaMipmappedArray_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4565
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaMipmappedArray_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4569
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4570
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4570, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4569
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4571
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4572
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4571
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4573
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_15getPtr(PyObject *__pyx_v_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_7runtime_20cudaMipmappedArray_t_14getPtr, "cudaMipmappedArray_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4574
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMipmappedArray_const_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4573
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaMipmappedArray_t_16__reduce_cython__, "cudaMipmappedArray_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaMipmappedArray_t_18__setstate_cython__, "cudaMipmappedArray_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMipmappedArray_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4587
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4587, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4587, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4587, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4587, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4587, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4587, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4587, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4587, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4587, __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.runtime.cudaMipmappedArray_const_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4588
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_const_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4589
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_const_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4590
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_const_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMipmappedArray_const_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaMipmappedArray_const_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4588
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_const_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4592
 *             self._pvt_ptr[0] = <cyruntime.cudaMipmappedArray_const_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMipmappedArray_const_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaMipmappedArray_const_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4587
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4593
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMipmappedArray_const_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4595
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaMipmappedArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4596
 *         pass
 *     def __repr__(self):
 *         return '<cudaMipmappedArray_const_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4596, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaMipmappedArray_const_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4595
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaMipmappedArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_const_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4597
 *     def __repr__(self):
 *         return '<cudaMipmappedArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4598
 *         return '<cudaMipmappedArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaMipmappedArray_const_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4597
 *     def __repr__(self):
 *         return '<cudaMipmappedArray_const_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_const_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4599
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaMipmappedArray_const_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4600
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaMipmappedArray_const_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_const_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4601
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaMipmappedArray_const_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_const_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4600
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaMipmappedArray_const_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_const_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4602
 *         if not isinstance(other, cudaMipmappedArray_const_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_const_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4599
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaMipmappedArray_const_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_const_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4603
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_const_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4604
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_const_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4604, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4603
 *             return False
 *         return self._pvt_ptr[0] == (<cudaMipmappedArray_const_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_const_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4605
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4606
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4605
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_const_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4607
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_15getPtr(PyObject *__pyx_v_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_7runtime_26cudaMipmappedArray_const_t_14getPtr, "cudaMipmappedArray_const_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4608
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaGraphicsResource_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4607
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_const_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_26cudaMipmappedArray_const_t_16__reduce_cython__, "cudaMipmappedArray_const_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_const_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_26cudaMipmappedArray_const_t_18__setstate_cython__, "cudaMipmappedArray_const_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMipmappedArray_const_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArray_const_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4621
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4621, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4621, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4621, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4621, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4621, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4621, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4621, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4621, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4621, __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.runtime.cudaGraphicsResource_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4622
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphicsResource_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4623
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphicsResource_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4624
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphicsResource_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphicsResource_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaGraphicsResource_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4622
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphicsResource_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4626
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphicsResource_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphicsResource_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaGraphicsResource_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4621
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4627
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphicsResource_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4629
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaGraphicsResource_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4630
 *         pass
 *     def __repr__(self):
 *         return '<cudaGraphicsResource_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaGraphicsResource_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4629
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaGraphicsResource_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResource_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4631
 *     def __repr__(self):
 *         return '<cudaGraphicsResource_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4632
 *         return '<cudaGraphicsResource_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaGraphicsResource_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4631
 *     def __repr__(self):
 *         return '<cudaGraphicsResource_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResource_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4633
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaGraphicsResource_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4634
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaGraphicsResource_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphicsResource_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4635
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaGraphicsResource_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaGraphicsResource_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4634
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaGraphicsResource_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphicsResource_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4636
 *         if not isinstance(other, cudaGraphicsResource_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphicsResource_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4633
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaGraphicsResource_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResource_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4637
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphicsResource_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4638
 *         return self._pvt_ptr[0] == (<cudaGraphicsResource_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4638, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4637
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphicsResource_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResource_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4639
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4640
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4639
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResource_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4641
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_15getPtr(PyObject *__pyx_v_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_7runtime_22cudaGraphicsResource_t_14getPtr, "cudaGraphicsResource_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4642
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalMemory_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4641
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResource_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_22cudaGraphicsResource_t_16__reduce_cython__, "cudaGraphicsResource_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResource_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_22cudaGraphicsResource_t_18__setstate_cython__, "cudaGraphicsResource_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaGraphicsResource_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResource_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4655
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4655, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4655, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4655, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4655, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4655, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4655, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4655, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4655, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4655, __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.runtime.cudaExternalMemory_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4656
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalMemory_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4657
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalMemory_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4658
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalMemory_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemory_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaExternalMemory_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4656
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalMemory_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4660
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalMemory_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemory_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaExternalMemory_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4655
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4661
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemory_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4663
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaExternalMemory_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4664
 *         pass
 *     def __repr__(self):
 *         return '<cudaExternalMemory_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaExternalMemory_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4663
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaExternalMemory_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemory_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4665
 *     def __repr__(self):
 *         return '<cudaExternalMemory_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4666
 *         return '<cudaExternalMemory_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExternalMemory_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4665
 *     def __repr__(self):
 *         return '<cudaExternalMemory_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemory_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4667
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaExternalMemory_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4668
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExternalMemory_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalMemory_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4669
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExternalMemory_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaExternalMemory_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4668
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExternalMemory_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalMemory_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4670
 *         if not isinstance(other, cudaExternalMemory_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalMemory_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4667
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaExternalMemory_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemory_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4671
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalMemory_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4672
 *         return self._pvt_ptr[0] == (<cudaExternalMemory_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4672, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4671
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalMemory_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemory_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4673
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4674
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4674, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4673
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemory_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4675
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_15getPtr(PyObject *__pyx_v_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_7runtime_20cudaExternalMemory_t_14getPtr, "cudaExternalMemory_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaExternalMemory_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaExternalMemory_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4676
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalSemaphore_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4676, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4675
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemory_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaExternalMemory_t_16__reduce_cython__, "cudaExternalMemory_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaExternalMemory_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaExternalMemory_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemory_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaExternalMemory_t_18__setstate_cython__, "cudaExternalMemory_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaExternalMemory_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaExternalMemory_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalMemory_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaExternalMemory_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemory_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4689
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4689, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4689, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4689, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4689, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4689, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4689, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4689, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4689, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4689, __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.runtime.cudaExternalSemaphore_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4690
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalSemaphore_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4691
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalSemaphore_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4692
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalSemaphore_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphore_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaExternalSemaphore_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4690
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalSemaphore_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4694
 *             self._pvt_ptr[0] = <cyruntime.cudaExternalSemaphore_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphore_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaExternalSemaphore_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4689
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4695
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphore_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4697
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaExternalSemaphore_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4698
 *         pass
 *     def __repr__(self):
 *         return '<cudaExternalSemaphore_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4698, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaExternalSemaphore_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4697
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaExternalSemaphore_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphore_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4699
 *     def __repr__(self):
 *         return '<cudaExternalSemaphore_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4700
 *         return '<cudaExternalSemaphore_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExternalSemaphore_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4699
 *     def __repr__(self):
 *         return '<cudaExternalSemaphore_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphore_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4701
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaExternalSemaphore_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4702
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExternalSemaphore_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalSemaphore_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4703
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExternalSemaphore_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaExternalSemaphore_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4702
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaExternalSemaphore_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalSemaphore_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4704
 *         if not isinstance(other, cudaExternalSemaphore_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalSemaphore_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4701
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaExternalSemaphore_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphore_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4705
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalSemaphore_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4706
 *         return self._pvt_ptr[0] == (<cudaExternalSemaphore_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4706, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4705
 *             return False
 *         return self._pvt_ptr[0] == (<cudaExternalSemaphore_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphore_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4707
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4708
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4707
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphore_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4709
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_15getPtr(PyObject *__pyx_v_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_7runtime_23cudaExternalSemaphore_t_14getPtr, "cudaExternalSemaphore_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4710
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaKernel_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4709
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphore_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_23cudaExternalSemaphore_t_16__reduce_cython__, "cudaExternalSemaphore_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphore_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_23cudaExternalSemaphore_t_18__setstate_cython__, "cudaExternalSemaphore_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalSemaphore_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphore_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4723
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4723, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4723, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4723, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4723, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4723, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4723, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4723, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4723, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4723, __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.runtime.cudaKernel_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4724
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaKernel_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4725
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaKernel_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4726
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaKernel_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernel_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaKernel_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4724
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaKernel_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4728
 *             self._pvt_ptr[0] = <cyruntime.cudaKernel_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernel_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaKernel_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4723
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4729
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernel_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4731
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaKernel_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4732
 *         pass
 *     def __repr__(self):
 *         return '<cudaKernel_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaKernel_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4731
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaKernel_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernel_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4733
 *     def __repr__(self):
 *         return '<cudaKernel_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4734
 *         return '<cudaKernel_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaKernel_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4733
 *     def __repr__(self):
 *         return '<cudaKernel_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernel_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4735
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaKernel_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4736
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaKernel_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaKernel_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4737
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaKernel_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaKernel_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4736
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaKernel_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaKernel_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4738
 *         if not isinstance(other, cudaKernel_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaKernel_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4735
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaKernel_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernel_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4739
 *             return False
 *         return self._pvt_ptr[0] == (<cudaKernel_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4740
 *         return self._pvt_ptr[0] == (<cudaKernel_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4740, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4739
 *             return False
 *         return self._pvt_ptr[0] == (<cudaKernel_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernel_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4741
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4742
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4741
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernel_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4743
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_15getPtr(PyObject *__pyx_v_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_7runtime_12cudaKernel_t_14getPtr, "cudaKernel_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaKernel_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaKernel_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4744
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaLibrary_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4743
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernel_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_12cudaKernel_t_16__reduce_cython__, "cudaKernel_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaKernel_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaKernel_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernel_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_12cudaKernel_t_18__setstate_cython__, "cudaKernel_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaKernel_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaKernel_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaKernel_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaKernel_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernel_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4757
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4757, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4757, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4757, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4757, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4757, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4757, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4757, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4757, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4757, __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.runtime.cudaLibrary_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4758
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLibrary_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4759
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaLibrary_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4760
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLibrary_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLibrary_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaLibrary_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4758
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLibrary_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4762
 *             self._pvt_ptr[0] = <cyruntime.cudaLibrary_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLibrary_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaLibrary_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4757
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4763
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLibrary_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4765
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaLibrary_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4766
 *         pass
 *     def __repr__(self):
 *         return '<cudaLibrary_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaLibrary_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4765
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaLibrary_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibrary_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4767
 *     def __repr__(self):
 *         return '<cudaLibrary_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4768
 *         return '<cudaLibrary_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaLibrary_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4767
 *     def __repr__(self):
 *         return '<cudaLibrary_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibrary_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4769
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaLibrary_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4770
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaLibrary_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLibrary_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4771
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaLibrary_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaLibrary_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4770
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaLibrary_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLibrary_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4772
 *         if not isinstance(other, cudaLibrary_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLibrary_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4769
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaLibrary_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibrary_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4773
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLibrary_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4774
 *         return self._pvt_ptr[0] == (<cudaLibrary_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4774, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4774, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4773
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLibrary_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibrary_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4775
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4776
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4775
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibrary_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4777
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_15getPtr(PyObject *__pyx_v_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_7runtime_13cudaLibrary_t_14getPtr, "cudaLibrary_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13cudaLibrary_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13cudaLibrary_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4778
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaGraphDeviceNode_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4777
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibrary_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_13cudaLibrary_t_16__reduce_cython__, "cudaLibrary_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13cudaLibrary_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13cudaLibrary_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibrary_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_13cudaLibrary_t_18__setstate_cython__, "cudaLibrary_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13cudaLibrary_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13cudaLibrary_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaLibrary_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13cudaLibrary_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibrary_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4791
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4791, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4791, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4791, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4791, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4791, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4791, __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.runtime.cudaGraphDeviceNode_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4792
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphDeviceNode_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4793
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphDeviceNode_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4794
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphDeviceNode_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphDeviceNode_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaGraphDeviceNode_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4792
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphDeviceNode_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4796
 *             self._pvt_ptr[0] = <cyruntime.cudaGraphDeviceNode_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphDeviceNode_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaGraphDeviceNode_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4791
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4797
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphDeviceNode_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4799
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaGraphDeviceNode_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4800
 *         pass
 *     def __repr__(self):
 *         return '<cudaGraphDeviceNode_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4800, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaGraphDeviceNode_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4799
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaGraphDeviceNode_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDeviceNode_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4801
 *     def __repr__(self):
 *         return '<cudaGraphDeviceNode_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4802
 *         return '<cudaGraphDeviceNode_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaGraphDeviceNode_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4802, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4801
 *     def __repr__(self):
 *         return '<cudaGraphDeviceNode_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDeviceNode_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4803
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaGraphDeviceNode_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4804
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaGraphDeviceNode_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphDeviceNode_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4805
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaGraphDeviceNode_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaGraphDeviceNode_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4804
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaGraphDeviceNode_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphDeviceNode_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4806
 *         if not isinstance(other, cudaGraphDeviceNode_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphDeviceNode_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4806, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4803
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaGraphDeviceNode_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDeviceNode_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4807
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphDeviceNode_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4808
 *         return self._pvt_ptr[0] == (<cudaGraphDeviceNode_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4808, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4807
 *             return False
 *         return self._pvt_ptr[0] == (<cudaGraphDeviceNode_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDeviceNode_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4809
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4810
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4809
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDeviceNode_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4811
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_15getPtr(PyObject *__pyx_v_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_7runtime_21cudaGraphDeviceNode_t_14getPtr, "cudaGraphDeviceNode_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4812
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaAsyncCallbackHandle_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4811
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDeviceNode_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_21cudaGraphDeviceNode_t_16__reduce_cython__, "cudaGraphDeviceNode_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDeviceNode_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_21cudaGraphDeviceNode_t_18__setstate_cython__, "cudaGraphDeviceNode_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaGraphDeviceNode_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDeviceNode_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4825
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4825, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4825, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4825, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4825, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4825, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4825, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4825, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4825, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4825, __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.runtime.cudaAsyncCallbackHandle_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4826
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallbackHandle_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4827
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallbackHandle_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4828
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallbackHandle_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncCallbackHandle_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaAsyncCallbackHandle_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4826
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallbackHandle_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4830
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallbackHandle_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncCallbackHandle_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaAsyncCallbackHandle_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4825
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4831
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncCallbackHandle_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4833
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaAsyncCallbackHandle_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4834
 *         pass
 *     def __repr__(self):
 *         return '<cudaAsyncCallbackHandle_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4834, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaAsyncCallbackHandle_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4833
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaAsyncCallbackHandle_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallbackHandle_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4835
 *     def __repr__(self):
 *         return '<cudaAsyncCallbackHandle_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4836
 *         return '<cudaAsyncCallbackHandle_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaAsyncCallbackHandle_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4835
 *     def __repr__(self):
 *         return '<cudaAsyncCallbackHandle_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallbackHandle_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4837
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaAsyncCallbackHandle_t):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4838
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaAsyncCallbackHandle_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaAsyncCallbackHandle_t>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4839
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaAsyncCallbackHandle_t):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaAsyncCallbackHandle_t>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4838
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaAsyncCallbackHandle_t):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaAsyncCallbackHandle_t>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4840
 *         if not isinstance(other, cudaAsyncCallbackHandle_t):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaAsyncCallbackHandle_t>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4837
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaAsyncCallbackHandle_t):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallbackHandle_t.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4841
 *             return False
 *         return self._pvt_ptr[0] == (<cudaAsyncCallbackHandle_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4842
 *         return self._pvt_ptr[0] == (<cudaAsyncCallbackHandle_t>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4841
 *             return False
 *         return self._pvt_ptr[0] == (<cudaAsyncCallbackHandle_t>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallbackHandle_t.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4843
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4844
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4843
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallbackHandle_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4845
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_15getPtr(PyObject *__pyx_v_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_7runtime_25cudaAsyncCallbackHandle_t_14getPtr, "cudaAsyncCallbackHandle_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4846
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaLogsCallbackHandle:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4845
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallbackHandle_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_25cudaAsyncCallbackHandle_t_16__reduce_cython__, "cudaAsyncCallbackHandle_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallbackHandle_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_25cudaAsyncCallbackHandle_t_18__setstate_cython__, "cudaAsyncCallbackHandle_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaAsyncCallbackHandle_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallbackHandle_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4857
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4857, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4857, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4857, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4857, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4857, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4857, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4857, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4857, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4857, __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.runtime.cudaLogsCallbackHandle.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4858
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallbackHandle>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4859
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallbackHandle>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4860
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallbackHandle>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogsCallbackHandle *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaLogsCallbackHandle)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4858
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallbackHandle>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4862
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallbackHandle>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogsCallbackHandle *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaLogsCallbackHandle *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4857
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4863
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogsCallbackHandle *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4865
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaLogsCallbackHandle ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4866
 *         pass
 *     def __repr__(self):
 *         return '<cudaLogsCallbackHandle ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4866, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaLogsCallbackHandle, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4865
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaLogsCallbackHandle ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallbackHandle.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4867
 *     def __repr__(self):
 *         return '<cudaLogsCallbackHandle ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4868
 *         return '<cudaLogsCallbackHandle ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaLogsCallbackHandle):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4868, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4867
 *     def __repr__(self):
 *         return '<cudaLogsCallbackHandle ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallbackHandle.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4869
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaLogsCallbackHandle):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4870
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaLogsCallbackHandle):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLogsCallbackHandle>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4871
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaLogsCallbackHandle):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<cudaLogsCallbackHandle>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4870
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, cudaLogsCallbackHandle):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLogsCallbackHandle>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4872
 *         if not isinstance(other, cudaLogsCallbackHandle):
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLogsCallbackHandle>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4869
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, cudaLogsCallbackHandle):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallbackHandle.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4873
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLogsCallbackHandle>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4874
 *         return self._pvt_ptr[0] == (<cudaLogsCallbackHandle>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4874, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4873
 *             return False
 *         return self._pvt_ptr[0] == (<cudaLogsCallbackHandle>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallbackHandle.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4875
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4876
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4875
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallbackHandle.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4877
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_15getPtr(PyObject *__pyx_v_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_7runtime_22cudaLogsCallbackHandle_14getPtr, "cudaLogsCallbackHandle.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4878
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class EGLImageKHR:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4877
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallbackHandle.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_22cudaLogsCallbackHandle_16__reduce_cython__, "cudaLogsCallbackHandle.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallbackHandle.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_22cudaLogsCallbackHandle_18__setstate_cython__, "cudaLogsCallbackHandle.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaLogsCallbackHandle.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallbackHandle.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4889
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4889, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4889, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4889, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4889, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4889, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4889, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4889, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4889, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4889, __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.runtime.EGLImageKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4890
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLImageKHR>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4891
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.EGLImageKHR>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4892
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLImageKHR>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLImageKHR *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4890
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLImageKHR>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4894
 *             self._pvt_ptr[0] = <cyruntime.EGLImageKHR>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLImageKHR *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4889
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4895
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLImageKHR *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4897
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<EGLImageKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4898
 *         pass
 *     def __repr__(self):
 *         return '<EGLImageKHR ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4898, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_EGLImageKHR, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4897
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<EGLImageKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLImageKHR.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4899
 *     def __repr__(self):
 *         return '<EGLImageKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4900
 *         return '<EGLImageKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLImageKHR):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4899
 *     def __repr__(self):
 *         return '<EGLImageKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLImageKHR.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4901
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, EGLImageKHR):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4902
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLImageKHR):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<EGLImageKHR>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4903
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLImageKHR):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<EGLImageKHR>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4902
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLImageKHR):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<EGLImageKHR>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4904
 *         if not isinstance(other, EGLImageKHR):
 *             return False
 *         return self._pvt_ptr[0] == (<EGLImageKHR>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4901
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, EGLImageKHR):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLImageKHR.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4905
 *             return False
 *         return self._pvt_ptr[0] == (<EGLImageKHR>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4906
 *         return self._pvt_ptr[0] == (<EGLImageKHR>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4906, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4906, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4905
 *             return False
 *         return self._pvt_ptr[0] == (<EGLImageKHR>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLImageKHR.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4907
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4908
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4908, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4907
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLImageKHR.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4909
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_15getPtr(PyObject *__pyx_v_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_7runtime_11EGLImageKHR_14getPtr, "EGLImageKHR.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11EGLImageKHR_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11EGLImageKHR_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4910
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class EGLStreamKHR:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4909
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLImageKHR.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_11EGLImageKHR_16__reduce_cython__, "EGLImageKHR.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11EGLImageKHR_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11EGLImageKHR_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLImageKHR.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_11EGLImageKHR_18__setstate_cython__, "EGLImageKHR.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11EGLImageKHR_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11EGLImageKHR_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.EGLImageKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11EGLImageKHR_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLImageKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4921
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4921, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4921, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4921, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4921, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4921, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4921, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4921, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4921, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4921, __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.runtime.EGLStreamKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4922
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLStreamKHR>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4923
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.EGLStreamKHR>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4924
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLStreamKHR>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLStreamKHR *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4922
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLStreamKHR>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4926
 *             self._pvt_ptr[0] = <cyruntime.EGLStreamKHR>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLStreamKHR *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4921
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4927
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLStreamKHR *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4929
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<EGLStreamKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4930
 *         pass
 *     def __repr__(self):
 *         return '<EGLStreamKHR ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4930, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_EGLStreamKHR, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4929
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<EGLStreamKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLStreamKHR.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4931
 *     def __repr__(self):
 *         return '<EGLStreamKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4932
 *         return '<EGLStreamKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLStreamKHR):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4931
 *     def __repr__(self):
 *         return '<EGLStreamKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLStreamKHR.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4933
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, EGLStreamKHR):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4934
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLStreamKHR):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<EGLStreamKHR>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4935
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLStreamKHR):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<EGLStreamKHR>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4934
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLStreamKHR):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<EGLStreamKHR>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4936
 *         if not isinstance(other, EGLStreamKHR):
 *             return False
 *         return self._pvt_ptr[0] == (<EGLStreamKHR>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4933
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, EGLStreamKHR):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLStreamKHR.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4937
 *             return False
 *         return self._pvt_ptr[0] == (<EGLStreamKHR>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4938
 *         return self._pvt_ptr[0] == (<EGLStreamKHR>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4938, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4937
 *             return False
 *         return self._pvt_ptr[0] == (<EGLStreamKHR>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLStreamKHR.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4939
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4940
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4939
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLStreamKHR.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4941
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_15getPtr(PyObject *__pyx_v_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_7runtime_12EGLStreamKHR_14getPtr, "EGLStreamKHR.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12EGLStreamKHR_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12EGLStreamKHR_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4942
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class EGLSyncKHR:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4942, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4941
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLStreamKHR.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_12EGLStreamKHR_16__reduce_cython__, "EGLStreamKHR.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12EGLStreamKHR_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12EGLStreamKHR_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLStreamKHR.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_12EGLStreamKHR_18__setstate_cython__, "EGLStreamKHR.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12EGLStreamKHR_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12EGLStreamKHR_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.EGLStreamKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12EGLStreamKHR_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLStreamKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4953
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4953, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4953, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4953, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4953, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4953, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4953, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4953, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4953, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4953, __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.runtime.EGLSyncKHR.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4954
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLSyncKHR>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4955
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.EGLSyncKHR>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4956
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLSyncKHR>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLSyncKHR *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4954
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.EGLSyncKHR>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4958
 *             self._pvt_ptr[0] = <cyruntime.EGLSyncKHR>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLSyncKHR *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4953
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4959
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLSyncKHR *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4961
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<EGLSyncKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4962
 *         pass
 *     def __repr__(self):
 *         return '<EGLSyncKHR ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4962, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_EGLSyncKHR, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4961
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<EGLSyncKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLSyncKHR.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4963
 *     def __repr__(self):
 *         return '<EGLSyncKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4964
 *         return '<EGLSyncKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLSyncKHR):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4964, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4963
 *     def __repr__(self):
 *         return '<EGLSyncKHR ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __eq__(self, other):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLSyncKHR.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4965
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, EGLSyncKHR):
 *             return False
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_8__eq__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_8__eq__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self, PyObject *__pyx_v_other) {
  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("__eq__", 0);

  /* "cuda/bindings/runtime.pyx":4966
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLSyncKHR):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<EGLSyncKHR>other)._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR); 
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":4967
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLSyncKHR):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._pvt_ptr[0] == (<EGLSyncKHR>other)._pvt_ptr[0]
 *     def __hash__(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":4966
 *         return self.__int__()
 *     def __eq__(self, other):
 *         if not isinstance(other, EGLSyncKHR):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._pvt_ptr[0] == (<EGLSyncKHR>other)._pvt_ptr[0]
*/
  }

  /* "cuda/bindings/runtime.pyx":4968
 *         if not isinstance(other, EGLSyncKHR):
 *             return False
 *         return self._pvt_ptr[0] == (<EGLSyncKHR>other)._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(((__pyx_v_self->_pvt_ptr[0]) == (((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_other)->_pvt_ptr[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4965
 *     def __index__(self):
 *         return self.__int__()
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, EGLSyncKHR):
 *             return False
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLSyncKHR.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4969
 *             return False
 *         return self._pvt_ptr[0] == (<EGLSyncKHR>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

/* Python wrapper */
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_11__hash__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_10__hash__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_10__hash__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cuda/bindings/runtime.pyx":4970
 *         return self._pvt_ptr[0] == (<EGLSyncKHR>other)._pvt_ptr[0]
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)(__pyx_v_self->_pvt_ptr[0])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 4970, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4969
 *             return False
 *         return self._pvt_ptr[0] == (<EGLSyncKHR>other)._pvt_ptr[0]
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLSyncKHR.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4971
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_13__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_13__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_12__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_12__int__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4972
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4971
 *     def __hash__(self):
 *         return hash(<uintptr_t><void*>(self._pvt_ptr[0]))
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLSyncKHR.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4973
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_15getPtr(PyObject *__pyx_v_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_7runtime_10EGLSyncKHR_14getPtr, "EGLSyncKHR.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_10EGLSyncKHR_15getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10EGLSyncKHR_14getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_15getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_14getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_14getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":4974
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaHostFn_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4973
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLSyncKHR.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_17__reduce_cython__(PyObject *__pyx_v_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_7runtime_10EGLSyncKHR_16__reduce_cython__, "EGLSyncKHR.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_10EGLSyncKHR_17__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10EGLSyncKHR_16__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_17__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_16__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLSyncKHR.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_19__setstate_cython__(PyObject *__pyx_v_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_7runtime_10EGLSyncKHR_18__setstate_cython__, "EGLSyncKHR.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_10EGLSyncKHR_19__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10EGLSyncKHR_18__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_19__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.EGLSyncKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_18__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10EGLSyncKHR_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLSyncKHR.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4985
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 4985, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4985, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4985, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 4985, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 4985, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 4985, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4985, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 4985, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 4985, __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.runtime.cudaHostFn_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":4986
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaHostFn_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":4987
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaHostFn_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":4988
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaHostFn_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostFn_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaHostFn_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":4986
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaHostFn_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":4990
 *             self._pvt_ptr[0] = <cyruntime.cudaHostFn_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostFn_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaHostFn_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":4985
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4991
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostFn_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4993
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaHostFn_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":4994
 *         pass
 *     def __repr__(self):
 *         return '<cudaHostFn_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4994, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaHostFn_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4993
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaHostFn_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostFn_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4995
 *     def __repr__(self):
 *         return '<cudaHostFn_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":4996
 *         return '<cudaHostFn_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4996, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4995
 *     def __repr__(self):
 *         return '<cudaHostFn_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostFn_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4997
 *     def __index__(self):
 *         return self.__int__()
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_9__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_9__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_8__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_8__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":4998
 *         return self.__int__()
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4997
 *     def __index__(self):
 *         return self.__int__()
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostFn_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":4999
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_11getPtr(PyObject *__pyx_v_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_7runtime_12cudaHostFn_t_10getPtr, "cudaHostFn_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaHostFn_t_11getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaHostFn_t_10getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_11getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_10getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_10getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5000
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaAsyncCallback:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5000, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":4999
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostFn_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_13__reduce_cython__(PyObject *__pyx_v_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_7runtime_12cudaHostFn_t_12__reduce_cython__, "cudaHostFn_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaHostFn_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaHostFn_t_12__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_13__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_12__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostFn_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_15__setstate_cython__(PyObject *__pyx_v_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_7runtime_12cudaHostFn_t_14__setstate_cython__, "cudaHostFn_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaHostFn_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaHostFn_t_14__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_15__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaHostFn_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_14__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaHostFn_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostFn_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5011
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5011, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 5011, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5011, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5011, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 5011, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5011, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5011, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5011, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 5011, __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.runtime.cudaAsyncCallback.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5012
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallback>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5013
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallback>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5014
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallback>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncCallback *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaAsyncCallback)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":5012
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallback>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5016
 *             self._pvt_ptr[0] = <cyruntime.cudaAsyncCallback>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncCallback *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaAsyncCallback *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5011
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5017
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncCallback *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5019
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaAsyncCallback ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5020
 *         pass
 *     def __repr__(self):
 *         return '<cudaAsyncCallback ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5020, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaAsyncCallback, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5019
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaAsyncCallback ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallback.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5021
 *     def __repr__(self):
 *         return '<cudaAsyncCallback ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":5022
 *         return '<cudaAsyncCallback ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5022, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5021
 *     def __repr__(self):
 *         return '<cudaAsyncCallback ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallback.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5023
 *     def __index__(self):
 *         return self.__int__()
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_9__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_9__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_8__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_8__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":5024
 *         return self.__int__()
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5023
 *     def __index__(self):
 *         return self.__int__()
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallback.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5025
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_11getPtr(PyObject *__pyx_v_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_7runtime_17cudaAsyncCallback_10getPtr, "cudaAsyncCallback.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaAsyncCallback_11getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaAsyncCallback_10getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_11getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_10getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_10getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5026
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaStreamCallback_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5025
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallback.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_13__reduce_cython__(PyObject *__pyx_v_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_7runtime_17cudaAsyncCallback_12__reduce_cython__, "cudaAsyncCallback.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaAsyncCallback_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaAsyncCallback_12__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_13__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_12__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallback.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_15__setstate_cython__(PyObject *__pyx_v_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_7runtime_17cudaAsyncCallback_14__setstate_cython__, "cudaAsyncCallback.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaAsyncCallback_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaAsyncCallback_14__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_15__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaAsyncCallback.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_14__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaAsyncCallback_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncCallback.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5037
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5037, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 5037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5037, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5037, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 5037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5037, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5037, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 5037, __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.runtime.cudaStreamCallback_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5038
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaStreamCallback_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5039
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaStreamCallback_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5040
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaStreamCallback_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaStreamCallback_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaStreamCallback_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":5038
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaStreamCallback_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5042
 *             self._pvt_ptr[0] = <cyruntime.cudaStreamCallback_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaStreamCallback_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaStreamCallback_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5037
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5043
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaStreamCallback_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5045
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaStreamCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5046
 *         pass
 *     def __repr__(self):
 *         return '<cudaStreamCallback_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaStreamCallback_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5045
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaStreamCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCallback_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5047
 *     def __repr__(self):
 *         return '<cudaStreamCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":5048
 *         return '<cudaStreamCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5047
 *     def __repr__(self):
 *         return '<cudaStreamCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCallback_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5049
 *     def __index__(self):
 *         return self.__int__()
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_9__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_9__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_8__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_8__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":5050
 *         return self.__int__()
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5050, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5049
 *     def __index__(self):
 *         return self.__int__()
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCallback_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5051
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_11getPtr(PyObject *__pyx_v_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_7runtime_20cudaStreamCallback_t_10getPtr, "cudaStreamCallback_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaStreamCallback_t_11getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaStreamCallback_t_10getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_11getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_10getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_10getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5052
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaLogsCallback_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5051
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCallback_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_13__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaStreamCallback_t_12__reduce_cython__, "cudaStreamCallback_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaStreamCallback_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaStreamCallback_t_12__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_13__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_12__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCallback_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_15__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaStreamCallback_t_14__setstate_cython__, "cudaStreamCallback_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaStreamCallback_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaStreamCallback_t_14__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_15__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaStreamCallback_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_14__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaStreamCallback_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCallback_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5063
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5063, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 5063, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5063, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5063, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 5063, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5063, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5063, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5063, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 5063, __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.runtime.cudaLogsCallback_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5064
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallback_t>init_value
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5065
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallback_t>init_value
 *         else:
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5066
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallback_t>init_value             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogsCallback_t *>_ptr
*/
    (__pyx_v_self->_pvt_ptr[0]) = ((cudaLogsCallback_t)__pyx_v_init_value);

    /* "cuda/bindings/runtime.pyx":5064
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallback_t>init_value
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5068
 *             self._pvt_ptr[0] = <cyruntime.cudaLogsCallback_t>init_value
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogsCallback_t *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, *args, **kwargs):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaLogsCallback_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5063
 * 
 *     """
 *     def __cinit__(self, void_ptr init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5069
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogsCallback_t *>_ptr
 *     def __init__(self, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kwargs = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return -1;
  if (__pyx_kwds_len > 0) {
    if (unlikely(__Pyx_CheckKeywordStrings("__init__", __pyx_kwds) == -1)) return -1;
  }
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *)__pyx_v_self), __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kwargs) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5071
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaLogsCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5072
 *         pass
 *     def __repr__(self):
 *         return '<cudaLogsCallback_t ' + str(hex(self.__int__())) + '>'             # <<<<<<<<<<<<<<
 *     def __index__(self):
 *         return self.__int__()
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5072, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaLogsCallback_t, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5071
 *     def __init__(self, *args, **kwargs):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaLogsCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallback_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5073
 *     def __repr__(self):
 *         return '<cudaLogsCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_7__index__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_7__index__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__index__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_6__index__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_6__index__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__index__", 0);

  /* "cuda/bindings/runtime.pyx":5074
 *         return '<cudaLogsCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):
 *         return self.__int__()             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5074, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5073
 *     def __repr__(self):
 *         return '<cudaLogsCallback_t ' + str(hex(self.__int__())) + '>'
 *     def __index__(self):             # <<<<<<<<<<<<<<
 *         return self.__int__()
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallback_t.__index__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5075
 *     def __index__(self):
 *         return self.__int__()
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_9__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_9__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_8__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_8__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":5076
 *         return self.__int__()
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5075
 *     def __index__(self):
 *         return self.__int__()
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallback_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5077
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_11getPtr(PyObject *__pyx_v_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_7runtime_18cudaLogsCallback_t_10getPtr, "cudaLogsCallback_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaLogsCallback_t_11getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaLogsCallback_t_10getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_11getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_10getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_10getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5078
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class dim3:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5077
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallback_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_13__reduce_cython__(PyObject *__pyx_v_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_7runtime_18cudaLogsCallback_t_12__reduce_cython__, "cudaLogsCallback_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaLogsCallback_t_13__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaLogsCallback_t_12__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_13__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_12__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallback_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_15__setstate_cython__(PyObject *__pyx_v_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_7runtime_18cudaLogsCallback_t_14__setstate_cython__, "cudaLogsCallback_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaLogsCallback_t_15__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaLogsCallback_t_14__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_15__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaLogsCallback_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_14__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaLogsCallback_t_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCallback_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5096
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5096, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5096, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5096, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5096, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5096, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5096, __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.runtime.dim3.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_4dim3___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5097
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5098
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.dim3 *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5097
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5100
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.dim3 *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct dim3 *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5096
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5101
 *         else:
 *             self._pvt_ptr = <cyruntime.dim3 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5101, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5101, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5101, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5101, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5101, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5101, __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.runtime.dim3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_4dim3_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5103
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_4dim3_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_4dim3_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_4dim3_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_4dim3_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5105
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_7getPtr(PyObject *__pyx_v_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_7runtime_4dim3_6getPtr, "dim3.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_4dim3_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_4dim3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_4dim3_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5106
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5105
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5107
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5108
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5109
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5109, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5110
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5111
 *             str_list = []
 *             try:
 *                 str_list += ['x : ' + str(self.x)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5111, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5111, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5111, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5111, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5111, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5111, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5110
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5112
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.dim3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5112, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5113
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5113, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_x_ValueError) != (0)) __PYX_ERR(0, 5113, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5113, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5110
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5114
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5115
 *                 str_list += ['x : <ValueError>']
 *             try:
 *                 str_list += ['y : ' + str(self.y)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5115, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5115, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5115, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5115, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5115, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5115, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5114
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5116
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.dim3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5116, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5117
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5117, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_y_ValueError) != (0)) __PYX_ERR(0, 5117, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5117, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5114
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5118
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5119
 *                 str_list += ['y : <ValueError>']
 *             try:
 *                 str_list += ['z : ' + str(self.z)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5119, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5119, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5119, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5119, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5119, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5119, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5118
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5120
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.dim3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5120, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5121
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5121, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_z_ValueError) != (0)) __PYX_ERR(0, 5121, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5121, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":5118
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5122
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5108
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5124
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def x(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5107
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5125
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].x
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_1x_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_1x___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5127
 *     @property
 *     def x(self):
 *         return self._pvt_ptr[0].x             # <<<<<<<<<<<<<<
 *     @x.setter
 *     def x(self, unsigned int x):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5125
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].x
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5128
 *     def x(self):
 *         return self._pvt_ptr[0].x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].x = x
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x) {
  unsigned int __pyx_v_x;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_x); {
    __pyx_v_x = __Pyx_PyLong_As_unsigned_int(__pyx_arg_x); if (unlikely((__pyx_v_x == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5129, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_1x_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self), ((unsigned int)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_4dim3_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, unsigned int __pyx_v_x) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5130
 *     @x.setter
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].x = x             # <<<<<<<<<<<<<<
 *     @property
 *     def y(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).x = __pyx_v_x;

  /* "cuda/bindings/runtime.pyx":5128
 *     def x(self):
 *         return self._pvt_ptr[0].x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].x = x
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5131
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].y
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_1y_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_1y___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5133
 *     @property
 *     def y(self):
 *         return self._pvt_ptr[0].y             # <<<<<<<<<<<<<<
 *     @y.setter
 *     def y(self, unsigned int y):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5131
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].y
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5134
 *     def y(self):
 *         return self._pvt_ptr[0].y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].y = y
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y) {
  unsigned int __pyx_v_y;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_y); {
    __pyx_v_y = __Pyx_PyLong_As_unsigned_int(__pyx_arg_y); if (unlikely((__pyx_v_y == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5135, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_1y_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self), ((unsigned int)__pyx_v_y));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_4dim3_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, unsigned int __pyx_v_y) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5136
 *     @y.setter
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].y = y             # <<<<<<<<<<<<<<
 *     @property
 *     def z(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).y = __pyx_v_y;

  /* "cuda/bindings/runtime.pyx":5134
 *     def y(self):
 *         return self._pvt_ptr[0].y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].y = y
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5137
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].z
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_1z_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_1z___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5139
 *     @property
 *     def z(self):
 *         return self._pvt_ptr[0].z             # <<<<<<<<<<<<<<
 *     @z.setter
 *     def z(self, unsigned int z):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5137
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].z
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5140
 *     def z(self):
 *         return self._pvt_ptr[0].z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].z = z
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_4dim3_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z) {
  unsigned int __pyx_v_z;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_z); {
    __pyx_v_z = __Pyx_PyLong_As_unsigned_int(__pyx_arg_z); if (unlikely((__pyx_v_z == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5141, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_1z_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self), ((unsigned int)__pyx_v_z));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_4dim3_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, unsigned int __pyx_v_z) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5142
 *     @z.setter
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].z = z             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaChannelFormatDesc:
*/
  (__pyx_v_self->_pvt_ptr[0]).z = __pyx_v_z;

  /* "cuda/bindings/runtime.pyx":5140
 *     def z(self):
 *         return self._pvt_ptr[0].z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].z = z
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_4dim3_10__reduce_cython__, "dim3.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_4dim3_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_4dim3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_4dim3_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_4dim3_12__setstate_cython__, "dim3.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_4dim3_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_4dim3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_4dim3_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_4dim3_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.dim3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4dim3_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_4dim3_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.dim3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5166
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5166, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5166, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5166, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5166, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5166, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5166, __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.runtime.cudaChannelFormatDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5167
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5168
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaChannelFormatDesc *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5167
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5170
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaChannelFormatDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaChannelFormatDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5166
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5171
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaChannelFormatDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5171, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5171, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5171, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5171, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5171, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5171, __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.runtime.cudaChannelFormatDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5173
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5175
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_7getPtr(PyObject *__pyx_v_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_7runtime_21cudaChannelFormatDesc_6getPtr, "cudaChannelFormatDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5176
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5175
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5177
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5178
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5179
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5180
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5181
 *             str_list = []
 *             try:
 *                 str_list += ['x : ' + str(self.x)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5181, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5180
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5182
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5182, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5183
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5183, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_x_ValueError) != (0)) __PYX_ERR(0, 5183, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5183, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5180
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5184
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5185
 *                 str_list += ['x : <ValueError>']
 *             try:
 *                 str_list += ['y : ' + str(self.y)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5185, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5184
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5186
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5186, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5187
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5187, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_y_ValueError) != (0)) __PYX_ERR(0, 5187, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5187, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5184
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5188
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5189
 *                 str_list += ['y : <ValueError>']
 *             try:
 *                 str_list += ['z : ' + str(self.z)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5189, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5188
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5190
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5190, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5191
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['w : ' + str(self.w)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5191, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_z_ValueError) != (0)) __PYX_ERR(0, 5191, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5191, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":5188
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5192
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['w : ' + str(self.w)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5193
 *                 str_list += ['z : <ValueError>']
 *             try:
 *                 str_list += ['w : ' + str(self.w)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['w : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_w_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5193, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5193, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_w, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5193, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5193, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5193, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5193, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5192
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['w : ' + str(self.w)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5194
 *             try:
 *                 str_list += ['w : ' + str(self.w)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['w : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5194, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5195
 *                 str_list += ['w : ' + str(self.w)]
 *             except ValueError:
 *                 str_list += ['w : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['f : ' + str(self.f)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5195, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_w_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_w_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_w_ValueError) != (0)) __PYX_ERR(0, 5195, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5195, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":5192
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['w : ' + str(self.w)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5196
 *             except ValueError:
 *                 str_list += ['w : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['f : ' + str(self.f)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5197
 *                 str_list += ['w : <ValueError>']
 *             try:
 *                 str_list += ['f : ' + str(self.f)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['f : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_f_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5197, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5197, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_f, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5197, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5197, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5197, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5197, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5196
 *             except ValueError:
 *                 str_list += ['w : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['f : ' + str(self.f)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5198
 *             try:
 *                 str_list += ['f : ' + str(self.f)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['f : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5198, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5199
 *                 str_list += ['f : ' + str(self.f)]
 *             except ValueError:
 *                 str_list += ['f : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5199, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_f_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_f_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_f_ValueError) != (0)) __PYX_ERR(0, 5199, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5199, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":5196
 *             except ValueError:
 *                 str_list += ['w : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['f : ' + str(self.f)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5200
 *             except ValueError:
 *                 str_list += ['f : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5178
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5202
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def x(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5177
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5203
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].x
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5205
 *     @property
 *     def x(self):
 *         return self._pvt_ptr[0].x             # <<<<<<<<<<<<<<
 *     @x.setter
 *     def x(self, int x):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5203
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].x
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5206
 *     def x(self):
 *         return self._pvt_ptr[0].x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, int x):
 *         self._pvt_ptr[0].x = x
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x) {
  int __pyx_v_x;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_x); {
    __pyx_v_x = __Pyx_PyLong_As_int(__pyx_arg_x); if (unlikely((__pyx_v_x == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5207, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self), ((int)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_x) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5208
 *     @x.setter
 *     def x(self, int x):
 *         self._pvt_ptr[0].x = x             # <<<<<<<<<<<<<<
 *     @property
 *     def y(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).x = __pyx_v_x;

  /* "cuda/bindings/runtime.pyx":5206
 *     def x(self):
 *         return self._pvt_ptr[0].x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, int x):
 *         self._pvt_ptr[0].x = x
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5209
 *     def x(self, int x):
 *         self._pvt_ptr[0].x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].y
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5211
 *     @property
 *     def y(self):
 *         return self._pvt_ptr[0].y             # <<<<<<<<<<<<<<
 *     @y.setter
 *     def y(self, int y):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5209
 *     def x(self, int x):
 *         self._pvt_ptr[0].x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].y
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5212
 *     def y(self):
 *         return self._pvt_ptr[0].y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, int y):
 *         self._pvt_ptr[0].y = y
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y) {
  int __pyx_v_y;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_y); {
    __pyx_v_y = __Pyx_PyLong_As_int(__pyx_arg_y); if (unlikely((__pyx_v_y == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5213, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self), ((int)__pyx_v_y));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_y) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5214
 *     @y.setter
 *     def y(self, int y):
 *         self._pvt_ptr[0].y = y             # <<<<<<<<<<<<<<
 *     @property
 *     def z(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).y = __pyx_v_y;

  /* "cuda/bindings/runtime.pyx":5212
 *     def y(self):
 *         return self._pvt_ptr[0].y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, int y):
 *         self._pvt_ptr[0].y = y
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5215
 *     def y(self, int y):
 *         self._pvt_ptr[0].y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].z
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5217
 *     @property
 *     def z(self):
 *         return self._pvt_ptr[0].z             # <<<<<<<<<<<<<<
 *     @z.setter
 *     def z(self, int z):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5215
 *     def y(self, int y):
 *         self._pvt_ptr[0].y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].z
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5218
 *     def z(self):
 *         return self._pvt_ptr[0].z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, int z):
 *         self._pvt_ptr[0].z = z
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z) {
  int __pyx_v_z;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_z); {
    __pyx_v_z = __Pyx_PyLong_As_int(__pyx_arg_z); if (unlikely((__pyx_v_z == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5219, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self), ((int)__pyx_v_z));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_z) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5220
 *     @z.setter
 *     def z(self, int z):
 *         self._pvt_ptr[0].z = z             # <<<<<<<<<<<<<<
 *     @property
 *     def w(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).z = __pyx_v_z;

  /* "cuda/bindings/runtime.pyx":5218
 *     def z(self):
 *         return self._pvt_ptr[0].z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, int z):
 *         self._pvt_ptr[0].z = z
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5221
 *     def z(self, int z):
 *         self._pvt_ptr[0].z = z
 *     @property             # <<<<<<<<<<<<<<
 *     def w(self):
 *         return self._pvt_ptr[0].w
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5223
 *     @property
 *     def w(self):
 *         return self._pvt_ptr[0].w             # <<<<<<<<<<<<<<
 *     @w.setter
 *     def w(self, int w):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5221
 *     def z(self, int z):
 *         self._pvt_ptr[0].z = z
 *     @property             # <<<<<<<<<<<<<<
 *     def w(self):
 *         return self._pvt_ptr[0].w
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.w.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5224
 *     def w(self):
 *         return self._pvt_ptr[0].w
 *     @w.setter             # <<<<<<<<<<<<<<
 *     def w(self, int w):
 *         self._pvt_ptr[0].w = w
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_w); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_w) {
  int __pyx_v_w;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_w); {
    __pyx_v_w = __Pyx_PyLong_As_int(__pyx_arg_w); if (unlikely((__pyx_v_w == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5225, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.w.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self), ((int)__pyx_v_w));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, int __pyx_v_w) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5226
 *     @w.setter
 *     def w(self, int w):
 *         self._pvt_ptr[0].w = w             # <<<<<<<<<<<<<<
 *     @property
 *     def f(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).w = __pyx_v_w;

  /* "cuda/bindings/runtime.pyx":5224
 *     def w(self):
 *         return self._pvt_ptr[0].w
 *     @w.setter             # <<<<<<<<<<<<<<
 *     def w(self, int w):
 *         self._pvt_ptr[0].w = w
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5227
 *     def w(self, int w):
 *         self._pvt_ptr[0].w = w
 *     @property             # <<<<<<<<<<<<<<
 *     def f(self):
 *         if self._pvt_ptr[0].f not in _dict_cudaChannelFormatKind:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5229
 *     @property
 *     def f(self):
 *         if self._pvt_ptr[0].f not in _dict_cudaChannelFormatKind:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaChannelFormatKind[self._pvt_ptr[0].f]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaChannelFormatKind((__pyx_v_self->_pvt_ptr[0]).f); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaChannelFormatKind); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 5229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":5230
 *     def f(self):
 *         if self._pvt_ptr[0].f not in _dict_cudaChannelFormatKind:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaChannelFormatKind[self._pvt_ptr[0].f]
 *     @f.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5229
 *     @property
 *     def f(self):
 *         if self._pvt_ptr[0].f not in _dict_cudaChannelFormatKind:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaChannelFormatKind[self._pvt_ptr[0].f]
*/
  }

  /* "cuda/bindings/runtime.pyx":5231
 *         if self._pvt_ptr[0].f not in _dict_cudaChannelFormatKind:
 *             return None
 *         return _dict_cudaChannelFormatKind[self._pvt_ptr[0].f]             # <<<<<<<<<<<<<<
 *     @f.setter
 *     def f(self, f not None : cudaChannelFormatKind):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaChannelFormatKind); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaChannelFormatKind((__pyx_v_self->_pvt_ptr[0]).f); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5227
 *     def w(self, int w):
 *         self._pvt_ptr[0].w = w
 *     @property             # <<<<<<<<<<<<<<
 *     def f(self):
 *         if self._pvt_ptr[0].f not in _dict_cudaChannelFormatKind:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.f.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5232
 *             return None
 *         return _dict_cudaChannelFormatKind[self._pvt_ptr[0].f]
 *     @f.setter             # <<<<<<<<<<<<<<
 *     def f(self, f not None : cudaChannelFormatKind):
 *         self._pvt_ptr[0].f = f.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_f); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_f) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_f) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "f"); __PYX_ERR(0, 5233, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self), ((PyObject *)__pyx_v_f));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, PyObject *__pyx_v_f) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaChannelFormatKind __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5234
 *     @f.setter
 *     def f(self, f not None : cudaChannelFormatKind):
 *         self._pvt_ptr[0].f = f.value             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct0:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaChannelFormatKind)__Pyx_PyLong_As_enum__cudaChannelFormatKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5234, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).f = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":5232
 *             return None
 *         return _dict_cudaChannelFormatKind[self._pvt_ptr[0].f]
 *     @f.setter             # <<<<<<<<<<<<<<
 *     def f(self, f not None : cudaChannelFormatKind):
 *         self._pvt_ptr[0].f = f.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.f.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_21cudaChannelFormatDesc_10__reduce_cython__, "cudaChannelFormatDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_21cudaChannelFormatDesc_12__setstate_cython__, "cudaChannelFormatDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaChannelFormatDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChannelFormatDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5252
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaArraySparseProperties *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5252, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5252, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5252, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 5252, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5252, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5252, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5252, __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.runtime.anon_struct0.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5253
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaArraySparseProperties *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaArraySparseProperties *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":5252
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaArraySparseProperties *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5255
 *         self._pvt_ptr = <cyruntime.cudaArraySparseProperties *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5255, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5255, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5255, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 5255, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5255, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5255, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 5255, __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.runtime.anon_struct0.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5257
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5259
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].tileExtent
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct0_6getPtr, "anon_struct0.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct0_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct0_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5260
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].tileExtent             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).tileExtent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5259
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].tileExtent
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5261
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].tileExtent
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5262
 *         return <void_ptr>&self._pvt_ptr[0].tileExtent
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5263
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5264
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5265
 *             str_list = []
 *             try:
 *                 str_list += ['width : ' + str(self.width)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5265, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5265, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5265, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5265, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5265, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5265, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5264
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5266
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5266, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5267
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5267, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_width_ValueError) != (0)) __PYX_ERR(0, 5267, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5267, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5264
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5268
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5269
 *                 str_list += ['width : <ValueError>']
 *             try:
 *                 str_list += ['height : ' + str(self.height)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5269, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5269, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5269, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5269, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5269, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5269, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5268
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5270
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5270, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5271
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5271, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_height_ValueError) != (0)) __PYX_ERR(0, 5271, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5271, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5268
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5272
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5273
 *                 str_list += ['height : <ValueError>']
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_depth_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5273, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5273, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_depth, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5273, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5273, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5273, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5273, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5272
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5274
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5274, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5275
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5275, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_depth_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_depth_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_depth_ValueError) != (0)) __PYX_ERR(0, 5275, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5275, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":5272
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5276
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5262
 *         return <void_ptr>&self._pvt_ptr[0].tileExtent
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5278
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def width(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5261
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].tileExtent
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5279
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].tileExtent.width
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5width_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5width___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5281
 *     @property
 *     def width(self):
 *         return self._pvt_ptr[0].tileExtent.width             # <<<<<<<<<<<<<<
 *     @width.setter
 *     def width(self, unsigned int width):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).tileExtent.width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5279
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].tileExtent.width
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5282
 *     def width(self):
 *         return self._pvt_ptr[0].tileExtent.width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].tileExtent.width = width
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width) {
  unsigned int __pyx_v_width;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_width); {
    __pyx_v_width = __Pyx_PyLong_As_unsigned_int(__pyx_arg_width); if (unlikely((__pyx_v_width == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5283, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5width_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self), ((unsigned int)__pyx_v_width));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_width) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5284
 *     @width.setter
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].tileExtent.width = width             # <<<<<<<<<<<<<<
 *     @property
 *     def height(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).tileExtent.width = __pyx_v_width;

  /* "cuda/bindings/runtime.pyx":5282
 *     def width(self):
 *         return self._pvt_ptr[0].tileExtent.width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].tileExtent.width = width
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5285
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].tileExtent.width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].tileExtent.height
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_6height_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6height___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5287
 *     @property
 *     def height(self):
 *         return self._pvt_ptr[0].tileExtent.height             # <<<<<<<<<<<<<<
 *     @height.setter
 *     def height(self, unsigned int height):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).tileExtent.height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5285
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].tileExtent.width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].tileExtent.height
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5288
 *     def height(self):
 *         return self._pvt_ptr[0].tileExtent.height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].tileExtent.height = height
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height) {
  unsigned int __pyx_v_height;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_height); {
    __pyx_v_height = __Pyx_PyLong_As_unsigned_int(__pyx_arg_height); if (unlikely((__pyx_v_height == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5289, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6height_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self), ((unsigned int)__pyx_v_height));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_height) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5290
 *     @height.setter
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].tileExtent.height = height             # <<<<<<<<<<<<<<
 *     @property
 *     def depth(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).tileExtent.height = __pyx_v_height;

  /* "cuda/bindings/runtime.pyx":5288
 *     def height(self):
 *         return self._pvt_ptr[0].tileExtent.height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].tileExtent.height = height
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5291
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].tileExtent.height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def depth(self):
 *         return self._pvt_ptr[0].tileExtent.depth
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5depth_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5depth_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5depth___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5depth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5293
 *     @property
 *     def depth(self):
 *         return self._pvt_ptr[0].tileExtent.depth             # <<<<<<<<<<<<<<
 *     @depth.setter
 *     def depth(self, unsigned int depth):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).tileExtent.depth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5291
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].tileExtent.height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def depth(self):
 *         return self._pvt_ptr[0].tileExtent.depth
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.depth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5294
 *     def depth(self):
 *         return self._pvt_ptr[0].tileExtent.depth
 *     @depth.setter             # <<<<<<<<<<<<<<
 *     def depth(self, unsigned int depth):
 *         self._pvt_ptr[0].tileExtent.depth = depth
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth) {
  unsigned int __pyx_v_depth;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_depth); {
    __pyx_v_depth = __Pyx_PyLong_As_unsigned_int(__pyx_arg_depth); if (unlikely((__pyx_v_depth == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5295, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5depth_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self), ((unsigned int)__pyx_v_depth));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_5depth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, unsigned int __pyx_v_depth) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5296
 *     @depth.setter
 *     def depth(self, unsigned int depth):
 *         self._pvt_ptr[0].tileExtent.depth = depth             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaArraySparseProperties:
*/
  (__pyx_v_self->_pvt_ptr[0]).tileExtent.depth = __pyx_v_depth;

  /* "cuda/bindings/runtime.pyx":5294
 *     def depth(self):
 *         return self._pvt_ptr[0].tileExtent.depth
 *     @depth.setter             # <<<<<<<<<<<<<<
 *     def depth(self, unsigned int depth):
 *         self._pvt_ptr[0].tileExtent.depth = depth
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct0_10__reduce_cython__, "anon_struct0.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct0_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct0_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct0_12__setstate_cython__, "anon_struct0.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct0_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct0_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct0.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct0_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct0.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5320
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5320, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5320, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5320, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5320, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5320, __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.runtime.cudaArraySparseProperties.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5321
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5322
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArraySparseProperties *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5321
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5324
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArraySparseProperties *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaArraySparseProperties *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5320
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5325
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArraySparseProperties *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._tileExtent = anon_struct0(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5325, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5325, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5325, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5325, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5325, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5325, __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.runtime.cudaArraySparseProperties.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":5327
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._tileExtent = anon_struct0(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5327, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5327, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5327, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5327, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_tileExtent);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_tileExtent);
  __pyx_v_self->_tileExtent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5325
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArraySparseProperties *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._tileExtent = anon_struct0(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5328
 *         pass
 *         self._tileExtent = anon_struct0(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5330
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_7getPtr(PyObject *__pyx_v_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_7runtime_25cudaArraySparseProperties_6getPtr, "cudaArraySparseProperties.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaArraySparseProperties_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaArraySparseProperties_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5331
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5330
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5332
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_9genexpr90__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5333
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5334
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['tileExtent :\n' + '\n'.join(['    ' + line for line in str(self.tileExtent).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5334, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5335
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['tileExtent :\n' + '\n'.join(['    ' + line for line in str(self.tileExtent).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5336
 *             str_list = []
 *             try:
 *                 str_list += ['tileExtent :\n' + '\n'.join(['    ' + line for line in str(self.tileExtent).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['tileExtent : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5336, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_tileExtent_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5336, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5336, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5336, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5336, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5336, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_9genexpr90__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr90__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5336, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5336, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_9genexpr90__pyx_v_line); __pyx_9genexpr90__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_9genexpr90__pyx_v_line); __pyx_9genexpr90__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5336, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_tileExtent, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5336, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5336, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5336, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5336, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5335
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['tileExtent :\n' + '\n'.join(['    ' + line for line in str(self.tileExtent).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":5337
 *             try:
 *                 str_list += ['tileExtent :\n' + '\n'.join(['    ' + line for line in str(self.tileExtent).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['tileExtent : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 5337, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5338
 *                 str_list += ['tileExtent :\n' + '\n'.join(['    ' + line for line in str(self.tileExtent).splitlines()])]
 *             except ValueError:
 *                 str_list += ['tileExtent : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5338, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_tileExtent_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_tileExtent_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_tileExtent_ValueError) != (0)) __PYX_ERR(0, 5338, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 5338, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5335
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['tileExtent :\n' + '\n'.join(['    ' + line for line in str(self.tileExtent).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5339
 *             except ValueError:
 *                 str_list += ['tileExtent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5340
 *                 str_list += ['tileExtent : <ValueError>']
 *             try:
 *                 str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['miptailFirstLevel : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_miptailFirstLevel_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5340, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5340, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_miptailFirstLevel, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5340, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5340, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 5340, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5340, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":5339
 *             except ValueError:
 *                 str_list += ['tileExtent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":5341
 *             try:
 *                 str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['miptailFirstLevel : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 5341, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5342
 *                 str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)]
 *             except ValueError:
 *                 str_list += ['miptailFirstLevel : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['miptailSize : ' + str(self.miptailSize)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 5342, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_miptailFirstLevel_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_miptailFirstLevel_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_miptailFirstLevel_ValueError) != (0)) __PYX_ERR(0, 5342, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5342, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":5339
 *             except ValueError:
 *                 str_list += ['tileExtent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5343
 *             except ValueError:
 *                 str_list += ['miptailFirstLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['miptailSize : ' + str(self.miptailSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5344
 *                 str_list += ['miptailFirstLevel : <ValueError>']
 *             try:
 *                 str_list += ['miptailSize : ' + str(self.miptailSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['miptailSize : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_miptailSize_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5344, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5344, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_miptailSize, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5344, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5344, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5344, __pyx_L27_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5344, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5343
 *             except ValueError:
 *                 str_list += ['miptailFirstLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['miptailSize : ' + str(self.miptailSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":5345
 *             try:
 *                 str_list += ['miptailSize : ' + str(self.miptailSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['miptailSize : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 5345, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5346
 *                 str_list += ['miptailSize : ' + str(self.miptailSize)]
 *             except ValueError:
 *                 str_list += ['miptailSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5346, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_miptailSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_miptailSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_miptailSize_ValueError) != (0)) __PYX_ERR(0, 5346, __pyx_L29_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 5346, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":5343
 *             except ValueError:
 *                 str_list += ['miptailFirstLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['miptailSize : ' + str(self.miptailSize)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5347
 *             except ValueError:
 *                 str_list += ['miptailSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5348
 *                 str_list += ['miptailSize : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5348, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5348, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5348, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5348, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 5348, __pyx_L35_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5348, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":5347
 *             except ValueError:
 *                 str_list += ['miptailSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":5349
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 5349, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5350
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 5350, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 5350, __pyx_L37_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5350, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":5347
 *             except ValueError:
 *                 str_list += ['miptailSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5351
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5352
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5352, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5352, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5352, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 5352, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5352, __pyx_L43_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5352, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5351
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":5353
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 5353, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5354
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5354, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 5354, __pyx_L45_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 5354, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":5351
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5355
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5355, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5333
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5357
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def tileExtent(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5332
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_9genexpr90__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5358
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def tileExtent(self):
 *         return self._tileExtent
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5360
 *     @property
 *     def tileExtent(self):
 *         return self._tileExtent             # <<<<<<<<<<<<<<
 *     @tileExtent.setter
 *     def tileExtent(self, tileExtent not None : anon_struct0):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_tileExtent);
  __pyx_r = ((PyObject *)__pyx_v_self->_tileExtent);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5358
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def tileExtent(self):
 *         return self._tileExtent
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5361
 *     def tileExtent(self):
 *         return self._tileExtent
 *     @tileExtent.setter             # <<<<<<<<<<<<<<
 *     def tileExtent(self, tileExtent not None : anon_struct0):
 *         string.memcpy(&self._pvt_ptr[0].tileExtent, <cyruntime.anon_struct0*><void_ptr>tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_tileExtent); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_tileExtent) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tileExtent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0, 0, "tileExtent", 0))) __PYX_ERR(0, 5362, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)__pyx_v_tileExtent));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *__pyx_v_tileExtent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5363
 *     @tileExtent.setter
 *     def tileExtent(self, tileExtent not None : anon_struct0):
 *         string.memcpy(&self._pvt_ptr[0].tileExtent, <cyruntime.anon_struct0*><void_ptr>tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent))             # <<<<<<<<<<<<<<
 *     @property
 *     def miptailFirstLevel(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_tileExtent);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5363, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5363, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).tileExtent), ((struct anon_struct0 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).tileExtent))));

  /* "cuda/bindings/runtime.pyx":5361
 *     def tileExtent(self):
 *         return self._tileExtent
 *     @tileExtent.setter             # <<<<<<<<<<<<<<
 *     def tileExtent(self, tileExtent not None : anon_struct0):
 *         string.memcpy(&self._pvt_ptr[0].tileExtent, <cyruntime.anon_struct0*><void_ptr>tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.tileExtent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5364
 *     def tileExtent(self, tileExtent not None : anon_struct0):
 *         string.memcpy(&self._pvt_ptr[0].tileExtent, <cyruntime.anon_struct0*><void_ptr>tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent))
 *     @property             # <<<<<<<<<<<<<<
 *     def miptailFirstLevel(self):
 *         return self._pvt_ptr[0].miptailFirstLevel
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5366
 *     @property
 *     def miptailFirstLevel(self):
 *         return self._pvt_ptr[0].miptailFirstLevel             # <<<<<<<<<<<<<<
 *     @miptailFirstLevel.setter
 *     def miptailFirstLevel(self, unsigned int miptailFirstLevel):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).miptailFirstLevel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5364
 *     def tileExtent(self, tileExtent not None : anon_struct0):
 *         string.memcpy(&self._pvt_ptr[0].tileExtent, <cyruntime.anon_struct0*><void_ptr>tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent))
 *     @property             # <<<<<<<<<<<<<<
 *     def miptailFirstLevel(self):
 *         return self._pvt_ptr[0].miptailFirstLevel
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.miptailFirstLevel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5367
 *     def miptailFirstLevel(self):
 *         return self._pvt_ptr[0].miptailFirstLevel
 *     @miptailFirstLevel.setter             # <<<<<<<<<<<<<<
 *     def miptailFirstLevel(self, unsigned int miptailFirstLevel):
 *         self._pvt_ptr[0].miptailFirstLevel = miptailFirstLevel
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_miptailFirstLevel); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_miptailFirstLevel) {
  unsigned int __pyx_v_miptailFirstLevel;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_miptailFirstLevel); {
    __pyx_v_miptailFirstLevel = __Pyx_PyLong_As_unsigned_int(__pyx_arg_miptailFirstLevel); if (unlikely((__pyx_v_miptailFirstLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5368, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.miptailFirstLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self), ((unsigned int)__pyx_v_miptailFirstLevel));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, unsigned int __pyx_v_miptailFirstLevel) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5369
 *     @miptailFirstLevel.setter
 *     def miptailFirstLevel(self, unsigned int miptailFirstLevel):
 *         self._pvt_ptr[0].miptailFirstLevel = miptailFirstLevel             # <<<<<<<<<<<<<<
 *     @property
 *     def miptailSize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).miptailFirstLevel = __pyx_v_miptailFirstLevel;

  /* "cuda/bindings/runtime.pyx":5367
 *     def miptailFirstLevel(self):
 *         return self._pvt_ptr[0].miptailFirstLevel
 *     @miptailFirstLevel.setter             # <<<<<<<<<<<<<<
 *     def miptailFirstLevel(self, unsigned int miptailFirstLevel):
 *         self._pvt_ptr[0].miptailFirstLevel = miptailFirstLevel
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5370
 *     def miptailFirstLevel(self, unsigned int miptailFirstLevel):
 *         self._pvt_ptr[0].miptailFirstLevel = miptailFirstLevel
 *     @property             # <<<<<<<<<<<<<<
 *     def miptailSize(self):
 *         return self._pvt_ptr[0].miptailSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5372
 *     @property
 *     def miptailSize(self):
 *         return self._pvt_ptr[0].miptailSize             # <<<<<<<<<<<<<<
 *     @miptailSize.setter
 *     def miptailSize(self, unsigned long long miptailSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).miptailSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5370
 *     def miptailFirstLevel(self, unsigned int miptailFirstLevel):
 *         self._pvt_ptr[0].miptailFirstLevel = miptailFirstLevel
 *     @property             # <<<<<<<<<<<<<<
 *     def miptailSize(self):
 *         return self._pvt_ptr[0].miptailSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.miptailSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5373
 *     def miptailSize(self):
 *         return self._pvt_ptr[0].miptailSize
 *     @miptailSize.setter             # <<<<<<<<<<<<<<
 *     def miptailSize(self, unsigned long long miptailSize):
 *         self._pvt_ptr[0].miptailSize = miptailSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_miptailSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_miptailSize) {
  unsigned PY_LONG_LONG __pyx_v_miptailSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_miptailSize); {
    __pyx_v_miptailSize = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_miptailSize); if (unlikely((__pyx_v_miptailSize == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5374, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.miptailSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_miptailSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_miptailSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5375
 *     @miptailSize.setter
 *     def miptailSize(self, unsigned long long miptailSize):
 *         self._pvt_ptr[0].miptailSize = miptailSize             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).miptailSize = __pyx_v_miptailSize;

  /* "cuda/bindings/runtime.pyx":5373
 *     def miptailSize(self):
 *         return self._pvt_ptr[0].miptailSize
 *     @miptailSize.setter             # <<<<<<<<<<<<<<
 *     def miptailSize(self, unsigned long long miptailSize):
 *         self._pvt_ptr[0].miptailSize = miptailSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5376
 *     def miptailSize(self, unsigned long long miptailSize):
 *         self._pvt_ptr[0].miptailSize = miptailSize
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5378
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5376
 *     def miptailSize(self, unsigned long long miptailSize):
 *         self._pvt_ptr[0].miptailSize = miptailSize
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5379
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5380, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5381
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":5379
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5382
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5384
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5382
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5385
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[4];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":5387
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaArrayMemoryRequirements:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 4) < 0))) __PYX_ERR(0, 5387, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (4));

  /* "cuda/bindings/runtime.pyx":5385
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_25cudaArraySparseProperties_10__reduce_cython__, "cudaArraySparseProperties.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_25cudaArraySparseProperties_12__setstate_cython__, "cudaArraySparseProperties.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaArraySparseProperties_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaArraySparseProperties_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaArraySparseProperties.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaArraySparseProperties_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArraySparseProperties.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5407
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5407, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5407, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5407, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5407, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5407, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5407, __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.runtime.cudaArrayMemoryRequirements.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5408
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5409
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArrayMemoryRequirements *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5408
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5411
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArrayMemoryRequirements *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaArrayMemoryRequirements *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5407
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5412
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaArrayMemoryRequirements *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5412, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5412, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5412, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5412, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5412, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5412, __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.runtime.cudaArrayMemoryRequirements.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5414
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5416
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_7getPtr(PyObject *__pyx_v_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_7runtime_27cudaArrayMemoryRequirements_6getPtr, "cudaArrayMemoryRequirements.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5417
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5416
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5418
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5419
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5420
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5421
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5422
 *             str_list = []
 *             try:
 *                 str_list += ['size : ' + str(self.size)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_size_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5422, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5422, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_size, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5422, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5422, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5422, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5422, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5421
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5423
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5423, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5424
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['alignment : ' + str(self.alignment)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5424, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_size_ValueError) != (0)) __PYX_ERR(0, 5424, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5424, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5421
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5425
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['alignment : ' + str(self.alignment)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5426
 *                 str_list += ['size : <ValueError>']
 *             try:
 *                 str_list += ['alignment : ' + str(self.alignment)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['alignment : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_alignment_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5426, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5426, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_alignment, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5426, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5426, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5426, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5426, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5425
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['alignment : ' + str(self.alignment)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5427
 *             try:
 *                 str_list += ['alignment : ' + str(self.alignment)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['alignment : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5427, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5428
 *                 str_list += ['alignment : ' + str(self.alignment)]
 *             except ValueError:
 *                 str_list += ['alignment : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5428, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_alignment_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_alignment_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_alignment_ValueError) != (0)) __PYX_ERR(0, 5428, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5428, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5425
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['alignment : ' + str(self.alignment)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5429
 *             except ValueError:
 *                 str_list += ['alignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5430
 *                 str_list += ['alignment : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5430, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5430, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5430, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5430, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5430, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5430, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5429
 *             except ValueError:
 *                 str_list += ['alignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5431
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5431, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5432
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5432, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 5432, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5432, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":5429
 *             except ValueError:
 *                 str_list += ['alignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5433
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5433, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5419
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5435
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def size(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5418
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5436
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].size
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5438
 *     @property
 *     def size(self):
 *         return self._pvt_ptr[0].size             # <<<<<<<<<<<<<<
 *     @size.setter
 *     def size(self, size_t size):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5436
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].size
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5439
 *     def size(self):
 *         return self._pvt_ptr[0].size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, size_t size):
 *         self._pvt_ptr[0].size = size
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size) {
  size_t __pyx_v_size;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_size); {
    __pyx_v_size = __Pyx_PyLong_As_size_t(__pyx_arg_size); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5440, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self), ((size_t)__pyx_v_size));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, size_t __pyx_v_size) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5441
 *     @size.setter
 *     def size(self, size_t size):
 *         self._pvt_ptr[0].size = size             # <<<<<<<<<<<<<<
 *     @property
 *     def alignment(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).size = __pyx_v_size;

  /* "cuda/bindings/runtime.pyx":5439
 *     def size(self):
 *         return self._pvt_ptr[0].size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, size_t size):
 *         self._pvt_ptr[0].size = size
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5442
 *     def size(self, size_t size):
 *         self._pvt_ptr[0].size = size
 *     @property             # <<<<<<<<<<<<<<
 *     def alignment(self):
 *         return self._pvt_ptr[0].alignment
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5444
 *     @property
 *     def alignment(self):
 *         return self._pvt_ptr[0].alignment             # <<<<<<<<<<<<<<
 *     @alignment.setter
 *     def alignment(self, size_t alignment):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).alignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5442
 *     def size(self, size_t size):
 *         self._pvt_ptr[0].size = size
 *     @property             # <<<<<<<<<<<<<<
 *     def alignment(self):
 *         return self._pvt_ptr[0].alignment
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.alignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5445
 *     def alignment(self):
 *         return self._pvt_ptr[0].alignment
 *     @alignment.setter             # <<<<<<<<<<<<<<
 *     def alignment(self, size_t alignment):
 *         self._pvt_ptr[0].alignment = alignment
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_alignment); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_alignment) {
  size_t __pyx_v_alignment;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_alignment); {
    __pyx_v_alignment = __Pyx_PyLong_As_size_t(__pyx_arg_alignment); if (unlikely((__pyx_v_alignment == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5446, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.alignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self), ((size_t)__pyx_v_alignment));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, size_t __pyx_v_alignment) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5447
 *     @alignment.setter
 *     def alignment(self, size_t alignment):
 *         self._pvt_ptr[0].alignment = alignment             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).alignment = __pyx_v_alignment;

  /* "cuda/bindings/runtime.pyx":5445
 *     def alignment(self):
 *         return self._pvt_ptr[0].alignment
 *     @alignment.setter             # <<<<<<<<<<<<<<
 *     def alignment(self, size_t alignment):
 *         self._pvt_ptr[0].alignment = alignment
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5448
 *     def alignment(self, size_t alignment):
 *         self._pvt_ptr[0].alignment = alignment
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5450
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5448
 *     def alignment(self, size_t alignment):
 *         self._pvt_ptr[0].alignment = alignment
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5451
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[4];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":5453
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaPitchedPtr:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 4) < 0))) __PYX_ERR(0, 5453, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (4));

  /* "cuda/bindings/runtime.pyx":5451
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_27cudaArrayMemoryRequirements_10__reduce_cython__, "cudaArrayMemoryRequirements.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_27cudaArrayMemoryRequirements_12__setstate_cython__, "cudaArrayMemoryRequirements.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaArrayMemoryRequirements.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayMemoryRequirements.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5475
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5475, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5475, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5475, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5475, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5475, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5475, __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.runtime.cudaPitchedPtr.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5476
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5477
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPitchedPtr *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5476
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5479
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPitchedPtr *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaPitchedPtr *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5475
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5480
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPitchedPtr *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5480, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5480, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5480, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5480, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5480, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5480, __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.runtime.cudaPitchedPtr.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5482
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5484
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_7getPtr(PyObject *__pyx_v_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_7runtime_14cudaPitchedPtr_6getPtr, "cudaPitchedPtr.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_14cudaPitchedPtr_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaPitchedPtr_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5485
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5484
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5486
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5487
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5488
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ptr : ' + hex(self.ptr)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5488, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5489
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5490
 *             str_list = []
 *             try:
 *                 str_list += ['ptr : ' + hex(self.ptr)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5490, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5490, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_ptr_3, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5490, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5490, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5490, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5490, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5489
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5491
 *             try:
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5491, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5492
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5492, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ptr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ptr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_ptr_ValueError) != (0)) __PYX_ERR(0, 5492, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5492, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5489
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5493
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5494
 *                 str_list += ['ptr : <ValueError>']
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pitch_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5494, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5494, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pitch, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5494, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5494, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5494, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5494, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5493
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5495
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5495, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5496
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['xsize : ' + str(self.xsize)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5496, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pitch_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pitch_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_pitch_ValueError) != (0)) __PYX_ERR(0, 5496, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5496, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5493
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5497
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['xsize : ' + str(self.xsize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5498
 *                 str_list += ['pitch : <ValueError>']
 *             try:
 *                 str_list += ['xsize : ' + str(self.xsize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['xsize : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_xsize_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5498, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5498, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_xsize, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5498, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5498, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5498, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5498, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5497
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['xsize : ' + str(self.xsize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5499
 *             try:
 *                 str_list += ['xsize : ' + str(self.xsize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['xsize : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5499, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5500
 *                 str_list += ['xsize : ' + str(self.xsize)]
 *             except ValueError:
 *                 str_list += ['xsize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ysize : ' + str(self.ysize)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5500, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_xsize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_xsize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_xsize_ValueError) != (0)) __PYX_ERR(0, 5500, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5500, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":5497
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['xsize : ' + str(self.xsize)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5501
 *             except ValueError:
 *                 str_list += ['xsize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ysize : ' + str(self.ysize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5502
 *                 str_list += ['xsize : <ValueError>']
 *             try:
 *                 str_list += ['ysize : ' + str(self.ysize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ysize : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ysize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5502, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5502, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ysize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5502, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5502, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5502, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5502, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5501
 *             except ValueError:
 *                 str_list += ['xsize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ysize : ' + str(self.ysize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5503
 *             try:
 *                 str_list += ['ysize : ' + str(self.ysize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ysize : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5503, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5504
 *                 str_list += ['ysize : ' + str(self.ysize)]
 *             except ValueError:
 *                 str_list += ['ysize : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5504, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ysize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ysize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_ysize_ValueError) != (0)) __PYX_ERR(0, 5504, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5504, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":5501
 *             except ValueError:
 *                 str_list += ['xsize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ysize : ' + str(self.ysize)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5505
 *             except ValueError:
 *                 str_list += ['ysize : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5487
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5507
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def ptr(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5486
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5508
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].ptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5510
 *     @property
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].ptr             # <<<<<<<<<<<<<<
 *     @ptr.setter
 *     def ptr(self, ptr):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5508
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].ptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.ptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5511
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].ptr
 *     @ptr.setter             # <<<<<<<<<<<<<<
 *     def ptr(self, ptr):
 *         _cptr = _HelperInputVoidPtr(ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ptr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ptr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self), ((PyObject *)__pyx_v_ptr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, PyObject *__pyx_v_ptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cptr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5513
 *     @ptr.setter
 *     def ptr(self, ptr):
 *         _cptr = _HelperInputVoidPtr(ptr)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].ptr = <void*><void_ptr>_cptr.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5513, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5514
 *     def ptr(self, ptr):
 *         _cptr = _HelperInputVoidPtr(ptr)
 *         self._pvt_ptr[0].ptr = <void*><void_ptr>_cptr.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def pitch(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5514, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":5511
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].ptr
 *     @ptr.setter             # <<<<<<<<<<<<<<
 *     def ptr(self, ptr):
 *         _cptr = _HelperInputVoidPtr(ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.ptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cptr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5515
 *         _cptr = _HelperInputVoidPtr(ptr)
 *         self._pvt_ptr[0].ptr = <void*><void_ptr>_cptr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5517
 *     @property
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch             # <<<<<<<<<<<<<<
 *     @pitch.setter
 *     def pitch(self, size_t pitch):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).pitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5515
 *         _cptr = _HelperInputVoidPtr(ptr)
 *         self._pvt_ptr[0].ptr = <void*><void_ptr>_cptr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.pitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5518
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
 *     @pitch.setter             # <<<<<<<<<<<<<<
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch) {
  size_t __pyx_v_pitch;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pitch); {
    __pyx_v_pitch = __Pyx_PyLong_As_size_t(__pyx_arg_pitch); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5519, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self), ((size_t)__pyx_v_pitch));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_pitch) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5520
 *     @pitch.setter
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch             # <<<<<<<<<<<<<<
 *     @property
 *     def xsize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pitch = __pyx_v_pitch;

  /* "cuda/bindings/runtime.pyx":5518
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
 *     @pitch.setter             # <<<<<<<<<<<<<<
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5521
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
 *     @property             # <<<<<<<<<<<<<<
 *     def xsize(self):
 *         return self._pvt_ptr[0].xsize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5523
 *     @property
 *     def xsize(self):
 *         return self._pvt_ptr[0].xsize             # <<<<<<<<<<<<<<
 *     @xsize.setter
 *     def xsize(self, size_t xsize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).xsize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5521
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
 *     @property             # <<<<<<<<<<<<<<
 *     def xsize(self):
 *         return self._pvt_ptr[0].xsize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.xsize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5524
 *     def xsize(self):
 *         return self._pvt_ptr[0].xsize
 *     @xsize.setter             # <<<<<<<<<<<<<<
 *     def xsize(self, size_t xsize):
 *         self._pvt_ptr[0].xsize = xsize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_xsize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_xsize) {
  size_t __pyx_v_xsize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_xsize); {
    __pyx_v_xsize = __Pyx_PyLong_As_size_t(__pyx_arg_xsize); if (unlikely((__pyx_v_xsize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5525, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.xsize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self), ((size_t)__pyx_v_xsize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_xsize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5526
 *     @xsize.setter
 *     def xsize(self, size_t xsize):
 *         self._pvt_ptr[0].xsize = xsize             # <<<<<<<<<<<<<<
 *     @property
 *     def ysize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).xsize = __pyx_v_xsize;

  /* "cuda/bindings/runtime.pyx":5524
 *     def xsize(self):
 *         return self._pvt_ptr[0].xsize
 *     @xsize.setter             # <<<<<<<<<<<<<<
 *     def xsize(self, size_t xsize):
 *         self._pvt_ptr[0].xsize = xsize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5527
 *     def xsize(self, size_t xsize):
 *         self._pvt_ptr[0].xsize = xsize
 *     @property             # <<<<<<<<<<<<<<
 *     def ysize(self):
 *         return self._pvt_ptr[0].ysize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5529
 *     @property
 *     def ysize(self):
 *         return self._pvt_ptr[0].ysize             # <<<<<<<<<<<<<<
 *     @ysize.setter
 *     def ysize(self, size_t ysize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).ysize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5527
 *     def xsize(self, size_t xsize):
 *         self._pvt_ptr[0].xsize = xsize
 *     @property             # <<<<<<<<<<<<<<
 *     def ysize(self):
 *         return self._pvt_ptr[0].ysize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.ysize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5530
 *     def ysize(self):
 *         return self._pvt_ptr[0].ysize
 *     @ysize.setter             # <<<<<<<<<<<<<<
 *     def ysize(self, size_t ysize):
 *         self._pvt_ptr[0].ysize = ysize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ysize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ysize) {
  size_t __pyx_v_ysize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_ysize); {
    __pyx_v_ysize = __Pyx_PyLong_As_size_t(__pyx_arg_ysize); if (unlikely((__pyx_v_ysize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5531, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.ysize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self), ((size_t)__pyx_v_ysize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, size_t __pyx_v_ysize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5532
 *     @ysize.setter
 *     def ysize(self, size_t ysize):
 *         self._pvt_ptr[0].ysize = ysize             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExtent:
*/
  (__pyx_v_self->_pvt_ptr[0]).ysize = __pyx_v_ysize;

  /* "cuda/bindings/runtime.pyx":5530
 *     def ysize(self):
 *         return self._pvt_ptr[0].ysize
 *     @ysize.setter             # <<<<<<<<<<<<<<
 *     def ysize(self, size_t ysize):
 *         self._pvt_ptr[0].ysize = ysize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_14cudaPitchedPtr_10__reduce_cython__, "cudaPitchedPtr.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_14cudaPitchedPtr_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaPitchedPtr_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_14cudaPitchedPtr_12__setstate_cython__, "cudaPitchedPtr.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_14cudaPitchedPtr_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaPitchedPtr_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaPitchedPtr.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaPitchedPtr_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPitchedPtr.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5553
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5553, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5553, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5553, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5553, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5553, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5553, __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.runtime.cudaExtent.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5554
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5555
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExtent *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5554
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5557
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExtent *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExtent *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5553
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5558
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExtent *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5558, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5558, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5558, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5558, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5558, __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.runtime.cudaExtent.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5560
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5562
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_7getPtr(PyObject *__pyx_v_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_7runtime_10cudaExtent_6getPtr, "cudaExtent.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_10cudaExtent_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10cudaExtent_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5563
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5562
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5564
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5565
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5566
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5567
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5568
 *             str_list = []
 *             try:
 *                 str_list += ['width : ' + str(self.width)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5568, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5568, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5568, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5568, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5568, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5568, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5567
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5569
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5569, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5570
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5570, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_width_ValueError) != (0)) __PYX_ERR(0, 5570, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5570, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5567
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5571
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5572
 *                 str_list += ['width : <ValueError>']
 *             try:
 *                 str_list += ['height : ' + str(self.height)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5572, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5572, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5572, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5572, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5572, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5572, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5571
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5573
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5573, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5574
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5574, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_height_ValueError) != (0)) __PYX_ERR(0, 5574, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5574, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5571
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5575
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5576
 *                 str_list += ['height : <ValueError>']
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_depth_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5576, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5576, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_depth, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5576, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5576, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5576, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5576, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5575
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5577
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5577, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5578
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5578, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_depth_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_depth_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_depth_ValueError) != (0)) __PYX_ERR(0, 5578, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5578, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":5575
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5579
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5565
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5581
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def width(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5564
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5582
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5width_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5width___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5584
 *     @property
 *     def width(self):
 *         return self._pvt_ptr[0].width             # <<<<<<<<<<<<<<
 *     @width.setter
 *     def width(self, size_t width):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5582
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5585
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width) {
  size_t __pyx_v_width;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_width); {
    __pyx_v_width = __Pyx_PyLong_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5586, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5width_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self), ((size_t)__pyx_v_width));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, size_t __pyx_v_width) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5587
 *     @width.setter
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width             # <<<<<<<<<<<<<<
 *     @property
 *     def height(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).width = __pyx_v_width;

  /* "cuda/bindings/runtime.pyx":5585
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5588
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_6height_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6height___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5590
 *     @property
 *     def height(self):
 *         return self._pvt_ptr[0].height             # <<<<<<<<<<<<<<
 *     @height.setter
 *     def height(self, size_t height):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5588
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5591
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height) {
  size_t __pyx_v_height;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_height); {
    __pyx_v_height = __Pyx_PyLong_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5592, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6height_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self), ((size_t)__pyx_v_height));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, size_t __pyx_v_height) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5593
 *     @height.setter
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height             # <<<<<<<<<<<<<<
 *     @property
 *     def depth(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).height = __pyx_v_height;

  /* "cuda/bindings/runtime.pyx":5591
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5594
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5depth_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5depth_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5depth___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5depth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5596
 *     @property
 *     def depth(self):
 *         return self._pvt_ptr[0].depth             # <<<<<<<<<<<<<<
 *     @depth.setter
 *     def depth(self, size_t depth):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).depth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5594
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.depth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5597
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
 *     @depth.setter             # <<<<<<<<<<<<<<
 *     def depth(self, size_t depth):
 *         self._pvt_ptr[0].depth = depth
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth) {
  size_t __pyx_v_depth;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_depth); {
    __pyx_v_depth = __Pyx_PyLong_As_size_t(__pyx_arg_depth); if (unlikely((__pyx_v_depth == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5598, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5depth_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self), ((size_t)__pyx_v_depth));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_5depth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, size_t __pyx_v_depth) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5599
 *     @depth.setter
 *     def depth(self, size_t depth):
 *         self._pvt_ptr[0].depth = depth             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaPos:
*/
  (__pyx_v_self->_pvt_ptr[0]).depth = __pyx_v_depth;

  /* "cuda/bindings/runtime.pyx":5597
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
 *     @depth.setter             # <<<<<<<<<<<<<<
 *     def depth(self, size_t depth):
 *         self._pvt_ptr[0].depth = depth
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_10cudaExtent_10__reduce_cython__, "cudaExtent.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_10cudaExtent_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10cudaExtent_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_10cudaExtent_12__setstate_cython__, "cudaExtent.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_10cudaExtent_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10cudaExtent_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExtent.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaExtent_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExtent.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5619
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5619, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5619, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5619, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5619, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5619, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5619, __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.runtime.cudaPos.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5620
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5621
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPos *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5620
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5623
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPos *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaPos *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5619
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5624
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPos *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5624, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5624, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5624, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5624, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5624, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5624, __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.runtime.cudaPos.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5626
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5628
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_7getPtr(PyObject *__pyx_v_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_7runtime_7cudaPos_6getPtr, "cudaPos.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_7cudaPos_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_7cudaPos_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5629
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5628
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5630
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5631
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5632
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5633
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5634
 *             str_list = []
 *             try:
 *                 str_list += ['x : ' + str(self.x)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5634, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5634, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5634, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5634, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5634, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5634, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5633
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5635
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5635, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5636
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5636, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_x_ValueError) != (0)) __PYX_ERR(0, 5636, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5636, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5633
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5637
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5638
 *                 str_list += ['x : <ValueError>']
 *             try:
 *                 str_list += ['y : ' + str(self.y)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5638, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5638, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5638, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5638, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5638, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5638, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5637
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5639
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5639, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5640
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5640, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_y_ValueError) != (0)) __PYX_ERR(0, 5640, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5640, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5637
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5641
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5642
 *                 str_list += ['y : <ValueError>']
 *             try:
 *                 str_list += ['z : ' + str(self.z)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5642, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5642, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5642, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5642, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5642, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5642, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5641
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5643
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5643, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5644
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5644, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_z_ValueError) != (0)) __PYX_ERR(0, 5644, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5644, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":5641
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5645
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5645, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5631
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5647
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def x(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5630
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5648
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].x
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1x_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1x___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5650
 *     @property
 *     def x(self):
 *         return self._pvt_ptr[0].x             # <<<<<<<<<<<<<<
 *     @x.setter
 *     def x(self, size_t x):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5650, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5648
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].x
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5651
 *     def x(self):
 *         return self._pvt_ptr[0].x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x) {
  size_t __pyx_v_x;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_x); {
    __pyx_v_x = __Pyx_PyLong_As_size_t(__pyx_arg_x); if (unlikely((__pyx_v_x == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5652, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1x_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self), ((size_t)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, size_t __pyx_v_x) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5653
 *     @x.setter
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x             # <<<<<<<<<<<<<<
 *     @property
 *     def y(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).x = __pyx_v_x;

  /* "cuda/bindings/runtime.pyx":5651
 *     def x(self):
 *         return self._pvt_ptr[0].x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5654
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].y
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1y_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1y___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5656
 *     @property
 *     def y(self):
 *         return self._pvt_ptr[0].y             # <<<<<<<<<<<<<<
 *     @y.setter
 *     def y(self, size_t y):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5654
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].y
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5657
 *     def y(self):
 *         return self._pvt_ptr[0].y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y) {
  size_t __pyx_v_y;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_y); {
    __pyx_v_y = __Pyx_PyLong_As_size_t(__pyx_arg_y); if (unlikely((__pyx_v_y == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5658, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1y_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self), ((size_t)__pyx_v_y));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, size_t __pyx_v_y) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5659
 *     @y.setter
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y             # <<<<<<<<<<<<<<
 *     @property
 *     def z(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).y = __pyx_v_y;

  /* "cuda/bindings/runtime.pyx":5657
 *     def y(self):
 *         return self._pvt_ptr[0].y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5660
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].z
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1z_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1z___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5662
 *     @property
 *     def z(self):
 *         return self._pvt_ptr[0].z             # <<<<<<<<<<<<<<
 *     @z.setter
 *     def z(self, size_t z):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5660
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].z
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5663
 *     def z(self):
 *         return self._pvt_ptr[0].z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, size_t z):
 *         self._pvt_ptr[0].z = z
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z) {
  size_t __pyx_v_z;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_z); {
    __pyx_v_z = __Pyx_PyLong_As_size_t(__pyx_arg_z); if (unlikely((__pyx_v_z == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 5664, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1z_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self), ((size_t)__pyx_v_z));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, size_t __pyx_v_z) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5665
 *     @z.setter
 *     def z(self, size_t z):
 *         self._pvt_ptr[0].z = z             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemcpy3DParms:
*/
  (__pyx_v_self->_pvt_ptr[0]).z = __pyx_v_z;

  /* "cuda/bindings/runtime.pyx":5663
 *     def z(self):
 *         return self._pvt_ptr[0].z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, size_t z):
 *         self._pvt_ptr[0].z = z
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_7cudaPos_10__reduce_cython__, "cudaPos.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_7cudaPos_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_7cudaPos_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_7cudaPos_12__setstate_cython__, "cudaPos.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_7cudaPos_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_7cudaPos_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaPos.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_7cudaPos_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_7cudaPos_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPos.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5695
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5695, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5695, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5695, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5695, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5695, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5695, __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.runtime.cudaMemcpy3DParms.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5696
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5697
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DParms *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5696
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5699
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DParms *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemcpy3DParms *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5695
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5700
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DParms *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5700, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5700, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5700, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5700, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5700, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5700, __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.runtime.cudaMemcpy3DParms.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":5702
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)             # <<<<<<<<<<<<<<
 *         self._srcPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].srcPos)
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).srcArray))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5702, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5702, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcArray);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_srcArray);
  __pyx_v_self->_srcArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5703
 *         pass
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)
 *         self._srcPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].srcPos)             # <<<<<<<<<<<<<<
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).srcPos))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5703, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5703, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcPos);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_srcPos);
  __pyx_v_self->_srcPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5704
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)
 *         self._srcPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].srcPos)
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)             # <<<<<<<<<<<<<<
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).srcPtr))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5704, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5704, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcPtr);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_srcPtr);
  __pyx_v_self->_srcPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5705
 *         self._srcPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].srcPos)
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)             # <<<<<<<<<<<<<<
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).dstArray))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5705, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5705, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5705, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstArray);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_dstArray);
  __pyx_v_self->_dstArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5706
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)             # <<<<<<<<<<<<<<
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).dstPos))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5706, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5706, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstPos);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_dstPos);
  __pyx_v_self->_dstPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5707
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)             # <<<<<<<<<<<<<<
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).dstPtr))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5707, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5707, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5707, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstPtr);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_dstPtr);
  __pyx_v_self->_dstPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5708
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).extent))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5708, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5708, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5708, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_extent);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_extent);
  __pyx_v_self->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5700
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DParms *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5709
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5711
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_7getPtr(PyObject *__pyx_v_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_7runtime_17cudaMemcpy3DParms_6getPtr, "cudaMemcpy3DParms.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5712
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5711
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5713
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_9genexpr91__pyx_v_line = NULL;
  PyObject *__pyx_9genexpr92__pyx_v_line = NULL;
  PyObject *__pyx_9genexpr93__pyx_v_line = NULL;
  PyObject *__pyx_9genexpr94__pyx_v_line = NULL;
  PyObject *__pyx_9genexpr95__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5714
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5715
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5715, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5716
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5717
 *             str_list = []
 *             try:
 *                 str_list += ['srcArray : ' + str(self.srcArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5717, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5717, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5717, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5717, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5717, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5717, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5716
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5718
 *             try:
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5718, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5719
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5719, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_srcArray_ValueError) != (0)) __PYX_ERR(0, 5719, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5719, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5716
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5720
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5721
 *                 str_list += ['srcArray : <ValueError>']
 *             try:
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5721, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcPos_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5721, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5721, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5721, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5721, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5721, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_9genexpr91__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr91__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5721, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5721, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_9genexpr91__pyx_v_line); __pyx_9genexpr91__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_9genexpr91__pyx_v_line); __pyx_9genexpr91__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5721, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcPos, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5721, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5721, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5721, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5721, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5720
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5722
 *             try:
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPos : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 5722, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5723
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5723, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcPos_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcPos_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_srcPos_ValueError) != (0)) __PYX_ERR(0, 5723, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5723, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5720
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5724
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5725
 *                 str_list += ['srcPos : <ValueError>']
 *             try:
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5725, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5725, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5725, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5725, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5725, __pyx_L35_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5725, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_9genexpr92__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr92__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5725, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 5725, __pyx_L35_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_line); __pyx_9genexpr92__pyx_v_line = 0;
          goto __pyx_L39_exit_scope;
          __pyx_L35_error:;
          __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_line); __pyx_9genexpr92__pyx_v_line = 0;
          goto __pyx_L27_error;
          __pyx_L39_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5725, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcPtr, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5725, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5725, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 5725, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5725, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":5724
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5726
 *             try:
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 5726, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5727
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5727, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcPtr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcPtr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_srcPtr_ValueError) != (0)) __PYX_ERR(0, 5727, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5727, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":5724
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5728
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5729
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:
 *                 str_list += ['dstArray : ' + str(self.dstArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dstArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5729, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5729, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dstArray, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5729, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5729, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5729, __pyx_L42_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5729, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5728
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L47_try_end;
      __pyx_L42_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5730
 *             try:
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 5730, __pyx_L44_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5731
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5731, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dstArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dstArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_dstArray_ValueError) != (0)) __PYX_ERR(0, 5731, __pyx_L44_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5731, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L43_exception_handled;
      }
      goto __pyx_L44_except_error;

      /* "cuda/bindings/runtime.pyx":5728
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:
*/
      __pyx_L44_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L43_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L47_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5732
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5733
 *                 str_list += ['dstArray : <ValueError>']
 *             try:
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5733, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dstPos_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5733, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5733, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5733, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_8; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5733, __pyx_L58_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5733, __pyx_L58_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_9genexpr93__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr93__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5733, __pyx_L58_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 5733, __pyx_L58_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_9genexpr93__pyx_v_line); __pyx_9genexpr93__pyx_v_line = 0;
          goto __pyx_L62_exit_scope;
          __pyx_L58_error:;
          __Pyx_XDECREF(__pyx_9genexpr93__pyx_v_line); __pyx_9genexpr93__pyx_v_line = 0;
          goto __pyx_L50_error;
          __pyx_L62_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5733, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dstPos, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5733, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5733, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 5733, __pyx_L50_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5733, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":5732
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L55_try_end;
      __pyx_L50_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5734
 *             try:
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPos : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 5734, __pyx_L52_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5735
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5735, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dstPos_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dstPos_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_dstPos_ValueError) != (0)) __PYX_ERR(0, 5735, __pyx_L52_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5735, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L51_exception_handled;
      }
      goto __pyx_L52_except_error;

      /* "cuda/bindings/runtime.pyx":5732
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:
*/
      __pyx_L52_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L51_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L55_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5736
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5737
 *                 str_list += ['dstPos : <ValueError>']
 *             try:
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5737, __pyx_L73_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dstPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5737, __pyx_L73_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5737, __pyx_L73_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5737, __pyx_L73_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_2; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5737, __pyx_L73_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5737, __pyx_L73_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_9genexpr94__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr94__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5737, __pyx_L73_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 5737, __pyx_L73_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_9genexpr94__pyx_v_line); __pyx_9genexpr94__pyx_v_line = 0;
          goto __pyx_L77_exit_scope;
          __pyx_L73_error:;
          __Pyx_XDECREF(__pyx_9genexpr94__pyx_v_line); __pyx_9genexpr94__pyx_v_line = 0;
          goto __pyx_L65_error;
          __pyx_L77_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5737, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dstPtr, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5737, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5737, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5737, __pyx_L65_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5737, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5736
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L70_try_end;
      __pyx_L65_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5738
 *             try:
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5738, __pyx_L67_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5739
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5739, __pyx_L67_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dstPtr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dstPtr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_dstPtr_ValueError) != (0)) __PYX_ERR(0, 5739, __pyx_L67_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5739, __pyx_L67_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L66_exception_handled;
      }
      goto __pyx_L67_except_error;

      /* "cuda/bindings/runtime.pyx":5736
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:
*/
      __pyx_L67_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L66_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L70_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5740
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5741
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5741, __pyx_L88_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extent_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5741, __pyx_L88_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5741, __pyx_L88_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5741, __pyx_L88_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_6; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5741, __pyx_L88_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5741, __pyx_L88_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_9genexpr95__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr95__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5741, __pyx_L88_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5741, __pyx_L88_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_line); __pyx_9genexpr95__pyx_v_line = 0;
          goto __pyx_L92_exit_scope;
          __pyx_L88_error:;
          __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_line); __pyx_9genexpr95__pyx_v_line = 0;
          goto __pyx_L80_error;
          __pyx_L92_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5741, __pyx_L80_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extent, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5741, __pyx_L80_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5741, __pyx_L80_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5741, __pyx_L80_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5741, __pyx_L80_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5740
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L85_try_end;
      __pyx_L80_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5742
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 5742, __pyx_L82_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5743
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['kind : ' + str(self.kind)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5743, __pyx_L82_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extent_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extent_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_extent_ValueError) != (0)) __PYX_ERR(0, 5743, __pyx_L82_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5743, __pyx_L82_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L81_exception_handled;
      }
      goto __pyx_L82_except_error;

      /* "cuda/bindings/runtime.pyx":5740
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
      __pyx_L82_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L81_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L85_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5744
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kind : ' + str(self.kind)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5745
 *                 str_list += ['extent : <ValueError>']
 *             try:
 *                 str_list += ['kind : ' + str(self.kind)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['kind : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_kind_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5745, __pyx_L95_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5745, __pyx_L95_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_kind, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5745, __pyx_L95_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5745, __pyx_L95_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 5745, __pyx_L95_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5745, __pyx_L95_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":5744
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kind : ' + str(self.kind)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L100_try_end;
      __pyx_L95_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5746
 *             try:
 *                 str_list += ['kind : ' + str(self.kind)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['kind : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 5746, __pyx_L97_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5747
 *                 str_list += ['kind : ' + str(self.kind)]
 *             except ValueError:
 *                 str_list += ['kind : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5747, __pyx_L97_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_kind_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_kind_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_kind_ValueError) != (0)) __PYX_ERR(0, 5747, __pyx_L97_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5747, __pyx_L97_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L96_exception_handled;
      }
      goto __pyx_L97_except_error;

      /* "cuda/bindings/runtime.pyx":5744
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kind : ' + str(self.kind)]
 *             except ValueError:
*/
      __pyx_L97_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L96_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L100_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5748
 *             except ValueError:
 *                 str_list += ['kind : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5748, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5714
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5750
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def srcArray(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5713
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_9genexpr91__pyx_v_line);
  __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_line);
  __Pyx_XDECREF(__pyx_9genexpr93__pyx_v_line);
  __Pyx_XDECREF(__pyx_9genexpr94__pyx_v_line);
  __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5751
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def srcArray(self):
 *         return self._srcArray
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5753
 *     @property
 *     def srcArray(self):
 *         return self._srcArray             # <<<<<<<<<<<<<<
 *     @srcArray.setter
 *     def srcArray(self, srcArray):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_srcArray);
  __pyx_r = ((PyObject *)__pyx_v_self->_srcArray);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5751
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def srcArray(self):
 *         return self._srcArray
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5754
 *     def srcArray(self):
 *         return self._srcArray
 *     @srcArray.setter             # <<<<<<<<<<<<<<
 *     def srcArray(self, srcArray):
 *         cdef cyruntime.cudaArray_t cysrcArray
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcArray); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcArray) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), ((PyObject *)__pyx_v_srcArray));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_srcArray) {
  cudaArray_t __pyx_v_cysrcArray;
  PyObject *__pyx_v_psrcArray = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5757
 *     def srcArray(self, srcArray):
 *         cdef cyruntime.cudaArray_t cysrcArray
 *         if srcArray is None:             # <<<<<<<<<<<<<<
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_srcArray == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5758
 *         cdef cyruntime.cudaArray_t cysrcArray
 *         if srcArray is None:
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(srcArray, (cudaArray_t,)):
 *             psrcArray = int(srcArray)
*/
    __pyx_v_cysrcArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":5757
 *     def srcArray(self, srcArray):
 *         cdef cyruntime.cudaArray_t cysrcArray
 *         if srcArray is None:             # <<<<<<<<<<<<<<
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5759
 *         if srcArray is None:
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             psrcArray = int(srcArray)
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_srcArray, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5760
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):
 *             psrcArray = int(srcArray)             # <<<<<<<<<<<<<<
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_srcArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_psrcArray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5761
 *         elif isinstance(srcArray, (cudaArray_t,)):
 *             psrcArray = int(srcArray)
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray             # <<<<<<<<<<<<<<
 *         else:
 *             psrcArray = int(cudaArray_t(srcArray))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrcArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5761, __pyx_L1_error)
    __pyx_v_cysrcArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":5759
 *         if srcArray is None:
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             psrcArray = int(srcArray)
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5763
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         else:
 *             psrcArray = int(cudaArray_t(srcArray))             # <<<<<<<<<<<<<<
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         self._srcArray._pvt_ptr[0] = cysrcArray
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_srcArray};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5763, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_psrcArray = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":5764
 *         else:
 *             psrcArray = int(cudaArray_t(srcArray))
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray             # <<<<<<<<<<<<<<
 *         self._srcArray._pvt_ptr[0] = cysrcArray
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrcArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5764, __pyx_L1_error)
    __pyx_v_cysrcArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5765
 *             psrcArray = int(cudaArray_t(srcArray))
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         self._srcArray._pvt_ptr[0] = cysrcArray             # <<<<<<<<<<<<<<
 *     @property
 *     def srcPos(self):
*/
  (__pyx_v_self->_srcArray->_pvt_ptr[0]) = __pyx_v_cysrcArray;

  /* "cuda/bindings/runtime.pyx":5754
 *     def srcArray(self):
 *         return self._srcArray
 *     @srcArray.setter             # <<<<<<<<<<<<<<
 *     def srcArray(self, srcArray):
 *         cdef cyruntime.cudaArray_t cysrcArray
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.srcArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psrcArray);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5766
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         self._srcArray._pvt_ptr[0] = cysrcArray
 *     @property             # <<<<<<<<<<<<<<
 *     def srcPos(self):
 *         return self._srcPos
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5768
 *     @property
 *     def srcPos(self):
 *         return self._srcPos             # <<<<<<<<<<<<<<
 *     @srcPos.setter
 *     def srcPos(self, srcPos not None : cudaPos):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_srcPos);
  __pyx_r = ((PyObject *)__pyx_v_self->_srcPos);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5766
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         self._srcArray._pvt_ptr[0] = cysrcArray
 *     @property             # <<<<<<<<<<<<<<
 *     def srcPos(self):
 *         return self._srcPos
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5769
 *     def srcPos(self):
 *         return self._srcPos
 *     @srcPos.setter             # <<<<<<<<<<<<<<
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPos); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPos) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_srcPos), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, 0, "srcPos", 0))) __PYX_ERR(0, 5770, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_srcPos));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_srcPos) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5771
 *     @srcPos.setter
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))             # <<<<<<<<<<<<<<
 *     @property
 *     def srcPtr(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_srcPos);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5771, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5771, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).srcPos), ((struct cudaPos *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).srcPos))));

  /* "cuda/bindings/runtime.pyx":5769
 *     def srcPos(self):
 *         return self._srcPos
 *     @srcPos.setter             # <<<<<<<<<<<<<<
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.srcPos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5772
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))
 *     @property             # <<<<<<<<<<<<<<
 *     def srcPtr(self):
 *         return self._srcPtr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5774
 *     @property
 *     def srcPtr(self):
 *         return self._srcPtr             # <<<<<<<<<<<<<<
 *     @srcPtr.setter
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_srcPtr);
  __pyx_r = ((PyObject *)__pyx_v_self->_srcPtr);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5772
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))
 *     @property             # <<<<<<<<<<<<<<
 *     def srcPtr(self):
 *         return self._srcPtr
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5775
 *     def srcPtr(self):
 *         return self._srcPtr
 *     @srcPtr.setter             # <<<<<<<<<<<<<<
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPtr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPtr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_srcPtr), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, 0, "srcPtr", 0))) __PYX_ERR(0, 5776, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_srcPtr));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_srcPtr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5777
 *     @srcPtr.setter
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))             # <<<<<<<<<<<<<<
 *     @property
 *     def dstArray(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_srcPtr);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5777, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).srcPtr), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).srcPtr))));

  /* "cuda/bindings/runtime.pyx":5775
 *     def srcPtr(self):
 *         return self._srcPtr
 *     @srcPtr.setter             # <<<<<<<<<<<<<<
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.srcPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5778
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstArray(self):
 *         return self._dstArray
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5780
 *     @property
 *     def dstArray(self):
 *         return self._dstArray             # <<<<<<<<<<<<<<
 *     @dstArray.setter
 *     def dstArray(self, dstArray):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_dstArray);
  __pyx_r = ((PyObject *)__pyx_v_self->_dstArray);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5778
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstArray(self):
 *         return self._dstArray
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5781
 *     def dstArray(self):
 *         return self._dstArray
 *     @dstArray.setter             # <<<<<<<<<<<<<<
 *     def dstArray(self, dstArray):
 *         cdef cyruntime.cudaArray_t cydstArray
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstArray); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstArray) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), ((PyObject *)__pyx_v_dstArray));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_dstArray) {
  cudaArray_t __pyx_v_cydstArray;
  PyObject *__pyx_v_pdstArray = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5784
 *     def dstArray(self, dstArray):
 *         cdef cyruntime.cudaArray_t cydstArray
 *         if dstArray is None:             # <<<<<<<<<<<<<<
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_dstArray == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5785
 *         cdef cyruntime.cudaArray_t cydstArray
 *         if dstArray is None:
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(dstArray, (cudaArray_t,)):
 *             pdstArray = int(dstArray)
*/
    __pyx_v_cydstArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":5784
 *     def dstArray(self, dstArray):
 *         cdef cyruntime.cudaArray_t cydstArray
 *         if dstArray is None:             # <<<<<<<<<<<<<<
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5786
 *         if dstArray is None:
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             pdstArray = int(dstArray)
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dstArray, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5787
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):
 *             pdstArray = int(dstArray)             # <<<<<<<<<<<<<<
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_dstArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5787, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pdstArray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5788
 *         elif isinstance(dstArray, (cudaArray_t,)):
 *             pdstArray = int(dstArray)
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray             # <<<<<<<<<<<<<<
 *         else:
 *             pdstArray = int(cudaArray_t(dstArray))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdstArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5788, __pyx_L1_error)
    __pyx_v_cydstArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":5786
 *         if dstArray is None:
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             pdstArray = int(dstArray)
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5790
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         else:
 *             pdstArray = int(cudaArray_t(dstArray))             # <<<<<<<<<<<<<<
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         self._dstArray._pvt_ptr[0] = cydstArray
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_dstArray};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5790, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pdstArray = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":5791
 *         else:
 *             pdstArray = int(cudaArray_t(dstArray))
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray             # <<<<<<<<<<<<<<
 *         self._dstArray._pvt_ptr[0] = cydstArray
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdstArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5791, __pyx_L1_error)
    __pyx_v_cydstArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5792
 *             pdstArray = int(cudaArray_t(dstArray))
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         self._dstArray._pvt_ptr[0] = cydstArray             # <<<<<<<<<<<<<<
 *     @property
 *     def dstPos(self):
*/
  (__pyx_v_self->_dstArray->_pvt_ptr[0]) = __pyx_v_cydstArray;

  /* "cuda/bindings/runtime.pyx":5781
 *     def dstArray(self):
 *         return self._dstArray
 *     @dstArray.setter             # <<<<<<<<<<<<<<
 *     def dstArray(self, dstArray):
 *         cdef cyruntime.cudaArray_t cydstArray
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.dstArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pdstArray);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5793
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         self._dstArray._pvt_ptr[0] = cydstArray
 *     @property             # <<<<<<<<<<<<<<
 *     def dstPos(self):
 *         return self._dstPos
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5795
 *     @property
 *     def dstPos(self):
 *         return self._dstPos             # <<<<<<<<<<<<<<
 *     @dstPos.setter
 *     def dstPos(self, dstPos not None : cudaPos):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_dstPos);
  __pyx_r = ((PyObject *)__pyx_v_self->_dstPos);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5793
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         self._dstArray._pvt_ptr[0] = cydstArray
 *     @property             # <<<<<<<<<<<<<<
 *     def dstPos(self):
 *         return self._dstPos
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5796
 *     def dstPos(self):
 *         return self._dstPos
 *     @dstPos.setter             # <<<<<<<<<<<<<<
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPos); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPos) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstPos), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, 0, "dstPos", 0))) __PYX_ERR(0, 5797, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_dstPos));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_dstPos) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5798
 *     @dstPos.setter
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))             # <<<<<<<<<<<<<<
 *     @property
 *     def dstPtr(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_dstPos);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5798, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).dstPos), ((struct cudaPos *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).dstPos))));

  /* "cuda/bindings/runtime.pyx":5796
 *     def dstPos(self):
 *         return self._dstPos
 *     @dstPos.setter             # <<<<<<<<<<<<<<
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.dstPos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5799
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstPtr(self):
 *         return self._dstPtr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5801
 *     @property
 *     def dstPtr(self):
 *         return self._dstPtr             # <<<<<<<<<<<<<<
 *     @dstPtr.setter
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_dstPtr);
  __pyx_r = ((PyObject *)__pyx_v_self->_dstPtr);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5799
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstPtr(self):
 *         return self._dstPtr
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5802
 *     def dstPtr(self):
 *         return self._dstPtr
 *     @dstPtr.setter             # <<<<<<<<<<<<<<
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPtr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPtr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstPtr), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, 0, "dstPtr", 0))) __PYX_ERR(0, 5803, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_dstPtr));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_dstPtr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5804
 *     @dstPtr.setter
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))             # <<<<<<<<<<<<<<
 *     @property
 *     def extent(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_dstPtr);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5804, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5804, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).dstPtr), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).dstPtr))));

  /* "cuda/bindings/runtime.pyx":5802
 *     def dstPtr(self):
 *         return self._dstPtr
 *     @dstPtr.setter             # <<<<<<<<<<<<<<
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.dstPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5805
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))
 *     @property             # <<<<<<<<<<<<<<
 *     def extent(self):
 *         return self._extent
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5807
 *     @property
 *     def extent(self):
 *         return self._extent             # <<<<<<<<<<<<<<
 *     @extent.setter
 *     def extent(self, extent not None : cudaExtent):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_extent);
  __pyx_r = ((PyObject *)__pyx_v_self->_extent);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5805
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))
 *     @property             # <<<<<<<<<<<<<<
 *     def extent(self):
 *         return self._extent
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5808
 *     def extent(self):
 *         return self._extent
 *     @extent.setter             # <<<<<<<<<<<<<<
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 5809, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_extent));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5810
 *     @extent.setter
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))             # <<<<<<<<<<<<<<
 *     @property
 *     def kind(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_extent);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5810, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).extent), ((struct cudaExtent *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).extent))));

  /* "cuda/bindings/runtime.pyx":5808
 *     def extent(self):
 *         return self._extent
 *     @extent.setter             # <<<<<<<<<<<<<<
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.extent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5811
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
 *     @property             # <<<<<<<<<<<<<<
 *     def kind(self):
 *         if self._pvt_ptr[0].kind not in _dict_cudaMemcpyKind:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5813
 *     @property
 *     def kind(self):
 *         if self._pvt_ptr[0].kind not in _dict_cudaMemcpyKind:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemcpyKind[self._pvt_ptr[0].kind]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemcpyKind((__pyx_v_self->_pvt_ptr[0]).kind); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpyKind); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 5813, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":5814
 *     def kind(self):
 *         if self._pvt_ptr[0].kind not in _dict_cudaMemcpyKind:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemcpyKind[self._pvt_ptr[0].kind]
 *     @kind.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5813
 *     @property
 *     def kind(self):
 *         if self._pvt_ptr[0].kind not in _dict_cudaMemcpyKind:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemcpyKind[self._pvt_ptr[0].kind]
*/
  }

  /* "cuda/bindings/runtime.pyx":5815
 *         if self._pvt_ptr[0].kind not in _dict_cudaMemcpyKind:
 *             return None
 *         return _dict_cudaMemcpyKind[self._pvt_ptr[0].kind]             # <<<<<<<<<<<<<<
 *     @kind.setter
 *     def kind(self, kind not None : cudaMemcpyKind):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpyKind); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemcpyKind((__pyx_v_self->_pvt_ptr[0]).kind); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5811
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
 *     @property             # <<<<<<<<<<<<<<
 *     def kind(self):
 *         if self._pvt_ptr[0].kind not in _dict_cudaMemcpyKind:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.kind.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5816
 *             return None
 *         return _dict_cudaMemcpyKind[self._pvt_ptr[0].kind]
 *     @kind.setter             # <<<<<<<<<<<<<<
 *     def kind(self, kind not None : cudaMemcpyKind):
 *         self._pvt_ptr[0].kind = kind.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kind); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kind) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 5817, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), ((PyObject *)__pyx_v_kind));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, PyObject *__pyx_v_kind) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemcpyKind __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5818
 *     @kind.setter
 *     def kind(self, kind not None : cudaMemcpyKind):
 *         self._pvt_ptr[0].kind = kind.value             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemcpyNodeParams:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 5818, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).kind = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":5816
 *             return None
 *         return _dict_cudaMemcpyKind[self._pvt_ptr[0].kind]
 *     @kind.setter             # <<<<<<<<<<<<<<
 *     def kind(self, kind not None : cudaMemcpyKind):
 *         self._pvt_ptr[0].kind = kind.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.kind.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_17cudaMemcpy3DParms_10__reduce_cython__, "cudaMemcpy3DParms.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_17cudaMemcpy3DParms_12__setstate_cython__, "cudaMemcpy3DParms.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemcpy3DParms.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DParms.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5841
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5841, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5841, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5841, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5841, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5841, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5841, __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.runtime.cudaMemcpyNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5842
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5843
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpyNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5842
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5845
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpyNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemcpyNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5841
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5846
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpyNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5846, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5846, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5846, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5846, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5846, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5846, __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.runtime.cudaMemcpyNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":5848
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)             # <<<<<<<<<<<<<<
 *         self._copyParams = cudaMemcpy3DParms(_ptr=<void_ptr>&self._pvt_ptr[0].copyParams)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).ctx))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5848, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5848, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5848, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_ctx);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_ctx);
  __pyx_v_self->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5849
 *         pass
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
 *         self._copyParams = cudaMemcpy3DParms(_ptr=<void_ptr>&self._pvt_ptr[0].copyParams)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).copyParams))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5849, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5849, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5849, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_copyParams);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_copyParams);
  __pyx_v_self->_copyParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5846
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpyNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5850
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
 *         self._copyParams = cudaMemcpy3DParms(_ptr=<void_ptr>&self._pvt_ptr[0].copyParams)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5852
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_20cudaMemcpyNodeParams_6getPtr, "cudaMemcpyNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5853
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5852
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5854
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_9genexpr96__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5855
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5856
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5856, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5857
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5858
 *             str_list = []
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5858, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5858, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5858, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5858, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5858, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5858, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5857
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5859
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5859, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5860
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5860, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 5860, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5860, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5857
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5861
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5862
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5862, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5862, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5862, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5862, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5862, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5862, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5861
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5863
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5863, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5864
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5864, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 5864, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5864, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5861
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5865
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5866
 *                 str_list += ['reserved : <ValueError>']
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ctx_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5866, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5866, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ctx, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5866, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5866, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5866, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5866, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5865
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5867
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5867, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5868
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['copyParams :\n' + '\n'.join(['    ' + line for line in str(self.copyParams).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5868, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ctx_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ctx_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_ctx_ValueError) != (0)) __PYX_ERR(0, 5868, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5868, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":5865
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5869
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['copyParams :\n' + '\n'.join(['    ' + line for line in str(self.copyParams).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5870
 *                 str_list += ['ctx : <ValueError>']
 *             try:
 *                 str_list += ['copyParams :\n' + '\n'.join(['    ' + line for line in str(self.copyParams).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['copyParams : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5870, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_copyParams_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5870, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5870, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5870, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5870, __pyx_L36_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5870, __pyx_L36_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_9genexpr96__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr96__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5870, __pyx_L36_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5870, __pyx_L36_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_9genexpr96__pyx_v_line); __pyx_9genexpr96__pyx_v_line = 0;
          goto __pyx_L40_exit_scope;
          __pyx_L36_error:;
          __Pyx_XDECREF(__pyx_9genexpr96__pyx_v_line); __pyx_9genexpr96__pyx_v_line = 0;
          goto __pyx_L28_error;
          __pyx_L40_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5870, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_copyParams, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5870, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5870, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5870, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5870, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5869
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['copyParams :\n' + '\n'.join(['    ' + line for line in str(self.copyParams).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5871
 *             try:
 *                 str_list += ['copyParams :\n' + '\n'.join(['    ' + line for line in str(self.copyParams).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['copyParams : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 5871, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5872
 *                 str_list += ['copyParams :\n' + '\n'.join(['    ' + line for line in str(self.copyParams).splitlines()])]
 *             except ValueError:
 *                 str_list += ['copyParams : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5872, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_copyParams_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_copyParams_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_copyParams_ValueError) != (0)) __PYX_ERR(0, 5872, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5872, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":5869
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['copyParams :\n' + '\n'.join(['    ' + line for line in str(self.copyParams).splitlines()])]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5873
 *             except ValueError:
 *                 str_list += ['copyParams : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5873, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5855
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5875
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5854
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_9genexpr96__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5876
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5878
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5876
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5879
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5880, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self), ((int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5881
 *     @flags.setter
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":5879
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5882
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5884
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, int reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).reserved); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5882
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5885
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, int reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved) {
  int __pyx_v_reserved;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_reserved); {
    __pyx_v_reserved = __Pyx_PyLong_As_int(__pyx_arg_reserved); if (unlikely((__pyx_v_reserved == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5886, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self), ((int)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, int __pyx_v_reserved) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":5887
 *     @reserved.setter
 *     def reserved(self, int reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 *     @property
 *     def ctx(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).reserved = __pyx_v_reserved;

  /* "cuda/bindings/runtime.pyx":5885
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, int reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5888
 *     def reserved(self, int reserved):
 *         self._pvt_ptr[0].reserved = reserved
 *     @property             # <<<<<<<<<<<<<<
 *     def ctx(self):
 *         return self._ctx
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5890
 *     @property
 *     def ctx(self):
 *         return self._ctx             # <<<<<<<<<<<<<<
 *     @ctx.setter
 *     def ctx(self, ctx):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_ctx);
  __pyx_r = ((PyObject *)__pyx_v_self->_ctx);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5888
 *     def reserved(self, int reserved):
 *         self._pvt_ptr[0].reserved = reserved
 *     @property             # <<<<<<<<<<<<<<
 *     def ctx(self):
 *         return self._ctx
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5891
 *     def ctx(self):
 *         return self._ctx
 *     @ctx.setter             # <<<<<<<<<<<<<<
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ctx); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ctx) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_ctx));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, PyObject *__pyx_v_ctx) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5894
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5895
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)
*/
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":5894
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5896
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5897
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5898
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5898, __pyx_L1_error)
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":5896
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5900
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5900, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":5901
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *         self._ctx._pvt_ptr[0] = cyctx
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5901, __pyx_L1_error)
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5902
 *             pctx = int(cudaExecutionContext_t(ctx))
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx             # <<<<<<<<<<<<<<
 *     @property
 *     def copyParams(self):
*/
  (__pyx_v_self->_ctx->_pvt_ptr[0]) = __pyx_v_cyctx;

  /* "cuda/bindings/runtime.pyx":5891
 *     def ctx(self):
 *         return self._ctx
 *     @ctx.setter             # <<<<<<<<<<<<<<
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.ctx.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5903
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx
 *     @property             # <<<<<<<<<<<<<<
 *     def copyParams(self):
 *         return self._copyParams
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":5905
 *     @property
 *     def copyParams(self):
 *         return self._copyParams             # <<<<<<<<<<<<<<
 *     @copyParams.setter
 *     def copyParams(self, copyParams not None : cudaMemcpy3DParms):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_copyParams);
  __pyx_r = ((PyObject *)__pyx_v_self->_copyParams);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5903
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx
 *     @property             # <<<<<<<<<<<<<<
 *     def copyParams(self):
 *         return self._copyParams
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5906
 *     def copyParams(self):
 *         return self._copyParams
 *     @copyParams.setter             # <<<<<<<<<<<<<<
 *     def copyParams(self, copyParams not None : cudaMemcpy3DParms):
 *         string.memcpy(&self._pvt_ptr[0].copyParams, <cyruntime.cudaMemcpy3DParms*><void_ptr>copyParams.getPtr(), sizeof(self._pvt_ptr[0].copyParams))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_copyParams); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_copyParams) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_copyParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, 0, "copyParams", 0))) __PYX_ERR(0, 5907, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_v_copyParams));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_copyParams) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":5908
 *     @copyParams.setter
 *     def copyParams(self, copyParams not None : cudaMemcpy3DParms):
 *         string.memcpy(&self._pvt_ptr[0].copyParams, <cyruntime.cudaMemcpy3DParms*><void_ptr>copyParams.getPtr(), sizeof(self._pvt_ptr[0].copyParams))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemcpy3DPeerParms:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_copyParams);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5908, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5908, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).copyParams), ((struct cudaMemcpy3DParms *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).copyParams))));

  /* "cuda/bindings/runtime.pyx":5906
 *     def copyParams(self):
 *         return self._copyParams
 *     @copyParams.setter             # <<<<<<<<<<<<<<
 *     def copyParams(self, copyParams not None : cudaMemcpy3DParms):
 *         string.memcpy(&self._pvt_ptr[0].copyParams, <cyruntime.cudaMemcpy3DParms*><void_ptr>copyParams.getPtr(), sizeof(self._pvt_ptr[0].copyParams))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.copyParams.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaMemcpyNodeParams_10__reduce_cython__, "cudaMemcpyNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaMemcpyNodeParams_12__setstate_cython__, "cudaMemcpyNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemcpyNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5940
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5940, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5940, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 5940, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5940, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5940, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5940, __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.runtime.cudaMemcpy3DPeerParms.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":5941
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5942
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DPeerParms *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":5941
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":5944
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DPeerParms *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemcpy3DPeerParms *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":5940
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5945
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DPeerParms *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 5945, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5945, __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, "__init__", 0) < (0)) __PYX_ERR(0, 5945, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 5945, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 5945, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 5945, __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.runtime.cudaMemcpy3DPeerParms.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":5947
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)             # <<<<<<<<<<<<<<
 *         self._srcPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].srcPos)
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).srcArray))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5947, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5947, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5947, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcArray);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_srcArray);
  __pyx_v_self->_srcArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5948
 *         pass
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)
 *         self._srcPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].srcPos)             # <<<<<<<<<<<<<<
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).srcPos))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5948, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5948, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5948, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5948, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcPos);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_srcPos);
  __pyx_v_self->_srcPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5949
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)
 *         self._srcPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].srcPos)
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)             # <<<<<<<<<<<<<<
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).srcPtr))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5949, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5949, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5949, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5949, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcPtr);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_srcPtr);
  __pyx_v_self->_srcPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5950
 *         self._srcPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].srcPos)
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)             # <<<<<<<<<<<<<<
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).dstArray))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5950, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5950, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5950, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstArray);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_dstArray);
  __pyx_v_self->_dstArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5951
 *         self._srcPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].srcPtr)
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)             # <<<<<<<<<<<<<<
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).dstPos))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5951, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5951, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5951, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstPos);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_dstPos);
  __pyx_v_self->_dstPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5952
 *         self._dstArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].dstArray)
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)             # <<<<<<<<<<<<<<
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).dstPtr))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5952, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5952, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5952, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstPtr);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_dstPtr);
  __pyx_v_self->_dstPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5953
 *         self._dstPos = cudaPos(_ptr=<void_ptr>&self._pvt_ptr[0].dstPos)
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).extent))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5953, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 5953, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5953, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_extent);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_extent);
  __pyx_v_self->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":5945
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DPeerParms *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._srcArray = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].srcArray)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5954
 *         self._dstPtr = cudaPitchedPtr(_ptr=<void_ptr>&self._pvt_ptr[0].dstPtr)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":5956
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_7getPtr(PyObject *__pyx_v_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_7runtime_21cudaMemcpy3DPeerParms_6getPtr, "cudaMemcpy3DPeerParms.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":5957
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":5956
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":5958
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_9genexpr97__pyx_v_line = NULL;
  PyObject *__pyx_9genexpr98__pyx_v_line = NULL;
  PyObject *__pyx_9genexpr99__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr100__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr101__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":5959
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":5960
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5960, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":5961
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5962
 *             str_list = []
 *             try:
 *                 str_list += ['srcArray : ' + str(self.srcArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5962, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5962, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5962, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5962, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5962, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5962, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5961
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":5963
 *             try:
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5963, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5964
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5964, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_srcArray_ValueError) != (0)) __PYX_ERR(0, 5964, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5964, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":5961
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcArray : ' + str(self.srcArray)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5965
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5966
 *                 str_list += ['srcArray : <ValueError>']
 *             try:
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5966, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcPos_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5966, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5966, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5966, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5966, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5966, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_9genexpr97__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr97__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5966, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5966, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_9genexpr97__pyx_v_line); __pyx_9genexpr97__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_9genexpr97__pyx_v_line); __pyx_9genexpr97__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5966, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcPos, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5966, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5966, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5966, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5966, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5965
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5967
 *             try:
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPos : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 5967, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5968
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5968, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcPos_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcPos_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_srcPos_ValueError) != (0)) __PYX_ERR(0, 5968, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5968, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":5965
 *             except ValueError:
 *                 str_list += ['srcArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPos :\n' + '\n'.join(['    ' + line for line in str(self.srcPos).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5969
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5970
 *                 str_list += ['srcPos : <ValueError>']
 *             try:
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5970, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5970, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5970, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5970, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5970, __pyx_L35_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5970, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_9genexpr98__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr98__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5970, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 5970, __pyx_L35_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_9genexpr98__pyx_v_line); __pyx_9genexpr98__pyx_v_line = 0;
          goto __pyx_L39_exit_scope;
          __pyx_L35_error:;
          __Pyx_XDECREF(__pyx_9genexpr98__pyx_v_line); __pyx_9genexpr98__pyx_v_line = 0;
          goto __pyx_L27_error;
          __pyx_L39_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5970, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcPtr, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5970, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5970, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 5970, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5970, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":5969
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5971
 *             try:
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 5971, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5972
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcDevice : ' + str(self.srcDevice)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5972, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcPtr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcPtr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_srcPtr_ValueError) != (0)) __PYX_ERR(0, 5972, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5972, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":5969
 *             except ValueError:
 *                 str_list += ['srcPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcPtr :\n' + '\n'.join(['    ' + line for line in str(self.srcPtr).splitlines()])]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5973
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcDevice : ' + str(self.srcDevice)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5974
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:
 *                 str_list += ['srcDevice : ' + str(self.srcDevice)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcDevice : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcDevice_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5974, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5974, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcDevice, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5974, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5974, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5974, __pyx_L42_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5974, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5973
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcDevice : ' + str(self.srcDevice)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L47_try_end;
      __pyx_L42_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5975
 *             try:
 *                 str_list += ['srcDevice : ' + str(self.srcDevice)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcDevice : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 5975, __pyx_L44_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5976
 *                 str_list += ['srcDevice : ' + str(self.srcDevice)]
 *             except ValueError:
 *                 str_list += ['srcDevice : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5976, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcDevice_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcDevice_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_srcDevice_ValueError) != (0)) __PYX_ERR(0, 5976, __pyx_L44_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5976, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L43_exception_handled;
      }
      goto __pyx_L44_except_error;

      /* "cuda/bindings/runtime.pyx":5973
 *             except ValueError:
 *                 str_list += ['srcPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcDevice : ' + str(self.srcDevice)]
 *             except ValueError:
*/
      __pyx_L44_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L43_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L47_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5977
 *             except ValueError:
 *                 str_list += ['srcDevice : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5978
 *                 str_list += ['srcDevice : <ValueError>']
 *             try:
 *                 str_list += ['dstArray : ' + str(self.dstArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dstArray_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5978, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5978, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dstArray, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5978, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5978, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 5978, __pyx_L50_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5978, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":5977
 *             except ValueError:
 *                 str_list += ['srcDevice : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L55_try_end;
      __pyx_L50_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5979
 *             try:
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 5979, __pyx_L52_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5980
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5980, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dstArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dstArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_dstArray_ValueError) != (0)) __PYX_ERR(0, 5980, __pyx_L52_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5980, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L51_exception_handled;
      }
      goto __pyx_L52_except_error;

      /* "cuda/bindings/runtime.pyx":5977
 *             except ValueError:
 *                 str_list += ['srcDevice : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstArray : ' + str(self.dstArray)]
 *             except ValueError:
*/
      __pyx_L52_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L51_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L55_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5981
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5982
 *                 str_list += ['dstArray : <ValueError>']
 *             try:
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5982, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dstPos_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5982, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5982, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5982, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_8; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5982, __pyx_L66_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5982, __pyx_L66_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_9genexpr99__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_9genexpr99__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5982, __pyx_L66_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 5982, __pyx_L66_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_9genexpr99__pyx_v_line); __pyx_9genexpr99__pyx_v_line = 0;
          goto __pyx_L70_exit_scope;
          __pyx_L66_error:;
          __Pyx_XDECREF(__pyx_9genexpr99__pyx_v_line); __pyx_9genexpr99__pyx_v_line = 0;
          goto __pyx_L58_error;
          __pyx_L70_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5982, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dstPos, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5982, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5982, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 5982, __pyx_L58_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5982, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":5981
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L63_try_end;
      __pyx_L58_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5983
 *             try:
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPos : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 5983, __pyx_L60_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5984
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5984, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dstPos_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dstPos_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_dstPos_ValueError) != (0)) __PYX_ERR(0, 5984, __pyx_L60_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5984, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L59_exception_handled;
      }
      goto __pyx_L60_except_error;

      /* "cuda/bindings/runtime.pyx":5981
 *             except ValueError:
 *                 str_list += ['dstArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPos :\n' + '\n'.join(['    ' + line for line in str(self.dstPos).splitlines()])]
 *             except ValueError:
*/
      __pyx_L60_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L59_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L63_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5985
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5986
 *                 str_list += ['dstPos : <ValueError>']
 *             try:
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5986, __pyx_L81_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dstPtr_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5986, __pyx_L81_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5986, __pyx_L81_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5986, __pyx_L81_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5986, __pyx_L81_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5986, __pyx_L81_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr100__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr100__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5986, __pyx_L81_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 5986, __pyx_L81_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr100__pyx_v_line); __pyx_10genexpr100__pyx_v_line = 0;
          goto __pyx_L85_exit_scope;
          __pyx_L81_error:;
          __Pyx_XDECREF(__pyx_10genexpr100__pyx_v_line); __pyx_10genexpr100__pyx_v_line = 0;
          goto __pyx_L73_error;
          __pyx_L85_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5986, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dstPtr, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5986, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5986, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5986, __pyx_L73_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5986, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5985
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L78_try_end;
      __pyx_L73_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5987
 *             try:
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 5987, __pyx_L75_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":5988
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dstDevice : ' + str(self.dstDevice)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5988, __pyx_L75_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dstPtr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dstPtr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_dstPtr_ValueError) != (0)) __PYX_ERR(0, 5988, __pyx_L75_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5988, __pyx_L75_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L74_exception_handled;
      }
      goto __pyx_L75_except_error;

      /* "cuda/bindings/runtime.pyx":5985
 *             except ValueError:
 *                 str_list += ['dstPos : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstPtr :\n' + '\n'.join(['    ' + line for line in str(self.dstPtr).splitlines()])]
 *             except ValueError:
*/
      __pyx_L75_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L74_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L78_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5989
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstDevice : ' + str(self.dstDevice)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5990
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:
 *                 str_list += ['dstDevice : ' + str(self.dstDevice)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dstDevice : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dstDevice_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5990, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5990, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dstDevice, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5990, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5990, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 5990, __pyx_L88_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5990, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":5989
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstDevice : ' + str(self.dstDevice)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L93_try_end;
      __pyx_L88_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5991
 *             try:
 *                 str_list += ['dstDevice : ' + str(self.dstDevice)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstDevice : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 5991, __pyx_L90_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":5992
 *                 str_list += ['dstDevice : ' + str(self.dstDevice)]
 *             except ValueError:
 *                 str_list += ['dstDevice : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5992, __pyx_L90_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dstDevice_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dstDevice_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_dstDevice_ValueError) != (0)) __PYX_ERR(0, 5992, __pyx_L90_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5992, __pyx_L90_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L89_exception_handled;
      }
      goto __pyx_L90_except_error;

      /* "cuda/bindings/runtime.pyx":5989
 *             except ValueError:
 *                 str_list += ['dstPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstDevice : ' + str(self.dstDevice)]
 *             except ValueError:
*/
      __pyx_L90_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L89_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L93_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5993
 *             except ValueError:
 *                 str_list += ['dstDevice : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":5994
 *                 str_list += ['dstDevice : <ValueError>']
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5994, __pyx_L104_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extent_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5994, __pyx_L104_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5994, __pyx_L104_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5994, __pyx_L104_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_2; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 5994, __pyx_L104_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5994, __pyx_L104_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr101__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr101__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5994, __pyx_L104_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 5994, __pyx_L104_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr101__pyx_v_line); __pyx_10genexpr101__pyx_v_line = 0;
          goto __pyx_L108_exit_scope;
          __pyx_L104_error:;
          __Pyx_XDECREF(__pyx_10genexpr101__pyx_v_line); __pyx_10genexpr101__pyx_v_line = 0;
          goto __pyx_L96_error;
          __pyx_L108_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5994, __pyx_L96_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extent, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5994, __pyx_L96_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 5994, __pyx_L96_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 5994, __pyx_L96_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 5994, __pyx_L96_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":5993
 *             except ValueError:
 *                 str_list += ['dstDevice : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L101_try_end;
      __pyx_L96_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":5995
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 5995, __pyx_L98_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":5996
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 5996, __pyx_L98_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extent_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extent_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_extent_ValueError) != (0)) __PYX_ERR(0, 5996, __pyx_L98_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 5996, __pyx_L98_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L97_exception_handled;
      }
      goto __pyx_L98_except_error;

      /* "cuda/bindings/runtime.pyx":5993
 *             except ValueError:
 *                 str_list += ['dstDevice : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
      __pyx_L98_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L97_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L101_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":5997
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5997, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":5959
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":5999
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def srcArray(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":5958
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_9genexpr97__pyx_v_line);
  __Pyx_XDECREF(__pyx_9genexpr98__pyx_v_line);
  __Pyx_XDECREF(__pyx_9genexpr99__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr100__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr101__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6000
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def srcArray(self):
 *         return self._srcArray
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6002
 *     @property
 *     def srcArray(self):
 *         return self._srcArray             # <<<<<<<<<<<<<<
 *     @srcArray.setter
 *     def srcArray(self, srcArray):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_srcArray);
  __pyx_r = ((PyObject *)__pyx_v_self->_srcArray);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6000
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def srcArray(self):
 *         return self._srcArray
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6003
 *     def srcArray(self):
 *         return self._srcArray
 *     @srcArray.setter             # <<<<<<<<<<<<<<
 *     def srcArray(self, srcArray):
 *         cdef cyruntime.cudaArray_t cysrcArray
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcArray); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcArray) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((PyObject *)__pyx_v_srcArray));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, PyObject *__pyx_v_srcArray) {
  cudaArray_t __pyx_v_cysrcArray;
  PyObject *__pyx_v_psrcArray = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6006
 *     def srcArray(self, srcArray):
 *         cdef cyruntime.cudaArray_t cysrcArray
 *         if srcArray is None:             # <<<<<<<<<<<<<<
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_srcArray == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6007
 *         cdef cyruntime.cudaArray_t cysrcArray
 *         if srcArray is None:
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(srcArray, (cudaArray_t,)):
 *             psrcArray = int(srcArray)
*/
    __pyx_v_cysrcArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":6006
 *     def srcArray(self, srcArray):
 *         cdef cyruntime.cudaArray_t cysrcArray
 *         if srcArray is None:             # <<<<<<<<<<<<<<
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6008
 *         if srcArray is None:
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             psrcArray = int(srcArray)
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_srcArray, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6009
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):
 *             psrcArray = int(srcArray)             # <<<<<<<<<<<<<<
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_srcArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6009, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_psrcArray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6010
 *         elif isinstance(srcArray, (cudaArray_t,)):
 *             psrcArray = int(srcArray)
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray             # <<<<<<<<<<<<<<
 *         else:
 *             psrcArray = int(cudaArray_t(srcArray))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrcArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6010, __pyx_L1_error)
    __pyx_v_cysrcArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":6008
 *         if srcArray is None:
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(srcArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             psrcArray = int(srcArray)
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6012
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         else:
 *             psrcArray = int(cudaArray_t(srcArray))             # <<<<<<<<<<<<<<
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         self._srcArray._pvt_ptr[0] = cysrcArray
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_srcArray};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6012, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_psrcArray = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":6013
 *         else:
 *             psrcArray = int(cudaArray_t(srcArray))
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray             # <<<<<<<<<<<<<<
 *         self._srcArray._pvt_ptr[0] = cysrcArray
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrcArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6013, __pyx_L1_error)
    __pyx_v_cysrcArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6014
 *             psrcArray = int(cudaArray_t(srcArray))
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         self._srcArray._pvt_ptr[0] = cysrcArray             # <<<<<<<<<<<<<<
 *     @property
 *     def srcPos(self):
*/
  (__pyx_v_self->_srcArray->_pvt_ptr[0]) = __pyx_v_cysrcArray;

  /* "cuda/bindings/runtime.pyx":6003
 *     def srcArray(self):
 *         return self._srcArray
 *     @srcArray.setter             # <<<<<<<<<<<<<<
 *     def srcArray(self, srcArray):
 *         cdef cyruntime.cudaArray_t cysrcArray
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.srcArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psrcArray);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6015
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         self._srcArray._pvt_ptr[0] = cysrcArray
 *     @property             # <<<<<<<<<<<<<<
 *     def srcPos(self):
 *         return self._srcPos
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6017
 *     @property
 *     def srcPos(self):
 *         return self._srcPos             # <<<<<<<<<<<<<<
 *     @srcPos.setter
 *     def srcPos(self, srcPos not None : cudaPos):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_srcPos);
  __pyx_r = ((PyObject *)__pyx_v_self->_srcPos);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6015
 *             cysrcArray = <cyruntime.cudaArray_t><void_ptr>psrcArray
 *         self._srcArray._pvt_ptr[0] = cysrcArray
 *     @property             # <<<<<<<<<<<<<<
 *     def srcPos(self):
 *         return self._srcPos
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6018
 *     def srcPos(self):
 *         return self._srcPos
 *     @srcPos.setter             # <<<<<<<<<<<<<<
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPos); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPos) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_srcPos), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, 0, "srcPos", 0))) __PYX_ERR(0, 6019, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_srcPos));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_srcPos) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6020
 *     @srcPos.setter
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))             # <<<<<<<<<<<<<<
 *     @property
 *     def srcPtr(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_srcPos);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6020, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6020, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).srcPos), ((struct cudaPos *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).srcPos))));

  /* "cuda/bindings/runtime.pyx":6018
 *     def srcPos(self):
 *         return self._srcPos
 *     @srcPos.setter             # <<<<<<<<<<<<<<
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.srcPos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6021
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))
 *     @property             # <<<<<<<<<<<<<<
 *     def srcPtr(self):
 *         return self._srcPtr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6023
 *     @property
 *     def srcPtr(self):
 *         return self._srcPtr             # <<<<<<<<<<<<<<
 *     @srcPtr.setter
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_srcPtr);
  __pyx_r = ((PyObject *)__pyx_v_self->_srcPtr);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6021
 *     def srcPos(self, srcPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].srcPos, <cyruntime.cudaPos*><void_ptr>srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos))
 *     @property             # <<<<<<<<<<<<<<
 *     def srcPtr(self):
 *         return self._srcPtr
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6024
 *     def srcPtr(self):
 *         return self._srcPtr
 *     @srcPtr.setter             # <<<<<<<<<<<<<<
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPtr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcPtr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_srcPtr), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, 0, "srcPtr", 0))) __PYX_ERR(0, 6025, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_srcPtr));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_srcPtr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6026
 *     @srcPtr.setter
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))             # <<<<<<<<<<<<<<
 *     @property
 *     def srcDevice(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_srcPtr);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6026, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).srcPtr), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).srcPtr))));

  /* "cuda/bindings/runtime.pyx":6024
 *     def srcPtr(self):
 *         return self._srcPtr
 *     @srcPtr.setter             # <<<<<<<<<<<<<<
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.srcPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6027
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))
 *     @property             # <<<<<<<<<<<<<<
 *     def srcDevice(self):
 *         return self._pvt_ptr[0].srcDevice
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6029
 *     @property
 *     def srcDevice(self):
 *         return self._pvt_ptr[0].srcDevice             # <<<<<<<<<<<<<<
 *     @srcDevice.setter
 *     def srcDevice(self, int srcDevice):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).srcDevice); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6029, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6027
 *     def srcPtr(self, srcPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].srcPtr, <cyruntime.cudaPitchedPtr*><void_ptr>srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr))
 *     @property             # <<<<<<<<<<<<<<
 *     def srcDevice(self):
 *         return self._pvt_ptr[0].srcDevice
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.srcDevice.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6030
 *     def srcDevice(self):
 *         return self._pvt_ptr[0].srcDevice
 *     @srcDevice.setter             # <<<<<<<<<<<<<<
 *     def srcDevice(self, int srcDevice):
 *         self._pvt_ptr[0].srcDevice = srcDevice
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_srcDevice); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_srcDevice) {
  int __pyx_v_srcDevice;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_srcDevice); {
    __pyx_v_srcDevice = __Pyx_PyLong_As_int(__pyx_arg_srcDevice); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6031, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.srcDevice.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((int)__pyx_v_srcDevice));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, int __pyx_v_srcDevice) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6032
 *     @srcDevice.setter
 *     def srcDevice(self, int srcDevice):
 *         self._pvt_ptr[0].srcDevice = srcDevice             # <<<<<<<<<<<<<<
 *     @property
 *     def dstArray(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).srcDevice = __pyx_v_srcDevice;

  /* "cuda/bindings/runtime.pyx":6030
 *     def srcDevice(self):
 *         return self._pvt_ptr[0].srcDevice
 *     @srcDevice.setter             # <<<<<<<<<<<<<<
 *     def srcDevice(self, int srcDevice):
 *         self._pvt_ptr[0].srcDevice = srcDevice
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6033
 *     def srcDevice(self, int srcDevice):
 *         self._pvt_ptr[0].srcDevice = srcDevice
 *     @property             # <<<<<<<<<<<<<<
 *     def dstArray(self):
 *         return self._dstArray
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6035
 *     @property
 *     def dstArray(self):
 *         return self._dstArray             # <<<<<<<<<<<<<<
 *     @dstArray.setter
 *     def dstArray(self, dstArray):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_dstArray);
  __pyx_r = ((PyObject *)__pyx_v_self->_dstArray);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6033
 *     def srcDevice(self, int srcDevice):
 *         self._pvt_ptr[0].srcDevice = srcDevice
 *     @property             # <<<<<<<<<<<<<<
 *     def dstArray(self):
 *         return self._dstArray
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6036
 *     def dstArray(self):
 *         return self._dstArray
 *     @dstArray.setter             # <<<<<<<<<<<<<<
 *     def dstArray(self, dstArray):
 *         cdef cyruntime.cudaArray_t cydstArray
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstArray); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstArray) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((PyObject *)__pyx_v_dstArray));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, PyObject *__pyx_v_dstArray) {
  cudaArray_t __pyx_v_cydstArray;
  PyObject *__pyx_v_pdstArray = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6039
 *     def dstArray(self, dstArray):
 *         cdef cyruntime.cudaArray_t cydstArray
 *         if dstArray is None:             # <<<<<<<<<<<<<<
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_dstArray == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6040
 *         cdef cyruntime.cudaArray_t cydstArray
 *         if dstArray is None:
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(dstArray, (cudaArray_t,)):
 *             pdstArray = int(dstArray)
*/
    __pyx_v_cydstArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":6039
 *     def dstArray(self, dstArray):
 *         cdef cyruntime.cudaArray_t cydstArray
 *         if dstArray is None:             # <<<<<<<<<<<<<<
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6041
 *         if dstArray is None:
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             pdstArray = int(dstArray)
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dstArray, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6042
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):
 *             pdstArray = int(dstArray)             # <<<<<<<<<<<<<<
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_dstArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pdstArray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6043
 *         elif isinstance(dstArray, (cudaArray_t,)):
 *             pdstArray = int(dstArray)
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray             # <<<<<<<<<<<<<<
 *         else:
 *             pdstArray = int(cudaArray_t(dstArray))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdstArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6043, __pyx_L1_error)
    __pyx_v_cydstArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":6041
 *         if dstArray is None:
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(dstArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             pdstArray = int(dstArray)
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6045
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         else:
 *             pdstArray = int(cudaArray_t(dstArray))             # <<<<<<<<<<<<<<
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         self._dstArray._pvt_ptr[0] = cydstArray
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_dstArray};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6045, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6045, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pdstArray = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":6046
 *         else:
 *             pdstArray = int(cudaArray_t(dstArray))
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray             # <<<<<<<<<<<<<<
 *         self._dstArray._pvt_ptr[0] = cydstArray
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdstArray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6046, __pyx_L1_error)
    __pyx_v_cydstArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6047
 *             pdstArray = int(cudaArray_t(dstArray))
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         self._dstArray._pvt_ptr[0] = cydstArray             # <<<<<<<<<<<<<<
 *     @property
 *     def dstPos(self):
*/
  (__pyx_v_self->_dstArray->_pvt_ptr[0]) = __pyx_v_cydstArray;

  /* "cuda/bindings/runtime.pyx":6036
 *     def dstArray(self):
 *         return self._dstArray
 *     @dstArray.setter             # <<<<<<<<<<<<<<
 *     def dstArray(self, dstArray):
 *         cdef cyruntime.cudaArray_t cydstArray
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.dstArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pdstArray);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6048
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         self._dstArray._pvt_ptr[0] = cydstArray
 *     @property             # <<<<<<<<<<<<<<
 *     def dstPos(self):
 *         return self._dstPos
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6050
 *     @property
 *     def dstPos(self):
 *         return self._dstPos             # <<<<<<<<<<<<<<
 *     @dstPos.setter
 *     def dstPos(self, dstPos not None : cudaPos):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_dstPos);
  __pyx_r = ((PyObject *)__pyx_v_self->_dstPos);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6048
 *             cydstArray = <cyruntime.cudaArray_t><void_ptr>pdstArray
 *         self._dstArray._pvt_ptr[0] = cydstArray
 *     @property             # <<<<<<<<<<<<<<
 *     def dstPos(self):
 *         return self._dstPos
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6051
 *     def dstPos(self):
 *         return self._dstPos
 *     @dstPos.setter             # <<<<<<<<<<<<<<
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPos); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPos) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstPos), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, 0, "dstPos", 0))) __PYX_ERR(0, 6052, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_v_dstPos));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_dstPos) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6053
 *     @dstPos.setter
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))             # <<<<<<<<<<<<<<
 *     @property
 *     def dstPtr(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_dstPos);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6053, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6053, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).dstPos), ((struct cudaPos *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).dstPos))));

  /* "cuda/bindings/runtime.pyx":6051
 *     def dstPos(self):
 *         return self._dstPos
 *     @dstPos.setter             # <<<<<<<<<<<<<<
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.dstPos.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6054
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstPtr(self):
 *         return self._dstPtr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6056
 *     @property
 *     def dstPtr(self):
 *         return self._dstPtr             # <<<<<<<<<<<<<<
 *     @dstPtr.setter
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_dstPtr);
  __pyx_r = ((PyObject *)__pyx_v_self->_dstPtr);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6054
 *     def dstPos(self, dstPos not None : cudaPos):
 *         string.memcpy(&self._pvt_ptr[0].dstPos, <cyruntime.cudaPos*><void_ptr>dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstPtr(self):
 *         return self._dstPtr
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6057
 *     def dstPtr(self):
 *         return self._dstPtr
 *     @dstPtr.setter             # <<<<<<<<<<<<<<
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPtr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstPtr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstPtr), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, 0, "dstPtr", 0))) __PYX_ERR(0, 6058, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_v_dstPtr));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_dstPtr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6059
 *     @dstPtr.setter
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))             # <<<<<<<<<<<<<<
 *     @property
 *     def dstDevice(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_dstPtr);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6059, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).dstPtr), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).dstPtr))));

  /* "cuda/bindings/runtime.pyx":6057
 *     def dstPtr(self):
 *         return self._dstPtr
 *     @dstPtr.setter             # <<<<<<<<<<<<<<
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.dstPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6060
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstDevice(self):
 *         return self._pvt_ptr[0].dstDevice
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6062
 *     @property
 *     def dstDevice(self):
 *         return self._pvt_ptr[0].dstDevice             # <<<<<<<<<<<<<<
 *     @dstDevice.setter
 *     def dstDevice(self, int dstDevice):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).dstDevice); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6060
 *     def dstPtr(self, dstPtr not None : cudaPitchedPtr):
 *         string.memcpy(&self._pvt_ptr[0].dstPtr, <cyruntime.cudaPitchedPtr*><void_ptr>dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstDevice(self):
 *         return self._pvt_ptr[0].dstDevice
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.dstDevice.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6063
 *     def dstDevice(self):
 *         return self._pvt_ptr[0].dstDevice
 *     @dstDevice.setter             # <<<<<<<<<<<<<<
 *     def dstDevice(self, int dstDevice):
 *         self._pvt_ptr[0].dstDevice = dstDevice
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_dstDevice); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_dstDevice) {
  int __pyx_v_dstDevice;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_dstDevice); {
    __pyx_v_dstDevice = __Pyx_PyLong_As_int(__pyx_arg_dstDevice); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6064, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.dstDevice.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((int)__pyx_v_dstDevice));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, int __pyx_v_dstDevice) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6065
 *     @dstDevice.setter
 *     def dstDevice(self, int dstDevice):
 *         self._pvt_ptr[0].dstDevice = dstDevice             # <<<<<<<<<<<<<<
 *     @property
 *     def extent(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).dstDevice = __pyx_v_dstDevice;

  /* "cuda/bindings/runtime.pyx":6063
 *     def dstDevice(self):
 *         return self._pvt_ptr[0].dstDevice
 *     @dstDevice.setter             # <<<<<<<<<<<<<<
 *     def dstDevice(self, int dstDevice):
 *         self._pvt_ptr[0].dstDevice = dstDevice
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6066
 *     def dstDevice(self, int dstDevice):
 *         self._pvt_ptr[0].dstDevice = dstDevice
 *     @property             # <<<<<<<<<<<<<<
 *     def extent(self):
 *         return self._extent
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6068
 *     @property
 *     def extent(self):
 *         return self._extent             # <<<<<<<<<<<<<<
 *     @extent.setter
 *     def extent(self, extent not None : cudaExtent):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_extent);
  __pyx_r = ((PyObject *)__pyx_v_self->_extent);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6066
 *     def dstDevice(self, int dstDevice):
 *         self._pvt_ptr[0].dstDevice = dstDevice
 *     @property             # <<<<<<<<<<<<<<
 *     def extent(self):
 *         return self._extent
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6069
 *     def extent(self):
 *         return self._extent
 *     @extent.setter             # <<<<<<<<<<<<<<
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 6070, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_extent));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6071
 *     @extent.setter
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemsetParams:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_extent);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6071, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).extent), ((struct cudaExtent *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).extent))));

  /* "cuda/bindings/runtime.pyx":6069
 *     def extent(self):
 *         return self._extent
 *     @extent.setter             # <<<<<<<<<<<<<<
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.extent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_21cudaMemcpy3DPeerParms_10__reduce_cython__, "cudaMemcpy3DPeerParms.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_21cudaMemcpy3DPeerParms_12__setstate_cython__, "cudaMemcpy3DPeerParms.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemcpy3DPeerParms.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerParms.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6097
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6097, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6097, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6097, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6097, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6097, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6097, __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.runtime.cudaMemsetParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":6098
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6099
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemsetParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":6098
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6101
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemsetParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemsetParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6097
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6102
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemsetParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6102, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6102, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6102, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6102, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6102, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6102, __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.runtime.cudaMemsetParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6104
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6106
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_7getPtr(PyObject *__pyx_v_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_7runtime_16cudaMemsetParams_6getPtr, "cudaMemsetParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaMemsetParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemsetParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6107
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6106
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6108
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6109
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6110
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dst : ' + hex(self.dst)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6111
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6112
 *             str_list = []
 *             try:
 *                 str_list += ['dst : ' + hex(self.dst)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dst_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6112, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6112, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_dst, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6112, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6112, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6112, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6112, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6111
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6113
 *             try:
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6113, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6114
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6114, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dst_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dst_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_dst_ValueError) != (0)) __PYX_ERR(0, 6114, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6114, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6111
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6115
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6116
 *                 str_list += ['dst : <ValueError>']
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pitch_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6116, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6116, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pitch, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6116, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6116, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6116, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6116, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6115
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6117
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6117, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6118
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['value : ' + str(self.value)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6118, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pitch_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pitch_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_pitch_ValueError) != (0)) __PYX_ERR(0, 6118, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6118, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":6115
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6119
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6120
 *                 str_list += ['pitch : <ValueError>']
 *             try:
 *                 str_list += ['value : ' + str(self.value)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6120, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6120, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_value_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6120, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6120, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6120, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6120, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6119
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6121
 *             try:
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6121, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6122
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6122, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_value_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_value_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_value_ValueError) != (0)) __PYX_ERR(0, 6122, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6122, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":6119
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6123
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6124
 *                 str_list += ['value : <ValueError>']
 *             try:
 *                 str_list += ['elementSize : ' + str(self.elementSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_elementSize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6124, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6124, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_elementSize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6124, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6124, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6124, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6124, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6123
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6125
 *             try:
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['elementSize : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6125, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6126
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6126, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_elementSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_elementSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_elementSize_ValueError) != (0)) __PYX_ERR(0, 6126, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6126, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":6123
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6127
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6128
 *                 str_list += ['elementSize : <ValueError>']
 *             try:
 *                 str_list += ['width : ' + str(self.width)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6128, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6128, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6128, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6128, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6128, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6128, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6127
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6129
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6129, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6130
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6130, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_width_ValueError) != (0)) __PYX_ERR(0, 6130, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6130, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":6127
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6131
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6132
 *                 str_list += ['width : <ValueError>']
 *             try:
 *                 str_list += ['height : ' + str(self.height)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6132, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6132, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6132, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6132, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6132, __pyx_L44_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6132, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6131
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L49_try_end;
      __pyx_L44_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6133
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6133, __pyx_L46_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6134
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6134, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_height_ValueError) != (0)) __PYX_ERR(0, 6134, __pyx_L46_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6134, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L45_exception_handled;
      }
      goto __pyx_L46_except_error;

      /* "cuda/bindings/runtime.pyx":6131
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      __pyx_L46_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L45_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L49_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6135
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6109
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6137
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def dst(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6108
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6138
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6140
 *     @property
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst             # <<<<<<<<<<<<<<
 *     @dst.setter
 *     def dst(self, dst):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).dst)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6138
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.dst.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6141
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst
 *     @dst.setter             # <<<<<<<<<<<<<<
 *     def dst(self, dst):
 *         _cdst = _HelperInputVoidPtr(dst)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dst); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dst) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), ((PyObject *)__pyx_v_dst));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, PyObject *__pyx_v_dst) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdst = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6143
 *     @dst.setter
 *     def dst(self, dst):
 *         _cdst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].dst = <void*><void_ptr>_cdst.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6143, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6144
 *     def dst(self, dst):
 *         _cdst = _HelperInputVoidPtr(dst)
 *         self._pvt_ptr[0].dst = <void*><void_ptr>_cdst.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def pitch(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).dst = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":6141
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst
 *     @dst.setter             # <<<<<<<<<<<<<<
 *     def dst(self, dst):
 *         _cdst = _HelperInputVoidPtr(dst)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.dst.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdst);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6145
 *         _cdst = _HelperInputVoidPtr(dst)
 *         self._pvt_ptr[0].dst = <void*><void_ptr>_cdst.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6147
 *     @property
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch             # <<<<<<<<<<<<<<
 *     @pitch.setter
 *     def pitch(self, size_t pitch):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).pitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6145
 *         _cdst = _HelperInputVoidPtr(dst)
 *         self._pvt_ptr[0].dst = <void*><void_ptr>_cdst.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.pitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6148
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
 *     @pitch.setter             # <<<<<<<<<<<<<<
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch) {
  size_t __pyx_v_pitch;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pitch); {
    __pyx_v_pitch = __Pyx_PyLong_As_size_t(__pyx_arg_pitch); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6149, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), ((size_t)__pyx_v_pitch));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_pitch) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6150
 *     @pitch.setter
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch             # <<<<<<<<<<<<<<
 *     @property
 *     def value(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pitch = __pyx_v_pitch;

  /* "cuda/bindings/runtime.pyx":6148
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
 *     @pitch.setter             # <<<<<<<<<<<<<<
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6151
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
 *     @property             # <<<<<<<<<<<<<<
 *     def value(self):
 *         return self._pvt_ptr[0].value
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5value___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5value___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6153
 *     @property
 *     def value(self):
 *         return self._pvt_ptr[0].value             # <<<<<<<<<<<<<<
 *     @value.setter
 *     def value(self, unsigned int value):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6151
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
 *     @property             # <<<<<<<<<<<<<<
 *     def value(self):
 *         return self._pvt_ptr[0].value
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6154
 *     def value(self):
 *         return self._pvt_ptr[0].value
 *     @value.setter             # <<<<<<<<<<<<<<
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  unsigned int __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __Pyx_PyLong_As_unsigned_int(__pyx_arg_value); if (unlikely((__pyx_v_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6155, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), ((unsigned int)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, unsigned int __pyx_v_value) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6156
 *     @value.setter
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value             # <<<<<<<<<<<<<<
 *     @property
 *     def elementSize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).value = __pyx_v_value;

  /* "cuda/bindings/runtime.pyx":6154
 *     def value(self):
 *         return self._pvt_ptr[0].value
 *     @value.setter             # <<<<<<<<<<<<<<
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6157
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value
 *     @property             # <<<<<<<<<<<<<<
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6159
 *     @property
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize             # <<<<<<<<<<<<<<
 *     @elementSize.setter
 *     def elementSize(self, unsigned int elementSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).elementSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6157
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value
 *     @property             # <<<<<<<<<<<<<<
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.elementSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6160
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize
 *     @elementSize.setter             # <<<<<<<<<<<<<<
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_elementSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_elementSize) {
  unsigned int __pyx_v_elementSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_elementSize); {
    __pyx_v_elementSize = __Pyx_PyLong_As_unsigned_int(__pyx_arg_elementSize); if (unlikely((__pyx_v_elementSize == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6161, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.elementSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), ((unsigned int)__pyx_v_elementSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, unsigned int __pyx_v_elementSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6162
 *     @elementSize.setter
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize             # <<<<<<<<<<<<<<
 *     @property
 *     def width(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).elementSize = __pyx_v_elementSize;

  /* "cuda/bindings/runtime.pyx":6160
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize
 *     @elementSize.setter             # <<<<<<<<<<<<<<
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6163
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5width___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6165
 *     @property
 *     def width(self):
 *         return self._pvt_ptr[0].width             # <<<<<<<<<<<<<<
 *     @width.setter
 *     def width(self, size_t width):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6163
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6166
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width) {
  size_t __pyx_v_width;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_width); {
    __pyx_v_width = __Pyx_PyLong_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6167, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), ((size_t)__pyx_v_width));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_width) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6168
 *     @width.setter
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width             # <<<<<<<<<<<<<<
 *     @property
 *     def height(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).width = __pyx_v_width;

  /* "cuda/bindings/runtime.pyx":6166
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6169
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6height___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6171
 *     @property
 *     def height(self):
 *         return self._pvt_ptr[0].height             # <<<<<<<<<<<<<<
 *     @height.setter
 *     def height(self, size_t height):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6169
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6172
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height) {
  size_t __pyx_v_height;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_height); {
    __pyx_v_height = __Pyx_PyLong_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6173, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), ((size_t)__pyx_v_height));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, size_t __pyx_v_height) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6174
 *     @height.setter
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemsetParamsV2:
*/
  (__pyx_v_self->_pvt_ptr[0]).height = __pyx_v_height;

  /* "cuda/bindings/runtime.pyx":6172
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_16cudaMemsetParams_10__reduce_cython__, "cudaMemsetParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaMemsetParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemsetParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_16cudaMemsetParams_12__setstate_cython__, "cudaMemsetParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaMemsetParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemsetParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemsetParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemsetParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6203
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6203, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6203, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6203, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6203, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6203, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6203, __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.runtime.cudaMemsetParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":6204
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6205
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemsetParamsV2 *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":6204
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6207
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemsetParamsV2 *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemsetParamsV2 *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6203
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6208
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemsetParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6208, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6208, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6208, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6208, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6208, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6208, __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.runtime.cudaMemsetParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6210
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).ctx))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6210, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6210, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_ctx);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_ctx);
  __pyx_v_self->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6208
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemsetParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6211
 *         pass
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6213
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_7getPtr(PyObject *__pyx_v_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_7runtime_18cudaMemsetParamsV2_6getPtr, "cudaMemsetParamsV2.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6214
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6213
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6215
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6216
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6217
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dst : ' + hex(self.dst)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6218
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6219
 *             str_list = []
 *             try:
 *                 str_list += ['dst : ' + hex(self.dst)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dst_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6219, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6219, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_dst, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6219, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6219, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6219, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6219, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6218
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6220
 *             try:
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6220, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6221
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6221, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dst_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dst_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_dst_ValueError) != (0)) __PYX_ERR(0, 6221, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6221, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6218
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : ' + hex(self.dst)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6222
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6223
 *                 str_list += ['dst : <ValueError>']
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pitch_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6223, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6223, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pitch, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6223, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6223, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6223, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6223, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6222
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6224
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6224, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6225
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['value : ' + str(self.value)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6225, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pitch_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pitch_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_pitch_ValueError) != (0)) __PYX_ERR(0, 6225, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6225, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":6222
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6226
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6227
 *                 str_list += ['pitch : <ValueError>']
 *             try:
 *                 str_list += ['value : ' + str(self.value)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6227, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6227, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_value_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6227, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6227, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6227, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6227, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6226
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6228
 *             try:
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6228, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6229
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6229, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_value_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_value_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_value_ValueError) != (0)) __PYX_ERR(0, 6229, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6229, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":6226
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6230
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6231
 *                 str_list += ['value : <ValueError>']
 *             try:
 *                 str_list += ['elementSize : ' + str(self.elementSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_elementSize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6231, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6231, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_elementSize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6231, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6231, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6231, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6231, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6230
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6232
 *             try:
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['elementSize : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6232, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6233
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6233, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_elementSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_elementSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_elementSize_ValueError) != (0)) __PYX_ERR(0, 6233, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6233, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":6230
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['elementSize : ' + str(self.elementSize)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6234
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6235
 *                 str_list += ['elementSize : <ValueError>']
 *             try:
 *                 str_list += ['width : ' + str(self.width)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6235, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6235, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6235, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6235, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6235, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6235, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6234
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6236
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6236, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6237
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6237, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_width_ValueError) != (0)) __PYX_ERR(0, 6237, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6237, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":6234
 *             except ValueError:
 *                 str_list += ['elementSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6238
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6239
 *                 str_list += ['width : <ValueError>']
 *             try:
 *                 str_list += ['height : ' + str(self.height)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6239, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6239, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6239, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6239, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6239, __pyx_L44_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6239, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6238
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L49_try_end;
      __pyx_L44_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6240
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6240, __pyx_L46_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6241
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6241, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_height_ValueError) != (0)) __PYX_ERR(0, 6241, __pyx_L46_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6241, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L45_exception_handled;
      }
      goto __pyx_L46_except_error;

      /* "cuda/bindings/runtime.pyx":6238
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      __pyx_L46_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L45_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L49_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6242
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6243
 *                 str_list += ['height : <ValueError>']
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ctx_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6243, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6243, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ctx, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6243, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6243, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6243, __pyx_L52_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6243, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6242
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L57_try_end;
      __pyx_L52_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6244
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6244, __pyx_L54_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6245
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6245, __pyx_L54_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ctx_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ctx_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_ctx_ValueError) != (0)) __PYX_ERR(0, 6245, __pyx_L54_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6245, __pyx_L54_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L53_exception_handled;
      }
      goto __pyx_L54_except_error;

      /* "cuda/bindings/runtime.pyx":6242
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
      __pyx_L54_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L53_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L57_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6246
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6216
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6248
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def dst(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6215
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6249
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6251
 *     @property
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst             # <<<<<<<<<<<<<<
 *     @dst.setter
 *     def dst(self, dst):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).dst)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6249
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.dst.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6252
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst
 *     @dst.setter             # <<<<<<<<<<<<<<
 *     def dst(self, dst):
 *         _cdst = _HelperInputVoidPtr(dst)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dst); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dst) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_dst));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, PyObject *__pyx_v_dst) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdst = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6254
 *     @dst.setter
 *     def dst(self, dst):
 *         _cdst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].dst = <void*><void_ptr>_cdst.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6254, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6255
 *     def dst(self, dst):
 *         _cdst = _HelperInputVoidPtr(dst)
 *         self._pvt_ptr[0].dst = <void*><void_ptr>_cdst.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def pitch(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).dst = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":6252
 *     def dst(self):
 *         return <void_ptr>self._pvt_ptr[0].dst
 *     @dst.setter             # <<<<<<<<<<<<<<
 *     def dst(self, dst):
 *         _cdst = _HelperInputVoidPtr(dst)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.dst.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdst);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6256
 *         _cdst = _HelperInputVoidPtr(dst)
 *         self._pvt_ptr[0].dst = <void*><void_ptr>_cdst.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6258
 *     @property
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch             # <<<<<<<<<<<<<<
 *     @pitch.setter
 *     def pitch(self, size_t pitch):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).pitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6256
 *         _cdst = _HelperInputVoidPtr(dst)
 *         self._pvt_ptr[0].dst = <void*><void_ptr>_cdst.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.pitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6259
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
 *     @pitch.setter             # <<<<<<<<<<<<<<
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch) {
  size_t __pyx_v_pitch;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pitch); {
    __pyx_v_pitch = __Pyx_PyLong_As_size_t(__pyx_arg_pitch); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6260, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_pitch));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_pitch) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6261
 *     @pitch.setter
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch             # <<<<<<<<<<<<<<
 *     @property
 *     def value(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pitch = __pyx_v_pitch;

  /* "cuda/bindings/runtime.pyx":6259
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
 *     @pitch.setter             # <<<<<<<<<<<<<<
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6262
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
 *     @property             # <<<<<<<<<<<<<<
 *     def value(self):
 *         return self._pvt_ptr[0].value
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6264
 *     @property
 *     def value(self):
 *         return self._pvt_ptr[0].value             # <<<<<<<<<<<<<<
 *     @value.setter
 *     def value(self, unsigned int value):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6264, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6262
 *     def pitch(self, size_t pitch):
 *         self._pvt_ptr[0].pitch = pitch
 *     @property             # <<<<<<<<<<<<<<
 *     def value(self):
 *         return self._pvt_ptr[0].value
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6265
 *     def value(self):
 *         return self._pvt_ptr[0].value
 *     @value.setter             # <<<<<<<<<<<<<<
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  unsigned int __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __Pyx_PyLong_As_unsigned_int(__pyx_arg_value); if (unlikely((__pyx_v_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6266, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, unsigned int __pyx_v_value) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6267
 *     @value.setter
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value             # <<<<<<<<<<<<<<
 *     @property
 *     def elementSize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).value = __pyx_v_value;

  /* "cuda/bindings/runtime.pyx":6265
 *     def value(self):
 *         return self._pvt_ptr[0].value
 *     @value.setter             # <<<<<<<<<<<<<<
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6268
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value
 *     @property             # <<<<<<<<<<<<<<
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6270
 *     @property
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize             # <<<<<<<<<<<<<<
 *     @elementSize.setter
 *     def elementSize(self, unsigned int elementSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).elementSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6268
 *     def value(self, unsigned int value):
 *         self._pvt_ptr[0].value = value
 *     @property             # <<<<<<<<<<<<<<
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.elementSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6271
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize
 *     @elementSize.setter             # <<<<<<<<<<<<<<
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_elementSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_elementSize) {
  unsigned int __pyx_v_elementSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_elementSize); {
    __pyx_v_elementSize = __Pyx_PyLong_As_unsigned_int(__pyx_arg_elementSize); if (unlikely((__pyx_v_elementSize == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6272, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.elementSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_elementSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, unsigned int __pyx_v_elementSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6273
 *     @elementSize.setter
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize             # <<<<<<<<<<<<<<
 *     @property
 *     def width(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).elementSize = __pyx_v_elementSize;

  /* "cuda/bindings/runtime.pyx":6271
 *     def elementSize(self):
 *         return self._pvt_ptr[0].elementSize
 *     @elementSize.setter             # <<<<<<<<<<<<<<
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6274
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6276
 *     @property
 *     def width(self):
 *         return self._pvt_ptr[0].width             # <<<<<<<<<<<<<<
 *     @width.setter
 *     def width(self, size_t width):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6274
 *     def elementSize(self, unsigned int elementSize):
 *         self._pvt_ptr[0].elementSize = elementSize
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6277
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width) {
  size_t __pyx_v_width;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_width); {
    __pyx_v_width = __Pyx_PyLong_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6278, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_width));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_width) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6279
 *     @width.setter
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width             # <<<<<<<<<<<<<<
 *     @property
 *     def height(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).width = __pyx_v_width;

  /* "cuda/bindings/runtime.pyx":6277
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6280
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6282
 *     @property
 *     def height(self):
 *         return self._pvt_ptr[0].height             # <<<<<<<<<<<<<<
 *     @height.setter
 *     def height(self, size_t height):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6280
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6283
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height) {
  size_t __pyx_v_height;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_height); {
    __pyx_v_height = __Pyx_PyLong_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6284, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_height));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, size_t __pyx_v_height) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6285
 *     @height.setter
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height             # <<<<<<<<<<<<<<
 *     @property
 *     def ctx(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).height = __pyx_v_height;

  /* "cuda/bindings/runtime.pyx":6283
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6286
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def ctx(self):
 *         return self._ctx
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6288
 *     @property
 *     def ctx(self):
 *         return self._ctx             # <<<<<<<<<<<<<<
 *     @ctx.setter
 *     def ctx(self, ctx):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_ctx);
  __pyx_r = ((PyObject *)__pyx_v_self->_ctx);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6286
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def ctx(self):
 *         return self._ctx
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6289
 *     def ctx(self):
 *         return self._ctx
 *     @ctx.setter             # <<<<<<<<<<<<<<
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ctx); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ctx) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_ctx));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, PyObject *__pyx_v_ctx) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6292
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6293
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)
*/
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":6292
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6294
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6295
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6295, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6296
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6296, __pyx_L1_error)
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":6294
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6298
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6298, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":6299
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *         self._ctx._pvt_ptr[0] = cyctx
 * 
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6299, __pyx_L1_error)
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6300
 *             pctx = int(cudaExecutionContext_t(ctx))
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaAccessPolicyWindow:
*/
  (__pyx_v_self->_ctx->_pvt_ptr[0]) = __pyx_v_cyctx;

  /* "cuda/bindings/runtime.pyx":6289
 *     def ctx(self):
 *         return self._ctx
 *     @ctx.setter             # <<<<<<<<<<<<<<
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.ctx.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_18cudaMemsetParamsV2_10__reduce_cython__, "cudaMemsetParamsV2.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_18cudaMemsetParamsV2_12__setstate_cython__, "cudaMemsetParamsV2.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemsetParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6335
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6335, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6335, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6335, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6335, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6335, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6335, __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.runtime.cudaAccessPolicyWindow.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":6336
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6337
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAccessPolicyWindow *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":6336
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6339
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAccessPolicyWindow *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaAccessPolicyWindow *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6335
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6340
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAccessPolicyWindow *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6340, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6340, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6340, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6340, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6340, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6340, __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.runtime.cudaAccessPolicyWindow.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6342
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6344
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7getPtr(PyObject *__pyx_v_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_7runtime_22cudaAccessPolicyWindow_6getPtr, "cudaAccessPolicyWindow.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6345
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6344
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6346
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6347
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6348
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['base_ptr : ' + hex(self.base_ptr)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6349
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['base_ptr : ' + hex(self.base_ptr)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6350
 *             str_list = []
 *             try:
 *                 str_list += ['base_ptr : ' + hex(self.base_ptr)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['base_ptr : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_base_ptr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6350, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6350, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_base_ptr, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6350, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6350, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6350, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6350, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6349
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['base_ptr : ' + hex(self.base_ptr)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6351
 *             try:
 *                 str_list += ['base_ptr : ' + hex(self.base_ptr)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['base_ptr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6351, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6352
 *                 str_list += ['base_ptr : ' + hex(self.base_ptr)]
 *             except ValueError:
 *                 str_list += ['base_ptr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['num_bytes : ' + str(self.num_bytes)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6352, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_base_ptr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_base_ptr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_base_ptr_ValueError) != (0)) __PYX_ERR(0, 6352, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6352, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6349
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['base_ptr : ' + hex(self.base_ptr)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6353
 *             except ValueError:
 *                 str_list += ['base_ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['num_bytes : ' + str(self.num_bytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6354
 *                 str_list += ['base_ptr : <ValueError>']
 *             try:
 *                 str_list += ['num_bytes : ' + str(self.num_bytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['num_bytes : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_num_bytes_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6354, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6354, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_num_bytes, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6354, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6354, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6354, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6354, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6353
 *             except ValueError:
 *                 str_list += ['base_ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['num_bytes : ' + str(self.num_bytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6355
 *             try:
 *                 str_list += ['num_bytes : ' + str(self.num_bytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['num_bytes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6355, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6356
 *                 str_list += ['num_bytes : ' + str(self.num_bytes)]
 *             except ValueError:
 *                 str_list += ['num_bytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['hitRatio : ' + str(self.hitRatio)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6356, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_num_bytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_num_bytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_num_bytes_ValueError) != (0)) __PYX_ERR(0, 6356, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6356, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":6353
 *             except ValueError:
 *                 str_list += ['base_ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['num_bytes : ' + str(self.num_bytes)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6357
 *             except ValueError:
 *                 str_list += ['num_bytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hitRatio : ' + str(self.hitRatio)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6358
 *                 str_list += ['num_bytes : <ValueError>']
 *             try:
 *                 str_list += ['hitRatio : ' + str(self.hitRatio)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['hitRatio : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_hitRatio_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6358, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6358, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_hitRatio, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6358, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6358, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6358, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6358, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6357
 *             except ValueError:
 *                 str_list += ['num_bytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hitRatio : ' + str(self.hitRatio)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6359
 *             try:
 *                 str_list += ['hitRatio : ' + str(self.hitRatio)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['hitRatio : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6359, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6360
 *                 str_list += ['hitRatio : ' + str(self.hitRatio)]
 *             except ValueError:
 *                 str_list += ['hitRatio : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['hitProp : ' + str(self.hitProp)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6360, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_hitRatio_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_hitRatio_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_hitRatio_ValueError) != (0)) __PYX_ERR(0, 6360, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6360, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":6357
 *             except ValueError:
 *                 str_list += ['num_bytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hitRatio : ' + str(self.hitRatio)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6361
 *             except ValueError:
 *                 str_list += ['hitRatio : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hitProp : ' + str(self.hitProp)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6362
 *                 str_list += ['hitRatio : <ValueError>']
 *             try:
 *                 str_list += ['hitProp : ' + str(self.hitProp)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['hitProp : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_hitProp_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6362, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6362, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_hitProp, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6362, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6362, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6362, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6362, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6361
 *             except ValueError:
 *                 str_list += ['hitRatio : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hitProp : ' + str(self.hitProp)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6363
 *             try:
 *                 str_list += ['hitProp : ' + str(self.hitProp)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['hitProp : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6363, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6364
 *                 str_list += ['hitProp : ' + str(self.hitProp)]
 *             except ValueError:
 *                 str_list += ['hitProp : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['missProp : ' + str(self.missProp)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6364, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_hitProp_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_hitProp_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_hitProp_ValueError) != (0)) __PYX_ERR(0, 6364, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6364, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":6361
 *             except ValueError:
 *                 str_list += ['hitRatio : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hitProp : ' + str(self.hitProp)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6365
 *             except ValueError:
 *                 str_list += ['hitProp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['missProp : ' + str(self.missProp)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6366
 *                 str_list += ['hitProp : <ValueError>']
 *             try:
 *                 str_list += ['missProp : ' + str(self.missProp)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['missProp : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_missProp_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6366, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6366, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_missProp, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6366, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6366, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6366, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6366, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6365
 *             except ValueError:
 *                 str_list += ['hitProp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['missProp : ' + str(self.missProp)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6367
 *             try:
 *                 str_list += ['missProp : ' + str(self.missProp)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['missProp : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6367, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6368
 *                 str_list += ['missProp : ' + str(self.missProp)]
 *             except ValueError:
 *                 str_list += ['missProp : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6368, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_missProp_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_missProp_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_missProp_ValueError) != (0)) __PYX_ERR(0, 6368, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6368, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":6365
 *             except ValueError:
 *                 str_list += ['hitProp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['missProp : ' + str(self.missProp)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6369
 *             except ValueError:
 *                 str_list += ['missProp : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6369, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6347
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6371
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def base_ptr(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6346
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6372
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def base_ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].base_ptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6374
 *     @property
 *     def base_ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].base_ptr             # <<<<<<<<<<<<<<
 *     @base_ptr.setter
 *     def base_ptr(self, base_ptr):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).base_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6372
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def base_ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].base_ptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.base_ptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6375
 *     def base_ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].base_ptr
 *     @base_ptr.setter             # <<<<<<<<<<<<<<
 *     def base_ptr(self, base_ptr):
 *         _cbase_ptr = _HelperInputVoidPtr(base_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_base_ptr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_base_ptr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self), ((PyObject *)__pyx_v_base_ptr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_base_ptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cbase_ptr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6377
 *     @base_ptr.setter
 *     def base_ptr(self, base_ptr):
 *         _cbase_ptr = _HelperInputVoidPtr(base_ptr)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].base_ptr = <void*><void_ptr>_cbase_ptr.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_base_ptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6377, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cbase_ptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6378
 *     def base_ptr(self, base_ptr):
 *         _cbase_ptr = _HelperInputVoidPtr(base_ptr)
 *         self._pvt_ptr[0].base_ptr = <void*><void_ptr>_cbase_ptr.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def num_bytes(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cbase_ptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6378, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).base_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":6375
 *     def base_ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].base_ptr
 *     @base_ptr.setter             # <<<<<<<<<<<<<<
 *     def base_ptr(self, base_ptr):
 *         _cbase_ptr = _HelperInputVoidPtr(base_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.base_ptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cbase_ptr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6379
 *         _cbase_ptr = _HelperInputVoidPtr(base_ptr)
 *         self._pvt_ptr[0].base_ptr = <void*><void_ptr>_cbase_ptr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def num_bytes(self):
 *         return self._pvt_ptr[0].num_bytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6381
 *     @property
 *     def num_bytes(self):
 *         return self._pvt_ptr[0].num_bytes             # <<<<<<<<<<<<<<
 *     @num_bytes.setter
 *     def num_bytes(self, size_t num_bytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).num_bytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6379
 *         _cbase_ptr = _HelperInputVoidPtr(base_ptr)
 *         self._pvt_ptr[0].base_ptr = <void*><void_ptr>_cbase_ptr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def num_bytes(self):
 *         return self._pvt_ptr[0].num_bytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.num_bytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6382
 *     def num_bytes(self):
 *         return self._pvt_ptr[0].num_bytes
 *     @num_bytes.setter             # <<<<<<<<<<<<<<
 *     def num_bytes(self, size_t num_bytes):
 *         self._pvt_ptr[0].num_bytes = num_bytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_num_bytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_num_bytes) {
  size_t __pyx_v_num_bytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_num_bytes); {
    __pyx_v_num_bytes = __Pyx_PyLong_As_size_t(__pyx_arg_num_bytes); if (unlikely((__pyx_v_num_bytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6383, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.num_bytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self), ((size_t)__pyx_v_num_bytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, size_t __pyx_v_num_bytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6384
 *     @num_bytes.setter
 *     def num_bytes(self, size_t num_bytes):
 *         self._pvt_ptr[0].num_bytes = num_bytes             # <<<<<<<<<<<<<<
 *     @property
 *     def hitRatio(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).num_bytes = __pyx_v_num_bytes;

  /* "cuda/bindings/runtime.pyx":6382
 *     def num_bytes(self):
 *         return self._pvt_ptr[0].num_bytes
 *     @num_bytes.setter             # <<<<<<<<<<<<<<
 *     def num_bytes(self, size_t num_bytes):
 *         self._pvt_ptr[0].num_bytes = num_bytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6385
 *     def num_bytes(self, size_t num_bytes):
 *         self._pvt_ptr[0].num_bytes = num_bytes
 *     @property             # <<<<<<<<<<<<<<
 *     def hitRatio(self):
 *         return self._pvt_ptr[0].hitRatio
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6387
 *     @property
 *     def hitRatio(self):
 *         return self._pvt_ptr[0].hitRatio             # <<<<<<<<<<<<<<
 *     @hitRatio.setter
 *     def hitRatio(self, float hitRatio):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->_pvt_ptr[0]).hitRatio); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6385
 *     def num_bytes(self, size_t num_bytes):
 *         self._pvt_ptr[0].num_bytes = num_bytes
 *     @property             # <<<<<<<<<<<<<<
 *     def hitRatio(self):
 *         return self._pvt_ptr[0].hitRatio
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.hitRatio.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6388
 *     def hitRatio(self):
 *         return self._pvt_ptr[0].hitRatio
 *     @hitRatio.setter             # <<<<<<<<<<<<<<
 *     def hitRatio(self, float hitRatio):
 *         self._pvt_ptr[0].hitRatio = hitRatio
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hitRatio); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hitRatio) {
  float __pyx_v_hitRatio;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_hitRatio); {
    __pyx_v_hitRatio = __Pyx_PyFloat_AsFloat(__pyx_arg_hitRatio); if (unlikely((__pyx_v_hitRatio == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 6389, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.hitRatio.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self), ((float)__pyx_v_hitRatio));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, float __pyx_v_hitRatio) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6390
 *     @hitRatio.setter
 *     def hitRatio(self, float hitRatio):
 *         self._pvt_ptr[0].hitRatio = hitRatio             # <<<<<<<<<<<<<<
 *     @property
 *     def hitProp(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).hitRatio = __pyx_v_hitRatio;

  /* "cuda/bindings/runtime.pyx":6388
 *     def hitRatio(self):
 *         return self._pvt_ptr[0].hitRatio
 *     @hitRatio.setter             # <<<<<<<<<<<<<<
 *     def hitRatio(self, float hitRatio):
 *         self._pvt_ptr[0].hitRatio = hitRatio
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6391
 *     def hitRatio(self, float hitRatio):
 *         self._pvt_ptr[0].hitRatio = hitRatio
 *     @property             # <<<<<<<<<<<<<<
 *     def hitProp(self):
 *         if self._pvt_ptr[0].hitProp not in _dict_cudaAccessProperty:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6393
 *     @property
 *     def hitProp(self):
 *         if self._pvt_ptr[0].hitProp not in _dict_cudaAccessProperty:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].hitProp]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaAccessProperty((__pyx_v_self->_pvt_ptr[0]).hitProp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaAccessProperty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 6393, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":6394
 *     def hitProp(self):
 *         if self._pvt_ptr[0].hitProp not in _dict_cudaAccessProperty:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].hitProp]
 *     @hitProp.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6393
 *     @property
 *     def hitProp(self):
 *         if self._pvt_ptr[0].hitProp not in _dict_cudaAccessProperty:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].hitProp]
*/
  }

  /* "cuda/bindings/runtime.pyx":6395
 *         if self._pvt_ptr[0].hitProp not in _dict_cudaAccessProperty:
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].hitProp]             # <<<<<<<<<<<<<<
 *     @hitProp.setter
 *     def hitProp(self, hitProp not None : cudaAccessProperty):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaAccessProperty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaAccessProperty((__pyx_v_self->_pvt_ptr[0]).hitProp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6391
 *     def hitRatio(self, float hitRatio):
 *         self._pvt_ptr[0].hitRatio = hitRatio
 *     @property             # <<<<<<<<<<<<<<
 *     def hitProp(self):
 *         if self._pvt_ptr[0].hitProp not in _dict_cudaAccessProperty:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.hitProp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6396
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].hitProp]
 *     @hitProp.setter             # <<<<<<<<<<<<<<
 *     def hitProp(self, hitProp not None : cudaAccessProperty):
 *         self._pvt_ptr[0].hitProp = hitProp.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_hitProp); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_hitProp) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_hitProp) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "hitProp"); __PYX_ERR(0, 6397, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self), ((PyObject *)__pyx_v_hitProp));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_hitProp) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaAccessProperty __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6398
 *     @hitProp.setter
 *     def hitProp(self, hitProp not None : cudaAccessProperty):
 *         self._pvt_ptr[0].hitProp = hitProp.value             # <<<<<<<<<<<<<<
 *     @property
 *     def missProp(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_hitProp, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaAccessProperty)__Pyx_PyLong_As_enum__cudaAccessProperty(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6398, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).hitProp = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":6396
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].hitProp]
 *     @hitProp.setter             # <<<<<<<<<<<<<<
 *     def hitProp(self, hitProp not None : cudaAccessProperty):
 *         self._pvt_ptr[0].hitProp = hitProp.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.hitProp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6399
 *     def hitProp(self, hitProp not None : cudaAccessProperty):
 *         self._pvt_ptr[0].hitProp = hitProp.value
 *     @property             # <<<<<<<<<<<<<<
 *     def missProp(self):
 *         if self._pvt_ptr[0].missProp not in _dict_cudaAccessProperty:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6401
 *     @property
 *     def missProp(self):
 *         if self._pvt_ptr[0].missProp not in _dict_cudaAccessProperty:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].missProp]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaAccessProperty((__pyx_v_self->_pvt_ptr[0]).missProp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaAccessProperty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 6401, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":6402
 *     def missProp(self):
 *         if self._pvt_ptr[0].missProp not in _dict_cudaAccessProperty:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].missProp]
 *     @missProp.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6401
 *     @property
 *     def missProp(self):
 *         if self._pvt_ptr[0].missProp not in _dict_cudaAccessProperty:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].missProp]
*/
  }

  /* "cuda/bindings/runtime.pyx":6403
 *         if self._pvt_ptr[0].missProp not in _dict_cudaAccessProperty:
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].missProp]             # <<<<<<<<<<<<<<
 *     @missProp.setter
 *     def missProp(self, missProp not None : cudaAccessProperty):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaAccessProperty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaAccessProperty((__pyx_v_self->_pvt_ptr[0]).missProp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6399
 *     def hitProp(self, hitProp not None : cudaAccessProperty):
 *         self._pvt_ptr[0].hitProp = hitProp.value
 *     @property             # <<<<<<<<<<<<<<
 *     def missProp(self):
 *         if self._pvt_ptr[0].missProp not in _dict_cudaAccessProperty:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.missProp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6404
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].missProp]
 *     @missProp.setter             # <<<<<<<<<<<<<<
 *     def missProp(self, missProp not None : cudaAccessProperty):
 *         self._pvt_ptr[0].missProp = missProp.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_missProp); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_missProp) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_missProp) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "missProp"); __PYX_ERR(0, 6405, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self), ((PyObject *)__pyx_v_missProp));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, PyObject *__pyx_v_missProp) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaAccessProperty __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6406
 *     @missProp.setter
 *     def missProp(self, missProp not None : cudaAccessProperty):
 *         self._pvt_ptr[0].missProp = missProp.value             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaHostNodeParams:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_missProp, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaAccessProperty)__Pyx_PyLong_As_enum__cudaAccessProperty(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6406, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).missProp = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":6404
 *             return None
 *         return _dict_cudaAccessProperty[self._pvt_ptr[0].missProp]
 *     @missProp.setter             # <<<<<<<<<<<<<<
 *     def missProp(self, missProp not None : cudaAccessProperty):
 *         self._pvt_ptr[0].missProp = missProp.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.missProp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_22cudaAccessPolicyWindow_10__reduce_cython__, "cudaAccessPolicyWindow.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_22cudaAccessPolicyWindow_12__setstate_cython__, "cudaAccessPolicyWindow.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaAccessPolicyWindow.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAccessPolicyWindow.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6424
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6424, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6424, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6424, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6424, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6424, __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.runtime.cudaHostNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":6425
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6426
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":6425
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6428
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaHostNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6424
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6429
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._fn = cudaHostFn_t(_ptr=<void_ptr>&self._pvt_ptr[0].fn)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6429, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6429, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6429, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6429, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6429, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6429, __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.runtime.cudaHostNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6431
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._fn = cudaHostFn_t(_ptr=<void_ptr>&self._pvt_ptr[0].fn)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).fn))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6431, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6431, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_fn);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_fn);
  __pyx_v_self->_fn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6429
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._fn = cudaHostFn_t(_ptr=<void_ptr>&self._pvt_ptr[0].fn)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6432
 *         pass
 *         self._fn = cudaHostFn_t(_ptr=<void_ptr>&self._pvt_ptr[0].fn)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6434
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_18cudaHostNodeParams_6getPtr, "cudaHostNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaHostNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaHostNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6435
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6434
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6436
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6437
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6438
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['fn : ' + str(self.fn)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6438, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6439
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6440
 *             str_list = []
 *             try:
 *                 str_list += ['fn : ' + str(self.fn)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_fn_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6440, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6440, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_fn, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6440, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6440, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6440, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6440, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6439
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6441
 *             try:
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['fn : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6441, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6442
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['userData : ' + hex(self.userData)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6442, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_fn_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_fn_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_fn_ValueError) != (0)) __PYX_ERR(0, 6442, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6442, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6439
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6443
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6444
 *                 str_list += ['fn : <ValueError>']
 *             try:
 *                 str_list += ['userData : ' + hex(self.userData)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['userData : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_userData_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6444, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6444, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_userData, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6444, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6444, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6444, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6444, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6443
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6445
 *             try:
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['userData : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6445, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6446
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:
 *                 str_list += ['userData : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6446, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_userData_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_userData_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_userData_ValueError) != (0)) __PYX_ERR(0, 6446, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6446, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":6443
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6447
 *             except ValueError:
 *                 str_list += ['userData : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6437
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6449
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def fn(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6436
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6450
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fn(self):
 *         return self._fn
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6452
 *     @property
 *     def fn(self):
 *         return self._fn             # <<<<<<<<<<<<<<
 *     @fn.setter
 *     def fn(self, fn):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_fn);
  __pyx_r = ((PyObject *)__pyx_v_self->_fn);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6450
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fn(self):
 *         return self._fn
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6453
 *     def fn(self):
 *         return self._fn
 *     @fn.setter             # <<<<<<<<<<<<<<
 *     def fn(self, fn):
 *         cdef cyruntime.cudaHostFn_t cyfn
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fn); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fn) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_fn));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, PyObject *__pyx_v_fn) {
  cudaHostFn_t __pyx_v_cyfn;
  PyObject *__pyx_v_pfn = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6456
 *     def fn(self, fn):
 *         cdef cyruntime.cudaHostFn_t cyfn
 *         if fn is None:             # <<<<<<<<<<<<<<
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):
*/
  __pyx_t_1 = (__pyx_v_fn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6457
 *         cdef cyruntime.cudaHostFn_t cyfn
 *         if fn is None:
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(fn, (cudaHostFn_t)):
 *             pfn = int(fn)
*/
    __pyx_v_cyfn = ((cudaHostFn_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":6456
 *     def fn(self, fn):
 *         cdef cyruntime.cudaHostFn_t cyfn
 *         if fn is None:             # <<<<<<<<<<<<<<
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6458
 *         if fn is None:
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):             # <<<<<<<<<<<<<<
 *             pfn = int(fn)
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_fn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6459
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):
 *             pfn = int(fn)             # <<<<<<<<<<<<<<
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6459, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pfn = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6460
 *         elif isinstance(fn, (cudaHostFn_t)):
 *             pfn = int(fn)
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn             # <<<<<<<<<<<<<<
 *         else:
 *             pfn = int(cudaHostFn_t(fn))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6460, __pyx_L1_error)
    __pyx_v_cyfn = ((cudaHostFn_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":6458
 *         if fn is None:
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):             # <<<<<<<<<<<<<<
 *             pfn = int(fn)
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6462
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         else:
 *             pfn = int(cudaHostFn_t(fn))             # <<<<<<<<<<<<<<
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         self._fn._pvt_ptr[0] = cyfn
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_fn};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6462, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pfn = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":6463
 *         else:
 *             pfn = int(cudaHostFn_t(fn))
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn             # <<<<<<<<<<<<<<
 *         self._fn._pvt_ptr[0] = cyfn
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6463, __pyx_L1_error)
    __pyx_v_cyfn = ((cudaHostFn_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6464
 *             pfn = int(cudaHostFn_t(fn))
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         self._fn._pvt_ptr[0] = cyfn             # <<<<<<<<<<<<<<
 *     @property
 *     def userData(self):
*/
  (__pyx_v_self->_fn->_pvt_ptr[0]) = __pyx_v_cyfn;

  /* "cuda/bindings/runtime.pyx":6453
 *     def fn(self):
 *         return self._fn
 *     @fn.setter             # <<<<<<<<<<<<<<
 *     def fn(self, fn):
 *         cdef cyruntime.cudaHostFn_t cyfn
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.fn.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pfn);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6465
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         self._fn._pvt_ptr[0] = cyfn
 *     @property             # <<<<<<<<<<<<<<
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6467
 *     @property
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData             # <<<<<<<<<<<<<<
 *     @userData.setter
 *     def userData(self, userData):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).userData)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6465
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         self._fn._pvt_ptr[0] = cyfn
 *     @property             # <<<<<<<<<<<<<<
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.userData.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6468
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData
 *     @userData.setter             # <<<<<<<<<<<<<<
 *     def userData(self, userData):
 *         _cuserData = _HelperInputVoidPtr(userData)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_userData); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_userData) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_userData));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, PyObject *__pyx_v_userData) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cuserData = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6470
 *     @userData.setter
 *     def userData(self, userData):
 *         _cuserData = _HelperInputVoidPtr(userData)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].userData = <void*><void_ptr>_cuserData.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_userData};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6470, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cuserData = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6471
 *     def userData(self, userData):
 *         _cuserData = _HelperInputVoidPtr(userData)
 *         self._pvt_ptr[0].userData = <void*><void_ptr>_cuserData.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaHostNodeParamsV2:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cuserData), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6471, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).userData = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":6468
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData
 *     @userData.setter             # <<<<<<<<<<<<<<
 *     def userData(self, userData):
 *         _cuserData = _HelperInputVoidPtr(userData)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.userData.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cuserData);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_18cudaHostNodeParams_10__reduce_cython__, "cudaHostNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaHostNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaHostNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_18cudaHostNodeParams_12__setstate_cython__, "cudaHostNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaHostNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaHostNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaHostNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaHostNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6489
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6489, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6489, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6489, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6489, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6489, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6489, __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.runtime.cudaHostNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":6490
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6491
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostNodeParamsV2 *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":6490
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6493
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostNodeParamsV2 *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaHostNodeParamsV2 *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6489
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6494
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostNodeParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._fn = cudaHostFn_t(_ptr=<void_ptr>&self._pvt_ptr[0].fn)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6494, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6494, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6494, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6494, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6494, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6494, __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.runtime.cudaHostNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6496
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._fn = cudaHostFn_t(_ptr=<void_ptr>&self._pvt_ptr[0].fn)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).fn))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6496, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6496, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6496, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_fn);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_fn);
  __pyx_v_self->_fn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6494
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaHostNodeParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._fn = cudaHostFn_t(_ptr=<void_ptr>&self._pvt_ptr[0].fn)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6497
 *         pass
 *         self._fn = cudaHostFn_t(_ptr=<void_ptr>&self._pvt_ptr[0].fn)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6499
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_7getPtr(PyObject *__pyx_v_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_7runtime_20cudaHostNodeParamsV2_6getPtr, "cudaHostNodeParamsV2.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6500
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6499
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6501
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6502
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6503
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['fn : ' + str(self.fn)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6504
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6505
 *             str_list = []
 *             try:
 *                 str_list += ['fn : ' + str(self.fn)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_fn_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6505, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6505, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_fn, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6505, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6505, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6505, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6505, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6504
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6506
 *             try:
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['fn : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6506, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6507
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['userData : ' + hex(self.userData)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6507, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_fn_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_fn_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_fn_ValueError) != (0)) __PYX_ERR(0, 6507, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6507, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6504
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fn : ' + str(self.fn)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6508
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6509
 *                 str_list += ['fn : <ValueError>']
 *             try:
 *                 str_list += ['userData : ' + hex(self.userData)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['userData : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_userData_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6509, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6509, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_userData, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6509, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6509, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6509, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6509, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6508
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6510
 *             try:
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['userData : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6510, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6511
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:
 *                 str_list += ['userData : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6511, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_userData_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_userData_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_userData_ValueError) != (0)) __PYX_ERR(0, 6511, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6511, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":6508
 *             except ValueError:
 *                 str_list += ['fn : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['userData : ' + hex(self.userData)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6512
 *             except ValueError:
 *                 str_list += ['userData : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6512, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6502
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6514
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def fn(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6501
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6515
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fn(self):
 *         return self._fn
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6517
 *     @property
 *     def fn(self):
 *         return self._fn             # <<<<<<<<<<<<<<
 *     @fn.setter
 *     def fn(self, fn):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_fn);
  __pyx_r = ((PyObject *)__pyx_v_self->_fn);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6515
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fn(self):
 *         return self._fn
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6518
 *     def fn(self):
 *         return self._fn
 *     @fn.setter             # <<<<<<<<<<<<<<
 *     def fn(self, fn):
 *         cdef cyruntime.cudaHostFn_t cyfn
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fn); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fn) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_fn));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_fn) {
  cudaHostFn_t __pyx_v_cyfn;
  PyObject *__pyx_v_pfn = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6521
 *     def fn(self, fn):
 *         cdef cyruntime.cudaHostFn_t cyfn
 *         if fn is None:             # <<<<<<<<<<<<<<
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):
*/
  __pyx_t_1 = (__pyx_v_fn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6522
 *         cdef cyruntime.cudaHostFn_t cyfn
 *         if fn is None:
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(fn, (cudaHostFn_t)):
 *             pfn = int(fn)
*/
    __pyx_v_cyfn = ((cudaHostFn_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":6521
 *     def fn(self, fn):
 *         cdef cyruntime.cudaHostFn_t cyfn
 *         if fn is None:             # <<<<<<<<<<<<<<
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6523
 *         if fn is None:
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):             # <<<<<<<<<<<<<<
 *             pfn = int(fn)
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_fn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6524
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):
 *             pfn = int(fn)             # <<<<<<<<<<<<<<
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6524, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pfn = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6525
 *         elif isinstance(fn, (cudaHostFn_t)):
 *             pfn = int(fn)
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn             # <<<<<<<<<<<<<<
 *         else:
 *             pfn = int(cudaHostFn_t(fn))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6525, __pyx_L1_error)
    __pyx_v_cyfn = ((cudaHostFn_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":6523
 *         if fn is None:
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>0
 *         elif isinstance(fn, (cudaHostFn_t)):             # <<<<<<<<<<<<<<
 *             pfn = int(fn)
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6527
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         else:
 *             pfn = int(cudaHostFn_t(fn))             # <<<<<<<<<<<<<<
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         self._fn._pvt_ptr[0] = cyfn
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_fn};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6527, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6527, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pfn = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":6528
 *         else:
 *             pfn = int(cudaHostFn_t(fn))
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn             # <<<<<<<<<<<<<<
 *         self._fn._pvt_ptr[0] = cyfn
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6528, __pyx_L1_error)
    __pyx_v_cyfn = ((cudaHostFn_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6529
 *             pfn = int(cudaHostFn_t(fn))
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         self._fn._pvt_ptr[0] = cyfn             # <<<<<<<<<<<<<<
 *     @property
 *     def userData(self):
*/
  (__pyx_v_self->_fn->_pvt_ptr[0]) = __pyx_v_cyfn;

  /* "cuda/bindings/runtime.pyx":6518
 *     def fn(self):
 *         return self._fn
 *     @fn.setter             # <<<<<<<<<<<<<<
 *     def fn(self, fn):
 *         cdef cyruntime.cudaHostFn_t cyfn
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.fn.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pfn);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6530
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         self._fn._pvt_ptr[0] = cyfn
 *     @property             # <<<<<<<<<<<<<<
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6532
 *     @property
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData             # <<<<<<<<<<<<<<
 *     @userData.setter
 *     def userData(self, userData):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).userData)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6530
 *             cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *         self._fn._pvt_ptr[0] = cyfn
 *     @property             # <<<<<<<<<<<<<<
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.userData.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6533
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData
 *     @userData.setter             # <<<<<<<<<<<<<<
 *     def userData(self, userData):
 *         _cuserData = _HelperInputVoidPtr(userData)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_userData); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_userData) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_userData));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_userData) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cuserData = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6535
 *     @userData.setter
 *     def userData(self, userData):
 *         _cuserData = _HelperInputVoidPtr(userData)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].userData = <void*><void_ptr>_cuserData.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_userData};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6535, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cuserData = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6536
 *     def userData(self, userData):
 *         _cuserData = _HelperInputVoidPtr(userData)
 *         self._pvt_ptr[0].userData = <void*><void_ptr>_cuserData.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct1:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cuserData), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).userData = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":6533
 *     def userData(self):
 *         return <void_ptr>self._pvt_ptr[0].userData
 *     @userData.setter             # <<<<<<<<<<<<<<
 *     def userData(self, userData):
 *         _cuserData = _HelperInputVoidPtr(userData)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.userData.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cuserData);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaHostNodeParamsV2_10__reduce_cython__, "cudaHostNodeParamsV2.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaHostNodeParamsV2_12__setstate_cython__, "cudaHostNodeParamsV2.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaHostNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6550
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6550, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6550, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6550, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 6550, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6550, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6550, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6550, __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.runtime.anon_struct1.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6551
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":6550
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6553
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].res.array.array)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6553, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6553, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6553, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 6553, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6553, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6553, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6553, __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.runtime.anon_struct1.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6555
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].res.array.array)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.array.array))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6555, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6555, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6555, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_array);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_array);
  __pyx_v_self->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6553
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].res.array.array)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct1.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6556
 *         pass
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].res.array.array)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6558
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.array
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct1_6getPtr, "anon_struct1.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct1_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct1_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6559
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.array             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.array))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6558
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.array
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct1.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6560
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.array
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6561
 *         return <void_ptr>&self._pvt_ptr[0].res.array
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6562
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['array : ' + str(self.array)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6563
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6564
 *             str_list = []
 *             try:
 *                 str_list += ['array : ' + str(self.array)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_array_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6564, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6564, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_array, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6564, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6564, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6564, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6564, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6563
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6565
 *             try:
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6565, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6566
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6566, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_array_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_array_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_array_ValueError) != (0)) __PYX_ERR(0, 6566, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6566, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6563
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6567
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6561
 *         return <void_ptr>&self._pvt_ptr[0].res.array
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6569
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def array(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6560
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.array
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6570
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def array(self):
 *         return self._array
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5array_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5array_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_5array___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_5array___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6572
 *     @property
 *     def array(self):
 *         return self._array             # <<<<<<<<<<<<<<
 *     @array.setter
 *     def array(self, array):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_array);
  __pyx_r = ((PyObject *)__pyx_v_self->_array);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6570
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def array(self):
 *         return self._array
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6573
 *     def array(self):
 *         return self._array
 *     @array.setter             # <<<<<<<<<<<<<<
 *     def array(self, array):
 *         cdef cyruntime.cudaArray_t cyarray
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_5array_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self), ((PyObject *)__pyx_v_array));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_5array_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self, PyObject *__pyx_v_array) {
  cudaArray_t __pyx_v_cyarray;
  PyObject *__pyx_v_parray = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6576
 *     def array(self, array):
 *         cdef cyruntime.cudaArray_t cyarray
 *         if array is None:             # <<<<<<<<<<<<<<
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_array == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6577
 *         cdef cyruntime.cudaArray_t cyarray
 *         if array is None:
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(array, (cudaArray_t,)):
 *             parray = int(array)
*/
    __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":6576
 *     def array(self, array):
 *         cdef cyruntime.cudaArray_t cyarray
 *         if array is None:             # <<<<<<<<<<<<<<
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6578
 *         if array is None:
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             parray = int(array)
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6579
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):
 *             parray = int(array)             # <<<<<<<<<<<<<<
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_parray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6580
 *         elif isinstance(array, (cudaArray_t,)):
 *             parray = int(array)
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *         else:
 *             parray = int(cudaArray_t(array))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6580, __pyx_L1_error)
    __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":6578
 *         if array is None:
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             parray = int(array)
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6582
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         else:
 *             parray = int(cudaArray_t(array))             # <<<<<<<<<<<<<<
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         self._array._pvt_ptr[0] = cyarray
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_array};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6582, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6582, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_parray = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":6583
 *         else:
 *             parray = int(cudaArray_t(array))
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *         self._array._pvt_ptr[0] = cyarray
 * 
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6583, __pyx_L1_error)
    __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6584
 *             parray = int(cudaArray_t(array))
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         self._array._pvt_ptr[0] = cyarray             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct2:
*/
  (__pyx_v_self->_array->_pvt_ptr[0]) = __pyx_v_cyarray;

  /* "cuda/bindings/runtime.pyx":6573
 *     def array(self):
 *         return self._array
 *     @array.setter             # <<<<<<<<<<<<<<
 *     def array(self, array):
 *         cdef cyruntime.cudaArray_t cyarray
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct1.array.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parray);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct1_10__reduce_cython__, "anon_struct1.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct1_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct1_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct1.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct1_12__setstate_cython__, "anon_struct1.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct1_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct1_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct1.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct1_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct1.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6598
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6598, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6598, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6598, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 6598, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6598, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6598, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6598, __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.runtime.anon_struct2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6599
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":6598
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6601
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._mipmap = cudaMipmappedArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].res.mipmap.mipmap)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6601, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6601, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6601, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 6601, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6601, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6601, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6601, __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.runtime.anon_struct2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6603
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._mipmap = cudaMipmappedArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].res.mipmap.mipmap)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.mipmap.mipmap))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6603, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6603, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_mipmap);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_mipmap);
  __pyx_v_self->_mipmap = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6601
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._mipmap = cudaMipmappedArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].res.mipmap.mipmap)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6604
 *         pass
 *         self._mipmap = cudaMipmappedArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].res.mipmap.mipmap)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6606
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.mipmap
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct2_6getPtr, "anon_struct2.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct2_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct2_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6607
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.mipmap             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.mipmap))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6606
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.mipmap
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6608
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.mipmap
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6609
 *         return <void_ptr>&self._pvt_ptr[0].res.mipmap
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6610
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['mipmap : ' + str(self.mipmap)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6610, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6611
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmap : ' + str(self.mipmap)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6612
 *             str_list = []
 *             try:
 *                 str_list += ['mipmap : ' + str(self.mipmap)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['mipmap : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_mipmap_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6612, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6612, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_mipmap, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6612, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6612, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6612, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6612, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6611
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmap : ' + str(self.mipmap)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6613
 *             try:
 *                 str_list += ['mipmap : ' + str(self.mipmap)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmap : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6613, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6614
 *                 str_list += ['mipmap : ' + str(self.mipmap)]
 *             except ValueError:
 *                 str_list += ['mipmap : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6614, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_mipmap_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_mipmap_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_mipmap_ValueError) != (0)) __PYX_ERR(0, 6614, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6614, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6611
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmap : ' + str(self.mipmap)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6615
 *             except ValueError:
 *                 str_list += ['mipmap : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6609
 *         return <void_ptr>&self._pvt_ptr[0].res.mipmap
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6617
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def mipmap(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6608
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.mipmap
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6618
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def mipmap(self):
 *         return self._mipmap
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6mipmap___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6mipmap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6620
 *     @property
 *     def mipmap(self):
 *         return self._mipmap             # <<<<<<<<<<<<<<
 *     @mipmap.setter
 *     def mipmap(self, mipmap):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_mipmap);
  __pyx_r = ((PyObject *)__pyx_v_self->_mipmap);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6618
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def mipmap(self):
 *         return self._mipmap
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6621
 *     def mipmap(self):
 *         return self._mipmap
 *     @mipmap.setter             # <<<<<<<<<<<<<<
 *     def mipmap(self, mipmap):
 *         cdef cyruntime.cudaMipmappedArray_t cymipmap
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmap); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmap) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self), ((PyObject *)__pyx_v_mipmap));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self, PyObject *__pyx_v_mipmap) {
  cudaMipmappedArray_t __pyx_v_cymipmap;
  PyObject *__pyx_v_pmipmap = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6624
 *     def mipmap(self, mipmap):
 *         cdef cyruntime.cudaMipmappedArray_t cymipmap
 *         if mipmap is None:             # <<<<<<<<<<<<<<
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>0
 *         elif isinstance(mipmap, (cudaMipmappedArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_mipmap == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6625
 *         cdef cyruntime.cudaMipmappedArray_t cymipmap
 *         if mipmap is None:
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(mipmap, (cudaMipmappedArray_t,)):
 *             pmipmap = int(mipmap)
*/
    __pyx_v_cymipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":6624
 *     def mipmap(self, mipmap):
 *         cdef cyruntime.cudaMipmappedArray_t cymipmap
 *         if mipmap is None:             # <<<<<<<<<<<<<<
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>0
 *         elif isinstance(mipmap, (cudaMipmappedArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6626
 *         if mipmap is None:
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>0
 *         elif isinstance(mipmap, (cudaMipmappedArray_t,)):             # <<<<<<<<<<<<<<
 *             pmipmap = int(mipmap)
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmap, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6627
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>0
 *         elif isinstance(mipmap, (cudaMipmappedArray_t,)):
 *             pmipmap = int(mipmap)             # <<<<<<<<<<<<<<
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pmipmap = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6628
 *         elif isinstance(mipmap, (cudaMipmappedArray_t,)):
 *             pmipmap = int(mipmap)
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap             # <<<<<<<<<<<<<<
 *         else:
 *             pmipmap = int(cudaMipmappedArray_t(mipmap))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6628, __pyx_L1_error)
    __pyx_v_cymipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":6626
 *         if mipmap is None:
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>0
 *         elif isinstance(mipmap, (cudaMipmappedArray_t,)):             # <<<<<<<<<<<<<<
 *             pmipmap = int(mipmap)
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6630
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *         else:
 *             pmipmap = int(cudaMipmappedArray_t(mipmap))             # <<<<<<<<<<<<<<
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *         self._mipmap._pvt_ptr[0] = cymipmap
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_mipmap};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6630, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pmipmap = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":6631
 *         else:
 *             pmipmap = int(cudaMipmappedArray_t(mipmap))
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap             # <<<<<<<<<<<<<<
 *         self._mipmap._pvt_ptr[0] = cymipmap
 * 
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6631, __pyx_L1_error)
    __pyx_v_cymipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6632
 *             pmipmap = int(cudaMipmappedArray_t(mipmap))
 *             cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *         self._mipmap._pvt_ptr[0] = cymipmap             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct3:
*/
  (__pyx_v_self->_mipmap->_pvt_ptr[0]) = __pyx_v_cymipmap;

  /* "cuda/bindings/runtime.pyx":6621
 *     def mipmap(self):
 *         return self._mipmap
 *     @mipmap.setter             # <<<<<<<<<<<<<<
 *     def mipmap(self, mipmap):
 *         cdef cyruntime.cudaMipmappedArray_t cymipmap
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct2.mipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmipmap);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct2_10__reduce_cython__, "anon_struct2.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct2_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct2_12__setstate_cython__, "anon_struct2.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct2_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6650
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6650, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6650, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6650, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 6650, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6650, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6650, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6650, __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.runtime.anon_struct3.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6651
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":6650
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6653
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._desc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].res.linear.desc)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6653, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6653, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6653, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 6653, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6653, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6653, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6653, __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.runtime.anon_struct3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6655
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._desc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].res.linear.desc)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.linear.desc))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6655, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6655, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_desc);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_desc);
  __pyx_v_self->_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6653
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._desc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].res.linear.desc)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6656
 *         pass
 *         self._desc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].res.linear.desc)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6658
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.linear
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct3_6getPtr, "anon_struct3.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct3_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct3_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6659
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.linear             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.linear))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6658
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.linear
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6660
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.linear
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr102__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6661
 *         return <void_ptr>&self._pvt_ptr[0].res.linear
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6662
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6663
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6664
 *             str_list = []
 *             try:
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_devPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6664, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6664, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_devPtr, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6664, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6664, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6664, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6664, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6663
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6665
 *             try:
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['devPtr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6665, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6666
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6666, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_devPtr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_devPtr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_devPtr_ValueError) != (0)) __PYX_ERR(0, 6666, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6666, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6663
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6667
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6668
 *                 str_list += ['devPtr : <ValueError>']
 *             try:
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6668, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_desc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6668, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6668, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6668, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6668, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6668, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr102__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr102__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6668, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6668, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr102__pyx_v_line); __pyx_10genexpr102__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr102__pyx_v_line); __pyx_10genexpr102__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6668, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_desc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6668, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6668, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6668, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6668, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6667
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6669
 *             try:
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['desc : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 6669, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":6670
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sizeInBytes : ' + str(self.sizeInBytes)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6670, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_desc_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_desc_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_desc_ValueError) != (0)) __PYX_ERR(0, 6670, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6670, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":6667
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6671
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sizeInBytes : ' + str(self.sizeInBytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6672
 *                 str_list += ['desc : <ValueError>']
 *             try:
 *                 str_list += ['sizeInBytes : ' + str(self.sizeInBytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sizeInBytes : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sizeInBytes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6672, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6672, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sizeInBytes, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6672, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6672, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 6672, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6672, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":6671
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sizeInBytes : ' + str(self.sizeInBytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6673
 *             try:
 *                 str_list += ['sizeInBytes : ' + str(self.sizeInBytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sizeInBytes : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 6673, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6674
 *                 str_list += ['sizeInBytes : ' + str(self.sizeInBytes)]
 *             except ValueError:
 *                 str_list += ['sizeInBytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6674, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sizeInBytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sizeInBytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_sizeInBytes_ValueError) != (0)) __PYX_ERR(0, 6674, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6674, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":6671
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sizeInBytes : ' + str(self.sizeInBytes)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6675
 *             except ValueError:
 *                 str_list += ['sizeInBytes : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6661
 *         return <void_ptr>&self._pvt_ptr[0].res.linear
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6677
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def devPtr(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6660
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.linear
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr102__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6678
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.linear.devPtr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6devPtr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6devPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6680
 *     @property
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.linear.devPtr             # <<<<<<<<<<<<<<
 *     @devPtr.setter
 *     def devPtr(self, devPtr):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).res.linear.devPtr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6678
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.linear.devPtr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.devPtr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6681
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.linear.devPtr
 *     @devPtr.setter             # <<<<<<<<<<<<<<
 *     def devPtr(self, devPtr):
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devPtr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devPtr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self), ((PyObject *)__pyx_v_devPtr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, PyObject *__pyx_v_devPtr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdevPtr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6683
 *     @devPtr.setter
 *     def devPtr(self, devPtr):
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].res.linear.devPtr = <void*><void_ptr>_cdevPtr.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6683, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6684
 *     def devPtr(self, devPtr):
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
 *         self._pvt_ptr[0].res.linear.devPtr = <void*><void_ptr>_cdevPtr.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def desc(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6684, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).res.linear.devPtr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":6681
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.linear.devPtr
 *     @devPtr.setter             # <<<<<<<<<<<<<<
 *     def devPtr(self, devPtr):
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.devPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdevPtr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6685
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
 *         self._pvt_ptr[0].res.linear.devPtr = <void*><void_ptr>_cdevPtr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def desc(self):
 *         return self._desc
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_4desc_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_4desc_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4desc___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4desc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6687
 *     @property
 *     def desc(self):
 *         return self._desc             # <<<<<<<<<<<<<<
 *     @desc.setter
 *     def desc(self, desc not None : cudaChannelFormatDesc):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_desc);
  __pyx_r = ((PyObject *)__pyx_v_self->_desc);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6685
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
 *         self._pvt_ptr[0].res.linear.devPtr = <void*><void_ptr>_cdevPtr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def desc(self):
 *         return self._desc
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6688
 *     def desc(self):
 *         return self._desc
 *     @desc.setter             # <<<<<<<<<<<<<<
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.linear.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.linear.desc))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_4desc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_desc); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_4desc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_desc) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_desc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, 0, "desc", 0))) __PYX_ERR(0, 6689, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4desc_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_desc));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_4desc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6690
 *     @desc.setter
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.linear.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.linear.desc))             # <<<<<<<<<<<<<<
 *     @property
 *     def sizeInBytes(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_desc);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6690, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).res.linear.desc), ((struct cudaChannelFormatDesc *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).res.linear.desc))));

  /* "cuda/bindings/runtime.pyx":6688
 *     def desc(self):
 *         return self._desc
 *     @desc.setter             # <<<<<<<<<<<<<<
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.linear.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.linear.desc))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.desc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6691
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.linear.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.linear.desc))
 *     @property             # <<<<<<<<<<<<<<
 *     def sizeInBytes(self):
 *         return self._pvt_ptr[0].res.linear.sizeInBytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6693
 *     @property
 *     def sizeInBytes(self):
 *         return self._pvt_ptr[0].res.linear.sizeInBytes             # <<<<<<<<<<<<<<
 *     @sizeInBytes.setter
 *     def sizeInBytes(self, size_t sizeInBytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).res.linear.sizeInBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6691
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.linear.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.linear.desc))
 *     @property             # <<<<<<<<<<<<<<
 *     def sizeInBytes(self):
 *         return self._pvt_ptr[0].res.linear.sizeInBytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.sizeInBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6694
 *     def sizeInBytes(self):
 *         return self._pvt_ptr[0].res.linear.sizeInBytes
 *     @sizeInBytes.setter             # <<<<<<<<<<<<<<
 *     def sizeInBytes(self, size_t sizeInBytes):
 *         self._pvt_ptr[0].res.linear.sizeInBytes = sizeInBytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sizeInBytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sizeInBytes) {
  size_t __pyx_v_sizeInBytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sizeInBytes); {
    __pyx_v_sizeInBytes = __Pyx_PyLong_As_size_t(__pyx_arg_sizeInBytes); if (unlikely((__pyx_v_sizeInBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6695, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.sizeInBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self), ((size_t)__pyx_v_sizeInBytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, size_t __pyx_v_sizeInBytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6696
 *     @sizeInBytes.setter
 *     def sizeInBytes(self, size_t sizeInBytes):
 *         self._pvt_ptr[0].res.linear.sizeInBytes = sizeInBytes             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct4:
*/
  (__pyx_v_self->_pvt_ptr[0]).res.linear.sizeInBytes = __pyx_v_sizeInBytes;

  /* "cuda/bindings/runtime.pyx":6694
 *     def sizeInBytes(self):
 *         return self._pvt_ptr[0].res.linear.sizeInBytes
 *     @sizeInBytes.setter             # <<<<<<<<<<<<<<
 *     def sizeInBytes(self, size_t sizeInBytes):
 *         self._pvt_ptr[0].res.linear.sizeInBytes = sizeInBytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct3_10__reduce_cython__, "anon_struct3.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct3_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct3_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct3_12__setstate_cython__, "anon_struct3.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct3_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct3_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct3_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6718
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6718, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6718, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6718, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 6718, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6718, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6718, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6718, __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.runtime.anon_struct4.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6719
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":6718
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6721
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._desc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].res.pitch2D.desc)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6721, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6721, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6721, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 6721, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6721, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6721, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6721, __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.runtime.anon_struct4.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6723
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._desc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].res.pitch2D.desc)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.pitch2D.desc))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6723, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6723, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_desc);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_desc);
  __pyx_v_self->_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6721
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._desc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].res.pitch2D.desc)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6724
 *         pass
 *         self._desc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].res.pitch2D.desc)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6726
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.pitch2D
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct4_6getPtr, "anon_struct4.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct4_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct4_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6727
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.pitch2D             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.pitch2D))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6726
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.pitch2D
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6728
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.pitch2D
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr103__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6729
 *         return <void_ptr>&self._pvt_ptr[0].res.pitch2D
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6730
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6730, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6731
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6732
 *             str_list = []
 *             try:
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_devPtr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6732, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6732, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_devPtr, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6732, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6732, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6732, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6732, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6731
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6733
 *             try:
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['devPtr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6733, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6734
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6734, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_devPtr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_devPtr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_devPtr_ValueError) != (0)) __PYX_ERR(0, 6734, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6734, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6731
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devPtr : ' + hex(self.devPtr)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6735
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6736
 *                 str_list += ['devPtr : <ValueError>']
 *             try:
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6736, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_desc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6736, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6736, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6736, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6736, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6736, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr103__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr103__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6736, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6736, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr103__pyx_v_line); __pyx_10genexpr103__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr103__pyx_v_line); __pyx_10genexpr103__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6736, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_desc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6736, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6736, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6736, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6736, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6735
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6737
 *             try:
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['desc : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 6737, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":6738
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6738, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_desc_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_desc_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_desc_ValueError) != (0)) __PYX_ERR(0, 6738, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6738, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":6735
 *             except ValueError:
 *                 str_list += ['devPtr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['desc :\n' + '\n'.join(['    ' + line for line in str(self.desc).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6739
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6740
 *                 str_list += ['desc : <ValueError>']
 *             try:
 *                 str_list += ['width : ' + str(self.width)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_width_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6740, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6740, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_width, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6740, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6740, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 6740, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6740, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":6739
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6741
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 6741, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6742
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6742, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_width_ValueError) != (0)) __PYX_ERR(0, 6742, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6742, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":6739
 *             except ValueError:
 *                 str_list += ['desc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6743
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6744
 *                 str_list += ['width : <ValueError>']
 *             try:
 *                 str_list += ['height : ' + str(self.height)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6744, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6744, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_height, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6744, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6744, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6744, __pyx_L35_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6744, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6743
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6745
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 6745, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":6746
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pitchInBytes : ' + str(self.pitchInBytes)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6746, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_height_ValueError) != (0)) __PYX_ERR(0, 6746, __pyx_L37_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6746, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":6743
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6747
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitchInBytes : ' + str(self.pitchInBytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6748
 *                 str_list += ['height : <ValueError>']
 *             try:
 *                 str_list += ['pitchInBytes : ' + str(self.pitchInBytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pitchInBytes : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pitchInBytes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6748, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6748, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pitchInBytes, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6748, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6748, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 6748, __pyx_L43_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6748, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":6747
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitchInBytes : ' + str(self.pitchInBytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6749
 *             try:
 *                 str_list += ['pitchInBytes : ' + str(self.pitchInBytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitchInBytes : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 6749, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6750
 *                 str_list += ['pitchInBytes : ' + str(self.pitchInBytes)]
 *             except ValueError:
 *                 str_list += ['pitchInBytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6750, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pitchInBytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pitchInBytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_pitchInBytes_ValueError) != (0)) __PYX_ERR(0, 6750, __pyx_L45_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6750, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":6747
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitchInBytes : ' + str(self.pitchInBytes)]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6751
 *             except ValueError:
 *                 str_list += ['pitchInBytes : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6751, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6729
 *         return <void_ptr>&self._pvt_ptr[0].res.pitch2D
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6753
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def devPtr(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6728
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.pitch2D
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr103__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6754
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.pitch2D.devPtr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6devPtr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6devPtr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6756
 *     @property
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.pitch2D.devPtr             # <<<<<<<<<<<<<<
 *     @devPtr.setter
 *     def devPtr(self, devPtr):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).res.pitch2D.devPtr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6754
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.pitch2D.devPtr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.devPtr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6757
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.pitch2D.devPtr
 *     @devPtr.setter             # <<<<<<<<<<<<<<
 *     def devPtr(self, devPtr):
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devPtr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devPtr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self), ((PyObject *)__pyx_v_devPtr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, PyObject *__pyx_v_devPtr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdevPtr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6759
 *     @devPtr.setter
 *     def devPtr(self, devPtr):
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].res.pitch2D.devPtr = <void*><void_ptr>_cdevPtr.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6759, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6760
 *     def devPtr(self, devPtr):
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
 *         self._pvt_ptr[0].res.pitch2D.devPtr = <void*><void_ptr>_cdevPtr.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def desc(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).res.pitch2D.devPtr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":6757
 *     def devPtr(self):
 *         return <void_ptr>self._pvt_ptr[0].res.pitch2D.devPtr
 *     @devPtr.setter             # <<<<<<<<<<<<<<
 *     def devPtr(self, devPtr):
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.devPtr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdevPtr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6761
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
 *         self._pvt_ptr[0].res.pitch2D.devPtr = <void*><void_ptr>_cdevPtr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def desc(self):
 *         return self._desc
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_4desc_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_4desc_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4desc___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4desc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6763
 *     @property
 *     def desc(self):
 *         return self._desc             # <<<<<<<<<<<<<<
 *     @desc.setter
 *     def desc(self, desc not None : cudaChannelFormatDesc):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_desc);
  __pyx_r = ((PyObject *)__pyx_v_self->_desc);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6761
 *         _cdevPtr = _HelperInputVoidPtr(devPtr)
 *         self._pvt_ptr[0].res.pitch2D.devPtr = <void*><void_ptr>_cdevPtr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def desc(self):
 *         return self._desc
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6764
 *     def desc(self):
 *         return self._desc
 *     @desc.setter             # <<<<<<<<<<<<<<
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D.desc))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_4desc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_desc); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_4desc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_desc) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_desc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, 0, "desc", 0))) __PYX_ERR(0, 6765, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4desc_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_desc));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_4desc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6766
 *     @desc.setter
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D.desc))             # <<<<<<<<<<<<<<
 *     @property
 *     def width(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_desc);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6766, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).res.pitch2D.desc), ((struct cudaChannelFormatDesc *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).res.pitch2D.desc))));

  /* "cuda/bindings/runtime.pyx":6764
 *     def desc(self):
 *         return self._desc
 *     @desc.setter             # <<<<<<<<<<<<<<
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D.desc))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.desc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6767
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D.desc))
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].res.pitch2D.width
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5width_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_5width___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6769
 *     @property
 *     def width(self):
 *         return self._pvt_ptr[0].res.pitch2D.width             # <<<<<<<<<<<<<<
 *     @width.setter
 *     def width(self, size_t width):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).res.pitch2D.width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6767
 *     def desc(self, desc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D.desc, <cyruntime.cudaChannelFormatDesc*><void_ptr>desc.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D.desc))
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].res.pitch2D.width
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6770
 *     def width(self):
 *         return self._pvt_ptr[0].res.pitch2D.width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].res.pitch2D.width = width
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width) {
  size_t __pyx_v_width;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_width); {
    __pyx_v_width = __Pyx_PyLong_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6771, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_5width_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self), ((size_t)__pyx_v_width));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, size_t __pyx_v_width) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6772
 *     @width.setter
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].res.pitch2D.width = width             # <<<<<<<<<<<<<<
 *     @property
 *     def height(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).res.pitch2D.width = __pyx_v_width;

  /* "cuda/bindings/runtime.pyx":6770
 *     def width(self):
 *         return self._pvt_ptr[0].res.pitch2D.width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].res.pitch2D.width = width
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6773
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].res.pitch2D.width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].res.pitch2D.height
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6height_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6height___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6775
 *     @property
 *     def height(self):
 *         return self._pvt_ptr[0].res.pitch2D.height             # <<<<<<<<<<<<<<
 *     @height.setter
 *     def height(self, size_t height):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).res.pitch2D.height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6773
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].res.pitch2D.width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].res.pitch2D.height
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6776
 *     def height(self):
 *         return self._pvt_ptr[0].res.pitch2D.height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].res.pitch2D.height = height
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height) {
  size_t __pyx_v_height;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_height); {
    __pyx_v_height = __Pyx_PyLong_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6777, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6height_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self), ((size_t)__pyx_v_height));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, size_t __pyx_v_height) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6778
 *     @height.setter
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].res.pitch2D.height = height             # <<<<<<<<<<<<<<
 *     @property
 *     def pitchInBytes(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).res.pitch2D.height = __pyx_v_height;

  /* "cuda/bindings/runtime.pyx":6776
 *     def height(self):
 *         return self._pvt_ptr[0].res.pitch2D.height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].res.pitch2D.height = height
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6779
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].res.pitch2D.height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def pitchInBytes(self):
 *         return self._pvt_ptr[0].res.pitch2D.pitchInBytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6781
 *     @property
 *     def pitchInBytes(self):
 *         return self._pvt_ptr[0].res.pitch2D.pitchInBytes             # <<<<<<<<<<<<<<
 *     @pitchInBytes.setter
 *     def pitchInBytes(self, size_t pitchInBytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).res.pitch2D.pitchInBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6779
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].res.pitch2D.height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def pitchInBytes(self):
 *         return self._pvt_ptr[0].res.pitch2D.pitchInBytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.pitchInBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6782
 *     def pitchInBytes(self):
 *         return self._pvt_ptr[0].res.pitch2D.pitchInBytes
 *     @pitchInBytes.setter             # <<<<<<<<<<<<<<
 *     def pitchInBytes(self, size_t pitchInBytes):
 *         self._pvt_ptr[0].res.pitch2D.pitchInBytes = pitchInBytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitchInBytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitchInBytes) {
  size_t __pyx_v_pitchInBytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pitchInBytes); {
    __pyx_v_pitchInBytes = __Pyx_PyLong_As_size_t(__pyx_arg_pitchInBytes); if (unlikely((__pyx_v_pitchInBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 6783, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.pitchInBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self), ((size_t)__pyx_v_pitchInBytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, size_t __pyx_v_pitchInBytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6784
 *     @pitchInBytes.setter
 *     def pitchInBytes(self, size_t pitchInBytes):
 *         self._pvt_ptr[0].res.pitch2D.pitchInBytes = pitchInBytes             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct5:
*/
  (__pyx_v_self->_pvt_ptr[0]).res.pitch2D.pitchInBytes = __pyx_v_pitchInBytes;

  /* "cuda/bindings/runtime.pyx":6782
 *     def pitchInBytes(self):
 *         return self._pvt_ptr[0].res.pitch2D.pitchInBytes
 *     @pitchInBytes.setter             # <<<<<<<<<<<<<<
 *     def pitchInBytes(self, size_t pitchInBytes):
 *         self._pvt_ptr[0].res.pitch2D.pitchInBytes = pitchInBytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct4_10__reduce_cython__, "anon_struct4.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct4_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct4_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct4_12__setstate_cython__, "anon_struct4.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct4_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct4_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct4_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6798
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6798, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6798, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6798, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 6798, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6798, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6798, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6798, __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.runtime.anon_struct5.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6799
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":6798
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6801
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6801, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6801, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6801, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 6801, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6801, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6801, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6801, __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.runtime.anon_struct5.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6803
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6805
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.reserved
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct5_6getPtr, "anon_struct5.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct5_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct5_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6806
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.reserved             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res.reserved))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6806, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6805
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.reserved
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct5.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6807
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.reserved
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6808
 *         return <void_ptr>&self._pvt_ptr[0].res.reserved
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6809
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6809, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6810
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6811
 *             str_list = []
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6811, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6811, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6811, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6811, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6811, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6811, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6810
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6812
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct5.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6812, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6813
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6813, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 6813, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6813, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6810
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6814
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6814, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6808
 *         return <void_ptr>&self._pvt_ptr[0].res.reserved
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6816
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6807
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res.reserved
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct5.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6817
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].res.reserved.reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6819
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].res.reserved.reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).res.reserved.reserved, 32); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6817
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].res.reserved.reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct5.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6820
 *     def reserved(self):
 *         return self._pvt_ptr[0].res.reserved.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].res.reserved.reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  int __pyx_t_1[32];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":6822
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].res.reserved.reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union0:
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_reserved, __pyx_t_1, 32) < 0))) __PYX_ERR(0, 6822, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).res.reserved.reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).res.reserved.reserved[0]) * (32));

  /* "cuda/bindings/runtime.pyx":6820
 *     def reserved(self):
 *         return self._pvt_ptr[0].res.reserved.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].res.reserved.reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct5.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct5_10__reduce_cython__, "anon_struct5.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct5_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct5_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct5.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct5_12__setstate_cython__, "anon_struct5.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct5_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct5_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct5.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct5_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct5.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6844
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6844, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6844, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6844, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 6844, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6844, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6844, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6844, __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.runtime.anon_union0.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6845
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":6844
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6847
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._array = anon_struct1(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6847, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6847, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6847, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 6847, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6847, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6847, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 6847, __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.runtime.anon_union0.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6849
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._array = anon_struct1(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._mipmap = anon_struct2(_ptr=<void_ptr>self._pvt_ptr)
 *         self._linear = anon_struct3(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6849, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6849, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6849, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_array);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_array);
  __pyx_v_self->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6850
 *         pass
 *         self._array = anon_struct1(_ptr=<void_ptr>self._pvt_ptr)
 *         self._mipmap = anon_struct2(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._linear = anon_struct3(_ptr=<void_ptr>self._pvt_ptr)
 *         self._pitch2D = anon_struct4(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6850, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6850, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6850, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_mipmap);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_mipmap);
  __pyx_v_self->_mipmap = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6851
 *         self._array = anon_struct1(_ptr=<void_ptr>self._pvt_ptr)
 *         self._mipmap = anon_struct2(_ptr=<void_ptr>self._pvt_ptr)
 *         self._linear = anon_struct3(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._pitch2D = anon_struct4(_ptr=<void_ptr>self._pvt_ptr)
 *         self._reserved = anon_struct5(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6851, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6851, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6851, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_linear);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_linear);
  __pyx_v_self->_linear = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6852
 *         self._mipmap = anon_struct2(_ptr=<void_ptr>self._pvt_ptr)
 *         self._linear = anon_struct3(_ptr=<void_ptr>self._pvt_ptr)
 *         self._pitch2D = anon_struct4(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._reserved = anon_struct5(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6852, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6852, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6852, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6852, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_pitch2D);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_pitch2D);
  __pyx_v_self->_pitch2D = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6853
 *         self._linear = anon_struct3(_ptr=<void_ptr>self._pvt_ptr)
 *         self._pitch2D = anon_struct4(_ptr=<void_ptr>self._pvt_ptr)
 *         self._reserved = anon_struct5(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6853, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6853, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_reserved);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_reserved);
  __pyx_v_self->_reserved = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6847
 *         self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._array = anon_struct1(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6854
 *         self._pitch2D = anon_struct4(_ptr=<void_ptr>self._pvt_ptr)
 *         self._reserved = anon_struct5(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6856
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7getPtr(PyObject *__pyx_v_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_7runtime_11anon_union0_6getPtr, "anon_union0.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union0_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union0_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6857
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).res))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6856
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6858
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr104__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr105__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr106__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr107__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr108__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6859
 *         return <void_ptr>&self._pvt_ptr[0].res
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6860
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6860, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6861
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6862
 *             str_list = []
 *             try:
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6862, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_array_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6862, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6862, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6862, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6862, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6862, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr104__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr104__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6862, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6862, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr104__pyx_v_line); __pyx_10genexpr104__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr104__pyx_v_line); __pyx_10genexpr104__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6862, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_array_3, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6862, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6862, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6862, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6862, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6861
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":6863
 *             try:
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6863, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":6864
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['mipmap :\n' + '\n'.join(['    ' + line for line in str(self.mipmap).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6864, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_array_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_array_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_array_ValueError) != (0)) __PYX_ERR(0, 6864, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6864, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6861
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6865
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmap :\n' + '\n'.join(['    ' + line for line in str(self.mipmap).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6866
 *                 str_list += ['array : <ValueError>']
 *             try:
 *                 str_list += ['mipmap :\n' + '\n'.join(['    ' + line for line in str(self.mipmap).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['mipmap : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6866, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_mipmap_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6866, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6866, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6866, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_7; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6866, __pyx_L27_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6866, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_10genexpr105__pyx_v_line, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr105__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6866, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 6866, __pyx_L27_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr105__pyx_v_line); __pyx_10genexpr105__pyx_v_line = 0;
          goto __pyx_L31_exit_scope;
          __pyx_L27_error:;
          __Pyx_XDECREF(__pyx_10genexpr105__pyx_v_line); __pyx_10genexpr105__pyx_v_line = 0;
          goto __pyx_L19_error;
          __pyx_L31_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6866, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_mipmap_3, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6866, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6866, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 6866, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6866, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":6865
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmap :\n' + '\n'.join(['    ' + line for line in str(self.mipmap).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":6867
 *             try:
 *                 str_list += ['mipmap :\n' + '\n'.join(['    ' + line for line in str(self.mipmap).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmap : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 6867, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":6868
 *                 str_list += ['mipmap :\n' + '\n'.join(['    ' + line for line in str(self.mipmap).splitlines()])]
 *             except ValueError:
 *                 str_list += ['mipmap : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['linear :\n' + '\n'.join(['    ' + line for line in str(self.linear).splitlines()])]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6868, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_mipmap_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_mipmap_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_mipmap_ValueError) != (0)) __PYX_ERR(0, 6868, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6868, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":6865
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmap :\n' + '\n'.join(['    ' + line for line in str(self.mipmap).splitlines()])]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6869
 *             except ValueError:
 *                 str_list += ['mipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['linear :\n' + '\n'.join(['    ' + line for line in str(self.linear).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6870
 *                 str_list += ['mipmap : <ValueError>']
 *             try:
 *                 str_list += ['linear :\n' + '\n'.join(['    ' + line for line in str(self.linear).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['linear : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6870, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_linear_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6870, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6870, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6870, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_2; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6870, __pyx_L42_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6870, __pyx_L42_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr106__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr106__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6870, __pyx_L42_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 6870, __pyx_L42_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr106__pyx_v_line); __pyx_10genexpr106__pyx_v_line = 0;
          goto __pyx_L46_exit_scope;
          __pyx_L42_error:;
          __Pyx_XDECREF(__pyx_10genexpr106__pyx_v_line); __pyx_10genexpr106__pyx_v_line = 0;
          goto __pyx_L34_error;
          __pyx_L46_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6870, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_linear, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6870, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6870, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 6870, __pyx_L34_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6870, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":6869
 *             except ValueError:
 *                 str_list += ['mipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['linear :\n' + '\n'.join(['    ' + line for line in str(self.linear).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L39_try_end;
      __pyx_L34_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":6871
 *             try:
 *                 str_list += ['linear :\n' + '\n'.join(['    ' + line for line in str(self.linear).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['linear : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 6871, __pyx_L36_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":6872
 *                 str_list += ['linear :\n' + '\n'.join(['    ' + line for line in str(self.linear).splitlines()])]
 *             except ValueError:
 *                 str_list += ['linear : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pitch2D :\n' + '\n'.join(['    ' + line for line in str(self.pitch2D).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6872, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_linear_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_linear_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_linear_ValueError) != (0)) __PYX_ERR(0, 6872, __pyx_L36_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6872, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L35_exception_handled;
      }
      goto __pyx_L36_except_error;

      /* "cuda/bindings/runtime.pyx":6869
 *             except ValueError:
 *                 str_list += ['mipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['linear :\n' + '\n'.join(['    ' + line for line in str(self.linear).splitlines()])]
 *             except ValueError:
*/
      __pyx_L36_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L35_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L39_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6873
 *             except ValueError:
 *                 str_list += ['linear : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch2D :\n' + '\n'.join(['    ' + line for line in str(self.pitch2D).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6874
 *                 str_list += ['linear : <ValueError>']
 *             try:
 *                 str_list += ['pitch2D :\n' + '\n'.join(['    ' + line for line in str(self.pitch2D).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pitch2D : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6874, __pyx_L57_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pitch2D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6874, __pyx_L57_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6874, __pyx_L57_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6874, __pyx_L57_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6874, __pyx_L57_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6874, __pyx_L57_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr107__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr107__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6874, __pyx_L57_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6874, __pyx_L57_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr107__pyx_v_line); __pyx_10genexpr107__pyx_v_line = 0;
          goto __pyx_L61_exit_scope;
          __pyx_L57_error:;
          __Pyx_XDECREF(__pyx_10genexpr107__pyx_v_line); __pyx_10genexpr107__pyx_v_line = 0;
          goto __pyx_L49_error;
          __pyx_L61_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6874, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pitch2D, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6874, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6874, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6874, __pyx_L49_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6874, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6873
 *             except ValueError:
 *                 str_list += ['linear : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch2D :\n' + '\n'.join(['    ' + line for line in str(self.pitch2D).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L54_try_end;
      __pyx_L49_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":6875
 *             try:
 *                 str_list += ['pitch2D :\n' + '\n'.join(['    ' + line for line in str(self.pitch2D).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch2D : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 6875, __pyx_L51_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":6876
 *                 str_list += ['pitch2D :\n' + '\n'.join(['    ' + line for line in str(self.pitch2D).splitlines()])]
 *             except ValueError:
 *                 str_list += ['pitch2D : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved :\n' + '\n'.join(['    ' + line for line in str(self.reserved).splitlines()])]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6876, __pyx_L51_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pitch2D_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pitch2D_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_pitch2D_ValueError) != (0)) __PYX_ERR(0, 6876, __pyx_L51_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6876, __pyx_L51_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L50_exception_handled;
      }
      goto __pyx_L51_except_error;

      /* "cuda/bindings/runtime.pyx":6873
 *             except ValueError:
 *                 str_list += ['linear : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch2D :\n' + '\n'.join(['    ' + line for line in str(self.pitch2D).splitlines()])]
 *             except ValueError:
*/
      __pyx_L51_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L50_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L54_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6877
 *             except ValueError:
 *                 str_list += ['pitch2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved :\n' + '\n'.join(['    ' + line for line in str(self.reserved).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6878
 *                 str_list += ['pitch2D : <ValueError>']
 *             try:
 *                 str_list += ['reserved :\n' + '\n'.join(['    ' + line for line in str(self.reserved).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6878, __pyx_L72_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6878, __pyx_L72_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6878, __pyx_L72_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6878, __pyx_L72_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_7; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6878, __pyx_L72_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6878, __pyx_L72_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_10genexpr108__pyx_v_line, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr108__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6878, __pyx_L72_error)
            __Pyx_GOTREF(__pyx_t_7);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 6878, __pyx_L72_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr108__pyx_v_line); __pyx_10genexpr108__pyx_v_line = 0;
          goto __pyx_L76_exit_scope;
          __pyx_L72_error:;
          __Pyx_XDECREF(__pyx_10genexpr108__pyx_v_line); __pyx_10genexpr108__pyx_v_line = 0;
          goto __pyx_L64_error;
          __pyx_L76_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6878, __pyx_L64_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved_3, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6878, __pyx_L64_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6878, __pyx_L64_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 6878, __pyx_L64_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6878, __pyx_L64_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":6877
 *             except ValueError:
 *                 str_list += ['pitch2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved :\n' + '\n'.join(['    ' + line for line in str(self.reserved).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L69_try_end;
      __pyx_L64_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":6879
 *             try:
 *                 str_list += ['reserved :\n' + '\n'.join(['    ' + line for line in str(self.reserved).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 6879, __pyx_L66_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":6880
 *                 str_list += ['reserved :\n' + '\n'.join(['    ' + line for line in str(self.reserved).splitlines()])]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6880, __pyx_L66_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 6880, __pyx_L66_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 6880, __pyx_L66_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L65_exception_handled;
      }
      goto __pyx_L66_except_error;

      /* "cuda/bindings/runtime.pyx":6877
 *             except ValueError:
 *                 str_list += ['pitch2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved :\n' + '\n'.join(['    ' + line for line in str(self.reserved).splitlines()])]
 *             except ValueError:
*/
      __pyx_L66_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L65_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L69_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6881
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 6881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6859
 *         return <void_ptr>&self._pvt_ptr[0].res
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6883
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def array(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6858
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].res
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr104__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr105__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr106__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr107__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr108__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6884
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def array(self):
 *         return self._array
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5array_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5array_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_5array___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_5array___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6886
 *     @property
 *     def array(self):
 *         return self._array             # <<<<<<<<<<<<<<
 *     @array.setter
 *     def array(self, array not None : anon_struct1):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_array);
  __pyx_r = ((PyObject *)__pyx_v_self->_array);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6884
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def array(self):
 *         return self._array
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6887
 *     def array(self):
 *         return self._array
 *     @array.setter             # <<<<<<<<<<<<<<
 *     def array(self, array not None : anon_struct1):
 *         string.memcpy(&self._pvt_ptr[0].res.array, <cyruntime.anon_struct1*><void_ptr>array.getPtr(), sizeof(self._pvt_ptr[0].res.array))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_array), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1, 0, "array", 0))) __PYX_ERR(0, 6888, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_5array_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)__pyx_v_array));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_5array_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *__pyx_v_array) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6889
 *     @array.setter
 *     def array(self, array not None : anon_struct1):
 *         string.memcpy(&self._pvt_ptr[0].res.array, <cyruntime.anon_struct1*><void_ptr>array.getPtr(), sizeof(self._pvt_ptr[0].res.array))             # <<<<<<<<<<<<<<
 *     @property
 *     def mipmap(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_array);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6889, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).res.array), ((struct anon_struct1 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).res.array))));

  /* "cuda/bindings/runtime.pyx":6887
 *     def array(self):
 *         return self._array
 *     @array.setter             # <<<<<<<<<<<<<<
 *     def array(self, array not None : anon_struct1):
 *         string.memcpy(&self._pvt_ptr[0].res.array, <cyruntime.anon_struct1*><void_ptr>array.getPtr(), sizeof(self._pvt_ptr[0].res.array))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.array.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6890
 *     def array(self, array not None : anon_struct1):
 *         string.memcpy(&self._pvt_ptr[0].res.array, <cyruntime.anon_struct1*><void_ptr>array.getPtr(), sizeof(self._pvt_ptr[0].res.array))
 *     @property             # <<<<<<<<<<<<<<
 *     def mipmap(self):
 *         return self._mipmap
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6mipmap_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6mipmap_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6mipmap___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6mipmap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6892
 *     @property
 *     def mipmap(self):
 *         return self._mipmap             # <<<<<<<<<<<<<<
 *     @mipmap.setter
 *     def mipmap(self, mipmap not None : anon_struct2):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_mipmap);
  __pyx_r = ((PyObject *)__pyx_v_self->_mipmap);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6890
 *     def array(self, array not None : anon_struct1):
 *         string.memcpy(&self._pvt_ptr[0].res.array, <cyruntime.anon_struct1*><void_ptr>array.getPtr(), sizeof(self._pvt_ptr[0].res.array))
 *     @property             # <<<<<<<<<<<<<<
 *     def mipmap(self):
 *         return self._mipmap
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6893
 *     def mipmap(self):
 *         return self._mipmap
 *     @mipmap.setter             # <<<<<<<<<<<<<<
 *     def mipmap(self, mipmap not None : anon_struct2):
 *         string.memcpy(&self._pvt_ptr[0].res.mipmap, <cyruntime.anon_struct2*><void_ptr>mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6mipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmap); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6mipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmap) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mipmap), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2, 0, "mipmap", 0))) __PYX_ERR(0, 6894, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6mipmap_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)__pyx_v_mipmap));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6mipmap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *__pyx_v_mipmap) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6895
 *     @mipmap.setter
 *     def mipmap(self, mipmap not None : anon_struct2):
 *         string.memcpy(&self._pvt_ptr[0].res.mipmap, <cyruntime.anon_struct2*><void_ptr>mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap))             # <<<<<<<<<<<<<<
 *     @property
 *     def linear(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_mipmap);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6895, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6895, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).res.mipmap), ((struct anon_struct2 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).res.mipmap))));

  /* "cuda/bindings/runtime.pyx":6893
 *     def mipmap(self):
 *         return self._mipmap
 *     @mipmap.setter             # <<<<<<<<<<<<<<
 *     def mipmap(self, mipmap not None : anon_struct2):
 *         string.memcpy(&self._pvt_ptr[0].res.mipmap, <cyruntime.anon_struct2*><void_ptr>mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.mipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6896
 *     def mipmap(self, mipmap not None : anon_struct2):
 *         string.memcpy(&self._pvt_ptr[0].res.mipmap, <cyruntime.anon_struct2*><void_ptr>mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap))
 *     @property             # <<<<<<<<<<<<<<
 *     def linear(self):
 *         return self._linear
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6linear_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6linear_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6linear___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6linear___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6898
 *     @property
 *     def linear(self):
 *         return self._linear             # <<<<<<<<<<<<<<
 *     @linear.setter
 *     def linear(self, linear not None : anon_struct3):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_linear);
  __pyx_r = ((PyObject *)__pyx_v_self->_linear);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6896
 *     def mipmap(self, mipmap not None : anon_struct2):
 *         string.memcpy(&self._pvt_ptr[0].res.mipmap, <cyruntime.anon_struct2*><void_ptr>mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap))
 *     @property             # <<<<<<<<<<<<<<
 *     def linear(self):
 *         return self._linear
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6899
 *     def linear(self):
 *         return self._linear
 *     @linear.setter             # <<<<<<<<<<<<<<
 *     def linear(self, linear not None : anon_struct3):
 *         string.memcpy(&self._pvt_ptr[0].res.linear, <cyruntime.anon_struct3*><void_ptr>linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6linear_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_linear); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6linear_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_linear) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_linear), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3, 0, "linear", 0))) __PYX_ERR(0, 6900, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6linear_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)__pyx_v_linear));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_6linear_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *__pyx_v_linear) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6901
 *     @linear.setter
 *     def linear(self, linear not None : anon_struct3):
 *         string.memcpy(&self._pvt_ptr[0].res.linear, <cyruntime.anon_struct3*><void_ptr>linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear))             # <<<<<<<<<<<<<<
 *     @property
 *     def pitch2D(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_linear);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6901, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6901, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).res.linear), ((struct anon_struct3 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).res.linear))));

  /* "cuda/bindings/runtime.pyx":6899
 *     def linear(self):
 *         return self._linear
 *     @linear.setter             # <<<<<<<<<<<<<<
 *     def linear(self, linear not None : anon_struct3):
 *         string.memcpy(&self._pvt_ptr[0].res.linear, <cyruntime.anon_struct3*><void_ptr>linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.linear.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6902
 *     def linear(self, linear not None : anon_struct3):
 *         string.memcpy(&self._pvt_ptr[0].res.linear, <cyruntime.anon_struct3*><void_ptr>linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear))
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch2D(self):
 *         return self._pitch2D
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_7pitch2D___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_7pitch2D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6904
 *     @property
 *     def pitch2D(self):
 *         return self._pitch2D             # <<<<<<<<<<<<<<
 *     @pitch2D.setter
 *     def pitch2D(self, pitch2D not None : anon_struct4):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_pitch2D);
  __pyx_r = ((PyObject *)__pyx_v_self->_pitch2D);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6902
 *     def linear(self, linear not None : anon_struct3):
 *         string.memcpy(&self._pvt_ptr[0].res.linear, <cyruntime.anon_struct3*><void_ptr>linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear))
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch2D(self):
 *         return self._pitch2D
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6905
 *     def pitch2D(self):
 *         return self._pitch2D
 *     @pitch2D.setter             # <<<<<<<<<<<<<<
 *     def pitch2D(self, pitch2D not None : anon_struct4):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D, <cyruntime.anon_struct4*><void_ptr>pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pitch2D); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pitch2D) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pitch2D), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4, 0, "pitch2D", 0))) __PYX_ERR(0, 6906, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)__pyx_v_pitch2D));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *__pyx_v_pitch2D) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6907
 *     @pitch2D.setter
 *     def pitch2D(self, pitch2D not None : anon_struct4):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D, <cyruntime.anon_struct4*><void_ptr>pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D))             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_pitch2D);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6907, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6907, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).res.pitch2D), ((struct anon_struct4 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).res.pitch2D))));

  /* "cuda/bindings/runtime.pyx":6905
 *     def pitch2D(self):
 *         return self._pitch2D
 *     @pitch2D.setter             # <<<<<<<<<<<<<<
 *     def pitch2D(self, pitch2D not None : anon_struct4):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D, <cyruntime.anon_struct4*><void_ptr>pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.pitch2D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6908
 *     def pitch2D(self, pitch2D not None : anon_struct4):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D, <cyruntime.anon_struct4*><void_ptr>pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6910
 *     @property
 *     def reserved(self):
 *         return self._reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved not None : anon_struct5):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_reserved);
  __pyx_r = ((PyObject *)__pyx_v_self->_reserved);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6908
 *     def pitch2D(self, pitch2D not None : anon_struct4):
 *         string.memcpy(&self._pvt_ptr[0].res.pitch2D, <cyruntime.anon_struct4*><void_ptr>pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._reserved
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6911
 *     def reserved(self):
 *         return self._reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved not None : anon_struct5):
 *         string.memcpy(&self._pvt_ptr[0].res.reserved, <cyruntime.anon_struct5*><void_ptr>reserved.getPtr(), sizeof(self._pvt_ptr[0].res.reserved))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reserved), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5, 0, "reserved", 0))) __PYX_ERR(0, 6912, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)__pyx_v_reserved));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *__pyx_v_reserved) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6913
 *     @reserved.setter
 *     def reserved(self, reserved not None : anon_struct5):
 *         string.memcpy(&self._pvt_ptr[0].res.reserved, <cyruntime.anon_struct5*><void_ptr>reserved.getPtr(), sizeof(self._pvt_ptr[0].res.reserved))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaResourceDesc:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_reserved);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6913, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6913, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).res.reserved), ((struct anon_struct5 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).res.reserved))));

  /* "cuda/bindings/runtime.pyx":6911
 *     def reserved(self):
 *         return self._reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved not None : anon_struct5):
 *         string.memcpy(&self._pvt_ptr[0].res.reserved, <cyruntime.anon_struct5*><void_ptr>reserved.getPtr(), sizeof(self._pvt_ptr[0].res.reserved))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_11anon_union0_10__reduce_cython__, "anon_union0.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union0_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union0_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_11anon_union0_12__setstate_cython__, "anon_union0.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union0_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union0_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union0.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union0_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union0_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union0.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6933
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaResourceDesc *>calloc(1, sizeof(cyruntime.cudaResourceDesc))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6933, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6933, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 6933, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6933, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6933, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6933, __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.runtime.cudaResourceDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct cudaResourceDesc *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":6934
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaResourceDesc *>calloc(1, sizeof(cyruntime.cudaResourceDesc))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6935
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaResourceDesc *>calloc(1, sizeof(cyruntime.cudaResourceDesc))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct cudaResourceDesc *)calloc(1, (sizeof(struct cudaResourceDesc))));

    /* "cuda/bindings/runtime.pyx":6936
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaResourceDesc *>calloc(1, sizeof(cyruntime.cudaResourceDesc))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":6934
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaResourceDesc *>calloc(1, sizeof(cyruntime.cudaResourceDesc))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":6938
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaResourceDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":6933
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaResourceDesc *>calloc(1, sizeof(cyruntime.cudaResourceDesc))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6939
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._res = anon_union0(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 6939, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6939, __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, "__init__", 0) < (0)) __PYX_ERR(0, 6939, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 6939, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6939, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 6939, __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.runtime.cudaResourceDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":6941
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._res = anon_union0(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 6941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 6941, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6941, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_res);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_res);
  __pyx_v_self->_res = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":6939
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaResourceDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._res = anon_union0(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6942
 *         pass
 *         self._res = anon_union0(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":6943
 *         self._res = anon_union0(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6944
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":6943
 *         self._res = anon_union0(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":6942
 *         pass
 *         self._res = anon_union0(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":6945
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7getPtr(PyObject *__pyx_v_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_7runtime_16cudaResourceDesc_6getPtr, "cudaResourceDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaResourceDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaResourceDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":6946
 *             free(self._val_ptr)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6946, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6945
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6947
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr109__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":6948
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":6949
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['resType : ' + str(self.resType)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6949, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":6950
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['resType : ' + str(self.resType)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6951
 *             str_list = []
 *             try:
 *                 str_list += ['resType : ' + str(self.resType)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['resType : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_resType_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6951, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6951, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_resType, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6951, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6951, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 6951, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6951, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":6950
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['resType : ' + str(self.resType)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":6952
 *             try:
 *                 str_list += ['resType : ' + str(self.resType)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['resType : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 6952, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6953
 *                 str_list += ['resType : ' + str(self.resType)]
 *             except ValueError:
 *                 str_list += ['resType : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['res :\n' + '\n'.join(['    ' + line for line in str(self.res).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6953, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_resType_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_resType_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_resType_ValueError) != (0)) __PYX_ERR(0, 6953, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6953, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":6950
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['resType : ' + str(self.resType)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6954
 *             except ValueError:
 *                 str_list += ['resType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['res :\n' + '\n'.join(['    ' + line for line in str(self.res).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6955
 *                 str_list += ['resType : <ValueError>']
 *             try:
 *                 str_list += ['res :\n' + '\n'.join(['    ' + line for line in str(self.res).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['res : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6955, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_res_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6955, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6955, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6955, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 6955, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6955, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr109__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr109__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6955, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 6955, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr109__pyx_v_line); __pyx_10genexpr109__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr109__pyx_v_line); __pyx_10genexpr109__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6955, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_res, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6955, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6955, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 6955, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6955, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":6954
 *             except ValueError:
 *                 str_list += ['resType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['res :\n' + '\n'.join(['    ' + line for line in str(self.res).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6956
 *             try:
 *                 str_list += ['res :\n' + '\n'.join(['    ' + line for line in str(self.res).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['res : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 6956, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":6957
 *                 str_list += ['res :\n' + '\n'.join(['    ' + line for line in str(self.res).splitlines()])]
 *             except ValueError:
 *                 str_list += ['res : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6957, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_res_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_res_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_res_ValueError) != (0)) __PYX_ERR(0, 6957, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6957, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":6954
 *             except ValueError:
 *                 str_list += ['resType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['res :\n' + '\n'.join(['    ' + line for line in str(self.res).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6958
 *             except ValueError:
 *                 str_list += ['res : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":6959
 *                 str_list += ['res : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6959, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6959, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6959, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6959, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 6959, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 6959, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":6958
 *             except ValueError:
 *                 str_list += ['res : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":6960
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 6960, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":6961
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 6961, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 6961, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 6961, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":6958
 *             except ValueError:
 *                 str_list += ['res : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":6962
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 6962, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6948
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":6964
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def resType(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":6947
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr109__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6965
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def resType(self):
 *         if self._pvt_ptr[0].resType not in _dict_cudaResourceType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6967
 *     @property
 *     def resType(self):
 *         if self._pvt_ptr[0].resType not in _dict_cudaResourceType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaResourceType[self._pvt_ptr[0].resType]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaResourceType((__pyx_v_self->_pvt_ptr[0]).resType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaResourceType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 6967, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":6968
 *     def resType(self):
 *         if self._pvt_ptr[0].resType not in _dict_cudaResourceType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaResourceType[self._pvt_ptr[0].resType]
 *     @resType.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":6967
 *     @property
 *     def resType(self):
 *         if self._pvt_ptr[0].resType not in _dict_cudaResourceType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaResourceType[self._pvt_ptr[0].resType]
*/
  }

  /* "cuda/bindings/runtime.pyx":6969
 *         if self._pvt_ptr[0].resType not in _dict_cudaResourceType:
 *             return None
 *         return _dict_cudaResourceType[self._pvt_ptr[0].resType]             # <<<<<<<<<<<<<<
 *     @resType.setter
 *     def resType(self, resType not None : cudaResourceType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaResourceType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaResourceType((__pyx_v_self->_pvt_ptr[0]).resType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6965
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def resType(self):
 *         if self._pvt_ptr[0].resType not in _dict_cudaResourceType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.resType.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6970
 *             return None
 *         return _dict_cudaResourceType[self._pvt_ptr[0].resType]
 *     @resType.setter             # <<<<<<<<<<<<<<
 *     def resType(self, resType not None : cudaResourceType):
 *         self._pvt_ptr[0].resType = resType.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_resType); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_resType) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_resType) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "resType"); __PYX_ERR(0, 6971, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self), ((PyObject *)__pyx_v_resType));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, PyObject *__pyx_v_resType) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaResourceType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6972
 *     @resType.setter
 *     def resType(self, resType not None : cudaResourceType):
 *         self._pvt_ptr[0].resType = resType.value             # <<<<<<<<<<<<<<
 *     @property
 *     def res(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_resType, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaResourceType)__Pyx_PyLong_As_enum__cudaResourceType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 6972, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).resType = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":6970
 *             return None
 *         return _dict_cudaResourceType[self._pvt_ptr[0].resType]
 *     @resType.setter             # <<<<<<<<<<<<<<
 *     def resType(self, resType not None : cudaResourceType):
 *         self._pvt_ptr[0].resType = resType.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.resType.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6973
 *     def resType(self, resType not None : cudaResourceType):
 *         self._pvt_ptr[0].resType = resType.value
 *     @property             # <<<<<<<<<<<<<<
 *     def res(self):
 *         return self._res
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_3res___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_3res___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6975
 *     @property
 *     def res(self):
 *         return self._res             # <<<<<<<<<<<<<<
 *     @res.setter
 *     def res(self, res not None : anon_union0):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_res);
  __pyx_r = ((PyObject *)__pyx_v_self->_res);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6973
 *     def resType(self, resType not None : cudaResourceType):
 *         self._pvt_ptr[0].resType = resType.value
 *     @property             # <<<<<<<<<<<<<<
 *     def res(self):
 *         return self._res
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6976
 *     def res(self):
 *         return self._res
 *     @res.setter             # <<<<<<<<<<<<<<
 *     def res(self, res not None : anon_union0):
 *         string.memcpy(&self._pvt_ptr[0].res, <cyruntime.anon_union0*><void_ptr>res.getPtr(), sizeof(self._pvt_ptr[0].res))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_res); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_res) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_res), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0, 0, "res", 0))) __PYX_ERR(0, 6977, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)__pyx_v_res));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *__pyx_v_res) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":6978
 *     @res.setter
 *     def res(self, res not None : anon_union0):
 *         string.memcpy(&self._pvt_ptr[0].res, <cyruntime.anon_union0*><void_ptr>res.getPtr(), sizeof(self._pvt_ptr[0].res))             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_res);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 6978, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).res), ((union anon_union0 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).res))));

  /* "cuda/bindings/runtime.pyx":6976
 *     def res(self):
 *         return self._res
 *     @res.setter             # <<<<<<<<<<<<<<
 *     def res(self, res not None : anon_union0):
 *         string.memcpy(&self._pvt_ptr[0].res, <cyruntime.anon_union0*><void_ptr>res.getPtr(), sizeof(self._pvt_ptr[0].res))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.res.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6979
 *     def res(self, res not None : anon_union0):
 *         string.memcpy(&self._pvt_ptr[0].res, <cyruntime.anon_union0*><void_ptr>res.getPtr(), sizeof(self._pvt_ptr[0].res))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":6981
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6981, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":6979
 *     def res(self, res not None : anon_union0):
 *         string.memcpy(&self._pvt_ptr[0].res, <cyruntime.anon_union0*><void_ptr>res.getPtr(), sizeof(self._pvt_ptr[0].res))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":6982
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6983, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":6984
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaResourceViewDesc:
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":6982
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_16cudaResourceDesc_10__reduce_cython__, "cudaResourceDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaResourceDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaResourceDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_16cudaResourceDesc_12__setstate_cython__, "cudaResourceDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaResourceDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaResourceDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaResourceDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaResourceDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7016
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7016, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7016, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7016, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7016, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7016, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7016, __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.runtime.cudaResourceViewDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7017
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7018
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaResourceViewDesc *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7017
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7020
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaResourceViewDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaResourceViewDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7016
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7021
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaResourceViewDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7021, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7021, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7021, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7021, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7021, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7021, __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.runtime.cudaResourceViewDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7023
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7025
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_7getPtr(PyObject *__pyx_v_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_7runtime_20cudaResourceViewDesc_6getPtr, "cudaResourceViewDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaResourceViewDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7026
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7025
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7027
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7028
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7029
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['format : ' + str(self.format)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7029, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7030
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['format : ' + str(self.format)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7031
 *             str_list = []
 *             try:
 *                 str_list += ['format : ' + str(self.format)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['format : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7031, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7031, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_format_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7031, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7031, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7031, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7031, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7030
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['format : ' + str(self.format)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":7032
 *             try:
 *                 str_list += ['format : ' + str(self.format)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['format : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7032, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7033
 *                 str_list += ['format : ' + str(self.format)]
 *             except ValueError:
 *                 str_list += ['format : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7033, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_format_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_format_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_format_ValueError) != (0)) __PYX_ERR(0, 7033, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7033, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7030
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['format : ' + str(self.format)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7034
 *             except ValueError:
 *                 str_list += ['format : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7035
 *                 str_list += ['format : <ValueError>']
 *             try:
 *                 str_list += ['width : ' + str(self.width)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_width_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7035, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7035, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7035, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7035, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7035, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7035, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7034
 *             except ValueError:
 *                 str_list += ['format : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7036
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7036, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7037
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7037, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_width_ValueError) != (0)) __PYX_ERR(0, 7037, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7037, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":7034
 *             except ValueError:
 *                 str_list += ['format : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7038
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7039
 *                 str_list += ['width : <ValueError>']
 *             try:
 *                 str_list += ['height : ' + str(self.height)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_height_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7039, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7039, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7039, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7039, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7039, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7039, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7038
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7040
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7040, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7041
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7041, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_height_ValueError) != (0)) __PYX_ERR(0, 7041, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7041, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":7038
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7042
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7043
 *                 str_list += ['height : <ValueError>']
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_depth_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7043, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7043, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_depth, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7043, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7043, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7043, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7043, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7042
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7044
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7044, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7045
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7045, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_depth_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_depth_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_depth_ValueError) != (0)) __PYX_ERR(0, 7045, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7045, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":7042
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7046
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7047
 *                 str_list += ['depth : <ValueError>']
 *             try:
 *                 str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['firstMipmapLevel : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_firstMipmapLevel_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7047, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7047, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_firstMipmapLevel, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7047, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7047, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7047, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7047, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7046
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7048
 *             try:
 *                 str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['firstMipmapLevel : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7048, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7049
 *                 str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)]
 *             except ValueError:
 *                 str_list += ['firstMipmapLevel : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7049, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_firstMipmapLevel_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_firstMipmapLevel_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_firstMipmapLevel_ValueError) != (0)) __PYX_ERR(0, 7049, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7049, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":7046
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7050
 *             except ValueError:
 *                 str_list += ['firstMipmapLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7051
 *                 str_list += ['firstMipmapLevel : <ValueError>']
 *             try:
 *                 str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['lastMipmapLevel : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_lastMipmapLevel_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7051, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7051, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_lastMipmapLevel, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7051, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7051, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7051, __pyx_L44_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7051, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7050
 *             except ValueError:
 *                 str_list += ['firstMipmapLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L49_try_end;
      __pyx_L44_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7052
 *             try:
 *                 str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['lastMipmapLevel : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7052, __pyx_L46_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7053
 *                 str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)]
 *             except ValueError:
 *                 str_list += ['lastMipmapLevel : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['firstLayer : ' + str(self.firstLayer)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7053, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_lastMipmapLevel_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_lastMipmapLevel_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_lastMipmapLevel_ValueError) != (0)) __PYX_ERR(0, 7053, __pyx_L46_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7053, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L45_exception_handled;
      }
      goto __pyx_L46_except_error;

      /* "cuda/bindings/runtime.pyx":7050
 *             except ValueError:
 *                 str_list += ['firstMipmapLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)]
 *             except ValueError:
*/
      __pyx_L46_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L45_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L49_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7054
 *             except ValueError:
 *                 str_list += ['lastMipmapLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['firstLayer : ' + str(self.firstLayer)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7055
 *                 str_list += ['lastMipmapLevel : <ValueError>']
 *             try:
 *                 str_list += ['firstLayer : ' + str(self.firstLayer)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['firstLayer : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_firstLayer_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7055, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7055, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_firstLayer, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7055, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7055, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7055, __pyx_L52_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7055, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7054
 *             except ValueError:
 *                 str_list += ['lastMipmapLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['firstLayer : ' + str(self.firstLayer)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L57_try_end;
      __pyx_L52_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7056
 *             try:
 *                 str_list += ['firstLayer : ' + str(self.firstLayer)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['firstLayer : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7056, __pyx_L54_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7057
 *                 str_list += ['firstLayer : ' + str(self.firstLayer)]
 *             except ValueError:
 *                 str_list += ['firstLayer : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['lastLayer : ' + str(self.lastLayer)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7057, __pyx_L54_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_firstLayer_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_firstLayer_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_firstLayer_ValueError) != (0)) __PYX_ERR(0, 7057, __pyx_L54_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7057, __pyx_L54_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L53_exception_handled;
      }
      goto __pyx_L54_except_error;

      /* "cuda/bindings/runtime.pyx":7054
 *             except ValueError:
 *                 str_list += ['lastMipmapLevel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['firstLayer : ' + str(self.firstLayer)]
 *             except ValueError:
*/
      __pyx_L54_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L53_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L57_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7058
 *             except ValueError:
 *                 str_list += ['firstLayer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['lastLayer : ' + str(self.lastLayer)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7059
 *                 str_list += ['firstLayer : <ValueError>']
 *             try:
 *                 str_list += ['lastLayer : ' + str(self.lastLayer)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['lastLayer : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_lastLayer_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7059, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7059, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_lastLayer, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7059, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7059, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7059, __pyx_L60_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7059, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7058
 *             except ValueError:
 *                 str_list += ['firstLayer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['lastLayer : ' + str(self.lastLayer)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L65_try_end;
      __pyx_L60_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7060
 *             try:
 *                 str_list += ['lastLayer : ' + str(self.lastLayer)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['lastLayer : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7060, __pyx_L62_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7061
 *                 str_list += ['lastLayer : ' + str(self.lastLayer)]
 *             except ValueError:
 *                 str_list += ['lastLayer : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7061, __pyx_L62_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_lastLayer_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_lastLayer_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_lastLayer_ValueError) != (0)) __PYX_ERR(0, 7061, __pyx_L62_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7061, __pyx_L62_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L61_exception_handled;
      }
      goto __pyx_L62_except_error;

      /* "cuda/bindings/runtime.pyx":7058
 *             except ValueError:
 *                 str_list += ['firstLayer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['lastLayer : ' + str(self.lastLayer)]
 *             except ValueError:
*/
      __pyx_L62_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L61_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L65_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7062
 *             except ValueError:
 *                 str_list += ['lastLayer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7063
 *                 str_list += ['lastLayer : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7063, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7063, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7063, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7063, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7063, __pyx_L68_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7063, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7062
 *             except ValueError:
 *                 str_list += ['lastLayer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L73_try_end;
      __pyx_L68_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7064
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7064, __pyx_L70_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7065
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7065, __pyx_L70_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 7065, __pyx_L70_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7065, __pyx_L70_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L69_exception_handled;
      }
      goto __pyx_L70_except_error;

      /* "cuda/bindings/runtime.pyx":7062
 *             except ValueError:
 *                 str_list += ['lastLayer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L70_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L69_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L73_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7066
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7066, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7028
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7068
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def format(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7027
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7069
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def format(self):
 *         if self._pvt_ptr[0].format not in _dict_cudaResourceViewFormat:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7071
 *     @property
 *     def format(self):
 *         if self._pvt_ptr[0].format not in _dict_cudaResourceViewFormat:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaResourceViewFormat[self._pvt_ptr[0].format]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaResourceViewFormat((__pyx_v_self->_pvt_ptr[0]).format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaResourceViewFormat); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 7071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":7072
 *     def format(self):
 *         if self._pvt_ptr[0].format not in _dict_cudaResourceViewFormat:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaResourceViewFormat[self._pvt_ptr[0].format]
 *     @format.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7071
 *     @property
 *     def format(self):
 *         if self._pvt_ptr[0].format not in _dict_cudaResourceViewFormat:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaResourceViewFormat[self._pvt_ptr[0].format]
*/
  }

  /* "cuda/bindings/runtime.pyx":7073
 *         if self._pvt_ptr[0].format not in _dict_cudaResourceViewFormat:
 *             return None
 *         return _dict_cudaResourceViewFormat[self._pvt_ptr[0].format]             # <<<<<<<<<<<<<<
 *     @format.setter
 *     def format(self, format not None : cudaResourceViewFormat):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaResourceViewFormat); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaResourceViewFormat((__pyx_v_self->_pvt_ptr[0]).format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7069
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def format(self):
 *         if self._pvt_ptr[0].format not in _dict_cudaResourceViewFormat:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.format.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7074
 *             return None
 *         return _dict_cudaResourceViewFormat[self._pvt_ptr[0].format]
 *     @format.setter             # <<<<<<<<<<<<<<
 *     def format(self, format not None : cudaResourceViewFormat):
 *         self._pvt_ptr[0].format = format.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_format); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_format) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_format) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "format"); __PYX_ERR(0, 7075, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((PyObject *)__pyx_v_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, PyObject *__pyx_v_format) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaResourceViewFormat __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7076
 *     @format.setter
 *     def format(self, format not None : cudaResourceViewFormat):
 *         self._pvt_ptr[0].format = format.value             # <<<<<<<<<<<<<<
 *     @property
 *     def width(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_format, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaResourceViewFormat)__Pyx_PyLong_As_enum__cudaResourceViewFormat(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7076, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).format = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":7074
 *             return None
 *         return _dict_cudaResourceViewFormat[self._pvt_ptr[0].format]
 *     @format.setter             # <<<<<<<<<<<<<<
 *     def format(self, format not None : cudaResourceViewFormat):
 *         self._pvt_ptr[0].format = format.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.format.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7077
 *     def format(self, format not None : cudaResourceViewFormat):
 *         self._pvt_ptr[0].format = format.value
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7079
 *     @property
 *     def width(self):
 *         return self._pvt_ptr[0].width             # <<<<<<<<<<<<<<
 *     @width.setter
 *     def width(self, size_t width):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7077
 *     def format(self, format not None : cudaResourceViewFormat):
 *         self._pvt_ptr[0].format = format.value
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7080
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width) {
  size_t __pyx_v_width;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_width); {
    __pyx_v_width = __Pyx_PyLong_As_size_t(__pyx_arg_width); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7081, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((size_t)__pyx_v_width));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_width) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7082
 *     @width.setter
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width             # <<<<<<<<<<<<<<
 *     @property
 *     def height(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).width = __pyx_v_width;

  /* "cuda/bindings/runtime.pyx":7080
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7083
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7085
 *     @property
 *     def height(self):
 *         return self._pvt_ptr[0].height             # <<<<<<<<<<<<<<
 *     @height.setter
 *     def height(self, size_t height):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7085, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7083
 *     def width(self, size_t width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7086
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height) {
  size_t __pyx_v_height;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_height); {
    __pyx_v_height = __Pyx_PyLong_As_size_t(__pyx_arg_height); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7087, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((size_t)__pyx_v_height));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_height) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7088
 *     @height.setter
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height             # <<<<<<<<<<<<<<
 *     @property
 *     def depth(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).height = __pyx_v_height;

  /* "cuda/bindings/runtime.pyx":7086
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7089
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7091
 *     @property
 *     def depth(self):
 *         return self._pvt_ptr[0].depth             # <<<<<<<<<<<<<<
 *     @depth.setter
 *     def depth(self, size_t depth):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).depth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7089
 *     def height(self, size_t height):
 *         self._pvt_ptr[0].height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.depth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7092
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
 *     @depth.setter             # <<<<<<<<<<<<<<
 *     def depth(self, size_t depth):
 *         self._pvt_ptr[0].depth = depth
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth) {
  size_t __pyx_v_depth;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_depth); {
    __pyx_v_depth = __Pyx_PyLong_As_size_t(__pyx_arg_depth); if (unlikely((__pyx_v_depth == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7093, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((size_t)__pyx_v_depth));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, size_t __pyx_v_depth) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7094
 *     @depth.setter
 *     def depth(self, size_t depth):
 *         self._pvt_ptr[0].depth = depth             # <<<<<<<<<<<<<<
 *     @property
 *     def firstMipmapLevel(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).depth = __pyx_v_depth;

  /* "cuda/bindings/runtime.pyx":7092
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
 *     @depth.setter             # <<<<<<<<<<<<<<
 *     def depth(self, size_t depth):
 *         self._pvt_ptr[0].depth = depth
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7095
 *     def depth(self, size_t depth):
 *         self._pvt_ptr[0].depth = depth
 *     @property             # <<<<<<<<<<<<<<
 *     def firstMipmapLevel(self):
 *         return self._pvt_ptr[0].firstMipmapLevel
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7097
 *     @property
 *     def firstMipmapLevel(self):
 *         return self._pvt_ptr[0].firstMipmapLevel             # <<<<<<<<<<<<<<
 *     @firstMipmapLevel.setter
 *     def firstMipmapLevel(self, unsigned int firstMipmapLevel):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).firstMipmapLevel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7095
 *     def depth(self, size_t depth):
 *         self._pvt_ptr[0].depth = depth
 *     @property             # <<<<<<<<<<<<<<
 *     def firstMipmapLevel(self):
 *         return self._pvt_ptr[0].firstMipmapLevel
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.firstMipmapLevel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7098
 *     def firstMipmapLevel(self):
 *         return self._pvt_ptr[0].firstMipmapLevel
 *     @firstMipmapLevel.setter             # <<<<<<<<<<<<<<
 *     def firstMipmapLevel(self, unsigned int firstMipmapLevel):
 *         self._pvt_ptr[0].firstMipmapLevel = firstMipmapLevel
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_firstMipmapLevel); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_firstMipmapLevel) {
  unsigned int __pyx_v_firstMipmapLevel;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_firstMipmapLevel); {
    __pyx_v_firstMipmapLevel = __Pyx_PyLong_As_unsigned_int(__pyx_arg_firstMipmapLevel); if (unlikely((__pyx_v_firstMipmapLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7099, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.firstMipmapLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((unsigned int)__pyx_v_firstMipmapLevel));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_firstMipmapLevel) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7100
 *     @firstMipmapLevel.setter
 *     def firstMipmapLevel(self, unsigned int firstMipmapLevel):
 *         self._pvt_ptr[0].firstMipmapLevel = firstMipmapLevel             # <<<<<<<<<<<<<<
 *     @property
 *     def lastMipmapLevel(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).firstMipmapLevel = __pyx_v_firstMipmapLevel;

  /* "cuda/bindings/runtime.pyx":7098
 *     def firstMipmapLevel(self):
 *         return self._pvt_ptr[0].firstMipmapLevel
 *     @firstMipmapLevel.setter             # <<<<<<<<<<<<<<
 *     def firstMipmapLevel(self, unsigned int firstMipmapLevel):
 *         self._pvt_ptr[0].firstMipmapLevel = firstMipmapLevel
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7101
 *     def firstMipmapLevel(self, unsigned int firstMipmapLevel):
 *         self._pvt_ptr[0].firstMipmapLevel = firstMipmapLevel
 *     @property             # <<<<<<<<<<<<<<
 *     def lastMipmapLevel(self):
 *         return self._pvt_ptr[0].lastMipmapLevel
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7103
 *     @property
 *     def lastMipmapLevel(self):
 *         return self._pvt_ptr[0].lastMipmapLevel             # <<<<<<<<<<<<<<
 *     @lastMipmapLevel.setter
 *     def lastMipmapLevel(self, unsigned int lastMipmapLevel):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).lastMipmapLevel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7101
 *     def firstMipmapLevel(self, unsigned int firstMipmapLevel):
 *         self._pvt_ptr[0].firstMipmapLevel = firstMipmapLevel
 *     @property             # <<<<<<<<<<<<<<
 *     def lastMipmapLevel(self):
 *         return self._pvt_ptr[0].lastMipmapLevel
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.lastMipmapLevel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7104
 *     def lastMipmapLevel(self):
 *         return self._pvt_ptr[0].lastMipmapLevel
 *     @lastMipmapLevel.setter             # <<<<<<<<<<<<<<
 *     def lastMipmapLevel(self, unsigned int lastMipmapLevel):
 *         self._pvt_ptr[0].lastMipmapLevel = lastMipmapLevel
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_lastMipmapLevel); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_lastMipmapLevel) {
  unsigned int __pyx_v_lastMipmapLevel;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_lastMipmapLevel); {
    __pyx_v_lastMipmapLevel = __Pyx_PyLong_As_unsigned_int(__pyx_arg_lastMipmapLevel); if (unlikely((__pyx_v_lastMipmapLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7105, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.lastMipmapLevel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((unsigned int)__pyx_v_lastMipmapLevel));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_lastMipmapLevel) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7106
 *     @lastMipmapLevel.setter
 *     def lastMipmapLevel(self, unsigned int lastMipmapLevel):
 *         self._pvt_ptr[0].lastMipmapLevel = lastMipmapLevel             # <<<<<<<<<<<<<<
 *     @property
 *     def firstLayer(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).lastMipmapLevel = __pyx_v_lastMipmapLevel;

  /* "cuda/bindings/runtime.pyx":7104
 *     def lastMipmapLevel(self):
 *         return self._pvt_ptr[0].lastMipmapLevel
 *     @lastMipmapLevel.setter             # <<<<<<<<<<<<<<
 *     def lastMipmapLevel(self, unsigned int lastMipmapLevel):
 *         self._pvt_ptr[0].lastMipmapLevel = lastMipmapLevel
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7107
 *     def lastMipmapLevel(self, unsigned int lastMipmapLevel):
 *         self._pvt_ptr[0].lastMipmapLevel = lastMipmapLevel
 *     @property             # <<<<<<<<<<<<<<
 *     def firstLayer(self):
 *         return self._pvt_ptr[0].firstLayer
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7109
 *     @property
 *     def firstLayer(self):
 *         return self._pvt_ptr[0].firstLayer             # <<<<<<<<<<<<<<
 *     @firstLayer.setter
 *     def firstLayer(self, unsigned int firstLayer):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).firstLayer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7107
 *     def lastMipmapLevel(self, unsigned int lastMipmapLevel):
 *         self._pvt_ptr[0].lastMipmapLevel = lastMipmapLevel
 *     @property             # <<<<<<<<<<<<<<
 *     def firstLayer(self):
 *         return self._pvt_ptr[0].firstLayer
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.firstLayer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7110
 *     def firstLayer(self):
 *         return self._pvt_ptr[0].firstLayer
 *     @firstLayer.setter             # <<<<<<<<<<<<<<
 *     def firstLayer(self, unsigned int firstLayer):
 *         self._pvt_ptr[0].firstLayer = firstLayer
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_firstLayer); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_firstLayer) {
  unsigned int __pyx_v_firstLayer;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_firstLayer); {
    __pyx_v_firstLayer = __Pyx_PyLong_As_unsigned_int(__pyx_arg_firstLayer); if (unlikely((__pyx_v_firstLayer == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7111, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.firstLayer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((unsigned int)__pyx_v_firstLayer));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_firstLayer) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7112
 *     @firstLayer.setter
 *     def firstLayer(self, unsigned int firstLayer):
 *         self._pvt_ptr[0].firstLayer = firstLayer             # <<<<<<<<<<<<<<
 *     @property
 *     def lastLayer(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).firstLayer = __pyx_v_firstLayer;

  /* "cuda/bindings/runtime.pyx":7110
 *     def firstLayer(self):
 *         return self._pvt_ptr[0].firstLayer
 *     @firstLayer.setter             # <<<<<<<<<<<<<<
 *     def firstLayer(self, unsigned int firstLayer):
 *         self._pvt_ptr[0].firstLayer = firstLayer
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7113
 *     def firstLayer(self, unsigned int firstLayer):
 *         self._pvt_ptr[0].firstLayer = firstLayer
 *     @property             # <<<<<<<<<<<<<<
 *     def lastLayer(self):
 *         return self._pvt_ptr[0].lastLayer
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7115
 *     @property
 *     def lastLayer(self):
 *         return self._pvt_ptr[0].lastLayer             # <<<<<<<<<<<<<<
 *     @lastLayer.setter
 *     def lastLayer(self, unsigned int lastLayer):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).lastLayer); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7113
 *     def firstLayer(self, unsigned int firstLayer):
 *         self._pvt_ptr[0].firstLayer = firstLayer
 *     @property             # <<<<<<<<<<<<<<
 *     def lastLayer(self):
 *         return self._pvt_ptr[0].lastLayer
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.lastLayer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7116
 *     def lastLayer(self):
 *         return self._pvt_ptr[0].lastLayer
 *     @lastLayer.setter             # <<<<<<<<<<<<<<
 *     def lastLayer(self, unsigned int lastLayer):
 *         self._pvt_ptr[0].lastLayer = lastLayer
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_lastLayer); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_lastLayer) {
  unsigned int __pyx_v_lastLayer;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_lastLayer); {
    __pyx_v_lastLayer = __Pyx_PyLong_As_unsigned_int(__pyx_arg_lastLayer); if (unlikely((__pyx_v_lastLayer == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7117, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.lastLayer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((unsigned int)__pyx_v_lastLayer));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, unsigned int __pyx_v_lastLayer) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7118
 *     @lastLayer.setter
 *     def lastLayer(self, unsigned int lastLayer):
 *         self._pvt_ptr[0].lastLayer = lastLayer             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).lastLayer = __pyx_v_lastLayer;

  /* "cuda/bindings/runtime.pyx":7116
 *     def lastLayer(self):
 *         return self._pvt_ptr[0].lastLayer
 *     @lastLayer.setter             # <<<<<<<<<<<<<<
 *     def lastLayer(self, unsigned int lastLayer):
 *         self._pvt_ptr[0].lastLayer = lastLayer
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7119
 *     def lastLayer(self, unsigned int lastLayer):
 *         self._pvt_ptr[0].lastLayer = lastLayer
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7121
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7119
 *     def lastLayer(self, unsigned int lastLayer):
 *         self._pvt_ptr[0].lastLayer = lastLayer
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7122
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[16];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":7124
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaPointerAttributes:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 7124, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (16));

  /* "cuda/bindings/runtime.pyx":7122
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaResourceViewDesc_10__reduce_cython__, "cudaResourceViewDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaResourceViewDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaResourceViewDesc_12__setstate_cython__, "cudaResourceViewDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaResourceViewDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaResourceViewDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaResourceViewDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaResourceViewDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaResourceViewDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7159
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7159, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7159, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7159, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7159, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7159, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7159, __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.runtime.cudaPointerAttributes.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7160
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7161
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPointerAttributes *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7160
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7163
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPointerAttributes *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaPointerAttributes *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7159
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7164
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaPointerAttributes *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7164, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7164, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7164, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7164, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7164, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7164, __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.runtime.cudaPointerAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7166
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7168
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_7getPtr(PyObject *__pyx_v_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_7runtime_21cudaPointerAttributes_6getPtr, "cudaPointerAttributes.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaPointerAttributes_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaPointerAttributes_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7169
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7168
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7170
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7171
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7172
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7173
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7174
 *             str_list = []
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7174, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7174, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7174, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7174, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7174, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7174, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7173
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":7175
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7175, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7176
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['device : ' + str(self.device)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7176, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 7176, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7176, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7173
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7177
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7178
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['device : ' + str(self.device)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_device_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7178, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7178, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_device, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7178, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7178, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7178, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7178, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7177
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7179
 *             try:
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['device : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7179, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7180
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['devicePointer : ' + hex(self.devicePointer)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7180, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_device_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_device_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_device_ValueError) != (0)) __PYX_ERR(0, 7180, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7180, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":7177
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7181
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devicePointer : ' + hex(self.devicePointer)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7182
 *                 str_list += ['device : <ValueError>']
 *             try:
 *                 str_list += ['devicePointer : ' + hex(self.devicePointer)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['devicePointer : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_devicePointer_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7182, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7182, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_devicePointer, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7182, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7182, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7182, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7182, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7181
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devicePointer : ' + hex(self.devicePointer)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7183
 *             try:
 *                 str_list += ['devicePointer : ' + hex(self.devicePointer)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['devicePointer : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7183, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7184
 *                 str_list += ['devicePointer : ' + hex(self.devicePointer)]
 *             except ValueError:
 *                 str_list += ['devicePointer : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['hostPointer : ' + hex(self.hostPointer)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7184, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_devicePointer_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_devicePointer_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_devicePointer_ValueError) != (0)) __PYX_ERR(0, 7184, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7184, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":7181
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devicePointer : ' + hex(self.devicePointer)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7185
 *             except ValueError:
 *                 str_list += ['devicePointer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostPointer : ' + hex(self.hostPointer)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7186
 *                 str_list += ['devicePointer : <ValueError>']
 *             try:
 *                 str_list += ['hostPointer : ' + hex(self.hostPointer)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['hostPointer : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_hostPointer_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7186, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7186, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_hostPointer, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7186, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7186, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7186, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7186, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7185
 *             except ValueError:
 *                 str_list += ['devicePointer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostPointer : ' + hex(self.hostPointer)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7187
 *             try:
 *                 str_list += ['hostPointer : ' + hex(self.hostPointer)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostPointer : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7187, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7188
 *                 str_list += ['hostPointer : ' + hex(self.hostPointer)]
 *             except ValueError:
 *                 str_list += ['hostPointer : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7188, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_hostPointer_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_hostPointer_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_hostPointer_ValueError) != (0)) __PYX_ERR(0, 7188, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7188, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":7185
 *             except ValueError:
 *                 str_list += ['devicePointer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostPointer : ' + hex(self.hostPointer)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7189
 *             except ValueError:
 *                 str_list += ['hostPointer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7190
 *                 str_list += ['hostPointer : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7190, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7190, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7190, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7190, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7190, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7190, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7189
 *             except ValueError:
 *                 str_list += ['hostPointer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7191
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7191, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7192
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7192, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 7192, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7192, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":7189
 *             except ValueError:
 *                 str_list += ['hostPointer : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7193
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7193, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7171
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7195
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7170
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7196
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemoryType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7198
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemoryType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemoryType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemoryType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemoryType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 7198, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":7199
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemoryType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemoryType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7198
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemoryType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemoryType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":7200
 *         if self._pvt_ptr[0].type not in _dict_cudaMemoryType:
 *             return None
 *         return _dict_cudaMemoryType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaMemoryType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemoryType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemoryType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7196
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemoryType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7201
 *             return None
 *         return _dict_cudaMemoryType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaMemoryType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 7202, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemoryType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7203
 *     @type.setter
 *     def type(self, type not None : cudaMemoryType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def device(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemoryType)__Pyx_PyLong_As_enum__cudaMemoryType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7203, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":7201
 *             return None
 *         return _dict_cudaMemoryType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaMemoryType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7204
 *     def type(self, type not None : cudaMemoryType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def device(self):
 *         return self._pvt_ptr[0].device
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7206
 *     @property
 *     def device(self):
 *         return self._pvt_ptr[0].device             # <<<<<<<<<<<<<<
 *     @device.setter
 *     def device(self, int device):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).device); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7204
 *     def type(self, type not None : cudaMemoryType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def device(self):
 *         return self._pvt_ptr[0].device
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.device.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7207
 *     def device(self):
 *         return self._pvt_ptr[0].device
 *     @device.setter             # <<<<<<<<<<<<<<
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_device); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_device) {
  int __pyx_v_device;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_device); {
    __pyx_v_device = __Pyx_PyLong_As_int(__pyx_arg_device); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7208, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.device.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self), ((int)__pyx_v_device));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, int __pyx_v_device) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7209
 *     @device.setter
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device             # <<<<<<<<<<<<<<
 *     @property
 *     def devicePointer(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).device = __pyx_v_device;

  /* "cuda/bindings/runtime.pyx":7207
 *     def device(self):
 *         return self._pvt_ptr[0].device
 *     @device.setter             # <<<<<<<<<<<<<<
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7210
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device
 *     @property             # <<<<<<<<<<<<<<
 *     def devicePointer(self):
 *         return <void_ptr>self._pvt_ptr[0].devicePointer
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7212
 *     @property
 *     def devicePointer(self):
 *         return <void_ptr>self._pvt_ptr[0].devicePointer             # <<<<<<<<<<<<<<
 *     @devicePointer.setter
 *     def devicePointer(self, devicePointer):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).devicePointer)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7210
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device
 *     @property             # <<<<<<<<<<<<<<
 *     def devicePointer(self):
 *         return <void_ptr>self._pvt_ptr[0].devicePointer
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.devicePointer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7213
 *     def devicePointer(self):
 *         return <void_ptr>self._pvt_ptr[0].devicePointer
 *     @devicePointer.setter             # <<<<<<<<<<<<<<
 *     def devicePointer(self, devicePointer):
 *         _cdevicePointer = _HelperInputVoidPtr(devicePointer)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devicePointer); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devicePointer) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_devicePointer));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_devicePointer) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdevicePointer = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7215
 *     @devicePointer.setter
 *     def devicePointer(self, devicePointer):
 *         _cdevicePointer = _HelperInputVoidPtr(devicePointer)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].devicePointer = <void*><void_ptr>_cdevicePointer.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devicePointer};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7215, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdevicePointer = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7216
 *     def devicePointer(self, devicePointer):
 *         _cdevicePointer = _HelperInputVoidPtr(devicePointer)
 *         self._pvt_ptr[0].devicePointer = <void*><void_ptr>_cdevicePointer.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def hostPointer(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdevicePointer), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7216, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).devicePointer = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":7213
 *     def devicePointer(self):
 *         return <void_ptr>self._pvt_ptr[0].devicePointer
 *     @devicePointer.setter             # <<<<<<<<<<<<<<
 *     def devicePointer(self, devicePointer):
 *         _cdevicePointer = _HelperInputVoidPtr(devicePointer)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.devicePointer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdevicePointer);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7217
 *         _cdevicePointer = _HelperInputVoidPtr(devicePointer)
 *         self._pvt_ptr[0].devicePointer = <void*><void_ptr>_cdevicePointer.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def hostPointer(self):
 *         return <void_ptr>self._pvt_ptr[0].hostPointer
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7219
 *     @property
 *     def hostPointer(self):
 *         return <void_ptr>self._pvt_ptr[0].hostPointer             # <<<<<<<<<<<<<<
 *     @hostPointer.setter
 *     def hostPointer(self, hostPointer):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).hostPointer)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7217
 *         _cdevicePointer = _HelperInputVoidPtr(devicePointer)
 *         self._pvt_ptr[0].devicePointer = <void*><void_ptr>_cdevicePointer.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def hostPointer(self):
 *         return <void_ptr>self._pvt_ptr[0].hostPointer
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.hostPointer.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7220
 *     def hostPointer(self):
 *         return <void_ptr>self._pvt_ptr[0].hostPointer
 *     @hostPointer.setter             # <<<<<<<<<<<<<<
 *     def hostPointer(self, hostPointer):
 *         _chostPointer = _HelperInputVoidPtr(hostPointer)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_hostPointer); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_hostPointer) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_hostPointer));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_hostPointer) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__chostPointer = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7222
 *     @hostPointer.setter
 *     def hostPointer(self, hostPointer):
 *         _chostPointer = _HelperInputVoidPtr(hostPointer)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].hostPointer = <void*><void_ptr>_chostPointer.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_hostPointer};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7222, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__chostPointer = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7223
 *     def hostPointer(self, hostPointer):
 *         _chostPointer = _HelperInputVoidPtr(hostPointer)
 *         self._pvt_ptr[0].hostPointer = <void*><void_ptr>_chostPointer.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__chostPointer), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).hostPointer = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":7220
 *     def hostPointer(self):
 *         return <void_ptr>self._pvt_ptr[0].hostPointer
 *     @hostPointer.setter             # <<<<<<<<<<<<<<
 *     def hostPointer(self, hostPointer):
 *         _chostPointer = _HelperInputVoidPtr(hostPointer)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.hostPointer.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__chostPointer);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7224
 *         _chostPointer = _HelperInputVoidPtr(hostPointer)
 *         self._pvt_ptr[0].hostPointer = <void*><void_ptr>_chostPointer.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7226
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_long((__pyx_v_self->_pvt_ptr[0]).reserved, 8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7224
 *         _chostPointer = _HelperInputVoidPtr(hostPointer)
 *         self._pvt_ptr[0].hostPointer = <void*><void_ptr>_chostPointer.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7227
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  long __pyx_t_1[8];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":7229
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaFuncAttributes:
*/
  if (unlikely((__Pyx_carray_from_py_long(__pyx_v_reserved, __pyx_t_1, 8) < 0))) __PYX_ERR(0, 7229, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (8));

  /* "cuda/bindings/runtime.pyx":7227
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_21cudaPointerAttributes_10__reduce_cython__, "cudaPointerAttributes.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaPointerAttributes_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaPointerAttributes_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_21cudaPointerAttributes_12__setstate_cython__, "cudaPointerAttributes.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaPointerAttributes_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaPointerAttributes_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaPointerAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaPointerAttributes_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7314
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7314, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7314, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7314, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7314, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7314, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7314, __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.runtime.cudaFuncAttributes.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7315
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7316
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaFuncAttributes *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7315
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7318
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaFuncAttributes *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaFuncAttributes *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7314
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7319
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaFuncAttributes *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7319, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7319, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7319, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7319, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7319, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7319, __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.runtime.cudaFuncAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7321
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7323
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7getPtr(PyObject *__pyx_v_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_7runtime_18cudaFuncAttributes_6getPtr, "cudaFuncAttributes.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaFuncAttributes_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaFuncAttributes_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7324
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7323
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7325
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7326
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7327
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7327, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7328
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7329
 *             str_list = []
 *             try:
 *                 str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sharedSizeBytes : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sharedSizeBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7329, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7329, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sharedSizeBytes, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7329, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7329, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7329, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7329, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7328
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":7330
 *             try:
 *                 str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedSizeBytes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7330, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7331
 *                 str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)]
 *             except ValueError:
 *                 str_list += ['sharedSizeBytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['constSizeBytes : ' + str(self.constSizeBytes)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7331, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sharedSizeBytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sharedSizeBytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_sharedSizeBytes_ValueError) != (0)) __PYX_ERR(0, 7331, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7331, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7328
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7332
 *             except ValueError:
 *                 str_list += ['sharedSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['constSizeBytes : ' + str(self.constSizeBytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7333
 *                 str_list += ['sharedSizeBytes : <ValueError>']
 *             try:
 *                 str_list += ['constSizeBytes : ' + str(self.constSizeBytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['constSizeBytes : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_constSizeBytes_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7333, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7333, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_constSizeBytes, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7333, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7333, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7333, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7333, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7332
 *             except ValueError:
 *                 str_list += ['sharedSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['constSizeBytes : ' + str(self.constSizeBytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7334
 *             try:
 *                 str_list += ['constSizeBytes : ' + str(self.constSizeBytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['constSizeBytes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7334, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7335
 *                 str_list += ['constSizeBytes : ' + str(self.constSizeBytes)]
 *             except ValueError:
 *                 str_list += ['constSizeBytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['localSizeBytes : ' + str(self.localSizeBytes)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7335, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_constSizeBytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_constSizeBytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_constSizeBytes_ValueError) != (0)) __PYX_ERR(0, 7335, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7335, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":7332
 *             except ValueError:
 *                 str_list += ['sharedSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['constSizeBytes : ' + str(self.constSizeBytes)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7336
 *             except ValueError:
 *                 str_list += ['constSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['localSizeBytes : ' + str(self.localSizeBytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7337
 *                 str_list += ['constSizeBytes : <ValueError>']
 *             try:
 *                 str_list += ['localSizeBytes : ' + str(self.localSizeBytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['localSizeBytes : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_localSizeBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7337, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7337, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_localSizeBytes, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7337, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7337, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7337, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7337, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7336
 *             except ValueError:
 *                 str_list += ['constSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['localSizeBytes : ' + str(self.localSizeBytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7338
 *             try:
 *                 str_list += ['localSizeBytes : ' + str(self.localSizeBytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['localSizeBytes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7338, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7339
 *                 str_list += ['localSizeBytes : ' + str(self.localSizeBytes)]
 *             except ValueError:
 *                 str_list += ['localSizeBytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7339, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_localSizeBytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_localSizeBytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_localSizeBytes_ValueError) != (0)) __PYX_ERR(0, 7339, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7339, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":7336
 *             except ValueError:
 *                 str_list += ['constSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['localSizeBytes : ' + str(self.localSizeBytes)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7340
 *             except ValueError:
 *                 str_list += ['localSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7341
 *                 str_list += ['localSizeBytes : <ValueError>']
 *             try:
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxThreadsPerBlock_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7341, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7341, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7341, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7341, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7341, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7341, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7340
 *             except ValueError:
 *                 str_list += ['localSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7342
 *             try:
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7342, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7343
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['numRegs : ' + str(self.numRegs)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7343, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock_ValueError) != (0)) __PYX_ERR(0, 7343, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7343, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":7340
 *             except ValueError:
 *                 str_list += ['localSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7344
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numRegs : ' + str(self.numRegs)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7345
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:
 *                 str_list += ['numRegs : ' + str(self.numRegs)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['numRegs : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_numRegs_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7345, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7345, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_numRegs, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7345, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7345, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7345, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7345, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7344
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numRegs : ' + str(self.numRegs)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7346
 *             try:
 *                 str_list += ['numRegs : ' + str(self.numRegs)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['numRegs : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7346, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7347
 *                 str_list += ['numRegs : ' + str(self.numRegs)]
 *             except ValueError:
 *                 str_list += ['numRegs : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ptxVersion : ' + str(self.ptxVersion)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7347, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_numRegs_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_numRegs_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_numRegs_ValueError) != (0)) __PYX_ERR(0, 7347, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7347, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":7344
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numRegs : ' + str(self.numRegs)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7348
 *             except ValueError:
 *                 str_list += ['numRegs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptxVersion : ' + str(self.ptxVersion)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7349
 *                 str_list += ['numRegs : <ValueError>']
 *             try:
 *                 str_list += ['ptxVersion : ' + str(self.ptxVersion)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ptxVersion : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ptxVersion_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7349, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7349, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ptxVersion, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7349, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7349, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7349, __pyx_L44_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7349, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7348
 *             except ValueError:
 *                 str_list += ['numRegs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptxVersion : ' + str(self.ptxVersion)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L49_try_end;
      __pyx_L44_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7350
 *             try:
 *                 str_list += ['ptxVersion : ' + str(self.ptxVersion)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptxVersion : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7350, __pyx_L46_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7351
 *                 str_list += ['ptxVersion : ' + str(self.ptxVersion)]
 *             except ValueError:
 *                 str_list += ['ptxVersion : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['binaryVersion : ' + str(self.binaryVersion)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7351, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ptxVersion_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ptxVersion_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_ptxVersion_ValueError) != (0)) __PYX_ERR(0, 7351, __pyx_L46_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7351, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L45_exception_handled;
      }
      goto __pyx_L46_except_error;

      /* "cuda/bindings/runtime.pyx":7348
 *             except ValueError:
 *                 str_list += ['numRegs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptxVersion : ' + str(self.ptxVersion)]
 *             except ValueError:
*/
      __pyx_L46_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L45_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L49_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7352
 *             except ValueError:
 *                 str_list += ['ptxVersion : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['binaryVersion : ' + str(self.binaryVersion)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7353
 *                 str_list += ['ptxVersion : <ValueError>']
 *             try:
 *                 str_list += ['binaryVersion : ' + str(self.binaryVersion)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['binaryVersion : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_binaryVersion_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7353, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7353, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_binaryVersion, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7353, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7353, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7353, __pyx_L52_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7353, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7352
 *             except ValueError:
 *                 str_list += ['ptxVersion : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['binaryVersion : ' + str(self.binaryVersion)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L57_try_end;
      __pyx_L52_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7354
 *             try:
 *                 str_list += ['binaryVersion : ' + str(self.binaryVersion)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['binaryVersion : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7354, __pyx_L54_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7355
 *                 str_list += ['binaryVersion : ' + str(self.binaryVersion)]
 *             except ValueError:
 *                 str_list += ['binaryVersion : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['cacheModeCA : ' + str(self.cacheModeCA)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7355, __pyx_L54_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_binaryVersion_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_binaryVersion_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_binaryVersion_ValueError) != (0)) __PYX_ERR(0, 7355, __pyx_L54_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7355, __pyx_L54_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L53_exception_handled;
      }
      goto __pyx_L54_except_error;

      /* "cuda/bindings/runtime.pyx":7352
 *             except ValueError:
 *                 str_list += ['ptxVersion : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['binaryVersion : ' + str(self.binaryVersion)]
 *             except ValueError:
*/
      __pyx_L54_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L53_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L57_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7356
 *             except ValueError:
 *                 str_list += ['binaryVersion : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cacheModeCA : ' + str(self.cacheModeCA)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7357
 *                 str_list += ['binaryVersion : <ValueError>']
 *             try:
 *                 str_list += ['cacheModeCA : ' + str(self.cacheModeCA)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['cacheModeCA : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_cacheModeCA_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7357, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7357, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cacheModeCA, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7357, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7357, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7357, __pyx_L60_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7357, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7356
 *             except ValueError:
 *                 str_list += ['binaryVersion : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cacheModeCA : ' + str(self.cacheModeCA)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L65_try_end;
      __pyx_L60_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7358
 *             try:
 *                 str_list += ['cacheModeCA : ' + str(self.cacheModeCA)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['cacheModeCA : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7358, __pyx_L62_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7359
 *                 str_list += ['cacheModeCA : ' + str(self.cacheModeCA)]
 *             except ValueError:
 *                 str_list += ['cacheModeCA : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7359, __pyx_L62_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_cacheModeCA_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_cacheModeCA_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_cacheModeCA_ValueError) != (0)) __PYX_ERR(0, 7359, __pyx_L62_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7359, __pyx_L62_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L61_exception_handled;
      }
      goto __pyx_L62_except_error;

      /* "cuda/bindings/runtime.pyx":7356
 *             except ValueError:
 *                 str_list += ['binaryVersion : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cacheModeCA : ' + str(self.cacheModeCA)]
 *             except ValueError:
*/
      __pyx_L62_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L61_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L65_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7360
 *             except ValueError:
 *                 str_list += ['cacheModeCA : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7361
 *                 str_list += ['cacheModeCA : <ValueError>']
 *             try:
 *                 str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxDynamicSharedSizeBytes : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxDynamicSharedSizeBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7361, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7361, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxDynamicSharedSizeBytes, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7361, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7361, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7361, __pyx_L68_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7361, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7360
 *             except ValueError:
 *                 str_list += ['cacheModeCA : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L73_try_end;
      __pyx_L68_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7362
 *             try:
 *                 str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxDynamicSharedSizeBytes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7362, __pyx_L70_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7363
 *                 str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)]
 *             except ValueError:
 *                 str_list += ['maxDynamicSharedSizeBytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7363, __pyx_L70_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_maxDynamicSharedSizeBytes_ValueE) != (0)) __PYX_ERR(0, 7363, __pyx_L70_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7363, __pyx_L70_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L69_exception_handled;
      }
      goto __pyx_L70_except_error;

      /* "cuda/bindings/runtime.pyx":7360
 *             except ValueError:
 *                 str_list += ['cacheModeCA : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)]
 *             except ValueError:
*/
      __pyx_L70_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L69_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L73_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7364
 *             except ValueError:
 *                 str_list += ['maxDynamicSharedSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7365
 *                 str_list += ['maxDynamicSharedSizeBytes : <ValueError>']
 *             try:
 *                 str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['preferredShmemCarveout : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_preferredShmemCarveout_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7365, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7365, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_preferredShmemCarveout, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7365, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7365, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7365, __pyx_L76_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7365, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7364
 *             except ValueError:
 *                 str_list += ['maxDynamicSharedSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L81_try_end;
      __pyx_L76_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7366
 *             try:
 *                 str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredShmemCarveout : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7366, __pyx_L78_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7367
 *                 str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)]
 *             except ValueError:
 *                 str_list += ['preferredShmemCarveout : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7367, __pyx_L78_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_preferredShmemCarveout_ValueErro);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_preferredShmemCarveout_ValueErro);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_preferredShmemCarveout_ValueErro) != (0)) __PYX_ERR(0, 7367, __pyx_L78_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7367, __pyx_L78_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L77_exception_handled;
      }
      goto __pyx_L78_except_error;

      /* "cuda/bindings/runtime.pyx":7364
 *             except ValueError:
 *                 str_list += ['maxDynamicSharedSizeBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)]
 *             except ValueError:
*/
      __pyx_L78_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L77_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L81_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7368
 *             except ValueError:
 *                 str_list += ['preferredShmemCarveout : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7369
 *                 str_list += ['preferredShmemCarveout : <ValueError>']
 *             try:
 *                 str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['clusterDimMustBeSet : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_clusterDimMustBeSet_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7369, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7369, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_clusterDimMustBeSet, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7369, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7369, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7369, __pyx_L84_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7369, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7368
 *             except ValueError:
 *                 str_list += ['preferredShmemCarveout : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L89_try_end;
      __pyx_L84_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7370
 *             try:
 *                 str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterDimMustBeSet : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7370, __pyx_L86_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7371
 *                 str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)]
 *             except ValueError:
 *                 str_list += ['clusterDimMustBeSet : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7371, __pyx_L86_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_clusterDimMustBeSet_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_clusterDimMustBeSet_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_clusterDimMustBeSet_ValueError) != (0)) __PYX_ERR(0, 7371, __pyx_L86_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7371, __pyx_L86_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L85_exception_handled;
      }
      goto __pyx_L86_except_error;

      /* "cuda/bindings/runtime.pyx":7368
 *             except ValueError:
 *                 str_list += ['preferredShmemCarveout : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)]
 *             except ValueError:
*/
      __pyx_L86_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L85_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L89_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7372
 *             except ValueError:
 *                 str_list += ['clusterDimMustBeSet : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7373
 *                 str_list += ['clusterDimMustBeSet : <ValueError>']
 *             try:
 *                 str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['requiredClusterWidth : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_requiredClusterWidth_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7373, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7373, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_requiredClusterWidth, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7373, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7373, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7373, __pyx_L92_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7373, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7372
 *             except ValueError:
 *                 str_list += ['clusterDimMustBeSet : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L97_try_end;
      __pyx_L92_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7374
 *             try:
 *                 str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterWidth : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7374, __pyx_L94_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7375
 *                 str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)]
 *             except ValueError:
 *                 str_list += ['requiredClusterWidth : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7375, __pyx_L94_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_requiredClusterWidth_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_requiredClusterWidth_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_requiredClusterWidth_ValueError) != (0)) __PYX_ERR(0, 7375, __pyx_L94_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7375, __pyx_L94_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L93_exception_handled;
      }
      goto __pyx_L94_except_error;

      /* "cuda/bindings/runtime.pyx":7372
 *             except ValueError:
 *                 str_list += ['clusterDimMustBeSet : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)]
 *             except ValueError:
*/
      __pyx_L94_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L93_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L97_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7376
 *             except ValueError:
 *                 str_list += ['requiredClusterWidth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7377
 *                 str_list += ['requiredClusterWidth : <ValueError>']
 *             try:
 *                 str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['requiredClusterHeight : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_requiredClusterHeight_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7377, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7377, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_requiredClusterHeight, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7377, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7377, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7377, __pyx_L100_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7377, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7376
 *             except ValueError:
 *                 str_list += ['requiredClusterWidth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L105_try_end;
      __pyx_L100_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7378
 *             try:
 *                 str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterHeight : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7378, __pyx_L102_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7379
 *                 str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)]
 *             except ValueError:
 *                 str_list += ['requiredClusterHeight : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7379, __pyx_L102_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_requiredClusterHeight_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_requiredClusterHeight_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_requiredClusterHeight_ValueError) != (0)) __PYX_ERR(0, 7379, __pyx_L102_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7379, __pyx_L102_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L101_exception_handled;
      }
      goto __pyx_L102_except_error;

      /* "cuda/bindings/runtime.pyx":7376
 *             except ValueError:
 *                 str_list += ['requiredClusterWidth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)]
 *             except ValueError:
*/
      __pyx_L102_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L101_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L105_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7380
 *             except ValueError:
 *                 str_list += ['requiredClusterHeight : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7381
 *                 str_list += ['requiredClusterHeight : <ValueError>']
 *             try:
 *                 str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['requiredClusterDepth : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_requiredClusterDepth_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7381, __pyx_L108_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7381, __pyx_L108_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_requiredClusterDepth, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7381, __pyx_L108_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7381, __pyx_L108_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7381, __pyx_L108_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7381, __pyx_L108_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7380
 *             except ValueError:
 *                 str_list += ['requiredClusterHeight : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L113_try_end;
      __pyx_L108_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7382
 *             try:
 *                 str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterDepth : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7382, __pyx_L110_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7383
 *                 str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)]
 *             except ValueError:
 *                 str_list += ['requiredClusterDepth : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7383, __pyx_L110_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_requiredClusterDepth_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_requiredClusterDepth_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_requiredClusterDepth_ValueError) != (0)) __PYX_ERR(0, 7383, __pyx_L110_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7383, __pyx_L110_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L109_exception_handled;
      }
      goto __pyx_L110_except_error;

      /* "cuda/bindings/runtime.pyx":7380
 *             except ValueError:
 *                 str_list += ['requiredClusterHeight : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)]
 *             except ValueError:
*/
      __pyx_L110_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L109_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L113_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7384
 *             except ValueError:
 *                 str_list += ['requiredClusterDepth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7385
 *                 str_list += ['requiredClusterDepth : <ValueError>']
 *             try:
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_clusterSchedulingPolicyPreferenc_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7385, __pyx_L116_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7385, __pyx_L116_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7385, __pyx_L116_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7385, __pyx_L116_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7385, __pyx_L116_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7385, __pyx_L116_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7384
 *             except ValueError:
 *                 str_list += ['requiredClusterDepth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L121_try_end;
      __pyx_L116_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7386
 *             try:
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7386, __pyx_L118_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7387
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7387, __pyx_L118_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3) != (0)) __PYX_ERR(0, 7387, __pyx_L118_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7387, __pyx_L118_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L117_exception_handled;
      }
      goto __pyx_L118_except_error;

      /* "cuda/bindings/runtime.pyx":7384
 *             except ValueError:
 *                 str_list += ['requiredClusterDepth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:
*/
      __pyx_L118_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L117_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L121_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7388
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7389
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:
 *                 str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['nonPortableClusterSizeAllowed : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_nonPortableClusterSizeAllowed_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7389, __pyx_L124_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7389, __pyx_L124_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_nonPortableClusterSizeAllowed, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7389, __pyx_L124_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7389, __pyx_L124_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7389, __pyx_L124_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7389, __pyx_L124_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7388
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L129_try_end;
      __pyx_L124_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7390
 *             try:
 *                 str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['nonPortableClusterSizeAllowed : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7390, __pyx_L126_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7391
 *                 str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)]
 *             except ValueError:
 *                 str_list += ['nonPortableClusterSizeAllowed : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7391, __pyx_L126_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_nonPortableClusterSizeAllowed_Va);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_nonPortableClusterSizeAllowed_Va);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_nonPortableClusterSizeAllowed_Va) != (0)) __PYX_ERR(0, 7391, __pyx_L126_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7391, __pyx_L126_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L125_exception_handled;
      }
      goto __pyx_L126_except_error;

      /* "cuda/bindings/runtime.pyx":7388
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)]
 *             except ValueError:
*/
      __pyx_L126_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L125_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L129_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7392
 *             except ValueError:
 *                 str_list += ['nonPortableClusterSizeAllowed : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7393
 *                 str_list += ['nonPortableClusterSizeAllowed : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7393, __pyx_L132_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7393, __pyx_L132_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7393, __pyx_L132_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7393, __pyx_L132_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7393, __pyx_L132_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7393, __pyx_L132_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7392
 *             except ValueError:
 *                 str_list += ['nonPortableClusterSizeAllowed : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L137_try_end;
      __pyx_L132_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7394
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7394, __pyx_L134_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7395
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7395, __pyx_L134_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 7395, __pyx_L134_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7395, __pyx_L134_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L133_exception_handled;
      }
      goto __pyx_L134_except_error;

      /* "cuda/bindings/runtime.pyx":7392
 *             except ValueError:
 *                 str_list += ['nonPortableClusterSizeAllowed : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L134_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L133_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L137_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7396
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7326
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7398
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def sharedSizeBytes(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7325
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7399
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedSizeBytes(self):
 *         return self._pvt_ptr[0].sharedSizeBytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7401
 *     @property
 *     def sharedSizeBytes(self):
 *         return self._pvt_ptr[0].sharedSizeBytes             # <<<<<<<<<<<<<<
 *     @sharedSizeBytes.setter
 *     def sharedSizeBytes(self, size_t sharedSizeBytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).sharedSizeBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7399
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedSizeBytes(self):
 *         return self._pvt_ptr[0].sharedSizeBytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.sharedSizeBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7402
 *     def sharedSizeBytes(self):
 *         return self._pvt_ptr[0].sharedSizeBytes
 *     @sharedSizeBytes.setter             # <<<<<<<<<<<<<<
 *     def sharedSizeBytes(self, size_t sharedSizeBytes):
 *         self._pvt_ptr[0].sharedSizeBytes = sharedSizeBytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedSizeBytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedSizeBytes) {
  size_t __pyx_v_sharedSizeBytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sharedSizeBytes); {
    __pyx_v_sharedSizeBytes = __Pyx_PyLong_As_size_t(__pyx_arg_sharedSizeBytes); if (unlikely((__pyx_v_sharedSizeBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7403, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.sharedSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((size_t)__pyx_v_sharedSizeBytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_sharedSizeBytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7404
 *     @sharedSizeBytes.setter
 *     def sharedSizeBytes(self, size_t sharedSizeBytes):
 *         self._pvt_ptr[0].sharedSizeBytes = sharedSizeBytes             # <<<<<<<<<<<<<<
 *     @property
 *     def constSizeBytes(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sharedSizeBytes = __pyx_v_sharedSizeBytes;

  /* "cuda/bindings/runtime.pyx":7402
 *     def sharedSizeBytes(self):
 *         return self._pvt_ptr[0].sharedSizeBytes
 *     @sharedSizeBytes.setter             # <<<<<<<<<<<<<<
 *     def sharedSizeBytes(self, size_t sharedSizeBytes):
 *         self._pvt_ptr[0].sharedSizeBytes = sharedSizeBytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7405
 *     def sharedSizeBytes(self, size_t sharedSizeBytes):
 *         self._pvt_ptr[0].sharedSizeBytes = sharedSizeBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def constSizeBytes(self):
 *         return self._pvt_ptr[0].constSizeBytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7407
 *     @property
 *     def constSizeBytes(self):
 *         return self._pvt_ptr[0].constSizeBytes             # <<<<<<<<<<<<<<
 *     @constSizeBytes.setter
 *     def constSizeBytes(self, size_t constSizeBytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).constSizeBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7405
 *     def sharedSizeBytes(self, size_t sharedSizeBytes):
 *         self._pvt_ptr[0].sharedSizeBytes = sharedSizeBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def constSizeBytes(self):
 *         return self._pvt_ptr[0].constSizeBytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.constSizeBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7408
 *     def constSizeBytes(self):
 *         return self._pvt_ptr[0].constSizeBytes
 *     @constSizeBytes.setter             # <<<<<<<<<<<<<<
 *     def constSizeBytes(self, size_t constSizeBytes):
 *         self._pvt_ptr[0].constSizeBytes = constSizeBytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_constSizeBytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_constSizeBytes) {
  size_t __pyx_v_constSizeBytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_constSizeBytes); {
    __pyx_v_constSizeBytes = __Pyx_PyLong_As_size_t(__pyx_arg_constSizeBytes); if (unlikely((__pyx_v_constSizeBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7409, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.constSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((size_t)__pyx_v_constSizeBytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_constSizeBytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7410
 *     @constSizeBytes.setter
 *     def constSizeBytes(self, size_t constSizeBytes):
 *         self._pvt_ptr[0].constSizeBytes = constSizeBytes             # <<<<<<<<<<<<<<
 *     @property
 *     def localSizeBytes(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).constSizeBytes = __pyx_v_constSizeBytes;

  /* "cuda/bindings/runtime.pyx":7408
 *     def constSizeBytes(self):
 *         return self._pvt_ptr[0].constSizeBytes
 *     @constSizeBytes.setter             # <<<<<<<<<<<<<<
 *     def constSizeBytes(self, size_t constSizeBytes):
 *         self._pvt_ptr[0].constSizeBytes = constSizeBytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7411
 *     def constSizeBytes(self, size_t constSizeBytes):
 *         self._pvt_ptr[0].constSizeBytes = constSizeBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def localSizeBytes(self):
 *         return self._pvt_ptr[0].localSizeBytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7413
 *     @property
 *     def localSizeBytes(self):
 *         return self._pvt_ptr[0].localSizeBytes             # <<<<<<<<<<<<<<
 *     @localSizeBytes.setter
 *     def localSizeBytes(self, size_t localSizeBytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).localSizeBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7411
 *     def constSizeBytes(self, size_t constSizeBytes):
 *         self._pvt_ptr[0].constSizeBytes = constSizeBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def localSizeBytes(self):
 *         return self._pvt_ptr[0].localSizeBytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.localSizeBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7414
 *     def localSizeBytes(self):
 *         return self._pvt_ptr[0].localSizeBytes
 *     @localSizeBytes.setter             # <<<<<<<<<<<<<<
 *     def localSizeBytes(self, size_t localSizeBytes):
 *         self._pvt_ptr[0].localSizeBytes = localSizeBytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_localSizeBytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_localSizeBytes) {
  size_t __pyx_v_localSizeBytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_localSizeBytes); {
    __pyx_v_localSizeBytes = __Pyx_PyLong_As_size_t(__pyx_arg_localSizeBytes); if (unlikely((__pyx_v_localSizeBytes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7415, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.localSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((size_t)__pyx_v_localSizeBytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, size_t __pyx_v_localSizeBytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7416
 *     @localSizeBytes.setter
 *     def localSizeBytes(self, size_t localSizeBytes):
 *         self._pvt_ptr[0].localSizeBytes = localSizeBytes             # <<<<<<<<<<<<<<
 *     @property
 *     def maxThreadsPerBlock(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).localSizeBytes = __pyx_v_localSizeBytes;

  /* "cuda/bindings/runtime.pyx":7414
 *     def localSizeBytes(self):
 *         return self._pvt_ptr[0].localSizeBytes
 *     @localSizeBytes.setter             # <<<<<<<<<<<<<<
 *     def localSizeBytes(self, size_t localSizeBytes):
 *         self._pvt_ptr[0].localSizeBytes = localSizeBytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7417
 *     def localSizeBytes(self, size_t localSizeBytes):
 *         self._pvt_ptr[0].localSizeBytes = localSizeBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7419
 *     @property
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock             # <<<<<<<<<<<<<<
 *     @maxThreadsPerBlock.setter
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxThreadsPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7417
 *     def localSizeBytes(self, size_t localSizeBytes):
 *         self._pvt_ptr[0].localSizeBytes = localSizeBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.maxThreadsPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7420
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock
 *     @maxThreadsPerBlock.setter             # <<<<<<<<<<<<<<
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerBlock); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerBlock) {
  int __pyx_v_maxThreadsPerBlock;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxThreadsPerBlock); {
    __pyx_v_maxThreadsPerBlock = __Pyx_PyLong_As_int(__pyx_arg_maxThreadsPerBlock); if (unlikely((__pyx_v_maxThreadsPerBlock == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7421, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.maxThreadsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_maxThreadsPerBlock));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_maxThreadsPerBlock) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7422
 *     @maxThreadsPerBlock.setter
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock             # <<<<<<<<<<<<<<
 *     @property
 *     def numRegs(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxThreadsPerBlock = __pyx_v_maxThreadsPerBlock;

  /* "cuda/bindings/runtime.pyx":7420
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock
 *     @maxThreadsPerBlock.setter             # <<<<<<<<<<<<<<
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7423
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def numRegs(self):
 *         return self._pvt_ptr[0].numRegs
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7425
 *     @property
 *     def numRegs(self):
 *         return self._pvt_ptr[0].numRegs             # <<<<<<<<<<<<<<
 *     @numRegs.setter
 *     def numRegs(self, int numRegs):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).numRegs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7423
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def numRegs(self):
 *         return self._pvt_ptr[0].numRegs
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.numRegs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7426
 *     def numRegs(self):
 *         return self._pvt_ptr[0].numRegs
 *     @numRegs.setter             # <<<<<<<<<<<<<<
 *     def numRegs(self, int numRegs):
 *         self._pvt_ptr[0].numRegs = numRegs
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numRegs); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numRegs) {
  int __pyx_v_numRegs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_numRegs); {
    __pyx_v_numRegs = __Pyx_PyLong_As_int(__pyx_arg_numRegs); if (unlikely((__pyx_v_numRegs == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7427, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.numRegs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_numRegs));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_numRegs) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7428
 *     @numRegs.setter
 *     def numRegs(self, int numRegs):
 *         self._pvt_ptr[0].numRegs = numRegs             # <<<<<<<<<<<<<<
 *     @property
 *     def ptxVersion(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).numRegs = __pyx_v_numRegs;

  /* "cuda/bindings/runtime.pyx":7426
 *     def numRegs(self):
 *         return self._pvt_ptr[0].numRegs
 *     @numRegs.setter             # <<<<<<<<<<<<<<
 *     def numRegs(self, int numRegs):
 *         self._pvt_ptr[0].numRegs = numRegs
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7429
 *     def numRegs(self, int numRegs):
 *         self._pvt_ptr[0].numRegs = numRegs
 *     @property             # <<<<<<<<<<<<<<
 *     def ptxVersion(self):
 *         return self._pvt_ptr[0].ptxVersion
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7431
 *     @property
 *     def ptxVersion(self):
 *         return self._pvt_ptr[0].ptxVersion             # <<<<<<<<<<<<<<
 *     @ptxVersion.setter
 *     def ptxVersion(self, int ptxVersion):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).ptxVersion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7429
 *     def numRegs(self, int numRegs):
 *         self._pvt_ptr[0].numRegs = numRegs
 *     @property             # <<<<<<<<<<<<<<
 *     def ptxVersion(self):
 *         return self._pvt_ptr[0].ptxVersion
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.ptxVersion.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7432
 *     def ptxVersion(self):
 *         return self._pvt_ptr[0].ptxVersion
 *     @ptxVersion.setter             # <<<<<<<<<<<<<<
 *     def ptxVersion(self, int ptxVersion):
 *         self._pvt_ptr[0].ptxVersion = ptxVersion
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ptxVersion); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ptxVersion) {
  int __pyx_v_ptxVersion;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_ptxVersion); {
    __pyx_v_ptxVersion = __Pyx_PyLong_As_int(__pyx_arg_ptxVersion); if (unlikely((__pyx_v_ptxVersion == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7433, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.ptxVersion.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_ptxVersion));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_ptxVersion) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7434
 *     @ptxVersion.setter
 *     def ptxVersion(self, int ptxVersion):
 *         self._pvt_ptr[0].ptxVersion = ptxVersion             # <<<<<<<<<<<<<<
 *     @property
 *     def binaryVersion(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).ptxVersion = __pyx_v_ptxVersion;

  /* "cuda/bindings/runtime.pyx":7432
 *     def ptxVersion(self):
 *         return self._pvt_ptr[0].ptxVersion
 *     @ptxVersion.setter             # <<<<<<<<<<<<<<
 *     def ptxVersion(self, int ptxVersion):
 *         self._pvt_ptr[0].ptxVersion = ptxVersion
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7435
 *     def ptxVersion(self, int ptxVersion):
 *         self._pvt_ptr[0].ptxVersion = ptxVersion
 *     @property             # <<<<<<<<<<<<<<
 *     def binaryVersion(self):
 *         return self._pvt_ptr[0].binaryVersion
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7437
 *     @property
 *     def binaryVersion(self):
 *         return self._pvt_ptr[0].binaryVersion             # <<<<<<<<<<<<<<
 *     @binaryVersion.setter
 *     def binaryVersion(self, int binaryVersion):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).binaryVersion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7435
 *     def ptxVersion(self, int ptxVersion):
 *         self._pvt_ptr[0].ptxVersion = ptxVersion
 *     @property             # <<<<<<<<<<<<<<
 *     def binaryVersion(self):
 *         return self._pvt_ptr[0].binaryVersion
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.binaryVersion.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7438
 *     def binaryVersion(self):
 *         return self._pvt_ptr[0].binaryVersion
 *     @binaryVersion.setter             # <<<<<<<<<<<<<<
 *     def binaryVersion(self, int binaryVersion):
 *         self._pvt_ptr[0].binaryVersion = binaryVersion
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_binaryVersion); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_binaryVersion) {
  int __pyx_v_binaryVersion;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_binaryVersion); {
    __pyx_v_binaryVersion = __Pyx_PyLong_As_int(__pyx_arg_binaryVersion); if (unlikely((__pyx_v_binaryVersion == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7439, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.binaryVersion.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_binaryVersion));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_binaryVersion) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7440
 *     @binaryVersion.setter
 *     def binaryVersion(self, int binaryVersion):
 *         self._pvt_ptr[0].binaryVersion = binaryVersion             # <<<<<<<<<<<<<<
 *     @property
 *     def cacheModeCA(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).binaryVersion = __pyx_v_binaryVersion;

  /* "cuda/bindings/runtime.pyx":7438
 *     def binaryVersion(self):
 *         return self._pvt_ptr[0].binaryVersion
 *     @binaryVersion.setter             # <<<<<<<<<<<<<<
 *     def binaryVersion(self, int binaryVersion):
 *         self._pvt_ptr[0].binaryVersion = binaryVersion
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7441
 *     def binaryVersion(self, int binaryVersion):
 *         self._pvt_ptr[0].binaryVersion = binaryVersion
 *     @property             # <<<<<<<<<<<<<<
 *     def cacheModeCA(self):
 *         return self._pvt_ptr[0].cacheModeCA
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7443
 *     @property
 *     def cacheModeCA(self):
 *         return self._pvt_ptr[0].cacheModeCA             # <<<<<<<<<<<<<<
 *     @cacheModeCA.setter
 *     def cacheModeCA(self, int cacheModeCA):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).cacheModeCA); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7441
 *     def binaryVersion(self, int binaryVersion):
 *         self._pvt_ptr[0].binaryVersion = binaryVersion
 *     @property             # <<<<<<<<<<<<<<
 *     def cacheModeCA(self):
 *         return self._pvt_ptr[0].cacheModeCA
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.cacheModeCA.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7444
 *     def cacheModeCA(self):
 *         return self._pvt_ptr[0].cacheModeCA
 *     @cacheModeCA.setter             # <<<<<<<<<<<<<<
 *     def cacheModeCA(self, int cacheModeCA):
 *         self._pvt_ptr[0].cacheModeCA = cacheModeCA
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cacheModeCA); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cacheModeCA) {
  int __pyx_v_cacheModeCA;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_cacheModeCA); {
    __pyx_v_cacheModeCA = __Pyx_PyLong_As_int(__pyx_arg_cacheModeCA); if (unlikely((__pyx_v_cacheModeCA == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7445, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.cacheModeCA.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_cacheModeCA));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_cacheModeCA) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7446
 *     @cacheModeCA.setter
 *     def cacheModeCA(self, int cacheModeCA):
 *         self._pvt_ptr[0].cacheModeCA = cacheModeCA             # <<<<<<<<<<<<<<
 *     @property
 *     def maxDynamicSharedSizeBytes(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).cacheModeCA = __pyx_v_cacheModeCA;

  /* "cuda/bindings/runtime.pyx":7444
 *     def cacheModeCA(self):
 *         return self._pvt_ptr[0].cacheModeCA
 *     @cacheModeCA.setter             # <<<<<<<<<<<<<<
 *     def cacheModeCA(self, int cacheModeCA):
 *         self._pvt_ptr[0].cacheModeCA = cacheModeCA
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7447
 *     def cacheModeCA(self, int cacheModeCA):
 *         self._pvt_ptr[0].cacheModeCA = cacheModeCA
 *     @property             # <<<<<<<<<<<<<<
 *     def maxDynamicSharedSizeBytes(self):
 *         return self._pvt_ptr[0].maxDynamicSharedSizeBytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7449
 *     @property
 *     def maxDynamicSharedSizeBytes(self):
 *         return self._pvt_ptr[0].maxDynamicSharedSizeBytes             # <<<<<<<<<<<<<<
 *     @maxDynamicSharedSizeBytes.setter
 *     def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxDynamicSharedSizeBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7447
 *     def cacheModeCA(self, int cacheModeCA):
 *         self._pvt_ptr[0].cacheModeCA = cacheModeCA
 *     @property             # <<<<<<<<<<<<<<
 *     def maxDynamicSharedSizeBytes(self):
 *         return self._pvt_ptr[0].maxDynamicSharedSizeBytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.maxDynamicSharedSizeBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7450
 *     def maxDynamicSharedSizeBytes(self):
 *         return self._pvt_ptr[0].maxDynamicSharedSizeBytes
 *     @maxDynamicSharedSizeBytes.setter             # <<<<<<<<<<<<<<
 *     def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes):
 *         self._pvt_ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxDynamicSharedSizeBytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxDynamicSharedSizeBytes) {
  int __pyx_v_maxDynamicSharedSizeBytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxDynamicSharedSizeBytes); {
    __pyx_v_maxDynamicSharedSizeBytes = __Pyx_PyLong_As_int(__pyx_arg_maxDynamicSharedSizeBytes); if (unlikely((__pyx_v_maxDynamicSharedSizeBytes == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7451, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.maxDynamicSharedSizeBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_maxDynamicSharedSizeBytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_maxDynamicSharedSizeBytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7452
 *     @maxDynamicSharedSizeBytes.setter
 *     def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes):
 *         self._pvt_ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes             # <<<<<<<<<<<<<<
 *     @property
 *     def preferredShmemCarveout(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxDynamicSharedSizeBytes = __pyx_v_maxDynamicSharedSizeBytes;

  /* "cuda/bindings/runtime.pyx":7450
 *     def maxDynamicSharedSizeBytes(self):
 *         return self._pvt_ptr[0].maxDynamicSharedSizeBytes
 *     @maxDynamicSharedSizeBytes.setter             # <<<<<<<<<<<<<<
 *     def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes):
 *         self._pvt_ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7453
 *     def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes):
 *         self._pvt_ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def preferredShmemCarveout(self):
 *         return self._pvt_ptr[0].preferredShmemCarveout
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7455
 *     @property
 *     def preferredShmemCarveout(self):
 *         return self._pvt_ptr[0].preferredShmemCarveout             # <<<<<<<<<<<<<<
 *     @preferredShmemCarveout.setter
 *     def preferredShmemCarveout(self, int preferredShmemCarveout):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).preferredShmemCarveout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7453
 *     def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes):
 *         self._pvt_ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def preferredShmemCarveout(self):
 *         return self._pvt_ptr[0].preferredShmemCarveout
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.preferredShmemCarveout.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7456
 *     def preferredShmemCarveout(self):
 *         return self._pvt_ptr[0].preferredShmemCarveout
 *     @preferredShmemCarveout.setter             # <<<<<<<<<<<<<<
 *     def preferredShmemCarveout(self, int preferredShmemCarveout):
 *         self._pvt_ptr[0].preferredShmemCarveout = preferredShmemCarveout
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_preferredShmemCarveout); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_preferredShmemCarveout) {
  int __pyx_v_preferredShmemCarveout;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_preferredShmemCarveout); {
    __pyx_v_preferredShmemCarveout = __Pyx_PyLong_As_int(__pyx_arg_preferredShmemCarveout); if (unlikely((__pyx_v_preferredShmemCarveout == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7457, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.preferredShmemCarveout.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_preferredShmemCarveout));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_preferredShmemCarveout) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7458
 *     @preferredShmemCarveout.setter
 *     def preferredShmemCarveout(self, int preferredShmemCarveout):
 *         self._pvt_ptr[0].preferredShmemCarveout = preferredShmemCarveout             # <<<<<<<<<<<<<<
 *     @property
 *     def clusterDimMustBeSet(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).preferredShmemCarveout = __pyx_v_preferredShmemCarveout;

  /* "cuda/bindings/runtime.pyx":7456
 *     def preferredShmemCarveout(self):
 *         return self._pvt_ptr[0].preferredShmemCarveout
 *     @preferredShmemCarveout.setter             # <<<<<<<<<<<<<<
 *     def preferredShmemCarveout(self, int preferredShmemCarveout):
 *         self._pvt_ptr[0].preferredShmemCarveout = preferredShmemCarveout
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7459
 *     def preferredShmemCarveout(self, int preferredShmemCarveout):
 *         self._pvt_ptr[0].preferredShmemCarveout = preferredShmemCarveout
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterDimMustBeSet(self):
 *         return self._pvt_ptr[0].clusterDimMustBeSet
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7461
 *     @property
 *     def clusterDimMustBeSet(self):
 *         return self._pvt_ptr[0].clusterDimMustBeSet             # <<<<<<<<<<<<<<
 *     @clusterDimMustBeSet.setter
 *     def clusterDimMustBeSet(self, int clusterDimMustBeSet):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).clusterDimMustBeSet); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7459
 *     def preferredShmemCarveout(self, int preferredShmemCarveout):
 *         self._pvt_ptr[0].preferredShmemCarveout = preferredShmemCarveout
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterDimMustBeSet(self):
 *         return self._pvt_ptr[0].clusterDimMustBeSet
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.clusterDimMustBeSet.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7462
 *     def clusterDimMustBeSet(self):
 *         return self._pvt_ptr[0].clusterDimMustBeSet
 *     @clusterDimMustBeSet.setter             # <<<<<<<<<<<<<<
 *     def clusterDimMustBeSet(self, int clusterDimMustBeSet):
 *         self._pvt_ptr[0].clusterDimMustBeSet = clusterDimMustBeSet
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterDimMustBeSet); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterDimMustBeSet) {
  int __pyx_v_clusterDimMustBeSet;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_clusterDimMustBeSet); {
    __pyx_v_clusterDimMustBeSet = __Pyx_PyLong_As_int(__pyx_arg_clusterDimMustBeSet); if (unlikely((__pyx_v_clusterDimMustBeSet == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7463, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.clusterDimMustBeSet.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_clusterDimMustBeSet));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_clusterDimMustBeSet) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7464
 *     @clusterDimMustBeSet.setter
 *     def clusterDimMustBeSet(self, int clusterDimMustBeSet):
 *         self._pvt_ptr[0].clusterDimMustBeSet = clusterDimMustBeSet             # <<<<<<<<<<<<<<
 *     @property
 *     def requiredClusterWidth(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).clusterDimMustBeSet = __pyx_v_clusterDimMustBeSet;

  /* "cuda/bindings/runtime.pyx":7462
 *     def clusterDimMustBeSet(self):
 *         return self._pvt_ptr[0].clusterDimMustBeSet
 *     @clusterDimMustBeSet.setter             # <<<<<<<<<<<<<<
 *     def clusterDimMustBeSet(self, int clusterDimMustBeSet):
 *         self._pvt_ptr[0].clusterDimMustBeSet = clusterDimMustBeSet
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7465
 *     def clusterDimMustBeSet(self, int clusterDimMustBeSet):
 *         self._pvt_ptr[0].clusterDimMustBeSet = clusterDimMustBeSet
 *     @property             # <<<<<<<<<<<<<<
 *     def requiredClusterWidth(self):
 *         return self._pvt_ptr[0].requiredClusterWidth
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7467
 *     @property
 *     def requiredClusterWidth(self):
 *         return self._pvt_ptr[0].requiredClusterWidth             # <<<<<<<<<<<<<<
 *     @requiredClusterWidth.setter
 *     def requiredClusterWidth(self, int requiredClusterWidth):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).requiredClusterWidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7465
 *     def clusterDimMustBeSet(self, int clusterDimMustBeSet):
 *         self._pvt_ptr[0].clusterDimMustBeSet = clusterDimMustBeSet
 *     @property             # <<<<<<<<<<<<<<
 *     def requiredClusterWidth(self):
 *         return self._pvt_ptr[0].requiredClusterWidth
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.requiredClusterWidth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7468
 *     def requiredClusterWidth(self):
 *         return self._pvt_ptr[0].requiredClusterWidth
 *     @requiredClusterWidth.setter             # <<<<<<<<<<<<<<
 *     def requiredClusterWidth(self, int requiredClusterWidth):
 *         self._pvt_ptr[0].requiredClusterWidth = requiredClusterWidth
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterWidth); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterWidth) {
  int __pyx_v_requiredClusterWidth;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_requiredClusterWidth); {
    __pyx_v_requiredClusterWidth = __Pyx_PyLong_As_int(__pyx_arg_requiredClusterWidth); if (unlikely((__pyx_v_requiredClusterWidth == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7469, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.requiredClusterWidth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_requiredClusterWidth));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterWidth) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7470
 *     @requiredClusterWidth.setter
 *     def requiredClusterWidth(self, int requiredClusterWidth):
 *         self._pvt_ptr[0].requiredClusterWidth = requiredClusterWidth             # <<<<<<<<<<<<<<
 *     @property
 *     def requiredClusterHeight(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).requiredClusterWidth = __pyx_v_requiredClusterWidth;

  /* "cuda/bindings/runtime.pyx":7468
 *     def requiredClusterWidth(self):
 *         return self._pvt_ptr[0].requiredClusterWidth
 *     @requiredClusterWidth.setter             # <<<<<<<<<<<<<<
 *     def requiredClusterWidth(self, int requiredClusterWidth):
 *         self._pvt_ptr[0].requiredClusterWidth = requiredClusterWidth
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7471
 *     def requiredClusterWidth(self, int requiredClusterWidth):
 *         self._pvt_ptr[0].requiredClusterWidth = requiredClusterWidth
 *     @property             # <<<<<<<<<<<<<<
 *     def requiredClusterHeight(self):
 *         return self._pvt_ptr[0].requiredClusterHeight
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7473
 *     @property
 *     def requiredClusterHeight(self):
 *         return self._pvt_ptr[0].requiredClusterHeight             # <<<<<<<<<<<<<<
 *     @requiredClusterHeight.setter
 *     def requiredClusterHeight(self, int requiredClusterHeight):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).requiredClusterHeight); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7471
 *     def requiredClusterWidth(self, int requiredClusterWidth):
 *         self._pvt_ptr[0].requiredClusterWidth = requiredClusterWidth
 *     @property             # <<<<<<<<<<<<<<
 *     def requiredClusterHeight(self):
 *         return self._pvt_ptr[0].requiredClusterHeight
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.requiredClusterHeight.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7474
 *     def requiredClusterHeight(self):
 *         return self._pvt_ptr[0].requiredClusterHeight
 *     @requiredClusterHeight.setter             # <<<<<<<<<<<<<<
 *     def requiredClusterHeight(self, int requiredClusterHeight):
 *         self._pvt_ptr[0].requiredClusterHeight = requiredClusterHeight
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterHeight); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterHeight) {
  int __pyx_v_requiredClusterHeight;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_requiredClusterHeight); {
    __pyx_v_requiredClusterHeight = __Pyx_PyLong_As_int(__pyx_arg_requiredClusterHeight); if (unlikely((__pyx_v_requiredClusterHeight == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7475, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.requiredClusterHeight.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_requiredClusterHeight));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterHeight) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7476
 *     @requiredClusterHeight.setter
 *     def requiredClusterHeight(self, int requiredClusterHeight):
 *         self._pvt_ptr[0].requiredClusterHeight = requiredClusterHeight             # <<<<<<<<<<<<<<
 *     @property
 *     def requiredClusterDepth(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).requiredClusterHeight = __pyx_v_requiredClusterHeight;

  /* "cuda/bindings/runtime.pyx":7474
 *     def requiredClusterHeight(self):
 *         return self._pvt_ptr[0].requiredClusterHeight
 *     @requiredClusterHeight.setter             # <<<<<<<<<<<<<<
 *     def requiredClusterHeight(self, int requiredClusterHeight):
 *         self._pvt_ptr[0].requiredClusterHeight = requiredClusterHeight
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7477
 *     def requiredClusterHeight(self, int requiredClusterHeight):
 *         self._pvt_ptr[0].requiredClusterHeight = requiredClusterHeight
 *     @property             # <<<<<<<<<<<<<<
 *     def requiredClusterDepth(self):
 *         return self._pvt_ptr[0].requiredClusterDepth
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7479
 *     @property
 *     def requiredClusterDepth(self):
 *         return self._pvt_ptr[0].requiredClusterDepth             # <<<<<<<<<<<<<<
 *     @requiredClusterDepth.setter
 *     def requiredClusterDepth(self, int requiredClusterDepth):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).requiredClusterDepth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7477
 *     def requiredClusterHeight(self, int requiredClusterHeight):
 *         self._pvt_ptr[0].requiredClusterHeight = requiredClusterHeight
 *     @property             # <<<<<<<<<<<<<<
 *     def requiredClusterDepth(self):
 *         return self._pvt_ptr[0].requiredClusterDepth
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.requiredClusterDepth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7480
 *     def requiredClusterDepth(self):
 *         return self._pvt_ptr[0].requiredClusterDepth
 *     @requiredClusterDepth.setter             # <<<<<<<<<<<<<<
 *     def requiredClusterDepth(self, int requiredClusterDepth):
 *         self._pvt_ptr[0].requiredClusterDepth = requiredClusterDepth
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterDepth); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_requiredClusterDepth) {
  int __pyx_v_requiredClusterDepth;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_requiredClusterDepth); {
    __pyx_v_requiredClusterDepth = __Pyx_PyLong_As_int(__pyx_arg_requiredClusterDepth); if (unlikely((__pyx_v_requiredClusterDepth == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7481, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.requiredClusterDepth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_requiredClusterDepth));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_requiredClusterDepth) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7482
 *     @requiredClusterDepth.setter
 *     def requiredClusterDepth(self, int requiredClusterDepth):
 *         self._pvt_ptr[0].requiredClusterDepth = requiredClusterDepth             # <<<<<<<<<<<<<<
 *     @property
 *     def clusterSchedulingPolicyPreference(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).requiredClusterDepth = __pyx_v_requiredClusterDepth;

  /* "cuda/bindings/runtime.pyx":7480
 *     def requiredClusterDepth(self):
 *         return self._pvt_ptr[0].requiredClusterDepth
 *     @requiredClusterDepth.setter             # <<<<<<<<<<<<<<
 *     def requiredClusterDepth(self, int requiredClusterDepth):
 *         self._pvt_ptr[0].requiredClusterDepth = requiredClusterDepth
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7483
 *     def requiredClusterDepth(self, int requiredClusterDepth):
 *         self._pvt_ptr[0].requiredClusterDepth = requiredClusterDepth
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterSchedulingPolicyPreference(self):
 *         return self._pvt_ptr[0].clusterSchedulingPolicyPreference
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7485
 *     @property
 *     def clusterSchedulingPolicyPreference(self):
 *         return self._pvt_ptr[0].clusterSchedulingPolicyPreference             # <<<<<<<<<<<<<<
 *     @clusterSchedulingPolicyPreference.setter
 *     def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).clusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7483
 *     def requiredClusterDepth(self, int requiredClusterDepth):
 *         self._pvt_ptr[0].requiredClusterDepth = requiredClusterDepth
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterSchedulingPolicyPreference(self):
 *         return self._pvt_ptr[0].clusterSchedulingPolicyPreference
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.clusterSchedulingPolicyPreference.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7486
 *     def clusterSchedulingPolicyPreference(self):
 *         return self._pvt_ptr[0].clusterSchedulingPolicyPreference
 *     @clusterSchedulingPolicyPreference.setter             # <<<<<<<<<<<<<<
 *     def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterSchedulingPolicyPreference); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterSchedulingPolicyPreference) {
  int __pyx_v_clusterSchedulingPolicyPreference;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_clusterSchedulingPolicyPreference); {
    __pyx_v_clusterSchedulingPolicyPreference = __Pyx_PyLong_As_int(__pyx_arg_clusterSchedulingPolicyPreference); if (unlikely((__pyx_v_clusterSchedulingPolicyPreference == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7487, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.clusterSchedulingPolicyPreference.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_clusterSchedulingPolicyPreference));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_clusterSchedulingPolicyPreference) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7488
 *     @clusterSchedulingPolicyPreference.setter
 *     def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference             # <<<<<<<<<<<<<<
 *     @property
 *     def nonPortableClusterSizeAllowed(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).clusterSchedulingPolicyPreference = __pyx_v_clusterSchedulingPolicyPreference;

  /* "cuda/bindings/runtime.pyx":7486
 *     def clusterSchedulingPolicyPreference(self):
 *         return self._pvt_ptr[0].clusterSchedulingPolicyPreference
 *     @clusterSchedulingPolicyPreference.setter             # <<<<<<<<<<<<<<
 *     def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7489
 *     def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference
 *     @property             # <<<<<<<<<<<<<<
 *     def nonPortableClusterSizeAllowed(self):
 *         return self._pvt_ptr[0].nonPortableClusterSizeAllowed
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7491
 *     @property
 *     def nonPortableClusterSizeAllowed(self):
 *         return self._pvt_ptr[0].nonPortableClusterSizeAllowed             # <<<<<<<<<<<<<<
 *     @nonPortableClusterSizeAllowed.setter
 *     def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).nonPortableClusterSizeAllowed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7489
 *     def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference
 *     @property             # <<<<<<<<<<<<<<
 *     def nonPortableClusterSizeAllowed(self):
 *         return self._pvt_ptr[0].nonPortableClusterSizeAllowed
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.nonPortableClusterSizeAllowed.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7492
 *     def nonPortableClusterSizeAllowed(self):
 *         return self._pvt_ptr[0].nonPortableClusterSizeAllowed
 *     @nonPortableClusterSizeAllowed.setter             # <<<<<<<<<<<<<<
 *     def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed):
 *         self._pvt_ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_nonPortableClusterSizeAllowed); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_nonPortableClusterSizeAllowed) {
  int __pyx_v_nonPortableClusterSizeAllowed;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_nonPortableClusterSizeAllowed); {
    __pyx_v_nonPortableClusterSizeAllowed = __Pyx_PyLong_As_int(__pyx_arg_nonPortableClusterSizeAllowed); if (unlikely((__pyx_v_nonPortableClusterSizeAllowed == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7493, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.nonPortableClusterSizeAllowed.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((int)__pyx_v_nonPortableClusterSizeAllowed));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, int __pyx_v_nonPortableClusterSizeAllowed) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7494
 *     @nonPortableClusterSizeAllowed.setter
 *     def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed):
 *         self._pvt_ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).nonPortableClusterSizeAllowed = __pyx_v_nonPortableClusterSizeAllowed;

  /* "cuda/bindings/runtime.pyx":7492
 *     def nonPortableClusterSizeAllowed(self):
 *         return self._pvt_ptr[0].nonPortableClusterSizeAllowed
 *     @nonPortableClusterSizeAllowed.setter             # <<<<<<<<<<<<<<
 *     def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed):
 *         self._pvt_ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7495
 *     def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed):
 *         self._pvt_ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7497
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7495
 *     def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed):
 *         self._pvt_ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7498
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  int __pyx_t_1[16];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":7500
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemLocation:
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 7500, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (16));

  /* "cuda/bindings/runtime.pyx":7498
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_18cudaFuncAttributes_10__reduce_cython__, "cudaFuncAttributes.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaFuncAttributes_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaFuncAttributes_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_18cudaFuncAttributes_12__setstate_cython__, "cudaFuncAttributes.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaFuncAttributes_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaFuncAttributes_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaFuncAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaFuncAttributes_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7521
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7521, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7521, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7521, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7521, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7521, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7521, __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.runtime.cudaMemLocation.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7522
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7523
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemLocation *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7522
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7525
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemLocation *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemLocation *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7521
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7526
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemLocation *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7526, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7526, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7526, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7526, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7526, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7526, __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.runtime.cudaMemLocation.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7528
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7530
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_7getPtr(PyObject *__pyx_v_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_7runtime_15cudaMemLocation_6getPtr, "cudaMemLocation.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaMemLocation_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaMemLocation_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7531
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7530
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7532
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7533
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7534
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7535
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7536
 *             str_list = []
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7536, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7536, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7536, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7536, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7536, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7536, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7535
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":7537
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7537, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7538
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['id : ' + str(self.id)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7538, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 7538, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7538, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7535
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7539
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7540
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['id : ' + str(self.id)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['id : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_id_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7540, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7540, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_id, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7540, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7540, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7540, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7540, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7539
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7541
 *             try:
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['id : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7541, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7542
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:
 *                 str_list += ['id : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7542, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_id_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_id_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_id_ValueError) != (0)) __PYX_ERR(0, 7542, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7542, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":7539
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7543
 *             except ValueError:
 *                 str_list += ['id : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7543, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7533
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7545
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7532
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7546
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemLocationType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7548
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemLocationType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemLocationType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemLocationType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemLocationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 7548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":7549
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemLocationType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemLocationType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7548
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemLocationType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemLocationType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":7550
 *         if self._pvt_ptr[0].type not in _dict_cudaMemLocationType:
 *             return None
 *         return _dict_cudaMemLocationType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaMemLocationType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemLocationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemLocationType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7546
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemLocationType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7551
 *             return None
 *         return _dict_cudaMemLocationType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaMemLocationType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 7552, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemLocationType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7553
 *     @type.setter
 *     def type(self, type not None : cudaMemLocationType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def id(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemLocationType)__Pyx_PyLong_As_enum__cudaMemLocationType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7553, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":7551
 *             return None
 *         return _dict_cudaMemLocationType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaMemLocationType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7554
 *     def type(self, type not None : cudaMemLocationType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def id(self):
 *         return self._pvt_ptr[0].id
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_2id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_2id_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2id___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2id___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7556
 *     @property
 *     def id(self):
 *         return self._pvt_ptr[0].id             # <<<<<<<<<<<<<<
 *     @id.setter
 *     def id(self, int id):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7554
 *     def type(self, type not None : cudaMemLocationType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def id(self):
 *         return self._pvt_ptr[0].id
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7557
 *     def id(self):
 *         return self._pvt_ptr[0].id
 *     @id.setter             # <<<<<<<<<<<<<<
 *     def id(self, int id):
 *         self._pvt_ptr[0].id = id
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_2id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_id); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_2id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_id) {
  int __pyx_v_id;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_id); {
    __pyx_v_id = __Pyx_PyLong_As_int(__pyx_arg_id); if (unlikely((__pyx_v_id == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7558, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2id_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self), ((int)__pyx_v_id));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_2id_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, int __pyx_v_id) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7559
 *     @id.setter
 *     def id(self, int id):
 *         self._pvt_ptr[0].id = id             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemAccessDesc:
*/
  (__pyx_v_self->_pvt_ptr[0]).id = __pyx_v_id;

  /* "cuda/bindings/runtime.pyx":7557
 *     def id(self):
 *         return self._pvt_ptr[0].id
 *     @id.setter             # <<<<<<<<<<<<<<
 *     def id(self, int id):
 *         self._pvt_ptr[0].id = id
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_15cudaMemLocation_10__reduce_cython__, "cudaMemLocation.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaMemLocation_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaMemLocation_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_15cudaMemLocation_12__setstate_cython__, "cudaMemLocation.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaMemLocation_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaMemLocation_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemLocation.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaMemLocation_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemLocation.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7577
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7577, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7577, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7577, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7577, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7577, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7577, __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.runtime.cudaMemAccessDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7578
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7579
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAccessDesc *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7578
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7581
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAccessDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemAccessDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7577
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7582
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAccessDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._location = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].location)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7582, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7582, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7582, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7582, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7582, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7582, __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.runtime.cudaMemAccessDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":7584
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._location = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].location)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).location))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 7584, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7584, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_location);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_location);
  __pyx_v_self->_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7582
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAccessDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._location = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].location)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7585
 *         pass
 *         self._location = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].location)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7587
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_7getPtr(PyObject *__pyx_v_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_7runtime_17cudaMemAccessDesc_6getPtr, "cudaMemAccessDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaMemAccessDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemAccessDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7588
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7587
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7589
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr110__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7590
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7591
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7592
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7593
 *             str_list = []
 *             try:
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7593, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_location_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7593, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7593, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7593, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7593, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7593, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr110__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr110__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7593, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 7593, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr110__pyx_v_line); __pyx_10genexpr110__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr110__pyx_v_line); __pyx_10genexpr110__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7593, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_location, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7593, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7593, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7593, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7593, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7592
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7594
 *             try:
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['location : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 7594, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7595
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7595, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_location_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_location_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_location_ValueError) != (0)) __PYX_ERR(0, 7595, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7595, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7592
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7596
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7597
 *                 str_list += ['location : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7597, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7597, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7597, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7597, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 7597, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7597, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":7596
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7598
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 7598, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7599
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7599, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 7599, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7599, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":7596
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7600
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7600, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7590
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7602
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def location(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7589
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr110__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7603
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def location(self):
 *         return self._location
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7605
 *     @property
 *     def location(self):
 *         return self._location             # <<<<<<<<<<<<<<
 *     @location.setter
 *     def location(self, location not None : cudaMemLocation):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_location);
  __pyx_r = ((PyObject *)__pyx_v_self->_location);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7603
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def location(self):
 *         return self._location
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7606
 *     def location(self):
 *         return self._location
 *     @location.setter             # <<<<<<<<<<<<<<
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_location); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_location) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 0, "location", 0))) __PYX_ERR(0, 7607, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_location));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7608
 *     @location.setter
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_location);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7608, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7608, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).location), ((struct cudaMemLocation *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).location))));

  /* "cuda/bindings/runtime.pyx":7606
 *     def location(self):
 *         return self._location
 *     @location.setter             # <<<<<<<<<<<<<<
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.location.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7609
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         if self._pvt_ptr[0].flags not in _dict_cudaMemAccessFlags:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7611
 *     @property
 *     def flags(self):
 *         if self._pvt_ptr[0].flags not in _dict_cudaMemAccessFlags:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemAccessFlags[self._pvt_ptr[0].flags]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemAccessFlags((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAccessFlags); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 7611, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":7612
 *     def flags(self):
 *         if self._pvt_ptr[0].flags not in _dict_cudaMemAccessFlags:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemAccessFlags[self._pvt_ptr[0].flags]
 *     @flags.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7611
 *     @property
 *     def flags(self):
 *         if self._pvt_ptr[0].flags not in _dict_cudaMemAccessFlags:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemAccessFlags[self._pvt_ptr[0].flags]
*/
  }

  /* "cuda/bindings/runtime.pyx":7613
 *         if self._pvt_ptr[0].flags not in _dict_cudaMemAccessFlags:
 *             return None
 *         return _dict_cudaMemAccessFlags[self._pvt_ptr[0].flags]             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, flags not None : cudaMemAccessFlags):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAccessFlags); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemAccessFlags((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7609
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         if self._pvt_ptr[0].flags not in _dict_cudaMemAccessFlags:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7614
 *             return None
 *         return _dict_cudaMemAccessFlags[self._pvt_ptr[0].flags]
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, flags not None : cudaMemAccessFlags):
 *         self._pvt_ptr[0].flags = flags.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_flags) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_flags) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "flags"); __PYX_ERR(0, 7615, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self), ((PyObject *)__pyx_v_flags));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, PyObject *__pyx_v_flags) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemAccessFlags __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7616
 *     @flags.setter
 *     def flags(self, flags not None : cudaMemAccessFlags):
 *         self._pvt_ptr[0].flags = flags.value             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemPoolProps:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_flags, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemAccessFlags)__Pyx_PyLong_As_enum__cudaMemAccessFlags(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7616, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":7614
 *             return None
 *         return _dict_cudaMemAccessFlags[self._pvt_ptr[0].flags]
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, flags not None : cudaMemAccessFlags):
 *         self._pvt_ptr[0].flags = flags.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_17cudaMemAccessDesc_10__reduce_cython__, "cudaMemAccessDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaMemAccessDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemAccessDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_17cudaMemAccessDesc_12__setstate_cython__, "cudaMemAccessDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaMemAccessDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemAccessDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemAccessDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaMemAccessDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAccessDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7650
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7650, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7650, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7650, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7650, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7650, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7650, __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.runtime.cudaMemPoolProps.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7651
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7652
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemPoolProps *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7651
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7654
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemPoolProps *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemPoolProps *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7650
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7655
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemPoolProps *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._location = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].location)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7655, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7655, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7655, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7655, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7655, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7655, __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.runtime.cudaMemPoolProps.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":7657
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._location = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].location)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).location))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 7657, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7657, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_location);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_location);
  __pyx_v_self->_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7655
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemPoolProps *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._location = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].location)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7658
 *         pass
 *         self._location = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].location)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7660
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7getPtr(PyObject *__pyx_v_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_7runtime_16cudaMemPoolProps_6getPtr, "cudaMemPoolProps.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaMemPoolProps_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemPoolProps_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7661
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7660
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7662
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr111__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7663
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7664
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['allocType : ' + str(self.allocType)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7665
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['allocType : ' + str(self.allocType)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7666
 *             str_list = []
 *             try:
 *                 str_list += ['allocType : ' + str(self.allocType)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['allocType : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_allocType_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7666, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7666, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_allocType, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7666, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7666, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7666, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7666, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7665
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['allocType : ' + str(self.allocType)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":7667
 *             try:
 *                 str_list += ['allocType : ' + str(self.allocType)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['allocType : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7667, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7668
 *                 str_list += ['allocType : ' + str(self.allocType)]
 *             except ValueError:
 *                 str_list += ['allocType : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['handleTypes : ' + str(self.handleTypes)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7668, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_allocType_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_allocType_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_allocType_ValueError) != (0)) __PYX_ERR(0, 7668, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7668, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7665
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['allocType : ' + str(self.allocType)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7669
 *             except ValueError:
 *                 str_list += ['allocType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handleTypes : ' + str(self.handleTypes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7670
 *                 str_list += ['allocType : <ValueError>']
 *             try:
 *                 str_list += ['handleTypes : ' + str(self.handleTypes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['handleTypes : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_handleTypes_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7670, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7670, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_handleTypes, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7670, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7670, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 7670, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7670, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":7669
 *             except ValueError:
 *                 str_list += ['allocType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handleTypes : ' + str(self.handleTypes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7671
 *             try:
 *                 str_list += ['handleTypes : ' + str(self.handleTypes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['handleTypes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 7671, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7672
 *                 str_list += ['handleTypes : ' + str(self.handleTypes)]
 *             except ValueError:
 *                 str_list += ['handleTypes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7672, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_handleTypes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_handleTypes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_handleTypes_ValueError) != (0)) __PYX_ERR(0, 7672, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7672, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":7669
 *             except ValueError:
 *                 str_list += ['allocType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handleTypes : ' + str(self.handleTypes)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7673
 *             except ValueError:
 *                 str_list += ['handleTypes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7674
 *                 str_list += ['handleTypes : <ValueError>']
 *             try:
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7674, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_location_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7674, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7674, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7674, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_6; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7674, __pyx_L28_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7674, __pyx_L28_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr111__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr111__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7674, __pyx_L28_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 7674, __pyx_L28_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr111__pyx_v_line); __pyx_10genexpr111__pyx_v_line = 0;
          goto __pyx_L32_exit_scope;
          __pyx_L28_error:;
          __Pyx_XDECREF(__pyx_10genexpr111__pyx_v_line); __pyx_10genexpr111__pyx_v_line = 0;
          goto __pyx_L20_error;
          __pyx_L32_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7674, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_location, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7674, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7674, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7674, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7674, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7673
 *             except ValueError:
 *                 str_list += ['handleTypes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7675
 *             try:
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['location : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 7675, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7676
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7676, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_location_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_location_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_location_ValueError) != (0)) __PYX_ERR(0, 7676, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7676, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":7673
 *             except ValueError:
 *                 str_list += ['handleTypes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['location :\n' + '\n'.join(['    ' + line for line in str(self.location).splitlines()])]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7677
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7678
 *                 str_list += ['location : <ValueError>']
 *             try:
 *                 str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['win32SecurityAttributes : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_win32SecurityAttributes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7678, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7678, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_win32SecurityAttributes, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7678, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7678, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 7678, __pyx_L35_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7678, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":7677
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7679
 *             try:
 *                 str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32SecurityAttributes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 7679, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7680
 *                 str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)]
 *             except ValueError:
 *                 str_list += ['win32SecurityAttributes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxSize : ' + str(self.maxSize)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7680, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_win32SecurityAttributes_ValueErr);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_win32SecurityAttributes_ValueErr);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_win32SecurityAttributes_ValueErr) != (0)) __PYX_ERR(0, 7680, __pyx_L37_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7680, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":7677
 *             except ValueError:
 *                 str_list += ['location : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7681
 *             except ValueError:
 *                 str_list += ['win32SecurityAttributes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSize : ' + str(self.maxSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7682
 *                 str_list += ['win32SecurityAttributes : <ValueError>']
 *             try:
 *                 str_list += ['maxSize : ' + str(self.maxSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxSize : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxSize_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7682, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7682, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxSize, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7682, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7682, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7682, __pyx_L43_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7682, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7681
 *             except ValueError:
 *                 str_list += ['win32SecurityAttributes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSize : ' + str(self.maxSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7683
 *             try:
 *                 str_list += ['maxSize : ' + str(self.maxSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSize : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 7683, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7684
 *                 str_list += ['maxSize : ' + str(self.maxSize)]
 *             except ValueError:
 *                 str_list += ['maxSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['usage : ' + str(self.usage)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7684, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_maxSize_ValueError) != (0)) __PYX_ERR(0, 7684, __pyx_L45_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7684, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":7681
 *             except ValueError:
 *                 str_list += ['win32SecurityAttributes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSize : ' + str(self.maxSize)]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7685
 *             except ValueError:
 *                 str_list += ['maxSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['usage : ' + str(self.usage)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7686
 *                 str_list += ['maxSize : <ValueError>']
 *             try:
 *                 str_list += ['usage : ' + str(self.usage)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['usage : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_usage_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7686, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7686, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_usage, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7686, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7686, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 7686, __pyx_L51_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7686, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":7685
 *             except ValueError:
 *                 str_list += ['maxSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['usage : ' + str(self.usage)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L56_try_end;
      __pyx_L51_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7687
 *             try:
 *                 str_list += ['usage : ' + str(self.usage)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['usage : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 7687, __pyx_L53_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7688
 *                 str_list += ['usage : ' + str(self.usage)]
 *             except ValueError:
 *                 str_list += ['usage : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7688, __pyx_L53_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_usage_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_usage_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_usage_ValueError) != (0)) __PYX_ERR(0, 7688, __pyx_L53_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7688, __pyx_L53_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L52_exception_handled;
      }
      goto __pyx_L53_except_error;

      /* "cuda/bindings/runtime.pyx":7685
 *             except ValueError:
 *                 str_list += ['maxSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['usage : ' + str(self.usage)]
 *             except ValueError:
*/
      __pyx_L53_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L52_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L56_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7689
 *             except ValueError:
 *                 str_list += ['usage : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7690
 *                 str_list += ['usage : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7690, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7690, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7690, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7690, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7690, __pyx_L59_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7690, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7689
 *             except ValueError:
 *                 str_list += ['usage : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L64_try_end;
      __pyx_L59_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":7691
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 7691, __pyx_L61_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7692
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7692, __pyx_L61_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 7692, __pyx_L61_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7692, __pyx_L61_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L60_exception_handled;
      }
      goto __pyx_L61_except_error;

      /* "cuda/bindings/runtime.pyx":7689
 *             except ValueError:
 *                 str_list += ['usage : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L61_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L60_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L64_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7693
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7693, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7663
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7695
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def allocType(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7662
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr111__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7696
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def allocType(self):
 *         if self._pvt_ptr[0].allocType not in _dict_cudaMemAllocationType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7698
 *     @property
 *     def allocType(self):
 *         if self._pvt_ptr[0].allocType not in _dict_cudaMemAllocationType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemAllocationType[self._pvt_ptr[0].allocType]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemAllocationType((__pyx_v_self->_pvt_ptr[0]).allocType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAllocationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 7698, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":7699
 *     def allocType(self):
 *         if self._pvt_ptr[0].allocType not in _dict_cudaMemAllocationType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemAllocationType[self._pvt_ptr[0].allocType]
 *     @allocType.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7698
 *     @property
 *     def allocType(self):
 *         if self._pvt_ptr[0].allocType not in _dict_cudaMemAllocationType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemAllocationType[self._pvt_ptr[0].allocType]
*/
  }

  /* "cuda/bindings/runtime.pyx":7700
 *         if self._pvt_ptr[0].allocType not in _dict_cudaMemAllocationType:
 *             return None
 *         return _dict_cudaMemAllocationType[self._pvt_ptr[0].allocType]             # <<<<<<<<<<<<<<
 *     @allocType.setter
 *     def allocType(self, allocType not None : cudaMemAllocationType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAllocationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemAllocationType((__pyx_v_self->_pvt_ptr[0]).allocType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7696
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def allocType(self):
 *         if self._pvt_ptr[0].allocType not in _dict_cudaMemAllocationType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.allocType.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7701
 *             return None
 *         return _dict_cudaMemAllocationType[self._pvt_ptr[0].allocType]
 *     @allocType.setter             # <<<<<<<<<<<<<<
 *     def allocType(self, allocType not None : cudaMemAllocationType):
 *         self._pvt_ptr[0].allocType = allocType.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_allocType); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_allocType) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_allocType) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "allocType"); __PYX_ERR(0, 7702, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), ((PyObject *)__pyx_v_allocType));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_allocType) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemAllocationType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7703
 *     @allocType.setter
 *     def allocType(self, allocType not None : cudaMemAllocationType):
 *         self._pvt_ptr[0].allocType = allocType.value             # <<<<<<<<<<<<<<
 *     @property
 *     def handleTypes(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_allocType, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemAllocationType)__Pyx_PyLong_As_enum__cudaMemAllocationType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7703, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).allocType = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":7701
 *             return None
 *         return _dict_cudaMemAllocationType[self._pvt_ptr[0].allocType]
 *     @allocType.setter             # <<<<<<<<<<<<<<
 *     def allocType(self, allocType not None : cudaMemAllocationType):
 *         self._pvt_ptr[0].allocType = allocType.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.allocType.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7704
 *     def allocType(self, allocType not None : cudaMemAllocationType):
 *         self._pvt_ptr[0].allocType = allocType.value
 *     @property             # <<<<<<<<<<<<<<
 *     def handleTypes(self):
 *         if self._pvt_ptr[0].handleTypes not in _dict_cudaMemAllocationHandleType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7706
 *     @property
 *     def handleTypes(self):
 *         if self._pvt_ptr[0].handleTypes not in _dict_cudaMemAllocationHandleType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemAllocationHandleType[self._pvt_ptr[0].handleTypes]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemAllocationHandleType((__pyx_v_self->_pvt_ptr[0]).handleTypes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAllocationHandleTyp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 7706, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":7707
 *     def handleTypes(self):
 *         if self._pvt_ptr[0].handleTypes not in _dict_cudaMemAllocationHandleType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemAllocationHandleType[self._pvt_ptr[0].handleTypes]
 *     @handleTypes.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7706
 *     @property
 *     def handleTypes(self):
 *         if self._pvt_ptr[0].handleTypes not in _dict_cudaMemAllocationHandleType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemAllocationHandleType[self._pvt_ptr[0].handleTypes]
*/
  }

  /* "cuda/bindings/runtime.pyx":7708
 *         if self._pvt_ptr[0].handleTypes not in _dict_cudaMemAllocationHandleType:
 *             return None
 *         return _dict_cudaMemAllocationHandleType[self._pvt_ptr[0].handleTypes]             # <<<<<<<<<<<<<<
 *     @handleTypes.setter
 *     def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAllocationHandleTyp); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemAllocationHandleType((__pyx_v_self->_pvt_ptr[0]).handleTypes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7704
 *     def allocType(self, allocType not None : cudaMemAllocationType):
 *         self._pvt_ptr[0].allocType = allocType.value
 *     @property             # <<<<<<<<<<<<<<
 *     def handleTypes(self):
 *         if self._pvt_ptr[0].handleTypes not in _dict_cudaMemAllocationHandleType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.handleTypes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7709
 *             return None
 *         return _dict_cudaMemAllocationHandleType[self._pvt_ptr[0].handleTypes]
 *     @handleTypes.setter             # <<<<<<<<<<<<<<
 *     def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType):
 *         self._pvt_ptr[0].handleTypes = handleTypes.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handleTypes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handleTypes) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_handleTypes) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "handleTypes"); __PYX_ERR(0, 7710, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), ((PyObject *)__pyx_v_handleTypes));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_handleTypes) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemAllocationHandleType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7711
 *     @handleTypes.setter
 *     def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType):
 *         self._pvt_ptr[0].handleTypes = handleTypes.value             # <<<<<<<<<<<<<<
 *     @property
 *     def location(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_handleTypes, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemAllocationHandleType)__Pyx_PyLong_As_enum__cudaMemAllocationHandleType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 7711, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).handleTypes = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":7709
 *             return None
 *         return _dict_cudaMemAllocationHandleType[self._pvt_ptr[0].handleTypes]
 *     @handleTypes.setter             # <<<<<<<<<<<<<<
 *     def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType):
 *         self._pvt_ptr[0].handleTypes = handleTypes.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.handleTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7712
 *     def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType):
 *         self._pvt_ptr[0].handleTypes = handleTypes.value
 *     @property             # <<<<<<<<<<<<<<
 *     def location(self):
 *         return self._location
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7714
 *     @property
 *     def location(self):
 *         return self._location             # <<<<<<<<<<<<<<
 *     @location.setter
 *     def location(self, location not None : cudaMemLocation):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_location);
  __pyx_r = ((PyObject *)__pyx_v_self->_location);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7712
 *     def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType):
 *         self._pvt_ptr[0].handleTypes = handleTypes.value
 *     @property             # <<<<<<<<<<<<<<
 *     def location(self):
 *         return self._location
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7715
 *     def location(self):
 *         return self._location
 *     @location.setter             # <<<<<<<<<<<<<<
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_location); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_location) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 0, "location", 0))) __PYX_ERR(0, 7716, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_location));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7717
 *     @location.setter
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))             # <<<<<<<<<<<<<<
 *     @property
 *     def win32SecurityAttributes(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_location);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).location), ((struct cudaMemLocation *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).location))));

  /* "cuda/bindings/runtime.pyx":7715
 *     def location(self):
 *         return self._location
 *     @location.setter             # <<<<<<<<<<<<<<
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.location.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7718
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))
 *     @property             # <<<<<<<<<<<<<<
 *     def win32SecurityAttributes(self):
 *         return <void_ptr>self._pvt_ptr[0].win32SecurityAttributes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7720
 *     @property
 *     def win32SecurityAttributes(self):
 *         return <void_ptr>self._pvt_ptr[0].win32SecurityAttributes             # <<<<<<<<<<<<<<
 *     @win32SecurityAttributes.setter
 *     def win32SecurityAttributes(self, win32SecurityAttributes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).win32SecurityAttributes)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7718
 *     def location(self, location not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].location, <cyruntime.cudaMemLocation*><void_ptr>location.getPtr(), sizeof(self._pvt_ptr[0].location))
 *     @property             # <<<<<<<<<<<<<<
 *     def win32SecurityAttributes(self):
 *         return <void_ptr>self._pvt_ptr[0].win32SecurityAttributes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.win32SecurityAttributes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7721
 *     def win32SecurityAttributes(self):
 *         return <void_ptr>self._pvt_ptr[0].win32SecurityAttributes
 *     @win32SecurityAttributes.setter             # <<<<<<<<<<<<<<
 *     def win32SecurityAttributes(self, win32SecurityAttributes):
 *         _cwin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32SecurityAttributes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32SecurityAttributes) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), ((PyObject *)__pyx_v_win32SecurityAttributes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_win32SecurityAttributes) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cwin32SecurityAttributes = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7723
 *     @win32SecurityAttributes.setter
 *     def win32SecurityAttributes(self, win32SecurityAttributes):
 *         _cwin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].win32SecurityAttributes = <void*><void_ptr>_cwin32SecurityAttributes.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_win32SecurityAttributes};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7723, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cwin32SecurityAttributes = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7724
 *     def win32SecurityAttributes(self, win32SecurityAttributes):
 *         _cwin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes)
 *         self._pvt_ptr[0].win32SecurityAttributes = <void*><void_ptr>_cwin32SecurityAttributes.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def maxSize(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cwin32SecurityAttributes), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7724, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7724, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).win32SecurityAttributes = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":7721
 *     def win32SecurityAttributes(self):
 *         return <void_ptr>self._pvt_ptr[0].win32SecurityAttributes
 *     @win32SecurityAttributes.setter             # <<<<<<<<<<<<<<
 *     def win32SecurityAttributes(self, win32SecurityAttributes):
 *         _cwin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.win32SecurityAttributes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cwin32SecurityAttributes);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7725
 *         _cwin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes)
 *         self._pvt_ptr[0].win32SecurityAttributes = <void*><void_ptr>_cwin32SecurityAttributes.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSize(self):
 *         return self._pvt_ptr[0].maxSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7727
 *     @property
 *     def maxSize(self):
 *         return self._pvt_ptr[0].maxSize             # <<<<<<<<<<<<<<
 *     @maxSize.setter
 *     def maxSize(self, size_t maxSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).maxSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7725
 *         _cwin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes)
 *         self._pvt_ptr[0].win32SecurityAttributes = <void*><void_ptr>_cwin32SecurityAttributes.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSize(self):
 *         return self._pvt_ptr[0].maxSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.maxSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7728
 *     def maxSize(self):
 *         return self._pvt_ptr[0].maxSize
 *     @maxSize.setter             # <<<<<<<<<<<<<<
 *     def maxSize(self, size_t maxSize):
 *         self._pvt_ptr[0].maxSize = maxSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSize) {
  size_t __pyx_v_maxSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxSize); {
    __pyx_v_maxSize = __Pyx_PyLong_As_size_t(__pyx_arg_maxSize); if (unlikely((__pyx_v_maxSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7729, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.maxSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), ((size_t)__pyx_v_maxSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, size_t __pyx_v_maxSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7730
 *     @maxSize.setter
 *     def maxSize(self, size_t maxSize):
 *         self._pvt_ptr[0].maxSize = maxSize             # <<<<<<<<<<<<<<
 *     @property
 *     def usage(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxSize = __pyx_v_maxSize;

  /* "cuda/bindings/runtime.pyx":7728
 *     def maxSize(self):
 *         return self._pvt_ptr[0].maxSize
 *     @maxSize.setter             # <<<<<<<<<<<<<<
 *     def maxSize(self, size_t maxSize):
 *         self._pvt_ptr[0].maxSize = maxSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7731
 *     def maxSize(self, size_t maxSize):
 *         self._pvt_ptr[0].maxSize = maxSize
 *     @property             # <<<<<<<<<<<<<<
 *     def usage(self):
 *         return self._pvt_ptr[0].usage
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7733
 *     @property
 *     def usage(self):
 *         return self._pvt_ptr[0].usage             # <<<<<<<<<<<<<<
 *     @usage.setter
 *     def usage(self, unsigned short usage):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_short((__pyx_v_self->_pvt_ptr[0]).usage); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7731
 *     def maxSize(self, size_t maxSize):
 *         self._pvt_ptr[0].maxSize = maxSize
 *     @property             # <<<<<<<<<<<<<<
 *     def usage(self):
 *         return self._pvt_ptr[0].usage
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.usage.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7734
 *     def usage(self):
 *         return self._pvt_ptr[0].usage
 *     @usage.setter             # <<<<<<<<<<<<<<
 *     def usage(self, unsigned short usage):
 *         self._pvt_ptr[0].usage = usage
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_usage); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_usage) {
  unsigned short __pyx_v_usage;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_usage); {
    __pyx_v_usage = __Pyx_PyLong_As_unsigned_short(__pyx_arg_usage); if (unlikely((__pyx_v_usage == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(0, 7735, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.usage.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), ((unsigned short)__pyx_v_usage));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, unsigned short __pyx_v_usage) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7736
 *     @usage.setter
 *     def usage(self, unsigned short usage):
 *         self._pvt_ptr[0].usage = usage             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).usage = __pyx_v_usage;

  /* "cuda/bindings/runtime.pyx":7734
 *     def usage(self):
 *         return self._pvt_ptr[0].usage
 *     @usage.setter             # <<<<<<<<<<<<<<
 *     def usage(self, unsigned short usage):
 *         self._pvt_ptr[0].usage = usage
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7737
 *     def usage(self, unsigned short usage):
 *         self._pvt_ptr[0].usage = usage
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 54)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7739
 *     @property
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 54)             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_pvt_ptr[0]).reserved), 54); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7739, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7737
 *     def usage(self, unsigned short usage):
 *         self._pvt_ptr[0].usage = usage
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 54)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7740
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 54)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 54:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, PyObject *__pyx_v_reserved) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  unsigned char __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7742
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 54:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 54, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7742, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 54);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":7743
 *     def reserved(self, reserved):
 *         if len(reserved) != 54:
 *             raise ValueError("reserved length must be 54, is " + str(len(reserved)))             # <<<<<<<<<<<<<<
 *         for i, b in enumerate(reserved):
 *             self._pvt_ptr[0].reserved[i] = b
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7743, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_54_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7743, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 7743, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":7742
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 54:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 54, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
*/
  }

  /* "cuda/bindings/runtime.pyx":7744
 *         if len(reserved) != 54:
 *             raise ValueError("reserved length must be 54, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].reserved[i] = b
 * 
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
    __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_1 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7744, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7744, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_5))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7744, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7744, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7744, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_5);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 7744, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7744, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":7745
 *             raise ValueError("reserved length must be 54, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
 *             self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemPoolPtrExportData:
*/
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_9 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 7745, __pyx_L1_error)
    __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7745, __pyx_L1_error)
    ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_10]) = __pyx_t_9;

    /* "cuda/bindings/runtime.pyx":7744
 *         if len(reserved) != 54:
 *             raise ValueError("reserved length must be 54, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].reserved[i] = b
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":7740
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 54)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 54:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_16cudaMemPoolProps_10__reduce_cython__, "cudaMemPoolProps.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaMemPoolProps_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemPoolProps_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_16cudaMemPoolProps_12__setstate_cython__, "cudaMemPoolProps.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16cudaMemPoolProps_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemPoolProps_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemPoolProps.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaMemPoolProps_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolProps.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7761
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7761, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7761, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7761, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7761, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7761, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7761, __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.runtime.cudaMemPoolPtrExportData.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7762
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7763
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemPoolPtrExportData *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7762
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7765
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemPoolPtrExportData *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemPoolPtrExportData *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7761
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7766
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemPoolPtrExportData *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7766, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7766, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7766, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7766, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7766, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7766, __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.runtime.cudaMemPoolPtrExportData.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7768
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7770
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_7getPtr(PyObject *__pyx_v_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_7runtime_24cudaMemPoolPtrExportData_6getPtr, "cudaMemPoolPtrExportData.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7771
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7770
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolPtrExportData.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7772
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7773
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7774
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7775
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7776
 *             str_list = []
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7776, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7776, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7776, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7776, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7776, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7776, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7775
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":7777
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolPtrExportData.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 7777, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":7778
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7778, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 7778, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7778, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7775
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7779
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7779, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7773
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7781
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7772
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolPtrExportData.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7782
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 64)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7784
 *     @property
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 64)             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_pvt_ptr[0]).reserved), 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7782
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 64)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolPtrExportData.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7785
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 64)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self, PyObject *__pyx_v_reserved) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  unsigned char __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7787
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7787, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 64);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":7788
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))             # <<<<<<<<<<<<<<
 *         for i, b in enumerate(reserved):
 *             self._pvt_ptr[0].reserved[i] = b
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7788, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7788, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7788, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_64_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7788, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7788, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 7788, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":7787
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
*/
  }

  /* "cuda/bindings/runtime.pyx":7789
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].reserved[i] = b
 * 
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
    __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_1 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 7789, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_5))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7789, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7789, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7789, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_5);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 7789, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":7790
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
 *             self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemAllocNodeParams:
*/
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_9 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 7790, __pyx_L1_error)
    __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7790, __pyx_L1_error)
    ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_10]) = __pyx_t_9;

    /* "cuda/bindings/runtime.pyx":7789
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].reserved[i] = b
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":7785
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 64)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolPtrExportData.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_24cudaMemPoolPtrExportData_10__reduce_cython__, "cudaMemPoolPtrExportData.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolPtrExportData.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_24cudaMemPoolPtrExportData_12__setstate_cython__, "cudaMemPoolPtrExportData.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemPoolPtrExportData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolPtrExportData.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7818
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7818, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7818, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7818, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7818, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7818, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7818, __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.runtime.cudaMemAllocNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7819
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7820
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAllocNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7819
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7822
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAllocNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemAllocNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7818
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7823
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAllocNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7823, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7823, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7823, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7823, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7823, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7823, __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.runtime.cudaMemAllocNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":7825
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).poolProps))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 7825, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7825, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_poolProps);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_poolProps);
  __pyx_v_self->_poolProps = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7823
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAllocNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7826
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._accessDescs is not NULL:
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7828
 *     def __dealloc__(self):
 *         pass
 *         if self._accessDescs is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._accessDescs)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_accessDescs != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7829
 *         pass
 *         if self._accessDescs is not NULL:
 *             free(self._accessDescs)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_accessDescs);

    /* "cuda/bindings/runtime.pyx":7828
 *     def __dealloc__(self):
 *         pass
 *         if self._accessDescs is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._accessDescs)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":7826
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._accessDescs is not NULL:
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7830
 *         if self._accessDescs is not NULL:
 *             free(self._accessDescs)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_22cudaMemAllocNodeParams_6getPtr, "cudaMemAllocNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7831
 *             free(self._accessDescs)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7830
 *         if self._accessDescs is not NULL:
 *             free(self._accessDescs)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7832
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr112__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7833
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7834
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7834, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7835
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7836
 *             str_list = []
 *             try:
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7836, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_poolProps_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7836, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7836, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7836, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7836, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7836, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr112__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr112__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7836, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 7836, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_line); __pyx_10genexpr112__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_line); __pyx_10genexpr112__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7836, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_poolProps, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7836, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7836, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7836, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7836, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7835
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7837
 *             try:
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['poolProps : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 7837, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7838
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7838, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_poolProps_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_poolProps_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_poolProps_ValueError) != (0)) __PYX_ERR(0, 7838, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7838, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7835
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7839
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7840
 *                 str_list += ['poolProps : <ValueError>']
 *             try:
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_accessDescs_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7840, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7840, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_accessDescs, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7840, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7840, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 7840, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7840, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":7839
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7841
 *             try:
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 7841, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7842
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7842, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_accessDescs_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_accessDescs_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_accessDescs_ValueError) != (0)) __PYX_ERR(0, 7842, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7842, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":7839
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7843
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7844
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_accessDescCount_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7844, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7844, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_accessDescCount, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7844, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7844, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7844, __pyx_L27_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7844, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7843
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7845
 *             try:
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 7845, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7846
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7846, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_accessDescCount_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_accessDescCount_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_accessDescCount_ValueError) != (0)) __PYX_ERR(0, 7846, __pyx_L29_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7846, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":7843
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7847
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7848
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:
 *                 str_list += ['bytesize : ' + str(self.bytesize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_bytesize_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7848, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7848, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_bytesize, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7848, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7848, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 7848, __pyx_L35_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7848, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":7847
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7849
 *             try:
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesize : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 7849, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7850
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7850, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_bytesize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_bytesize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_bytesize_ValueError) != (0)) __PYX_ERR(0, 7850, __pyx_L37_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7850, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":7847
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7851
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7852
 *                 str_list += ['bytesize : <ValueError>']
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dptr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7852, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7852, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_dptr, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7852, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7852, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7852, __pyx_L43_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7852, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7851
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7853
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 7853, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7854
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7854, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dptr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dptr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_dptr_ValueError) != (0)) __PYX_ERR(0, 7854, __pyx_L45_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7854, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":7851
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7855
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7833
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7857
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def poolProps(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7832
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr112__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7858
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def poolProps(self):
 *         return self._poolProps
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7860
 *     @property
 *     def poolProps(self):
 *         return self._poolProps             # <<<<<<<<<<<<<<
 *     @poolProps.setter
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_poolProps);
  __pyx_r = ((PyObject *)__pyx_v_self->_poolProps);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7858
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def poolProps(self):
 *         return self._poolProps
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7861
 *     def poolProps(self):
 *         return self._poolProps
 *     @poolProps.setter             # <<<<<<<<<<<<<<
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_poolProps); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_poolProps) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_poolProps), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps, 0, "poolProps", 0))) __PYX_ERR(0, 7862, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_poolProps));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_poolProps) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7863
 *     @poolProps.setter
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))             # <<<<<<<<<<<<<<
 *     @property
 *     def accessDescs(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_poolProps);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7863, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).poolProps), ((struct cudaMemPoolProps *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).poolProps))));

  /* "cuda/bindings/runtime.pyx":7861
 *     def poolProps(self):
 *         return self._poolProps
 *     @poolProps.setter             # <<<<<<<<<<<<<<
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.poolProps.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7864
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))
 *     @property             # <<<<<<<<<<<<<<
 *     def accessDescs(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr113__pyx_v_x;
  PyObject *__pyx_10genexpr114__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7866
 *     @property
 *     def accessDescs(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]             # <<<<<<<<<<<<<<
 *         return [cudaMemAccessDesc(_ptr=arr) for arr in arrs]
 *     @accessDescs.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7866, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_accessDescs_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr113__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).accessDescs) + (__pyx_10genexpr113__pyx_v_x * (sizeof(struct cudaMemAccessDesc))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7866, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 7866, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7867
 *     def accessDescs(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
 *         return [cudaMemAccessDesc(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @accessDescs.setter
 *     def accessDescs(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7867, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7867, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7867, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr114__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7867, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr114__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 7867, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7867, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 7867, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr114__pyx_v_arr); __pyx_10genexpr114__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr114__pyx_v_arr); __pyx_10genexpr114__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7864
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))
 *     @property             # <<<<<<<<<<<<<<
 *     def accessDescs(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.accessDescs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr114__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7868
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
 *         return [cudaMemAccessDesc(_ptr=arr) for arr in arrs]
 *     @accessDescs.setter             # <<<<<<<<<<<<<<
 *     def accessDescs(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  struct cudaMemAccessDesc *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7870
 *     @accessDescs.setter
 *     def accessDescs(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._accessDescs)
 *             self._accessDescs_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7870, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":7871
 *     def accessDescs(self, val):
 *         if len(val) == 0:
 *             free(self._accessDescs)             # <<<<<<<<<<<<<<
 *             self._accessDescs_length = 0
 *             self._pvt_ptr[0].accessDescs = NULL
*/
    free(__pyx_v_self->_accessDescs);

    /* "cuda/bindings/runtime.pyx":7872
 *         if len(val) == 0:
 *             free(self._accessDescs)
 *             self._accessDescs_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].accessDescs = NULL
 *         else:
*/
    __pyx_v_self->_accessDescs_length = 0;

    /* "cuda/bindings/runtime.pyx":7873
 *             free(self._accessDescs)
 *             self._accessDescs_length = 0
 *             self._pvt_ptr[0].accessDescs = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._accessDescs_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).accessDescs = NULL;

    /* "cuda/bindings/runtime.pyx":7870
 *     @accessDescs.setter
 *     def accessDescs(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._accessDescs)
 *             self._accessDescs_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7875
 *             self._pvt_ptr[0].accessDescs = NULL
 *         else:
 *             if self._accessDescs_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7875, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_accessDescs_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":7876
 *         else:
 *             if self._accessDescs_length != <size_t>len(val):
 *                 free(self._accessDescs)             # <<<<<<<<<<<<<<
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
 *                 if self._accessDescs is NULL:
*/
      free(__pyx_v_self->_accessDescs);

      /* "cuda/bindings/runtime.pyx":7877
 *             if self._accessDescs_length != <size_t>len(val):
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))             # <<<<<<<<<<<<<<
 *                 if self._accessDescs is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7877, __pyx_L1_error)
      __pyx_v_self->_accessDescs = ((struct cudaMemAccessDesc *)calloc(__pyx_t_1, (sizeof(struct cudaMemAccessDesc))));

      /* "cuda/bindings/runtime.pyx":7878
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
 *                 if self._accessDescs is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *                 self._accessDescs_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_accessDescs == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":7879
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
 *                 if self._accessDescs is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))             # <<<<<<<<<<<<<<
 *                 self._accessDescs_length = <size_t>len(val)
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7879, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemAccessDesc))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7879, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 7879, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":7878
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
 *                 if self._accessDescs is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *                 self._accessDescs_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":7880
 *                 if self._accessDescs is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *                 self._accessDescs_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7880, __pyx_L1_error)
      __pyx_v_self->_accessDescs_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":7881
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *                 self._accessDescs_length = <size_t>len(val)
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
*/
      __pyx_t_9 = __pyx_v_self->_accessDescs;
      (__pyx_v_self->_pvt_ptr[0]).accessDescs = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":7875
 *             self._pvt_ptr[0].accessDescs = NULL
 *         else:
 *             if self._accessDescs_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
*/
    }

    /* "cuda/bindings/runtime.pyx":7882
 *                 self._accessDescs_length = <size_t>len(val)
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7882, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":7883
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7883, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_self->_accessDescs[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaMemAccessDesc))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7868
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
 *         return [cudaMemAccessDesc(_ptr=arr) for arr in arrs]
 *     @accessDescs.setter             # <<<<<<<<<<<<<<
 *     def accessDescs(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.accessDescs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7885
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7887
 *     @property
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount             # <<<<<<<<<<<<<<
 *     @accessDescCount.setter
 *     def accessDescCount(self, size_t accessDescCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).accessDescCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7885
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.accessDescCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7888
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount
 *     @accessDescCount.setter             # <<<<<<<<<<<<<<
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessDescCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessDescCount) {
  size_t __pyx_v_accessDescCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_accessDescCount); {
    __pyx_v_accessDescCount = __Pyx_PyLong_As_size_t(__pyx_arg_accessDescCount); if (unlikely((__pyx_v_accessDescCount == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7889, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.accessDescCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self), ((size_t)__pyx_v_accessDescCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, size_t __pyx_v_accessDescCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7890
 *     @accessDescCount.setter
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount             # <<<<<<<<<<<<<<
 *     @property
 *     def bytesize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).accessDescCount = __pyx_v_accessDescCount;

  /* "cuda/bindings/runtime.pyx":7888
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount
 *     @accessDescCount.setter             # <<<<<<<<<<<<<<
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7891
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount
 *     @property             # <<<<<<<<<<<<<<
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7893
 *     @property
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize             # <<<<<<<<<<<<<<
 *     @bytesize.setter
 *     def bytesize(self, size_t bytesize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).bytesize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7891
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount
 *     @property             # <<<<<<<<<<<<<<
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.bytesize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7894
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize
 *     @bytesize.setter             # <<<<<<<<<<<<<<
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesize) {
  size_t __pyx_v_bytesize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_bytesize); {
    __pyx_v_bytesize = __Pyx_PyLong_As_size_t(__pyx_arg_bytesize); if (unlikely((__pyx_v_bytesize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 7895, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.bytesize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self), ((size_t)__pyx_v_bytesize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, size_t __pyx_v_bytesize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":7896
 *     @bytesize.setter
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize             # <<<<<<<<<<<<<<
 *     @property
 *     def dptr(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).bytesize = __pyx_v_bytesize;

  /* "cuda/bindings/runtime.pyx":7894
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize
 *     @bytesize.setter             # <<<<<<<<<<<<<<
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7897
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize
 *     @property             # <<<<<<<<<<<<<<
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7899
 *     @property
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr             # <<<<<<<<<<<<<<
 *     @dptr.setter
 *     def dptr(self, dptr):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).dptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7897
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize
 *     @property             # <<<<<<<<<<<<<<
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.dptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7900
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
 *     @dptr.setter             # <<<<<<<<<<<<<<
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_dptr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, PyObject *__pyx_v_dptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdptr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7902
 *     @dptr.setter
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].dptr = <void*><void_ptr>_cdptr.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7902, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7903
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
 *         self._pvt_ptr[0].dptr = <void*><void_ptr>_cdptr.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemAllocNodeParamsV2:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7903, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).dptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":7900
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
 *     @dptr.setter             # <<<<<<<<<<<<<<
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.dptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdptr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_22cudaMemAllocNodeParams_10__reduce_cython__, "cudaMemAllocNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_22cudaMemAllocNodeParams_12__setstate_cython__, "cudaMemAllocNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemAllocNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7931
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7931, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7931, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 7931, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7931, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7931, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7931, __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.runtime.cudaMemAllocNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7932
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7933
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAllocNodeParamsV2 *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":7932
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7935
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAllocNodeParamsV2 *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemAllocNodeParamsV2 *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7931
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7936
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAllocNodeParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 7936, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7936, __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, "__init__", 0) < (0)) __PYX_ERR(0, 7936, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 7936, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7936, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 7936, __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.runtime.cudaMemAllocNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":7938
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).poolProps))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7938, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 7938, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7938, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_poolProps);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_poolProps);
  __pyx_v_self->_poolProps = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7936
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemAllocNodeParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7939
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._accessDescs is not NULL:
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":7941
 *     def __dealloc__(self):
 *         pass
 *         if self._accessDescs is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._accessDescs)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_accessDescs != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7942
 *         pass
 *         if self._accessDescs is not NULL:
 *             free(self._accessDescs)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_accessDescs);

    /* "cuda/bindings/runtime.pyx":7941
 *     def __dealloc__(self):
 *         pass
 *         if self._accessDescs is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._accessDescs)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":7939
 *         pass
 *         self._poolProps = cudaMemPoolProps(_ptr=<void_ptr>&self._pvt_ptr[0].poolProps)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._accessDescs is not NULL:
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":7943
 *         if self._accessDescs is not NULL:
 *             free(self._accessDescs)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_7getPtr(PyObject *__pyx_v_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_7runtime_24cudaMemAllocNodeParamsV2_6getPtr, "cudaMemAllocNodeParamsV2.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":7944
 *             free(self._accessDescs)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7943
 *         if self._accessDescs is not NULL:
 *             free(self._accessDescs)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7945
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr115__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":7946
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":7947
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7947, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":7948
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7949
 *             str_list = []
 *             try:
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7949, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_poolProps_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7949, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7949, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7949, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7949, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7949, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr115__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr115__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7949, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 7949, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr115__pyx_v_line); __pyx_10genexpr115__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr115__pyx_v_line); __pyx_10genexpr115__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7949, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_poolProps, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7949, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7949, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7949, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7949, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7948
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7950
 *             try:
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['poolProps : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 7950, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7951
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7951, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_poolProps_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_poolProps_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_poolProps_ValueError) != (0)) __PYX_ERR(0, 7951, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7951, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":7948
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['poolProps :\n' + '\n'.join(['    ' + line for line in str(self.poolProps).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7952
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7953
 *                 str_list += ['poolProps : <ValueError>']
 *             try:
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_accessDescs_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7953, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7953, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_accessDescs, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7953, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7953, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 7953, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7953, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":7952
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7954
 *             try:
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 7954, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7955
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7955, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_accessDescs_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_accessDescs_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_accessDescs_ValueError) != (0)) __PYX_ERR(0, 7955, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7955, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":7952
 *             except ValueError:
 *                 str_list += ['poolProps : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescs : ' + str(self.accessDescs)]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7956
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7957
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_accessDescCount_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7957, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7957, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_accessDescCount, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7957, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7957, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7957, __pyx_L27_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7957, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7956
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7958
 *             try:
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 7958, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7959
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7959, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_accessDescCount_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_accessDescCount_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_accessDescCount_ValueError) != (0)) __PYX_ERR(0, 7959, __pyx_L29_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7959, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":7956
 *             except ValueError:
 *                 str_list += ['accessDescs : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessDescCount : ' + str(self.accessDescCount)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7960
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7961
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:
 *                 str_list += ['bytesize : ' + str(self.bytesize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_bytesize_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7961, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7961, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_bytesize, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7961, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7961, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 7961, __pyx_L35_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7961, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":7960
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7962
 *             try:
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesize : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 7962, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":7963
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7963, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_bytesize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_bytesize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_bytesize_ValueError) != (0)) __PYX_ERR(0, 7963, __pyx_L37_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7963, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":7960
 *             except ValueError:
 *                 str_list += ['accessDescCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesize : ' + str(self.bytesize)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7964
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":7965
 *                 str_list += ['bytesize : <ValueError>']
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dptr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7965, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7965, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_dptr, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7965, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7965, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 7965, __pyx_L43_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7965, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":7964
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":7966
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 7966, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":7967
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 7967, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dptr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dptr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_dptr_ValueError) != (0)) __PYX_ERR(0, 7967, __pyx_L45_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 7967, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":7964
 *             except ValueError:
 *                 str_list += ['bytesize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":7968
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7968, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":7946
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":7970
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def poolProps(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":7945
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr115__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7971
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def poolProps(self):
 *         return self._poolProps
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7973
 *     @property
 *     def poolProps(self):
 *         return self._poolProps             # <<<<<<<<<<<<<<
 *     @poolProps.setter
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_poolProps);
  __pyx_r = ((PyObject *)__pyx_v_self->_poolProps);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7971
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def poolProps(self):
 *         return self._poolProps
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7974
 *     def poolProps(self):
 *         return self._poolProps
 *     @poolProps.setter             # <<<<<<<<<<<<<<
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_poolProps); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_poolProps) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_poolProps), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps, 0, "poolProps", 0))) __PYX_ERR(0, 7975, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)__pyx_v_poolProps));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_poolProps) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7976
 *     @poolProps.setter
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))             # <<<<<<<<<<<<<<
 *     @property
 *     def accessDescs(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_poolProps);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7976, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 7976, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).poolProps), ((struct cudaMemPoolProps *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).poolProps))));

  /* "cuda/bindings/runtime.pyx":7974
 *     def poolProps(self):
 *         return self._poolProps
 *     @poolProps.setter             # <<<<<<<<<<<<<<
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.poolProps.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7977
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))
 *     @property             # <<<<<<<<<<<<<<
 *     def accessDescs(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr116__pyx_v_x;
  PyObject *__pyx_10genexpr117__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":7979
 *     @property
 *     def accessDescs(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]             # <<<<<<<<<<<<<<
 *         return [cudaMemAccessDesc(_ptr=arr) for arr in arrs]
 *     @accessDescs.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7979, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_accessDescs_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr116__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).accessDescs) + (__pyx_10genexpr116__pyx_v_x * (sizeof(struct cudaMemAccessDesc))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7979, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 7979, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":7980
 *     def accessDescs(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
 *         return [cudaMemAccessDesc(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @accessDescs.setter
 *     def accessDescs(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7980, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 7980, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7980, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr117__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 7980, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr117__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 7980, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7980, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 7980, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr117__pyx_v_arr); __pyx_10genexpr117__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr117__pyx_v_arr); __pyx_10genexpr117__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7977
 *     def poolProps(self, poolProps not None : cudaMemPoolProps):
 *         string.memcpy(&self._pvt_ptr[0].poolProps, <cyruntime.cudaMemPoolProps*><void_ptr>poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps))
 *     @property             # <<<<<<<<<<<<<<
 *     def accessDescs(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.accessDescs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr117__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7981
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
 *         return [cudaMemAccessDesc(_ptr=arr) for arr in arrs]
 *     @accessDescs.setter             # <<<<<<<<<<<<<<
 *     def accessDescs(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  struct cudaMemAccessDesc *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":7983
 *     @accessDescs.setter
 *     def accessDescs(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._accessDescs)
 *             self._accessDescs_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7983, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":7984
 *     def accessDescs(self, val):
 *         if len(val) == 0:
 *             free(self._accessDescs)             # <<<<<<<<<<<<<<
 *             self._accessDescs_length = 0
 *             self._pvt_ptr[0].accessDescs = NULL
*/
    free(__pyx_v_self->_accessDescs);

    /* "cuda/bindings/runtime.pyx":7985
 *         if len(val) == 0:
 *             free(self._accessDescs)
 *             self._accessDescs_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].accessDescs = NULL
 *         else:
*/
    __pyx_v_self->_accessDescs_length = 0;

    /* "cuda/bindings/runtime.pyx":7986
 *             free(self._accessDescs)
 *             self._accessDescs_length = 0
 *             self._pvt_ptr[0].accessDescs = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._accessDescs_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).accessDescs = NULL;

    /* "cuda/bindings/runtime.pyx":7983
 *     @accessDescs.setter
 *     def accessDescs(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._accessDescs)
 *             self._accessDescs_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":7988
 *             self._pvt_ptr[0].accessDescs = NULL
 *         else:
 *             if self._accessDescs_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7988, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_accessDescs_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":7989
 *         else:
 *             if self._accessDescs_length != <size_t>len(val):
 *                 free(self._accessDescs)             # <<<<<<<<<<<<<<
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
 *                 if self._accessDescs is NULL:
*/
      free(__pyx_v_self->_accessDescs);

      /* "cuda/bindings/runtime.pyx":7990
 *             if self._accessDescs_length != <size_t>len(val):
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))             # <<<<<<<<<<<<<<
 *                 if self._accessDescs is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7990, __pyx_L1_error)
      __pyx_v_self->_accessDescs = ((struct cudaMemAccessDesc *)calloc(__pyx_t_1, (sizeof(struct cudaMemAccessDesc))));

      /* "cuda/bindings/runtime.pyx":7991
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
 *                 if self._accessDescs is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *                 self._accessDescs_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_accessDescs == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":7992
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
 *                 if self._accessDescs is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))             # <<<<<<<<<<<<<<
 *                 self._accessDescs_length = <size_t>len(val)
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7992, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 7992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemAccessDesc))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 7992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 7992, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7992, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 7992, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":7991
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
 *                 if self._accessDescs is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *                 self._accessDescs_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":7993
 *                 if self._accessDescs is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *                 self._accessDescs_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7993, __pyx_L1_error)
      __pyx_v_self->_accessDescs_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":7994
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *                 self._accessDescs_length = <size_t>len(val)
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
*/
      __pyx_t_9 = __pyx_v_self->_accessDescs;
      (__pyx_v_self->_pvt_ptr[0]).accessDescs = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":7988
 *             self._pvt_ptr[0].accessDescs = NULL
 *         else:
 *             if self._accessDescs_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._accessDescs)
 *                 self._accessDescs = <cyruntime.cudaMemAccessDesc*> calloc(len(val), sizeof(cyruntime.cudaMemAccessDesc))
*/
    }

    /* "cuda/bindings/runtime.pyx":7995
 *                 self._accessDescs_length = <size_t>len(val)
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 7995, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":7996
 *                 self._pvt_ptr[0].accessDescs = self._accessDescs
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7996, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_self->_accessDescs[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaMemAccessDesc))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":7981
 *         arrs = [<void_ptr>self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)]
 *         return [cudaMemAccessDesc(_ptr=arr) for arr in arrs]
 *     @accessDescs.setter             # <<<<<<<<<<<<<<
 *     def accessDescs(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.accessDescs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":7998
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8000
 *     @property
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount             # <<<<<<<<<<<<<<
 *     @accessDescCount.setter
 *     def accessDescCount(self, size_t accessDescCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).accessDescCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8000, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":7998
 *                 string.memcpy(&self._accessDescs[idx], (<cudaMemAccessDesc>val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.accessDescCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8001
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount
 *     @accessDescCount.setter             # <<<<<<<<<<<<<<
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessDescCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessDescCount) {
  size_t __pyx_v_accessDescCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_accessDescCount); {
    __pyx_v_accessDescCount = __Pyx_PyLong_As_size_t(__pyx_arg_accessDescCount); if (unlikely((__pyx_v_accessDescCount == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8002, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.accessDescCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_accessDescCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, size_t __pyx_v_accessDescCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8003
 *     @accessDescCount.setter
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount             # <<<<<<<<<<<<<<
 *     @property
 *     def bytesize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).accessDescCount = __pyx_v_accessDescCount;

  /* "cuda/bindings/runtime.pyx":8001
 *     def accessDescCount(self):
 *         return self._pvt_ptr[0].accessDescCount
 *     @accessDescCount.setter             # <<<<<<<<<<<<<<
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8004
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount
 *     @property             # <<<<<<<<<<<<<<
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8006
 *     @property
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize             # <<<<<<<<<<<<<<
 *     @bytesize.setter
 *     def bytesize(self, size_t bytesize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).bytesize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8006, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8004
 *     def accessDescCount(self, size_t accessDescCount):
 *         self._pvt_ptr[0].accessDescCount = accessDescCount
 *     @property             # <<<<<<<<<<<<<<
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.bytesize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8007
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize
 *     @bytesize.setter             # <<<<<<<<<<<<<<
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesize) {
  size_t __pyx_v_bytesize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_bytesize); {
    __pyx_v_bytesize = __Pyx_PyLong_As_size_t(__pyx_arg_bytesize); if (unlikely((__pyx_v_bytesize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8008, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.bytesize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((size_t)__pyx_v_bytesize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, size_t __pyx_v_bytesize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8009
 *     @bytesize.setter
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize             # <<<<<<<<<<<<<<
 *     @property
 *     def dptr(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).bytesize = __pyx_v_bytesize;

  /* "cuda/bindings/runtime.pyx":8007
 *     def bytesize(self):
 *         return self._pvt_ptr[0].bytesize
 *     @bytesize.setter             # <<<<<<<<<<<<<<
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8010
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize
 *     @property             # <<<<<<<<<<<<<<
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8012
 *     @property
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr             # <<<<<<<<<<<<<<
 *     @dptr.setter
 *     def dptr(self, dptr):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).dptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8010
 *     def bytesize(self, size_t bytesize):
 *         self._pvt_ptr[0].bytesize = bytesize
 *     @property             # <<<<<<<<<<<<<<
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.dptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8013
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
 *     @dptr.setter             # <<<<<<<<<<<<<<
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_dptr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_dptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdptr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8015
 *     @dptr.setter
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].dptr = <void*><void_ptr>_cdptr.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8015, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8016
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
 *         self._pvt_ptr[0].dptr = <void*><void_ptr>_cdptr.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemFreeNodeParams:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8016, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).dptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":8013
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
 *     @dptr.setter             # <<<<<<<<<<<<<<
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.dptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdptr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_24cudaMemAllocNodeParamsV2_10__reduce_cython__, "cudaMemAllocNodeParamsV2.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_24cudaMemAllocNodeParamsV2_12__setstate_cython__, "cudaMemAllocNodeParamsV2.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemAllocNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAllocNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8032
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8032, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8032, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8032, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8032, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8032, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8032, __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.runtime.cudaMemFreeNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":8033
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8034
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemFreeNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":8033
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8036
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemFreeNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemFreeNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":8032
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8037
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemFreeNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8037, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8037, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8037, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8037, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8037, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8037, __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.runtime.cudaMemFreeNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8039
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8041
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_21cudaMemFreeNodeParams_6getPtr, "cudaMemFreeNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8042
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8041
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFreeNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8043
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8044
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8045
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8045, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8046
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8047
 *             str_list = []
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dptr_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8047, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8047, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_dptr, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8047, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8047, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8047, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8047, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8046
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":8048
 *             try:
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFreeNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8048, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":8049
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8049, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dptr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dptr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_dptr_ValueError) != (0)) __PYX_ERR(0, 8049, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8049, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8046
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dptr : ' + hex(self.dptr)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8050
 *             except ValueError:
 *                 str_list += ['dptr : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8050, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8044
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8052
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def dptr(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8043
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFreeNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8053
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8055
 *     @property
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr             # <<<<<<<<<<<<<<
 *     @dptr.setter
 *     def dptr(self, dptr):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).dptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8053
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFreeNodeParams.dptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8056
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
 *     @dptr.setter             # <<<<<<<<<<<<<<
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dptr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_dptr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self, PyObject *__pyx_v_dptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdptr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8058
 *     @dptr.setter
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].dptr = <void*><void_ptr>_cdptr.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8058, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8059
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
 *         self._pvt_ptr[0].dptr = <void*><void_ptr>_cdptr.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemcpyAttributes:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8059, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).dptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":8056
 *     def dptr(self):
 *         return <void_ptr>self._pvt_ptr[0].dptr
 *     @dptr.setter             # <<<<<<<<<<<<<<
 *     def dptr(self, dptr):
 *         _cdptr = _HelperInputVoidPtr(dptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFreeNodeParams.dptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdptr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_21cudaMemFreeNodeParams_10__reduce_cython__, "cudaMemFreeNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFreeNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_21cudaMemFreeNodeParams_12__setstate_cython__, "cudaMemFreeNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemFreeNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFreeNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8086
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8086, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8086, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8086, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8086, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8086, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8086, __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.runtime.cudaMemcpyAttributes.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":8087
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8088
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpyAttributes *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":8087
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8090
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpyAttributes *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemcpyAttributes *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":8086
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8091
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpyAttributes *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._srcLocHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].srcLocHint)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8091, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8091, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8091, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8091, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8091, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8091, __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.runtime.cudaMemcpyAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":8093
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._srcLocHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].srcLocHint)             # <<<<<<<<<<<<<<
 *         self._dstLocHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].dstLocHint)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).srcLocHint))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8093, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8093, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8093, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_srcLocHint);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_srcLocHint);
  __pyx_v_self->_srcLocHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8094
 *         pass
 *         self._srcLocHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].srcLocHint)
 *         self._dstLocHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].dstLocHint)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).dstLocHint))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8094, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8094, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_dstLocHint);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_dstLocHint);
  __pyx_v_self->_dstLocHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8091
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpyAttributes *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._srcLocHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].srcLocHint)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8095
 *         self._srcLocHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].srcLocHint)
 *         self._dstLocHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].dstLocHint)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8097
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_7getPtr(PyObject *__pyx_v_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_7runtime_20cudaMemcpyAttributes_6getPtr, "cudaMemcpyAttributes.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8098
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8097
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8099
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr118__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr119__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8100
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8101
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8102
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8103
 *             str_list = []
 *             try:
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcAccessOrder_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8103, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8103, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcAccessOrder, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8103, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8103, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8103, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8103, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8102
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":8104
 *             try:
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8104, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":8105
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcLocHint :\n' + '\n'.join(['    ' + line for line in str(self.srcLocHint).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8105, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcAccessOrder_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcAccessOrder_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_srcAccessOrder_ValueError) != (0)) __PYX_ERR(0, 8105, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8105, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8102
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8106
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcLocHint :\n' + '\n'.join(['    ' + line for line in str(self.srcLocHint).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8107
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:
 *                 str_list += ['srcLocHint :\n' + '\n'.join(['    ' + line for line in str(self.srcLocHint).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcLocHint : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8107, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcLocHint_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8107, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8107, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8107, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8107, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8107, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr118__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr118__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8107, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8107, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr118__pyx_v_line); __pyx_10genexpr118__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr118__pyx_v_line); __pyx_10genexpr118__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8107, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcLocHint, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8107, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8107, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 8107, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8107, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":8106
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcLocHint :\n' + '\n'.join(['    ' + line for line in str(self.srcLocHint).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8108
 *             try:
 *                 str_list += ['srcLocHint :\n' + '\n'.join(['    ' + line for line in str(self.srcLocHint).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcLocHint : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8108, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8109
 *                 str_list += ['srcLocHint :\n' + '\n'.join(['    ' + line for line in str(self.srcLocHint).splitlines()])]
 *             except ValueError:
 *                 str_list += ['srcLocHint : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dstLocHint :\n' + '\n'.join(['    ' + line for line in str(self.dstLocHint).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8109, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcLocHint_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcLocHint_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_srcLocHint_ValueError) != (0)) __PYX_ERR(0, 8109, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8109, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":8106
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcLocHint :\n' + '\n'.join(['    ' + line for line in str(self.srcLocHint).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8110
 *             except ValueError:
 *                 str_list += ['srcLocHint : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstLocHint :\n' + '\n'.join(['    ' + line for line in str(self.dstLocHint).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8111
 *                 str_list += ['srcLocHint : <ValueError>']
 *             try:
 *                 str_list += ['dstLocHint :\n' + '\n'.join(['    ' + line for line in str(self.dstLocHint).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dstLocHint : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8111, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dstLocHint_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8111, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8111, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8111, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8111, __pyx_L35_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8111, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr119__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr119__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8111, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 8111, __pyx_L35_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr119__pyx_v_line); __pyx_10genexpr119__pyx_v_line = 0;
          goto __pyx_L39_exit_scope;
          __pyx_L35_error:;
          __Pyx_XDECREF(__pyx_10genexpr119__pyx_v_line); __pyx_10genexpr119__pyx_v_line = 0;
          goto __pyx_L27_error;
          __pyx_L39_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8111, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dstLocHint, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8111, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8111, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8111, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8111, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8110
 *             except ValueError:
 *                 str_list += ['srcLocHint : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstLocHint :\n' + '\n'.join(['    ' + line for line in str(self.dstLocHint).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8112
 *             try:
 *                 str_list += ['dstLocHint :\n' + '\n'.join(['    ' + line for line in str(self.dstLocHint).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstLocHint : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 8112, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":8113
 *                 str_list += ['dstLocHint :\n' + '\n'.join(['    ' + line for line in str(self.dstLocHint).splitlines()])]
 *             except ValueError:
 *                 str_list += ['dstLocHint : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8113, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dstLocHint_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dstLocHint_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_dstLocHint_ValueError) != (0)) __PYX_ERR(0, 8113, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8113, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":8110
 *             except ValueError:
 *                 str_list += ['srcLocHint : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dstLocHint :\n' + '\n'.join(['    ' + line for line in str(self.dstLocHint).splitlines()])]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8114
 *             except ValueError:
 *                 str_list += ['dstLocHint : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8115
 *                 str_list += ['dstLocHint : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8115, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8115, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8115, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8115, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8115, __pyx_L42_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8115, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8114
 *             except ValueError:
 *                 str_list += ['dstLocHint : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L47_try_end;
      __pyx_L42_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8116
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 8116, __pyx_L44_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8117
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8117, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 8117, __pyx_L44_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8117, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L43_exception_handled;
      }
      goto __pyx_L44_except_error;

      /* "cuda/bindings/runtime.pyx":8114
 *             except ValueError:
 *                 str_list += ['dstLocHint : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L44_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L43_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L47_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8118
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8100
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8120
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def srcAccessOrder(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8099
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr118__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr119__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8121
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8123
 *     @property
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder((__pyx_v_self->_pvt_ptr[0]).srcAccessOrder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpySrcAccessOrder); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 8123, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":8124
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
 *     @srcAccessOrder.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8123
 *     @property
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
*/
  }

  /* "cuda/bindings/runtime.pyx":8125
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]             # <<<<<<<<<<<<<<
 *     @srcAccessOrder.setter
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpySrcAccessOrder); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder((__pyx_v_self->_pvt_ptr[0]).srcAccessOrder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8121
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.srcAccessOrder.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8126
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
 *     @srcAccessOrder.setter             # <<<<<<<<<<<<<<
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcAccessOrder); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcAccessOrder) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_srcAccessOrder) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "srcAccessOrder"); __PYX_ERR(0, 8127, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_srcAccessOrder));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, PyObject *__pyx_v_srcAccessOrder) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemcpySrcAccessOrder __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8128
 *     @srcAccessOrder.setter
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value             # <<<<<<<<<<<<<<
 *     @property
 *     def srcLocHint(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_srcAccessOrder, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemcpySrcAccessOrder)__Pyx_PyLong_As_enum__cudaMemcpySrcAccessOrder(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).srcAccessOrder = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":8126
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
 *     @srcAccessOrder.setter             # <<<<<<<<<<<<<<
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.srcAccessOrder.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8129
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value
 *     @property             # <<<<<<<<<<<<<<
 *     def srcLocHint(self):
 *         return self._srcLocHint
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8131
 *     @property
 *     def srcLocHint(self):
 *         return self._srcLocHint             # <<<<<<<<<<<<<<
 *     @srcLocHint.setter
 *     def srcLocHint(self, srcLocHint not None : cudaMemLocation):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_srcLocHint);
  __pyx_r = ((PyObject *)__pyx_v_self->_srcLocHint);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8129
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value
 *     @property             # <<<<<<<<<<<<<<
 *     def srcLocHint(self):
 *         return self._srcLocHint
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8132
 *     def srcLocHint(self):
 *         return self._srcLocHint
 *     @srcLocHint.setter             # <<<<<<<<<<<<<<
 *     def srcLocHint(self, srcLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].srcLocHint, <cyruntime.cudaMemLocation*><void_ptr>srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcLocHint); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcLocHint) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_srcLocHint), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 0, "srcLocHint", 0))) __PYX_ERR(0, 8133, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_srcLocHint));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_srcLocHint) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8134
 *     @srcLocHint.setter
 *     def srcLocHint(self, srcLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].srcLocHint, <cyruntime.cudaMemLocation*><void_ptr>srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint))             # <<<<<<<<<<<<<<
 *     @property
 *     def dstLocHint(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_srcLocHint);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8134, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8134, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).srcLocHint), ((struct cudaMemLocation *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).srcLocHint))));

  /* "cuda/bindings/runtime.pyx":8132
 *     def srcLocHint(self):
 *         return self._srcLocHint
 *     @srcLocHint.setter             # <<<<<<<<<<<<<<
 *     def srcLocHint(self, srcLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].srcLocHint, <cyruntime.cudaMemLocation*><void_ptr>srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.srcLocHint.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8135
 *     def srcLocHint(self, srcLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].srcLocHint, <cyruntime.cudaMemLocation*><void_ptr>srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstLocHint(self):
 *         return self._dstLocHint
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8137
 *     @property
 *     def dstLocHint(self):
 *         return self._dstLocHint             # <<<<<<<<<<<<<<
 *     @dstLocHint.setter
 *     def dstLocHint(self, dstLocHint not None : cudaMemLocation):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_dstLocHint);
  __pyx_r = ((PyObject *)__pyx_v_self->_dstLocHint);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8135
 *     def srcLocHint(self, srcLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].srcLocHint, <cyruntime.cudaMemLocation*><void_ptr>srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint))
 *     @property             # <<<<<<<<<<<<<<
 *     def dstLocHint(self):
 *         return self._dstLocHint
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8138
 *     def dstLocHint(self):
 *         return self._dstLocHint
 *     @dstLocHint.setter             # <<<<<<<<<<<<<<
 *     def dstLocHint(self, dstLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].dstLocHint, <cyruntime.cudaMemLocation*><void_ptr>dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstLocHint); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dstLocHint) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dstLocHint), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 0, "dstLocHint", 0))) __PYX_ERR(0, 8139, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_dstLocHint));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_dstLocHint) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8140
 *     @dstLocHint.setter
 *     def dstLocHint(self, dstLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].dstLocHint, <cyruntime.cudaMemLocation*><void_ptr>dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint))             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_dstLocHint);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).dstLocHint), ((struct cudaMemLocation *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).dstLocHint))));

  /* "cuda/bindings/runtime.pyx":8138
 *     def dstLocHint(self):
 *         return self._dstLocHint
 *     @dstLocHint.setter             # <<<<<<<<<<<<<<
 *     def dstLocHint(self, dstLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].dstLocHint, <cyruntime.cudaMemLocation*><void_ptr>dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.dstLocHint.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8141
 *     def dstLocHint(self, dstLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].dstLocHint, <cyruntime.cudaMemLocation*><void_ptr>dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8143
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8141
 *     def dstLocHint(self, dstLocHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].dstLocHint, <cyruntime.cudaMemLocation*><void_ptr>dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8144
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8145, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8146
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaOffset3D:
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":8144
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaMemcpyAttributes_10__reduce_cython__, "cudaMemcpyAttributes.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaMemcpyAttributes_12__setstate_cython__, "cudaMemcpyAttributes.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemcpyAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAttributes.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8166
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8166, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8166, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8166, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8166, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8166, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8166, __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.runtime.cudaOffset3D.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":8167
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8168
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaOffset3D *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":8167
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8170
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaOffset3D *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaOffset3D *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":8166
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8171
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaOffset3D *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8171, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8171, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8171, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8171, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8171, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8171, __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.runtime.cudaOffset3D.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8173
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8175
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_7getPtr(PyObject *__pyx_v_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_7runtime_12cudaOffset3D_6getPtr, "cudaOffset3D.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaOffset3D_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaOffset3D_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8176
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8175
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8177
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8178
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8179
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8180
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8181
 *             str_list = []
 *             try:
 *                 str_list += ['x : ' + str(self.x)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8181, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8181, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8180
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":8182
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8182, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":8183
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8183, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_x_ValueError) != (0)) __PYX_ERR(0, 8183, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8183, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8180
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8184
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8185
 *                 str_list += ['x : <ValueError>']
 *             try:
 *                 str_list += ['y : ' + str(self.y)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 8185, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8185, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":8184
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8186
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 8186, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":8187
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8187, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_y_ValueError) != (0)) __PYX_ERR(0, 8187, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8187, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":8184
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8188
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8189
 *                 str_list += ['y : <ValueError>']
 *             try:
 *                 str_list += ['z : ' + str(self.z)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8189, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8189, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8188
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8190
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8190, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":8191
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8191, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_z_ValueError) != (0)) __PYX_ERR(0, 8191, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8191, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":8188
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8192
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8178
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8194
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def x(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8177
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8195
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].x
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1x_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1x___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8197
 *     @property
 *     def x(self):
 *         return self._pvt_ptr[0].x             # <<<<<<<<<<<<<<
 *     @x.setter
 *     def x(self, size_t x):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8195
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].x
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8198
 *     def x(self):
 *         return self._pvt_ptr[0].x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x) {
  size_t __pyx_v_x;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_x); {
    __pyx_v_x = __Pyx_PyLong_As_size_t(__pyx_arg_x); if (unlikely((__pyx_v_x == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8199, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1x_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self), ((size_t)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, size_t __pyx_v_x) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8200
 *     @x.setter
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x             # <<<<<<<<<<<<<<
 *     @property
 *     def y(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).x = __pyx_v_x;

  /* "cuda/bindings/runtime.pyx":8198
 *     def x(self):
 *         return self._pvt_ptr[0].x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8201
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].y
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1y_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1y___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8203
 *     @property
 *     def y(self):
 *         return self._pvt_ptr[0].y             # <<<<<<<<<<<<<<
 *     @y.setter
 *     def y(self, size_t y):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8201
 *     def x(self, size_t x):
 *         self._pvt_ptr[0].x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].y
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8204
 *     def y(self):
 *         return self._pvt_ptr[0].y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y) {
  size_t __pyx_v_y;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_y); {
    __pyx_v_y = __Pyx_PyLong_As_size_t(__pyx_arg_y); if (unlikely((__pyx_v_y == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8205, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1y_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self), ((size_t)__pyx_v_y));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, size_t __pyx_v_y) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8206
 *     @y.setter
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y             # <<<<<<<<<<<<<<
 *     @property
 *     def z(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).y = __pyx_v_y;

  /* "cuda/bindings/runtime.pyx":8204
 *     def y(self):
 *         return self._pvt_ptr[0].y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8207
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].z
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1z_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1z___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8209
 *     @property
 *     def z(self):
 *         return self._pvt_ptr[0].z             # <<<<<<<<<<<<<<
 *     @z.setter
 *     def z(self, size_t z):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8207
 *     def y(self, size_t y):
 *         self._pvt_ptr[0].y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].z
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8210
 *     def z(self):
 *         return self._pvt_ptr[0].z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, size_t z):
 *         self._pvt_ptr[0].z = z
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z) {
  size_t __pyx_v_z;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_z); {
    __pyx_v_z = __Pyx_PyLong_As_size_t(__pyx_arg_z); if (unlikely((__pyx_v_z == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8211, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1z_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self), ((size_t)__pyx_v_z));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, size_t __pyx_v_z) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8212
 *     @z.setter
 *     def z(self, size_t z):
 *         self._pvt_ptr[0].z = z             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct6:
*/
  (__pyx_v_self->_pvt_ptr[0]).z = __pyx_v_z;

  /* "cuda/bindings/runtime.pyx":8210
 *     def z(self):
 *         return self._pvt_ptr[0].z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, size_t z):
 *         self._pvt_ptr[0].z = z
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12cudaOffset3D_10__reduce_cython__, "cudaOffset3D.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaOffset3D_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaOffset3D_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12cudaOffset3D_12__setstate_cython__, "cudaOffset3D.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12cudaOffset3D_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaOffset3D_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaOffset3D.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaOffset3D_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOffset3D.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8232
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8232, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8232, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8232, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 8232, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8232, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8232, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8232, __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.runtime.anon_struct6.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8233
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaMemcpy3DOperand *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":8232
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8235
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._locHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].op.ptr.locHint)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8235, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8235, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8235, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 8235, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8235, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8235, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8235, __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.runtime.anon_struct6.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":8237
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._locHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].op.ptr.locHint)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).op.ptr.locHint))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8237, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8237, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_locHint);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_locHint);
  __pyx_v_self->_locHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8235
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._locHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].op.ptr.locHint)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8238
 *         pass
 *         self._locHint = cudaMemLocation(_ptr=<void_ptr>&self._pvt_ptr[0].op.ptr.locHint)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8240
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op.ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct6_6getPtr, "anon_struct6.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct6_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct6_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8241
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op.ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).op.ptr))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8240
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op.ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8242
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op.ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr120__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8243
 *         return <void_ptr>&self._pvt_ptr[0].op.ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8244
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ptr : ' + hex(self.ptr)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8244, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8245
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8246
 *             str_list = []
 *             try:
 *                 str_list += ['ptr : ' + hex(self.ptr)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8246, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8246, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_ptr_3, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8246, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8246, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8246, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8246, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8245
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":8247
 *             try:
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8247, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":8248
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['rowLength : ' + str(self.rowLength)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8248, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ptr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ptr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_ptr_ValueError) != (0)) __PYX_ERR(0, 8248, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8248, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8245
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : ' + hex(self.ptr)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8249
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['rowLength : ' + str(self.rowLength)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8250
 *                 str_list += ['ptr : <ValueError>']
 *             try:
 *                 str_list += ['rowLength : ' + str(self.rowLength)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['rowLength : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_rowLength_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8250, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8250, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_rowLength, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8250, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8250, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 8250, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8250, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":8249
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['rowLength : ' + str(self.rowLength)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8251
 *             try:
 *                 str_list += ['rowLength : ' + str(self.rowLength)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['rowLength : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 8251, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":8252
 *                 str_list += ['rowLength : ' + str(self.rowLength)]
 *             except ValueError:
 *                 str_list += ['rowLength : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['layerHeight : ' + str(self.layerHeight)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8252, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_rowLength_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_rowLength_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_rowLength_ValueError) != (0)) __PYX_ERR(0, 8252, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8252, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":8249
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['rowLength : ' + str(self.rowLength)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8253
 *             except ValueError:
 *                 str_list += ['rowLength : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['layerHeight : ' + str(self.layerHeight)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8254
 *                 str_list += ['rowLength : <ValueError>']
 *             try:
 *                 str_list += ['layerHeight : ' + str(self.layerHeight)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['layerHeight : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_layerHeight_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8254, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8254, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_layerHeight, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8254, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8254, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8254, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8254, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8253
 *             except ValueError:
 *                 str_list += ['rowLength : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['layerHeight : ' + str(self.layerHeight)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8255
 *             try:
 *                 str_list += ['layerHeight : ' + str(self.layerHeight)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['layerHeight : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8255, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":8256
 *                 str_list += ['layerHeight : ' + str(self.layerHeight)]
 *             except ValueError:
 *                 str_list += ['layerHeight : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['locHint :\n' + '\n'.join(['    ' + line for line in str(self.locHint).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8256, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_layerHeight_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_layerHeight_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_layerHeight_ValueError) != (0)) __PYX_ERR(0, 8256, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8256, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":8253
 *             except ValueError:
 *                 str_list += ['rowLength : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['layerHeight : ' + str(self.layerHeight)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8257
 *             except ValueError:
 *                 str_list += ['layerHeight : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['locHint :\n' + '\n'.join(['    ' + line for line in str(self.locHint).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8258
 *                 str_list += ['layerHeight : <ValueError>']
 *             try:
 *                 str_list += ['locHint :\n' + '\n'.join(['    ' + line for line in str(self.locHint).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['locHint : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8258, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_locHint_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8258, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8258, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8258, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8258, __pyx_L36_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8258, __pyx_L36_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr120__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr120__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8258, __pyx_L36_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8258, __pyx_L36_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr120__pyx_v_line); __pyx_10genexpr120__pyx_v_line = 0;
          goto __pyx_L40_exit_scope;
          __pyx_L36_error:;
          __Pyx_XDECREF(__pyx_10genexpr120__pyx_v_line); __pyx_10genexpr120__pyx_v_line = 0;
          goto __pyx_L28_error;
          __pyx_L40_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8258, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_locHint, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8258, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8258, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 8258, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8258, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":8257
 *             except ValueError:
 *                 str_list += ['layerHeight : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['locHint :\n' + '\n'.join(['    ' + line for line in str(self.locHint).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8259
 *             try:
 *                 str_list += ['locHint :\n' + '\n'.join(['    ' + line for line in str(self.locHint).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['locHint : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8259, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8260
 *                 str_list += ['locHint :\n' + '\n'.join(['    ' + line for line in str(self.locHint).splitlines()])]
 *             except ValueError:
 *                 str_list += ['locHint : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8260, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_locHint_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_locHint_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_locHint_ValueError) != (0)) __PYX_ERR(0, 8260, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8260, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":8257
 *             except ValueError:
 *                 str_list += ['layerHeight : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['locHint :\n' + '\n'.join(['    ' + line for line in str(self.locHint).splitlines()])]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8261
 *             except ValueError:
 *                 str_list += ['locHint : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8243
 *         return <void_ptr>&self._pvt_ptr[0].op.ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8263
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def ptr(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8242
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op.ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr120__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8264
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].op.ptr.ptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3ptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3ptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_3ptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_3ptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8266
 *     @property
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].op.ptr.ptr             # <<<<<<<<<<<<<<
 *     @ptr.setter
 *     def ptr(self, ptr):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).op.ptr.ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8264
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].op.ptr.ptr
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.ptr.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8267
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].op.ptr.ptr
 *     @ptr.setter             # <<<<<<<<<<<<<<
 *     def ptr(self, ptr):
 *         _cptr = _HelperInputVoidPtr(ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ptr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ptr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_3ptr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self), ((PyObject *)__pyx_v_ptr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_3ptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, PyObject *__pyx_v_ptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cptr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8269
 *     @ptr.setter
 *     def ptr(self, ptr):
 *         _cptr = _HelperInputVoidPtr(ptr)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].op.ptr.ptr = <void*><void_ptr>_cptr.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8269, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8270
 *     def ptr(self, ptr):
 *         _cptr = _HelperInputVoidPtr(ptr)
 *         self._pvt_ptr[0].op.ptr.ptr = <void*><void_ptr>_cptr.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def rowLength(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8270, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).op.ptr.ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":8267
 *     def ptr(self):
 *         return <void_ptr>self._pvt_ptr[0].op.ptr.ptr
 *     @ptr.setter             # <<<<<<<<<<<<<<
 *     def ptr(self, ptr):
 *         _cptr = _HelperInputVoidPtr(ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.ptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cptr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8271
 *         _cptr = _HelperInputVoidPtr(ptr)
 *         self._pvt_ptr[0].op.ptr.ptr = <void*><void_ptr>_cptr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def rowLength(self):
 *         return self._pvt_ptr[0].op.ptr.rowLength
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_9rowLength___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_9rowLength___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8273
 *     @property
 *     def rowLength(self):
 *         return self._pvt_ptr[0].op.ptr.rowLength             # <<<<<<<<<<<<<<
 *     @rowLength.setter
 *     def rowLength(self, size_t rowLength):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).op.ptr.rowLength); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8271
 *         _cptr = _HelperInputVoidPtr(ptr)
 *         self._pvt_ptr[0].op.ptr.ptr = <void*><void_ptr>_cptr.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def rowLength(self):
 *         return self._pvt_ptr[0].op.ptr.rowLength
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.rowLength.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8274
 *     def rowLength(self):
 *         return self._pvt_ptr[0].op.ptr.rowLength
 *     @rowLength.setter             # <<<<<<<<<<<<<<
 *     def rowLength(self, size_t rowLength):
 *         self._pvt_ptr[0].op.ptr.rowLength = rowLength
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_rowLength); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_rowLength) {
  size_t __pyx_v_rowLength;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_rowLength); {
    __pyx_v_rowLength = __Pyx_PyLong_As_size_t(__pyx_arg_rowLength); if (unlikely((__pyx_v_rowLength == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8275, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.rowLength.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self), ((size_t)__pyx_v_rowLength));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, size_t __pyx_v_rowLength) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8276
 *     @rowLength.setter
 *     def rowLength(self, size_t rowLength):
 *         self._pvt_ptr[0].op.ptr.rowLength = rowLength             # <<<<<<<<<<<<<<
 *     @property
 *     def layerHeight(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).op.ptr.rowLength = __pyx_v_rowLength;

  /* "cuda/bindings/runtime.pyx":8274
 *     def rowLength(self):
 *         return self._pvt_ptr[0].op.ptr.rowLength
 *     @rowLength.setter             # <<<<<<<<<<<<<<
 *     def rowLength(self, size_t rowLength):
 *         self._pvt_ptr[0].op.ptr.rowLength = rowLength
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8277
 *     def rowLength(self, size_t rowLength):
 *         self._pvt_ptr[0].op.ptr.rowLength = rowLength
 *     @property             # <<<<<<<<<<<<<<
 *     def layerHeight(self):
 *         return self._pvt_ptr[0].op.ptr.layerHeight
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8279
 *     @property
 *     def layerHeight(self):
 *         return self._pvt_ptr[0].op.ptr.layerHeight             # <<<<<<<<<<<<<<
 *     @layerHeight.setter
 *     def layerHeight(self, size_t layerHeight):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).op.ptr.layerHeight); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8277
 *     def rowLength(self, size_t rowLength):
 *         self._pvt_ptr[0].op.ptr.rowLength = rowLength
 *     @property             # <<<<<<<<<<<<<<
 *     def layerHeight(self):
 *         return self._pvt_ptr[0].op.ptr.layerHeight
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.layerHeight.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8280
 *     def layerHeight(self):
 *         return self._pvt_ptr[0].op.ptr.layerHeight
 *     @layerHeight.setter             # <<<<<<<<<<<<<<
 *     def layerHeight(self, size_t layerHeight):
 *         self._pvt_ptr[0].op.ptr.layerHeight = layerHeight
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_layerHeight); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_layerHeight) {
  size_t __pyx_v_layerHeight;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_layerHeight); {
    __pyx_v_layerHeight = __Pyx_PyLong_As_size_t(__pyx_arg_layerHeight); if (unlikely((__pyx_v_layerHeight == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 8281, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.layerHeight.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self), ((size_t)__pyx_v_layerHeight));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, size_t __pyx_v_layerHeight) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8282
 *     @layerHeight.setter
 *     def layerHeight(self, size_t layerHeight):
 *         self._pvt_ptr[0].op.ptr.layerHeight = layerHeight             # <<<<<<<<<<<<<<
 *     @property
 *     def locHint(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).op.ptr.layerHeight = __pyx_v_layerHeight;

  /* "cuda/bindings/runtime.pyx":8280
 *     def layerHeight(self):
 *         return self._pvt_ptr[0].op.ptr.layerHeight
 *     @layerHeight.setter             # <<<<<<<<<<<<<<
 *     def layerHeight(self, size_t layerHeight):
 *         self._pvt_ptr[0].op.ptr.layerHeight = layerHeight
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8283
 *     def layerHeight(self, size_t layerHeight):
 *         self._pvt_ptr[0].op.ptr.layerHeight = layerHeight
 *     @property             # <<<<<<<<<<<<<<
 *     def locHint(self):
 *         return self._locHint
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7locHint_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7locHint_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_7locHint___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_7locHint___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8285
 *     @property
 *     def locHint(self):
 *         return self._locHint             # <<<<<<<<<<<<<<
 *     @locHint.setter
 *     def locHint(self, locHint not None : cudaMemLocation):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_locHint);
  __pyx_r = ((PyObject *)__pyx_v_self->_locHint);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8283
 *     def layerHeight(self, size_t layerHeight):
 *         self._pvt_ptr[0].op.ptr.layerHeight = layerHeight
 *     @property             # <<<<<<<<<<<<<<
 *     def locHint(self):
 *         return self._locHint
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8286
 *     def locHint(self):
 *         return self._locHint
 *     @locHint.setter             # <<<<<<<<<<<<<<
 *     def locHint(self, locHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].op.ptr.locHint, <cyruntime.cudaMemLocation*><void_ptr>locHint.getPtr(), sizeof(self._pvt_ptr[0].op.ptr.locHint))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7locHint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_locHint); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7locHint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_locHint) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_locHint), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 0, "locHint", 0))) __PYX_ERR(0, 8287, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_7locHint_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_v_locHint));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_7locHint_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_locHint) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8288
 *     @locHint.setter
 *     def locHint(self, locHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].op.ptr.locHint, <cyruntime.cudaMemLocation*><void_ptr>locHint.getPtr(), sizeof(self._pvt_ptr[0].op.ptr.locHint))             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct7:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_locHint);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8288, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).op.ptr.locHint), ((struct cudaMemLocation *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).op.ptr.locHint))));

  /* "cuda/bindings/runtime.pyx":8286
 *     def locHint(self):
 *         return self._locHint
 *     @locHint.setter             # <<<<<<<<<<<<<<
 *     def locHint(self, locHint not None : cudaMemLocation):
 *         string.memcpy(&self._pvt_ptr[0].op.ptr.locHint, <cyruntime.cudaMemLocation*><void_ptr>locHint.getPtr(), sizeof(self._pvt_ptr[0].op.ptr.locHint))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.locHint.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct6_10__reduce_cython__, "anon_struct6.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct6_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct6_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct6_12__setstate_cython__, "anon_struct6.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct6_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct6_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct6.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct6_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct6.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8304
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8304, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8304, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8304, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 8304, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8304, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8304, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8304, __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.runtime.anon_struct7.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8305
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaMemcpy3DOperand *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":8304
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8307
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].op.array.array)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8307, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8307, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8307, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 8307, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8307, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8307, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8307, __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.runtime.anon_struct7.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":8309
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].op.array.array)             # <<<<<<<<<<<<<<
 *         self._offset = cudaOffset3D(_ptr=<void_ptr>&self._pvt_ptr[0].op.array.offset)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).op.array.array))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8309, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8309, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_array);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_array);
  __pyx_v_self->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8310
 *         pass
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].op.array.array)
 *         self._offset = cudaOffset3D(_ptr=<void_ptr>&self._pvt_ptr[0].op.array.offset)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).op.array.offset))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8310, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8310, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8310, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_offset);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_offset);
  __pyx_v_self->_offset = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8307
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].op.array.array)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8311
 *         self._array = cudaArray_t(_ptr=<void_ptr>&self._pvt_ptr[0].op.array.array)
 *         self._offset = cudaOffset3D(_ptr=<void_ptr>&self._pvt_ptr[0].op.array.offset)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8313
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op.array
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct7_6getPtr, "anon_struct7.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct7_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct7_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8314
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op.array             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).op.array))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8313
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op.array
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8315
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op.array
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr121__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8316
 *         return <void_ptr>&self._pvt_ptr[0].op.array
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8317
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['array : ' + str(self.array)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8318
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8319
 *             str_list = []
 *             try:
 *                 str_list += ['array : ' + str(self.array)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_array_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8319, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8319, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_array, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8319, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8319, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8319, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8319, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8318
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":8320
 *             try:
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8320, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":8321
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['offset :\n' + '\n'.join(['    ' + line for line in str(self.offset).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8321, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_array_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_array_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_array_ValueError) != (0)) __PYX_ERR(0, 8321, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8321, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8318
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : ' + str(self.array)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8322
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset :\n' + '\n'.join(['    ' + line for line in str(self.offset).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8323
 *                 str_list += ['array : <ValueError>']
 *             try:
 *                 str_list += ['offset :\n' + '\n'.join(['    ' + line for line in str(self.offset).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8323, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_offset_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8323, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8323, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8323, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8323, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8323, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr121__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr121__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8323, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8323, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr121__pyx_v_line); __pyx_10genexpr121__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr121__pyx_v_line); __pyx_10genexpr121__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8323, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_offset, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8323, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8323, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 8323, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8323, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":8322
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset :\n' + '\n'.join(['    ' + line for line in str(self.offset).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8324
 *             try:
 *                 str_list += ['offset :\n' + '\n'.join(['    ' + line for line in str(self.offset).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8324, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8325
 *                 str_list += ['offset :\n' + '\n'.join(['    ' + line for line in str(self.offset).splitlines()])]
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8325, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_offset_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_offset_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_offset_ValueError) != (0)) __PYX_ERR(0, 8325, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8325, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":8322
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset :\n' + '\n'.join(['    ' + line for line in str(self.offset).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8326
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8326, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8316
 *         return <void_ptr>&self._pvt_ptr[0].op.array
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8328
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def array(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8315
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op.array
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr121__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8329
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def array(self):
 *         return self._array
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5array_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5array_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_5array___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_5array___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8331
 *     @property
 *     def array(self):
 *         return self._array             # <<<<<<<<<<<<<<
 *     @array.setter
 *     def array(self, array):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_array);
  __pyx_r = ((PyObject *)__pyx_v_self->_array);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8329
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def array(self):
 *         return self._array
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8332
 *     def array(self):
 *         return self._array
 *     @array.setter             # <<<<<<<<<<<<<<
 *     def array(self, array):
 *         cdef cyruntime.cudaArray_t cyarray
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_5array_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self), ((PyObject *)__pyx_v_array));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_5array_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, PyObject *__pyx_v_array) {
  cudaArray_t __pyx_v_cyarray;
  PyObject *__pyx_v_parray = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8335
 *     def array(self, array):
 *         cdef cyruntime.cudaArray_t cyarray
 *         if array is None:             # <<<<<<<<<<<<<<
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_array == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8336
 *         cdef cyruntime.cudaArray_t cyarray
 *         if array is None:
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(array, (cudaArray_t,)):
 *             parray = int(array)
*/
    __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":8335
 *     def array(self, array):
 *         cdef cyruntime.cudaArray_t cyarray
 *         if array is None:             # <<<<<<<<<<<<<<
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8337
 *         if array is None:
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             parray = int(array)
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8338
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):
 *             parray = int(array)             # <<<<<<<<<<<<<<
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8338, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_parray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8339
 *         elif isinstance(array, (cudaArray_t,)):
 *             parray = int(array)
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *         else:
 *             parray = int(cudaArray_t(array))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8339, __pyx_L1_error)
    __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":8337
 *         if array is None:
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>0
 *         elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *             parray = int(array)
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8341
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         else:
 *             parray = int(cudaArray_t(array))             # <<<<<<<<<<<<<<
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         self._array._pvt_ptr[0] = cyarray
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_array};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8341, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_parray = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":8342
 *         else:
 *             parray = int(cudaArray_t(array))
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *         self._array._pvt_ptr[0] = cyarray
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8342, __pyx_L1_error)
    __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":8343
 *             parray = int(cudaArray_t(array))
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         self._array._pvt_ptr[0] = cyarray             # <<<<<<<<<<<<<<
 *     @property
 *     def offset(self):
*/
  (__pyx_v_self->_array->_pvt_ptr[0]) = __pyx_v_cyarray;

  /* "cuda/bindings/runtime.pyx":8332
 *     def array(self):
 *         return self._array
 *     @array.setter             # <<<<<<<<<<<<<<
 *     def array(self, array):
 *         cdef cyruntime.cudaArray_t cyarray
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.array.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parray);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8344
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         self._array._pvt_ptr[0] = cyarray
 *     @property             # <<<<<<<<<<<<<<
 *     def offset(self):
 *         return self._offset
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_6offset_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_6offset_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6offset___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6offset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8346
 *     @property
 *     def offset(self):
 *         return self._offset             # <<<<<<<<<<<<<<
 *     @offset.setter
 *     def offset(self, offset not None : cudaOffset3D):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_offset);
  __pyx_r = ((PyObject *)__pyx_v_self->_offset);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8344
 *             cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *         self._array._pvt_ptr[0] = cyarray
 *     @property             # <<<<<<<<<<<<<<
 *     def offset(self):
 *         return self._offset
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8347
 *     def offset(self):
 *         return self._offset
 *     @offset.setter             # <<<<<<<<<<<<<<
 *     def offset(self, offset not None : cudaOffset3D):
 *         string.memcpy(&self._pvt_ptr[0].op.array.offset, <cyruntime.cudaOffset3D*><void_ptr>offset.getPtr(), sizeof(self._pvt_ptr[0].op.array.offset))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_offset); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_offset) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_offset), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D, 0, "offset", 0))) __PYX_ERR(0, 8348, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6offset_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)__pyx_v_offset));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_6offset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *__pyx_v_offset) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8349
 *     @offset.setter
 *     def offset(self, offset not None : cudaOffset3D):
 *         string.memcpy(&self._pvt_ptr[0].op.array.offset, <cyruntime.cudaOffset3D*><void_ptr>offset.getPtr(), sizeof(self._pvt_ptr[0].op.array.offset))             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union1:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_offset);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).op.array.offset), ((struct cudaOffset3D *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).op.array.offset))));

  /* "cuda/bindings/runtime.pyx":8347
 *     def offset(self):
 *         return self._offset
 *     @offset.setter             # <<<<<<<<<<<<<<
 *     def offset(self, offset not None : cudaOffset3D):
 *         string.memcpy(&self._pvt_ptr[0].op.array.offset, <cyruntime.cudaOffset3D*><void_ptr>offset.getPtr(), sizeof(self._pvt_ptr[0].op.array.offset))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct7_10__reduce_cython__, "anon_struct7.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct7_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct7_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct7_12__setstate_cython__, "anon_struct7.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct7_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct7_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct7.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct7_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct7.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8365
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8365, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8365, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8365, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 8365, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8365, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8365, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8365, __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.runtime.anon_union1.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union1___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8366
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaMemcpy3DOperand *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":8365
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8368
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._ptr = anon_struct6(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8368, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8368, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8368, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 8368, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8368, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8368, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 8368, __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.runtime.anon_union1.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":8370
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._ptr = anon_struct6(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._array = anon_struct7(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8370, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8370, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_ptr);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_ptr);
  __pyx_v_self->_ptr = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8371
 *         pass
 *         self._ptr = anon_struct6(_ptr=<void_ptr>self._pvt_ptr)
 *         self._array = anon_struct7(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8371, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8371, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8371, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_array);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_array);
  __pyx_v_self->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8368
 *         self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._ptr = anon_struct6(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8372
 *         self._ptr = anon_struct6(_ptr=<void_ptr>self._pvt_ptr)
 *         self._array = anon_struct7(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8374
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_7getPtr(PyObject *__pyx_v_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_7runtime_11anon_union1_6getPtr, "anon_union1.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union1_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union1_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8375
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).op))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8374
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8376
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr122__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr123__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8377
 *         return <void_ptr>&self._pvt_ptr[0].op
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8378
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ptr :\n' + '\n'.join(['    ' + line for line in str(self.ptr).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8379
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr :\n' + '\n'.join(['    ' + line for line in str(self.ptr).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8380
 *             str_list = []
 *             try:
 *                 str_list += ['ptr :\n' + '\n'.join(['    ' + line for line in str(self.ptr).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8380, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ptr); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8380, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8380, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8380, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8380, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8380, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr122__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr122__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8380, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8380, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr122__pyx_v_line); __pyx_10genexpr122__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr122__pyx_v_line); __pyx_10genexpr122__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8380, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ptr_4, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8380, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8380, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8380, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8380, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8379
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr :\n' + '\n'.join(['    ' + line for line in str(self.ptr).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8381
 *             try:
 *                 str_list += ['ptr :\n' + '\n'.join(['    ' + line for line in str(self.ptr).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 8381, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8382
 *                 str_list += ['ptr :\n' + '\n'.join(['    ' + line for line in str(self.ptr).splitlines()])]
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8382, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ptr_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ptr_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_ptr_ValueError) != (0)) __PYX_ERR(0, 8382, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8382, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8379
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ptr :\n' + '\n'.join(['    ' + line for line in str(self.ptr).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8383
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8384
 *                 str_list += ['ptr : <ValueError>']
 *             try:
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8384, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_array_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8384, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8384, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8384, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_7; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8384, __pyx_L27_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8384, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_10genexpr123__pyx_v_line, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr123__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8384, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 8384, __pyx_L27_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr123__pyx_v_line); __pyx_10genexpr123__pyx_v_line = 0;
          goto __pyx_L31_exit_scope;
          __pyx_L27_error:;
          __Pyx_XDECREF(__pyx_10genexpr123__pyx_v_line); __pyx_10genexpr123__pyx_v_line = 0;
          goto __pyx_L19_error;
          __pyx_L31_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8384, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_array_3, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8384, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8384, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8384, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8384, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8383
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8385
 *             try:
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['array : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8385, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8386
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8386, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_array_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_array_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_array_ValueError) != (0)) __PYX_ERR(0, 8386, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8386, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":8383
 *             except ValueError:
 *                 str_list += ['ptr : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['array :\n' + '\n'.join(['    ' + line for line in str(self.array).splitlines()])]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8387
 *             except ValueError:
 *                 str_list += ['array : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8387, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8377
 *         return <void_ptr>&self._pvt_ptr[0].op
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8389
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def ptr(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8376
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].op
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr122__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr123__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8390
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def ptr(self):
 *         return self._ptr
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3ptr_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3ptr_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_3ptr___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_3ptr___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8392
 *     @property
 *     def ptr(self):
 *         return self._ptr             # <<<<<<<<<<<<<<
 *     @ptr.setter
 *     def ptr(self, ptr not None : anon_struct6):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_ptr);
  __pyx_r = ((PyObject *)__pyx_v_self->_ptr);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8390
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def ptr(self):
 *         return self._ptr
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8393
 *     def ptr(self):
 *         return self._ptr
 *     @ptr.setter             # <<<<<<<<<<<<<<
 *     def ptr(self, ptr not None : anon_struct6):
 *         string.memcpy(&self._pvt_ptr[0].op.ptr, <cyruntime.anon_struct6*><void_ptr>ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ptr); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3ptr_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ptr) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_ptr), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6, 0, "ptr", 0))) __PYX_ERR(0, 8394, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_3ptr_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)__pyx_v_ptr));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_3ptr_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *__pyx_v_ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8395
 *     @ptr.setter
 *     def ptr(self, ptr not None : anon_struct6):
 *         string.memcpy(&self._pvt_ptr[0].op.ptr, <cyruntime.anon_struct6*><void_ptr>ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr))             # <<<<<<<<<<<<<<
 *     @property
 *     def array(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_ptr);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8395, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).op.ptr), ((struct anon_struct6 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).op.ptr))));

  /* "cuda/bindings/runtime.pyx":8393
 *     def ptr(self):
 *         return self._ptr
 *     @ptr.setter             # <<<<<<<<<<<<<<
 *     def ptr(self, ptr not None : anon_struct6):
 *         string.memcpy(&self._pvt_ptr[0].op.ptr, <cyruntime.anon_struct6*><void_ptr>ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.ptr.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8396
 *     def ptr(self, ptr not None : anon_struct6):
 *         string.memcpy(&self._pvt_ptr[0].op.ptr, <cyruntime.anon_struct6*><void_ptr>ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr))
 *     @property             # <<<<<<<<<<<<<<
 *     def array(self):
 *         return self._array
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5array_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5array_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_5array___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_5array___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8398
 *     @property
 *     def array(self):
 *         return self._array             # <<<<<<<<<<<<<<
 *     @array.setter
 *     def array(self, array not None : anon_struct7):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_array);
  __pyx_r = ((PyObject *)__pyx_v_self->_array);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8396
 *     def ptr(self, ptr not None : anon_struct6):
 *         string.memcpy(&self._pvt_ptr[0].op.ptr, <cyruntime.anon_struct6*><void_ptr>ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr))
 *     @property             # <<<<<<<<<<<<<<
 *     def array(self):
 *         return self._array
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8399
 *     def array(self):
 *         return self._array
 *     @array.setter             # <<<<<<<<<<<<<<
 *     def array(self, array not None : anon_struct7):
 *         string.memcpy(&self._pvt_ptr[0].op.array, <cyruntime.anon_struct7*><void_ptr>array.getPtr(), sizeof(self._pvt_ptr[0].op.array))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5array_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_array) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_array), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7, 0, "array", 0))) __PYX_ERR(0, 8400, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_5array_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)__pyx_v_array));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_5array_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *__pyx_v_array) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8401
 *     @array.setter
 *     def array(self, array not None : anon_struct7):
 *         string.memcpy(&self._pvt_ptr[0].op.array, <cyruntime.anon_struct7*><void_ptr>array.getPtr(), sizeof(self._pvt_ptr[0].op.array))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemcpy3DOperand:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_array);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8401, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8401, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).op.array), ((struct anon_struct7 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).op.array))));

  /* "cuda/bindings/runtime.pyx":8399
 *     def array(self):
 *         return self._array
 *     @array.setter             # <<<<<<<<<<<<<<
 *     def array(self, array not None : anon_struct7):
 *         string.memcpy(&self._pvt_ptr[0].op.array, <cyruntime.anon_struct7*><void_ptr>array.getPtr(), sizeof(self._pvt_ptr[0].op.array))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.array.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_11anon_union1_10__reduce_cython__, "anon_union1.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union1_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union1_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_11anon_union1_12__setstate_cython__, "anon_union1.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union1_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union1_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union1.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union1_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union1_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union1.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8419
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaMemcpy3DOperand *>calloc(1, sizeof(cyruntime.cudaMemcpy3DOperand))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8419, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8419, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8419, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8419, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8419, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8419, __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.runtime.cudaMemcpy3DOperand.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct cudaMemcpy3DOperand *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":8420
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaMemcpy3DOperand *>calloc(1, sizeof(cyruntime.cudaMemcpy3DOperand))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8421
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaMemcpy3DOperand *>calloc(1, sizeof(cyruntime.cudaMemcpy3DOperand))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct cudaMemcpy3DOperand *)calloc(1, (sizeof(struct cudaMemcpy3DOperand))));

    /* "cuda/bindings/runtime.pyx":8422
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaMemcpy3DOperand *>calloc(1, sizeof(cyruntime.cudaMemcpy3DOperand))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":8420
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaMemcpy3DOperand *>calloc(1, sizeof(cyruntime.cudaMemcpy3DOperand))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8424
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemcpy3DOperand *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":8419
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaMemcpy3DOperand *>calloc(1, sizeof(cyruntime.cudaMemcpy3DOperand))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8425
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._op = anon_union1(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8425, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8425, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8425, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8425, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8425, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8425, __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.runtime.cudaMemcpy3DOperand.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":8427
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._op = anon_union1(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8427, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8427, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_op);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_op);
  __pyx_v_self->_op = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8425
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DOperand *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._op = anon_union1(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8428
 *         pass
 *         self._op = anon_union1(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":8429
 *         self._op = anon_union1(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8430
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":8429
 *         self._op = anon_union1(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":8428
 *         pass
 *         self._op = anon_union1(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8431
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_7getPtr(PyObject *__pyx_v_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_7runtime_19cudaMemcpy3DOperand_6getPtr, "cudaMemcpy3DOperand.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8432
 *             free(self._val_ptr)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8431
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8433
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr124__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8434
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8435
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8436
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8437
 *             str_list = []
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8437, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8437, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8437, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8437, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8437, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8437, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8436
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":8438
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 8438, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":8439
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['op :\n' + '\n'.join(['    ' + line for line in str(self.op).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8439, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 8439, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8439, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8436
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8440
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['op :\n' + '\n'.join(['    ' + line for line in str(self.op).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8441
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['op :\n' + '\n'.join(['    ' + line for line in str(self.op).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['op : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8441, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_op_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8441, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8441, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8441, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8441, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8441, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr124__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr124__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8441, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8441, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr124__pyx_v_line); __pyx_10genexpr124__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr124__pyx_v_line); __pyx_10genexpr124__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8441, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_op, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8441, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8441, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 8441, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 8441, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":8440
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['op :\n' + '\n'.join(['    ' + line for line in str(self.op).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":8442
 *             try:
 *                 str_list += ['op :\n' + '\n'.join(['    ' + line for line in str(self.op).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['op : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8442, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8443
 *                 str_list += ['op :\n' + '\n'.join(['    ' + line for line in str(self.op).splitlines()])]
 *             except ValueError:
 *                 str_list += ['op : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8443, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_op_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_op_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_op_ValueError) != (0)) __PYX_ERR(0, 8443, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 8443, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":8440
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['op :\n' + '\n'.join(['    ' + line for line in str(self.op).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8444
 *             except ValueError:
 *                 str_list += ['op : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8434
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8446
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8433
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr124__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8447
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemcpy3DOperandType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8449
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemcpy3DOperandType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemcpy3DOperandType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemcpy3DOperandType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpy3DOperandType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 8449, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":8450
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemcpy3DOperandType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemcpy3DOperandType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8449
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemcpy3DOperandType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemcpy3DOperandType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":8451
 *         if self._pvt_ptr[0].type not in _dict_cudaMemcpy3DOperandType:
 *             return None
 *         return _dict_cudaMemcpy3DOperandType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaMemcpy3DOperandType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpy3DOperandType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemcpy3DOperandType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8447
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaMemcpy3DOperandType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8452
 *             return None
 *         return _dict_cudaMemcpy3DOperandType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaMemcpy3DOperandType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 8453, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemcpy3DOperandType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8454
 *     @type.setter
 *     def type(self, type not None : cudaMemcpy3DOperandType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def op(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemcpy3DOperandType)__Pyx_PyLong_As_enum__cudaMemcpy3DOperandType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8454, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":8452
 *             return None
 *         return _dict_cudaMemcpy3DOperandType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaMemcpy3DOperandType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8455
 *     def type(self, type not None : cudaMemcpy3DOperandType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def op(self):
 *         return self._op
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8457
 *     @property
 *     def op(self):
 *         return self._op             # <<<<<<<<<<<<<<
 *     @op.setter
 *     def op(self, op not None : anon_union1):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_op);
  __pyx_r = ((PyObject *)__pyx_v_self->_op);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8455
 *     def type(self, type not None : cudaMemcpy3DOperandType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def op(self):
 *         return self._op
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8458
 *     def op(self):
 *         return self._op
 *     @op.setter             # <<<<<<<<<<<<<<
 *     def op(self, op not None : anon_union1):
 *         string.memcpy(&self._pvt_ptr[0].op, <cyruntime.anon_union1*><void_ptr>op.getPtr(), sizeof(self._pvt_ptr[0].op))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_op); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_op) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_op), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1, 0, "op", 0))) __PYX_ERR(0, 8459, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)__pyx_v_op));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *__pyx_v_op) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8460
 *     @op.setter
 *     def op(self, op not None : anon_union1):
 *         string.memcpy(&self._pvt_ptr[0].op, <cyruntime.anon_union1*><void_ptr>op.getPtr(), sizeof(self._pvt_ptr[0].op))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemcpy3DBatchOp:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_op);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8460, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8460, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).op), ((union anon_union1 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).op))));

  /* "cuda/bindings/runtime.pyx":8458
 *     def op(self):
 *         return self._op
 *     @op.setter             # <<<<<<<<<<<<<<
 *     def op(self, op not None : anon_union1):
 *         string.memcpy(&self._pvt_ptr[0].op, <cyruntime.anon_union1*><void_ptr>op.getPtr(), sizeof(self._pvt_ptr[0].op))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.op.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_19cudaMemcpy3DOperand_10__reduce_cython__, "cudaMemcpy3DOperand.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_19cudaMemcpy3DOperand_12__setstate_cython__, "cudaMemcpy3DOperand.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemcpy3DOperand.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DOperand.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8483
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8483, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8483, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8483, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8483, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8483, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8483, __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.runtime.cudaMemcpy3DBatchOp.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":8484
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8485
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DBatchOp *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":8484
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8487
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DBatchOp *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemcpy3DBatchOp *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":8483
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8488
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DBatchOp *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._src = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].src)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8488, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8488, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8488, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8488, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8488, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8488, __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.runtime.cudaMemcpy3DBatchOp.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":8490
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._src = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].src)             # <<<<<<<<<<<<<<
 *         self._dst = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].dst)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).src))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8490, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8490, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8490, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_src);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_src);
  __pyx_v_self->_src = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8491
 *         pass
 *         self._src = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].src)
 *         self._dst = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].dst)             # <<<<<<<<<<<<<<
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).dst))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8491, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8491, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_dst);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_dst);
  __pyx_v_self->_dst = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8492
 *         self._src = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].src)
 *         self._dst = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].dst)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).extent))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8492, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8492, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8492, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_extent);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_extent);
  __pyx_v_self->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8488
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemcpy3DBatchOp *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._src = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].src)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8493
 *         self._dst = cudaMemcpy3DOperand(_ptr=<void_ptr>&self._pvt_ptr[0].dst)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8495
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_7getPtr(PyObject *__pyx_v_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_7runtime_19cudaMemcpy3DBatchOp_6getPtr, "cudaMemcpy3DBatchOp.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8496
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8495
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8497
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr125__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr126__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr127__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8498
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8499
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['src :\n' + '\n'.join(['    ' + line for line in str(self.src).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8499, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8500
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['src :\n' + '\n'.join(['    ' + line for line in str(self.src).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8501
 *             str_list = []
 *             try:
 *                 str_list += ['src :\n' + '\n'.join(['    ' + line for line in str(self.src).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['src : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8501, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_src_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8501, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8501, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8501, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8501, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8501, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr125__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr125__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8501, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 8501, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr125__pyx_v_line); __pyx_10genexpr125__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr125__pyx_v_line); __pyx_10genexpr125__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8501, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_src, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8501, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8501, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8501, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8501, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8500
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['src :\n' + '\n'.join(['    ' + line for line in str(self.src).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8502
 *             try:
 *                 str_list += ['src :\n' + '\n'.join(['    ' + line for line in str(self.src).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['src : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 8502, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8503
 *                 str_list += ['src :\n' + '\n'.join(['    ' + line for line in str(self.src).splitlines()])]
 *             except ValueError:
 *                 str_list += ['src : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dst :\n' + '\n'.join(['    ' + line for line in str(self.dst).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8503, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_src_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_src_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_src_ValueError) != (0)) __PYX_ERR(0, 8503, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8503, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8500
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['src :\n' + '\n'.join(['    ' + line for line in str(self.src).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8504
 *             except ValueError:
 *                 str_list += ['src : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst :\n' + '\n'.join(['    ' + line for line in str(self.dst).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8505
 *                 str_list += ['src : <ValueError>']
 *             try:
 *                 str_list += ['dst :\n' + '\n'.join(['    ' + line for line in str(self.dst).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8505, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dst_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8505, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8505, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8505, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_7; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8505, __pyx_L27_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8505, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_10genexpr126__pyx_v_line, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr126__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8505, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 8505, __pyx_L27_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr126__pyx_v_line); __pyx_10genexpr126__pyx_v_line = 0;
          goto __pyx_L31_exit_scope;
          __pyx_L27_error:;
          __Pyx_XDECREF(__pyx_10genexpr126__pyx_v_line); __pyx_10genexpr126__pyx_v_line = 0;
          goto __pyx_L19_error;
          __pyx_L31_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8505, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dst_3, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8505, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8505, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8505, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8505, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8504
 *             except ValueError:
 *                 str_list += ['src : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst :\n' + '\n'.join(['    ' + line for line in str(self.dst).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8506
 *             try:
 *                 str_list += ['dst :\n' + '\n'.join(['    ' + line for line in str(self.dst).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8506, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8507
 *                 str_list += ['dst :\n' + '\n'.join(['    ' + line for line in str(self.dst).splitlines()])]
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8507, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dst_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dst_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_dst_ValueError) != (0)) __PYX_ERR(0, 8507, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8507, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":8504
 *             except ValueError:
 *                 str_list += ['src : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dst :\n' + '\n'.join(['    ' + line for line in str(self.dst).splitlines()])]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8508
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8509
 *                 str_list += ['dst : <ValueError>']
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8509, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extent_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8509, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8509, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8509, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_2; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8509, __pyx_L42_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8509, __pyx_L42_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr127__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr127__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8509, __pyx_L42_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 8509, __pyx_L42_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr127__pyx_v_line); __pyx_10genexpr127__pyx_v_line = 0;
          goto __pyx_L46_exit_scope;
          __pyx_L42_error:;
          __Pyx_XDECREF(__pyx_10genexpr127__pyx_v_line); __pyx_10genexpr127__pyx_v_line = 0;
          goto __pyx_L34_error;
          __pyx_L46_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8509, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extent, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8509, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8509, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8509, __pyx_L34_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8509, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8508
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L39_try_end;
      __pyx_L34_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8510
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 8510, __pyx_L36_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":8511
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8511, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extent_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extent_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_extent_ValueError) != (0)) __PYX_ERR(0, 8511, __pyx_L36_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8511, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L35_exception_handled;
      }
      goto __pyx_L36_except_error;

      /* "cuda/bindings/runtime.pyx":8508
 *             except ValueError:
 *                 str_list += ['dst : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
      __pyx_L36_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L35_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L39_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8512
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8513
 *                 str_list += ['extent : <ValueError>']
 *             try:
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_srcAccessOrder_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8513, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8513, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_srcAccessOrder, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8513, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8513, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8513, __pyx_L49_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8513, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8512
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L54_try_end;
      __pyx_L49_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8514
 *             try:
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 8514, __pyx_L51_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8515
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8515, __pyx_L51_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_srcAccessOrder_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_srcAccessOrder_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_srcAccessOrder_ValueError) != (0)) __PYX_ERR(0, 8515, __pyx_L51_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8515, __pyx_L51_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L50_exception_handled;
      }
      goto __pyx_L51_except_error;

      /* "cuda/bindings/runtime.pyx":8512
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)]
 *             except ValueError:
*/
      __pyx_L51_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L50_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L54_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8516
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8517
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8517, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8517, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8517, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8517, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8517, __pyx_L57_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8517, __pyx_L57_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8516
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L62_try_end;
      __pyx_L57_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8518
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 8518, __pyx_L59_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":8519
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8519, __pyx_L59_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 8519, __pyx_L59_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8519, __pyx_L59_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L58_exception_handled;
      }
      goto __pyx_L59_except_error;

      /* "cuda/bindings/runtime.pyx":8516
 *             except ValueError:
 *                 str_list += ['srcAccessOrder : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L59_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L58_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L62_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8520
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8498
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8522
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def src(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8497
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr125__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr126__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr127__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8523
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def src(self):
 *         return self._src
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8525
 *     @property
 *     def src(self):
 *         return self._src             # <<<<<<<<<<<<<<
 *     @src.setter
 *     def src(self, src not None : cudaMemcpy3DOperand):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_src);
  __pyx_r = ((PyObject *)__pyx_v_self->_src);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8523
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def src(self):
 *         return self._src
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8526
 *     def src(self):
 *         return self._src
 *     @src.setter             # <<<<<<<<<<<<<<
 *     def src(self, src not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].src, <cyruntime.cudaMemcpy3DOperand*><void_ptr>src.getPtr(), sizeof(self._pvt_ptr[0].src))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_src); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_src) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_src), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, 0, "src", 0))) __PYX_ERR(0, 8527, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_src));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_src) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8528
 *     @src.setter
 *     def src(self, src not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].src, <cyruntime.cudaMemcpy3DOperand*><void_ptr>src.getPtr(), sizeof(self._pvt_ptr[0].src))             # <<<<<<<<<<<<<<
 *     @property
 *     def dst(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_src);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8528, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).src), ((struct cudaMemcpy3DOperand *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).src))));

  /* "cuda/bindings/runtime.pyx":8526
 *     def src(self):
 *         return self._src
 *     @src.setter             # <<<<<<<<<<<<<<
 *     def src(self, src not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].src, <cyruntime.cudaMemcpy3DOperand*><void_ptr>src.getPtr(), sizeof(self._pvt_ptr[0].src))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.src.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8529
 *     def src(self, src not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].src, <cyruntime.cudaMemcpy3DOperand*><void_ptr>src.getPtr(), sizeof(self._pvt_ptr[0].src))
 *     @property             # <<<<<<<<<<<<<<
 *     def dst(self):
 *         return self._dst
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8531
 *     @property
 *     def dst(self):
 *         return self._dst             # <<<<<<<<<<<<<<
 *     @dst.setter
 *     def dst(self, dst not None : cudaMemcpy3DOperand):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_dst);
  __pyx_r = ((PyObject *)__pyx_v_self->_dst);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8529
 *     def src(self, src not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].src, <cyruntime.cudaMemcpy3DOperand*><void_ptr>src.getPtr(), sizeof(self._pvt_ptr[0].src))
 *     @property             # <<<<<<<<<<<<<<
 *     def dst(self):
 *         return self._dst
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8532
 *     def dst(self):
 *         return self._dst
 *     @dst.setter             # <<<<<<<<<<<<<<
 *     def dst(self, dst not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].dst, <cyruntime.cudaMemcpy3DOperand*><void_ptr>dst.getPtr(), sizeof(self._pvt_ptr[0].dst))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dst); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dst) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_dst), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, 0, "dst", 0))) __PYX_ERR(0, 8533, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)__pyx_v_dst));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *__pyx_v_dst) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8534
 *     @dst.setter
 *     def dst(self, dst not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].dst, <cyruntime.cudaMemcpy3DOperand*><void_ptr>dst.getPtr(), sizeof(self._pvt_ptr[0].dst))             # <<<<<<<<<<<<<<
 *     @property
 *     def extent(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_dst);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8534, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).dst), ((struct cudaMemcpy3DOperand *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).dst))));

  /* "cuda/bindings/runtime.pyx":8532
 *     def dst(self):
 *         return self._dst
 *     @dst.setter             # <<<<<<<<<<<<<<
 *     def dst(self, dst not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].dst, <cyruntime.cudaMemcpy3DOperand*><void_ptr>dst.getPtr(), sizeof(self._pvt_ptr[0].dst))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.dst.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8535
 *     def dst(self, dst not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].dst, <cyruntime.cudaMemcpy3DOperand*><void_ptr>dst.getPtr(), sizeof(self._pvt_ptr[0].dst))
 *     @property             # <<<<<<<<<<<<<<
 *     def extent(self):
 *         return self._extent
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8537
 *     @property
 *     def extent(self):
 *         return self._extent             # <<<<<<<<<<<<<<
 *     @extent.setter
 *     def extent(self, extent not None : cudaExtent):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_extent);
  __pyx_r = ((PyObject *)__pyx_v_self->_extent);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8535
 *     def dst(self, dst not None : cudaMemcpy3DOperand):
 *         string.memcpy(&self._pvt_ptr[0].dst, <cyruntime.cudaMemcpy3DOperand*><void_ptr>dst.getPtr(), sizeof(self._pvt_ptr[0].dst))
 *     @property             # <<<<<<<<<<<<<<
 *     def extent(self):
 *         return self._extent
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8538
 *     def extent(self):
 *         return self._extent
 *     @extent.setter             # <<<<<<<<<<<<<<
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 8539, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_extent));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8540
 *     @extent.setter
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))             # <<<<<<<<<<<<<<
 *     @property
 *     def srcAccessOrder(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_extent);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8540, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).extent), ((struct cudaExtent *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).extent))));

  /* "cuda/bindings/runtime.pyx":8538
 *     def extent(self):
 *         return self._extent
 *     @extent.setter             # <<<<<<<<<<<<<<
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.extent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8541
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
 *     @property             # <<<<<<<<<<<<<<
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8543
 *     @property
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder((__pyx_v_self->_pvt_ptr[0]).srcAccessOrder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpySrcAccessOrder); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 8543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":8544
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
 *     @srcAccessOrder.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8543
 *     @property
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
*/
  }

  /* "cuda/bindings/runtime.pyx":8545
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]             # <<<<<<<<<<<<<<
 *     @srcAccessOrder.setter
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpySrcAccessOrder); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder((__pyx_v_self->_pvt_ptr[0]).srcAccessOrder); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8541
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
 *     @property             # <<<<<<<<<<<<<<
 *     def srcAccessOrder(self):
 *         if self._pvt_ptr[0].srcAccessOrder not in _dict_cudaMemcpySrcAccessOrder:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.srcAccessOrder.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8546
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
 *     @srcAccessOrder.setter             # <<<<<<<<<<<<<<
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcAccessOrder); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_srcAccessOrder) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_srcAccessOrder) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "srcAccessOrder"); __PYX_ERR(0, 8547, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self), ((PyObject *)__pyx_v_srcAccessOrder));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, PyObject *__pyx_v_srcAccessOrder) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaMemcpySrcAccessOrder __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":8548
 *     @srcAccessOrder.setter
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_srcAccessOrder, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaMemcpySrcAccessOrder)__Pyx_PyLong_As_enum__cudaMemcpySrcAccessOrder(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 8548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).srcAccessOrder = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":8546
 *             return None
 *         return _dict_cudaMemcpySrcAccessOrder[self._pvt_ptr[0].srcAccessOrder]
 *     @srcAccessOrder.setter             # <<<<<<<<<<<<<<
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.srcAccessOrder.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8549
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8551
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8549
 *     def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder):
 *         self._pvt_ptr[0].srcAccessOrder = srcAccessOrder.value
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8552
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8553, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":8554
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 * 
 * cdef class CUuuid_st:
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":8552
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_19cudaMemcpy3DBatchOp_10__reduce_cython__, "cudaMemcpy3DBatchOp.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_19cudaMemcpy3DBatchOp_12__setstate_cython__, "cudaMemcpy3DBatchOp.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemcpy3DBatchOp.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchOp.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8568
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8568, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8568, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8568, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8568, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8568, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8568, __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.runtime.CUuuid_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":8569
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8570
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.CUuuid_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":8569
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8572
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.CUuuid_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct CUuuid_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":8568
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8573
 *         else:
 *             self._pvt_ptr = <cyruntime.CUuuid_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8573, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8573, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8573, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8573, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8573, __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.runtime.CUuuid_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8575
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8577
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_7getPtr(PyObject *__pyx_v_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_7runtime_9CUuuid_st_6getPtr, "CUuuid_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_9CUuuid_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9CUuuid_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8578
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8577
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.CUuuid_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8579
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8580
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8581
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['bytes : ' + str(self.bytes.hex())]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8582
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytes : ' + str(self.bytes.hex())]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8583
 *             str_list = []
 *             try:
 *                 str_list += ['bytes : ' + str(self.bytes.hex())]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['bytes : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_bytes_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8583, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_6 = __pyx_t_7;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_8 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_hex, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8583, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8583, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_bytes, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8583, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8583, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 8583, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8583, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":8582
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytes : ' + str(self.bytes.hex())]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8584
 *             try:
 *                 str_list += ['bytes : ' + str(self.bytes.hex())]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytes : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.CUuuid_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 8584, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8585
 *                 str_list += ['bytes : ' + str(self.bytes.hex())]
 *             except ValueError:
 *                 str_list += ['bytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8585, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_bytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_bytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_bytes_ValueError) != (0)) __PYX_ERR(0, 8585, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8585, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8582
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytes : ' + str(self.bytes.hex())]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8586
 *             except ValueError:
 *                 str_list += ['bytes : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8580
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":8588
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def bytes(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8579
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.CUuuid_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8589
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def bytes(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].bytes, 16)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_5bytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_5bytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_5bytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_5bytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":8591
 *     @property
 *     def bytes(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].bytes, 16)             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDeviceProp:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_pvt_ptr[0]).bytes, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8589
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def bytes(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].bytes, 16)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.CUuuid_st.bytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_9CUuuid_st_10__reduce_cython__, "CUuuid_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_9CUuuid_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9CUuuid_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.CUuuid_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_9CUuuid_st_12__setstate_cython__, "CUuuid_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_9CUuuid_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9CUuuid_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.CUuuid_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9CUuuid_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.CUuuid_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8814
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8814, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8814, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 8814, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8814, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8814, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8814, __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.runtime.cudaDeviceProp.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":8815
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8816
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDeviceProp *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":8815
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":8818
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDeviceProp *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaDeviceProp *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":8814
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8819
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDeviceProp *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._uuid = cudaUUID_t(_ptr=<void_ptr>&self._pvt_ptr[0].uuid)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 8819, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8819, __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, "__init__", 0) < (0)) __PYX_ERR(0, 8819, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 8819, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 8819, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 8819, __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.runtime.cudaDeviceProp.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":8821
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._uuid = cudaUUID_t(_ptr=<void_ptr>&self._pvt_ptr[0].uuid)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).uuid))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 8821, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 8821, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8821, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_uuid);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_uuid);
  __pyx_v_self->_uuid = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":8819
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDeviceProp *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._uuid = cudaUUID_t(_ptr=<void_ptr>&self._pvt_ptr[0].uuid)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8822
 *         pass
 *         self._uuid = cudaUUID_t(_ptr=<void_ptr>&self._pvt_ptr[0].uuid)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":8824
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_7getPtr(PyObject *__pyx_v_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_7runtime_14cudaDeviceProp_6getPtr, "cudaDeviceProp.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_14cudaDeviceProp_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaDeviceProp_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":8825
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":8824
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":8826
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr128__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  Py_ssize_t __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":8827
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":8828
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['name : ' + self.name.decode('utf-8')]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":8829
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + self.name.decode('utf-8')]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8830
 *             str_list = []
 *             try:
 *                 str_list += ['name : ' + self.name.decode('utf-8')]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8830, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_6 = __pyx_t_7;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_8 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_utf_8};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_decode, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8830, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u_name_2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8830, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8830, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8830, __pyx_L4_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8830, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8829
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + self.name.decode('utf-8')]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8831
 *             try:
 *                 str_list += ['name : ' + self.name.decode('utf-8')]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8831, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8832
 *                 str_list += ['name : ' + self.name.decode('utf-8')]
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['uuid :\n' + '\n'.join(['    ' + line for line in str(self.uuid).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8832, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_name_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_name_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_name_ValueError) != (0)) __PYX_ERR(0, 8832, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8832, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":8829
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + self.name.decode('utf-8')]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8833
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['uuid :\n' + '\n'.join(['    ' + line for line in str(self.uuid).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8834
 *                 str_list += ['name : <ValueError>']
 *             try:
 *                 str_list += ['uuid :\n' + '\n'.join(['    ' + line for line in str(self.uuid).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['uuid : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8834, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_uuid_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8834, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8834, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8834, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_2; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_12 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 8834, __pyx_L20_error)
              #endif
              if (__pyx_t_12 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_12, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_12;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8834, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr128__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr128__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8834, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 8834, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr128__pyx_v_line); __pyx_10genexpr128__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr128__pyx_v_line); __pyx_10genexpr128__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8834, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_uuid, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8834, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8834, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8834, __pyx_L12_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8834, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8833
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['uuid :\n' + '\n'.join(['    ' + line for line in str(self.uuid).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8835
 *             try:
 *                 str_list += ['uuid :\n' + '\n'.join(['    ' + line for line in str(self.uuid).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['uuid : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 8835, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":8836
 *                 str_list += ['uuid :\n' + '\n'.join(['    ' + line for line in str(self.uuid).splitlines()])]
 *             except ValueError:
 *                 str_list += ['uuid : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['luid : ' + self.luid.hex()]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8836, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_uuid_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_uuid_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_uuid_ValueError) != (0)) __PYX_ERR(0, 8836, __pyx_L14_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8836, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":8833
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['uuid :\n' + '\n'.join(['    ' + line for line in str(self.uuid).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8837
 *             except ValueError:
 *                 str_list += ['uuid : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['luid : ' + self.luid.hex()]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8838
 *                 str_list += ['uuid : <ValueError>']
 *             try:
 *                 str_list += ['luid : ' + self.luid.hex()]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['luid : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_luid_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8838, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __pyx_t_6;
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_hex, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8838, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u_luid, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8838, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8838, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8838, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8838, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8837
 *             except ValueError:
 *                 str_list += ['uuid : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['luid : ' + self.luid.hex()]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8839
 *             try:
 *                 str_list += ['luid : ' + self.luid.hex()]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['luid : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8839, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8840
 *                 str_list += ['luid : ' + self.luid.hex()]
 *             except ValueError:
 *                 str_list += ['luid : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8840, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_luid_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_luid_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_luid_ValueError) != (0)) __PYX_ERR(0, 8840, __pyx_L29_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8840, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":8837
 *             except ValueError:
 *                 str_list += ['uuid : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['luid : ' + self.luid.hex()]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8841
 *             except ValueError:
 *                 str_list += ['luid : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8842
 *                 str_list += ['luid : <ValueError>']
 *             try:
 *                 str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['luidDeviceNodeMask : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_luidDeviceNodeMask_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8842, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8842, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_luidDeviceNodeMask, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8842, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8842, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8842, __pyx_L35_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8842, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8841
 *             except ValueError:
 *                 str_list += ['luid : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8843
 *             try:
 *                 str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['luidDeviceNodeMask : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8843, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8844
 *                 str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)]
 *             except ValueError:
 *                 str_list += ['luidDeviceNodeMask : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8844, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_luidDeviceNodeMask_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_luidDeviceNodeMask_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_luidDeviceNodeMask_ValueError) != (0)) __PYX_ERR(0, 8844, __pyx_L37_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8844, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":8841
 *             except ValueError:
 *                 str_list += ['luid : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8845
 *             except ValueError:
 *                 str_list += ['luidDeviceNodeMask : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8846
 *                 str_list += ['luidDeviceNodeMask : <ValueError>']
 *             try:
 *                 str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['totalGlobalMem : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_totalGlobalMem_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8846, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8846, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_totalGlobalMem, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8846, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8846, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8846, __pyx_L43_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8846, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8845
 *             except ValueError:
 *                 str_list += ['luidDeviceNodeMask : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8847
 *             try:
 *                 str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['totalGlobalMem : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8847, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8848
 *                 str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)]
 *             except ValueError:
 *                 str_list += ['totalGlobalMem : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8848, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_totalGlobalMem_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_totalGlobalMem_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_totalGlobalMem_ValueError) != (0)) __PYX_ERR(0, 8848, __pyx_L45_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8848, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":8845
 *             except ValueError:
 *                 str_list += ['luidDeviceNodeMask : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8849
 *             except ValueError:
 *                 str_list += ['totalGlobalMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8850
 *                 str_list += ['totalGlobalMem : <ValueError>']
 *             try:
 *                 str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlock : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sharedMemPerBlock_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8850, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8850, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sharedMemPerBlock, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8850, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8850, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8850, __pyx_L51_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8850, __pyx_L51_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8849
 *             except ValueError:
 *                 str_list += ['totalGlobalMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L56_try_end;
      __pyx_L51_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8851
 *             try:
 *                 str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerBlock : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8851, __pyx_L53_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8852
 *                 str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)]
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlock : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['regsPerBlock : ' + str(self.regsPerBlock)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8852, __pyx_L53_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sharedMemPerBlock_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sharedMemPerBlock_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_sharedMemPerBlock_ValueError) != (0)) __PYX_ERR(0, 8852, __pyx_L53_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8852, __pyx_L53_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L52_exception_handled;
      }
      goto __pyx_L53_except_error;

      /* "cuda/bindings/runtime.pyx":8849
 *             except ValueError:
 *                 str_list += ['totalGlobalMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)]
 *             except ValueError:
*/
      __pyx_L53_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L52_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L56_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8853
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['regsPerBlock : ' + str(self.regsPerBlock)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8854
 *                 str_list += ['sharedMemPerBlock : <ValueError>']
 *             try:
 *                 str_list += ['regsPerBlock : ' + str(self.regsPerBlock)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['regsPerBlock : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_regsPerBlock_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8854, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8854, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_regsPerBlock, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8854, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8854, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8854, __pyx_L59_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8854, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8853
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['regsPerBlock : ' + str(self.regsPerBlock)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L64_try_end;
      __pyx_L59_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8855
 *             try:
 *                 str_list += ['regsPerBlock : ' + str(self.regsPerBlock)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['regsPerBlock : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8855, __pyx_L61_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8856
 *                 str_list += ['regsPerBlock : ' + str(self.regsPerBlock)]
 *             except ValueError:
 *                 str_list += ['regsPerBlock : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['warpSize : ' + str(self.warpSize)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8856, __pyx_L61_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_regsPerBlock_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_regsPerBlock_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_regsPerBlock_ValueError) != (0)) __PYX_ERR(0, 8856, __pyx_L61_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8856, __pyx_L61_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L60_exception_handled;
      }
      goto __pyx_L61_except_error;

      /* "cuda/bindings/runtime.pyx":8853
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['regsPerBlock : ' + str(self.regsPerBlock)]
 *             except ValueError:
*/
      __pyx_L61_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L60_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L64_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8857
 *             except ValueError:
 *                 str_list += ['regsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['warpSize : ' + str(self.warpSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8858
 *                 str_list += ['regsPerBlock : <ValueError>']
 *             try:
 *                 str_list += ['warpSize : ' + str(self.warpSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['warpSize : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_warpSize_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8858, __pyx_L67_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8858, __pyx_L67_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_warpSize, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8858, __pyx_L67_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8858, __pyx_L67_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8858, __pyx_L67_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8858, __pyx_L67_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8857
 *             except ValueError:
 *                 str_list += ['regsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['warpSize : ' + str(self.warpSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L72_try_end;
      __pyx_L67_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8859
 *             try:
 *                 str_list += ['warpSize : ' + str(self.warpSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['warpSize : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8859, __pyx_L69_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8860
 *                 str_list += ['warpSize : ' + str(self.warpSize)]
 *             except ValueError:
 *                 str_list += ['warpSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['memPitch : ' + str(self.memPitch)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8860, __pyx_L69_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_warpSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_warpSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_warpSize_ValueError) != (0)) __PYX_ERR(0, 8860, __pyx_L69_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8860, __pyx_L69_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L68_exception_handled;
      }
      goto __pyx_L69_except_error;

      /* "cuda/bindings/runtime.pyx":8857
 *             except ValueError:
 *                 str_list += ['regsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['warpSize : ' + str(self.warpSize)]
 *             except ValueError:
*/
      __pyx_L69_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L68_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L72_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8861
 *             except ValueError:
 *                 str_list += ['warpSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memPitch : ' + str(self.memPitch)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8862
 *                 str_list += ['warpSize : <ValueError>']
 *             try:
 *                 str_list += ['memPitch : ' + str(self.memPitch)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['memPitch : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_memPitch_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8862, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8862, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_memPitch, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8862, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8862, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8862, __pyx_L75_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8862, __pyx_L75_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8861
 *             except ValueError:
 *                 str_list += ['warpSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memPitch : ' + str(self.memPitch)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L80_try_end;
      __pyx_L75_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8863
 *             try:
 *                 str_list += ['memPitch : ' + str(self.memPitch)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['memPitch : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8863, __pyx_L77_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8864
 *                 str_list += ['memPitch : ' + str(self.memPitch)]
 *             except ValueError:
 *                 str_list += ['memPitch : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8864, __pyx_L77_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_memPitch_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_memPitch_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_memPitch_ValueError) != (0)) __PYX_ERR(0, 8864, __pyx_L77_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8864, __pyx_L77_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L76_exception_handled;
      }
      goto __pyx_L77_except_error;

      /* "cuda/bindings/runtime.pyx":8861
 *             except ValueError:
 *                 str_list += ['warpSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memPitch : ' + str(self.memPitch)]
 *             except ValueError:
*/
      __pyx_L77_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L76_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L80_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8865
 *             except ValueError:
 *                 str_list += ['memPitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8866
 *                 str_list += ['memPitch : <ValueError>']
 *             try:
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxThreadsPerBlock_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8866, __pyx_L83_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8866, __pyx_L83_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8866, __pyx_L83_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8866, __pyx_L83_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8866, __pyx_L83_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8866, __pyx_L83_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8865
 *             except ValueError:
 *                 str_list += ['memPitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L88_try_end;
      __pyx_L83_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8867
 *             try:
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8867, __pyx_L85_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8868
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8868, __pyx_L85_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxThreadsPerBlock_ValueError) != (0)) __PYX_ERR(0, 8868, __pyx_L85_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8868, __pyx_L85_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L84_exception_handled;
      }
      goto __pyx_L85_except_error;

      /* "cuda/bindings/runtime.pyx":8865
 *             except ValueError:
 *                 str_list += ['memPitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)]
 *             except ValueError:
*/
      __pyx_L85_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L84_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L88_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8869
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8870
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:
 *                 str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxThreadsDim : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxThreadsDim_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8870, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8870, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxThreadsDim, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8870, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8870, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8870, __pyx_L91_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8870, __pyx_L91_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8869
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L96_try_end;
      __pyx_L91_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8871
 *             try:
 *                 str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsDim : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8871, __pyx_L93_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8872
 *                 str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)]
 *             except ValueError:
 *                 str_list += ['maxThreadsDim : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxGridSize : ' + str(self.maxGridSize)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8872, __pyx_L93_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxThreadsDim_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxThreadsDim_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxThreadsDim_ValueError) != (0)) __PYX_ERR(0, 8872, __pyx_L93_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8872, __pyx_L93_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L92_exception_handled;
      }
      goto __pyx_L93_except_error;

      /* "cuda/bindings/runtime.pyx":8869
 *             except ValueError:
 *                 str_list += ['maxThreadsPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)]
 *             except ValueError:
*/
      __pyx_L93_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L92_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L96_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8873
 *             except ValueError:
 *                 str_list += ['maxThreadsDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxGridSize : ' + str(self.maxGridSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8874
 *                 str_list += ['maxThreadsDim : <ValueError>']
 *             try:
 *                 str_list += ['maxGridSize : ' + str(self.maxGridSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxGridSize : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxGridSize_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8874, __pyx_L99_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8874, __pyx_L99_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxGridSize, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8874, __pyx_L99_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8874, __pyx_L99_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8874, __pyx_L99_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8874, __pyx_L99_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8873
 *             except ValueError:
 *                 str_list += ['maxThreadsDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxGridSize : ' + str(self.maxGridSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L104_try_end;
      __pyx_L99_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8875
 *             try:
 *                 str_list += ['maxGridSize : ' + str(self.maxGridSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxGridSize : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8875, __pyx_L101_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8876
 *                 str_list += ['maxGridSize : ' + str(self.maxGridSize)]
 *             except ValueError:
 *                 str_list += ['maxGridSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['totalConstMem : ' + str(self.totalConstMem)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8876, __pyx_L101_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxGridSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxGridSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxGridSize_ValueError) != (0)) __PYX_ERR(0, 8876, __pyx_L101_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8876, __pyx_L101_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L100_exception_handled;
      }
      goto __pyx_L101_except_error;

      /* "cuda/bindings/runtime.pyx":8873
 *             except ValueError:
 *                 str_list += ['maxThreadsDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxGridSize : ' + str(self.maxGridSize)]
 *             except ValueError:
*/
      __pyx_L101_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L100_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L104_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8877
 *             except ValueError:
 *                 str_list += ['maxGridSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['totalConstMem : ' + str(self.totalConstMem)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8878
 *                 str_list += ['maxGridSize : <ValueError>']
 *             try:
 *                 str_list += ['totalConstMem : ' + str(self.totalConstMem)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['totalConstMem : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_totalConstMem_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8878, __pyx_L107_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8878, __pyx_L107_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_totalConstMem, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8878, __pyx_L107_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8878, __pyx_L107_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8878, __pyx_L107_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8878, __pyx_L107_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8877
 *             except ValueError:
 *                 str_list += ['maxGridSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['totalConstMem : ' + str(self.totalConstMem)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L112_try_end;
      __pyx_L107_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8879
 *             try:
 *                 str_list += ['totalConstMem : ' + str(self.totalConstMem)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['totalConstMem : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8879, __pyx_L109_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8880
 *                 str_list += ['totalConstMem : ' + str(self.totalConstMem)]
 *             except ValueError:
 *                 str_list += ['totalConstMem : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['major : ' + str(self.major)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8880, __pyx_L109_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_totalConstMem_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_totalConstMem_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_totalConstMem_ValueError) != (0)) __PYX_ERR(0, 8880, __pyx_L109_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8880, __pyx_L109_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L108_exception_handled;
      }
      goto __pyx_L109_except_error;

      /* "cuda/bindings/runtime.pyx":8877
 *             except ValueError:
 *                 str_list += ['maxGridSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['totalConstMem : ' + str(self.totalConstMem)]
 *             except ValueError:
*/
      __pyx_L109_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L108_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L112_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8881
 *             except ValueError:
 *                 str_list += ['totalConstMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['major : ' + str(self.major)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8882
 *                 str_list += ['totalConstMem : <ValueError>']
 *             try:
 *                 str_list += ['major : ' + str(self.major)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['major : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_major_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8882, __pyx_L115_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8882, __pyx_L115_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_major, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8882, __pyx_L115_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8882, __pyx_L115_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8882, __pyx_L115_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8882, __pyx_L115_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8881
 *             except ValueError:
 *                 str_list += ['totalConstMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['major : ' + str(self.major)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L120_try_end;
      __pyx_L115_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8883
 *             try:
 *                 str_list += ['major : ' + str(self.major)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['major : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8883, __pyx_L117_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8884
 *                 str_list += ['major : ' + str(self.major)]
 *             except ValueError:
 *                 str_list += ['major : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['minor : ' + str(self.minor)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8884, __pyx_L117_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_major_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_major_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_major_ValueError) != (0)) __PYX_ERR(0, 8884, __pyx_L117_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8884, __pyx_L117_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L116_exception_handled;
      }
      goto __pyx_L117_except_error;

      /* "cuda/bindings/runtime.pyx":8881
 *             except ValueError:
 *                 str_list += ['totalConstMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['major : ' + str(self.major)]
 *             except ValueError:
*/
      __pyx_L117_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L116_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L120_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8885
 *             except ValueError:
 *                 str_list += ['major : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minor : ' + str(self.minor)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8886
 *                 str_list += ['major : <ValueError>']
 *             try:
 *                 str_list += ['minor : ' + str(self.minor)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['minor : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_minor_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8886, __pyx_L123_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8886, __pyx_L123_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_minor, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8886, __pyx_L123_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8886, __pyx_L123_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8886, __pyx_L123_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8886, __pyx_L123_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8885
 *             except ValueError:
 *                 str_list += ['major : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minor : ' + str(self.minor)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L128_try_end;
      __pyx_L123_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8887
 *             try:
 *                 str_list += ['minor : ' + str(self.minor)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['minor : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8887, __pyx_L125_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8888
 *                 str_list += ['minor : ' + str(self.minor)]
 *             except ValueError:
 *                 str_list += ['minor : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['textureAlignment : ' + str(self.textureAlignment)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8888, __pyx_L125_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_minor_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_minor_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_minor_ValueError) != (0)) __PYX_ERR(0, 8888, __pyx_L125_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8888, __pyx_L125_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L124_exception_handled;
      }
      goto __pyx_L125_except_error;

      /* "cuda/bindings/runtime.pyx":8885
 *             except ValueError:
 *                 str_list += ['major : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minor : ' + str(self.minor)]
 *             except ValueError:
*/
      __pyx_L125_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L124_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L128_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8889
 *             except ValueError:
 *                 str_list += ['minor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['textureAlignment : ' + str(self.textureAlignment)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8890
 *                 str_list += ['minor : <ValueError>']
 *             try:
 *                 str_list += ['textureAlignment : ' + str(self.textureAlignment)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['textureAlignment : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_textureAlignment_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8890, __pyx_L131_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8890, __pyx_L131_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_textureAlignment, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8890, __pyx_L131_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8890, __pyx_L131_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8890, __pyx_L131_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8890, __pyx_L131_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8889
 *             except ValueError:
 *                 str_list += ['minor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['textureAlignment : ' + str(self.textureAlignment)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L136_try_end;
      __pyx_L131_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8891
 *             try:
 *                 str_list += ['textureAlignment : ' + str(self.textureAlignment)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['textureAlignment : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8891, __pyx_L133_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8892
 *                 str_list += ['textureAlignment : ' + str(self.textureAlignment)]
 *             except ValueError:
 *                 str_list += ['textureAlignment : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8892, __pyx_L133_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_textureAlignment_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_textureAlignment_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_textureAlignment_ValueError) != (0)) __PYX_ERR(0, 8892, __pyx_L133_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8892, __pyx_L133_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L132_exception_handled;
      }
      goto __pyx_L133_except_error;

      /* "cuda/bindings/runtime.pyx":8889
 *             except ValueError:
 *                 str_list += ['minor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['textureAlignment : ' + str(self.textureAlignment)]
 *             except ValueError:
*/
      __pyx_L133_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L132_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L136_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8893
 *             except ValueError:
 *                 str_list += ['textureAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8894
 *                 str_list += ['textureAlignment : <ValueError>']
 *             try:
 *                 str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['texturePitchAlignment : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_texturePitchAlignment_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8894, __pyx_L139_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8894, __pyx_L139_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_texturePitchAlignment, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8894, __pyx_L139_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8894, __pyx_L139_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8894, __pyx_L139_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8894, __pyx_L139_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8893
 *             except ValueError:
 *                 str_list += ['textureAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L144_try_end;
      __pyx_L139_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8895
 *             try:
 *                 str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['texturePitchAlignment : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8895, __pyx_L141_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8896
 *                 str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)]
 *             except ValueError:
 *                 str_list += ['texturePitchAlignment : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8896, __pyx_L141_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_texturePitchAlignment_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_texturePitchAlignment_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_texturePitchAlignment_ValueError) != (0)) __PYX_ERR(0, 8896, __pyx_L141_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8896, __pyx_L141_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L140_exception_handled;
      }
      goto __pyx_L141_except_error;

      /* "cuda/bindings/runtime.pyx":8893
 *             except ValueError:
 *                 str_list += ['textureAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)]
 *             except ValueError:
*/
      __pyx_L141_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L140_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L144_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8897
 *             except ValueError:
 *                 str_list += ['texturePitchAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8898
 *                 str_list += ['texturePitchAlignment : <ValueError>']
 *             try:
 *                 str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['multiProcessorCount : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_multiProcessorCount_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8898, __pyx_L147_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8898, __pyx_L147_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_multiProcessorCount, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8898, __pyx_L147_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8898, __pyx_L147_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8898, __pyx_L147_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8898, __pyx_L147_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8897
 *             except ValueError:
 *                 str_list += ['texturePitchAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L152_try_end;
      __pyx_L147_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8899
 *             try:
 *                 str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['multiProcessorCount : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8899, __pyx_L149_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8900
 *                 str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)]
 *             except ValueError:
 *                 str_list += ['multiProcessorCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['integrated : ' + str(self.integrated)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8900, __pyx_L149_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_multiProcessorCount_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_multiProcessorCount_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_multiProcessorCount_ValueError) != (0)) __PYX_ERR(0, 8900, __pyx_L149_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8900, __pyx_L149_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L148_exception_handled;
      }
      goto __pyx_L149_except_error;

      /* "cuda/bindings/runtime.pyx":8897
 *             except ValueError:
 *                 str_list += ['texturePitchAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)]
 *             except ValueError:
*/
      __pyx_L149_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L148_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L152_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8901
 *             except ValueError:
 *                 str_list += ['multiProcessorCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['integrated : ' + str(self.integrated)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8902
 *                 str_list += ['multiProcessorCount : <ValueError>']
 *             try:
 *                 str_list += ['integrated : ' + str(self.integrated)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['integrated : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_integrated_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8902, __pyx_L155_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8902, __pyx_L155_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_integrated, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8902, __pyx_L155_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8902, __pyx_L155_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8902, __pyx_L155_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8902, __pyx_L155_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8901
 *             except ValueError:
 *                 str_list += ['multiProcessorCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['integrated : ' + str(self.integrated)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L160_try_end;
      __pyx_L155_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8903
 *             try:
 *                 str_list += ['integrated : ' + str(self.integrated)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['integrated : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8903, __pyx_L157_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8904
 *                 str_list += ['integrated : ' + str(self.integrated)]
 *             except ValueError:
 *                 str_list += ['integrated : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8904, __pyx_L157_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_integrated_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_integrated_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_integrated_ValueError) != (0)) __PYX_ERR(0, 8904, __pyx_L157_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8904, __pyx_L157_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L156_exception_handled;
      }
      goto __pyx_L157_except_error;

      /* "cuda/bindings/runtime.pyx":8901
 *             except ValueError:
 *                 str_list += ['multiProcessorCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['integrated : ' + str(self.integrated)]
 *             except ValueError:
*/
      __pyx_L157_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L156_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L160_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8905
 *             except ValueError:
 *                 str_list += ['integrated : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8906
 *                 str_list += ['integrated : <ValueError>']
 *             try:
 *                 str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['canMapHostMemory : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_canMapHostMemory_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8906, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8906, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_canMapHostMemory, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8906, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8906, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8906, __pyx_L163_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8906, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8905
 *             except ValueError:
 *                 str_list += ['integrated : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L168_try_end;
      __pyx_L163_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8907
 *             try:
 *                 str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['canMapHostMemory : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8907, __pyx_L165_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8908
 *                 str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)]
 *             except ValueError:
 *                 str_list += ['canMapHostMemory : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture1D : ' + str(self.maxTexture1D)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8908, __pyx_L165_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_canMapHostMemory_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_canMapHostMemory_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_canMapHostMemory_ValueError) != (0)) __PYX_ERR(0, 8908, __pyx_L165_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8908, __pyx_L165_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L164_exception_handled;
      }
      goto __pyx_L165_except_error;

      /* "cuda/bindings/runtime.pyx":8905
 *             except ValueError:
 *                 str_list += ['integrated : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)]
 *             except ValueError:
*/
      __pyx_L165_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L164_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L168_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8909
 *             except ValueError:
 *                 str_list += ['canMapHostMemory : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1D : ' + str(self.maxTexture1D)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8910
 *                 str_list += ['canMapHostMemory : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture1D : ' + str(self.maxTexture1D)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture1D : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture1D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8910, __pyx_L171_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8910, __pyx_L171_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture1D, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8910, __pyx_L171_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8910, __pyx_L171_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8910, __pyx_L171_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8910, __pyx_L171_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8909
 *             except ValueError:
 *                 str_list += ['canMapHostMemory : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1D : ' + str(self.maxTexture1D)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L176_try_end;
      __pyx_L171_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8911
 *             try:
 *                 str_list += ['maxTexture1D : ' + str(self.maxTexture1D)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1D : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8911, __pyx_L173_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8912
 *                 str_list += ['maxTexture1D : ' + str(self.maxTexture1D)]
 *             except ValueError:
 *                 str_list += ['maxTexture1D : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8912, __pyx_L173_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture1D_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture1D_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture1D_ValueError) != (0)) __PYX_ERR(0, 8912, __pyx_L173_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8912, __pyx_L173_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L172_exception_handled;
      }
      goto __pyx_L173_except_error;

      /* "cuda/bindings/runtime.pyx":8909
 *             except ValueError:
 *                 str_list += ['canMapHostMemory : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1D : ' + str(self.maxTexture1D)]
 *             except ValueError:
*/
      __pyx_L173_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L172_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L176_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8913
 *             except ValueError:
 *                 str_list += ['maxTexture1D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8914
 *                 str_list += ['maxTexture1D : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture1DMipmap : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture1DMipmap_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8914, __pyx_L179_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8914, __pyx_L179_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture1DMipmap, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8914, __pyx_L179_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8914, __pyx_L179_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8914, __pyx_L179_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8914, __pyx_L179_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8913
 *             except ValueError:
 *                 str_list += ['maxTexture1D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L184_try_end;
      __pyx_L179_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8915
 *             try:
 *                 str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1DMipmap : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8915, __pyx_L181_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8916
 *                 str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)]
 *             except ValueError:
 *                 str_list += ['maxTexture1DMipmap : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture2D : ' + str(self.maxTexture2D)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8916, __pyx_L181_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture1DMipmap_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture1DMipmap_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture1DMipmap_ValueError) != (0)) __PYX_ERR(0, 8916, __pyx_L181_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8916, __pyx_L181_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L180_exception_handled;
      }
      goto __pyx_L181_except_error;

      /* "cuda/bindings/runtime.pyx":8913
 *             except ValueError:
 *                 str_list += ['maxTexture1D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)]
 *             except ValueError:
*/
      __pyx_L181_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L180_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L184_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8917
 *             except ValueError:
 *                 str_list += ['maxTexture1DMipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2D : ' + str(self.maxTexture2D)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8918
 *                 str_list += ['maxTexture1DMipmap : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture2D : ' + str(self.maxTexture2D)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture2D : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture2D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8918, __pyx_L187_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8918, __pyx_L187_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture2D, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8918, __pyx_L187_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8918, __pyx_L187_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8918, __pyx_L187_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8918, __pyx_L187_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8917
 *             except ValueError:
 *                 str_list += ['maxTexture1DMipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2D : ' + str(self.maxTexture2D)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L192_try_end;
      __pyx_L187_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8919
 *             try:
 *                 str_list += ['maxTexture2D : ' + str(self.maxTexture2D)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2D : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8919, __pyx_L189_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8920
 *                 str_list += ['maxTexture2D : ' + str(self.maxTexture2D)]
 *             except ValueError:
 *                 str_list += ['maxTexture2D : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8920, __pyx_L189_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2D_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2D_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture2D_ValueError) != (0)) __PYX_ERR(0, 8920, __pyx_L189_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8920, __pyx_L189_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L188_exception_handled;
      }
      goto __pyx_L189_except_error;

      /* "cuda/bindings/runtime.pyx":8917
 *             except ValueError:
 *                 str_list += ['maxTexture1DMipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2D : ' + str(self.maxTexture2D)]
 *             except ValueError:
*/
      __pyx_L189_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L188_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L192_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8921
 *             except ValueError:
 *                 str_list += ['maxTexture2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8922
 *                 str_list += ['maxTexture2D : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture2DMipmap : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture2DMipmap_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8922, __pyx_L195_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8922, __pyx_L195_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture2DMipmap, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8922, __pyx_L195_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8922, __pyx_L195_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8922, __pyx_L195_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8922, __pyx_L195_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8921
 *             except ValueError:
 *                 str_list += ['maxTexture2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L200_try_end;
      __pyx_L195_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8923
 *             try:
 *                 str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DMipmap : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8923, __pyx_L197_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8924
 *                 str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)]
 *             except ValueError:
 *                 str_list += ['maxTexture2DMipmap : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8924, __pyx_L197_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2DMipmap_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2DMipmap_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture2DMipmap_ValueError) != (0)) __PYX_ERR(0, 8924, __pyx_L197_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8924, __pyx_L197_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L196_exception_handled;
      }
      goto __pyx_L197_except_error;

      /* "cuda/bindings/runtime.pyx":8921
 *             except ValueError:
 *                 str_list += ['maxTexture2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)]
 *             except ValueError:
*/
      __pyx_L197_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L196_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L200_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8925
 *             except ValueError:
 *                 str_list += ['maxTexture2DMipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8926
 *                 str_list += ['maxTexture2DMipmap : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture2DLinear : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture2DLinear_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8926, __pyx_L203_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8926, __pyx_L203_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture2DLinear, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8926, __pyx_L203_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8926, __pyx_L203_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8926, __pyx_L203_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8926, __pyx_L203_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8925
 *             except ValueError:
 *                 str_list += ['maxTexture2DMipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L208_try_end;
      __pyx_L203_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8927
 *             try:
 *                 str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DLinear : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8927, __pyx_L205_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8928
 *                 str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)]
 *             except ValueError:
 *                 str_list += ['maxTexture2DLinear : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8928, __pyx_L205_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2DLinear_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2DLinear_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture2DLinear_ValueError) != (0)) __PYX_ERR(0, 8928, __pyx_L205_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8928, __pyx_L205_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L204_exception_handled;
      }
      goto __pyx_L205_except_error;

      /* "cuda/bindings/runtime.pyx":8925
 *             except ValueError:
 *                 str_list += ['maxTexture2DMipmap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)]
 *             except ValueError:
*/
      __pyx_L205_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L204_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L208_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8929
 *             except ValueError:
 *                 str_list += ['maxTexture2DLinear : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8930
 *                 str_list += ['maxTexture2DLinear : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture2DGather : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture2DGather_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8930, __pyx_L211_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8930, __pyx_L211_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture2DGather, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8930, __pyx_L211_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8930, __pyx_L211_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8930, __pyx_L211_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8930, __pyx_L211_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8929
 *             except ValueError:
 *                 str_list += ['maxTexture2DLinear : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L216_try_end;
      __pyx_L211_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8931
 *             try:
 *                 str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DGather : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8931, __pyx_L213_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8932
 *                 str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)]
 *             except ValueError:
 *                 str_list += ['maxTexture2DGather : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture3D : ' + str(self.maxTexture3D)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8932, __pyx_L213_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2DGather_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2DGather_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture2DGather_ValueError) != (0)) __PYX_ERR(0, 8932, __pyx_L213_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8932, __pyx_L213_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L212_exception_handled;
      }
      goto __pyx_L213_except_error;

      /* "cuda/bindings/runtime.pyx":8929
 *             except ValueError:
 *                 str_list += ['maxTexture2DLinear : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)]
 *             except ValueError:
*/
      __pyx_L213_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L212_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L216_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8933
 *             except ValueError:
 *                 str_list += ['maxTexture2DGather : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture3D : ' + str(self.maxTexture3D)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8934
 *                 str_list += ['maxTexture2DGather : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture3D : ' + str(self.maxTexture3D)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture3D : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture3D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8934, __pyx_L219_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8934, __pyx_L219_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture3D, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8934, __pyx_L219_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8934, __pyx_L219_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8934, __pyx_L219_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8934, __pyx_L219_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8933
 *             except ValueError:
 *                 str_list += ['maxTexture2DGather : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture3D : ' + str(self.maxTexture3D)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L224_try_end;
      __pyx_L219_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8935
 *             try:
 *                 str_list += ['maxTexture3D : ' + str(self.maxTexture3D)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture3D : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8935, __pyx_L221_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8936
 *                 str_list += ['maxTexture3D : ' + str(self.maxTexture3D)]
 *             except ValueError:
 *                 str_list += ['maxTexture3D : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8936, __pyx_L221_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture3D_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture3D_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture3D_ValueError) != (0)) __PYX_ERR(0, 8936, __pyx_L221_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8936, __pyx_L221_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L220_exception_handled;
      }
      goto __pyx_L221_except_error;

      /* "cuda/bindings/runtime.pyx":8933
 *             except ValueError:
 *                 str_list += ['maxTexture2DGather : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture3D : ' + str(self.maxTexture3D)]
 *             except ValueError:
*/
      __pyx_L221_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L220_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L224_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8937
 *             except ValueError:
 *                 str_list += ['maxTexture3D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8938
 *                 str_list += ['maxTexture3D : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture3DAlt : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture3DAlt_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8938, __pyx_L227_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8938, __pyx_L227_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture3DAlt, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8938, __pyx_L227_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8938, __pyx_L227_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8938, __pyx_L227_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8938, __pyx_L227_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8937
 *             except ValueError:
 *                 str_list += ['maxTexture3D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L232_try_end;
      __pyx_L227_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8939
 *             try:
 *                 str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture3DAlt : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8939, __pyx_L229_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8940
 *                 str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)]
 *             except ValueError:
 *                 str_list += ['maxTexture3DAlt : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8940, __pyx_L229_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture3DAlt_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture3DAlt_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture3DAlt_ValueError) != (0)) __PYX_ERR(0, 8940, __pyx_L229_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8940, __pyx_L229_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L228_exception_handled;
      }
      goto __pyx_L229_except_error;

      /* "cuda/bindings/runtime.pyx":8937
 *             except ValueError:
 *                 str_list += ['maxTexture3D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)]
 *             except ValueError:
*/
      __pyx_L229_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L228_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L232_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8941
 *             except ValueError:
 *                 str_list += ['maxTexture3DAlt : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8942
 *                 str_list += ['maxTexture3DAlt : <ValueError>']
 *             try:
 *                 str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTextureCubemap : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTextureCubemap_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8942, __pyx_L235_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8942, __pyx_L235_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTextureCubemap, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8942, __pyx_L235_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8942, __pyx_L235_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8942, __pyx_L235_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8942, __pyx_L235_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8941
 *             except ValueError:
 *                 str_list += ['maxTexture3DAlt : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L240_try_end;
      __pyx_L235_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8943
 *             try:
 *                 str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTextureCubemap : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8943, __pyx_L237_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8944
 *                 str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)]
 *             except ValueError:
 *                 str_list += ['maxTextureCubemap : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8944, __pyx_L237_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTextureCubemap_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTextureCubemap_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxTextureCubemap_ValueError) != (0)) __PYX_ERR(0, 8944, __pyx_L237_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8944, __pyx_L237_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L236_exception_handled;
      }
      goto __pyx_L237_except_error;

      /* "cuda/bindings/runtime.pyx":8941
 *             except ValueError:
 *                 str_list += ['maxTexture3DAlt : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)]
 *             except ValueError:
*/
      __pyx_L237_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L236_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L240_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8945
 *             except ValueError:
 *                 str_list += ['maxTextureCubemap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8946
 *                 str_list += ['maxTextureCubemap : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture1DLayered : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture1DLayered_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8946, __pyx_L243_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8946, __pyx_L243_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture1DLayered, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8946, __pyx_L243_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8946, __pyx_L243_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8946, __pyx_L243_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8946, __pyx_L243_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8945
 *             except ValueError:
 *                 str_list += ['maxTextureCubemap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L248_try_end;
      __pyx_L243_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8947
 *             try:
 *                 str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1DLayered : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8947, __pyx_L245_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8948
 *                 str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)]
 *             except ValueError:
 *                 str_list += ['maxTexture1DLayered : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8948, __pyx_L245_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture1DLayered_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture1DLayered_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture1DLayered_ValueError) != (0)) __PYX_ERR(0, 8948, __pyx_L245_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8948, __pyx_L245_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L244_exception_handled;
      }
      goto __pyx_L245_except_error;

      /* "cuda/bindings/runtime.pyx":8945
 *             except ValueError:
 *                 str_list += ['maxTextureCubemap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)]
 *             except ValueError:
*/
      __pyx_L245_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L244_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L248_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8949
 *             except ValueError:
 *                 str_list += ['maxTexture1DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8950
 *                 str_list += ['maxTexture1DLayered : <ValueError>']
 *             try:
 *                 str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTexture2DLayered : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTexture2DLayered_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8950, __pyx_L251_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8950, __pyx_L251_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTexture2DLayered, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8950, __pyx_L251_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8950, __pyx_L251_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8950, __pyx_L251_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8950, __pyx_L251_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8949
 *             except ValueError:
 *                 str_list += ['maxTexture1DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L256_try_end;
      __pyx_L251_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8951
 *             try:
 *                 str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DLayered : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8951, __pyx_L253_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8952
 *                 str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)]
 *             except ValueError:
 *                 str_list += ['maxTexture2DLayered : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8952, __pyx_L253_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2DLayered_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTexture2DLayered_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxTexture2DLayered_ValueError) != (0)) __PYX_ERR(0, 8952, __pyx_L253_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8952, __pyx_L253_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L252_exception_handled;
      }
      goto __pyx_L253_except_error;

      /* "cuda/bindings/runtime.pyx":8949
 *             except ValueError:
 *                 str_list += ['maxTexture1DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)]
 *             except ValueError:
*/
      __pyx_L253_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L252_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L256_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8953
 *             except ValueError:
 *                 str_list += ['maxTexture2DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8954
 *                 str_list += ['maxTexture2DLayered : <ValueError>']
 *             try:
 *                 str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxTextureCubemapLayered : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxTextureCubemapLayered_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8954, __pyx_L259_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8954, __pyx_L259_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxTextureCubemapLayered, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8954, __pyx_L259_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8954, __pyx_L259_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8954, __pyx_L259_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8954, __pyx_L259_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8953
 *             except ValueError:
 *                 str_list += ['maxTexture2DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L264_try_end;
      __pyx_L259_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8955
 *             try:
 *                 str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTextureCubemapLayered : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8955, __pyx_L261_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8956
 *                 str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)]
 *             except ValueError:
 *                 str_list += ['maxTextureCubemapLayered : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxSurface1D : ' + str(self.maxSurface1D)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8956, __pyx_L261_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxTextureCubemapLayered_ValueEr);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxTextureCubemapLayered_ValueEr);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxTextureCubemapLayered_ValueEr) != (0)) __PYX_ERR(0, 8956, __pyx_L261_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8956, __pyx_L261_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L260_exception_handled;
      }
      goto __pyx_L261_except_error;

      /* "cuda/bindings/runtime.pyx":8953
 *             except ValueError:
 *                 str_list += ['maxTexture2DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)]
 *             except ValueError:
*/
      __pyx_L261_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L260_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L264_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8957
 *             except ValueError:
 *                 str_list += ['maxTextureCubemapLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface1D : ' + str(self.maxSurface1D)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8958
 *                 str_list += ['maxTextureCubemapLayered : <ValueError>']
 *             try:
 *                 str_list += ['maxSurface1D : ' + str(self.maxSurface1D)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxSurface1D : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxSurface1D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8958, __pyx_L267_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8958, __pyx_L267_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxSurface1D, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8958, __pyx_L267_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8958, __pyx_L267_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8958, __pyx_L267_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8958, __pyx_L267_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8957
 *             except ValueError:
 *                 str_list += ['maxTextureCubemapLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface1D : ' + str(self.maxSurface1D)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L272_try_end;
      __pyx_L267_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8959
 *             try:
 *                 str_list += ['maxSurface1D : ' + str(self.maxSurface1D)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface1D : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8959, __pyx_L269_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8960
 *                 str_list += ['maxSurface1D : ' + str(self.maxSurface1D)]
 *             except ValueError:
 *                 str_list += ['maxSurface1D : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxSurface2D : ' + str(self.maxSurface2D)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8960, __pyx_L269_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxSurface1D_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxSurface1D_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxSurface1D_ValueError) != (0)) __PYX_ERR(0, 8960, __pyx_L269_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8960, __pyx_L269_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L268_exception_handled;
      }
      goto __pyx_L269_except_error;

      /* "cuda/bindings/runtime.pyx":8957
 *             except ValueError:
 *                 str_list += ['maxTextureCubemapLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface1D : ' + str(self.maxSurface1D)]
 *             except ValueError:
*/
      __pyx_L269_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L268_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L272_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8961
 *             except ValueError:
 *                 str_list += ['maxSurface1D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface2D : ' + str(self.maxSurface2D)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8962
 *                 str_list += ['maxSurface1D : <ValueError>']
 *             try:
 *                 str_list += ['maxSurface2D : ' + str(self.maxSurface2D)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxSurface2D : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxSurface2D_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8962, __pyx_L275_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8962, __pyx_L275_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxSurface2D, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8962, __pyx_L275_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8962, __pyx_L275_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8962, __pyx_L275_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8962, __pyx_L275_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8961
 *             except ValueError:
 *                 str_list += ['maxSurface1D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface2D : ' + str(self.maxSurface2D)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L280_try_end;
      __pyx_L275_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8963
 *             try:
 *                 str_list += ['maxSurface2D : ' + str(self.maxSurface2D)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface2D : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8963, __pyx_L277_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8964
 *                 str_list += ['maxSurface2D : ' + str(self.maxSurface2D)]
 *             except ValueError:
 *                 str_list += ['maxSurface2D : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxSurface3D : ' + str(self.maxSurface3D)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8964, __pyx_L277_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxSurface2D_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxSurface2D_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxSurface2D_ValueError) != (0)) __PYX_ERR(0, 8964, __pyx_L277_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8964, __pyx_L277_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L276_exception_handled;
      }
      goto __pyx_L277_except_error;

      /* "cuda/bindings/runtime.pyx":8961
 *             except ValueError:
 *                 str_list += ['maxSurface1D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface2D : ' + str(self.maxSurface2D)]
 *             except ValueError:
*/
      __pyx_L277_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L276_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L280_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8965
 *             except ValueError:
 *                 str_list += ['maxSurface2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface3D : ' + str(self.maxSurface3D)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8966
 *                 str_list += ['maxSurface2D : <ValueError>']
 *             try:
 *                 str_list += ['maxSurface3D : ' + str(self.maxSurface3D)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxSurface3D : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxSurface3D_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8966, __pyx_L283_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8966, __pyx_L283_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxSurface3D, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8966, __pyx_L283_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8966, __pyx_L283_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8966, __pyx_L283_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8966, __pyx_L283_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8965
 *             except ValueError:
 *                 str_list += ['maxSurface2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface3D : ' + str(self.maxSurface3D)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L288_try_end;
      __pyx_L283_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8967
 *             try:
 *                 str_list += ['maxSurface3D : ' + str(self.maxSurface3D)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface3D : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8967, __pyx_L285_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8968
 *                 str_list += ['maxSurface3D : ' + str(self.maxSurface3D)]
 *             except ValueError:
 *                 str_list += ['maxSurface3D : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8968, __pyx_L285_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxSurface3D_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxSurface3D_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxSurface3D_ValueError) != (0)) __PYX_ERR(0, 8968, __pyx_L285_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8968, __pyx_L285_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L284_exception_handled;
      }
      goto __pyx_L285_except_error;

      /* "cuda/bindings/runtime.pyx":8965
 *             except ValueError:
 *                 str_list += ['maxSurface2D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface3D : ' + str(self.maxSurface3D)]
 *             except ValueError:
*/
      __pyx_L285_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L284_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L288_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8969
 *             except ValueError:
 *                 str_list += ['maxSurface3D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8970
 *                 str_list += ['maxSurface3D : <ValueError>']
 *             try:
 *                 str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxSurface1DLayered : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxSurface1DLayered_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8970, __pyx_L291_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8970, __pyx_L291_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxSurface1DLayered, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8970, __pyx_L291_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8970, __pyx_L291_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8970, __pyx_L291_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8970, __pyx_L291_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8969
 *             except ValueError:
 *                 str_list += ['maxSurface3D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L296_try_end;
      __pyx_L291_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8971
 *             try:
 *                 str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface1DLayered : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8971, __pyx_L293_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8972
 *                 str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)]
 *             except ValueError:
 *                 str_list += ['maxSurface1DLayered : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8972, __pyx_L293_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxSurface1DLayered_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxSurface1DLayered_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxSurface1DLayered_ValueError) != (0)) __PYX_ERR(0, 8972, __pyx_L293_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8972, __pyx_L293_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L292_exception_handled;
      }
      goto __pyx_L293_except_error;

      /* "cuda/bindings/runtime.pyx":8969
 *             except ValueError:
 *                 str_list += ['maxSurface3D : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)]
 *             except ValueError:
*/
      __pyx_L293_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L292_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L296_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8973
 *             except ValueError:
 *                 str_list += ['maxSurface1DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8974
 *                 str_list += ['maxSurface1DLayered : <ValueError>']
 *             try:
 *                 str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxSurface2DLayered : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxSurface2DLayered_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8974, __pyx_L299_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8974, __pyx_L299_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxSurface2DLayered, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8974, __pyx_L299_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8974, __pyx_L299_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8974, __pyx_L299_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8974, __pyx_L299_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8973
 *             except ValueError:
 *                 str_list += ['maxSurface1DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L304_try_end;
      __pyx_L299_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8975
 *             try:
 *                 str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface2DLayered : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8975, __pyx_L301_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8976
 *                 str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)]
 *             except ValueError:
 *                 str_list += ['maxSurface2DLayered : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8976, __pyx_L301_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxSurface2DLayered_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxSurface2DLayered_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxSurface2DLayered_ValueError) != (0)) __PYX_ERR(0, 8976, __pyx_L301_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8976, __pyx_L301_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L300_exception_handled;
      }
      goto __pyx_L301_except_error;

      /* "cuda/bindings/runtime.pyx":8973
 *             except ValueError:
 *                 str_list += ['maxSurface1DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)]
 *             except ValueError:
*/
      __pyx_L301_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L300_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L304_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8977
 *             except ValueError:
 *                 str_list += ['maxSurface2DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8978
 *                 str_list += ['maxSurface2DLayered : <ValueError>']
 *             try:
 *                 str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemap : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxSurfaceCubemap_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8978, __pyx_L307_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8978, __pyx_L307_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemap, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8978, __pyx_L307_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8978, __pyx_L307_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8978, __pyx_L307_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8978, __pyx_L307_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8977
 *             except ValueError:
 *                 str_list += ['maxSurface2DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L312_try_end;
      __pyx_L307_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8979
 *             try:
 *                 str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurfaceCubemap : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8979, __pyx_L309_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8980
 *                 str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)]
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemap : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8980, __pyx_L309_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemap_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemap_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemap_ValueError) != (0)) __PYX_ERR(0, 8980, __pyx_L309_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8980, __pyx_L309_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L308_exception_handled;
      }
      goto __pyx_L309_except_error;

      /* "cuda/bindings/runtime.pyx":8977
 *             except ValueError:
 *                 str_list += ['maxSurface2DLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)]
 *             except ValueError:
*/
      __pyx_L309_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L308_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L312_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8981
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8982
 *                 str_list += ['maxSurfaceCubemap : <ValueError>']
 *             try:
 *                 str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemapLayered : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxSurfaceCubemapLayered_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8982, __pyx_L315_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8982, __pyx_L315_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemapLayered, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8982, __pyx_L315_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8982, __pyx_L315_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8982, __pyx_L315_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8982, __pyx_L315_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8981
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L320_try_end;
      __pyx_L315_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8983
 *             try:
 *                 str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurfaceCubemapLayered : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8983, __pyx_L317_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8984
 *                 str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)]
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemapLayered : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8984, __pyx_L317_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_maxSurfaceCubemapLayered_ValueEr) != (0)) __PYX_ERR(0, 8984, __pyx_L317_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8984, __pyx_L317_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L316_exception_handled;
      }
      goto __pyx_L317_except_error;

      /* "cuda/bindings/runtime.pyx":8981
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)]
 *             except ValueError:
*/
      __pyx_L317_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L316_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L320_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8985
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemapLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8986
 *                 str_list += ['maxSurfaceCubemapLayered : <ValueError>']
 *             try:
 *                 str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['surfaceAlignment : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_surfaceAlignment_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8986, __pyx_L323_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8986, __pyx_L323_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_surfaceAlignment, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8986, __pyx_L323_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8986, __pyx_L323_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8986, __pyx_L323_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8986, __pyx_L323_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8985
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemapLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L328_try_end;
      __pyx_L323_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8987
 *             try:
 *                 str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['surfaceAlignment : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8987, __pyx_L325_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8988
 *                 str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)]
 *             except ValueError:
 *                 str_list += ['surfaceAlignment : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['concurrentKernels : ' + str(self.concurrentKernels)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8988, __pyx_L325_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_surfaceAlignment_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_surfaceAlignment_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_surfaceAlignment_ValueError) != (0)) __PYX_ERR(0, 8988, __pyx_L325_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8988, __pyx_L325_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L324_exception_handled;
      }
      goto __pyx_L325_except_error;

      /* "cuda/bindings/runtime.pyx":8985
 *             except ValueError:
 *                 str_list += ['maxSurfaceCubemapLayered : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)]
 *             except ValueError:
*/
      __pyx_L325_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L324_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L328_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8989
 *             except ValueError:
 *                 str_list += ['surfaceAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['concurrentKernels : ' + str(self.concurrentKernels)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8990
 *                 str_list += ['surfaceAlignment : <ValueError>']
 *             try:
 *                 str_list += ['concurrentKernels : ' + str(self.concurrentKernels)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['concurrentKernels : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_concurrentKernels_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8990, __pyx_L331_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8990, __pyx_L331_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_concurrentKernels, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8990, __pyx_L331_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8990, __pyx_L331_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8990, __pyx_L331_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8990, __pyx_L331_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8989
 *             except ValueError:
 *                 str_list += ['surfaceAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['concurrentKernels : ' + str(self.concurrentKernels)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L336_try_end;
      __pyx_L331_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8991
 *             try:
 *                 str_list += ['concurrentKernels : ' + str(self.concurrentKernels)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['concurrentKernels : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8991, __pyx_L333_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":8992
 *                 str_list += ['concurrentKernels : ' + str(self.concurrentKernels)]
 *             except ValueError:
 *                 str_list += ['concurrentKernels : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ECCEnabled : ' + str(self.ECCEnabled)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8992, __pyx_L333_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_concurrentKernels_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_concurrentKernels_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_concurrentKernels_ValueError) != (0)) __PYX_ERR(0, 8992, __pyx_L333_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8992, __pyx_L333_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L332_exception_handled;
      }
      goto __pyx_L333_except_error;

      /* "cuda/bindings/runtime.pyx":8989
 *             except ValueError:
 *                 str_list += ['surfaceAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['concurrentKernels : ' + str(self.concurrentKernels)]
 *             except ValueError:
*/
      __pyx_L333_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L332_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L336_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8993
 *             except ValueError:
 *                 str_list += ['concurrentKernels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ECCEnabled : ' + str(self.ECCEnabled)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8994
 *                 str_list += ['concurrentKernels : <ValueError>']
 *             try:
 *                 str_list += ['ECCEnabled : ' + str(self.ECCEnabled)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ECCEnabled : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ECCEnabled_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8994, __pyx_L339_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8994, __pyx_L339_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ECCEnabled, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8994, __pyx_L339_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8994, __pyx_L339_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 8994, __pyx_L339_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 8994, __pyx_L339_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":8993
 *             except ValueError:
 *                 str_list += ['concurrentKernels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ECCEnabled : ' + str(self.ECCEnabled)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L344_try_end;
      __pyx_L339_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8995
 *             try:
 *                 str_list += ['ECCEnabled : ' + str(self.ECCEnabled)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ECCEnabled : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 8995, __pyx_L341_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":8996
 *                 str_list += ['ECCEnabled : ' + str(self.ECCEnabled)]
 *             except ValueError:
 *                 str_list += ['ECCEnabled : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pciBusID : ' + str(self.pciBusID)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 8996, __pyx_L341_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ECCEnabled_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ECCEnabled_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_ECCEnabled_ValueError) != (0)) __PYX_ERR(0, 8996, __pyx_L341_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 8996, __pyx_L341_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L340_exception_handled;
      }
      goto __pyx_L341_except_error;

      /* "cuda/bindings/runtime.pyx":8993
 *             except ValueError:
 *                 str_list += ['concurrentKernels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ECCEnabled : ' + str(self.ECCEnabled)]
 *             except ValueError:
*/
      __pyx_L341_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L340_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L344_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":8997
 *             except ValueError:
 *                 str_list += ['ECCEnabled : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciBusID : ' + str(self.pciBusID)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":8998
 *                 str_list += ['ECCEnabled : <ValueError>']
 *             try:
 *                 str_list += ['pciBusID : ' + str(self.pciBusID)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pciBusID : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pciBusID_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8998, __pyx_L347_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8998, __pyx_L347_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pciBusID, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8998, __pyx_L347_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8998, __pyx_L347_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 8998, __pyx_L347_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 8998, __pyx_L347_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":8997
 *             except ValueError:
 *                 str_list += ['ECCEnabled : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciBusID : ' + str(self.pciBusID)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L352_try_end;
      __pyx_L347_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":8999
 *             try:
 *                 str_list += ['pciBusID : ' + str(self.pciBusID)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciBusID : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 8999, __pyx_L349_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9000
 *                 str_list += ['pciBusID : ' + str(self.pciBusID)]
 *             except ValueError:
 *                 str_list += ['pciBusID : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pciDeviceID : ' + str(self.pciDeviceID)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9000, __pyx_L349_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pciBusID_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pciBusID_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_pciBusID_ValueError) != (0)) __PYX_ERR(0, 9000, __pyx_L349_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9000, __pyx_L349_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L348_exception_handled;
      }
      goto __pyx_L349_except_error;

      /* "cuda/bindings/runtime.pyx":8997
 *             except ValueError:
 *                 str_list += ['ECCEnabled : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciBusID : ' + str(self.pciBusID)]
 *             except ValueError:
*/
      __pyx_L349_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L348_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L352_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9001
 *             except ValueError:
 *                 str_list += ['pciBusID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciDeviceID : ' + str(self.pciDeviceID)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9002
 *                 str_list += ['pciBusID : <ValueError>']
 *             try:
 *                 str_list += ['pciDeviceID : ' + str(self.pciDeviceID)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pciDeviceID : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pciDeviceID_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9002, __pyx_L355_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9002, __pyx_L355_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pciDeviceID, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9002, __pyx_L355_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9002, __pyx_L355_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9002, __pyx_L355_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9002, __pyx_L355_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9001
 *             except ValueError:
 *                 str_list += ['pciBusID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciDeviceID : ' + str(self.pciDeviceID)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L360_try_end;
      __pyx_L355_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9003
 *             try:
 *                 str_list += ['pciDeviceID : ' + str(self.pciDeviceID)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciDeviceID : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9003, __pyx_L357_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9004
 *                 str_list += ['pciDeviceID : ' + str(self.pciDeviceID)]
 *             except ValueError:
 *                 str_list += ['pciDeviceID : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pciDomainID : ' + str(self.pciDomainID)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9004, __pyx_L357_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pciDeviceID_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pciDeviceID_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_pciDeviceID_ValueError) != (0)) __PYX_ERR(0, 9004, __pyx_L357_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9004, __pyx_L357_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L356_exception_handled;
      }
      goto __pyx_L357_except_error;

      /* "cuda/bindings/runtime.pyx":9001
 *             except ValueError:
 *                 str_list += ['pciBusID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciDeviceID : ' + str(self.pciDeviceID)]
 *             except ValueError:
*/
      __pyx_L357_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L356_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L360_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9005
 *             except ValueError:
 *                 str_list += ['pciDeviceID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciDomainID : ' + str(self.pciDomainID)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9006
 *                 str_list += ['pciDeviceID : <ValueError>']
 *             try:
 *                 str_list += ['pciDomainID : ' + str(self.pciDomainID)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pciDomainID : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pciDomainID_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9006, __pyx_L363_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9006, __pyx_L363_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pciDomainID, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9006, __pyx_L363_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9006, __pyx_L363_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9006, __pyx_L363_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9006, __pyx_L363_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9005
 *             except ValueError:
 *                 str_list += ['pciDeviceID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciDomainID : ' + str(self.pciDomainID)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L368_try_end;
      __pyx_L363_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9007
 *             try:
 *                 str_list += ['pciDomainID : ' + str(self.pciDomainID)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciDomainID : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9007, __pyx_L365_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9008
 *                 str_list += ['pciDomainID : ' + str(self.pciDomainID)]
 *             except ValueError:
 *                 str_list += ['pciDomainID : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['tccDriver : ' + str(self.tccDriver)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9008, __pyx_L365_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pciDomainID_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pciDomainID_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_pciDomainID_ValueError) != (0)) __PYX_ERR(0, 9008, __pyx_L365_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9008, __pyx_L365_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L364_exception_handled;
      }
      goto __pyx_L365_except_error;

      /* "cuda/bindings/runtime.pyx":9005
 *             except ValueError:
 *                 str_list += ['pciDeviceID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pciDomainID : ' + str(self.pciDomainID)]
 *             except ValueError:
*/
      __pyx_L365_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L364_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L368_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9009
 *             except ValueError:
 *                 str_list += ['pciDomainID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['tccDriver : ' + str(self.tccDriver)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9010
 *                 str_list += ['pciDomainID : <ValueError>']
 *             try:
 *                 str_list += ['tccDriver : ' + str(self.tccDriver)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['tccDriver : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_tccDriver_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9010, __pyx_L371_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9010, __pyx_L371_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_tccDriver, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9010, __pyx_L371_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9010, __pyx_L371_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9010, __pyx_L371_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9010, __pyx_L371_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9009
 *             except ValueError:
 *                 str_list += ['pciDomainID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['tccDriver : ' + str(self.tccDriver)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L376_try_end;
      __pyx_L371_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9011
 *             try:
 *                 str_list += ['tccDriver : ' + str(self.tccDriver)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['tccDriver : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9011, __pyx_L373_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9012
 *                 str_list += ['tccDriver : ' + str(self.tccDriver)]
 *             except ValueError:
 *                 str_list += ['tccDriver : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9012, __pyx_L373_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_tccDriver_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_tccDriver_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_tccDriver_ValueError) != (0)) __PYX_ERR(0, 9012, __pyx_L373_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9012, __pyx_L373_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L372_exception_handled;
      }
      goto __pyx_L373_except_error;

      /* "cuda/bindings/runtime.pyx":9009
 *             except ValueError:
 *                 str_list += ['pciDomainID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['tccDriver : ' + str(self.tccDriver)]
 *             except ValueError:
*/
      __pyx_L373_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L372_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L376_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9013
 *             except ValueError:
 *                 str_list += ['tccDriver : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9014
 *                 str_list += ['tccDriver : <ValueError>']
 *             try:
 *                 str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['asyncEngineCount : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_asyncEngineCount_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9014, __pyx_L379_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9014, __pyx_L379_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_asyncEngineCount, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9014, __pyx_L379_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9014, __pyx_L379_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9014, __pyx_L379_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9014, __pyx_L379_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9013
 *             except ValueError:
 *                 str_list += ['tccDriver : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L384_try_end;
      __pyx_L379_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9015
 *             try:
 *                 str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['asyncEngineCount : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9015, __pyx_L381_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9016
 *                 str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)]
 *             except ValueError:
 *                 str_list += ['asyncEngineCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9016, __pyx_L381_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_asyncEngineCount_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_asyncEngineCount_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_asyncEngineCount_ValueError) != (0)) __PYX_ERR(0, 9016, __pyx_L381_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9016, __pyx_L381_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L380_exception_handled;
      }
      goto __pyx_L381_except_error;

      /* "cuda/bindings/runtime.pyx":9013
 *             except ValueError:
 *                 str_list += ['tccDriver : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)]
 *             except ValueError:
*/
      __pyx_L381_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L380_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L384_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9017
 *             except ValueError:
 *                 str_list += ['asyncEngineCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9018
 *                 str_list += ['asyncEngineCount : <ValueError>']
 *             try:
 *                 str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['unifiedAddressing : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_unifiedAddressing_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9018, __pyx_L387_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9018, __pyx_L387_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_unifiedAddressing, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9018, __pyx_L387_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9018, __pyx_L387_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9018, __pyx_L387_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9018, __pyx_L387_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9017
 *             except ValueError:
 *                 str_list += ['asyncEngineCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L392_try_end;
      __pyx_L387_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9019
 *             try:
 *                 str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['unifiedAddressing : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9019, __pyx_L389_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9020
 *                 str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)]
 *             except ValueError:
 *                 str_list += ['unifiedAddressing : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9020, __pyx_L389_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_unifiedAddressing_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_unifiedAddressing_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_unifiedAddressing_ValueError) != (0)) __PYX_ERR(0, 9020, __pyx_L389_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9020, __pyx_L389_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L388_exception_handled;
      }
      goto __pyx_L389_except_error;

      /* "cuda/bindings/runtime.pyx":9017
 *             except ValueError:
 *                 str_list += ['asyncEngineCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)]
 *             except ValueError:
*/
      __pyx_L389_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L388_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L392_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9021
 *             except ValueError:
 *                 str_list += ['unifiedAddressing : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9022
 *                 str_list += ['unifiedAddressing : <ValueError>']
 *             try:
 *                 str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['memoryBusWidth : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_memoryBusWidth_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9022, __pyx_L395_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9022, __pyx_L395_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_memoryBusWidth, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9022, __pyx_L395_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9022, __pyx_L395_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9022, __pyx_L395_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9022, __pyx_L395_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9021
 *             except ValueError:
 *                 str_list += ['unifiedAddressing : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L400_try_end;
      __pyx_L395_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9023
 *             try:
 *                 str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryBusWidth : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9023, __pyx_L397_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9024
 *                 str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)]
 *             except ValueError:
 *                 str_list += ['memoryBusWidth : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['l2CacheSize : ' + str(self.l2CacheSize)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9024, __pyx_L397_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_memoryBusWidth_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_memoryBusWidth_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_memoryBusWidth_ValueError) != (0)) __PYX_ERR(0, 9024, __pyx_L397_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9024, __pyx_L397_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L396_exception_handled;
      }
      goto __pyx_L397_except_error;

      /* "cuda/bindings/runtime.pyx":9021
 *             except ValueError:
 *                 str_list += ['unifiedAddressing : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)]
 *             except ValueError:
*/
      __pyx_L397_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L396_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L400_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9025
 *             except ValueError:
 *                 str_list += ['memoryBusWidth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['l2CacheSize : ' + str(self.l2CacheSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9026
 *                 str_list += ['memoryBusWidth : <ValueError>']
 *             try:
 *                 str_list += ['l2CacheSize : ' + str(self.l2CacheSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['l2CacheSize : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_l2CacheSize_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9026, __pyx_L403_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9026, __pyx_L403_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_l2CacheSize, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9026, __pyx_L403_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9026, __pyx_L403_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9026, __pyx_L403_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9026, __pyx_L403_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9025
 *             except ValueError:
 *                 str_list += ['memoryBusWidth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['l2CacheSize : ' + str(self.l2CacheSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L408_try_end;
      __pyx_L403_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9027
 *             try:
 *                 str_list += ['l2CacheSize : ' + str(self.l2CacheSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['l2CacheSize : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9027, __pyx_L405_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9028
 *                 str_list += ['l2CacheSize : ' + str(self.l2CacheSize)]
 *             except ValueError:
 *                 str_list += ['l2CacheSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9028, __pyx_L405_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_l2CacheSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_l2CacheSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_l2CacheSize_ValueError) != (0)) __PYX_ERR(0, 9028, __pyx_L405_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9028, __pyx_L405_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L404_exception_handled;
      }
      goto __pyx_L405_except_error;

      /* "cuda/bindings/runtime.pyx":9025
 *             except ValueError:
 *                 str_list += ['memoryBusWidth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['l2CacheSize : ' + str(self.l2CacheSize)]
 *             except ValueError:
*/
      __pyx_L405_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L404_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L408_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9029
 *             except ValueError:
 *                 str_list += ['l2CacheSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9030
 *                 str_list += ['l2CacheSize : <ValueError>']
 *             try:
 *                 str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['persistingL2CacheMaxSize : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_persistingL2CacheMaxSize_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9030, __pyx_L411_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9030, __pyx_L411_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_persistingL2CacheMaxSize, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9030, __pyx_L411_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9030, __pyx_L411_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9030, __pyx_L411_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9030, __pyx_L411_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9029
 *             except ValueError:
 *                 str_list += ['l2CacheSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L416_try_end;
      __pyx_L411_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9031
 *             try:
 *                 str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['persistingL2CacheMaxSize : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9031, __pyx_L413_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9032
 *                 str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)]
 *             except ValueError:
 *                 str_list += ['persistingL2CacheMaxSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9032, __pyx_L413_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_persistingL2CacheMaxSize_ValueEr);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_persistingL2CacheMaxSize_ValueEr);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_persistingL2CacheMaxSize_ValueEr) != (0)) __PYX_ERR(0, 9032, __pyx_L413_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9032, __pyx_L413_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L412_exception_handled;
      }
      goto __pyx_L413_except_error;

      /* "cuda/bindings/runtime.pyx":9029
 *             except ValueError:
 *                 str_list += ['l2CacheSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)]
 *             except ValueError:
*/
      __pyx_L413_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L412_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L416_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9033
 *             except ValueError:
 *                 str_list += ['persistingL2CacheMaxSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9034
 *                 str_list += ['persistingL2CacheMaxSize : <ValueError>']
 *             try:
 *                 str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxThreadsPerMultiProcessor : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxThreadsPerMultiProcessor_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9034, __pyx_L419_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9034, __pyx_L419_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerMultiProcessor, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9034, __pyx_L419_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9034, __pyx_L419_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9034, __pyx_L419_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9034, __pyx_L419_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9033
 *             except ValueError:
 *                 str_list += ['persistingL2CacheMaxSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L424_try_end;
      __pyx_L419_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9035
 *             try:
 *                 str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerMultiProcessor : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9035, __pyx_L421_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9036
 *                 str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)]
 *             except ValueError:
 *                 str_list += ['maxThreadsPerMultiProcessor : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9036, __pyx_L421_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerMultiProcessor_Valu);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxThreadsPerMultiProcessor_Valu);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxThreadsPerMultiProcessor_Valu) != (0)) __PYX_ERR(0, 9036, __pyx_L421_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9036, __pyx_L421_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L420_exception_handled;
      }
      goto __pyx_L421_except_error;

      /* "cuda/bindings/runtime.pyx":9033
 *             except ValueError:
 *                 str_list += ['persistingL2CacheMaxSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)]
 *             except ValueError:
*/
      __pyx_L421_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L420_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L424_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9037
 *             except ValueError:
 *                 str_list += ['maxThreadsPerMultiProcessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9038
 *                 str_list += ['maxThreadsPerMultiProcessor : <ValueError>']
 *             try:
 *                 str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['streamPrioritiesSupported : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_streamPrioritiesSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9038, __pyx_L427_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9038, __pyx_L427_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_streamPrioritiesSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9038, __pyx_L427_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9038, __pyx_L427_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9038, __pyx_L427_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9038, __pyx_L427_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9037
 *             except ValueError:
 *                 str_list += ['maxThreadsPerMultiProcessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L432_try_end;
      __pyx_L427_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9039
 *             try:
 *                 str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['streamPrioritiesSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9039, __pyx_L429_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9040
 *                 str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)]
 *             except ValueError:
 *                 str_list += ['streamPrioritiesSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9040, __pyx_L429_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_streamPrioritiesSupported_ValueE);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_streamPrioritiesSupported_ValueE);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_streamPrioritiesSupported_ValueE) != (0)) __PYX_ERR(0, 9040, __pyx_L429_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9040, __pyx_L429_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L428_exception_handled;
      }
      goto __pyx_L429_except_error;

      /* "cuda/bindings/runtime.pyx":9037
 *             except ValueError:
 *                 str_list += ['maxThreadsPerMultiProcessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)]
 *             except ValueError:
*/
      __pyx_L429_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L428_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L432_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9041
 *             except ValueError:
 *                 str_list += ['streamPrioritiesSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9042
 *                 str_list += ['streamPrioritiesSupported : <ValueError>']
 *             try:
 *                 str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['globalL1CacheSupported : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_globalL1CacheSupported_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9042, __pyx_L435_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9042, __pyx_L435_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_globalL1CacheSupported, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9042, __pyx_L435_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9042, __pyx_L435_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9042, __pyx_L435_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9042, __pyx_L435_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9041
 *             except ValueError:
 *                 str_list += ['streamPrioritiesSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L440_try_end;
      __pyx_L435_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9043
 *             try:
 *                 str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['globalL1CacheSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9043, __pyx_L437_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9044
 *                 str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)]
 *             except ValueError:
 *                 str_list += ['globalL1CacheSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9044, __pyx_L437_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_globalL1CacheSupported_ValueErro);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_globalL1CacheSupported_ValueErro);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_globalL1CacheSupported_ValueErro) != (0)) __PYX_ERR(0, 9044, __pyx_L437_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9044, __pyx_L437_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L436_exception_handled;
      }
      goto __pyx_L437_except_error;

      /* "cuda/bindings/runtime.pyx":9041
 *             except ValueError:
 *                 str_list += ['streamPrioritiesSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)]
 *             except ValueError:
*/
      __pyx_L437_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L436_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L440_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9045
 *             except ValueError:
 *                 str_list += ['globalL1CacheSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9046
 *                 str_list += ['globalL1CacheSupported : <ValueError>']
 *             try:
 *                 str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['localL1CacheSupported : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_localL1CacheSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9046, __pyx_L443_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9046, __pyx_L443_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_localL1CacheSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9046, __pyx_L443_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9046, __pyx_L443_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9046, __pyx_L443_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9046, __pyx_L443_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9045
 *             except ValueError:
 *                 str_list += ['globalL1CacheSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L448_try_end;
      __pyx_L443_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9047
 *             try:
 *                 str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['localL1CacheSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9047, __pyx_L445_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9048
 *                 str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)]
 *             except ValueError:
 *                 str_list += ['localL1CacheSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9048, __pyx_L445_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_localL1CacheSupported_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_localL1CacheSupported_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_localL1CacheSupported_ValueError) != (0)) __PYX_ERR(0, 9048, __pyx_L445_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9048, __pyx_L445_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L444_exception_handled;
      }
      goto __pyx_L445_except_error;

      /* "cuda/bindings/runtime.pyx":9045
 *             except ValueError:
 *                 str_list += ['globalL1CacheSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)]
 *             except ValueError:
*/
      __pyx_L445_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L444_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L448_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9049
 *             except ValueError:
 *                 str_list += ['localL1CacheSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9050
 *                 str_list += ['localL1CacheSupported : <ValueError>']
 *             try:
 *                 str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sharedMemPerMultiprocessor : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sharedMemPerMultiprocessor_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9050, __pyx_L451_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9050, __pyx_L451_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sharedMemPerMultiprocessor, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9050, __pyx_L451_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9050, __pyx_L451_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9050, __pyx_L451_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9050, __pyx_L451_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9049
 *             except ValueError:
 *                 str_list += ['localL1CacheSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L456_try_end;
      __pyx_L451_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9051
 *             try:
 *                 str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerMultiprocessor : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9051, __pyx_L453_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9052
 *                 str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)]
 *             except ValueError:
 *                 str_list += ['sharedMemPerMultiprocessor : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9052, __pyx_L453_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sharedMemPerMultiprocessor_Value);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sharedMemPerMultiprocessor_Value);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_sharedMemPerMultiprocessor_Value) != (0)) __PYX_ERR(0, 9052, __pyx_L453_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9052, __pyx_L453_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L452_exception_handled;
      }
      goto __pyx_L453_except_error;

      /* "cuda/bindings/runtime.pyx":9049
 *             except ValueError:
 *                 str_list += ['localL1CacheSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)]
 *             except ValueError:
*/
      __pyx_L453_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L452_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L456_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9053
 *             except ValueError:
 *                 str_list += ['sharedMemPerMultiprocessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9054
 *                 str_list += ['sharedMemPerMultiprocessor : <ValueError>']
 *             try:
 *                 str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['regsPerMultiprocessor : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_regsPerMultiprocessor_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9054, __pyx_L459_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9054, __pyx_L459_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_regsPerMultiprocessor, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9054, __pyx_L459_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9054, __pyx_L459_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9054, __pyx_L459_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9054, __pyx_L459_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9053
 *             except ValueError:
 *                 str_list += ['sharedMemPerMultiprocessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L464_try_end;
      __pyx_L459_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9055
 *             try:
 *                 str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['regsPerMultiprocessor : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9055, __pyx_L461_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9056
 *                 str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)]
 *             except ValueError:
 *                 str_list += ['regsPerMultiprocessor : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['managedMemory : ' + str(self.managedMemory)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9056, __pyx_L461_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_regsPerMultiprocessor_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_regsPerMultiprocessor_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_regsPerMultiprocessor_ValueError) != (0)) __PYX_ERR(0, 9056, __pyx_L461_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9056, __pyx_L461_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L460_exception_handled;
      }
      goto __pyx_L461_except_error;

      /* "cuda/bindings/runtime.pyx":9053
 *             except ValueError:
 *                 str_list += ['sharedMemPerMultiprocessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)]
 *             except ValueError:
*/
      __pyx_L461_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L460_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L464_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9057
 *             except ValueError:
 *                 str_list += ['regsPerMultiprocessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['managedMemory : ' + str(self.managedMemory)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9058
 *                 str_list += ['regsPerMultiprocessor : <ValueError>']
 *             try:
 *                 str_list += ['managedMemory : ' + str(self.managedMemory)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['managedMemory : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_managedMemory_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9058, __pyx_L467_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9058, __pyx_L467_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_managedMemory, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9058, __pyx_L467_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9058, __pyx_L467_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9058, __pyx_L467_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9058, __pyx_L467_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9057
 *             except ValueError:
 *                 str_list += ['regsPerMultiprocessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['managedMemory : ' + str(self.managedMemory)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L472_try_end;
      __pyx_L467_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9059
 *             try:
 *                 str_list += ['managedMemory : ' + str(self.managedMemory)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['managedMemory : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9059, __pyx_L469_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9060
 *                 str_list += ['managedMemory : ' + str(self.managedMemory)]
 *             except ValueError:
 *                 str_list += ['managedMemory : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9060, __pyx_L469_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_managedMemory_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_managedMemory_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_managedMemory_ValueError) != (0)) __PYX_ERR(0, 9060, __pyx_L469_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9060, __pyx_L469_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L468_exception_handled;
      }
      goto __pyx_L469_except_error;

      /* "cuda/bindings/runtime.pyx":9057
 *             except ValueError:
 *                 str_list += ['regsPerMultiprocessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['managedMemory : ' + str(self.managedMemory)]
 *             except ValueError:
*/
      __pyx_L469_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L468_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L472_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9061
 *             except ValueError:
 *                 str_list += ['managedMemory : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9062
 *                 str_list += ['managedMemory : <ValueError>']
 *             try:
 *                 str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['isMultiGpuBoard : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_isMultiGpuBoard_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9062, __pyx_L475_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9062, __pyx_L475_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_isMultiGpuBoard, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9062, __pyx_L475_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9062, __pyx_L475_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9062, __pyx_L475_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9062, __pyx_L475_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9061
 *             except ValueError:
 *                 str_list += ['managedMemory : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L480_try_end;
      __pyx_L475_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9063
 *             try:
 *                 str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['isMultiGpuBoard : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9063, __pyx_L477_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9064
 *                 str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)]
 *             except ValueError:
 *                 str_list += ['isMultiGpuBoard : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9064, __pyx_L477_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_isMultiGpuBoard_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_isMultiGpuBoard_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_isMultiGpuBoard_ValueError) != (0)) __PYX_ERR(0, 9064, __pyx_L477_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9064, __pyx_L477_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L476_exception_handled;
      }
      goto __pyx_L477_except_error;

      /* "cuda/bindings/runtime.pyx":9061
 *             except ValueError:
 *                 str_list += ['managedMemory : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)]
 *             except ValueError:
*/
      __pyx_L477_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L476_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L480_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9065
 *             except ValueError:
 *                 str_list += ['isMultiGpuBoard : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9066
 *                 str_list += ['isMultiGpuBoard : <ValueError>']
 *             try:
 *                 str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['multiGpuBoardGroupID : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_multiGpuBoardGroupID_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9066, __pyx_L483_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9066, __pyx_L483_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_multiGpuBoardGroupID, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9066, __pyx_L483_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9066, __pyx_L483_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9066, __pyx_L483_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9066, __pyx_L483_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9065
 *             except ValueError:
 *                 str_list += ['isMultiGpuBoard : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L488_try_end;
      __pyx_L483_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9067
 *             try:
 *                 str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['multiGpuBoardGroupID : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9067, __pyx_L485_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9068
 *                 str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)]
 *             except ValueError:
 *                 str_list += ['multiGpuBoardGroupID : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9068, __pyx_L485_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_multiGpuBoardGroupID_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_multiGpuBoardGroupID_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_multiGpuBoardGroupID_ValueError) != (0)) __PYX_ERR(0, 9068, __pyx_L485_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9068, __pyx_L485_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L484_exception_handled;
      }
      goto __pyx_L485_except_error;

      /* "cuda/bindings/runtime.pyx":9065
 *             except ValueError:
 *                 str_list += ['isMultiGpuBoard : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)]
 *             except ValueError:
*/
      __pyx_L485_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L484_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L488_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9069
 *             except ValueError:
 *                 str_list += ['multiGpuBoardGroupID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9070
 *                 str_list += ['multiGpuBoardGroupID : <ValueError>']
 *             try:
 *                 str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['hostNativeAtomicSupported : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_hostNativeAtomicSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9070, __pyx_L491_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9070, __pyx_L491_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_hostNativeAtomicSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9070, __pyx_L491_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9070, __pyx_L491_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9070, __pyx_L491_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9070, __pyx_L491_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9069
 *             except ValueError:
 *                 str_list += ['multiGpuBoardGroupID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L496_try_end;
      __pyx_L491_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9071
 *             try:
 *                 str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNativeAtomicSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9071, __pyx_L493_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9072
 *                 str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)]
 *             except ValueError:
 *                 str_list += ['hostNativeAtomicSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9072, __pyx_L493_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_hostNativeAtomicSupported_ValueE);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_hostNativeAtomicSupported_ValueE);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_hostNativeAtomicSupported_ValueE) != (0)) __PYX_ERR(0, 9072, __pyx_L493_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9072, __pyx_L493_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L492_exception_handled;
      }
      goto __pyx_L493_except_error;

      /* "cuda/bindings/runtime.pyx":9069
 *             except ValueError:
 *                 str_list += ['multiGpuBoardGroupID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)]
 *             except ValueError:
*/
      __pyx_L493_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L492_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L496_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9073
 *             except ValueError:
 *                 str_list += ['hostNativeAtomicSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9074
 *                 str_list += ['hostNativeAtomicSupported : <ValueError>']
 *             try:
 *                 str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccess : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pageableMemoryAccess_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9074, __pyx_L499_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9074, __pyx_L499_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pageableMemoryAccess, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9074, __pyx_L499_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9074, __pyx_L499_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9074, __pyx_L499_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9074, __pyx_L499_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9073
 *             except ValueError:
 *                 str_list += ['hostNativeAtomicSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L504_try_end;
      __pyx_L499_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9075
 *             try:
 *                 str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pageableMemoryAccess : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9075, __pyx_L501_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9076
 *                 str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)]
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccess : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9076, __pyx_L501_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pageableMemoryAccess_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pageableMemoryAccess_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_pageableMemoryAccess_ValueError) != (0)) __PYX_ERR(0, 9076, __pyx_L501_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9076, __pyx_L501_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L500_exception_handled;
      }
      goto __pyx_L501_except_error;

      /* "cuda/bindings/runtime.pyx":9073
 *             except ValueError:
 *                 str_list += ['hostNativeAtomicSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)]
 *             except ValueError:
*/
      __pyx_L501_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L500_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L504_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9077
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccess : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9078
 *                 str_list += ['pageableMemoryAccess : <ValueError>']
 *             try:
 *                 str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['concurrentManagedAccess : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_concurrentManagedAccess_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9078, __pyx_L507_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9078, __pyx_L507_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_concurrentManagedAccess, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9078, __pyx_L507_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9078, __pyx_L507_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9078, __pyx_L507_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9078, __pyx_L507_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9077
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccess : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L512_try_end;
      __pyx_L507_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9079
 *             try:
 *                 str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['concurrentManagedAccess : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9079, __pyx_L509_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9080
 *                 str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)]
 *             except ValueError:
 *                 str_list += ['concurrentManagedAccess : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9080, __pyx_L509_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_concurrentManagedAccess_ValueErr);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_concurrentManagedAccess_ValueErr);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_concurrentManagedAccess_ValueErr) != (0)) __PYX_ERR(0, 9080, __pyx_L509_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9080, __pyx_L509_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L508_exception_handled;
      }
      goto __pyx_L509_except_error;

      /* "cuda/bindings/runtime.pyx":9077
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccess : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)]
 *             except ValueError:
*/
      __pyx_L509_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L508_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L512_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9081
 *             except ValueError:
 *                 str_list += ['concurrentManagedAccess : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9082
 *                 str_list += ['concurrentManagedAccess : <ValueError>']
 *             try:
 *                 str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['computePreemptionSupported : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_computePreemptionSupported_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9082, __pyx_L515_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9082, __pyx_L515_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_computePreemptionSupported, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9082, __pyx_L515_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9082, __pyx_L515_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9082, __pyx_L515_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9082, __pyx_L515_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9081
 *             except ValueError:
 *                 str_list += ['concurrentManagedAccess : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L520_try_end;
      __pyx_L515_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9083
 *             try:
 *                 str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['computePreemptionSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9083, __pyx_L517_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9084
 *                 str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)]
 *             except ValueError:
 *                 str_list += ['computePreemptionSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9084, __pyx_L517_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_computePreemptionSupported_Value);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_computePreemptionSupported_Value);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_computePreemptionSupported_Value) != (0)) __PYX_ERR(0, 9084, __pyx_L517_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9084, __pyx_L517_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L516_exception_handled;
      }
      goto __pyx_L517_except_error;

      /* "cuda/bindings/runtime.pyx":9081
 *             except ValueError:
 *                 str_list += ['concurrentManagedAccess : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)]
 *             except ValueError:
*/
      __pyx_L517_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L516_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L520_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9085
 *             except ValueError:
 *                 str_list += ['computePreemptionSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9086
 *                 str_list += ['computePreemptionSupported : <ValueError>']
 *             try:
 *                 str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['canUseHostPointerForRegisteredMem : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_canUseHostPointerForRegisteredMe_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9086, __pyx_L523_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9086, __pyx_L523_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_canUseHostPointerForRegisteredMe, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9086, __pyx_L523_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9086, __pyx_L523_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9086, __pyx_L523_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9086, __pyx_L523_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9085
 *             except ValueError:
 *                 str_list += ['computePreemptionSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L528_try_end;
      __pyx_L523_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9087
 *             try:
 *                 str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['canUseHostPointerForRegisteredMem : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9087, __pyx_L525_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9088
 *                 str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)]
 *             except ValueError:
 *                 str_list += ['canUseHostPointerForRegisteredMem : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9088, __pyx_L525_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_canUseHostPointerForRegisteredMe_3);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_canUseHostPointerForRegisteredMe_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_canUseHostPointerForRegisteredMe_3) != (0)) __PYX_ERR(0, 9088, __pyx_L525_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9088, __pyx_L525_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L524_exception_handled;
      }
      goto __pyx_L525_except_error;

      /* "cuda/bindings/runtime.pyx":9085
 *             except ValueError:
 *                 str_list += ['computePreemptionSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)]
 *             except ValueError:
*/
      __pyx_L525_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L524_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L528_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9089
 *             except ValueError:
 *                 str_list += ['canUseHostPointerForRegisteredMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9090
 *                 str_list += ['canUseHostPointerForRegisteredMem : <ValueError>']
 *             try:
 *                 str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['cooperativeLaunch : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_cooperativeLaunch_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9090, __pyx_L531_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9090, __pyx_L531_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cooperativeLaunch, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9090, __pyx_L531_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9090, __pyx_L531_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9090, __pyx_L531_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9090, __pyx_L531_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9089
 *             except ValueError:
 *                 str_list += ['canUseHostPointerForRegisteredMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L536_try_end;
      __pyx_L531_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9091
 *             try:
 *                 str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['cooperativeLaunch : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9091, __pyx_L533_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9092
 *                 str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)]
 *             except ValueError:
 *                 str_list += ['cooperativeLaunch : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9092, __pyx_L533_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_cooperativeLaunch_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_cooperativeLaunch_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_cooperativeLaunch_ValueError) != (0)) __PYX_ERR(0, 9092, __pyx_L533_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9092, __pyx_L533_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L532_exception_handled;
      }
      goto __pyx_L533_except_error;

      /* "cuda/bindings/runtime.pyx":9089
 *             except ValueError:
 *                 str_list += ['canUseHostPointerForRegisteredMem : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)]
 *             except ValueError:
*/
      __pyx_L533_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L532_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L536_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9093
 *             except ValueError:
 *                 str_list += ['cooperativeLaunch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9094
 *                 str_list += ['cooperativeLaunch : <ValueError>']
 *             try:
 *                 str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlockOptin : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sharedMemPerBlockOptin_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9094, __pyx_L539_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9094, __pyx_L539_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sharedMemPerBlockOptin, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9094, __pyx_L539_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9094, __pyx_L539_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9094, __pyx_L539_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9094, __pyx_L539_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9093
 *             except ValueError:
 *                 str_list += ['cooperativeLaunch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L544_try_end;
      __pyx_L539_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9095
 *             try:
 *                 str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerBlockOptin : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9095, __pyx_L541_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9096
 *                 str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)]
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlockOptin : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9096, __pyx_L541_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sharedMemPerBlockOptin_ValueErro);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sharedMemPerBlockOptin_ValueErro);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_sharedMemPerBlockOptin_ValueErro) != (0)) __PYX_ERR(0, 9096, __pyx_L541_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9096, __pyx_L541_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L540_exception_handled;
      }
      goto __pyx_L541_except_error;

      /* "cuda/bindings/runtime.pyx":9093
 *             except ValueError:
 *                 str_list += ['cooperativeLaunch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)]
 *             except ValueError:
*/
      __pyx_L541_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L540_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L544_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9097
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlockOptin : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9098
 *                 str_list += ['sharedMemPerBlockOptin : <ValueError>']
 *             try:
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pageableMemoryAccessUsesHostPage_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9098, __pyx_L547_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9098, __pyx_L547_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pageableMemoryAccessUsesHostPage, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9098, __pyx_L547_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9098, __pyx_L547_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9098, __pyx_L547_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9098, __pyx_L547_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9097
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlockOptin : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L552_try_end;
      __pyx_L547_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9099
 *             try:
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9099, __pyx_L549_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9100
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)]
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9100, __pyx_L549_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pageableMemoryAccessUsesHostPage_3);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pageableMemoryAccessUsesHostPage_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_pageableMemoryAccessUsesHostPage_3) != (0)) __PYX_ERR(0, 9100, __pyx_L549_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9100, __pyx_L549_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L548_exception_handled;
      }
      goto __pyx_L549_except_error;

      /* "cuda/bindings/runtime.pyx":9097
 *             except ValueError:
 *                 str_list += ['sharedMemPerBlockOptin : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)]
 *             except ValueError:
*/
      __pyx_L549_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L548_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L552_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9101
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9102
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : <ValueError>']
 *             try:
 *                 str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['directManagedMemAccessFromHost : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_directManagedMemAccessFromHost_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9102, __pyx_L555_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9102, __pyx_L555_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_directManagedMemAccessFromHost, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9102, __pyx_L555_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9102, __pyx_L555_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9102, __pyx_L555_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9102, __pyx_L555_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9101
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L560_try_end;
      __pyx_L555_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9103
 *             try:
 *                 str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['directManagedMemAccessFromHost : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9103, __pyx_L557_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9104
 *                 str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)]
 *             except ValueError:
 *                 str_list += ['directManagedMemAccessFromHost : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9104, __pyx_L557_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_directManagedMemAccessFromHost_V);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_directManagedMemAccessFromHost_V);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_directManagedMemAccessFromHost_V) != (0)) __PYX_ERR(0, 9104, __pyx_L557_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9104, __pyx_L557_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L556_exception_handled;
      }
      goto __pyx_L557_except_error;

      /* "cuda/bindings/runtime.pyx":9101
 *             except ValueError:
 *                 str_list += ['pageableMemoryAccessUsesHostPageTables : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)]
 *             except ValueError:
*/
      __pyx_L557_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L556_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L560_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9105
 *             except ValueError:
 *                 str_list += ['directManagedMemAccessFromHost : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9106
 *                 str_list += ['directManagedMemAccessFromHost : <ValueError>']
 *             try:
 *                 str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxBlocksPerMultiProcessor : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxBlocksPerMultiProcessor_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9106, __pyx_L563_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9106, __pyx_L563_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxBlocksPerMultiProcessor, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9106, __pyx_L563_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9106, __pyx_L563_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9106, __pyx_L563_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9106, __pyx_L563_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9105
 *             except ValueError:
 *                 str_list += ['directManagedMemAccessFromHost : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L568_try_end;
      __pyx_L563_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9107
 *             try:
 *                 str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxBlocksPerMultiProcessor : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9107, __pyx_L565_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9108
 *                 str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)]
 *             except ValueError:
 *                 str_list += ['maxBlocksPerMultiProcessor : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9108, __pyx_L565_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxBlocksPerMultiProcessor_Value);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxBlocksPerMultiProcessor_Value);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_maxBlocksPerMultiProcessor_Value) != (0)) __PYX_ERR(0, 9108, __pyx_L565_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9108, __pyx_L565_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L564_exception_handled;
      }
      goto __pyx_L565_except_error;

      /* "cuda/bindings/runtime.pyx":9105
 *             except ValueError:
 *                 str_list += ['directManagedMemAccessFromHost : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)]
 *             except ValueError:
*/
      __pyx_L565_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L564_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L568_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9109
 *             except ValueError:
 *                 str_list += ['maxBlocksPerMultiProcessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9110
 *                 str_list += ['maxBlocksPerMultiProcessor : <ValueError>']
 *             try:
 *                 str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['accessPolicyMaxWindowSize : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_accessPolicyMaxWindowSize_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9110, __pyx_L571_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9110, __pyx_L571_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_accessPolicyMaxWindowSize, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9110, __pyx_L571_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9110, __pyx_L571_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9110, __pyx_L571_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9110, __pyx_L571_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9109
 *             except ValueError:
 *                 str_list += ['maxBlocksPerMultiProcessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L576_try_end;
      __pyx_L571_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9111
 *             try:
 *                 str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessPolicyMaxWindowSize : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9111, __pyx_L573_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9112
 *                 str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)]
 *             except ValueError:
 *                 str_list += ['accessPolicyMaxWindowSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9112, __pyx_L573_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_accessPolicyMaxWindowSize_ValueE);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_accessPolicyMaxWindowSize_ValueE);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_accessPolicyMaxWindowSize_ValueE) != (0)) __PYX_ERR(0, 9112, __pyx_L573_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9112, __pyx_L573_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L572_exception_handled;
      }
      goto __pyx_L573_except_error;

      /* "cuda/bindings/runtime.pyx":9109
 *             except ValueError:
 *                 str_list += ['maxBlocksPerMultiProcessor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)]
 *             except ValueError:
*/
      __pyx_L573_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L572_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L576_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9113
 *             except ValueError:
 *                 str_list += ['accessPolicyMaxWindowSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9114
 *                 str_list += ['accessPolicyMaxWindowSize : <ValueError>']
 *             try:
 *                 str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reservedSharedMemPerBlock : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reservedSharedMemPerBlock_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9114, __pyx_L579_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9114, __pyx_L579_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reservedSharedMemPerBlock, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9114, __pyx_L579_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9114, __pyx_L579_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9114, __pyx_L579_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9114, __pyx_L579_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9113
 *             except ValueError:
 *                 str_list += ['accessPolicyMaxWindowSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L584_try_end;
      __pyx_L579_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9115
 *             try:
 *                 str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reservedSharedMemPerBlock : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9115, __pyx_L581_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9116
 *                 str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)]
 *             except ValueError:
 *                 str_list += ['reservedSharedMemPerBlock : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9116, __pyx_L581_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reservedSharedMemPerBlock_ValueE);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reservedSharedMemPerBlock_ValueE);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_reservedSharedMemPerBlock_ValueE) != (0)) __PYX_ERR(0, 9116, __pyx_L581_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9116, __pyx_L581_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L580_exception_handled;
      }
      goto __pyx_L581_except_error;

      /* "cuda/bindings/runtime.pyx":9113
 *             except ValueError:
 *                 str_list += ['accessPolicyMaxWindowSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)]
 *             except ValueError:
*/
      __pyx_L581_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L580_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L584_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9117
 *             except ValueError:
 *                 str_list += ['reservedSharedMemPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9118
 *                 str_list += ['reservedSharedMemPerBlock : <ValueError>']
 *             try:
 *                 str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['hostRegisterSupported : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_hostRegisterSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9118, __pyx_L587_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9118, __pyx_L587_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_hostRegisterSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9118, __pyx_L587_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9118, __pyx_L587_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9118, __pyx_L587_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9118, __pyx_L587_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9117
 *             except ValueError:
 *                 str_list += ['reservedSharedMemPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L592_try_end;
      __pyx_L587_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9119
 *             try:
 *                 str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostRegisterSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9119, __pyx_L589_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9120
 *                 str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)]
 *             except ValueError:
 *                 str_list += ['hostRegisterSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9120, __pyx_L589_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_hostRegisterSupported_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_hostRegisterSupported_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_hostRegisterSupported_ValueError) != (0)) __PYX_ERR(0, 9120, __pyx_L589_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9120, __pyx_L589_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L588_exception_handled;
      }
      goto __pyx_L589_except_error;

      /* "cuda/bindings/runtime.pyx":9117
 *             except ValueError:
 *                 str_list += ['reservedSharedMemPerBlock : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)]
 *             except ValueError:
*/
      __pyx_L589_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L588_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L592_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9121
 *             except ValueError:
 *                 str_list += ['hostRegisterSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9122
 *                 str_list += ['hostRegisterSupported : <ValueError>']
 *             try:
 *                 str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sparseCudaArraySupported : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sparseCudaArraySupported_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9122, __pyx_L595_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9122, __pyx_L595_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sparseCudaArraySupported, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9122, __pyx_L595_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9122, __pyx_L595_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9122, __pyx_L595_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9122, __pyx_L595_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9121
 *             except ValueError:
 *                 str_list += ['hostRegisterSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L600_try_end;
      __pyx_L595_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9123
 *             try:
 *                 str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sparseCudaArraySupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9123, __pyx_L597_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9124
 *                 str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)]
 *             except ValueError:
 *                 str_list += ['sparseCudaArraySupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9124, __pyx_L597_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sparseCudaArraySupported_ValueEr);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sparseCudaArraySupported_ValueEr);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_sparseCudaArraySupported_ValueEr) != (0)) __PYX_ERR(0, 9124, __pyx_L597_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9124, __pyx_L597_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L596_exception_handled;
      }
      goto __pyx_L597_except_error;

      /* "cuda/bindings/runtime.pyx":9121
 *             except ValueError:
 *                 str_list += ['hostRegisterSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)]
 *             except ValueError:
*/
      __pyx_L597_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L596_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L600_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9125
 *             except ValueError:
 *                 str_list += ['sparseCudaArraySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9126
 *                 str_list += ['sparseCudaArraySupported : <ValueError>']
 *             try:
 *                 str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['hostRegisterReadOnlySupported : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_hostRegisterReadOnlySupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9126, __pyx_L603_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9126, __pyx_L603_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_hostRegisterReadOnlySupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9126, __pyx_L603_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9126, __pyx_L603_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9126, __pyx_L603_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9126, __pyx_L603_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9125
 *             except ValueError:
 *                 str_list += ['sparseCudaArraySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L608_try_end;
      __pyx_L603_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9127
 *             try:
 *                 str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostRegisterReadOnlySupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9127, __pyx_L605_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9128
 *                 str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)]
 *             except ValueError:
 *                 str_list += ['hostRegisterReadOnlySupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9128, __pyx_L605_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_hostRegisterReadOnlySupported_Va);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_hostRegisterReadOnlySupported_Va);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_hostRegisterReadOnlySupported_Va) != (0)) __PYX_ERR(0, 9128, __pyx_L605_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9128, __pyx_L605_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L604_exception_handled;
      }
      goto __pyx_L605_except_error;

      /* "cuda/bindings/runtime.pyx":9125
 *             except ValueError:
 *                 str_list += ['sparseCudaArraySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)]
 *             except ValueError:
*/
      __pyx_L605_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L604_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L608_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9129
 *             except ValueError:
 *                 str_list += ['hostRegisterReadOnlySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9130
 *                 str_list += ['hostRegisterReadOnlySupported : <ValueError>']
 *             try:
 *                 str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['timelineSemaphoreInteropSupported : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_timelineSemaphoreInteropSupporte_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9130, __pyx_L611_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9130, __pyx_L611_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_timelineSemaphoreInteropSupporte, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9130, __pyx_L611_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9130, __pyx_L611_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9130, __pyx_L611_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9130, __pyx_L611_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9129
 *             except ValueError:
 *                 str_list += ['hostRegisterReadOnlySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L616_try_end;
      __pyx_L611_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9131
 *             try:
 *                 str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['timelineSemaphoreInteropSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9131, __pyx_L613_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9132
 *                 str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)]
 *             except ValueError:
 *                 str_list += ['timelineSemaphoreInteropSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9132, __pyx_L613_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_timelineSemaphoreInteropSupporte_3);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_timelineSemaphoreInteropSupporte_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_timelineSemaphoreInteropSupporte_3) != (0)) __PYX_ERR(0, 9132, __pyx_L613_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9132, __pyx_L613_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L612_exception_handled;
      }
      goto __pyx_L613_except_error;

      /* "cuda/bindings/runtime.pyx":9129
 *             except ValueError:
 *                 str_list += ['hostRegisterReadOnlySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)]
 *             except ValueError:
*/
      __pyx_L613_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L612_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L616_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9133
 *             except ValueError:
 *                 str_list += ['timelineSemaphoreInteropSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9134
 *                 str_list += ['timelineSemaphoreInteropSupported : <ValueError>']
 *             try:
 *                 str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['memoryPoolsSupported : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_memoryPoolsSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9134, __pyx_L619_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9134, __pyx_L619_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_memoryPoolsSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9134, __pyx_L619_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9134, __pyx_L619_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9134, __pyx_L619_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9134, __pyx_L619_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9133
 *             except ValueError:
 *                 str_list += ['timelineSemaphoreInteropSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L624_try_end;
      __pyx_L619_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9135
 *             try:
 *                 str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryPoolsSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9135, __pyx_L621_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9136
 *                 str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)]
 *             except ValueError:
 *                 str_list += ['memoryPoolsSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9136, __pyx_L621_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_memoryPoolsSupported_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_memoryPoolsSupported_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_memoryPoolsSupported_ValueError) != (0)) __PYX_ERR(0, 9136, __pyx_L621_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9136, __pyx_L621_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L620_exception_handled;
      }
      goto __pyx_L621_except_error;

      /* "cuda/bindings/runtime.pyx":9133
 *             except ValueError:
 *                 str_list += ['timelineSemaphoreInteropSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)]
 *             except ValueError:
*/
      __pyx_L621_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L620_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L624_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9137
 *             except ValueError:
 *                 str_list += ['memoryPoolsSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9138
 *                 str_list += ['memoryPoolsSupported : <ValueError>']
 *             try:
 *                 str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMASupported : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_gpuDirectRDMASupported_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9138, __pyx_L627_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9138, __pyx_L627_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMASupported, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9138, __pyx_L627_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9138, __pyx_L627_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9138, __pyx_L627_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9138, __pyx_L627_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9137
 *             except ValueError:
 *                 str_list += ['memoryPoolsSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L632_try_end;
      __pyx_L627_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9139
 *             try:
 *                 str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMASupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9139, __pyx_L629_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9140
 *                 str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)]
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMASupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9140, __pyx_L629_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMASupported_ValueErro);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMASupported_ValueErro);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMASupported_ValueErro) != (0)) __PYX_ERR(0, 9140, __pyx_L629_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9140, __pyx_L629_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L628_exception_handled;
      }
      goto __pyx_L629_except_error;

      /* "cuda/bindings/runtime.pyx":9137
 *             except ValueError:
 *                 str_list += ['memoryPoolsSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)]
 *             except ValueError:
*/
      __pyx_L629_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L628_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L632_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9141
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMASupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9142
 *                 str_list += ['gpuDirectRDMASupported : <ValueError>']
 *             try:
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_gpuDirectRDMAFlushWritesOptions_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9142, __pyx_L635_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9142, __pyx_L635_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9142, __pyx_L635_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9142, __pyx_L635_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9142, __pyx_L635_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9142, __pyx_L635_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9141
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMASupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L640_try_end;
      __pyx_L635_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9143
 *             try:
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9143, __pyx_L637_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9144
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)]
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9144, __pyx_L637_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAFlushWritesOptions_3) != (0)) __PYX_ERR(0, 9144, __pyx_L637_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9144, __pyx_L637_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L636_exception_handled;
      }
      goto __pyx_L637_except_error;

      /* "cuda/bindings/runtime.pyx":9141
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMASupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)]
 *             except ValueError:
*/
      __pyx_L637_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L636_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L640_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9145
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9146
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : <ValueError>']
 *             try:
 *                 str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAWritesOrdering : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_gpuDirectRDMAWritesOrdering_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9146, __pyx_L643_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9146, __pyx_L643_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAWritesOrdering, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9146, __pyx_L643_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9146, __pyx_L643_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9146, __pyx_L643_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9146, __pyx_L643_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9145
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L648_try_end;
      __pyx_L643_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9147
 *             try:
 *                 str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMAWritesOrdering : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9147, __pyx_L645_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9148
 *                 str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)]
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAWritesOrdering : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9148, __pyx_L645_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_gpuDirectRDMAWritesOrdering_Valu) != (0)) __PYX_ERR(0, 9148, __pyx_L645_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9148, __pyx_L645_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L644_exception_handled;
      }
      goto __pyx_L645_except_error;

      /* "cuda/bindings/runtime.pyx":9145
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAFlushWritesOptions : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)]
 *             except ValueError:
*/
      __pyx_L645_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L644_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L648_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9149
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAWritesOrdering : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9150
 *                 str_list += ['gpuDirectRDMAWritesOrdering : <ValueError>']
 *             try:
 *                 str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['memoryPoolSupportedHandleTypes : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_memoryPoolSupportedHandleTypes_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9150, __pyx_L651_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9150, __pyx_L651_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_memoryPoolSupportedHandleTypes, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9150, __pyx_L651_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9150, __pyx_L651_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9150, __pyx_L651_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9150, __pyx_L651_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9149
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAWritesOrdering : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L656_try_end;
      __pyx_L651_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9151
 *             try:
 *                 str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryPoolSupportedHandleTypes : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9151, __pyx_L653_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9152
 *                 str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)]
 *             except ValueError:
 *                 str_list += ['memoryPoolSupportedHandleTypes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9152, __pyx_L653_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_memoryPoolSupportedHandleTypes_V);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_memoryPoolSupportedHandleTypes_V);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_memoryPoolSupportedHandleTypes_V) != (0)) __PYX_ERR(0, 9152, __pyx_L653_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9152, __pyx_L653_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L652_exception_handled;
      }
      goto __pyx_L653_except_error;

      /* "cuda/bindings/runtime.pyx":9149
 *             except ValueError:
 *                 str_list += ['gpuDirectRDMAWritesOrdering : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)]
 *             except ValueError:
*/
      __pyx_L653_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L652_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L656_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9153
 *             except ValueError:
 *                 str_list += ['memoryPoolSupportedHandleTypes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9154
 *                 str_list += ['memoryPoolSupportedHandleTypes : <ValueError>']
 *             try:
 *                 str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['deferredMappingCudaArraySupported : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_deferredMappingCudaArraySupporte_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9154, __pyx_L659_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9154, __pyx_L659_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_deferredMappingCudaArraySupporte, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9154, __pyx_L659_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9154, __pyx_L659_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9154, __pyx_L659_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9154, __pyx_L659_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9153
 *             except ValueError:
 *                 str_list += ['memoryPoolSupportedHandleTypes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L664_try_end;
      __pyx_L659_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9155
 *             try:
 *                 str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['deferredMappingCudaArraySupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9155, __pyx_L661_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9156
 *                 str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)]
 *             except ValueError:
 *                 str_list += ['deferredMappingCudaArraySupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9156, __pyx_L661_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_deferredMappingCudaArraySupporte_3);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_deferredMappingCudaArraySupporte_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_deferredMappingCudaArraySupporte_3) != (0)) __PYX_ERR(0, 9156, __pyx_L661_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9156, __pyx_L661_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L660_exception_handled;
      }
      goto __pyx_L661_except_error;

      /* "cuda/bindings/runtime.pyx":9153
 *             except ValueError:
 *                 str_list += ['memoryPoolSupportedHandleTypes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)]
 *             except ValueError:
*/
      __pyx_L661_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L660_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L664_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9157
 *             except ValueError:
 *                 str_list += ['deferredMappingCudaArraySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9158
 *                 str_list += ['deferredMappingCudaArraySupported : <ValueError>']
 *             try:
 *                 str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ipcEventSupported : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ipcEventSupported_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9158, __pyx_L667_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9158, __pyx_L667_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ipcEventSupported, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9158, __pyx_L667_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9158, __pyx_L667_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9158, __pyx_L667_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9158, __pyx_L667_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9157
 *             except ValueError:
 *                 str_list += ['deferredMappingCudaArraySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L672_try_end;
      __pyx_L667_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9159
 *             try:
 *                 str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ipcEventSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9159, __pyx_L669_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9160
 *                 str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)]
 *             except ValueError:
 *                 str_list += ['ipcEventSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['clusterLaunch : ' + str(self.clusterLaunch)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9160, __pyx_L669_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ipcEventSupported_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ipcEventSupported_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_ipcEventSupported_ValueError) != (0)) __PYX_ERR(0, 9160, __pyx_L669_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9160, __pyx_L669_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L668_exception_handled;
      }
      goto __pyx_L669_except_error;

      /* "cuda/bindings/runtime.pyx":9157
 *             except ValueError:
 *                 str_list += ['deferredMappingCudaArraySupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)]
 *             except ValueError:
*/
      __pyx_L669_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L668_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L672_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9161
 *             except ValueError:
 *                 str_list += ['ipcEventSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterLaunch : ' + str(self.clusterLaunch)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9162
 *                 str_list += ['ipcEventSupported : <ValueError>']
 *             try:
 *                 str_list += ['clusterLaunch : ' + str(self.clusterLaunch)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['clusterLaunch : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_clusterLaunch_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9162, __pyx_L675_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9162, __pyx_L675_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_clusterLaunch, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9162, __pyx_L675_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9162, __pyx_L675_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9162, __pyx_L675_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9162, __pyx_L675_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9161
 *             except ValueError:
 *                 str_list += ['ipcEventSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterLaunch : ' + str(self.clusterLaunch)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L680_try_end;
      __pyx_L675_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9163
 *             try:
 *                 str_list += ['clusterLaunch : ' + str(self.clusterLaunch)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterLaunch : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9163, __pyx_L677_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9164
 *                 str_list += ['clusterLaunch : ' + str(self.clusterLaunch)]
 *             except ValueError:
 *                 str_list += ['clusterLaunch : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9164, __pyx_L677_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_clusterLaunch_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_clusterLaunch_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_clusterLaunch_ValueError) != (0)) __PYX_ERR(0, 9164, __pyx_L677_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9164, __pyx_L677_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L676_exception_handled;
      }
      goto __pyx_L677_except_error;

      /* "cuda/bindings/runtime.pyx":9161
 *             except ValueError:
 *                 str_list += ['ipcEventSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterLaunch : ' + str(self.clusterLaunch)]
 *             except ValueError:
*/
      __pyx_L677_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L676_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L680_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9165
 *             except ValueError:
 *                 str_list += ['clusterLaunch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9166
 *                 str_list += ['clusterLaunch : <ValueError>']
 *             try:
 *                 str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['unifiedFunctionPointers : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_unifiedFunctionPointers_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9166, __pyx_L683_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9166, __pyx_L683_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_unifiedFunctionPointers, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9166, __pyx_L683_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9166, __pyx_L683_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9166, __pyx_L683_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9166, __pyx_L683_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9165
 *             except ValueError:
 *                 str_list += ['clusterLaunch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L688_try_end;
      __pyx_L683_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9167
 *             try:
 *                 str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['unifiedFunctionPointers : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9167, __pyx_L685_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9168
 *                 str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)]
 *             except ValueError:
 *                 str_list += ['unifiedFunctionPointers : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['deviceNumaConfig : ' + str(self.deviceNumaConfig)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9168, __pyx_L685_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_unifiedFunctionPointers_ValueErr);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_unifiedFunctionPointers_ValueErr);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_unifiedFunctionPointers_ValueErr) != (0)) __PYX_ERR(0, 9168, __pyx_L685_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9168, __pyx_L685_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L684_exception_handled;
      }
      goto __pyx_L685_except_error;

      /* "cuda/bindings/runtime.pyx":9165
 *             except ValueError:
 *                 str_list += ['clusterLaunch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)]
 *             except ValueError:
*/
      __pyx_L685_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L684_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L688_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9169
 *             except ValueError:
 *                 str_list += ['unifiedFunctionPointers : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceNumaConfig : ' + str(self.deviceNumaConfig)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9170
 *                 str_list += ['unifiedFunctionPointers : <ValueError>']
 *             try:
 *                 str_list += ['deviceNumaConfig : ' + str(self.deviceNumaConfig)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['deviceNumaConfig : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_deviceNumaConfig_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9170, __pyx_L691_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9170, __pyx_L691_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_deviceNumaConfig, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9170, __pyx_L691_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9170, __pyx_L691_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9170, __pyx_L691_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9170, __pyx_L691_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9169
 *             except ValueError:
 *                 str_list += ['unifiedFunctionPointers : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceNumaConfig : ' + str(self.deviceNumaConfig)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L696_try_end;
      __pyx_L691_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9171
 *             try:
 *                 str_list += ['deviceNumaConfig : ' + str(self.deviceNumaConfig)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceNumaConfig : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9171, __pyx_L693_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9172
 *                 str_list += ['deviceNumaConfig : ' + str(self.deviceNumaConfig)]
 *             except ValueError:
 *                 str_list += ['deviceNumaConfig : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['deviceNumaId : ' + str(self.deviceNumaId)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9172, __pyx_L693_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_deviceNumaConfig_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_deviceNumaConfig_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_deviceNumaConfig_ValueError) != (0)) __PYX_ERR(0, 9172, __pyx_L693_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9172, __pyx_L693_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L692_exception_handled;
      }
      goto __pyx_L693_except_error;

      /* "cuda/bindings/runtime.pyx":9169
 *             except ValueError:
 *                 str_list += ['unifiedFunctionPointers : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceNumaConfig : ' + str(self.deviceNumaConfig)]
 *             except ValueError:
*/
      __pyx_L693_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L692_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L696_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9173
 *             except ValueError:
 *                 str_list += ['deviceNumaConfig : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceNumaId : ' + str(self.deviceNumaId)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9174
 *                 str_list += ['deviceNumaConfig : <ValueError>']
 *             try:
 *                 str_list += ['deviceNumaId : ' + str(self.deviceNumaId)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['deviceNumaId : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_deviceNumaId_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9174, __pyx_L699_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9174, __pyx_L699_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_deviceNumaId, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9174, __pyx_L699_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9174, __pyx_L699_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9174, __pyx_L699_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9174, __pyx_L699_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9173
 *             except ValueError:
 *                 str_list += ['deviceNumaConfig : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceNumaId : ' + str(self.deviceNumaId)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L704_try_end;
      __pyx_L699_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9175
 *             try:
 *                 str_list += ['deviceNumaId : ' + str(self.deviceNumaId)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceNumaId : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9175, __pyx_L701_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9176
 *                 str_list += ['deviceNumaId : ' + str(self.deviceNumaId)]
 *             except ValueError:
 *                 str_list += ['deviceNumaId : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['mpsEnabled : ' + str(self.mpsEnabled)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9176, __pyx_L701_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_deviceNumaId_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_deviceNumaId_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_deviceNumaId_ValueError) != (0)) __PYX_ERR(0, 9176, __pyx_L701_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9176, __pyx_L701_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L700_exception_handled;
      }
      goto __pyx_L701_except_error;

      /* "cuda/bindings/runtime.pyx":9173
 *             except ValueError:
 *                 str_list += ['deviceNumaConfig : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceNumaId : ' + str(self.deviceNumaId)]
 *             except ValueError:
*/
      __pyx_L701_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L700_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L704_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9177
 *             except ValueError:
 *                 str_list += ['deviceNumaId : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mpsEnabled : ' + str(self.mpsEnabled)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9178
 *                 str_list += ['deviceNumaId : <ValueError>']
 *             try:
 *                 str_list += ['mpsEnabled : ' + str(self.mpsEnabled)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['mpsEnabled : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_mpsEnabled_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9178, __pyx_L707_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9178, __pyx_L707_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_mpsEnabled, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9178, __pyx_L707_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9178, __pyx_L707_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9178, __pyx_L707_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9178, __pyx_L707_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9177
 *             except ValueError:
 *                 str_list += ['deviceNumaId : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mpsEnabled : ' + str(self.mpsEnabled)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L712_try_end;
      __pyx_L707_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9179
 *             try:
 *                 str_list += ['mpsEnabled : ' + str(self.mpsEnabled)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['mpsEnabled : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9179, __pyx_L709_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9180
 *                 str_list += ['mpsEnabled : ' + str(self.mpsEnabled)]
 *             except ValueError:
 *                 str_list += ['mpsEnabled : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['hostNumaId : ' + str(self.hostNumaId)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9180, __pyx_L709_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_mpsEnabled_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_mpsEnabled_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_mpsEnabled_ValueError) != (0)) __PYX_ERR(0, 9180, __pyx_L709_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9180, __pyx_L709_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L708_exception_handled;
      }
      goto __pyx_L709_except_error;

      /* "cuda/bindings/runtime.pyx":9177
 *             except ValueError:
 *                 str_list += ['deviceNumaId : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mpsEnabled : ' + str(self.mpsEnabled)]
 *             except ValueError:
*/
      __pyx_L709_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L708_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L712_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9181
 *             except ValueError:
 *                 str_list += ['mpsEnabled : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNumaId : ' + str(self.hostNumaId)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9182
 *                 str_list += ['mpsEnabled : <ValueError>']
 *             try:
 *                 str_list += ['hostNumaId : ' + str(self.hostNumaId)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['hostNumaId : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_hostNumaId_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9182, __pyx_L715_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9182, __pyx_L715_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_hostNumaId, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9182, __pyx_L715_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9182, __pyx_L715_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9182, __pyx_L715_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9182, __pyx_L715_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9181
 *             except ValueError:
 *                 str_list += ['mpsEnabled : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNumaId : ' + str(self.hostNumaId)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L720_try_end;
      __pyx_L715_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9183
 *             try:
 *                 str_list += ['hostNumaId : ' + str(self.hostNumaId)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNumaId : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9183, __pyx_L717_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9184
 *                 str_list += ['hostNumaId : ' + str(self.hostNumaId)]
 *             except ValueError:
 *                 str_list += ['hostNumaId : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['gpuPciDeviceID : ' + str(self.gpuPciDeviceID)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9184, __pyx_L717_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_hostNumaId_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_hostNumaId_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_hostNumaId_ValueError) != (0)) __PYX_ERR(0, 9184, __pyx_L717_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9184, __pyx_L717_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L716_exception_handled;
      }
      goto __pyx_L717_except_error;

      /* "cuda/bindings/runtime.pyx":9181
 *             except ValueError:
 *                 str_list += ['mpsEnabled : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNumaId : ' + str(self.hostNumaId)]
 *             except ValueError:
*/
      __pyx_L717_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L716_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L720_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9185
 *             except ValueError:
 *                 str_list += ['hostNumaId : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuPciDeviceID : ' + str(self.gpuPciDeviceID)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9186
 *                 str_list += ['hostNumaId : <ValueError>']
 *             try:
 *                 str_list += ['gpuPciDeviceID : ' + str(self.gpuPciDeviceID)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['gpuPciDeviceID : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_gpuPciDeviceID_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9186, __pyx_L723_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9186, __pyx_L723_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_gpuPciDeviceID, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9186, __pyx_L723_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9186, __pyx_L723_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9186, __pyx_L723_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9186, __pyx_L723_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9185
 *             except ValueError:
 *                 str_list += ['hostNumaId : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuPciDeviceID : ' + str(self.gpuPciDeviceID)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L728_try_end;
      __pyx_L723_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9187
 *             try:
 *                 str_list += ['gpuPciDeviceID : ' + str(self.gpuPciDeviceID)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuPciDeviceID : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9187, __pyx_L725_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9188
 *                 str_list += ['gpuPciDeviceID : ' + str(self.gpuPciDeviceID)]
 *             except ValueError:
 *                 str_list += ['gpuPciDeviceID : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['gpuPciSubsystemID : ' + str(self.gpuPciSubsystemID)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9188, __pyx_L725_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_gpuPciDeviceID_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_gpuPciDeviceID_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_gpuPciDeviceID_ValueError) != (0)) __PYX_ERR(0, 9188, __pyx_L725_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9188, __pyx_L725_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L724_exception_handled;
      }
      goto __pyx_L725_except_error;

      /* "cuda/bindings/runtime.pyx":9185
 *             except ValueError:
 *                 str_list += ['hostNumaId : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuPciDeviceID : ' + str(self.gpuPciDeviceID)]
 *             except ValueError:
*/
      __pyx_L725_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L724_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L728_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9189
 *             except ValueError:
 *                 str_list += ['gpuPciDeviceID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuPciSubsystemID : ' + str(self.gpuPciSubsystemID)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9190
 *                 str_list += ['gpuPciDeviceID : <ValueError>']
 *             try:
 *                 str_list += ['gpuPciSubsystemID : ' + str(self.gpuPciSubsystemID)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['gpuPciSubsystemID : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_gpuPciSubsystemID_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9190, __pyx_L731_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9190, __pyx_L731_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_gpuPciSubsystemID, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9190, __pyx_L731_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9190, __pyx_L731_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9190, __pyx_L731_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9190, __pyx_L731_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9189
 *             except ValueError:
 *                 str_list += ['gpuPciDeviceID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuPciSubsystemID : ' + str(self.gpuPciSubsystemID)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L736_try_end;
      __pyx_L731_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9191
 *             try:
 *                 str_list += ['gpuPciSubsystemID : ' + str(self.gpuPciSubsystemID)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuPciSubsystemID : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9191, __pyx_L733_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9192
 *                 str_list += ['gpuPciSubsystemID : ' + str(self.gpuPciSubsystemID)]
 *             except ValueError:
 *                 str_list += ['gpuPciSubsystemID : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['hostNumaMultinodeIpcSupported : ' + str(self.hostNumaMultinodeIpcSupported)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9192, __pyx_L733_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_gpuPciSubsystemID_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_gpuPciSubsystemID_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_gpuPciSubsystemID_ValueError) != (0)) __PYX_ERR(0, 9192, __pyx_L733_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9192, __pyx_L733_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L732_exception_handled;
      }
      goto __pyx_L733_except_error;

      /* "cuda/bindings/runtime.pyx":9189
 *             except ValueError:
 *                 str_list += ['gpuPciDeviceID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gpuPciSubsystemID : ' + str(self.gpuPciSubsystemID)]
 *             except ValueError:
*/
      __pyx_L733_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L732_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L736_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9193
 *             except ValueError:
 *                 str_list += ['gpuPciSubsystemID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNumaMultinodeIpcSupported : ' + str(self.hostNumaMultinodeIpcSupported)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9194
 *                 str_list += ['gpuPciSubsystemID : <ValueError>']
 *             try:
 *                 str_list += ['hostNumaMultinodeIpcSupported : ' + str(self.hostNumaMultinodeIpcSupported)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['hostNumaMultinodeIpcSupported : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_hostNumaMultinodeIpcSupported_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9194, __pyx_L739_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9194, __pyx_L739_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_hostNumaMultinodeIpcSupported, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9194, __pyx_L739_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9194, __pyx_L739_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 9194, __pyx_L739_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9194, __pyx_L739_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":9193
 *             except ValueError:
 *                 str_list += ['gpuPciSubsystemID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNumaMultinodeIpcSupported : ' + str(self.hostNumaMultinodeIpcSupported)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L744_try_end;
      __pyx_L739_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9195
 *             try:
 *                 str_list += ['hostNumaMultinodeIpcSupported : ' + str(self.hostNumaMultinodeIpcSupported)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNumaMultinodeIpcSupported : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 9195, __pyx_L741_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":9196
 *                 str_list += ['hostNumaMultinodeIpcSupported : ' + str(self.hostNumaMultinodeIpcSupported)]
 *             except ValueError:
 *                 str_list += ['hostNumaMultinodeIpcSupported : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9196, __pyx_L741_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_hostNumaMultinodeIpcSupported_Va);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_hostNumaMultinodeIpcSupported_Va);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_hostNumaMultinodeIpcSupported_Va) != (0)) __PYX_ERR(0, 9196, __pyx_L741_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9196, __pyx_L741_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L740_exception_handled;
      }
      goto __pyx_L741_except_error;

      /* "cuda/bindings/runtime.pyx":9193
 *             except ValueError:
 *                 str_list += ['gpuPciSubsystemID : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['hostNumaMultinodeIpcSupported : ' + str(self.hostNumaMultinodeIpcSupported)]
 *             except ValueError:
*/
      __pyx_L741_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L740_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L744_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9197
 *             except ValueError:
 *                 str_list += ['hostNumaMultinodeIpcSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9198
 *                 str_list += ['hostNumaMultinodeIpcSupported : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9198, __pyx_L747_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9198, __pyx_L747_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9198, __pyx_L747_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9198, __pyx_L747_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 9198, __pyx_L747_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9198, __pyx_L747_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":9197
 *             except ValueError:
 *                 str_list += ['hostNumaMultinodeIpcSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L752_try_end;
      __pyx_L747_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":9199
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 9199, __pyx_L749_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":9200
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9200, __pyx_L749_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 9200, __pyx_L749_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 9200, __pyx_L749_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L748_exception_handled;
      }
      goto __pyx_L749_except_error;

      /* "cuda/bindings/runtime.pyx":9197
 *             except ValueError:
 *                 str_list += ['hostNumaMultinodeIpcSupported : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L749_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L748_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L752_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9201
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 9201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":8827
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":9203
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def name(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":8826
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr128__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9204
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def name(self):
 *         return self._pvt_ptr[0].name
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4name___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4name___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9206
 *     @property
 *     def name(self):
 *         return self._pvt_ptr[0].name             # <<<<<<<<<<<<<<
 *     @name.setter
 *     def name(self, name):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBytes_FromString((__pyx_v_self->_pvt_ptr[0]).name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9204
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def name(self):
 *         return self._pvt_ptr[0].name
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9207
 *     def name(self):
 *         return self._pvt_ptr[0].name
 *     @name.setter             # <<<<<<<<<<<<<<
 *     def name(self, name):
 *         pass
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_name));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_name) {
  int __pyx_r;
  char __pyx_t_1[256];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9210
 *     def name(self, name):
 *         pass
 *         self._pvt_ptr[0].name = name             # <<<<<<<<<<<<<<
 *     @property
 *     def uuid(self):
*/
  if (unlikely((__Pyx_carray_from_py_char(__pyx_v_name, __pyx_t_1, 256) < 0))) __PYX_ERR(0, 9210, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).name[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).name[0]) * (256));

  /* "cuda/bindings/runtime.pyx":9207
 *     def name(self):
 *         return self._pvt_ptr[0].name
 *     @name.setter             # <<<<<<<<<<<<<<
 *     def name(self, name):
 *         pass
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9211
 *         pass
 *         self._pvt_ptr[0].name = name
 *     @property             # <<<<<<<<<<<<<<
 *     def uuid(self):
 *         return self._uuid
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9213
 *     @property
 *     def uuid(self):
 *         return self._uuid             # <<<<<<<<<<<<<<
 *     @uuid.setter
 *     def uuid(self, uuid not None : cudaUUID_t):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_uuid);
  __pyx_r = ((PyObject *)__pyx_v_self->_uuid);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9211
 *         pass
 *         self._pvt_ptr[0].name = name
 *     @property             # <<<<<<<<<<<<<<
 *     def uuid(self):
 *         return self._uuid
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9214
 *     def uuid(self):
 *         return self._uuid
 *     @uuid.setter             # <<<<<<<<<<<<<<
 *     def uuid(self, uuid not None : cudaUUID_t):
 *         string.memcpy(&self._pvt_ptr[0].uuid, <cyruntime.cudaUUID_t*><void_ptr>uuid.getPtr(), sizeof(self._pvt_ptr[0].uuid))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_uuid); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_uuid) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_uuid), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t, 0, "uuid", 0))) __PYX_ERR(0, 9215, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *)__pyx_v_uuid));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *__pyx_v_uuid) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":9216
 *     @uuid.setter
 *     def uuid(self, uuid not None : cudaUUID_t):
 *         string.memcpy(&self._pvt_ptr[0].uuid, <cyruntime.cudaUUID_t*><void_ptr>uuid.getPtr(), sizeof(self._pvt_ptr[0].uuid))             # <<<<<<<<<<<<<<
 *     @property
 *     def luid(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_uuid);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9216, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).uuid), ((cudaUUID_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).uuid))));

  /* "cuda/bindings/runtime.pyx":9214
 *     def uuid(self):
 *         return self._uuid
 *     @uuid.setter             # <<<<<<<<<<<<<<
 *     def uuid(self, uuid not None : cudaUUID_t):
 *         string.memcpy(&self._pvt_ptr[0].uuid, <cyruntime.cudaUUID_t*><void_ptr>uuid.getPtr(), sizeof(self._pvt_ptr[0].uuid))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.uuid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9217
 *     def uuid(self, uuid not None : cudaUUID_t):
 *         string.memcpy(&self._pvt_ptr[0].uuid, <cyruntime.cudaUUID_t*><void_ptr>uuid.getPtr(), sizeof(self._pvt_ptr[0].uuid))
 *     @property             # <<<<<<<<<<<<<<
 *     def luid(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].luid, 8)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9219
 *     @property
 *     def luid(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].luid, 8)             # <<<<<<<<<<<<<<
 *     @luid.setter
 *     def luid(self, luid):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_pvt_ptr[0]).luid, 8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9217
 *     def uuid(self, uuid not None : cudaUUID_t):
 *         string.memcpy(&self._pvt_ptr[0].uuid, <cyruntime.cudaUUID_t*><void_ptr>uuid.getPtr(), sizeof(self._pvt_ptr[0].uuid))
 *     @property             # <<<<<<<<<<<<<<
 *     def luid(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].luid, 8)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.luid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9220
 *     def luid(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].luid, 8)
 *     @luid.setter             # <<<<<<<<<<<<<<
 *     def luid(self, luid):
 *         if len(luid) != 8:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_luid); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_luid) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_luid));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_luid) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_t_9;
  char __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":9222
 *     @luid.setter
 *     def luid(self, luid):
 *         if len(luid) != 8:             # <<<<<<<<<<<<<<
 *             raise ValueError("luid length must be 8, is " + str(len(luid)))
 *         if CHAR_MIN == 0:
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_luid); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9222, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 8);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":9223
 *     def luid(self, luid):
 *         if len(luid) != 8:
 *             raise ValueError("luid length must be 8, is " + str(len(luid)))             # <<<<<<<<<<<<<<
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(luid):
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_luid); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9223, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_luid_length_must_be_8_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9223, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 9223, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":9222
 *     @luid.setter
 *     def luid(self, luid):
 *         if len(luid) != 8:             # <<<<<<<<<<<<<<
 *             raise ValueError("luid length must be 8, is " + str(len(luid)))
 *         if CHAR_MIN == 0:
*/
  }

  /* "cuda/bindings/runtime.pyx":9224
 *         if len(luid) != 8:
 *             raise ValueError("luid length must be 8, is " + str(len(luid)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(luid):
 *                 if b < 0 and b > -129:
*/
  __pyx_t_2 = (CHAR_MIN == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":9225
 *             raise ValueError("luid length must be 8, is " + str(len(luid)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(luid):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_luid)) || PyTuple_CheckExact(__pyx_v_luid)) {
      __pyx_t_5 = __pyx_v_luid; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_luid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9225, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9225, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9225, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9225, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9225, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 9225, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9225, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":9226
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(luid):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].luid[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9226, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9226, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9226, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9226, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L8_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":9227
 *             for i, b in enumerate(luid):
 *                 if b < 0 and b > -129:
 *                     b = b + 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].luid[i] = b
 *         else:
*/
        __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9227, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":9226
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(luid):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].luid[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":9228
 *                 if b < 0 and b > -129:
 *                     b = b + 256
 *                 self._pvt_ptr[0].luid[i] = b             # <<<<<<<<<<<<<<
 *         else:
 *             for i, b in enumerate(luid):
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 9228, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9228, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).luid[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":9225
 *             raise ValueError("luid length must be 8, is " + str(len(luid)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(luid):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":9224
 *         if len(luid) != 8:
 *             raise ValueError("luid length must be 8, is " + str(len(luid)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(luid):
 *                 if b < 0 and b > -129:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":9230
 *                 self._pvt_ptr[0].luid[i] = b
 *         else:
 *             for i, b in enumerate(luid):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_luid)) || PyTuple_CheckExact(__pyx_v_luid)) {
      __pyx_t_5 = __pyx_v_luid; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_luid); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9230, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9230, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9230, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9230, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9230, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 9230, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9230, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":9231
 *         else:
 *             for i, b in enumerate(luid):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].luid[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9231, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9231, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9231, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9231, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":9232
 *             for i, b in enumerate(luid):
 *                 if b > 127 and b < 256:
 *                     b = b - 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].luid[i] = b
 *     @property
*/
        __pyx_t_4 = __Pyx_PyLong_SubtractObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9232, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":9231
 *         else:
 *             for i, b in enumerate(luid):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].luid[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":9233
 *                 if b > 127 and b < 256:
 *                     b = b - 256
 *                 self._pvt_ptr[0].luid[i] = b             # <<<<<<<<<<<<<<
 *     @property
 *     def luidDeviceNodeMask(self):
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 9233, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9233, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).luid[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":9230
 *                 self._pvt_ptr[0].luid[i] = b
 *         else:
 *             for i, b in enumerate(luid):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":9220
 *     def luid(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].luid, 8)
 *     @luid.setter             # <<<<<<<<<<<<<<
 *     def luid(self, luid):
 *         if len(luid) != 8:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.luid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9234
 *                     b = b - 256
 *                 self._pvt_ptr[0].luid[i] = b
 *     @property             # <<<<<<<<<<<<<<
 *     def luidDeviceNodeMask(self):
 *         return self._pvt_ptr[0].luidDeviceNodeMask
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9236
 *     @property
 *     def luidDeviceNodeMask(self):
 *         return self._pvt_ptr[0].luidDeviceNodeMask             # <<<<<<<<<<<<<<
 *     @luidDeviceNodeMask.setter
 *     def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).luidDeviceNodeMask); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9234
 *                     b = b - 256
 *                 self._pvt_ptr[0].luid[i] = b
 *     @property             # <<<<<<<<<<<<<<
 *     def luidDeviceNodeMask(self):
 *         return self._pvt_ptr[0].luidDeviceNodeMask
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.luidDeviceNodeMask.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9237
 *     def luidDeviceNodeMask(self):
 *         return self._pvt_ptr[0].luidDeviceNodeMask
 *     @luidDeviceNodeMask.setter             # <<<<<<<<<<<<<<
 *     def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask):
 *         self._pvt_ptr[0].luidDeviceNodeMask = luidDeviceNodeMask
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_luidDeviceNodeMask); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_luidDeviceNodeMask) {
  unsigned int __pyx_v_luidDeviceNodeMask;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_luidDeviceNodeMask); {
    __pyx_v_luidDeviceNodeMask = __Pyx_PyLong_As_unsigned_int(__pyx_arg_luidDeviceNodeMask); if (unlikely((__pyx_v_luidDeviceNodeMask == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9238, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.luidDeviceNodeMask.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((unsigned int)__pyx_v_luidDeviceNodeMask));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_luidDeviceNodeMask) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9239
 *     @luidDeviceNodeMask.setter
 *     def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask):
 *         self._pvt_ptr[0].luidDeviceNodeMask = luidDeviceNodeMask             # <<<<<<<<<<<<<<
 *     @property
 *     def totalGlobalMem(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).luidDeviceNodeMask = __pyx_v_luidDeviceNodeMask;

  /* "cuda/bindings/runtime.pyx":9237
 *     def luidDeviceNodeMask(self):
 *         return self._pvt_ptr[0].luidDeviceNodeMask
 *     @luidDeviceNodeMask.setter             # <<<<<<<<<<<<<<
 *     def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask):
 *         self._pvt_ptr[0].luidDeviceNodeMask = luidDeviceNodeMask
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9240
 *     def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask):
 *         self._pvt_ptr[0].luidDeviceNodeMask = luidDeviceNodeMask
 *     @property             # <<<<<<<<<<<<<<
 *     def totalGlobalMem(self):
 *         return self._pvt_ptr[0].totalGlobalMem
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9242
 *     @property
 *     def totalGlobalMem(self):
 *         return self._pvt_ptr[0].totalGlobalMem             # <<<<<<<<<<<<<<
 *     @totalGlobalMem.setter
 *     def totalGlobalMem(self, size_t totalGlobalMem):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).totalGlobalMem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9240
 *     def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask):
 *         self._pvt_ptr[0].luidDeviceNodeMask = luidDeviceNodeMask
 *     @property             # <<<<<<<<<<<<<<
 *     def totalGlobalMem(self):
 *         return self._pvt_ptr[0].totalGlobalMem
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.totalGlobalMem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9243
 *     def totalGlobalMem(self):
 *         return self._pvt_ptr[0].totalGlobalMem
 *     @totalGlobalMem.setter             # <<<<<<<<<<<<<<
 *     def totalGlobalMem(self, size_t totalGlobalMem):
 *         self._pvt_ptr[0].totalGlobalMem = totalGlobalMem
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_totalGlobalMem); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_totalGlobalMem) {
  size_t __pyx_v_totalGlobalMem;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_totalGlobalMem); {
    __pyx_v_totalGlobalMem = __Pyx_PyLong_As_size_t(__pyx_arg_totalGlobalMem); if (unlikely((__pyx_v_totalGlobalMem == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9244, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.totalGlobalMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_totalGlobalMem));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_totalGlobalMem) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9245
 *     @totalGlobalMem.setter
 *     def totalGlobalMem(self, size_t totalGlobalMem):
 *         self._pvt_ptr[0].totalGlobalMem = totalGlobalMem             # <<<<<<<<<<<<<<
 *     @property
 *     def sharedMemPerBlock(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).totalGlobalMem = __pyx_v_totalGlobalMem;

  /* "cuda/bindings/runtime.pyx":9243
 *     def totalGlobalMem(self):
 *         return self._pvt_ptr[0].totalGlobalMem
 *     @totalGlobalMem.setter             # <<<<<<<<<<<<<<
 *     def totalGlobalMem(self, size_t totalGlobalMem):
 *         self._pvt_ptr[0].totalGlobalMem = totalGlobalMem
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9246
 *     def totalGlobalMem(self, size_t totalGlobalMem):
 *         self._pvt_ptr[0].totalGlobalMem = totalGlobalMem
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemPerBlock(self):
 *         return self._pvt_ptr[0].sharedMemPerBlock
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9248
 *     @property
 *     def sharedMemPerBlock(self):
 *         return self._pvt_ptr[0].sharedMemPerBlock             # <<<<<<<<<<<<<<
 *     @sharedMemPerBlock.setter
 *     def sharedMemPerBlock(self, size_t sharedMemPerBlock):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).sharedMemPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9246
 *     def totalGlobalMem(self, size_t totalGlobalMem):
 *         self._pvt_ptr[0].totalGlobalMem = totalGlobalMem
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemPerBlock(self):
 *         return self._pvt_ptr[0].sharedMemPerBlock
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.sharedMemPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9249
 *     def sharedMemPerBlock(self):
 *         return self._pvt_ptr[0].sharedMemPerBlock
 *     @sharedMemPerBlock.setter             # <<<<<<<<<<<<<<
 *     def sharedMemPerBlock(self, size_t sharedMemPerBlock):
 *         self._pvt_ptr[0].sharedMemPerBlock = sharedMemPerBlock
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerBlock); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerBlock) {
  size_t __pyx_v_sharedMemPerBlock;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sharedMemPerBlock); {
    __pyx_v_sharedMemPerBlock = __Pyx_PyLong_As_size_t(__pyx_arg_sharedMemPerBlock); if (unlikely((__pyx_v_sharedMemPerBlock == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9250, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.sharedMemPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_sharedMemPerBlock));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerBlock) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9251
 *     @sharedMemPerBlock.setter
 *     def sharedMemPerBlock(self, size_t sharedMemPerBlock):
 *         self._pvt_ptr[0].sharedMemPerBlock = sharedMemPerBlock             # <<<<<<<<<<<<<<
 *     @property
 *     def regsPerBlock(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sharedMemPerBlock = __pyx_v_sharedMemPerBlock;

  /* "cuda/bindings/runtime.pyx":9249
 *     def sharedMemPerBlock(self):
 *         return self._pvt_ptr[0].sharedMemPerBlock
 *     @sharedMemPerBlock.setter             # <<<<<<<<<<<<<<
 *     def sharedMemPerBlock(self, size_t sharedMemPerBlock):
 *         self._pvt_ptr[0].sharedMemPerBlock = sharedMemPerBlock
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9252
 *     def sharedMemPerBlock(self, size_t sharedMemPerBlock):
 *         self._pvt_ptr[0].sharedMemPerBlock = sharedMemPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def regsPerBlock(self):
 *         return self._pvt_ptr[0].regsPerBlock
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9254
 *     @property
 *     def regsPerBlock(self):
 *         return self._pvt_ptr[0].regsPerBlock             # <<<<<<<<<<<<<<
 *     @regsPerBlock.setter
 *     def regsPerBlock(self, int regsPerBlock):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).regsPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9252
 *     def sharedMemPerBlock(self, size_t sharedMemPerBlock):
 *         self._pvt_ptr[0].sharedMemPerBlock = sharedMemPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def regsPerBlock(self):
 *         return self._pvt_ptr[0].regsPerBlock
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.regsPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9255
 *     def regsPerBlock(self):
 *         return self._pvt_ptr[0].regsPerBlock
 *     @regsPerBlock.setter             # <<<<<<<<<<<<<<
 *     def regsPerBlock(self, int regsPerBlock):
 *         self._pvt_ptr[0].regsPerBlock = regsPerBlock
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_regsPerBlock); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_regsPerBlock) {
  int __pyx_v_regsPerBlock;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_regsPerBlock); {
    __pyx_v_regsPerBlock = __Pyx_PyLong_As_int(__pyx_arg_regsPerBlock); if (unlikely((__pyx_v_regsPerBlock == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9256, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.regsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_regsPerBlock));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_regsPerBlock) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9257
 *     @regsPerBlock.setter
 *     def regsPerBlock(self, int regsPerBlock):
 *         self._pvt_ptr[0].regsPerBlock = regsPerBlock             # <<<<<<<<<<<<<<
 *     @property
 *     def warpSize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).regsPerBlock = __pyx_v_regsPerBlock;

  /* "cuda/bindings/runtime.pyx":9255
 *     def regsPerBlock(self):
 *         return self._pvt_ptr[0].regsPerBlock
 *     @regsPerBlock.setter             # <<<<<<<<<<<<<<
 *     def regsPerBlock(self, int regsPerBlock):
 *         self._pvt_ptr[0].regsPerBlock = regsPerBlock
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9258
 *     def regsPerBlock(self, int regsPerBlock):
 *         self._pvt_ptr[0].regsPerBlock = regsPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def warpSize(self):
 *         return self._pvt_ptr[0].warpSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9260
 *     @property
 *     def warpSize(self):
 *         return self._pvt_ptr[0].warpSize             # <<<<<<<<<<<<<<
 *     @warpSize.setter
 *     def warpSize(self, int warpSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).warpSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9258
 *     def regsPerBlock(self, int regsPerBlock):
 *         self._pvt_ptr[0].regsPerBlock = regsPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def warpSize(self):
 *         return self._pvt_ptr[0].warpSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.warpSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9261
 *     def warpSize(self):
 *         return self._pvt_ptr[0].warpSize
 *     @warpSize.setter             # <<<<<<<<<<<<<<
 *     def warpSize(self, int warpSize):
 *         self._pvt_ptr[0].warpSize = warpSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_warpSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_warpSize) {
  int __pyx_v_warpSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_warpSize); {
    __pyx_v_warpSize = __Pyx_PyLong_As_int(__pyx_arg_warpSize); if (unlikely((__pyx_v_warpSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9262, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.warpSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_warpSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_warpSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9263
 *     @warpSize.setter
 *     def warpSize(self, int warpSize):
 *         self._pvt_ptr[0].warpSize = warpSize             # <<<<<<<<<<<<<<
 *     @property
 *     def memPitch(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).warpSize = __pyx_v_warpSize;

  /* "cuda/bindings/runtime.pyx":9261
 *     def warpSize(self):
 *         return self._pvt_ptr[0].warpSize
 *     @warpSize.setter             # <<<<<<<<<<<<<<
 *     def warpSize(self, int warpSize):
 *         self._pvt_ptr[0].warpSize = warpSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9264
 *     def warpSize(self, int warpSize):
 *         self._pvt_ptr[0].warpSize = warpSize
 *     @property             # <<<<<<<<<<<<<<
 *     def memPitch(self):
 *         return self._pvt_ptr[0].memPitch
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9266
 *     @property
 *     def memPitch(self):
 *         return self._pvt_ptr[0].memPitch             # <<<<<<<<<<<<<<
 *     @memPitch.setter
 *     def memPitch(self, size_t memPitch):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).memPitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9264
 *     def warpSize(self, int warpSize):
 *         self._pvt_ptr[0].warpSize = warpSize
 *     @property             # <<<<<<<<<<<<<<
 *     def memPitch(self):
 *         return self._pvt_ptr[0].memPitch
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.memPitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9267
 *     def memPitch(self):
 *         return self._pvt_ptr[0].memPitch
 *     @memPitch.setter             # <<<<<<<<<<<<<<
 *     def memPitch(self, size_t memPitch):
 *         self._pvt_ptr[0].memPitch = memPitch
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memPitch); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memPitch) {
  size_t __pyx_v_memPitch;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_memPitch); {
    __pyx_v_memPitch = __Pyx_PyLong_As_size_t(__pyx_arg_memPitch); if (unlikely((__pyx_v_memPitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9268, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.memPitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_memPitch));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_memPitch) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9269
 *     @memPitch.setter
 *     def memPitch(self, size_t memPitch):
 *         self._pvt_ptr[0].memPitch = memPitch             # <<<<<<<<<<<<<<
 *     @property
 *     def maxThreadsPerBlock(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).memPitch = __pyx_v_memPitch;

  /* "cuda/bindings/runtime.pyx":9267
 *     def memPitch(self):
 *         return self._pvt_ptr[0].memPitch
 *     @memPitch.setter             # <<<<<<<<<<<<<<
 *     def memPitch(self, size_t memPitch):
 *         self._pvt_ptr[0].memPitch = memPitch
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9270
 *     def memPitch(self, size_t memPitch):
 *         self._pvt_ptr[0].memPitch = memPitch
 *     @property             # <<<<<<<<<<<<<<
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9272
 *     @property
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock             # <<<<<<<<<<<<<<
 *     @maxThreadsPerBlock.setter
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxThreadsPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9270
 *     def memPitch(self, size_t memPitch):
 *         self._pvt_ptr[0].memPitch = memPitch
 *     @property             # <<<<<<<<<<<<<<
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxThreadsPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9273
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock
 *     @maxThreadsPerBlock.setter             # <<<<<<<<<<<<<<
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerBlock); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerBlock) {
  int __pyx_v_maxThreadsPerBlock;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxThreadsPerBlock); {
    __pyx_v_maxThreadsPerBlock = __Pyx_PyLong_As_int(__pyx_arg_maxThreadsPerBlock); if (unlikely((__pyx_v_maxThreadsPerBlock == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9274, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxThreadsPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxThreadsPerBlock));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxThreadsPerBlock) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9275
 *     @maxThreadsPerBlock.setter
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock             # <<<<<<<<<<<<<<
 *     @property
 *     def maxThreadsDim(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxThreadsPerBlock = __pyx_v_maxThreadsPerBlock;

  /* "cuda/bindings/runtime.pyx":9273
 *     def maxThreadsPerBlock(self):
 *         return self._pvt_ptr[0].maxThreadsPerBlock
 *     @maxThreadsPerBlock.setter             # <<<<<<<<<<<<<<
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9276
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def maxThreadsDim(self):
 *         return self._pvt_ptr[0].maxThreadsDim
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9278
 *     @property
 *     def maxThreadsDim(self):
 *         return self._pvt_ptr[0].maxThreadsDim             # <<<<<<<<<<<<<<
 *     @maxThreadsDim.setter
 *     def maxThreadsDim(self, maxThreadsDim):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxThreadsDim, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9276
 *     def maxThreadsPerBlock(self, int maxThreadsPerBlock):
 *         self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def maxThreadsDim(self):
 *         return self._pvt_ptr[0].maxThreadsDim
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxThreadsDim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9279
 *     def maxThreadsDim(self):
 *         return self._pvt_ptr[0].maxThreadsDim
 *     @maxThreadsDim.setter             # <<<<<<<<<<<<<<
 *     def maxThreadsDim(self, maxThreadsDim):
 *         self._pvt_ptr[0].maxThreadsDim = maxThreadsDim
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxThreadsDim); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxThreadsDim) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxThreadsDim));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxThreadsDim) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9281
 *     @maxThreadsDim.setter
 *     def maxThreadsDim(self, maxThreadsDim):
 *         self._pvt_ptr[0].maxThreadsDim = maxThreadsDim             # <<<<<<<<<<<<<<
 *     @property
 *     def maxGridSize(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxThreadsDim, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 9281, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxThreadsDim[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxThreadsDim[0]) * (3));

  /* "cuda/bindings/runtime.pyx":9279
 *     def maxThreadsDim(self):
 *         return self._pvt_ptr[0].maxThreadsDim
 *     @maxThreadsDim.setter             # <<<<<<<<<<<<<<
 *     def maxThreadsDim(self, maxThreadsDim):
 *         self._pvt_ptr[0].maxThreadsDim = maxThreadsDim
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxThreadsDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9282
 *     def maxThreadsDim(self, maxThreadsDim):
 *         self._pvt_ptr[0].maxThreadsDim = maxThreadsDim
 *     @property             # <<<<<<<<<<<<<<
 *     def maxGridSize(self):
 *         return self._pvt_ptr[0].maxGridSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9284
 *     @property
 *     def maxGridSize(self):
 *         return self._pvt_ptr[0].maxGridSize             # <<<<<<<<<<<<<<
 *     @maxGridSize.setter
 *     def maxGridSize(self, maxGridSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxGridSize, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9282
 *     def maxThreadsDim(self, maxThreadsDim):
 *         self._pvt_ptr[0].maxThreadsDim = maxThreadsDim
 *     @property             # <<<<<<<<<<<<<<
 *     def maxGridSize(self):
 *         return self._pvt_ptr[0].maxGridSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxGridSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9285
 *     def maxGridSize(self):
 *         return self._pvt_ptr[0].maxGridSize
 *     @maxGridSize.setter             # <<<<<<<<<<<<<<
 *     def maxGridSize(self, maxGridSize):
 *         self._pvt_ptr[0].maxGridSize = maxGridSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxGridSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxGridSize) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxGridSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxGridSize) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9287
 *     @maxGridSize.setter
 *     def maxGridSize(self, maxGridSize):
 *         self._pvt_ptr[0].maxGridSize = maxGridSize             # <<<<<<<<<<<<<<
 *     @property
 *     def totalConstMem(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxGridSize, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 9287, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxGridSize[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxGridSize[0]) * (3));

  /* "cuda/bindings/runtime.pyx":9285
 *     def maxGridSize(self):
 *         return self._pvt_ptr[0].maxGridSize
 *     @maxGridSize.setter             # <<<<<<<<<<<<<<
 *     def maxGridSize(self, maxGridSize):
 *         self._pvt_ptr[0].maxGridSize = maxGridSize
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxGridSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9288
 *     def maxGridSize(self, maxGridSize):
 *         self._pvt_ptr[0].maxGridSize = maxGridSize
 *     @property             # <<<<<<<<<<<<<<
 *     def totalConstMem(self):
 *         return self._pvt_ptr[0].totalConstMem
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9290
 *     @property
 *     def totalConstMem(self):
 *         return self._pvt_ptr[0].totalConstMem             # <<<<<<<<<<<<<<
 *     @totalConstMem.setter
 *     def totalConstMem(self, size_t totalConstMem):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).totalConstMem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9288
 *     def maxGridSize(self, maxGridSize):
 *         self._pvt_ptr[0].maxGridSize = maxGridSize
 *     @property             # <<<<<<<<<<<<<<
 *     def totalConstMem(self):
 *         return self._pvt_ptr[0].totalConstMem
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.totalConstMem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9291
 *     def totalConstMem(self):
 *         return self._pvt_ptr[0].totalConstMem
 *     @totalConstMem.setter             # <<<<<<<<<<<<<<
 *     def totalConstMem(self, size_t totalConstMem):
 *         self._pvt_ptr[0].totalConstMem = totalConstMem
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_totalConstMem); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_totalConstMem) {
  size_t __pyx_v_totalConstMem;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_totalConstMem); {
    __pyx_v_totalConstMem = __Pyx_PyLong_As_size_t(__pyx_arg_totalConstMem); if (unlikely((__pyx_v_totalConstMem == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9292, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.totalConstMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_totalConstMem));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_totalConstMem) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9293
 *     @totalConstMem.setter
 *     def totalConstMem(self, size_t totalConstMem):
 *         self._pvt_ptr[0].totalConstMem = totalConstMem             # <<<<<<<<<<<<<<
 *     @property
 *     def major(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).totalConstMem = __pyx_v_totalConstMem;

  /* "cuda/bindings/runtime.pyx":9291
 *     def totalConstMem(self):
 *         return self._pvt_ptr[0].totalConstMem
 *     @totalConstMem.setter             # <<<<<<<<<<<<<<
 *     def totalConstMem(self, size_t totalConstMem):
 *         self._pvt_ptr[0].totalConstMem = totalConstMem
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9294
 *     def totalConstMem(self, size_t totalConstMem):
 *         self._pvt_ptr[0].totalConstMem = totalConstMem
 *     @property             # <<<<<<<<<<<<<<
 *     def major(self):
 *         return self._pvt_ptr[0].major
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5major___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5major___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9296
 *     @property
 *     def major(self):
 *         return self._pvt_ptr[0].major             # <<<<<<<<<<<<<<
 *     @major.setter
 *     def major(self, int major):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).major); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9294
 *     def totalConstMem(self, size_t totalConstMem):
 *         self._pvt_ptr[0].totalConstMem = totalConstMem
 *     @property             # <<<<<<<<<<<<<<
 *     def major(self):
 *         return self._pvt_ptr[0].major
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.major.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9297
 *     def major(self):
 *         return self._pvt_ptr[0].major
 *     @major.setter             # <<<<<<<<<<<<<<
 *     def major(self, int major):
 *         self._pvt_ptr[0].major = major
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_major); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_major) {
  int __pyx_v_major;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_major); {
    __pyx_v_major = __Pyx_PyLong_As_int(__pyx_arg_major); if (unlikely((__pyx_v_major == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9298, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.major.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_major));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_major) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9299
 *     @major.setter
 *     def major(self, int major):
 *         self._pvt_ptr[0].major = major             # <<<<<<<<<<<<<<
 *     @property
 *     def minor(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).major = __pyx_v_major;

  /* "cuda/bindings/runtime.pyx":9297
 *     def major(self):
 *         return self._pvt_ptr[0].major
 *     @major.setter             # <<<<<<<<<<<<<<
 *     def major(self, int major):
 *         self._pvt_ptr[0].major = major
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9300
 *     def major(self, int major):
 *         self._pvt_ptr[0].major = major
 *     @property             # <<<<<<<<<<<<<<
 *     def minor(self):
 *         return self._pvt_ptr[0].minor
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9302
 *     @property
 *     def minor(self):
 *         return self._pvt_ptr[0].minor             # <<<<<<<<<<<<<<
 *     @minor.setter
 *     def minor(self, int minor):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).minor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9300
 *     def major(self, int major):
 *         self._pvt_ptr[0].major = major
 *     @property             # <<<<<<<<<<<<<<
 *     def minor(self):
 *         return self._pvt_ptr[0].minor
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.minor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9303
 *     def minor(self):
 *         return self._pvt_ptr[0].minor
 *     @minor.setter             # <<<<<<<<<<<<<<
 *     def minor(self, int minor):
 *         self._pvt_ptr[0].minor = minor
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_minor); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_minor) {
  int __pyx_v_minor;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_minor); {
    __pyx_v_minor = __Pyx_PyLong_As_int(__pyx_arg_minor); if (unlikely((__pyx_v_minor == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9304, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.minor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_minor));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_minor) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9305
 *     @minor.setter
 *     def minor(self, int minor):
 *         self._pvt_ptr[0].minor = minor             # <<<<<<<<<<<<<<
 *     @property
 *     def textureAlignment(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).minor = __pyx_v_minor;

  /* "cuda/bindings/runtime.pyx":9303
 *     def minor(self):
 *         return self._pvt_ptr[0].minor
 *     @minor.setter             # <<<<<<<<<<<<<<
 *     def minor(self, int minor):
 *         self._pvt_ptr[0].minor = minor
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9306
 *     def minor(self, int minor):
 *         self._pvt_ptr[0].minor = minor
 *     @property             # <<<<<<<<<<<<<<
 *     def textureAlignment(self):
 *         return self._pvt_ptr[0].textureAlignment
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9308
 *     @property
 *     def textureAlignment(self):
 *         return self._pvt_ptr[0].textureAlignment             # <<<<<<<<<<<<<<
 *     @textureAlignment.setter
 *     def textureAlignment(self, size_t textureAlignment):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).textureAlignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9306
 *     def minor(self, int minor):
 *         self._pvt_ptr[0].minor = minor
 *     @property             # <<<<<<<<<<<<<<
 *     def textureAlignment(self):
 *         return self._pvt_ptr[0].textureAlignment
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.textureAlignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9309
 *     def textureAlignment(self):
 *         return self._pvt_ptr[0].textureAlignment
 *     @textureAlignment.setter             # <<<<<<<<<<<<<<
 *     def textureAlignment(self, size_t textureAlignment):
 *         self._pvt_ptr[0].textureAlignment = textureAlignment
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_textureAlignment); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_textureAlignment) {
  size_t __pyx_v_textureAlignment;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_textureAlignment); {
    __pyx_v_textureAlignment = __Pyx_PyLong_As_size_t(__pyx_arg_textureAlignment); if (unlikely((__pyx_v_textureAlignment == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9310, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.textureAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_textureAlignment));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_textureAlignment) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9311
 *     @textureAlignment.setter
 *     def textureAlignment(self, size_t textureAlignment):
 *         self._pvt_ptr[0].textureAlignment = textureAlignment             # <<<<<<<<<<<<<<
 *     @property
 *     def texturePitchAlignment(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).textureAlignment = __pyx_v_textureAlignment;

  /* "cuda/bindings/runtime.pyx":9309
 *     def textureAlignment(self):
 *         return self._pvt_ptr[0].textureAlignment
 *     @textureAlignment.setter             # <<<<<<<<<<<<<<
 *     def textureAlignment(self, size_t textureAlignment):
 *         self._pvt_ptr[0].textureAlignment = textureAlignment
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9312
 *     def textureAlignment(self, size_t textureAlignment):
 *         self._pvt_ptr[0].textureAlignment = textureAlignment
 *     @property             # <<<<<<<<<<<<<<
 *     def texturePitchAlignment(self):
 *         return self._pvt_ptr[0].texturePitchAlignment
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9314
 *     @property
 *     def texturePitchAlignment(self):
 *         return self._pvt_ptr[0].texturePitchAlignment             # <<<<<<<<<<<<<<
 *     @texturePitchAlignment.setter
 *     def texturePitchAlignment(self, size_t texturePitchAlignment):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).texturePitchAlignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9312
 *     def textureAlignment(self, size_t textureAlignment):
 *         self._pvt_ptr[0].textureAlignment = textureAlignment
 *     @property             # <<<<<<<<<<<<<<
 *     def texturePitchAlignment(self):
 *         return self._pvt_ptr[0].texturePitchAlignment
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.texturePitchAlignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9315
 *     def texturePitchAlignment(self):
 *         return self._pvt_ptr[0].texturePitchAlignment
 *     @texturePitchAlignment.setter             # <<<<<<<<<<<<<<
 *     def texturePitchAlignment(self, size_t texturePitchAlignment):
 *         self._pvt_ptr[0].texturePitchAlignment = texturePitchAlignment
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_texturePitchAlignment); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_texturePitchAlignment) {
  size_t __pyx_v_texturePitchAlignment;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_texturePitchAlignment); {
    __pyx_v_texturePitchAlignment = __Pyx_PyLong_As_size_t(__pyx_arg_texturePitchAlignment); if (unlikely((__pyx_v_texturePitchAlignment == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9316, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.texturePitchAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_texturePitchAlignment));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_texturePitchAlignment) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9317
 *     @texturePitchAlignment.setter
 *     def texturePitchAlignment(self, size_t texturePitchAlignment):
 *         self._pvt_ptr[0].texturePitchAlignment = texturePitchAlignment             # <<<<<<<<<<<<<<
 *     @property
 *     def multiProcessorCount(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).texturePitchAlignment = __pyx_v_texturePitchAlignment;

  /* "cuda/bindings/runtime.pyx":9315
 *     def texturePitchAlignment(self):
 *         return self._pvt_ptr[0].texturePitchAlignment
 *     @texturePitchAlignment.setter             # <<<<<<<<<<<<<<
 *     def texturePitchAlignment(self, size_t texturePitchAlignment):
 *         self._pvt_ptr[0].texturePitchAlignment = texturePitchAlignment
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9318
 *     def texturePitchAlignment(self, size_t texturePitchAlignment):
 *         self._pvt_ptr[0].texturePitchAlignment = texturePitchAlignment
 *     @property             # <<<<<<<<<<<<<<
 *     def multiProcessorCount(self):
 *         return self._pvt_ptr[0].multiProcessorCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9320
 *     @property
 *     def multiProcessorCount(self):
 *         return self._pvt_ptr[0].multiProcessorCount             # <<<<<<<<<<<<<<
 *     @multiProcessorCount.setter
 *     def multiProcessorCount(self, int multiProcessorCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).multiProcessorCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9318
 *     def texturePitchAlignment(self, size_t texturePitchAlignment):
 *         self._pvt_ptr[0].texturePitchAlignment = texturePitchAlignment
 *     @property             # <<<<<<<<<<<<<<
 *     def multiProcessorCount(self):
 *         return self._pvt_ptr[0].multiProcessorCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.multiProcessorCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9321
 *     def multiProcessorCount(self):
 *         return self._pvt_ptr[0].multiProcessorCount
 *     @multiProcessorCount.setter             # <<<<<<<<<<<<<<
 *     def multiProcessorCount(self, int multiProcessorCount):
 *         self._pvt_ptr[0].multiProcessorCount = multiProcessorCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_multiProcessorCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_multiProcessorCount) {
  int __pyx_v_multiProcessorCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_multiProcessorCount); {
    __pyx_v_multiProcessorCount = __Pyx_PyLong_As_int(__pyx_arg_multiProcessorCount); if (unlikely((__pyx_v_multiProcessorCount == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9322, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.multiProcessorCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_multiProcessorCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_multiProcessorCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9323
 *     @multiProcessorCount.setter
 *     def multiProcessorCount(self, int multiProcessorCount):
 *         self._pvt_ptr[0].multiProcessorCount = multiProcessorCount             # <<<<<<<<<<<<<<
 *     @property
 *     def integrated(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).multiProcessorCount = __pyx_v_multiProcessorCount;

  /* "cuda/bindings/runtime.pyx":9321
 *     def multiProcessorCount(self):
 *         return self._pvt_ptr[0].multiProcessorCount
 *     @multiProcessorCount.setter             # <<<<<<<<<<<<<<
 *     def multiProcessorCount(self, int multiProcessorCount):
 *         self._pvt_ptr[0].multiProcessorCount = multiProcessorCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9324
 *     def multiProcessorCount(self, int multiProcessorCount):
 *         self._pvt_ptr[0].multiProcessorCount = multiProcessorCount
 *     @property             # <<<<<<<<<<<<<<
 *     def integrated(self):
 *         return self._pvt_ptr[0].integrated
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9326
 *     @property
 *     def integrated(self):
 *         return self._pvt_ptr[0].integrated             # <<<<<<<<<<<<<<
 *     @integrated.setter
 *     def integrated(self, int integrated):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).integrated); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9324
 *     def multiProcessorCount(self, int multiProcessorCount):
 *         self._pvt_ptr[0].multiProcessorCount = multiProcessorCount
 *     @property             # <<<<<<<<<<<<<<
 *     def integrated(self):
 *         return self._pvt_ptr[0].integrated
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.integrated.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9327
 *     def integrated(self):
 *         return self._pvt_ptr[0].integrated
 *     @integrated.setter             # <<<<<<<<<<<<<<
 *     def integrated(self, int integrated):
 *         self._pvt_ptr[0].integrated = integrated
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_integrated); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_integrated) {
  int __pyx_v_integrated;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_integrated); {
    __pyx_v_integrated = __Pyx_PyLong_As_int(__pyx_arg_integrated); if (unlikely((__pyx_v_integrated == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9328, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.integrated.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_integrated));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_integrated) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9329
 *     @integrated.setter
 *     def integrated(self, int integrated):
 *         self._pvt_ptr[0].integrated = integrated             # <<<<<<<<<<<<<<
 *     @property
 *     def canMapHostMemory(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).integrated = __pyx_v_integrated;

  /* "cuda/bindings/runtime.pyx":9327
 *     def integrated(self):
 *         return self._pvt_ptr[0].integrated
 *     @integrated.setter             # <<<<<<<<<<<<<<
 *     def integrated(self, int integrated):
 *         self._pvt_ptr[0].integrated = integrated
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9330
 *     def integrated(self, int integrated):
 *         self._pvt_ptr[0].integrated = integrated
 *     @property             # <<<<<<<<<<<<<<
 *     def canMapHostMemory(self):
 *         return self._pvt_ptr[0].canMapHostMemory
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9332
 *     @property
 *     def canMapHostMemory(self):
 *         return self._pvt_ptr[0].canMapHostMemory             # <<<<<<<<<<<<<<
 *     @canMapHostMemory.setter
 *     def canMapHostMemory(self, int canMapHostMemory):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).canMapHostMemory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9330
 *     def integrated(self, int integrated):
 *         self._pvt_ptr[0].integrated = integrated
 *     @property             # <<<<<<<<<<<<<<
 *     def canMapHostMemory(self):
 *         return self._pvt_ptr[0].canMapHostMemory
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.canMapHostMemory.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9333
 *     def canMapHostMemory(self):
 *         return self._pvt_ptr[0].canMapHostMemory
 *     @canMapHostMemory.setter             # <<<<<<<<<<<<<<
 *     def canMapHostMemory(self, int canMapHostMemory):
 *         self._pvt_ptr[0].canMapHostMemory = canMapHostMemory
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_canMapHostMemory); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_canMapHostMemory) {
  int __pyx_v_canMapHostMemory;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_canMapHostMemory); {
    __pyx_v_canMapHostMemory = __Pyx_PyLong_As_int(__pyx_arg_canMapHostMemory); if (unlikely((__pyx_v_canMapHostMemory == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9334, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.canMapHostMemory.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_canMapHostMemory));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_canMapHostMemory) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9335
 *     @canMapHostMemory.setter
 *     def canMapHostMemory(self, int canMapHostMemory):
 *         self._pvt_ptr[0].canMapHostMemory = canMapHostMemory             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture1D(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).canMapHostMemory = __pyx_v_canMapHostMemory;

  /* "cuda/bindings/runtime.pyx":9333
 *     def canMapHostMemory(self):
 *         return self._pvt_ptr[0].canMapHostMemory
 *     @canMapHostMemory.setter             # <<<<<<<<<<<<<<
 *     def canMapHostMemory(self, int canMapHostMemory):
 *         self._pvt_ptr[0].canMapHostMemory = canMapHostMemory
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9336
 *     def canMapHostMemory(self, int canMapHostMemory):
 *         self._pvt_ptr[0].canMapHostMemory = canMapHostMemory
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture1D(self):
 *         return self._pvt_ptr[0].maxTexture1D
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9338
 *     @property
 *     def maxTexture1D(self):
 *         return self._pvt_ptr[0].maxTexture1D             # <<<<<<<<<<<<<<
 *     @maxTexture1D.setter
 *     def maxTexture1D(self, int maxTexture1D):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxTexture1D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9336
 *     def canMapHostMemory(self, int canMapHostMemory):
 *         self._pvt_ptr[0].canMapHostMemory = canMapHostMemory
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture1D(self):
 *         return self._pvt_ptr[0].maxTexture1D
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture1D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9339
 *     def maxTexture1D(self):
 *         return self._pvt_ptr[0].maxTexture1D
 *     @maxTexture1D.setter             # <<<<<<<<<<<<<<
 *     def maxTexture1D(self, int maxTexture1D):
 *         self._pvt_ptr[0].maxTexture1D = maxTexture1D
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTexture1D); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTexture1D) {
  int __pyx_v_maxTexture1D;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxTexture1D); {
    __pyx_v_maxTexture1D = __Pyx_PyLong_As_int(__pyx_arg_maxTexture1D); if (unlikely((__pyx_v_maxTexture1D == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9340, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture1D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxTexture1D));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTexture1D) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9341
 *     @maxTexture1D.setter
 *     def maxTexture1D(self, int maxTexture1D):
 *         self._pvt_ptr[0].maxTexture1D = maxTexture1D             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture1DMipmap(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxTexture1D = __pyx_v_maxTexture1D;

  /* "cuda/bindings/runtime.pyx":9339
 *     def maxTexture1D(self):
 *         return self._pvt_ptr[0].maxTexture1D
 *     @maxTexture1D.setter             # <<<<<<<<<<<<<<
 *     def maxTexture1D(self, int maxTexture1D):
 *         self._pvt_ptr[0].maxTexture1D = maxTexture1D
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9342
 *     def maxTexture1D(self, int maxTexture1D):
 *         self._pvt_ptr[0].maxTexture1D = maxTexture1D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture1DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture1DMipmap
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9344
 *     @property
 *     def maxTexture1DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture1DMipmap             # <<<<<<<<<<<<<<
 *     @maxTexture1DMipmap.setter
 *     def maxTexture1DMipmap(self, int maxTexture1DMipmap):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxTexture1DMipmap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9342
 *     def maxTexture1D(self, int maxTexture1D):
 *         self._pvt_ptr[0].maxTexture1D = maxTexture1D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture1DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture1DMipmap
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture1DMipmap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9345
 *     def maxTexture1DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture1DMipmap
 *     @maxTexture1DMipmap.setter             # <<<<<<<<<<<<<<
 *     def maxTexture1DMipmap(self, int maxTexture1DMipmap):
 *         self._pvt_ptr[0].maxTexture1DMipmap = maxTexture1DMipmap
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTexture1DMipmap); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTexture1DMipmap) {
  int __pyx_v_maxTexture1DMipmap;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxTexture1DMipmap); {
    __pyx_v_maxTexture1DMipmap = __Pyx_PyLong_As_int(__pyx_arg_maxTexture1DMipmap); if (unlikely((__pyx_v_maxTexture1DMipmap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9346, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture1DMipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxTexture1DMipmap));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTexture1DMipmap) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9347
 *     @maxTexture1DMipmap.setter
 *     def maxTexture1DMipmap(self, int maxTexture1DMipmap):
 *         self._pvt_ptr[0].maxTexture1DMipmap = maxTexture1DMipmap             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture2D(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxTexture1DMipmap = __pyx_v_maxTexture1DMipmap;

  /* "cuda/bindings/runtime.pyx":9345
 *     def maxTexture1DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture1DMipmap
 *     @maxTexture1DMipmap.setter             # <<<<<<<<<<<<<<
 *     def maxTexture1DMipmap(self, int maxTexture1DMipmap):
 *         self._pvt_ptr[0].maxTexture1DMipmap = maxTexture1DMipmap
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9348
 *     def maxTexture1DMipmap(self, int maxTexture1DMipmap):
 *         self._pvt_ptr[0].maxTexture1DMipmap = maxTexture1DMipmap
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2D(self):
 *         return self._pvt_ptr[0].maxTexture2D
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9350
 *     @property
 *     def maxTexture2D(self):
 *         return self._pvt_ptr[0].maxTexture2D             # <<<<<<<<<<<<<<
 *     @maxTexture2D.setter
 *     def maxTexture2D(self, maxTexture2D):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTexture2D, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9348
 *     def maxTexture1DMipmap(self, int maxTexture1DMipmap):
 *         self._pvt_ptr[0].maxTexture1DMipmap = maxTexture1DMipmap
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2D(self):
 *         return self._pvt_ptr[0].maxTexture2D
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9351
 *     def maxTexture2D(self):
 *         return self._pvt_ptr[0].maxTexture2D
 *     @maxTexture2D.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2D(self, maxTexture2D):
 *         self._pvt_ptr[0].maxTexture2D = maxTexture2D
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2D); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2D) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2D));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2D) {
  int __pyx_r;
  int __pyx_t_1[2];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9353
 *     @maxTexture2D.setter
 *     def maxTexture2D(self, maxTexture2D):
 *         self._pvt_ptr[0].maxTexture2D = maxTexture2D             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture2DMipmap(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTexture2D, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 9353, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTexture2D[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTexture2D[0]) * (2));

  /* "cuda/bindings/runtime.pyx":9351
 *     def maxTexture2D(self):
 *         return self._pvt_ptr[0].maxTexture2D
 *     @maxTexture2D.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2D(self, maxTexture2D):
 *         self._pvt_ptr[0].maxTexture2D = maxTexture2D
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9354
 *     def maxTexture2D(self, maxTexture2D):
 *         self._pvt_ptr[0].maxTexture2D = maxTexture2D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture2DMipmap
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9356
 *     @property
 *     def maxTexture2DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture2DMipmap             # <<<<<<<<<<<<<<
 *     @maxTexture2DMipmap.setter
 *     def maxTexture2DMipmap(self, maxTexture2DMipmap):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTexture2DMipmap, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9354
 *     def maxTexture2D(self, maxTexture2D):
 *         self._pvt_ptr[0].maxTexture2D = maxTexture2D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture2DMipmap
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2DMipmap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9357
 *     def maxTexture2DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture2DMipmap
 *     @maxTexture2DMipmap.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2DMipmap(self, maxTexture2DMipmap):
 *         self._pvt_ptr[0].maxTexture2DMipmap = maxTexture2DMipmap
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DMipmap); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DMipmap) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2DMipmap));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DMipmap) {
  int __pyx_r;
  int __pyx_t_1[2];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9359
 *     @maxTexture2DMipmap.setter
 *     def maxTexture2DMipmap(self, maxTexture2DMipmap):
 *         self._pvt_ptr[0].maxTexture2DMipmap = maxTexture2DMipmap             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture2DLinear(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTexture2DMipmap, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 9359, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTexture2DMipmap[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTexture2DMipmap[0]) * (2));

  /* "cuda/bindings/runtime.pyx":9357
 *     def maxTexture2DMipmap(self):
 *         return self._pvt_ptr[0].maxTexture2DMipmap
 *     @maxTexture2DMipmap.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2DMipmap(self, maxTexture2DMipmap):
 *         self._pvt_ptr[0].maxTexture2DMipmap = maxTexture2DMipmap
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2DMipmap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9360
 *     def maxTexture2DMipmap(self, maxTexture2DMipmap):
 *         self._pvt_ptr[0].maxTexture2DMipmap = maxTexture2DMipmap
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2DLinear(self):
 *         return self._pvt_ptr[0].maxTexture2DLinear
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9362
 *     @property
 *     def maxTexture2DLinear(self):
 *         return self._pvt_ptr[0].maxTexture2DLinear             # <<<<<<<<<<<<<<
 *     @maxTexture2DLinear.setter
 *     def maxTexture2DLinear(self, maxTexture2DLinear):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTexture2DLinear, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9360
 *     def maxTexture2DMipmap(self, maxTexture2DMipmap):
 *         self._pvt_ptr[0].maxTexture2DMipmap = maxTexture2DMipmap
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2DLinear(self):
 *         return self._pvt_ptr[0].maxTexture2DLinear
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2DLinear.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9363
 *     def maxTexture2DLinear(self):
 *         return self._pvt_ptr[0].maxTexture2DLinear
 *     @maxTexture2DLinear.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2DLinear(self, maxTexture2DLinear):
 *         self._pvt_ptr[0].maxTexture2DLinear = maxTexture2DLinear
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLinear); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLinear) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2DLinear));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLinear) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9365
 *     @maxTexture2DLinear.setter
 *     def maxTexture2DLinear(self, maxTexture2DLinear):
 *         self._pvt_ptr[0].maxTexture2DLinear = maxTexture2DLinear             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture2DGather(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTexture2DLinear, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 9365, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTexture2DLinear[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTexture2DLinear[0]) * (3));

  /* "cuda/bindings/runtime.pyx":9363
 *     def maxTexture2DLinear(self):
 *         return self._pvt_ptr[0].maxTexture2DLinear
 *     @maxTexture2DLinear.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2DLinear(self, maxTexture2DLinear):
 *         self._pvt_ptr[0].maxTexture2DLinear = maxTexture2DLinear
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2DLinear.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9366
 *     def maxTexture2DLinear(self, maxTexture2DLinear):
 *         self._pvt_ptr[0].maxTexture2DLinear = maxTexture2DLinear
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2DGather(self):
 *         return self._pvt_ptr[0].maxTexture2DGather
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9368
 *     @property
 *     def maxTexture2DGather(self):
 *         return self._pvt_ptr[0].maxTexture2DGather             # <<<<<<<<<<<<<<
 *     @maxTexture2DGather.setter
 *     def maxTexture2DGather(self, maxTexture2DGather):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTexture2DGather, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9366
 *     def maxTexture2DLinear(self, maxTexture2DLinear):
 *         self._pvt_ptr[0].maxTexture2DLinear = maxTexture2DLinear
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2DGather(self):
 *         return self._pvt_ptr[0].maxTexture2DGather
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2DGather.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9369
 *     def maxTexture2DGather(self):
 *         return self._pvt_ptr[0].maxTexture2DGather
 *     @maxTexture2DGather.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2DGather(self, maxTexture2DGather):
 *         self._pvt_ptr[0].maxTexture2DGather = maxTexture2DGather
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DGather); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DGather) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2DGather));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DGather) {
  int __pyx_r;
  int __pyx_t_1[2];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9371
 *     @maxTexture2DGather.setter
 *     def maxTexture2DGather(self, maxTexture2DGather):
 *         self._pvt_ptr[0].maxTexture2DGather = maxTexture2DGather             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture3D(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTexture2DGather, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 9371, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTexture2DGather[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTexture2DGather[0]) * (2));

  /* "cuda/bindings/runtime.pyx":9369
 *     def maxTexture2DGather(self):
 *         return self._pvt_ptr[0].maxTexture2DGather
 *     @maxTexture2DGather.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2DGather(self, maxTexture2DGather):
 *         self._pvt_ptr[0].maxTexture2DGather = maxTexture2DGather
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2DGather.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9372
 *     def maxTexture2DGather(self, maxTexture2DGather):
 *         self._pvt_ptr[0].maxTexture2DGather = maxTexture2DGather
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture3D(self):
 *         return self._pvt_ptr[0].maxTexture3D
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9374
 *     @property
 *     def maxTexture3D(self):
 *         return self._pvt_ptr[0].maxTexture3D             # <<<<<<<<<<<<<<
 *     @maxTexture3D.setter
 *     def maxTexture3D(self, maxTexture3D):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTexture3D, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9372
 *     def maxTexture2DGather(self, maxTexture2DGather):
 *         self._pvt_ptr[0].maxTexture2DGather = maxTexture2DGather
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture3D(self):
 *         return self._pvt_ptr[0].maxTexture3D
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture3D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9375
 *     def maxTexture3D(self):
 *         return self._pvt_ptr[0].maxTexture3D
 *     @maxTexture3D.setter             # <<<<<<<<<<<<<<
 *     def maxTexture3D(self, maxTexture3D):
 *         self._pvt_ptr[0].maxTexture3D = maxTexture3D
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture3D); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture3D) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture3D));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture3D) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9377
 *     @maxTexture3D.setter
 *     def maxTexture3D(self, maxTexture3D):
 *         self._pvt_ptr[0].maxTexture3D = maxTexture3D             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture3DAlt(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTexture3D, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 9377, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTexture3D[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTexture3D[0]) * (3));

  /* "cuda/bindings/runtime.pyx":9375
 *     def maxTexture3D(self):
 *         return self._pvt_ptr[0].maxTexture3D
 *     @maxTexture3D.setter             # <<<<<<<<<<<<<<
 *     def maxTexture3D(self, maxTexture3D):
 *         self._pvt_ptr[0].maxTexture3D = maxTexture3D
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture3D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9378
 *     def maxTexture3D(self, maxTexture3D):
 *         self._pvt_ptr[0].maxTexture3D = maxTexture3D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture3DAlt(self):
 *         return self._pvt_ptr[0].maxTexture3DAlt
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9380
 *     @property
 *     def maxTexture3DAlt(self):
 *         return self._pvt_ptr[0].maxTexture3DAlt             # <<<<<<<<<<<<<<
 *     @maxTexture3DAlt.setter
 *     def maxTexture3DAlt(self, maxTexture3DAlt):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTexture3DAlt, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9378
 *     def maxTexture3D(self, maxTexture3D):
 *         self._pvt_ptr[0].maxTexture3D = maxTexture3D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture3DAlt(self):
 *         return self._pvt_ptr[0].maxTexture3DAlt
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture3DAlt.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9381
 *     def maxTexture3DAlt(self):
 *         return self._pvt_ptr[0].maxTexture3DAlt
 *     @maxTexture3DAlt.setter             # <<<<<<<<<<<<<<
 *     def maxTexture3DAlt(self, maxTexture3DAlt):
 *         self._pvt_ptr[0].maxTexture3DAlt = maxTexture3DAlt
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture3DAlt); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture3DAlt) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture3DAlt));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture3DAlt) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9383
 *     @maxTexture3DAlt.setter
 *     def maxTexture3DAlt(self, maxTexture3DAlt):
 *         self._pvt_ptr[0].maxTexture3DAlt = maxTexture3DAlt             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTextureCubemap(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTexture3DAlt, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 9383, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTexture3DAlt[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTexture3DAlt[0]) * (3));

  /* "cuda/bindings/runtime.pyx":9381
 *     def maxTexture3DAlt(self):
 *         return self._pvt_ptr[0].maxTexture3DAlt
 *     @maxTexture3DAlt.setter             # <<<<<<<<<<<<<<
 *     def maxTexture3DAlt(self, maxTexture3DAlt):
 *         self._pvt_ptr[0].maxTexture3DAlt = maxTexture3DAlt
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture3DAlt.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9384
 *     def maxTexture3DAlt(self, maxTexture3DAlt):
 *         self._pvt_ptr[0].maxTexture3DAlt = maxTexture3DAlt
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTextureCubemap(self):
 *         return self._pvt_ptr[0].maxTextureCubemap
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9386
 *     @property
 *     def maxTextureCubemap(self):
 *         return self._pvt_ptr[0].maxTextureCubemap             # <<<<<<<<<<<<<<
 *     @maxTextureCubemap.setter
 *     def maxTextureCubemap(self, int maxTextureCubemap):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxTextureCubemap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9384
 *     def maxTexture3DAlt(self, maxTexture3DAlt):
 *         self._pvt_ptr[0].maxTexture3DAlt = maxTexture3DAlt
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTextureCubemap(self):
 *         return self._pvt_ptr[0].maxTextureCubemap
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTextureCubemap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9387
 *     def maxTextureCubemap(self):
 *         return self._pvt_ptr[0].maxTextureCubemap
 *     @maxTextureCubemap.setter             # <<<<<<<<<<<<<<
 *     def maxTextureCubemap(self, int maxTextureCubemap):
 *         self._pvt_ptr[0].maxTextureCubemap = maxTextureCubemap
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTextureCubemap); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxTextureCubemap) {
  int __pyx_v_maxTextureCubemap;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxTextureCubemap); {
    __pyx_v_maxTextureCubemap = __Pyx_PyLong_As_int(__pyx_arg_maxTextureCubemap); if (unlikely((__pyx_v_maxTextureCubemap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9388, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTextureCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxTextureCubemap));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxTextureCubemap) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9389
 *     @maxTextureCubemap.setter
 *     def maxTextureCubemap(self, int maxTextureCubemap):
 *         self._pvt_ptr[0].maxTextureCubemap = maxTextureCubemap             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture1DLayered(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxTextureCubemap = __pyx_v_maxTextureCubemap;

  /* "cuda/bindings/runtime.pyx":9387
 *     def maxTextureCubemap(self):
 *         return self._pvt_ptr[0].maxTextureCubemap
 *     @maxTextureCubemap.setter             # <<<<<<<<<<<<<<
 *     def maxTextureCubemap(self, int maxTextureCubemap):
 *         self._pvt_ptr[0].maxTextureCubemap = maxTextureCubemap
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9390
 *     def maxTextureCubemap(self, int maxTextureCubemap):
 *         self._pvt_ptr[0].maxTextureCubemap = maxTextureCubemap
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture1DLayered(self):
 *         return self._pvt_ptr[0].maxTexture1DLayered
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9392
 *     @property
 *     def maxTexture1DLayered(self):
 *         return self._pvt_ptr[0].maxTexture1DLayered             # <<<<<<<<<<<<<<
 *     @maxTexture1DLayered.setter
 *     def maxTexture1DLayered(self, maxTexture1DLayered):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTexture1DLayered, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9390
 *     def maxTextureCubemap(self, int maxTextureCubemap):
 *         self._pvt_ptr[0].maxTextureCubemap = maxTextureCubemap
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture1DLayered(self):
 *         return self._pvt_ptr[0].maxTexture1DLayered
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture1DLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9393
 *     def maxTexture1DLayered(self):
 *         return self._pvt_ptr[0].maxTexture1DLayered
 *     @maxTexture1DLayered.setter             # <<<<<<<<<<<<<<
 *     def maxTexture1DLayered(self, maxTexture1DLayered):
 *         self._pvt_ptr[0].maxTexture1DLayered = maxTexture1DLayered
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture1DLayered); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture1DLayered) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture1DLayered));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture1DLayered) {
  int __pyx_r;
  int __pyx_t_1[2];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9395
 *     @maxTexture1DLayered.setter
 *     def maxTexture1DLayered(self, maxTexture1DLayered):
 *         self._pvt_ptr[0].maxTexture1DLayered = maxTexture1DLayered             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTexture2DLayered(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTexture1DLayered, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 9395, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTexture1DLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTexture1DLayered[0]) * (2));

  /* "cuda/bindings/runtime.pyx":9393
 *     def maxTexture1DLayered(self):
 *         return self._pvt_ptr[0].maxTexture1DLayered
 *     @maxTexture1DLayered.setter             # <<<<<<<<<<<<<<
 *     def maxTexture1DLayered(self, maxTexture1DLayered):
 *         self._pvt_ptr[0].maxTexture1DLayered = maxTexture1DLayered
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture1DLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9396
 *     def maxTexture1DLayered(self, maxTexture1DLayered):
 *         self._pvt_ptr[0].maxTexture1DLayered = maxTexture1DLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2DLayered(self):
 *         return self._pvt_ptr[0].maxTexture2DLayered
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9398
 *     @property
 *     def maxTexture2DLayered(self):
 *         return self._pvt_ptr[0].maxTexture2DLayered             # <<<<<<<<<<<<<<
 *     @maxTexture2DLayered.setter
 *     def maxTexture2DLayered(self, maxTexture2DLayered):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTexture2DLayered, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9396
 *     def maxTexture1DLayered(self, maxTexture1DLayered):
 *         self._pvt_ptr[0].maxTexture1DLayered = maxTexture1DLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTexture2DLayered(self):
 *         return self._pvt_ptr[0].maxTexture2DLayered
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2DLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9399
 *     def maxTexture2DLayered(self):
 *         return self._pvt_ptr[0].maxTexture2DLayered
 *     @maxTexture2DLayered.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2DLayered(self, maxTexture2DLayered):
 *         self._pvt_ptr[0].maxTexture2DLayered = maxTexture2DLayered
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLayered); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLayered) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTexture2DLayered));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTexture2DLayered) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9401
 *     @maxTexture2DLayered.setter
 *     def maxTexture2DLayered(self, maxTexture2DLayered):
 *         self._pvt_ptr[0].maxTexture2DLayered = maxTexture2DLayered             # <<<<<<<<<<<<<<
 *     @property
 *     def maxTextureCubemapLayered(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTexture2DLayered, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 9401, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTexture2DLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTexture2DLayered[0]) * (3));

  /* "cuda/bindings/runtime.pyx":9399
 *     def maxTexture2DLayered(self):
 *         return self._pvt_ptr[0].maxTexture2DLayered
 *     @maxTexture2DLayered.setter             # <<<<<<<<<<<<<<
 *     def maxTexture2DLayered(self, maxTexture2DLayered):
 *         self._pvt_ptr[0].maxTexture2DLayered = maxTexture2DLayered
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTexture2DLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9402
 *     def maxTexture2DLayered(self, maxTexture2DLayered):
 *         self._pvt_ptr[0].maxTexture2DLayered = maxTexture2DLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTextureCubemapLayered(self):
 *         return self._pvt_ptr[0].maxTextureCubemapLayered
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9404
 *     @property
 *     def maxTextureCubemapLayered(self):
 *         return self._pvt_ptr[0].maxTextureCubemapLayered             # <<<<<<<<<<<<<<
 *     @maxTextureCubemapLayered.setter
 *     def maxTextureCubemapLayered(self, maxTextureCubemapLayered):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxTextureCubemapLayered, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9402
 *     def maxTexture2DLayered(self, maxTexture2DLayered):
 *         self._pvt_ptr[0].maxTexture2DLayered = maxTexture2DLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxTextureCubemapLayered(self):
 *         return self._pvt_ptr[0].maxTextureCubemapLayered
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTextureCubemapLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9405
 *     def maxTextureCubemapLayered(self):
 *         return self._pvt_ptr[0].maxTextureCubemapLayered
 *     @maxTextureCubemapLayered.setter             # <<<<<<<<<<<<<<
 *     def maxTextureCubemapLayered(self, maxTextureCubemapLayered):
 *         self._pvt_ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTextureCubemapLayered); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxTextureCubemapLayered) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxTextureCubemapLayered));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxTextureCubemapLayered) {
  int __pyx_r;
  int __pyx_t_1[2];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9407
 *     @maxTextureCubemapLayered.setter
 *     def maxTextureCubemapLayered(self, maxTextureCubemapLayered):
 *         self._pvt_ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered             # <<<<<<<<<<<<<<
 *     @property
 *     def maxSurface1D(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxTextureCubemapLayered, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 9407, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxTextureCubemapLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxTextureCubemapLayered[0]) * (2));

  /* "cuda/bindings/runtime.pyx":9405
 *     def maxTextureCubemapLayered(self):
 *         return self._pvt_ptr[0].maxTextureCubemapLayered
 *     @maxTextureCubemapLayered.setter             # <<<<<<<<<<<<<<
 *     def maxTextureCubemapLayered(self, maxTextureCubemapLayered):
 *         self._pvt_ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxTextureCubemapLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9408
 *     def maxTextureCubemapLayered(self, maxTextureCubemapLayered):
 *         self._pvt_ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface1D(self):
 *         return self._pvt_ptr[0].maxSurface1D
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9410
 *     @property
 *     def maxSurface1D(self):
 *         return self._pvt_ptr[0].maxSurface1D             # <<<<<<<<<<<<<<
 *     @maxSurface1D.setter
 *     def maxSurface1D(self, int maxSurface1D):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxSurface1D); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9408
 *     def maxTextureCubemapLayered(self, maxTextureCubemapLayered):
 *         self._pvt_ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface1D(self):
 *         return self._pvt_ptr[0].maxSurface1D
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface1D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9411
 *     def maxSurface1D(self):
 *         return self._pvt_ptr[0].maxSurface1D
 *     @maxSurface1D.setter             # <<<<<<<<<<<<<<
 *     def maxSurface1D(self, int maxSurface1D):
 *         self._pvt_ptr[0].maxSurface1D = maxSurface1D
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSurface1D); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSurface1D) {
  int __pyx_v_maxSurface1D;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxSurface1D); {
    __pyx_v_maxSurface1D = __Pyx_PyLong_As_int(__pyx_arg_maxSurface1D); if (unlikely((__pyx_v_maxSurface1D == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9412, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface1D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxSurface1D));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxSurface1D) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9413
 *     @maxSurface1D.setter
 *     def maxSurface1D(self, int maxSurface1D):
 *         self._pvt_ptr[0].maxSurface1D = maxSurface1D             # <<<<<<<<<<<<<<
 *     @property
 *     def maxSurface2D(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxSurface1D = __pyx_v_maxSurface1D;

  /* "cuda/bindings/runtime.pyx":9411
 *     def maxSurface1D(self):
 *         return self._pvt_ptr[0].maxSurface1D
 *     @maxSurface1D.setter             # <<<<<<<<<<<<<<
 *     def maxSurface1D(self, int maxSurface1D):
 *         self._pvt_ptr[0].maxSurface1D = maxSurface1D
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9414
 *     def maxSurface1D(self, int maxSurface1D):
 *         self._pvt_ptr[0].maxSurface1D = maxSurface1D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface2D(self):
 *         return self._pvt_ptr[0].maxSurface2D
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9416
 *     @property
 *     def maxSurface2D(self):
 *         return self._pvt_ptr[0].maxSurface2D             # <<<<<<<<<<<<<<
 *     @maxSurface2D.setter
 *     def maxSurface2D(self, maxSurface2D):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxSurface2D, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9414
 *     def maxSurface1D(self, int maxSurface1D):
 *         self._pvt_ptr[0].maxSurface1D = maxSurface1D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface2D(self):
 *         return self._pvt_ptr[0].maxSurface2D
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface2D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9417
 *     def maxSurface2D(self):
 *         return self._pvt_ptr[0].maxSurface2D
 *     @maxSurface2D.setter             # <<<<<<<<<<<<<<
 *     def maxSurface2D(self, maxSurface2D):
 *         self._pvt_ptr[0].maxSurface2D = maxSurface2D
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface2D); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface2D) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurface2D));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface2D) {
  int __pyx_r;
  int __pyx_t_1[2];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9419
 *     @maxSurface2D.setter
 *     def maxSurface2D(self, maxSurface2D):
 *         self._pvt_ptr[0].maxSurface2D = maxSurface2D             # <<<<<<<<<<<<<<
 *     @property
 *     def maxSurface3D(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxSurface2D, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 9419, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxSurface2D[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxSurface2D[0]) * (2));

  /* "cuda/bindings/runtime.pyx":9417
 *     def maxSurface2D(self):
 *         return self._pvt_ptr[0].maxSurface2D
 *     @maxSurface2D.setter             # <<<<<<<<<<<<<<
 *     def maxSurface2D(self, maxSurface2D):
 *         self._pvt_ptr[0].maxSurface2D = maxSurface2D
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface2D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9420
 *     def maxSurface2D(self, maxSurface2D):
 *         self._pvt_ptr[0].maxSurface2D = maxSurface2D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface3D(self):
 *         return self._pvt_ptr[0].maxSurface3D
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9422
 *     @property
 *     def maxSurface3D(self):
 *         return self._pvt_ptr[0].maxSurface3D             # <<<<<<<<<<<<<<
 *     @maxSurface3D.setter
 *     def maxSurface3D(self, maxSurface3D):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxSurface3D, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9420
 *     def maxSurface2D(self, maxSurface2D):
 *         self._pvt_ptr[0].maxSurface2D = maxSurface2D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface3D(self):
 *         return self._pvt_ptr[0].maxSurface3D
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface3D.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9423
 *     def maxSurface3D(self):
 *         return self._pvt_ptr[0].maxSurface3D
 *     @maxSurface3D.setter             # <<<<<<<<<<<<<<
 *     def maxSurface3D(self, maxSurface3D):
 *         self._pvt_ptr[0].maxSurface3D = maxSurface3D
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface3D); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface3D) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurface3D));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface3D) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9425
 *     @maxSurface3D.setter
 *     def maxSurface3D(self, maxSurface3D):
 *         self._pvt_ptr[0].maxSurface3D = maxSurface3D             # <<<<<<<<<<<<<<
 *     @property
 *     def maxSurface1DLayered(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxSurface3D, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 9425, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxSurface3D[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxSurface3D[0]) * (3));

  /* "cuda/bindings/runtime.pyx":9423
 *     def maxSurface3D(self):
 *         return self._pvt_ptr[0].maxSurface3D
 *     @maxSurface3D.setter             # <<<<<<<<<<<<<<
 *     def maxSurface3D(self, maxSurface3D):
 *         self._pvt_ptr[0].maxSurface3D = maxSurface3D
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface3D.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9426
 *     def maxSurface3D(self, maxSurface3D):
 *         self._pvt_ptr[0].maxSurface3D = maxSurface3D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface1DLayered(self):
 *         return self._pvt_ptr[0].maxSurface1DLayered
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9428
 *     @property
 *     def maxSurface1DLayered(self):
 *         return self._pvt_ptr[0].maxSurface1DLayered             # <<<<<<<<<<<<<<
 *     @maxSurface1DLayered.setter
 *     def maxSurface1DLayered(self, maxSurface1DLayered):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxSurface1DLayered, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9426
 *     def maxSurface3D(self, maxSurface3D):
 *         self._pvt_ptr[0].maxSurface3D = maxSurface3D
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface1DLayered(self):
 *         return self._pvt_ptr[0].maxSurface1DLayered
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface1DLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9429
 *     def maxSurface1DLayered(self):
 *         return self._pvt_ptr[0].maxSurface1DLayered
 *     @maxSurface1DLayered.setter             # <<<<<<<<<<<<<<
 *     def maxSurface1DLayered(self, maxSurface1DLayered):
 *         self._pvt_ptr[0].maxSurface1DLayered = maxSurface1DLayered
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface1DLayered); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface1DLayered) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurface1DLayered));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface1DLayered) {
  int __pyx_r;
  int __pyx_t_1[2];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9431
 *     @maxSurface1DLayered.setter
 *     def maxSurface1DLayered(self, maxSurface1DLayered):
 *         self._pvt_ptr[0].maxSurface1DLayered = maxSurface1DLayered             # <<<<<<<<<<<<<<
 *     @property
 *     def maxSurface2DLayered(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxSurface1DLayered, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 9431, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxSurface1DLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxSurface1DLayered[0]) * (2));

  /* "cuda/bindings/runtime.pyx":9429
 *     def maxSurface1DLayered(self):
 *         return self._pvt_ptr[0].maxSurface1DLayered
 *     @maxSurface1DLayered.setter             # <<<<<<<<<<<<<<
 *     def maxSurface1DLayered(self, maxSurface1DLayered):
 *         self._pvt_ptr[0].maxSurface1DLayered = maxSurface1DLayered
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface1DLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9432
 *     def maxSurface1DLayered(self, maxSurface1DLayered):
 *         self._pvt_ptr[0].maxSurface1DLayered = maxSurface1DLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface2DLayered(self):
 *         return self._pvt_ptr[0].maxSurface2DLayered
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9434
 *     @property
 *     def maxSurface2DLayered(self):
 *         return self._pvt_ptr[0].maxSurface2DLayered             # <<<<<<<<<<<<<<
 *     @maxSurface2DLayered.setter
 *     def maxSurface2DLayered(self, maxSurface2DLayered):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxSurface2DLayered, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9432
 *     def maxSurface1DLayered(self, maxSurface1DLayered):
 *         self._pvt_ptr[0].maxSurface1DLayered = maxSurface1DLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurface2DLayered(self):
 *         return self._pvt_ptr[0].maxSurface2DLayered
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface2DLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9435
 *     def maxSurface2DLayered(self):
 *         return self._pvt_ptr[0].maxSurface2DLayered
 *     @maxSurface2DLayered.setter             # <<<<<<<<<<<<<<
 *     def maxSurface2DLayered(self, maxSurface2DLayered):
 *         self._pvt_ptr[0].maxSurface2DLayered = maxSurface2DLayered
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface2DLayered); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurface2DLayered) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurface2DLayered));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurface2DLayered) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9437
 *     @maxSurface2DLayered.setter
 *     def maxSurface2DLayered(self, maxSurface2DLayered):
 *         self._pvt_ptr[0].maxSurface2DLayered = maxSurface2DLayered             # <<<<<<<<<<<<<<
 *     @property
 *     def maxSurfaceCubemap(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxSurface2DLayered, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 9437, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxSurface2DLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxSurface2DLayered[0]) * (3));

  /* "cuda/bindings/runtime.pyx":9435
 *     def maxSurface2DLayered(self):
 *         return self._pvt_ptr[0].maxSurface2DLayered
 *     @maxSurface2DLayered.setter             # <<<<<<<<<<<<<<
 *     def maxSurface2DLayered(self, maxSurface2DLayered):
 *         self._pvt_ptr[0].maxSurface2DLayered = maxSurface2DLayered
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurface2DLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9438
 *     def maxSurface2DLayered(self, maxSurface2DLayered):
 *         self._pvt_ptr[0].maxSurface2DLayered = maxSurface2DLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurfaceCubemap(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemap
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9440
 *     @property
 *     def maxSurfaceCubemap(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemap             # <<<<<<<<<<<<<<
 *     @maxSurfaceCubemap.setter
 *     def maxSurfaceCubemap(self, int maxSurfaceCubemap):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxSurfaceCubemap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9438
 *     def maxSurface2DLayered(self, maxSurface2DLayered):
 *         self._pvt_ptr[0].maxSurface2DLayered = maxSurface2DLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurfaceCubemap(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemap
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurfaceCubemap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9441
 *     def maxSurfaceCubemap(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemap
 *     @maxSurfaceCubemap.setter             # <<<<<<<<<<<<<<
 *     def maxSurfaceCubemap(self, int maxSurfaceCubemap):
 *         self._pvt_ptr[0].maxSurfaceCubemap = maxSurfaceCubemap
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSurfaceCubemap); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxSurfaceCubemap) {
  int __pyx_v_maxSurfaceCubemap;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxSurfaceCubemap); {
    __pyx_v_maxSurfaceCubemap = __Pyx_PyLong_As_int(__pyx_arg_maxSurfaceCubemap); if (unlikely((__pyx_v_maxSurfaceCubemap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9442, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurfaceCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxSurfaceCubemap));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxSurfaceCubemap) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9443
 *     @maxSurfaceCubemap.setter
 *     def maxSurfaceCubemap(self, int maxSurfaceCubemap):
 *         self._pvt_ptr[0].maxSurfaceCubemap = maxSurfaceCubemap             # <<<<<<<<<<<<<<
 *     @property
 *     def maxSurfaceCubemapLayered(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxSurfaceCubemap = __pyx_v_maxSurfaceCubemap;

  /* "cuda/bindings/runtime.pyx":9441
 *     def maxSurfaceCubemap(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemap
 *     @maxSurfaceCubemap.setter             # <<<<<<<<<<<<<<
 *     def maxSurfaceCubemap(self, int maxSurfaceCubemap):
 *         self._pvt_ptr[0].maxSurfaceCubemap = maxSurfaceCubemap
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9444
 *     def maxSurfaceCubemap(self, int maxSurfaceCubemap):
 *         self._pvt_ptr[0].maxSurfaceCubemap = maxSurfaceCubemap
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurfaceCubemapLayered(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemapLayered
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9446
 *     @property
 *     def maxSurfaceCubemapLayered(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemapLayered             # <<<<<<<<<<<<<<
 *     @maxSurfaceCubemapLayered.setter
 *     def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).maxSurfaceCubemapLayered, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9444
 *     def maxSurfaceCubemap(self, int maxSurfaceCubemap):
 *         self._pvt_ptr[0].maxSurfaceCubemap = maxSurfaceCubemap
 *     @property             # <<<<<<<<<<<<<<
 *     def maxSurfaceCubemapLayered(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemapLayered
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurfaceCubemapLayered.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9447
 *     def maxSurfaceCubemapLayered(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemapLayered
 *     @maxSurfaceCubemapLayered.setter             # <<<<<<<<<<<<<<
 *     def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered):
 *         self._pvt_ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurfaceCubemapLayered); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_maxSurfaceCubemapLayered) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_maxSurfaceCubemapLayered));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_maxSurfaceCubemapLayered) {
  int __pyx_r;
  int __pyx_t_1[2];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9449
 *     @maxSurfaceCubemapLayered.setter
 *     def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered):
 *         self._pvt_ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered             # <<<<<<<<<<<<<<
 *     @property
 *     def surfaceAlignment(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_maxSurfaceCubemapLayered, __pyx_t_1, 2) < 0))) __PYX_ERR(0, 9449, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).maxSurfaceCubemapLayered[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).maxSurfaceCubemapLayered[0]) * (2));

  /* "cuda/bindings/runtime.pyx":9447
 *     def maxSurfaceCubemapLayered(self):
 *         return self._pvt_ptr[0].maxSurfaceCubemapLayered
 *     @maxSurfaceCubemapLayered.setter             # <<<<<<<<<<<<<<
 *     def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered):
 *         self._pvt_ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxSurfaceCubemapLayered.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9450
 *     def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered):
 *         self._pvt_ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def surfaceAlignment(self):
 *         return self._pvt_ptr[0].surfaceAlignment
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9452
 *     @property
 *     def surfaceAlignment(self):
 *         return self._pvt_ptr[0].surfaceAlignment             # <<<<<<<<<<<<<<
 *     @surfaceAlignment.setter
 *     def surfaceAlignment(self, size_t surfaceAlignment):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).surfaceAlignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9450
 *     def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered):
 *         self._pvt_ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered
 *     @property             # <<<<<<<<<<<<<<
 *     def surfaceAlignment(self):
 *         return self._pvt_ptr[0].surfaceAlignment
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.surfaceAlignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9453
 *     def surfaceAlignment(self):
 *         return self._pvt_ptr[0].surfaceAlignment
 *     @surfaceAlignment.setter             # <<<<<<<<<<<<<<
 *     def surfaceAlignment(self, size_t surfaceAlignment):
 *         self._pvt_ptr[0].surfaceAlignment = surfaceAlignment
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_surfaceAlignment); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_surfaceAlignment) {
  size_t __pyx_v_surfaceAlignment;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_surfaceAlignment); {
    __pyx_v_surfaceAlignment = __Pyx_PyLong_As_size_t(__pyx_arg_surfaceAlignment); if (unlikely((__pyx_v_surfaceAlignment == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9454, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.surfaceAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_surfaceAlignment));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_surfaceAlignment) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9455
 *     @surfaceAlignment.setter
 *     def surfaceAlignment(self, size_t surfaceAlignment):
 *         self._pvt_ptr[0].surfaceAlignment = surfaceAlignment             # <<<<<<<<<<<<<<
 *     @property
 *     def concurrentKernels(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).surfaceAlignment = __pyx_v_surfaceAlignment;

  /* "cuda/bindings/runtime.pyx":9453
 *     def surfaceAlignment(self):
 *         return self._pvt_ptr[0].surfaceAlignment
 *     @surfaceAlignment.setter             # <<<<<<<<<<<<<<
 *     def surfaceAlignment(self, size_t surfaceAlignment):
 *         self._pvt_ptr[0].surfaceAlignment = surfaceAlignment
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9456
 *     def surfaceAlignment(self, size_t surfaceAlignment):
 *         self._pvt_ptr[0].surfaceAlignment = surfaceAlignment
 *     @property             # <<<<<<<<<<<<<<
 *     def concurrentKernels(self):
 *         return self._pvt_ptr[0].concurrentKernels
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9458
 *     @property
 *     def concurrentKernels(self):
 *         return self._pvt_ptr[0].concurrentKernels             # <<<<<<<<<<<<<<
 *     @concurrentKernels.setter
 *     def concurrentKernels(self, int concurrentKernels):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).concurrentKernels); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9456
 *     def surfaceAlignment(self, size_t surfaceAlignment):
 *         self._pvt_ptr[0].surfaceAlignment = surfaceAlignment
 *     @property             # <<<<<<<<<<<<<<
 *     def concurrentKernels(self):
 *         return self._pvt_ptr[0].concurrentKernels
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.concurrentKernels.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9459
 *     def concurrentKernels(self):
 *         return self._pvt_ptr[0].concurrentKernels
 *     @concurrentKernels.setter             # <<<<<<<<<<<<<<
 *     def concurrentKernels(self, int concurrentKernels):
 *         self._pvt_ptr[0].concurrentKernels = concurrentKernels
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_concurrentKernels); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_concurrentKernels) {
  int __pyx_v_concurrentKernels;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_concurrentKernels); {
    __pyx_v_concurrentKernels = __Pyx_PyLong_As_int(__pyx_arg_concurrentKernels); if (unlikely((__pyx_v_concurrentKernels == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9460, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.concurrentKernels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_concurrentKernels));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_concurrentKernels) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9461
 *     @concurrentKernels.setter
 *     def concurrentKernels(self, int concurrentKernels):
 *         self._pvt_ptr[0].concurrentKernels = concurrentKernels             # <<<<<<<<<<<<<<
 *     @property
 *     def ECCEnabled(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).concurrentKernels = __pyx_v_concurrentKernels;

  /* "cuda/bindings/runtime.pyx":9459
 *     def concurrentKernels(self):
 *         return self._pvt_ptr[0].concurrentKernels
 *     @concurrentKernels.setter             # <<<<<<<<<<<<<<
 *     def concurrentKernels(self, int concurrentKernels):
 *         self._pvt_ptr[0].concurrentKernels = concurrentKernels
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9462
 *     def concurrentKernels(self, int concurrentKernels):
 *         self._pvt_ptr[0].concurrentKernels = concurrentKernels
 *     @property             # <<<<<<<<<<<<<<
 *     def ECCEnabled(self):
 *         return self._pvt_ptr[0].ECCEnabled
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9464
 *     @property
 *     def ECCEnabled(self):
 *         return self._pvt_ptr[0].ECCEnabled             # <<<<<<<<<<<<<<
 *     @ECCEnabled.setter
 *     def ECCEnabled(self, int ECCEnabled):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).ECCEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9462
 *     def concurrentKernels(self, int concurrentKernels):
 *         self._pvt_ptr[0].concurrentKernels = concurrentKernels
 *     @property             # <<<<<<<<<<<<<<
 *     def ECCEnabled(self):
 *         return self._pvt_ptr[0].ECCEnabled
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.ECCEnabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9465
 *     def ECCEnabled(self):
 *         return self._pvt_ptr[0].ECCEnabled
 *     @ECCEnabled.setter             # <<<<<<<<<<<<<<
 *     def ECCEnabled(self, int ECCEnabled):
 *         self._pvt_ptr[0].ECCEnabled = ECCEnabled
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ECCEnabled); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ECCEnabled) {
  int __pyx_v_ECCEnabled;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_ECCEnabled); {
    __pyx_v_ECCEnabled = __Pyx_PyLong_As_int(__pyx_arg_ECCEnabled); if (unlikely((__pyx_v_ECCEnabled == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9466, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.ECCEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_ECCEnabled));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_ECCEnabled) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9467
 *     @ECCEnabled.setter
 *     def ECCEnabled(self, int ECCEnabled):
 *         self._pvt_ptr[0].ECCEnabled = ECCEnabled             # <<<<<<<<<<<<<<
 *     @property
 *     def pciBusID(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).ECCEnabled = __pyx_v_ECCEnabled;

  /* "cuda/bindings/runtime.pyx":9465
 *     def ECCEnabled(self):
 *         return self._pvt_ptr[0].ECCEnabled
 *     @ECCEnabled.setter             # <<<<<<<<<<<<<<
 *     def ECCEnabled(self, int ECCEnabled):
 *         self._pvt_ptr[0].ECCEnabled = ECCEnabled
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9468
 *     def ECCEnabled(self, int ECCEnabled):
 *         self._pvt_ptr[0].ECCEnabled = ECCEnabled
 *     @property             # <<<<<<<<<<<<<<
 *     def pciBusID(self):
 *         return self._pvt_ptr[0].pciBusID
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9470
 *     @property
 *     def pciBusID(self):
 *         return self._pvt_ptr[0].pciBusID             # <<<<<<<<<<<<<<
 *     @pciBusID.setter
 *     def pciBusID(self, int pciBusID):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).pciBusID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9468
 *     def ECCEnabled(self, int ECCEnabled):
 *         self._pvt_ptr[0].ECCEnabled = ECCEnabled
 *     @property             # <<<<<<<<<<<<<<
 *     def pciBusID(self):
 *         return self._pvt_ptr[0].pciBusID
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pciBusID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9471
 *     def pciBusID(self):
 *         return self._pvt_ptr[0].pciBusID
 *     @pciBusID.setter             # <<<<<<<<<<<<<<
 *     def pciBusID(self, int pciBusID):
 *         self._pvt_ptr[0].pciBusID = pciBusID
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciBusID); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciBusID) {
  int __pyx_v_pciBusID;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pciBusID); {
    __pyx_v_pciBusID = __Pyx_PyLong_As_int(__pyx_arg_pciBusID); if (unlikely((__pyx_v_pciBusID == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9472, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pciBusID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pciBusID));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciBusID) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9473
 *     @pciBusID.setter
 *     def pciBusID(self, int pciBusID):
 *         self._pvt_ptr[0].pciBusID = pciBusID             # <<<<<<<<<<<<<<
 *     @property
 *     def pciDeviceID(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pciBusID = __pyx_v_pciBusID;

  /* "cuda/bindings/runtime.pyx":9471
 *     def pciBusID(self):
 *         return self._pvt_ptr[0].pciBusID
 *     @pciBusID.setter             # <<<<<<<<<<<<<<
 *     def pciBusID(self, int pciBusID):
 *         self._pvt_ptr[0].pciBusID = pciBusID
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9474
 *     def pciBusID(self, int pciBusID):
 *         self._pvt_ptr[0].pciBusID = pciBusID
 *     @property             # <<<<<<<<<<<<<<
 *     def pciDeviceID(self):
 *         return self._pvt_ptr[0].pciDeviceID
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9476
 *     @property
 *     def pciDeviceID(self):
 *         return self._pvt_ptr[0].pciDeviceID             # <<<<<<<<<<<<<<
 *     @pciDeviceID.setter
 *     def pciDeviceID(self, int pciDeviceID):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).pciDeviceID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9474
 *     def pciBusID(self, int pciBusID):
 *         self._pvt_ptr[0].pciBusID = pciBusID
 *     @property             # <<<<<<<<<<<<<<
 *     def pciDeviceID(self):
 *         return self._pvt_ptr[0].pciDeviceID
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pciDeviceID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9477
 *     def pciDeviceID(self):
 *         return self._pvt_ptr[0].pciDeviceID
 *     @pciDeviceID.setter             # <<<<<<<<<<<<<<
 *     def pciDeviceID(self, int pciDeviceID):
 *         self._pvt_ptr[0].pciDeviceID = pciDeviceID
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciDeviceID); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciDeviceID) {
  int __pyx_v_pciDeviceID;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pciDeviceID); {
    __pyx_v_pciDeviceID = __Pyx_PyLong_As_int(__pyx_arg_pciDeviceID); if (unlikely((__pyx_v_pciDeviceID == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9478, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pciDeviceID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pciDeviceID));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciDeviceID) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9479
 *     @pciDeviceID.setter
 *     def pciDeviceID(self, int pciDeviceID):
 *         self._pvt_ptr[0].pciDeviceID = pciDeviceID             # <<<<<<<<<<<<<<
 *     @property
 *     def pciDomainID(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pciDeviceID = __pyx_v_pciDeviceID;

  /* "cuda/bindings/runtime.pyx":9477
 *     def pciDeviceID(self):
 *         return self._pvt_ptr[0].pciDeviceID
 *     @pciDeviceID.setter             # <<<<<<<<<<<<<<
 *     def pciDeviceID(self, int pciDeviceID):
 *         self._pvt_ptr[0].pciDeviceID = pciDeviceID
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9480
 *     def pciDeviceID(self, int pciDeviceID):
 *         self._pvt_ptr[0].pciDeviceID = pciDeviceID
 *     @property             # <<<<<<<<<<<<<<
 *     def pciDomainID(self):
 *         return self._pvt_ptr[0].pciDomainID
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9482
 *     @property
 *     def pciDomainID(self):
 *         return self._pvt_ptr[0].pciDomainID             # <<<<<<<<<<<<<<
 *     @pciDomainID.setter
 *     def pciDomainID(self, int pciDomainID):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).pciDomainID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9482, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9480
 *     def pciDeviceID(self, int pciDeviceID):
 *         self._pvt_ptr[0].pciDeviceID = pciDeviceID
 *     @property             # <<<<<<<<<<<<<<
 *     def pciDomainID(self):
 *         return self._pvt_ptr[0].pciDomainID
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pciDomainID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9483
 *     def pciDomainID(self):
 *         return self._pvt_ptr[0].pciDomainID
 *     @pciDomainID.setter             # <<<<<<<<<<<<<<
 *     def pciDomainID(self, int pciDomainID):
 *         self._pvt_ptr[0].pciDomainID = pciDomainID
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciDomainID); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pciDomainID) {
  int __pyx_v_pciDomainID;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pciDomainID); {
    __pyx_v_pciDomainID = __Pyx_PyLong_As_int(__pyx_arg_pciDomainID); if (unlikely((__pyx_v_pciDomainID == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9484, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pciDomainID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pciDomainID));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pciDomainID) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9485
 *     @pciDomainID.setter
 *     def pciDomainID(self, int pciDomainID):
 *         self._pvt_ptr[0].pciDomainID = pciDomainID             # <<<<<<<<<<<<<<
 *     @property
 *     def tccDriver(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pciDomainID = __pyx_v_pciDomainID;

  /* "cuda/bindings/runtime.pyx":9483
 *     def pciDomainID(self):
 *         return self._pvt_ptr[0].pciDomainID
 *     @pciDomainID.setter             # <<<<<<<<<<<<<<
 *     def pciDomainID(self, int pciDomainID):
 *         self._pvt_ptr[0].pciDomainID = pciDomainID
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9486
 *     def pciDomainID(self, int pciDomainID):
 *         self._pvt_ptr[0].pciDomainID = pciDomainID
 *     @property             # <<<<<<<<<<<<<<
 *     def tccDriver(self):
 *         return self._pvt_ptr[0].tccDriver
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9488
 *     @property
 *     def tccDriver(self):
 *         return self._pvt_ptr[0].tccDriver             # <<<<<<<<<<<<<<
 *     @tccDriver.setter
 *     def tccDriver(self, int tccDriver):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).tccDriver); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9486
 *     def pciDomainID(self, int pciDomainID):
 *         self._pvt_ptr[0].pciDomainID = pciDomainID
 *     @property             # <<<<<<<<<<<<<<
 *     def tccDriver(self):
 *         return self._pvt_ptr[0].tccDriver
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.tccDriver.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9489
 *     def tccDriver(self):
 *         return self._pvt_ptr[0].tccDriver
 *     @tccDriver.setter             # <<<<<<<<<<<<<<
 *     def tccDriver(self, int tccDriver):
 *         self._pvt_ptr[0].tccDriver = tccDriver
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_tccDriver); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_tccDriver) {
  int __pyx_v_tccDriver;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_tccDriver); {
    __pyx_v_tccDriver = __Pyx_PyLong_As_int(__pyx_arg_tccDriver); if (unlikely((__pyx_v_tccDriver == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9490, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.tccDriver.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_tccDriver));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_tccDriver) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9491
 *     @tccDriver.setter
 *     def tccDriver(self, int tccDriver):
 *         self._pvt_ptr[0].tccDriver = tccDriver             # <<<<<<<<<<<<<<
 *     @property
 *     def asyncEngineCount(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).tccDriver = __pyx_v_tccDriver;

  /* "cuda/bindings/runtime.pyx":9489
 *     def tccDriver(self):
 *         return self._pvt_ptr[0].tccDriver
 *     @tccDriver.setter             # <<<<<<<<<<<<<<
 *     def tccDriver(self, int tccDriver):
 *         self._pvt_ptr[0].tccDriver = tccDriver
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9492
 *     def tccDriver(self, int tccDriver):
 *         self._pvt_ptr[0].tccDriver = tccDriver
 *     @property             # <<<<<<<<<<<<<<
 *     def asyncEngineCount(self):
 *         return self._pvt_ptr[0].asyncEngineCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9494
 *     @property
 *     def asyncEngineCount(self):
 *         return self._pvt_ptr[0].asyncEngineCount             # <<<<<<<<<<<<<<
 *     @asyncEngineCount.setter
 *     def asyncEngineCount(self, int asyncEngineCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).asyncEngineCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9492
 *     def tccDriver(self, int tccDriver):
 *         self._pvt_ptr[0].tccDriver = tccDriver
 *     @property             # <<<<<<<<<<<<<<
 *     def asyncEngineCount(self):
 *         return self._pvt_ptr[0].asyncEngineCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.asyncEngineCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9495
 *     def asyncEngineCount(self):
 *         return self._pvt_ptr[0].asyncEngineCount
 *     @asyncEngineCount.setter             # <<<<<<<<<<<<<<
 *     def asyncEngineCount(self, int asyncEngineCount):
 *         self._pvt_ptr[0].asyncEngineCount = asyncEngineCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_asyncEngineCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_asyncEngineCount) {
  int __pyx_v_asyncEngineCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_asyncEngineCount); {
    __pyx_v_asyncEngineCount = __Pyx_PyLong_As_int(__pyx_arg_asyncEngineCount); if (unlikely((__pyx_v_asyncEngineCount == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9496, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.asyncEngineCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_asyncEngineCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_asyncEngineCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9497
 *     @asyncEngineCount.setter
 *     def asyncEngineCount(self, int asyncEngineCount):
 *         self._pvt_ptr[0].asyncEngineCount = asyncEngineCount             # <<<<<<<<<<<<<<
 *     @property
 *     def unifiedAddressing(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).asyncEngineCount = __pyx_v_asyncEngineCount;

  /* "cuda/bindings/runtime.pyx":9495
 *     def asyncEngineCount(self):
 *         return self._pvt_ptr[0].asyncEngineCount
 *     @asyncEngineCount.setter             # <<<<<<<<<<<<<<
 *     def asyncEngineCount(self, int asyncEngineCount):
 *         self._pvt_ptr[0].asyncEngineCount = asyncEngineCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9498
 *     def asyncEngineCount(self, int asyncEngineCount):
 *         self._pvt_ptr[0].asyncEngineCount = asyncEngineCount
 *     @property             # <<<<<<<<<<<<<<
 *     def unifiedAddressing(self):
 *         return self._pvt_ptr[0].unifiedAddressing
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9500
 *     @property
 *     def unifiedAddressing(self):
 *         return self._pvt_ptr[0].unifiedAddressing             # <<<<<<<<<<<<<<
 *     @unifiedAddressing.setter
 *     def unifiedAddressing(self, int unifiedAddressing):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).unifiedAddressing); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9498
 *     def asyncEngineCount(self, int asyncEngineCount):
 *         self._pvt_ptr[0].asyncEngineCount = asyncEngineCount
 *     @property             # <<<<<<<<<<<<<<
 *     def unifiedAddressing(self):
 *         return self._pvt_ptr[0].unifiedAddressing
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.unifiedAddressing.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9501
 *     def unifiedAddressing(self):
 *         return self._pvt_ptr[0].unifiedAddressing
 *     @unifiedAddressing.setter             # <<<<<<<<<<<<<<
 *     def unifiedAddressing(self, int unifiedAddressing):
 *         self._pvt_ptr[0].unifiedAddressing = unifiedAddressing
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_unifiedAddressing); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_unifiedAddressing) {
  int __pyx_v_unifiedAddressing;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_unifiedAddressing); {
    __pyx_v_unifiedAddressing = __Pyx_PyLong_As_int(__pyx_arg_unifiedAddressing); if (unlikely((__pyx_v_unifiedAddressing == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9502, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.unifiedAddressing.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_unifiedAddressing));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_unifiedAddressing) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9503
 *     @unifiedAddressing.setter
 *     def unifiedAddressing(self, int unifiedAddressing):
 *         self._pvt_ptr[0].unifiedAddressing = unifiedAddressing             # <<<<<<<<<<<<<<
 *     @property
 *     def memoryBusWidth(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).unifiedAddressing = __pyx_v_unifiedAddressing;

  /* "cuda/bindings/runtime.pyx":9501
 *     def unifiedAddressing(self):
 *         return self._pvt_ptr[0].unifiedAddressing
 *     @unifiedAddressing.setter             # <<<<<<<<<<<<<<
 *     def unifiedAddressing(self, int unifiedAddressing):
 *         self._pvt_ptr[0].unifiedAddressing = unifiedAddressing
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9504
 *     def unifiedAddressing(self, int unifiedAddressing):
 *         self._pvt_ptr[0].unifiedAddressing = unifiedAddressing
 *     @property             # <<<<<<<<<<<<<<
 *     def memoryBusWidth(self):
 *         return self._pvt_ptr[0].memoryBusWidth
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9506
 *     @property
 *     def memoryBusWidth(self):
 *         return self._pvt_ptr[0].memoryBusWidth             # <<<<<<<<<<<<<<
 *     @memoryBusWidth.setter
 *     def memoryBusWidth(self, int memoryBusWidth):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).memoryBusWidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9504
 *     def unifiedAddressing(self, int unifiedAddressing):
 *         self._pvt_ptr[0].unifiedAddressing = unifiedAddressing
 *     @property             # <<<<<<<<<<<<<<
 *     def memoryBusWidth(self):
 *         return self._pvt_ptr[0].memoryBusWidth
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.memoryBusWidth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9507
 *     def memoryBusWidth(self):
 *         return self._pvt_ptr[0].memoryBusWidth
 *     @memoryBusWidth.setter             # <<<<<<<<<<<<<<
 *     def memoryBusWidth(self, int memoryBusWidth):
 *         self._pvt_ptr[0].memoryBusWidth = memoryBusWidth
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryBusWidth); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryBusWidth) {
  int __pyx_v_memoryBusWidth;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_memoryBusWidth); {
    __pyx_v_memoryBusWidth = __Pyx_PyLong_As_int(__pyx_arg_memoryBusWidth); if (unlikely((__pyx_v_memoryBusWidth == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9508, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.memoryBusWidth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_memoryBusWidth));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_memoryBusWidth) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9509
 *     @memoryBusWidth.setter
 *     def memoryBusWidth(self, int memoryBusWidth):
 *         self._pvt_ptr[0].memoryBusWidth = memoryBusWidth             # <<<<<<<<<<<<<<
 *     @property
 *     def l2CacheSize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).memoryBusWidth = __pyx_v_memoryBusWidth;

  /* "cuda/bindings/runtime.pyx":9507
 *     def memoryBusWidth(self):
 *         return self._pvt_ptr[0].memoryBusWidth
 *     @memoryBusWidth.setter             # <<<<<<<<<<<<<<
 *     def memoryBusWidth(self, int memoryBusWidth):
 *         self._pvt_ptr[0].memoryBusWidth = memoryBusWidth
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9510
 *     def memoryBusWidth(self, int memoryBusWidth):
 *         self._pvt_ptr[0].memoryBusWidth = memoryBusWidth
 *     @property             # <<<<<<<<<<<<<<
 *     def l2CacheSize(self):
 *         return self._pvt_ptr[0].l2CacheSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9512
 *     @property
 *     def l2CacheSize(self):
 *         return self._pvt_ptr[0].l2CacheSize             # <<<<<<<<<<<<<<
 *     @l2CacheSize.setter
 *     def l2CacheSize(self, int l2CacheSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).l2CacheSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9510
 *     def memoryBusWidth(self, int memoryBusWidth):
 *         self._pvt_ptr[0].memoryBusWidth = memoryBusWidth
 *     @property             # <<<<<<<<<<<<<<
 *     def l2CacheSize(self):
 *         return self._pvt_ptr[0].l2CacheSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.l2CacheSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9513
 *     def l2CacheSize(self):
 *         return self._pvt_ptr[0].l2CacheSize
 *     @l2CacheSize.setter             # <<<<<<<<<<<<<<
 *     def l2CacheSize(self, int l2CacheSize):
 *         self._pvt_ptr[0].l2CacheSize = l2CacheSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_l2CacheSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_l2CacheSize) {
  int __pyx_v_l2CacheSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_l2CacheSize); {
    __pyx_v_l2CacheSize = __Pyx_PyLong_As_int(__pyx_arg_l2CacheSize); if (unlikely((__pyx_v_l2CacheSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9514, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.l2CacheSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_l2CacheSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_l2CacheSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9515
 *     @l2CacheSize.setter
 *     def l2CacheSize(self, int l2CacheSize):
 *         self._pvt_ptr[0].l2CacheSize = l2CacheSize             # <<<<<<<<<<<<<<
 *     @property
 *     def persistingL2CacheMaxSize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).l2CacheSize = __pyx_v_l2CacheSize;

  /* "cuda/bindings/runtime.pyx":9513
 *     def l2CacheSize(self):
 *         return self._pvt_ptr[0].l2CacheSize
 *     @l2CacheSize.setter             # <<<<<<<<<<<<<<
 *     def l2CacheSize(self, int l2CacheSize):
 *         self._pvt_ptr[0].l2CacheSize = l2CacheSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9516
 *     def l2CacheSize(self, int l2CacheSize):
 *         self._pvt_ptr[0].l2CacheSize = l2CacheSize
 *     @property             # <<<<<<<<<<<<<<
 *     def persistingL2CacheMaxSize(self):
 *         return self._pvt_ptr[0].persistingL2CacheMaxSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9518
 *     @property
 *     def persistingL2CacheMaxSize(self):
 *         return self._pvt_ptr[0].persistingL2CacheMaxSize             # <<<<<<<<<<<<<<
 *     @persistingL2CacheMaxSize.setter
 *     def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).persistingL2CacheMaxSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9516
 *     def l2CacheSize(self, int l2CacheSize):
 *         self._pvt_ptr[0].l2CacheSize = l2CacheSize
 *     @property             # <<<<<<<<<<<<<<
 *     def persistingL2CacheMaxSize(self):
 *         return self._pvt_ptr[0].persistingL2CacheMaxSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.persistingL2CacheMaxSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9519
 *     def persistingL2CacheMaxSize(self):
 *         return self._pvt_ptr[0].persistingL2CacheMaxSize
 *     @persistingL2CacheMaxSize.setter             # <<<<<<<<<<<<<<
 *     def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize):
 *         self._pvt_ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_persistingL2CacheMaxSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_persistingL2CacheMaxSize) {
  int __pyx_v_persistingL2CacheMaxSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_persistingL2CacheMaxSize); {
    __pyx_v_persistingL2CacheMaxSize = __Pyx_PyLong_As_int(__pyx_arg_persistingL2CacheMaxSize); if (unlikely((__pyx_v_persistingL2CacheMaxSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9520, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.persistingL2CacheMaxSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_persistingL2CacheMaxSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_persistingL2CacheMaxSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9521
 *     @persistingL2CacheMaxSize.setter
 *     def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize):
 *         self._pvt_ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize             # <<<<<<<<<<<<<<
 *     @property
 *     def maxThreadsPerMultiProcessor(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).persistingL2CacheMaxSize = __pyx_v_persistingL2CacheMaxSize;

  /* "cuda/bindings/runtime.pyx":9519
 *     def persistingL2CacheMaxSize(self):
 *         return self._pvt_ptr[0].persistingL2CacheMaxSize
 *     @persistingL2CacheMaxSize.setter             # <<<<<<<<<<<<<<
 *     def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize):
 *         self._pvt_ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9522
 *     def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize):
 *         self._pvt_ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize
 *     @property             # <<<<<<<<<<<<<<
 *     def maxThreadsPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxThreadsPerMultiProcessor
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9524
 *     @property
 *     def maxThreadsPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxThreadsPerMultiProcessor             # <<<<<<<<<<<<<<
 *     @maxThreadsPerMultiProcessor.setter
 *     def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxThreadsPerMultiProcessor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9524, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9522
 *     def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize):
 *         self._pvt_ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize
 *     @property             # <<<<<<<<<<<<<<
 *     def maxThreadsPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxThreadsPerMultiProcessor
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxThreadsPerMultiProcessor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9525
 *     def maxThreadsPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxThreadsPerMultiProcessor
 *     @maxThreadsPerMultiProcessor.setter             # <<<<<<<<<<<<<<
 *     def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor):
 *         self._pvt_ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerMultiProcessor); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxThreadsPerMultiProcessor) {
  int __pyx_v_maxThreadsPerMultiProcessor;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxThreadsPerMultiProcessor); {
    __pyx_v_maxThreadsPerMultiProcessor = __Pyx_PyLong_As_int(__pyx_arg_maxThreadsPerMultiProcessor); if (unlikely((__pyx_v_maxThreadsPerMultiProcessor == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9526, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxThreadsPerMultiProcessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxThreadsPerMultiProcessor));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxThreadsPerMultiProcessor) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9527
 *     @maxThreadsPerMultiProcessor.setter
 *     def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor):
 *         self._pvt_ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor             # <<<<<<<<<<<<<<
 *     @property
 *     def streamPrioritiesSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxThreadsPerMultiProcessor = __pyx_v_maxThreadsPerMultiProcessor;

  /* "cuda/bindings/runtime.pyx":9525
 *     def maxThreadsPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxThreadsPerMultiProcessor
 *     @maxThreadsPerMultiProcessor.setter             # <<<<<<<<<<<<<<
 *     def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor):
 *         self._pvt_ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9528
 *     def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor):
 *         self._pvt_ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor
 *     @property             # <<<<<<<<<<<<<<
 *     def streamPrioritiesSupported(self):
 *         return self._pvt_ptr[0].streamPrioritiesSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9530
 *     @property
 *     def streamPrioritiesSupported(self):
 *         return self._pvt_ptr[0].streamPrioritiesSupported             # <<<<<<<<<<<<<<
 *     @streamPrioritiesSupported.setter
 *     def streamPrioritiesSupported(self, int streamPrioritiesSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).streamPrioritiesSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9528
 *     def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor):
 *         self._pvt_ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor
 *     @property             # <<<<<<<<<<<<<<
 *     def streamPrioritiesSupported(self):
 *         return self._pvt_ptr[0].streamPrioritiesSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.streamPrioritiesSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9531
 *     def streamPrioritiesSupported(self):
 *         return self._pvt_ptr[0].streamPrioritiesSupported
 *     @streamPrioritiesSupported.setter             # <<<<<<<<<<<<<<
 *     def streamPrioritiesSupported(self, int streamPrioritiesSupported):
 *         self._pvt_ptr[0].streamPrioritiesSupported = streamPrioritiesSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_streamPrioritiesSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_streamPrioritiesSupported) {
  int __pyx_v_streamPrioritiesSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_streamPrioritiesSupported); {
    __pyx_v_streamPrioritiesSupported = __Pyx_PyLong_As_int(__pyx_arg_streamPrioritiesSupported); if (unlikely((__pyx_v_streamPrioritiesSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9532, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.streamPrioritiesSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_streamPrioritiesSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_streamPrioritiesSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9533
 *     @streamPrioritiesSupported.setter
 *     def streamPrioritiesSupported(self, int streamPrioritiesSupported):
 *         self._pvt_ptr[0].streamPrioritiesSupported = streamPrioritiesSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def globalL1CacheSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).streamPrioritiesSupported = __pyx_v_streamPrioritiesSupported;

  /* "cuda/bindings/runtime.pyx":9531
 *     def streamPrioritiesSupported(self):
 *         return self._pvt_ptr[0].streamPrioritiesSupported
 *     @streamPrioritiesSupported.setter             # <<<<<<<<<<<<<<
 *     def streamPrioritiesSupported(self, int streamPrioritiesSupported):
 *         self._pvt_ptr[0].streamPrioritiesSupported = streamPrioritiesSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9534
 *     def streamPrioritiesSupported(self, int streamPrioritiesSupported):
 *         self._pvt_ptr[0].streamPrioritiesSupported = streamPrioritiesSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def globalL1CacheSupported(self):
 *         return self._pvt_ptr[0].globalL1CacheSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9536
 *     @property
 *     def globalL1CacheSupported(self):
 *         return self._pvt_ptr[0].globalL1CacheSupported             # <<<<<<<<<<<<<<
 *     @globalL1CacheSupported.setter
 *     def globalL1CacheSupported(self, int globalL1CacheSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).globalL1CacheSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9534
 *     def streamPrioritiesSupported(self, int streamPrioritiesSupported):
 *         self._pvt_ptr[0].streamPrioritiesSupported = streamPrioritiesSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def globalL1CacheSupported(self):
 *         return self._pvt_ptr[0].globalL1CacheSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.globalL1CacheSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9537
 *     def globalL1CacheSupported(self):
 *         return self._pvt_ptr[0].globalL1CacheSupported
 *     @globalL1CacheSupported.setter             # <<<<<<<<<<<<<<
 *     def globalL1CacheSupported(self, int globalL1CacheSupported):
 *         self._pvt_ptr[0].globalL1CacheSupported = globalL1CacheSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_globalL1CacheSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_globalL1CacheSupported) {
  int __pyx_v_globalL1CacheSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_globalL1CacheSupported); {
    __pyx_v_globalL1CacheSupported = __Pyx_PyLong_As_int(__pyx_arg_globalL1CacheSupported); if (unlikely((__pyx_v_globalL1CacheSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9538, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.globalL1CacheSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_globalL1CacheSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_globalL1CacheSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9539
 *     @globalL1CacheSupported.setter
 *     def globalL1CacheSupported(self, int globalL1CacheSupported):
 *         self._pvt_ptr[0].globalL1CacheSupported = globalL1CacheSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def localL1CacheSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).globalL1CacheSupported = __pyx_v_globalL1CacheSupported;

  /* "cuda/bindings/runtime.pyx":9537
 *     def globalL1CacheSupported(self):
 *         return self._pvt_ptr[0].globalL1CacheSupported
 *     @globalL1CacheSupported.setter             # <<<<<<<<<<<<<<
 *     def globalL1CacheSupported(self, int globalL1CacheSupported):
 *         self._pvt_ptr[0].globalL1CacheSupported = globalL1CacheSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9540
 *     def globalL1CacheSupported(self, int globalL1CacheSupported):
 *         self._pvt_ptr[0].globalL1CacheSupported = globalL1CacheSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def localL1CacheSupported(self):
 *         return self._pvt_ptr[0].localL1CacheSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9542
 *     @property
 *     def localL1CacheSupported(self):
 *         return self._pvt_ptr[0].localL1CacheSupported             # <<<<<<<<<<<<<<
 *     @localL1CacheSupported.setter
 *     def localL1CacheSupported(self, int localL1CacheSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).localL1CacheSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9540
 *     def globalL1CacheSupported(self, int globalL1CacheSupported):
 *         self._pvt_ptr[0].globalL1CacheSupported = globalL1CacheSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def localL1CacheSupported(self):
 *         return self._pvt_ptr[0].localL1CacheSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.localL1CacheSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9543
 *     def localL1CacheSupported(self):
 *         return self._pvt_ptr[0].localL1CacheSupported
 *     @localL1CacheSupported.setter             # <<<<<<<<<<<<<<
 *     def localL1CacheSupported(self, int localL1CacheSupported):
 *         self._pvt_ptr[0].localL1CacheSupported = localL1CacheSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_localL1CacheSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_localL1CacheSupported) {
  int __pyx_v_localL1CacheSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_localL1CacheSupported); {
    __pyx_v_localL1CacheSupported = __Pyx_PyLong_As_int(__pyx_arg_localL1CacheSupported); if (unlikely((__pyx_v_localL1CacheSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9544, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.localL1CacheSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_localL1CacheSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_localL1CacheSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9545
 *     @localL1CacheSupported.setter
 *     def localL1CacheSupported(self, int localL1CacheSupported):
 *         self._pvt_ptr[0].localL1CacheSupported = localL1CacheSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def sharedMemPerMultiprocessor(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).localL1CacheSupported = __pyx_v_localL1CacheSupported;

  /* "cuda/bindings/runtime.pyx":9543
 *     def localL1CacheSupported(self):
 *         return self._pvt_ptr[0].localL1CacheSupported
 *     @localL1CacheSupported.setter             # <<<<<<<<<<<<<<
 *     def localL1CacheSupported(self, int localL1CacheSupported):
 *         self._pvt_ptr[0].localL1CacheSupported = localL1CacheSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9546
 *     def localL1CacheSupported(self, int localL1CacheSupported):
 *         self._pvt_ptr[0].localL1CacheSupported = localL1CacheSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemPerMultiprocessor(self):
 *         return self._pvt_ptr[0].sharedMemPerMultiprocessor
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9548
 *     @property
 *     def sharedMemPerMultiprocessor(self):
 *         return self._pvt_ptr[0].sharedMemPerMultiprocessor             # <<<<<<<<<<<<<<
 *     @sharedMemPerMultiprocessor.setter
 *     def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).sharedMemPerMultiprocessor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9546
 *     def localL1CacheSupported(self, int localL1CacheSupported):
 *         self._pvt_ptr[0].localL1CacheSupported = localL1CacheSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemPerMultiprocessor(self):
 *         return self._pvt_ptr[0].sharedMemPerMultiprocessor
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.sharedMemPerMultiprocessor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9549
 *     def sharedMemPerMultiprocessor(self):
 *         return self._pvt_ptr[0].sharedMemPerMultiprocessor
 *     @sharedMemPerMultiprocessor.setter             # <<<<<<<<<<<<<<
 *     def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor):
 *         self._pvt_ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerMultiprocessor); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerMultiprocessor) {
  size_t __pyx_v_sharedMemPerMultiprocessor;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sharedMemPerMultiprocessor); {
    __pyx_v_sharedMemPerMultiprocessor = __Pyx_PyLong_As_size_t(__pyx_arg_sharedMemPerMultiprocessor); if (unlikely((__pyx_v_sharedMemPerMultiprocessor == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9550, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.sharedMemPerMultiprocessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_sharedMemPerMultiprocessor));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerMultiprocessor) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9551
 *     @sharedMemPerMultiprocessor.setter
 *     def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor):
 *         self._pvt_ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor             # <<<<<<<<<<<<<<
 *     @property
 *     def regsPerMultiprocessor(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sharedMemPerMultiprocessor = __pyx_v_sharedMemPerMultiprocessor;

  /* "cuda/bindings/runtime.pyx":9549
 *     def sharedMemPerMultiprocessor(self):
 *         return self._pvt_ptr[0].sharedMemPerMultiprocessor
 *     @sharedMemPerMultiprocessor.setter             # <<<<<<<<<<<<<<
 *     def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor):
 *         self._pvt_ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9552
 *     def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor):
 *         self._pvt_ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor
 *     @property             # <<<<<<<<<<<<<<
 *     def regsPerMultiprocessor(self):
 *         return self._pvt_ptr[0].regsPerMultiprocessor
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9554
 *     @property
 *     def regsPerMultiprocessor(self):
 *         return self._pvt_ptr[0].regsPerMultiprocessor             # <<<<<<<<<<<<<<
 *     @regsPerMultiprocessor.setter
 *     def regsPerMultiprocessor(self, int regsPerMultiprocessor):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).regsPerMultiprocessor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9554, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9552
 *     def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor):
 *         self._pvt_ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor
 *     @property             # <<<<<<<<<<<<<<
 *     def regsPerMultiprocessor(self):
 *         return self._pvt_ptr[0].regsPerMultiprocessor
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.regsPerMultiprocessor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9555
 *     def regsPerMultiprocessor(self):
 *         return self._pvt_ptr[0].regsPerMultiprocessor
 *     @regsPerMultiprocessor.setter             # <<<<<<<<<<<<<<
 *     def regsPerMultiprocessor(self, int regsPerMultiprocessor):
 *         self._pvt_ptr[0].regsPerMultiprocessor = regsPerMultiprocessor
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_regsPerMultiprocessor); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_regsPerMultiprocessor) {
  int __pyx_v_regsPerMultiprocessor;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_regsPerMultiprocessor); {
    __pyx_v_regsPerMultiprocessor = __Pyx_PyLong_As_int(__pyx_arg_regsPerMultiprocessor); if (unlikely((__pyx_v_regsPerMultiprocessor == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9556, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.regsPerMultiprocessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_regsPerMultiprocessor));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_regsPerMultiprocessor) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9557
 *     @regsPerMultiprocessor.setter
 *     def regsPerMultiprocessor(self, int regsPerMultiprocessor):
 *         self._pvt_ptr[0].regsPerMultiprocessor = regsPerMultiprocessor             # <<<<<<<<<<<<<<
 *     @property
 *     def managedMemory(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).regsPerMultiprocessor = __pyx_v_regsPerMultiprocessor;

  /* "cuda/bindings/runtime.pyx":9555
 *     def regsPerMultiprocessor(self):
 *         return self._pvt_ptr[0].regsPerMultiprocessor
 *     @regsPerMultiprocessor.setter             # <<<<<<<<<<<<<<
 *     def regsPerMultiprocessor(self, int regsPerMultiprocessor):
 *         self._pvt_ptr[0].regsPerMultiprocessor = regsPerMultiprocessor
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9558
 *     def regsPerMultiprocessor(self, int regsPerMultiprocessor):
 *         self._pvt_ptr[0].regsPerMultiprocessor = regsPerMultiprocessor
 *     @property             # <<<<<<<<<<<<<<
 *     def managedMemory(self):
 *         return self._pvt_ptr[0].managedMemory
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9560
 *     @property
 *     def managedMemory(self):
 *         return self._pvt_ptr[0].managedMemory             # <<<<<<<<<<<<<<
 *     @managedMemory.setter
 *     def managedMemory(self, int managedMemory):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).managedMemory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9558
 *     def regsPerMultiprocessor(self, int regsPerMultiprocessor):
 *         self._pvt_ptr[0].regsPerMultiprocessor = regsPerMultiprocessor
 *     @property             # <<<<<<<<<<<<<<
 *     def managedMemory(self):
 *         return self._pvt_ptr[0].managedMemory
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.managedMemory.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9561
 *     def managedMemory(self):
 *         return self._pvt_ptr[0].managedMemory
 *     @managedMemory.setter             # <<<<<<<<<<<<<<
 *     def managedMemory(self, int managedMemory):
 *         self._pvt_ptr[0].managedMemory = managedMemory
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_managedMemory); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_managedMemory) {
  int __pyx_v_managedMemory;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_managedMemory); {
    __pyx_v_managedMemory = __Pyx_PyLong_As_int(__pyx_arg_managedMemory); if (unlikely((__pyx_v_managedMemory == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9562, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.managedMemory.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_managedMemory));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_managedMemory) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9563
 *     @managedMemory.setter
 *     def managedMemory(self, int managedMemory):
 *         self._pvt_ptr[0].managedMemory = managedMemory             # <<<<<<<<<<<<<<
 *     @property
 *     def isMultiGpuBoard(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).managedMemory = __pyx_v_managedMemory;

  /* "cuda/bindings/runtime.pyx":9561
 *     def managedMemory(self):
 *         return self._pvt_ptr[0].managedMemory
 *     @managedMemory.setter             # <<<<<<<<<<<<<<
 *     def managedMemory(self, int managedMemory):
 *         self._pvt_ptr[0].managedMemory = managedMemory
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9564
 *     def managedMemory(self, int managedMemory):
 *         self._pvt_ptr[0].managedMemory = managedMemory
 *     @property             # <<<<<<<<<<<<<<
 *     def isMultiGpuBoard(self):
 *         return self._pvt_ptr[0].isMultiGpuBoard
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9566
 *     @property
 *     def isMultiGpuBoard(self):
 *         return self._pvt_ptr[0].isMultiGpuBoard             # <<<<<<<<<<<<<<
 *     @isMultiGpuBoard.setter
 *     def isMultiGpuBoard(self, int isMultiGpuBoard):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).isMultiGpuBoard); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9564
 *     def managedMemory(self, int managedMemory):
 *         self._pvt_ptr[0].managedMemory = managedMemory
 *     @property             # <<<<<<<<<<<<<<
 *     def isMultiGpuBoard(self):
 *         return self._pvt_ptr[0].isMultiGpuBoard
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.isMultiGpuBoard.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9567
 *     def isMultiGpuBoard(self):
 *         return self._pvt_ptr[0].isMultiGpuBoard
 *     @isMultiGpuBoard.setter             # <<<<<<<<<<<<<<
 *     def isMultiGpuBoard(self, int isMultiGpuBoard):
 *         self._pvt_ptr[0].isMultiGpuBoard = isMultiGpuBoard
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_isMultiGpuBoard); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_isMultiGpuBoard) {
  int __pyx_v_isMultiGpuBoard;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_isMultiGpuBoard); {
    __pyx_v_isMultiGpuBoard = __Pyx_PyLong_As_int(__pyx_arg_isMultiGpuBoard); if (unlikely((__pyx_v_isMultiGpuBoard == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9568, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.isMultiGpuBoard.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_isMultiGpuBoard));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_isMultiGpuBoard) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9569
 *     @isMultiGpuBoard.setter
 *     def isMultiGpuBoard(self, int isMultiGpuBoard):
 *         self._pvt_ptr[0].isMultiGpuBoard = isMultiGpuBoard             # <<<<<<<<<<<<<<
 *     @property
 *     def multiGpuBoardGroupID(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).isMultiGpuBoard = __pyx_v_isMultiGpuBoard;

  /* "cuda/bindings/runtime.pyx":9567
 *     def isMultiGpuBoard(self):
 *         return self._pvt_ptr[0].isMultiGpuBoard
 *     @isMultiGpuBoard.setter             # <<<<<<<<<<<<<<
 *     def isMultiGpuBoard(self, int isMultiGpuBoard):
 *         self._pvt_ptr[0].isMultiGpuBoard = isMultiGpuBoard
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9570
 *     def isMultiGpuBoard(self, int isMultiGpuBoard):
 *         self._pvt_ptr[0].isMultiGpuBoard = isMultiGpuBoard
 *     @property             # <<<<<<<<<<<<<<
 *     def multiGpuBoardGroupID(self):
 *         return self._pvt_ptr[0].multiGpuBoardGroupID
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9572
 *     @property
 *     def multiGpuBoardGroupID(self):
 *         return self._pvt_ptr[0].multiGpuBoardGroupID             # <<<<<<<<<<<<<<
 *     @multiGpuBoardGroupID.setter
 *     def multiGpuBoardGroupID(self, int multiGpuBoardGroupID):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).multiGpuBoardGroupID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9570
 *     def isMultiGpuBoard(self, int isMultiGpuBoard):
 *         self._pvt_ptr[0].isMultiGpuBoard = isMultiGpuBoard
 *     @property             # <<<<<<<<<<<<<<
 *     def multiGpuBoardGroupID(self):
 *         return self._pvt_ptr[0].multiGpuBoardGroupID
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.multiGpuBoardGroupID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9573
 *     def multiGpuBoardGroupID(self):
 *         return self._pvt_ptr[0].multiGpuBoardGroupID
 *     @multiGpuBoardGroupID.setter             # <<<<<<<<<<<<<<
 *     def multiGpuBoardGroupID(self, int multiGpuBoardGroupID):
 *         self._pvt_ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_multiGpuBoardGroupID); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_multiGpuBoardGroupID) {
  int __pyx_v_multiGpuBoardGroupID;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_multiGpuBoardGroupID); {
    __pyx_v_multiGpuBoardGroupID = __Pyx_PyLong_As_int(__pyx_arg_multiGpuBoardGroupID); if (unlikely((__pyx_v_multiGpuBoardGroupID == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9574, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.multiGpuBoardGroupID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_multiGpuBoardGroupID));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_multiGpuBoardGroupID) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9575
 *     @multiGpuBoardGroupID.setter
 *     def multiGpuBoardGroupID(self, int multiGpuBoardGroupID):
 *         self._pvt_ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID             # <<<<<<<<<<<<<<
 *     @property
 *     def hostNativeAtomicSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).multiGpuBoardGroupID = __pyx_v_multiGpuBoardGroupID;

  /* "cuda/bindings/runtime.pyx":9573
 *     def multiGpuBoardGroupID(self):
 *         return self._pvt_ptr[0].multiGpuBoardGroupID
 *     @multiGpuBoardGroupID.setter             # <<<<<<<<<<<<<<
 *     def multiGpuBoardGroupID(self, int multiGpuBoardGroupID):
 *         self._pvt_ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9576
 *     def multiGpuBoardGroupID(self, int multiGpuBoardGroupID):
 *         self._pvt_ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID
 *     @property             # <<<<<<<<<<<<<<
 *     def hostNativeAtomicSupported(self):
 *         return self._pvt_ptr[0].hostNativeAtomicSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9578
 *     @property
 *     def hostNativeAtomicSupported(self):
 *         return self._pvt_ptr[0].hostNativeAtomicSupported             # <<<<<<<<<<<<<<
 *     @hostNativeAtomicSupported.setter
 *     def hostNativeAtomicSupported(self, int hostNativeAtomicSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).hostNativeAtomicSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9576
 *     def multiGpuBoardGroupID(self, int multiGpuBoardGroupID):
 *         self._pvt_ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID
 *     @property             # <<<<<<<<<<<<<<
 *     def hostNativeAtomicSupported(self):
 *         return self._pvt_ptr[0].hostNativeAtomicSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostNativeAtomicSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9579
 *     def hostNativeAtomicSupported(self):
 *         return self._pvt_ptr[0].hostNativeAtomicSupported
 *     @hostNativeAtomicSupported.setter             # <<<<<<<<<<<<<<
 *     def hostNativeAtomicSupported(self, int hostNativeAtomicSupported):
 *         self._pvt_ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostNativeAtomicSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostNativeAtomicSupported) {
  int __pyx_v_hostNativeAtomicSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_hostNativeAtomicSupported); {
    __pyx_v_hostNativeAtomicSupported = __Pyx_PyLong_As_int(__pyx_arg_hostNativeAtomicSupported); if (unlikely((__pyx_v_hostNativeAtomicSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9580, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostNativeAtomicSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_hostNativeAtomicSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostNativeAtomicSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9581
 *     @hostNativeAtomicSupported.setter
 *     def hostNativeAtomicSupported(self, int hostNativeAtomicSupported):
 *         self._pvt_ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def pageableMemoryAccess(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).hostNativeAtomicSupported = __pyx_v_hostNativeAtomicSupported;

  /* "cuda/bindings/runtime.pyx":9579
 *     def hostNativeAtomicSupported(self):
 *         return self._pvt_ptr[0].hostNativeAtomicSupported
 *     @hostNativeAtomicSupported.setter             # <<<<<<<<<<<<<<
 *     def hostNativeAtomicSupported(self, int hostNativeAtomicSupported):
 *         self._pvt_ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9582
 *     def hostNativeAtomicSupported(self, int hostNativeAtomicSupported):
 *         self._pvt_ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def pageableMemoryAccess(self):
 *         return self._pvt_ptr[0].pageableMemoryAccess
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9584
 *     @property
 *     def pageableMemoryAccess(self):
 *         return self._pvt_ptr[0].pageableMemoryAccess             # <<<<<<<<<<<<<<
 *     @pageableMemoryAccess.setter
 *     def pageableMemoryAccess(self, int pageableMemoryAccess):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).pageableMemoryAccess); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9582
 *     def hostNativeAtomicSupported(self, int hostNativeAtomicSupported):
 *         self._pvt_ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def pageableMemoryAccess(self):
 *         return self._pvt_ptr[0].pageableMemoryAccess
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pageableMemoryAccess.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9585
 *     def pageableMemoryAccess(self):
 *         return self._pvt_ptr[0].pageableMemoryAccess
 *     @pageableMemoryAccess.setter             # <<<<<<<<<<<<<<
 *     def pageableMemoryAccess(self, int pageableMemoryAccess):
 *         self._pvt_ptr[0].pageableMemoryAccess = pageableMemoryAccess
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pageableMemoryAccess); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pageableMemoryAccess) {
  int __pyx_v_pageableMemoryAccess;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pageableMemoryAccess); {
    __pyx_v_pageableMemoryAccess = __Pyx_PyLong_As_int(__pyx_arg_pageableMemoryAccess); if (unlikely((__pyx_v_pageableMemoryAccess == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9586, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pageableMemoryAccess.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pageableMemoryAccess));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pageableMemoryAccess) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9587
 *     @pageableMemoryAccess.setter
 *     def pageableMemoryAccess(self, int pageableMemoryAccess):
 *         self._pvt_ptr[0].pageableMemoryAccess = pageableMemoryAccess             # <<<<<<<<<<<<<<
 *     @property
 *     def concurrentManagedAccess(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pageableMemoryAccess = __pyx_v_pageableMemoryAccess;

  /* "cuda/bindings/runtime.pyx":9585
 *     def pageableMemoryAccess(self):
 *         return self._pvt_ptr[0].pageableMemoryAccess
 *     @pageableMemoryAccess.setter             # <<<<<<<<<<<<<<
 *     def pageableMemoryAccess(self, int pageableMemoryAccess):
 *         self._pvt_ptr[0].pageableMemoryAccess = pageableMemoryAccess
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9588
 *     def pageableMemoryAccess(self, int pageableMemoryAccess):
 *         self._pvt_ptr[0].pageableMemoryAccess = pageableMemoryAccess
 *     @property             # <<<<<<<<<<<<<<
 *     def concurrentManagedAccess(self):
 *         return self._pvt_ptr[0].concurrentManagedAccess
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9590
 *     @property
 *     def concurrentManagedAccess(self):
 *         return self._pvt_ptr[0].concurrentManagedAccess             # <<<<<<<<<<<<<<
 *     @concurrentManagedAccess.setter
 *     def concurrentManagedAccess(self, int concurrentManagedAccess):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).concurrentManagedAccess); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9588
 *     def pageableMemoryAccess(self, int pageableMemoryAccess):
 *         self._pvt_ptr[0].pageableMemoryAccess = pageableMemoryAccess
 *     @property             # <<<<<<<<<<<<<<
 *     def concurrentManagedAccess(self):
 *         return self._pvt_ptr[0].concurrentManagedAccess
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.concurrentManagedAccess.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9591
 *     def concurrentManagedAccess(self):
 *         return self._pvt_ptr[0].concurrentManagedAccess
 *     @concurrentManagedAccess.setter             # <<<<<<<<<<<<<<
 *     def concurrentManagedAccess(self, int concurrentManagedAccess):
 *         self._pvt_ptr[0].concurrentManagedAccess = concurrentManagedAccess
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_concurrentManagedAccess); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_concurrentManagedAccess) {
  int __pyx_v_concurrentManagedAccess;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_concurrentManagedAccess); {
    __pyx_v_concurrentManagedAccess = __Pyx_PyLong_As_int(__pyx_arg_concurrentManagedAccess); if (unlikely((__pyx_v_concurrentManagedAccess == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9592, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.concurrentManagedAccess.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_concurrentManagedAccess));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_concurrentManagedAccess) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9593
 *     @concurrentManagedAccess.setter
 *     def concurrentManagedAccess(self, int concurrentManagedAccess):
 *         self._pvt_ptr[0].concurrentManagedAccess = concurrentManagedAccess             # <<<<<<<<<<<<<<
 *     @property
 *     def computePreemptionSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).concurrentManagedAccess = __pyx_v_concurrentManagedAccess;

  /* "cuda/bindings/runtime.pyx":9591
 *     def concurrentManagedAccess(self):
 *         return self._pvt_ptr[0].concurrentManagedAccess
 *     @concurrentManagedAccess.setter             # <<<<<<<<<<<<<<
 *     def concurrentManagedAccess(self, int concurrentManagedAccess):
 *         self._pvt_ptr[0].concurrentManagedAccess = concurrentManagedAccess
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9594
 *     def concurrentManagedAccess(self, int concurrentManagedAccess):
 *         self._pvt_ptr[0].concurrentManagedAccess = concurrentManagedAccess
 *     @property             # <<<<<<<<<<<<<<
 *     def computePreemptionSupported(self):
 *         return self._pvt_ptr[0].computePreemptionSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9596
 *     @property
 *     def computePreemptionSupported(self):
 *         return self._pvt_ptr[0].computePreemptionSupported             # <<<<<<<<<<<<<<
 *     @computePreemptionSupported.setter
 *     def computePreemptionSupported(self, int computePreemptionSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).computePreemptionSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9594
 *     def concurrentManagedAccess(self, int concurrentManagedAccess):
 *         self._pvt_ptr[0].concurrentManagedAccess = concurrentManagedAccess
 *     @property             # <<<<<<<<<<<<<<
 *     def computePreemptionSupported(self):
 *         return self._pvt_ptr[0].computePreemptionSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.computePreemptionSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9597
 *     def computePreemptionSupported(self):
 *         return self._pvt_ptr[0].computePreemptionSupported
 *     @computePreemptionSupported.setter             # <<<<<<<<<<<<<<
 *     def computePreemptionSupported(self, int computePreemptionSupported):
 *         self._pvt_ptr[0].computePreemptionSupported = computePreemptionSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_computePreemptionSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_computePreemptionSupported) {
  int __pyx_v_computePreemptionSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_computePreemptionSupported); {
    __pyx_v_computePreemptionSupported = __Pyx_PyLong_As_int(__pyx_arg_computePreemptionSupported); if (unlikely((__pyx_v_computePreemptionSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9598, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.computePreemptionSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_computePreemptionSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_computePreemptionSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9599
 *     @computePreemptionSupported.setter
 *     def computePreemptionSupported(self, int computePreemptionSupported):
 *         self._pvt_ptr[0].computePreemptionSupported = computePreemptionSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def canUseHostPointerForRegisteredMem(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).computePreemptionSupported = __pyx_v_computePreemptionSupported;

  /* "cuda/bindings/runtime.pyx":9597
 *     def computePreemptionSupported(self):
 *         return self._pvt_ptr[0].computePreemptionSupported
 *     @computePreemptionSupported.setter             # <<<<<<<<<<<<<<
 *     def computePreemptionSupported(self, int computePreemptionSupported):
 *         self._pvt_ptr[0].computePreemptionSupported = computePreemptionSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9600
 *     def computePreemptionSupported(self, int computePreemptionSupported):
 *         self._pvt_ptr[0].computePreemptionSupported = computePreemptionSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def canUseHostPointerForRegisteredMem(self):
 *         return self._pvt_ptr[0].canUseHostPointerForRegisteredMem
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9602
 *     @property
 *     def canUseHostPointerForRegisteredMem(self):
 *         return self._pvt_ptr[0].canUseHostPointerForRegisteredMem             # <<<<<<<<<<<<<<
 *     @canUseHostPointerForRegisteredMem.setter
 *     def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).canUseHostPointerForRegisteredMem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9600
 *     def computePreemptionSupported(self, int computePreemptionSupported):
 *         self._pvt_ptr[0].computePreemptionSupported = computePreemptionSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def canUseHostPointerForRegisteredMem(self):
 *         return self._pvt_ptr[0].canUseHostPointerForRegisteredMem
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.canUseHostPointerForRegisteredMem.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9603
 *     def canUseHostPointerForRegisteredMem(self):
 *         return self._pvt_ptr[0].canUseHostPointerForRegisteredMem
 *     @canUseHostPointerForRegisteredMem.setter             # <<<<<<<<<<<<<<
 *     def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem):
 *         self._pvt_ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_canUseHostPointerForRegisteredMem); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_canUseHostPointerForRegisteredMem) {
  int __pyx_v_canUseHostPointerForRegisteredMem;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_canUseHostPointerForRegisteredMem); {
    __pyx_v_canUseHostPointerForRegisteredMem = __Pyx_PyLong_As_int(__pyx_arg_canUseHostPointerForRegisteredMem); if (unlikely((__pyx_v_canUseHostPointerForRegisteredMem == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9604, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.canUseHostPointerForRegisteredMem.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_canUseHostPointerForRegisteredMem));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_canUseHostPointerForRegisteredMem) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9605
 *     @canUseHostPointerForRegisteredMem.setter
 *     def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem):
 *         self._pvt_ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem             # <<<<<<<<<<<<<<
 *     @property
 *     def cooperativeLaunch(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).canUseHostPointerForRegisteredMem = __pyx_v_canUseHostPointerForRegisteredMem;

  /* "cuda/bindings/runtime.pyx":9603
 *     def canUseHostPointerForRegisteredMem(self):
 *         return self._pvt_ptr[0].canUseHostPointerForRegisteredMem
 *     @canUseHostPointerForRegisteredMem.setter             # <<<<<<<<<<<<<<
 *     def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem):
 *         self._pvt_ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9606
 *     def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem):
 *         self._pvt_ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem
 *     @property             # <<<<<<<<<<<<<<
 *     def cooperativeLaunch(self):
 *         return self._pvt_ptr[0].cooperativeLaunch
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9608
 *     @property
 *     def cooperativeLaunch(self):
 *         return self._pvt_ptr[0].cooperativeLaunch             # <<<<<<<<<<<<<<
 *     @cooperativeLaunch.setter
 *     def cooperativeLaunch(self, int cooperativeLaunch):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).cooperativeLaunch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9606
 *     def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem):
 *         self._pvt_ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem
 *     @property             # <<<<<<<<<<<<<<
 *     def cooperativeLaunch(self):
 *         return self._pvt_ptr[0].cooperativeLaunch
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.cooperativeLaunch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9609
 *     def cooperativeLaunch(self):
 *         return self._pvt_ptr[0].cooperativeLaunch
 *     @cooperativeLaunch.setter             # <<<<<<<<<<<<<<
 *     def cooperativeLaunch(self, int cooperativeLaunch):
 *         self._pvt_ptr[0].cooperativeLaunch = cooperativeLaunch
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cooperativeLaunch); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cooperativeLaunch) {
  int __pyx_v_cooperativeLaunch;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_cooperativeLaunch); {
    __pyx_v_cooperativeLaunch = __Pyx_PyLong_As_int(__pyx_arg_cooperativeLaunch); if (unlikely((__pyx_v_cooperativeLaunch == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9610, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.cooperativeLaunch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_cooperativeLaunch));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_cooperativeLaunch) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9611
 *     @cooperativeLaunch.setter
 *     def cooperativeLaunch(self, int cooperativeLaunch):
 *         self._pvt_ptr[0].cooperativeLaunch = cooperativeLaunch             # <<<<<<<<<<<<<<
 *     @property
 *     def sharedMemPerBlockOptin(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).cooperativeLaunch = __pyx_v_cooperativeLaunch;

  /* "cuda/bindings/runtime.pyx":9609
 *     def cooperativeLaunch(self):
 *         return self._pvt_ptr[0].cooperativeLaunch
 *     @cooperativeLaunch.setter             # <<<<<<<<<<<<<<
 *     def cooperativeLaunch(self, int cooperativeLaunch):
 *         self._pvt_ptr[0].cooperativeLaunch = cooperativeLaunch
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9612
 *     def cooperativeLaunch(self, int cooperativeLaunch):
 *         self._pvt_ptr[0].cooperativeLaunch = cooperativeLaunch
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemPerBlockOptin(self):
 *         return self._pvt_ptr[0].sharedMemPerBlockOptin
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9614
 *     @property
 *     def sharedMemPerBlockOptin(self):
 *         return self._pvt_ptr[0].sharedMemPerBlockOptin             # <<<<<<<<<<<<<<
 *     @sharedMemPerBlockOptin.setter
 *     def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).sharedMemPerBlockOptin); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9612
 *     def cooperativeLaunch(self, int cooperativeLaunch):
 *         self._pvt_ptr[0].cooperativeLaunch = cooperativeLaunch
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemPerBlockOptin(self):
 *         return self._pvt_ptr[0].sharedMemPerBlockOptin
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.sharedMemPerBlockOptin.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9615
 *     def sharedMemPerBlockOptin(self):
 *         return self._pvt_ptr[0].sharedMemPerBlockOptin
 *     @sharedMemPerBlockOptin.setter             # <<<<<<<<<<<<<<
 *     def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin):
 *         self._pvt_ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerBlockOptin); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemPerBlockOptin) {
  size_t __pyx_v_sharedMemPerBlockOptin;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sharedMemPerBlockOptin); {
    __pyx_v_sharedMemPerBlockOptin = __Pyx_PyLong_As_size_t(__pyx_arg_sharedMemPerBlockOptin); if (unlikely((__pyx_v_sharedMemPerBlockOptin == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9616, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.sharedMemPerBlockOptin.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_sharedMemPerBlockOptin));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_sharedMemPerBlockOptin) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9617
 *     @sharedMemPerBlockOptin.setter
 *     def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin):
 *         self._pvt_ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin             # <<<<<<<<<<<<<<
 *     @property
 *     def pageableMemoryAccessUsesHostPageTables(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sharedMemPerBlockOptin = __pyx_v_sharedMemPerBlockOptin;

  /* "cuda/bindings/runtime.pyx":9615
 *     def sharedMemPerBlockOptin(self):
 *         return self._pvt_ptr[0].sharedMemPerBlockOptin
 *     @sharedMemPerBlockOptin.setter             # <<<<<<<<<<<<<<
 *     def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin):
 *         self._pvt_ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9618
 *     def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin):
 *         self._pvt_ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin
 *     @property             # <<<<<<<<<<<<<<
 *     def pageableMemoryAccessUsesHostPageTables(self):
 *         return self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9620
 *     @property
 *     def pageableMemoryAccessUsesHostPageTables(self):
 *         return self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables             # <<<<<<<<<<<<<<
 *     @pageableMemoryAccessUsesHostPageTables.setter
 *     def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).pageableMemoryAccessUsesHostPageTables); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9618
 *     def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin):
 *         self._pvt_ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin
 *     @property             # <<<<<<<<<<<<<<
 *     def pageableMemoryAccessUsesHostPageTables(self):
 *         return self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pageableMemoryAccessUsesHostPageTables.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9621
 *     def pageableMemoryAccessUsesHostPageTables(self):
 *         return self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables
 *     @pageableMemoryAccessUsesHostPageTables.setter             # <<<<<<<<<<<<<<
 *     def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables):
 *         self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pageableMemoryAccessUsesHostPageTables); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pageableMemoryAccessUsesHostPageTables) {
  int __pyx_v_pageableMemoryAccessUsesHostPageTables;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pageableMemoryAccessUsesHostPageTables); {
    __pyx_v_pageableMemoryAccessUsesHostPageTables = __Pyx_PyLong_As_int(__pyx_arg_pageableMemoryAccessUsesHostPageTables); if (unlikely((__pyx_v_pageableMemoryAccessUsesHostPageTables == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9622, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.pageableMemoryAccessUsesHostPageTables.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_pageableMemoryAccessUsesHostPageTables));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_pageableMemoryAccessUsesHostPageTables) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9623
 *     @pageableMemoryAccessUsesHostPageTables.setter
 *     def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables):
 *         self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables             # <<<<<<<<<<<<<<
 *     @property
 *     def directManagedMemAccessFromHost(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pageableMemoryAccessUsesHostPageTables = __pyx_v_pageableMemoryAccessUsesHostPageTables;

  /* "cuda/bindings/runtime.pyx":9621
 *     def pageableMemoryAccessUsesHostPageTables(self):
 *         return self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables
 *     @pageableMemoryAccessUsesHostPageTables.setter             # <<<<<<<<<<<<<<
 *     def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables):
 *         self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9624
 *     def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables):
 *         self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables
 *     @property             # <<<<<<<<<<<<<<
 *     def directManagedMemAccessFromHost(self):
 *         return self._pvt_ptr[0].directManagedMemAccessFromHost
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9626
 *     @property
 *     def directManagedMemAccessFromHost(self):
 *         return self._pvt_ptr[0].directManagedMemAccessFromHost             # <<<<<<<<<<<<<<
 *     @directManagedMemAccessFromHost.setter
 *     def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).directManagedMemAccessFromHost); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9624
 *     def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables):
 *         self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables
 *     @property             # <<<<<<<<<<<<<<
 *     def directManagedMemAccessFromHost(self):
 *         return self._pvt_ptr[0].directManagedMemAccessFromHost
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.directManagedMemAccessFromHost.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9627
 *     def directManagedMemAccessFromHost(self):
 *         return self._pvt_ptr[0].directManagedMemAccessFromHost
 *     @directManagedMemAccessFromHost.setter             # <<<<<<<<<<<<<<
 *     def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost):
 *         self._pvt_ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_directManagedMemAccessFromHost); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_directManagedMemAccessFromHost) {
  int __pyx_v_directManagedMemAccessFromHost;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_directManagedMemAccessFromHost); {
    __pyx_v_directManagedMemAccessFromHost = __Pyx_PyLong_As_int(__pyx_arg_directManagedMemAccessFromHost); if (unlikely((__pyx_v_directManagedMemAccessFromHost == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9628, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.directManagedMemAccessFromHost.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_directManagedMemAccessFromHost));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_directManagedMemAccessFromHost) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9629
 *     @directManagedMemAccessFromHost.setter
 *     def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost):
 *         self._pvt_ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost             # <<<<<<<<<<<<<<
 *     @property
 *     def maxBlocksPerMultiProcessor(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).directManagedMemAccessFromHost = __pyx_v_directManagedMemAccessFromHost;

  /* "cuda/bindings/runtime.pyx":9627
 *     def directManagedMemAccessFromHost(self):
 *         return self._pvt_ptr[0].directManagedMemAccessFromHost
 *     @directManagedMemAccessFromHost.setter             # <<<<<<<<<<<<<<
 *     def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost):
 *         self._pvt_ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9630
 *     def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost):
 *         self._pvt_ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost
 *     @property             # <<<<<<<<<<<<<<
 *     def maxBlocksPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxBlocksPerMultiProcessor
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9632
 *     @property
 *     def maxBlocksPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxBlocksPerMultiProcessor             # <<<<<<<<<<<<<<
 *     @maxBlocksPerMultiProcessor.setter
 *     def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).maxBlocksPerMultiProcessor); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9630
 *     def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost):
 *         self._pvt_ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost
 *     @property             # <<<<<<<<<<<<<<
 *     def maxBlocksPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxBlocksPerMultiProcessor
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxBlocksPerMultiProcessor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9633
 *     def maxBlocksPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxBlocksPerMultiProcessor
 *     @maxBlocksPerMultiProcessor.setter             # <<<<<<<<<<<<<<
 *     def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor):
 *         self._pvt_ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxBlocksPerMultiProcessor); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxBlocksPerMultiProcessor) {
  int __pyx_v_maxBlocksPerMultiProcessor;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxBlocksPerMultiProcessor); {
    __pyx_v_maxBlocksPerMultiProcessor = __Pyx_PyLong_As_int(__pyx_arg_maxBlocksPerMultiProcessor); if (unlikely((__pyx_v_maxBlocksPerMultiProcessor == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9634, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.maxBlocksPerMultiProcessor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_maxBlocksPerMultiProcessor));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_maxBlocksPerMultiProcessor) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9635
 *     @maxBlocksPerMultiProcessor.setter
 *     def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor):
 *         self._pvt_ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor             # <<<<<<<<<<<<<<
 *     @property
 *     def accessPolicyMaxWindowSize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxBlocksPerMultiProcessor = __pyx_v_maxBlocksPerMultiProcessor;

  /* "cuda/bindings/runtime.pyx":9633
 *     def maxBlocksPerMultiProcessor(self):
 *         return self._pvt_ptr[0].maxBlocksPerMultiProcessor
 *     @maxBlocksPerMultiProcessor.setter             # <<<<<<<<<<<<<<
 *     def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor):
 *         self._pvt_ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9636
 *     def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor):
 *         self._pvt_ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor
 *     @property             # <<<<<<<<<<<<<<
 *     def accessPolicyMaxWindowSize(self):
 *         return self._pvt_ptr[0].accessPolicyMaxWindowSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9638
 *     @property
 *     def accessPolicyMaxWindowSize(self):
 *         return self._pvt_ptr[0].accessPolicyMaxWindowSize             # <<<<<<<<<<<<<<
 *     @accessPolicyMaxWindowSize.setter
 *     def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).accessPolicyMaxWindowSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9636
 *     def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor):
 *         self._pvt_ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor
 *     @property             # <<<<<<<<<<<<<<
 *     def accessPolicyMaxWindowSize(self):
 *         return self._pvt_ptr[0].accessPolicyMaxWindowSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.accessPolicyMaxWindowSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9639
 *     def accessPolicyMaxWindowSize(self):
 *         return self._pvt_ptr[0].accessPolicyMaxWindowSize
 *     @accessPolicyMaxWindowSize.setter             # <<<<<<<<<<<<<<
 *     def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize):
 *         self._pvt_ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessPolicyMaxWindowSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_accessPolicyMaxWindowSize) {
  int __pyx_v_accessPolicyMaxWindowSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_accessPolicyMaxWindowSize); {
    __pyx_v_accessPolicyMaxWindowSize = __Pyx_PyLong_As_int(__pyx_arg_accessPolicyMaxWindowSize); if (unlikely((__pyx_v_accessPolicyMaxWindowSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9640, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.accessPolicyMaxWindowSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_accessPolicyMaxWindowSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_accessPolicyMaxWindowSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9641
 *     @accessPolicyMaxWindowSize.setter
 *     def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize):
 *         self._pvt_ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize             # <<<<<<<<<<<<<<
 *     @property
 *     def reservedSharedMemPerBlock(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).accessPolicyMaxWindowSize = __pyx_v_accessPolicyMaxWindowSize;

  /* "cuda/bindings/runtime.pyx":9639
 *     def accessPolicyMaxWindowSize(self):
 *         return self._pvt_ptr[0].accessPolicyMaxWindowSize
 *     @accessPolicyMaxWindowSize.setter             # <<<<<<<<<<<<<<
 *     def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize):
 *         self._pvt_ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9642
 *     def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize):
 *         self._pvt_ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize
 *     @property             # <<<<<<<<<<<<<<
 *     def reservedSharedMemPerBlock(self):
 *         return self._pvt_ptr[0].reservedSharedMemPerBlock
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9644
 *     @property
 *     def reservedSharedMemPerBlock(self):
 *         return self._pvt_ptr[0].reservedSharedMemPerBlock             # <<<<<<<<<<<<<<
 *     @reservedSharedMemPerBlock.setter
 *     def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).reservedSharedMemPerBlock); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9642
 *     def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize):
 *         self._pvt_ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize
 *     @property             # <<<<<<<<<<<<<<
 *     def reservedSharedMemPerBlock(self):
 *         return self._pvt_ptr[0].reservedSharedMemPerBlock
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.reservedSharedMemPerBlock.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9645
 *     def reservedSharedMemPerBlock(self):
 *         return self._pvt_ptr[0].reservedSharedMemPerBlock
 *     @reservedSharedMemPerBlock.setter             # <<<<<<<<<<<<<<
 *     def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock):
 *         self._pvt_ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reservedSharedMemPerBlock); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reservedSharedMemPerBlock) {
  size_t __pyx_v_reservedSharedMemPerBlock;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_reservedSharedMemPerBlock); {
    __pyx_v_reservedSharedMemPerBlock = __Pyx_PyLong_As_size_t(__pyx_arg_reservedSharedMemPerBlock); if (unlikely((__pyx_v_reservedSharedMemPerBlock == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9646, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.reservedSharedMemPerBlock.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((size_t)__pyx_v_reservedSharedMemPerBlock));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, size_t __pyx_v_reservedSharedMemPerBlock) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9647
 *     @reservedSharedMemPerBlock.setter
 *     def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock):
 *         self._pvt_ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock             # <<<<<<<<<<<<<<
 *     @property
 *     def hostRegisterSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).reservedSharedMemPerBlock = __pyx_v_reservedSharedMemPerBlock;

  /* "cuda/bindings/runtime.pyx":9645
 *     def reservedSharedMemPerBlock(self):
 *         return self._pvt_ptr[0].reservedSharedMemPerBlock
 *     @reservedSharedMemPerBlock.setter             # <<<<<<<<<<<<<<
 *     def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock):
 *         self._pvt_ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9648
 *     def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock):
 *         self._pvt_ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def hostRegisterSupported(self):
 *         return self._pvt_ptr[0].hostRegisterSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9650
 *     @property
 *     def hostRegisterSupported(self):
 *         return self._pvt_ptr[0].hostRegisterSupported             # <<<<<<<<<<<<<<
 *     @hostRegisterSupported.setter
 *     def hostRegisterSupported(self, int hostRegisterSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).hostRegisterSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9650, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9648
 *     def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock):
 *         self._pvt_ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock
 *     @property             # <<<<<<<<<<<<<<
 *     def hostRegisterSupported(self):
 *         return self._pvt_ptr[0].hostRegisterSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostRegisterSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9651
 *     def hostRegisterSupported(self):
 *         return self._pvt_ptr[0].hostRegisterSupported
 *     @hostRegisterSupported.setter             # <<<<<<<<<<<<<<
 *     def hostRegisterSupported(self, int hostRegisterSupported):
 *         self._pvt_ptr[0].hostRegisterSupported = hostRegisterSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostRegisterSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostRegisterSupported) {
  int __pyx_v_hostRegisterSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_hostRegisterSupported); {
    __pyx_v_hostRegisterSupported = __Pyx_PyLong_As_int(__pyx_arg_hostRegisterSupported); if (unlikely((__pyx_v_hostRegisterSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9652, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostRegisterSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_hostRegisterSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostRegisterSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9653
 *     @hostRegisterSupported.setter
 *     def hostRegisterSupported(self, int hostRegisterSupported):
 *         self._pvt_ptr[0].hostRegisterSupported = hostRegisterSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def sparseCudaArraySupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).hostRegisterSupported = __pyx_v_hostRegisterSupported;

  /* "cuda/bindings/runtime.pyx":9651
 *     def hostRegisterSupported(self):
 *         return self._pvt_ptr[0].hostRegisterSupported
 *     @hostRegisterSupported.setter             # <<<<<<<<<<<<<<
 *     def hostRegisterSupported(self, int hostRegisterSupported):
 *         self._pvt_ptr[0].hostRegisterSupported = hostRegisterSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9654
 *     def hostRegisterSupported(self, int hostRegisterSupported):
 *         self._pvt_ptr[0].hostRegisterSupported = hostRegisterSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def sparseCudaArraySupported(self):
 *         return self._pvt_ptr[0].sparseCudaArraySupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9656
 *     @property
 *     def sparseCudaArraySupported(self):
 *         return self._pvt_ptr[0].sparseCudaArraySupported             # <<<<<<<<<<<<<<
 *     @sparseCudaArraySupported.setter
 *     def sparseCudaArraySupported(self, int sparseCudaArraySupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).sparseCudaArraySupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9654
 *     def hostRegisterSupported(self, int hostRegisterSupported):
 *         self._pvt_ptr[0].hostRegisterSupported = hostRegisterSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def sparseCudaArraySupported(self):
 *         return self._pvt_ptr[0].sparseCudaArraySupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.sparseCudaArraySupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9657
 *     def sparseCudaArraySupported(self):
 *         return self._pvt_ptr[0].sparseCudaArraySupported
 *     @sparseCudaArraySupported.setter             # <<<<<<<<<<<<<<
 *     def sparseCudaArraySupported(self, int sparseCudaArraySupported):
 *         self._pvt_ptr[0].sparseCudaArraySupported = sparseCudaArraySupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sparseCudaArraySupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sparseCudaArraySupported) {
  int __pyx_v_sparseCudaArraySupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sparseCudaArraySupported); {
    __pyx_v_sparseCudaArraySupported = __Pyx_PyLong_As_int(__pyx_arg_sparseCudaArraySupported); if (unlikely((__pyx_v_sparseCudaArraySupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9658, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.sparseCudaArraySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_sparseCudaArraySupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_sparseCudaArraySupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9659
 *     @sparseCudaArraySupported.setter
 *     def sparseCudaArraySupported(self, int sparseCudaArraySupported):
 *         self._pvt_ptr[0].sparseCudaArraySupported = sparseCudaArraySupported             # <<<<<<<<<<<<<<
 *     @property
 *     def hostRegisterReadOnlySupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sparseCudaArraySupported = __pyx_v_sparseCudaArraySupported;

  /* "cuda/bindings/runtime.pyx":9657
 *     def sparseCudaArraySupported(self):
 *         return self._pvt_ptr[0].sparseCudaArraySupported
 *     @sparseCudaArraySupported.setter             # <<<<<<<<<<<<<<
 *     def sparseCudaArraySupported(self, int sparseCudaArraySupported):
 *         self._pvt_ptr[0].sparseCudaArraySupported = sparseCudaArraySupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9660
 *     def sparseCudaArraySupported(self, int sparseCudaArraySupported):
 *         self._pvt_ptr[0].sparseCudaArraySupported = sparseCudaArraySupported
 *     @property             # <<<<<<<<<<<<<<
 *     def hostRegisterReadOnlySupported(self):
 *         return self._pvt_ptr[0].hostRegisterReadOnlySupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9662
 *     @property
 *     def hostRegisterReadOnlySupported(self):
 *         return self._pvt_ptr[0].hostRegisterReadOnlySupported             # <<<<<<<<<<<<<<
 *     @hostRegisterReadOnlySupported.setter
 *     def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).hostRegisterReadOnlySupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9660
 *     def sparseCudaArraySupported(self, int sparseCudaArraySupported):
 *         self._pvt_ptr[0].sparseCudaArraySupported = sparseCudaArraySupported
 *     @property             # <<<<<<<<<<<<<<
 *     def hostRegisterReadOnlySupported(self):
 *         return self._pvt_ptr[0].hostRegisterReadOnlySupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostRegisterReadOnlySupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9663
 *     def hostRegisterReadOnlySupported(self):
 *         return self._pvt_ptr[0].hostRegisterReadOnlySupported
 *     @hostRegisterReadOnlySupported.setter             # <<<<<<<<<<<<<<
 *     def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported):
 *         self._pvt_ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostRegisterReadOnlySupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostRegisterReadOnlySupported) {
  int __pyx_v_hostRegisterReadOnlySupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_hostRegisterReadOnlySupported); {
    __pyx_v_hostRegisterReadOnlySupported = __Pyx_PyLong_As_int(__pyx_arg_hostRegisterReadOnlySupported); if (unlikely((__pyx_v_hostRegisterReadOnlySupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9664, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostRegisterReadOnlySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_hostRegisterReadOnlySupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostRegisterReadOnlySupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9665
 *     @hostRegisterReadOnlySupported.setter
 *     def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported):
 *         self._pvt_ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported             # <<<<<<<<<<<<<<
 *     @property
 *     def timelineSemaphoreInteropSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).hostRegisterReadOnlySupported = __pyx_v_hostRegisterReadOnlySupported;

  /* "cuda/bindings/runtime.pyx":9663
 *     def hostRegisterReadOnlySupported(self):
 *         return self._pvt_ptr[0].hostRegisterReadOnlySupported
 *     @hostRegisterReadOnlySupported.setter             # <<<<<<<<<<<<<<
 *     def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported):
 *         self._pvt_ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9666
 *     def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported):
 *         self._pvt_ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported
 *     @property             # <<<<<<<<<<<<<<
 *     def timelineSemaphoreInteropSupported(self):
 *         return self._pvt_ptr[0].timelineSemaphoreInteropSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9668
 *     @property
 *     def timelineSemaphoreInteropSupported(self):
 *         return self._pvt_ptr[0].timelineSemaphoreInteropSupported             # <<<<<<<<<<<<<<
 *     @timelineSemaphoreInteropSupported.setter
 *     def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).timelineSemaphoreInteropSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9668, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9666
 *     def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported):
 *         self._pvt_ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported
 *     @property             # <<<<<<<<<<<<<<
 *     def timelineSemaphoreInteropSupported(self):
 *         return self._pvt_ptr[0].timelineSemaphoreInteropSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.timelineSemaphoreInteropSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9669
 *     def timelineSemaphoreInteropSupported(self):
 *         return self._pvt_ptr[0].timelineSemaphoreInteropSupported
 *     @timelineSemaphoreInteropSupported.setter             # <<<<<<<<<<<<<<
 *     def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported):
 *         self._pvt_ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_timelineSemaphoreInteropSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_timelineSemaphoreInteropSupported) {
  int __pyx_v_timelineSemaphoreInteropSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_timelineSemaphoreInteropSupported); {
    __pyx_v_timelineSemaphoreInteropSupported = __Pyx_PyLong_As_int(__pyx_arg_timelineSemaphoreInteropSupported); if (unlikely((__pyx_v_timelineSemaphoreInteropSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9670, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.timelineSemaphoreInteropSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_timelineSemaphoreInteropSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_timelineSemaphoreInteropSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9671
 *     @timelineSemaphoreInteropSupported.setter
 *     def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported):
 *         self._pvt_ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def memoryPoolsSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).timelineSemaphoreInteropSupported = __pyx_v_timelineSemaphoreInteropSupported;

  /* "cuda/bindings/runtime.pyx":9669
 *     def timelineSemaphoreInteropSupported(self):
 *         return self._pvt_ptr[0].timelineSemaphoreInteropSupported
 *     @timelineSemaphoreInteropSupported.setter             # <<<<<<<<<<<<<<
 *     def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported):
 *         self._pvt_ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9672
 *     def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported):
 *         self._pvt_ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def memoryPoolsSupported(self):
 *         return self._pvt_ptr[0].memoryPoolsSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9674
 *     @property
 *     def memoryPoolsSupported(self):
 *         return self._pvt_ptr[0].memoryPoolsSupported             # <<<<<<<<<<<<<<
 *     @memoryPoolsSupported.setter
 *     def memoryPoolsSupported(self, int memoryPoolsSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).memoryPoolsSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9674, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9672
 *     def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported):
 *         self._pvt_ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def memoryPoolsSupported(self):
 *         return self._pvt_ptr[0].memoryPoolsSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.memoryPoolsSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9675
 *     def memoryPoolsSupported(self):
 *         return self._pvt_ptr[0].memoryPoolsSupported
 *     @memoryPoolsSupported.setter             # <<<<<<<<<<<<<<
 *     def memoryPoolsSupported(self, int memoryPoolsSupported):
 *         self._pvt_ptr[0].memoryPoolsSupported = memoryPoolsSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryPoolsSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryPoolsSupported) {
  int __pyx_v_memoryPoolsSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_memoryPoolsSupported); {
    __pyx_v_memoryPoolsSupported = __Pyx_PyLong_As_int(__pyx_arg_memoryPoolsSupported); if (unlikely((__pyx_v_memoryPoolsSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9676, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.memoryPoolsSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_memoryPoolsSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_memoryPoolsSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9677
 *     @memoryPoolsSupported.setter
 *     def memoryPoolsSupported(self, int memoryPoolsSupported):
 *         self._pvt_ptr[0].memoryPoolsSupported = memoryPoolsSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def gpuDirectRDMASupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).memoryPoolsSupported = __pyx_v_memoryPoolsSupported;

  /* "cuda/bindings/runtime.pyx":9675
 *     def memoryPoolsSupported(self):
 *         return self._pvt_ptr[0].memoryPoolsSupported
 *     @memoryPoolsSupported.setter             # <<<<<<<<<<<<<<
 *     def memoryPoolsSupported(self, int memoryPoolsSupported):
 *         self._pvt_ptr[0].memoryPoolsSupported = memoryPoolsSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9678
 *     def memoryPoolsSupported(self, int memoryPoolsSupported):
 *         self._pvt_ptr[0].memoryPoolsSupported = memoryPoolsSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMASupported(self):
 *         return self._pvt_ptr[0].gpuDirectRDMASupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9680
 *     @property
 *     def gpuDirectRDMASupported(self):
 *         return self._pvt_ptr[0].gpuDirectRDMASupported             # <<<<<<<<<<<<<<
 *     @gpuDirectRDMASupported.setter
 *     def gpuDirectRDMASupported(self, int gpuDirectRDMASupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).gpuDirectRDMASupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9678
 *     def memoryPoolsSupported(self, int memoryPoolsSupported):
 *         self._pvt_ptr[0].memoryPoolsSupported = memoryPoolsSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMASupported(self):
 *         return self._pvt_ptr[0].gpuDirectRDMASupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuDirectRDMASupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9681
 *     def gpuDirectRDMASupported(self):
 *         return self._pvt_ptr[0].gpuDirectRDMASupported
 *     @gpuDirectRDMASupported.setter             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMASupported(self, int gpuDirectRDMASupported):
 *         self._pvt_ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMASupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMASupported) {
  int __pyx_v_gpuDirectRDMASupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_gpuDirectRDMASupported); {
    __pyx_v_gpuDirectRDMASupported = __Pyx_PyLong_As_int(__pyx_arg_gpuDirectRDMASupported); if (unlikely((__pyx_v_gpuDirectRDMASupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9682, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuDirectRDMASupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_gpuDirectRDMASupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_gpuDirectRDMASupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9683
 *     @gpuDirectRDMASupported.setter
 *     def gpuDirectRDMASupported(self, int gpuDirectRDMASupported):
 *         self._pvt_ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported             # <<<<<<<<<<<<<<
 *     @property
 *     def gpuDirectRDMAFlushWritesOptions(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).gpuDirectRDMASupported = __pyx_v_gpuDirectRDMASupported;

  /* "cuda/bindings/runtime.pyx":9681
 *     def gpuDirectRDMASupported(self):
 *         return self._pvt_ptr[0].gpuDirectRDMASupported
 *     @gpuDirectRDMASupported.setter             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMASupported(self, int gpuDirectRDMASupported):
 *         self._pvt_ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9684
 *     def gpuDirectRDMASupported(self, int gpuDirectRDMASupported):
 *         self._pvt_ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMAFlushWritesOptions(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9686
 *     @property
 *     def gpuDirectRDMAFlushWritesOptions(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions             # <<<<<<<<<<<<<<
 *     @gpuDirectRDMAFlushWritesOptions.setter
 *     def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).gpuDirectRDMAFlushWritesOptions); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9684
 *     def gpuDirectRDMASupported(self, int gpuDirectRDMASupported):
 *         self._pvt_ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMAFlushWritesOptions(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuDirectRDMAFlushWritesOptions.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9687
 *     def gpuDirectRDMAFlushWritesOptions(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions
 *     @gpuDirectRDMAFlushWritesOptions.setter             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions):
 *         self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMAFlushWritesOptions); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMAFlushWritesOptions) {
  unsigned int __pyx_v_gpuDirectRDMAFlushWritesOptions;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_gpuDirectRDMAFlushWritesOptions); {
    __pyx_v_gpuDirectRDMAFlushWritesOptions = __Pyx_PyLong_As_unsigned_int(__pyx_arg_gpuDirectRDMAFlushWritesOptions); if (unlikely((__pyx_v_gpuDirectRDMAFlushWritesOptions == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9688, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuDirectRDMAFlushWritesOptions.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((unsigned int)__pyx_v_gpuDirectRDMAFlushWritesOptions));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_gpuDirectRDMAFlushWritesOptions) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9689
 *     @gpuDirectRDMAFlushWritesOptions.setter
 *     def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions):
 *         self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions             # <<<<<<<<<<<<<<
 *     @property
 *     def gpuDirectRDMAWritesOrdering(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).gpuDirectRDMAFlushWritesOptions = __pyx_v_gpuDirectRDMAFlushWritesOptions;

  /* "cuda/bindings/runtime.pyx":9687
 *     def gpuDirectRDMAFlushWritesOptions(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions
 *     @gpuDirectRDMAFlushWritesOptions.setter             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions):
 *         self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9690
 *     def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions):
 *         self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMAWritesOrdering(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAWritesOrdering
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9692
 *     @property
 *     def gpuDirectRDMAWritesOrdering(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAWritesOrdering             # <<<<<<<<<<<<<<
 *     @gpuDirectRDMAWritesOrdering.setter
 *     def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).gpuDirectRDMAWritesOrdering); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9690
 *     def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions):
 *         self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMAWritesOrdering(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAWritesOrdering
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuDirectRDMAWritesOrdering.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9693
 *     def gpuDirectRDMAWritesOrdering(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAWritesOrdering
 *     @gpuDirectRDMAWritesOrdering.setter             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering):
 *         self._pvt_ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMAWritesOrdering); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuDirectRDMAWritesOrdering) {
  int __pyx_v_gpuDirectRDMAWritesOrdering;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_gpuDirectRDMAWritesOrdering); {
    __pyx_v_gpuDirectRDMAWritesOrdering = __Pyx_PyLong_As_int(__pyx_arg_gpuDirectRDMAWritesOrdering); if (unlikely((__pyx_v_gpuDirectRDMAWritesOrdering == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9694, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuDirectRDMAWritesOrdering.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_gpuDirectRDMAWritesOrdering));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_gpuDirectRDMAWritesOrdering) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9695
 *     @gpuDirectRDMAWritesOrdering.setter
 *     def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering):
 *         self._pvt_ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering             # <<<<<<<<<<<<<<
 *     @property
 *     def memoryPoolSupportedHandleTypes(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).gpuDirectRDMAWritesOrdering = __pyx_v_gpuDirectRDMAWritesOrdering;

  /* "cuda/bindings/runtime.pyx":9693
 *     def gpuDirectRDMAWritesOrdering(self):
 *         return self._pvt_ptr[0].gpuDirectRDMAWritesOrdering
 *     @gpuDirectRDMAWritesOrdering.setter             # <<<<<<<<<<<<<<
 *     def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering):
 *         self._pvt_ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9696
 *     def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering):
 *         self._pvt_ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering
 *     @property             # <<<<<<<<<<<<<<
 *     def memoryPoolSupportedHandleTypes(self):
 *         return self._pvt_ptr[0].memoryPoolSupportedHandleTypes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9698
 *     @property
 *     def memoryPoolSupportedHandleTypes(self):
 *         return self._pvt_ptr[0].memoryPoolSupportedHandleTypes             # <<<<<<<<<<<<<<
 *     @memoryPoolSupportedHandleTypes.setter
 *     def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).memoryPoolSupportedHandleTypes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9696
 *     def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering):
 *         self._pvt_ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering
 *     @property             # <<<<<<<<<<<<<<
 *     def memoryPoolSupportedHandleTypes(self):
 *         return self._pvt_ptr[0].memoryPoolSupportedHandleTypes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.memoryPoolSupportedHandleTypes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9699
 *     def memoryPoolSupportedHandleTypes(self):
 *         return self._pvt_ptr[0].memoryPoolSupportedHandleTypes
 *     @memoryPoolSupportedHandleTypes.setter             # <<<<<<<<<<<<<<
 *     def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes):
 *         self._pvt_ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryPoolSupportedHandleTypes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_memoryPoolSupportedHandleTypes) {
  unsigned int __pyx_v_memoryPoolSupportedHandleTypes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_memoryPoolSupportedHandleTypes); {
    __pyx_v_memoryPoolSupportedHandleTypes = __Pyx_PyLong_As_unsigned_int(__pyx_arg_memoryPoolSupportedHandleTypes); if (unlikely((__pyx_v_memoryPoolSupportedHandleTypes == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9700, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.memoryPoolSupportedHandleTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((unsigned int)__pyx_v_memoryPoolSupportedHandleTypes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_memoryPoolSupportedHandleTypes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9701
 *     @memoryPoolSupportedHandleTypes.setter
 *     def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes):
 *         self._pvt_ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes             # <<<<<<<<<<<<<<
 *     @property
 *     def deferredMappingCudaArraySupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).memoryPoolSupportedHandleTypes = __pyx_v_memoryPoolSupportedHandleTypes;

  /* "cuda/bindings/runtime.pyx":9699
 *     def memoryPoolSupportedHandleTypes(self):
 *         return self._pvt_ptr[0].memoryPoolSupportedHandleTypes
 *     @memoryPoolSupportedHandleTypes.setter             # <<<<<<<<<<<<<<
 *     def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes):
 *         self._pvt_ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9702
 *     def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes):
 *         self._pvt_ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes
 *     @property             # <<<<<<<<<<<<<<
 *     def deferredMappingCudaArraySupported(self):
 *         return self._pvt_ptr[0].deferredMappingCudaArraySupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9704
 *     @property
 *     def deferredMappingCudaArraySupported(self):
 *         return self._pvt_ptr[0].deferredMappingCudaArraySupported             # <<<<<<<<<<<<<<
 *     @deferredMappingCudaArraySupported.setter
 *     def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).deferredMappingCudaArraySupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9702
 *     def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes):
 *         self._pvt_ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes
 *     @property             # <<<<<<<<<<<<<<
 *     def deferredMappingCudaArraySupported(self):
 *         return self._pvt_ptr[0].deferredMappingCudaArraySupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.deferredMappingCudaArraySupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9705
 *     def deferredMappingCudaArraySupported(self):
 *         return self._pvt_ptr[0].deferredMappingCudaArraySupported
 *     @deferredMappingCudaArraySupported.setter             # <<<<<<<<<<<<<<
 *     def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported):
 *         self._pvt_ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deferredMappingCudaArraySupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deferredMappingCudaArraySupported) {
  int __pyx_v_deferredMappingCudaArraySupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_deferredMappingCudaArraySupported); {
    __pyx_v_deferredMappingCudaArraySupported = __Pyx_PyLong_As_int(__pyx_arg_deferredMappingCudaArraySupported); if (unlikely((__pyx_v_deferredMappingCudaArraySupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9706, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.deferredMappingCudaArraySupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_deferredMappingCudaArraySupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_deferredMappingCudaArraySupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9707
 *     @deferredMappingCudaArraySupported.setter
 *     def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported):
 *         self._pvt_ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported             # <<<<<<<<<<<<<<
 *     @property
 *     def ipcEventSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).deferredMappingCudaArraySupported = __pyx_v_deferredMappingCudaArraySupported;

  /* "cuda/bindings/runtime.pyx":9705
 *     def deferredMappingCudaArraySupported(self):
 *         return self._pvt_ptr[0].deferredMappingCudaArraySupported
 *     @deferredMappingCudaArraySupported.setter             # <<<<<<<<<<<<<<
 *     def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported):
 *         self._pvt_ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9708
 *     def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported):
 *         self._pvt_ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported
 *     @property             # <<<<<<<<<<<<<<
 *     def ipcEventSupported(self):
 *         return self._pvt_ptr[0].ipcEventSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9710
 *     @property
 *     def ipcEventSupported(self):
 *         return self._pvt_ptr[0].ipcEventSupported             # <<<<<<<<<<<<<<
 *     @ipcEventSupported.setter
 *     def ipcEventSupported(self, int ipcEventSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).ipcEventSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9708
 *     def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported):
 *         self._pvt_ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported
 *     @property             # <<<<<<<<<<<<<<
 *     def ipcEventSupported(self):
 *         return self._pvt_ptr[0].ipcEventSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.ipcEventSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9711
 *     def ipcEventSupported(self):
 *         return self._pvt_ptr[0].ipcEventSupported
 *     @ipcEventSupported.setter             # <<<<<<<<<<<<<<
 *     def ipcEventSupported(self, int ipcEventSupported):
 *         self._pvt_ptr[0].ipcEventSupported = ipcEventSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ipcEventSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_ipcEventSupported) {
  int __pyx_v_ipcEventSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_ipcEventSupported); {
    __pyx_v_ipcEventSupported = __Pyx_PyLong_As_int(__pyx_arg_ipcEventSupported); if (unlikely((__pyx_v_ipcEventSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9712, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.ipcEventSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_ipcEventSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_ipcEventSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9713
 *     @ipcEventSupported.setter
 *     def ipcEventSupported(self, int ipcEventSupported):
 *         self._pvt_ptr[0].ipcEventSupported = ipcEventSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def clusterLaunch(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).ipcEventSupported = __pyx_v_ipcEventSupported;

  /* "cuda/bindings/runtime.pyx":9711
 *     def ipcEventSupported(self):
 *         return self._pvt_ptr[0].ipcEventSupported
 *     @ipcEventSupported.setter             # <<<<<<<<<<<<<<
 *     def ipcEventSupported(self, int ipcEventSupported):
 *         self._pvt_ptr[0].ipcEventSupported = ipcEventSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9714
 *     def ipcEventSupported(self, int ipcEventSupported):
 *         self._pvt_ptr[0].ipcEventSupported = ipcEventSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterLaunch(self):
 *         return self._pvt_ptr[0].clusterLaunch
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9716
 *     @property
 *     def clusterLaunch(self):
 *         return self._pvt_ptr[0].clusterLaunch             # <<<<<<<<<<<<<<
 *     @clusterLaunch.setter
 *     def clusterLaunch(self, int clusterLaunch):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).clusterLaunch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9716, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9714
 *     def ipcEventSupported(self, int ipcEventSupported):
 *         self._pvt_ptr[0].ipcEventSupported = ipcEventSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterLaunch(self):
 *         return self._pvt_ptr[0].clusterLaunch
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.clusterLaunch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9717
 *     def clusterLaunch(self):
 *         return self._pvt_ptr[0].clusterLaunch
 *     @clusterLaunch.setter             # <<<<<<<<<<<<<<
 *     def clusterLaunch(self, int clusterLaunch):
 *         self._pvt_ptr[0].clusterLaunch = clusterLaunch
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterLaunch); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_clusterLaunch) {
  int __pyx_v_clusterLaunch;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_clusterLaunch); {
    __pyx_v_clusterLaunch = __Pyx_PyLong_As_int(__pyx_arg_clusterLaunch); if (unlikely((__pyx_v_clusterLaunch == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9718, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.clusterLaunch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_clusterLaunch));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_clusterLaunch) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9719
 *     @clusterLaunch.setter
 *     def clusterLaunch(self, int clusterLaunch):
 *         self._pvt_ptr[0].clusterLaunch = clusterLaunch             # <<<<<<<<<<<<<<
 *     @property
 *     def unifiedFunctionPointers(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).clusterLaunch = __pyx_v_clusterLaunch;

  /* "cuda/bindings/runtime.pyx":9717
 *     def clusterLaunch(self):
 *         return self._pvt_ptr[0].clusterLaunch
 *     @clusterLaunch.setter             # <<<<<<<<<<<<<<
 *     def clusterLaunch(self, int clusterLaunch):
 *         self._pvt_ptr[0].clusterLaunch = clusterLaunch
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9720
 *     def clusterLaunch(self, int clusterLaunch):
 *         self._pvt_ptr[0].clusterLaunch = clusterLaunch
 *     @property             # <<<<<<<<<<<<<<
 *     def unifiedFunctionPointers(self):
 *         return self._pvt_ptr[0].unifiedFunctionPointers
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9722
 *     @property
 *     def unifiedFunctionPointers(self):
 *         return self._pvt_ptr[0].unifiedFunctionPointers             # <<<<<<<<<<<<<<
 *     @unifiedFunctionPointers.setter
 *     def unifiedFunctionPointers(self, int unifiedFunctionPointers):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).unifiedFunctionPointers); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9722, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9720
 *     def clusterLaunch(self, int clusterLaunch):
 *         self._pvt_ptr[0].clusterLaunch = clusterLaunch
 *     @property             # <<<<<<<<<<<<<<
 *     def unifiedFunctionPointers(self):
 *         return self._pvt_ptr[0].unifiedFunctionPointers
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.unifiedFunctionPointers.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9723
 *     def unifiedFunctionPointers(self):
 *         return self._pvt_ptr[0].unifiedFunctionPointers
 *     @unifiedFunctionPointers.setter             # <<<<<<<<<<<<<<
 *     def unifiedFunctionPointers(self, int unifiedFunctionPointers):
 *         self._pvt_ptr[0].unifiedFunctionPointers = unifiedFunctionPointers
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_unifiedFunctionPointers); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_unifiedFunctionPointers) {
  int __pyx_v_unifiedFunctionPointers;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_unifiedFunctionPointers); {
    __pyx_v_unifiedFunctionPointers = __Pyx_PyLong_As_int(__pyx_arg_unifiedFunctionPointers); if (unlikely((__pyx_v_unifiedFunctionPointers == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9724, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.unifiedFunctionPointers.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_unifiedFunctionPointers));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_unifiedFunctionPointers) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9725
 *     @unifiedFunctionPointers.setter
 *     def unifiedFunctionPointers(self, int unifiedFunctionPointers):
 *         self._pvt_ptr[0].unifiedFunctionPointers = unifiedFunctionPointers             # <<<<<<<<<<<<<<
 *     @property
 *     def deviceNumaConfig(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).unifiedFunctionPointers = __pyx_v_unifiedFunctionPointers;

  /* "cuda/bindings/runtime.pyx":9723
 *     def unifiedFunctionPointers(self):
 *         return self._pvt_ptr[0].unifiedFunctionPointers
 *     @unifiedFunctionPointers.setter             # <<<<<<<<<<<<<<
 *     def unifiedFunctionPointers(self, int unifiedFunctionPointers):
 *         self._pvt_ptr[0].unifiedFunctionPointers = unifiedFunctionPointers
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9726
 *     def unifiedFunctionPointers(self, int unifiedFunctionPointers):
 *         self._pvt_ptr[0].unifiedFunctionPointers = unifiedFunctionPointers
 *     @property             # <<<<<<<<<<<<<<
 *     def deviceNumaConfig(self):
 *         return self._pvt_ptr[0].deviceNumaConfig
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9728
 *     @property
 *     def deviceNumaConfig(self):
 *         return self._pvt_ptr[0].deviceNumaConfig             # <<<<<<<<<<<<<<
 *     @deviceNumaConfig.setter
 *     def deviceNumaConfig(self, int deviceNumaConfig):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).deviceNumaConfig); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9726
 *     def unifiedFunctionPointers(self, int unifiedFunctionPointers):
 *         self._pvt_ptr[0].unifiedFunctionPointers = unifiedFunctionPointers
 *     @property             # <<<<<<<<<<<<<<
 *     def deviceNumaConfig(self):
 *         return self._pvt_ptr[0].deviceNumaConfig
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.deviceNumaConfig.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9729
 *     def deviceNumaConfig(self):
 *         return self._pvt_ptr[0].deviceNumaConfig
 *     @deviceNumaConfig.setter             # <<<<<<<<<<<<<<
 *     def deviceNumaConfig(self, int deviceNumaConfig):
 *         self._pvt_ptr[0].deviceNumaConfig = deviceNumaConfig
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceNumaConfig); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceNumaConfig) {
  int __pyx_v_deviceNumaConfig;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_deviceNumaConfig); {
    __pyx_v_deviceNumaConfig = __Pyx_PyLong_As_int(__pyx_arg_deviceNumaConfig); if (unlikely((__pyx_v_deviceNumaConfig == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9730, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.deviceNumaConfig.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_deviceNumaConfig));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_deviceNumaConfig) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9731
 *     @deviceNumaConfig.setter
 *     def deviceNumaConfig(self, int deviceNumaConfig):
 *         self._pvt_ptr[0].deviceNumaConfig = deviceNumaConfig             # <<<<<<<<<<<<<<
 *     @property
 *     def deviceNumaId(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).deviceNumaConfig = __pyx_v_deviceNumaConfig;

  /* "cuda/bindings/runtime.pyx":9729
 *     def deviceNumaConfig(self):
 *         return self._pvt_ptr[0].deviceNumaConfig
 *     @deviceNumaConfig.setter             # <<<<<<<<<<<<<<
 *     def deviceNumaConfig(self, int deviceNumaConfig):
 *         self._pvt_ptr[0].deviceNumaConfig = deviceNumaConfig
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9732
 *     def deviceNumaConfig(self, int deviceNumaConfig):
 *         self._pvt_ptr[0].deviceNumaConfig = deviceNumaConfig
 *     @property             # <<<<<<<<<<<<<<
 *     def deviceNumaId(self):
 *         return self._pvt_ptr[0].deviceNumaId
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9734
 *     @property
 *     def deviceNumaId(self):
 *         return self._pvt_ptr[0].deviceNumaId             # <<<<<<<<<<<<<<
 *     @deviceNumaId.setter
 *     def deviceNumaId(self, int deviceNumaId):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).deviceNumaId); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9732
 *     def deviceNumaConfig(self, int deviceNumaConfig):
 *         self._pvt_ptr[0].deviceNumaConfig = deviceNumaConfig
 *     @property             # <<<<<<<<<<<<<<
 *     def deviceNumaId(self):
 *         return self._pvt_ptr[0].deviceNumaId
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.deviceNumaId.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9735
 *     def deviceNumaId(self):
 *         return self._pvt_ptr[0].deviceNumaId
 *     @deviceNumaId.setter             # <<<<<<<<<<<<<<
 *     def deviceNumaId(self, int deviceNumaId):
 *         self._pvt_ptr[0].deviceNumaId = deviceNumaId
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceNumaId); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceNumaId) {
  int __pyx_v_deviceNumaId;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_deviceNumaId); {
    __pyx_v_deviceNumaId = __Pyx_PyLong_As_int(__pyx_arg_deviceNumaId); if (unlikely((__pyx_v_deviceNumaId == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9736, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.deviceNumaId.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_deviceNumaId));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_deviceNumaId) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9737
 *     @deviceNumaId.setter
 *     def deviceNumaId(self, int deviceNumaId):
 *         self._pvt_ptr[0].deviceNumaId = deviceNumaId             # <<<<<<<<<<<<<<
 *     @property
 *     def mpsEnabled(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).deviceNumaId = __pyx_v_deviceNumaId;

  /* "cuda/bindings/runtime.pyx":9735
 *     def deviceNumaId(self):
 *         return self._pvt_ptr[0].deviceNumaId
 *     @deviceNumaId.setter             # <<<<<<<<<<<<<<
 *     def deviceNumaId(self, int deviceNumaId):
 *         self._pvt_ptr[0].deviceNumaId = deviceNumaId
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9738
 *     def deviceNumaId(self, int deviceNumaId):
 *         self._pvt_ptr[0].deviceNumaId = deviceNumaId
 *     @property             # <<<<<<<<<<<<<<
 *     def mpsEnabled(self):
 *         return self._pvt_ptr[0].mpsEnabled
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9740
 *     @property
 *     def mpsEnabled(self):
 *         return self._pvt_ptr[0].mpsEnabled             # <<<<<<<<<<<<<<
 *     @mpsEnabled.setter
 *     def mpsEnabled(self, int mpsEnabled):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).mpsEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9738
 *     def deviceNumaId(self, int deviceNumaId):
 *         self._pvt_ptr[0].deviceNumaId = deviceNumaId
 *     @property             # <<<<<<<<<<<<<<
 *     def mpsEnabled(self):
 *         return self._pvt_ptr[0].mpsEnabled
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.mpsEnabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9741
 *     def mpsEnabled(self):
 *         return self._pvt_ptr[0].mpsEnabled
 *     @mpsEnabled.setter             # <<<<<<<<<<<<<<
 *     def mpsEnabled(self, int mpsEnabled):
 *         self._pvt_ptr[0].mpsEnabled = mpsEnabled
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_mpsEnabled); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_mpsEnabled) {
  int __pyx_v_mpsEnabled;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_mpsEnabled); {
    __pyx_v_mpsEnabled = __Pyx_PyLong_As_int(__pyx_arg_mpsEnabled); if (unlikely((__pyx_v_mpsEnabled == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9742, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.mpsEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_mpsEnabled));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_mpsEnabled) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9743
 *     @mpsEnabled.setter
 *     def mpsEnabled(self, int mpsEnabled):
 *         self._pvt_ptr[0].mpsEnabled = mpsEnabled             # <<<<<<<<<<<<<<
 *     @property
 *     def hostNumaId(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).mpsEnabled = __pyx_v_mpsEnabled;

  /* "cuda/bindings/runtime.pyx":9741
 *     def mpsEnabled(self):
 *         return self._pvt_ptr[0].mpsEnabled
 *     @mpsEnabled.setter             # <<<<<<<<<<<<<<
 *     def mpsEnabled(self, int mpsEnabled):
 *         self._pvt_ptr[0].mpsEnabled = mpsEnabled
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9744
 *     def mpsEnabled(self, int mpsEnabled):
 *         self._pvt_ptr[0].mpsEnabled = mpsEnabled
 *     @property             # <<<<<<<<<<<<<<
 *     def hostNumaId(self):
 *         return self._pvt_ptr[0].hostNumaId
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9746
 *     @property
 *     def hostNumaId(self):
 *         return self._pvt_ptr[0].hostNumaId             # <<<<<<<<<<<<<<
 *     @hostNumaId.setter
 *     def hostNumaId(self, int hostNumaId):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).hostNumaId); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9744
 *     def mpsEnabled(self, int mpsEnabled):
 *         self._pvt_ptr[0].mpsEnabled = mpsEnabled
 *     @property             # <<<<<<<<<<<<<<
 *     def hostNumaId(self):
 *         return self._pvt_ptr[0].hostNumaId
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostNumaId.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9747
 *     def hostNumaId(self):
 *         return self._pvt_ptr[0].hostNumaId
 *     @hostNumaId.setter             # <<<<<<<<<<<<<<
 *     def hostNumaId(self, int hostNumaId):
 *         self._pvt_ptr[0].hostNumaId = hostNumaId
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostNumaId); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostNumaId) {
  int __pyx_v_hostNumaId;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_hostNumaId); {
    __pyx_v_hostNumaId = __Pyx_PyLong_As_int(__pyx_arg_hostNumaId); if (unlikely((__pyx_v_hostNumaId == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9748, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostNumaId.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_hostNumaId));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostNumaId) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9749
 *     @hostNumaId.setter
 *     def hostNumaId(self, int hostNumaId):
 *         self._pvt_ptr[0].hostNumaId = hostNumaId             # <<<<<<<<<<<<<<
 *     @property
 *     def gpuPciDeviceID(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).hostNumaId = __pyx_v_hostNumaId;

  /* "cuda/bindings/runtime.pyx":9747
 *     def hostNumaId(self):
 *         return self._pvt_ptr[0].hostNumaId
 *     @hostNumaId.setter             # <<<<<<<<<<<<<<
 *     def hostNumaId(self, int hostNumaId):
 *         self._pvt_ptr[0].hostNumaId = hostNumaId
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9750
 *     def hostNumaId(self, int hostNumaId):
 *         self._pvt_ptr[0].hostNumaId = hostNumaId
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuPciDeviceID(self):
 *         return self._pvt_ptr[0].gpuPciDeviceID
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9752
 *     @property
 *     def gpuPciDeviceID(self):
 *         return self._pvt_ptr[0].gpuPciDeviceID             # <<<<<<<<<<<<<<
 *     @gpuPciDeviceID.setter
 *     def gpuPciDeviceID(self, unsigned int gpuPciDeviceID):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).gpuPciDeviceID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9750
 *     def hostNumaId(self, int hostNumaId):
 *         self._pvt_ptr[0].hostNumaId = hostNumaId
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuPciDeviceID(self):
 *         return self._pvt_ptr[0].gpuPciDeviceID
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuPciDeviceID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9753
 *     def gpuPciDeviceID(self):
 *         return self._pvt_ptr[0].gpuPciDeviceID
 *     @gpuPciDeviceID.setter             # <<<<<<<<<<<<<<
 *     def gpuPciDeviceID(self, unsigned int gpuPciDeviceID):
 *         self._pvt_ptr[0].gpuPciDeviceID = gpuPciDeviceID
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuPciDeviceID); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuPciDeviceID) {
  unsigned int __pyx_v_gpuPciDeviceID;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_gpuPciDeviceID); {
    __pyx_v_gpuPciDeviceID = __Pyx_PyLong_As_unsigned_int(__pyx_arg_gpuPciDeviceID); if (unlikely((__pyx_v_gpuPciDeviceID == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9754, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuPciDeviceID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((unsigned int)__pyx_v_gpuPciDeviceID));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_gpuPciDeviceID) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9755
 *     @gpuPciDeviceID.setter
 *     def gpuPciDeviceID(self, unsigned int gpuPciDeviceID):
 *         self._pvt_ptr[0].gpuPciDeviceID = gpuPciDeviceID             # <<<<<<<<<<<<<<
 *     @property
 *     def gpuPciSubsystemID(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).gpuPciDeviceID = __pyx_v_gpuPciDeviceID;

  /* "cuda/bindings/runtime.pyx":9753
 *     def gpuPciDeviceID(self):
 *         return self._pvt_ptr[0].gpuPciDeviceID
 *     @gpuPciDeviceID.setter             # <<<<<<<<<<<<<<
 *     def gpuPciDeviceID(self, unsigned int gpuPciDeviceID):
 *         self._pvt_ptr[0].gpuPciDeviceID = gpuPciDeviceID
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9756
 *     def gpuPciDeviceID(self, unsigned int gpuPciDeviceID):
 *         self._pvt_ptr[0].gpuPciDeviceID = gpuPciDeviceID
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuPciSubsystemID(self):
 *         return self._pvt_ptr[0].gpuPciSubsystemID
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9758
 *     @property
 *     def gpuPciSubsystemID(self):
 *         return self._pvt_ptr[0].gpuPciSubsystemID             # <<<<<<<<<<<<<<
 *     @gpuPciSubsystemID.setter
 *     def gpuPciSubsystemID(self, unsigned int gpuPciSubsystemID):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).gpuPciSubsystemID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9756
 *     def gpuPciDeviceID(self, unsigned int gpuPciDeviceID):
 *         self._pvt_ptr[0].gpuPciDeviceID = gpuPciDeviceID
 *     @property             # <<<<<<<<<<<<<<
 *     def gpuPciSubsystemID(self):
 *         return self._pvt_ptr[0].gpuPciSubsystemID
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuPciSubsystemID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9759
 *     def gpuPciSubsystemID(self):
 *         return self._pvt_ptr[0].gpuPciSubsystemID
 *     @gpuPciSubsystemID.setter             # <<<<<<<<<<<<<<
 *     def gpuPciSubsystemID(self, unsigned int gpuPciSubsystemID):
 *         self._pvt_ptr[0].gpuPciSubsystemID = gpuPciSubsystemID
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuPciSubsystemID); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_gpuPciSubsystemID) {
  unsigned int __pyx_v_gpuPciSubsystemID;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_gpuPciSubsystemID); {
    __pyx_v_gpuPciSubsystemID = __Pyx_PyLong_As_unsigned_int(__pyx_arg_gpuPciSubsystemID); if (unlikely((__pyx_v_gpuPciSubsystemID == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9760, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.gpuPciSubsystemID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((unsigned int)__pyx_v_gpuPciSubsystemID));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, unsigned int __pyx_v_gpuPciSubsystemID) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9761
 *     @gpuPciSubsystemID.setter
 *     def gpuPciSubsystemID(self, unsigned int gpuPciSubsystemID):
 *         self._pvt_ptr[0].gpuPciSubsystemID = gpuPciSubsystemID             # <<<<<<<<<<<<<<
 *     @property
 *     def hostNumaMultinodeIpcSupported(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).gpuPciSubsystemID = __pyx_v_gpuPciSubsystemID;

  /* "cuda/bindings/runtime.pyx":9759
 *     def gpuPciSubsystemID(self):
 *         return self._pvt_ptr[0].gpuPciSubsystemID
 *     @gpuPciSubsystemID.setter             # <<<<<<<<<<<<<<
 *     def gpuPciSubsystemID(self, unsigned int gpuPciSubsystemID):
 *         self._pvt_ptr[0].gpuPciSubsystemID = gpuPciSubsystemID
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9762
 *     def gpuPciSubsystemID(self, unsigned int gpuPciSubsystemID):
 *         self._pvt_ptr[0].gpuPciSubsystemID = gpuPciSubsystemID
 *     @property             # <<<<<<<<<<<<<<
 *     def hostNumaMultinodeIpcSupported(self):
 *         return self._pvt_ptr[0].hostNumaMultinodeIpcSupported
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9764
 *     @property
 *     def hostNumaMultinodeIpcSupported(self):
 *         return self._pvt_ptr[0].hostNumaMultinodeIpcSupported             # <<<<<<<<<<<<<<
 *     @hostNumaMultinodeIpcSupported.setter
 *     def hostNumaMultinodeIpcSupported(self, int hostNumaMultinodeIpcSupported):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).hostNumaMultinodeIpcSupported); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9762
 *     def gpuPciSubsystemID(self, unsigned int gpuPciSubsystemID):
 *         self._pvt_ptr[0].gpuPciSubsystemID = gpuPciSubsystemID
 *     @property             # <<<<<<<<<<<<<<
 *     def hostNumaMultinodeIpcSupported(self):
 *         return self._pvt_ptr[0].hostNumaMultinodeIpcSupported
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostNumaMultinodeIpcSupported.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9765
 *     def hostNumaMultinodeIpcSupported(self):
 *         return self._pvt_ptr[0].hostNumaMultinodeIpcSupported
 *     @hostNumaMultinodeIpcSupported.setter             # <<<<<<<<<<<<<<
 *     def hostNumaMultinodeIpcSupported(self, int hostNumaMultinodeIpcSupported):
 *         self._pvt_ptr[0].hostNumaMultinodeIpcSupported = hostNumaMultinodeIpcSupported
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostNumaMultinodeIpcSupported); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_hostNumaMultinodeIpcSupported) {
  int __pyx_v_hostNumaMultinodeIpcSupported;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_hostNumaMultinodeIpcSupported); {
    __pyx_v_hostNumaMultinodeIpcSupported = __Pyx_PyLong_As_int(__pyx_arg_hostNumaMultinodeIpcSupported); if (unlikely((__pyx_v_hostNumaMultinodeIpcSupported == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 9766, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.hostNumaMultinodeIpcSupported.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((int)__pyx_v_hostNumaMultinodeIpcSupported));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, int __pyx_v_hostNumaMultinodeIpcSupported) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9767
 *     @hostNumaMultinodeIpcSupported.setter
 *     def hostNumaMultinodeIpcSupported(self, int hostNumaMultinodeIpcSupported):
 *         self._pvt_ptr[0].hostNumaMultinodeIpcSupported = hostNumaMultinodeIpcSupported             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).hostNumaMultinodeIpcSupported = __pyx_v_hostNumaMultinodeIpcSupported;

  /* "cuda/bindings/runtime.pyx":9765
 *     def hostNumaMultinodeIpcSupported(self):
 *         return self._pvt_ptr[0].hostNumaMultinodeIpcSupported
 *     @hostNumaMultinodeIpcSupported.setter             # <<<<<<<<<<<<<<
 *     def hostNumaMultinodeIpcSupported(self, int hostNumaMultinodeIpcSupported):
 *         self._pvt_ptr[0].hostNumaMultinodeIpcSupported = hostNumaMultinodeIpcSupported
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9768
 *     def hostNumaMultinodeIpcSupported(self, int hostNumaMultinodeIpcSupported):
 *         self._pvt_ptr[0].hostNumaMultinodeIpcSupported = hostNumaMultinodeIpcSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9770
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).reserved, 56); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9768
 *     def hostNumaMultinodeIpcSupported(self, int hostNumaMultinodeIpcSupported):
 *         self._pvt_ptr[0].hostNumaMultinodeIpcSupported = hostNumaMultinodeIpcSupported
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9771
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  int __pyx_t_1[56];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":9773
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaIpcEventHandle_st:
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_reserved, __pyx_t_1, 56) < 0))) __PYX_ERR(0, 9773, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (56));

  /* "cuda/bindings/runtime.pyx":9771
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_14cudaDeviceProp_10__reduce_cython__, "cudaDeviceProp.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_14cudaDeviceProp_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaDeviceProp_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_14cudaDeviceProp_12__setstate_cython__, "cudaDeviceProp.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_14cudaDeviceProp_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaDeviceProp_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaDeviceProp.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceProp_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceProp.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9789
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 9789, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9789, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 9789, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9789, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9789, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9789, __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.runtime.cudaIpcEventHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":9790
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":9791
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaIpcEventHandle_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":9790
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":9793
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaIpcEventHandle_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaIpcEventHandle_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":9789
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9794
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaIpcEventHandle_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 9794, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9794, __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, "__init__", 0) < (0)) __PYX_ERR(0, 9794, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9794, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9794, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9794, __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.runtime.cudaIpcEventHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9796
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":9798
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_7getPtr(PyObject *__pyx_v_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_7runtime_21cudaIpcEventHandle_st_6getPtr, "cudaIpcEventHandle_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":9799
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9798
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcEventHandle_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9800
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":9801
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":9802
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9802, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":9803
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9804
 *             str_list = []
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9804, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9804, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9804, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9804, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 9804, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9804, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":9803
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":9805
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcEventHandle_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9805, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":9806
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9806, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 9806, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9806, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":9803
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9807
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9807, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":9801
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":9809
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":9800
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcEventHandle_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9810
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9812
 *     @property
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_pvt_ptr[0]).reserved, 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9810
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcEventHandle_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9813
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_t_9;
  char __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":9815
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9815, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 64);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":9816
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))             # <<<<<<<<<<<<<<
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9816, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_64_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9816, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 9816, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":9815
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
*/
  }

  /* "cuda/bindings/runtime.pyx":9817
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
*/
  __pyx_t_2 = (CHAR_MIN == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":9818
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
      __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9818, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9818, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9818, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9818, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9818, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 9818, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9818, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":9819
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9819, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9819, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9819, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9819, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L8_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":9820
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
 *                     b = b + 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
*/
        __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9820, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":9819
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":9821
 *                 if b < 0 and b > -129:
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 *         else:
 *             for i, b in enumerate(reserved):
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 9821, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9821, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":9818
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":9817
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":9823
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
      __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9823, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9823, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9823, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9823, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 9823, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":9824
 *         else:
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9824, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9824, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9824, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9824, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":9825
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:
 *                     b = b - 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].reserved[i] = b
 * 
*/
        __pyx_t_4 = __Pyx_PyLong_SubtractObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9825, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":9824
 *         else:
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":9826
 *                 if b > 127 and b < 256:
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaIpcMemHandle_st:
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 9826, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9826, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":9823
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":9813
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcEventHandle_st.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_21cudaIpcEventHandle_st_10__reduce_cython__, "cudaIpcEventHandle_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcEventHandle_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_21cudaIpcEventHandle_st_12__setstate_cython__, "cudaIpcEventHandle_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaIpcEventHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcEventHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9842
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 9842, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9842, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 9842, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9842, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9842, __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.runtime.cudaIpcMemHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":9843
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":9844
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaIpcMemHandle_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":9843
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":9846
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaIpcMemHandle_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaIpcMemHandle_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":9842
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9847
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaIpcMemHandle_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 9847, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9847, __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, "__init__", 0) < (0)) __PYX_ERR(0, 9847, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9847, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9847, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9847, __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.runtime.cudaIpcMemHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9849
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":9851
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_7getPtr(PyObject *__pyx_v_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_7runtime_19cudaIpcMemHandle_st_6getPtr, "cudaIpcMemHandle_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":9852
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9852, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9851
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcMemHandle_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9853
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":9854
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":9855
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":9856
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9857
 *             str_list = []
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9857, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9857, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9857, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9857, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 9857, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9857, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":9856
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":9858
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcMemHandle_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9858, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":9859
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9859, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 9859, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9859, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":9856
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9860
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9860, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":9854
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":9862
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":9853
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcMemHandle_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9863
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9865
 *     @property
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_pvt_ptr[0]).reserved, 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9863
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcMemHandle_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9866
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_t_9;
  char __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":9868
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9868, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 64);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":9869
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))             # <<<<<<<<<<<<<<
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9869, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9869, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9869, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_64_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9869, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9869, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 9869, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":9868
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
*/
  }

  /* "cuda/bindings/runtime.pyx":9870
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
*/
  __pyx_t_2 = (CHAR_MIN == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":9871
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
      __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9871, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9871, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9871, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9871, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9871, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 9871, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9871, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":9872
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9872, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9872, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9872, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9872, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L8_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":9873
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
 *                     b = b + 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
*/
        __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9873, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":9872
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":9874
 *                 if b < 0 and b > -129:
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 *         else:
 *             for i, b in enumerate(reserved):
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 9874, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9874, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":9871
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":9870
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":9876
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
      __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9876, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9876, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9876, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9876, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9876, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 9876, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9876, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":9877
 *         else:
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9877, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9877, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9877, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9877, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":9878
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:
 *                     b = b - 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].reserved[i] = b
 * 
*/
        __pyx_t_4 = __Pyx_PyLong_SubtractObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9878, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":9877
 *         else:
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":9879
 *                 if b > 127 and b < 256:
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaMemFabricHandle_st:
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 9879, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9879, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":9876
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":9866
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcMemHandle_st.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_19cudaIpcMemHandle_st_10__reduce_cython__, "cudaIpcMemHandle_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcMemHandle_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_19cudaIpcMemHandle_st_12__setstate_cython__, "cudaIpcMemHandle_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaIpcMemHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcMemHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9893
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 9893, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9893, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 9893, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9893, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9893, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9893, __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.runtime.cudaMemFabricHandle_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":9894
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":9895
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemFabricHandle_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":9894
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":9897
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemFabricHandle_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaMemFabricHandle_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":9893
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9898
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaMemFabricHandle_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 9898, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9898, __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, "__init__", 0) < (0)) __PYX_ERR(0, 9898, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9898, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9898, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 9898, __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.runtime.cudaMemFabricHandle_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9900
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":9902
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_7getPtr(PyObject *__pyx_v_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_7runtime_22cudaMemFabricHandle_st_6getPtr, "cudaMemFabricHandle_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":9903
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9902
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFabricHandle_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9904
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":9905
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":9906
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9906, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":9907
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9908
 *             str_list = []
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9908, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9908, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9908, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9908, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 9908, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9908, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":9907
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":9909
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFabricHandle_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9909, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":9910
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9910, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 9910, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9910, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":9907
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9911
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":9905
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":9913
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":9904
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFabricHandle_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9914
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9916
 *     @property
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_pvt_ptr[0]).reserved, 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9914
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFabricHandle_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9917
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self, PyObject *__pyx_v_reserved) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_t_9;
  char __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":9919
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9919, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 64);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":9920
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))             # <<<<<<<<<<<<<<
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 9920, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_64_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9920, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 9920, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":9919
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
*/
  }

  /* "cuda/bindings/runtime.pyx":9921
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
*/
  __pyx_t_2 = (CHAR_MIN == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":9922
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
      __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9922, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9922, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9922, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9922, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9922, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 9922, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9922, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":9923
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9923, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9923, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9923, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9923, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L8_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":9924
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
 *                     b = b + 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
*/
        __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9924, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":9923
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":9925
 *                 if b < 0 and b > -129:
 *                     b = b + 256
 *                 self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 *         else:
 *             for i, b in enumerate(reserved):
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 9925, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9925, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":9922
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":9921
 *         if len(reserved) != 64:
 *             raise ValueError("reserved length must be 64, is " + str(len(reserved)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(reserved):
 *                 if b < 0 and b > -129:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":9927
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
      __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 9927, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9927, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9927, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 9927, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9927, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 9927, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9927, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":9928
 *         else:
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9928, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9928, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9928, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 9928, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":9929
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:
 *                     b = b - 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].reserved[i] = b
 * 
*/
        __pyx_t_4 = __Pyx_PyLong_SubtractObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9929, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":9928
 *         else:
 *             for i, b in enumerate(reserved):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":9930
 *                 if b > 127 and b < 256:
 *                     b = b - 256
 *                 self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct8:
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 9930, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 9930, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":9927
 *                 self._pvt_ptr[0].reserved[i] = b
 *         else:
 *             for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":9917
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 64:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFabricHandle_st.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_22cudaMemFabricHandle_st_10__reduce_cython__, "cudaMemFabricHandle_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFabricHandle_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_22cudaMemFabricHandle_st_12__setstate_cython__, "cudaMemFabricHandle_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaMemFabricHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemFabricHandle_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9946
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 9946, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9946, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 9946, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 9946, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9946, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9946, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9946, __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.runtime.anon_struct8.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":9947
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalMemoryHandleDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":9946
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9949
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 9949, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9949, __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, "__init__", 0) < (0)) __PYX_ERR(0, 9949, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 9949, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 9949, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9949, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 9949, __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.runtime.anon_struct8.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9951
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":9953
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct8_6getPtr, "anon_struct8.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct8_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct8_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":9954
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).handle.win32))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9953
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9955
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":9956
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":9957
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['handle : ' + hex(self.handle)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":9958
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9959
 *             str_list = []
 *             try:
 *                 str_list += ['handle : ' + hex(self.handle)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_handle_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9959, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9959, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_handle, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9959, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9959, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 9959, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9959, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":9958
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":9960
 *             try:
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 9960, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":9961
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['name : ' + hex(self.name)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9961, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_handle_ValueError) != (0)) __PYX_ERR(0, 9961, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9961, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":9958
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9962
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":9963
 *                 str_list += ['handle : <ValueError>']
 *             try:
 *                 str_list += ['name : ' + hex(self.name)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9963, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9963, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_name_2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9963, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 9963, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 9963, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 9963, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":9962
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":9964
 *             try:
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 9964, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":9965
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 9965, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_name_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_name_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_name_ValueError) != (0)) __PYX_ERR(0, 9965, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 9965, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":9962
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":9966
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":9956
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":9968
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def handle(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":9955
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9969
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_6handle_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6handle___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9971
 *     @property
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle             # <<<<<<<<<<<<<<
 *     @handle.setter
 *     def handle(self, handle):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).handle.win32.handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9969
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.handle.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9972
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle):
 *         _chandle = _HelperInputVoidPtr(handle)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6handle_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self), ((PyObject *)__pyx_v_handle));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, PyObject *__pyx_v_handle) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__chandle = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":9974
 *     @handle.setter
 *     def handle(self, handle):
 *         _chandle = _HelperInputVoidPtr(handle)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].handle.win32.handle = <void*><void_ptr>_chandle.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_handle};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9974, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__chandle = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":9975
 *     def handle(self, handle):
 *         _chandle = _HelperInputVoidPtr(handle)
 *         self._pvt_ptr[0].handle.win32.handle = <void*><void_ptr>_chandle.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def name(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__chandle), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9975, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).handle.win32.handle = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":9972
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle):
 *         _chandle = _HelperInputVoidPtr(handle)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__chandle);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9976
 *         _chandle = _HelperInputVoidPtr(handle)
 *         self._pvt_ptr[0].handle.win32.handle = <void*><void_ptr>_chandle.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_4name_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4name___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4name___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":9978
 *     @property
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name             # <<<<<<<<<<<<<<
 *     @name.setter
 *     def name(self, name):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).handle.win32.name)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":9976
 *         _chandle = _HelperInputVoidPtr(handle)
 *         self._pvt_ptr[0].handle.win32.handle = <void*><void_ptr>_chandle.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":9979
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name
 *     @name.setter             # <<<<<<<<<<<<<<
 *     def name(self, name):
 *         _cname = _HelperInputVoidPtr(name)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4name_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self), ((PyObject *)__pyx_v_name));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_4name_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, PyObject *__pyx_v_name) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cname = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":9981
 *     @name.setter
 *     def name(self, name):
 *         _cname = _HelperInputVoidPtr(name)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].handle.win32.name = <void*><void_ptr>_cname.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_name};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9981, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cname = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":9982
 *     def name(self, name):
 *         _cname = _HelperInputVoidPtr(name)
 *         self._pvt_ptr[0].handle.win32.name = <void*><void_ptr>_cname.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union2:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cname), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 9982, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).handle.win32.name = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":9979
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name
 *     @name.setter             # <<<<<<<<<<<<<<
 *     def name(self, name):
 *         _cname = _HelperInputVoidPtr(name)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cname);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct8_10__reduce_cython__, "anon_struct8.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct8_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct8_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct8_12__setstate_cython__, "anon_struct8.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct8_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct8_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct8.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct8_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct8.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10000
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10000, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10000, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10000, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10000, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10000, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10000, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10000, __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.runtime.anon_union2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10001
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalMemoryHandleDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10000
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10003
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._win32 = anon_struct8(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10003, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10003, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10003, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10003, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10003, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10003, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10003, __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.runtime.anon_union2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":10005
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._win32 = anon_struct8(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10005, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10005, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10005, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_win32);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_win32);
  __pyx_v_self->_win32 = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10003
 *         self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._win32 = anon_struct8(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10006
 *         pass
 *         self._win32 = anon_struct8(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10008
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_7getPtr(PyObject *__pyx_v_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_7runtime_11anon_union2_6getPtr, "anon_union2.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union2_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union2_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10009
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).handle))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10008
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10010
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr129__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10011
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10012
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['fd : ' + str(self.fd)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10013
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10014
 *             str_list = []
 *             try:
 *                 str_list += ['fd : ' + str(self.fd)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_fd_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10014, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10014, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_fd, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10014, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10014, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10014, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10014, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10013
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10015
 *             try:
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['fd : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10015, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10016
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10016, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_fd_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_fd_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_fd_ValueError) != (0)) __PYX_ERR(0, 10016, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10016, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10013
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10017
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10018
 *                 str_list += ['fd : <ValueError>']
 *             try:
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10018, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_win32_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10018, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10018, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10018, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10018, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10018, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr129__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr129__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10018, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10018, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr129__pyx_v_line); __pyx_10genexpr129__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr129__pyx_v_line); __pyx_10genexpr129__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10018, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_win32, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10018, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10018, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10018, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10018, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10017
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10019
 *             try:
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32 : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10019, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10020
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10020, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_win32_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_win32_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_win32_ValueError) != (0)) __PYX_ERR(0, 10020, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10020, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10017
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10021
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10022
 *                 str_list += ['win32 : <ValueError>']
 *             try:
 *                 str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['nvSciBufObject : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_nvSciBufObject_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10022, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10022, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_nvSciBufObject, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10022, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10022, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10022, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10022, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10021
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10023
 *             try:
 *                 str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciBufObject : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 10023, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10024
 *                 str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)]
 *             except ValueError:
 *                 str_list += ['nvSciBufObject : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10024, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_nvSciBufObject_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_nvSciBufObject_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_nvSciBufObject_ValueError) != (0)) __PYX_ERR(0, 10024, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10024, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":10021
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10025
 *             except ValueError:
 *                 str_list += ['nvSciBufObject : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10025, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10011
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10027
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def fd(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10010
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr129__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10028
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_2fd_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_2fd_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2fd___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2fd___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10030
 *     @property
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd             # <<<<<<<<<<<<<<
 *     @fd.setter
 *     def fd(self, int fd):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).handle.fd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10028
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.fd.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10031
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd
 *     @fd.setter             # <<<<<<<<<<<<<<
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_2fd_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_fd); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_2fd_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_fd) {
  int __pyx_v_fd;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_fd); {
    __pyx_v_fd = __Pyx_PyLong_As_int(__pyx_arg_fd); if (unlikely((__pyx_v_fd == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10032, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.fd.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2fd_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self), ((int)__pyx_v_fd));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_2fd_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, int __pyx_v_fd) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10033
 *     @fd.setter
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd             # <<<<<<<<<<<<<<
 *     @property
 *     def win32(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).handle.fd = __pyx_v_fd;

  /* "cuda/bindings/runtime.pyx":10031
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd
 *     @fd.setter             # <<<<<<<<<<<<<<
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10034
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd
 *     @property             # <<<<<<<<<<<<<<
 *     def win32(self):
 *         return self._win32
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5win32_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5win32_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_5win32___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_5win32___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10036
 *     @property
 *     def win32(self):
 *         return self._win32             # <<<<<<<<<<<<<<
 *     @win32.setter
 *     def win32(self, win32 not None : anon_struct8):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_win32);
  __pyx_r = ((PyObject *)__pyx_v_self->_win32);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10034
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd
 *     @property             # <<<<<<<<<<<<<<
 *     def win32(self):
 *         return self._win32
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10037
 *     def win32(self):
 *         return self._win32
 *     @win32.setter             # <<<<<<<<<<<<<<
 *     def win32(self, win32 not None : anon_struct8):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct8*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5win32_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5win32_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_win32), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8, 0, "win32", 0))) __PYX_ERR(0, 10038, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_5win32_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)__pyx_v_win32));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_5win32_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *__pyx_v_win32) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10039
 *     @win32.setter
 *     def win32(self, win32 not None : anon_struct8):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct8*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))             # <<<<<<<<<<<<<<
 *     @property
 *     def nvSciBufObject(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_win32);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10039, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).handle.win32), ((struct anon_struct8 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).handle.win32))));

  /* "cuda/bindings/runtime.pyx":10037
 *     def win32(self):
 *         return self._win32
 *     @win32.setter             # <<<<<<<<<<<<<<
 *     def win32(self, win32 not None : anon_struct8):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct8*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.win32.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10040
 *     def win32(self, win32 not None : anon_struct8):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct8*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))
 *     @property             # <<<<<<<<<<<<<<
 *     def nvSciBufObject(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciBufObject
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10042
 *     @property
 *     def nvSciBufObject(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciBufObject             # <<<<<<<<<<<<<<
 *     @nvSciBufObject.setter
 *     def nvSciBufObject(self, nvSciBufObject):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).handle.nvSciBufObject)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10040
 *     def win32(self, win32 not None : anon_struct8):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct8*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))
 *     @property             # <<<<<<<<<<<<<<
 *     def nvSciBufObject(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciBufObject
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.nvSciBufObject.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10043
 *     def nvSciBufObject(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciBufObject
 *     @nvSciBufObject.setter             # <<<<<<<<<<<<<<
 *     def nvSciBufObject(self, nvSciBufObject):
 *         _cnvSciBufObject = _HelperInputVoidPtr(nvSciBufObject)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciBufObject); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciBufObject) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self), ((PyObject *)__pyx_v_nvSciBufObject));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, PyObject *__pyx_v_nvSciBufObject) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cnvSciBufObject = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10045
 *     @nvSciBufObject.setter
 *     def nvSciBufObject(self, nvSciBufObject):
 *         _cnvSciBufObject = _HelperInputVoidPtr(nvSciBufObject)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].handle.nvSciBufObject = <void*><void_ptr>_cnvSciBufObject.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_nvSciBufObject};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10045, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cnvSciBufObject = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10046
 *     def nvSciBufObject(self, nvSciBufObject):
 *         _cnvSciBufObject = _HelperInputVoidPtr(nvSciBufObject)
 *         self._pvt_ptr[0].handle.nvSciBufObject = <void*><void_ptr>_cnvSciBufObject.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalMemoryHandleDesc:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cnvSciBufObject), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10046, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).handle.nvSciBufObject = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":10043
 *     def nvSciBufObject(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciBufObject
 *     @nvSciBufObject.setter             # <<<<<<<<<<<<<<
 *     def nvSciBufObject(self, nvSciBufObject):
 *         _cnvSciBufObject = _HelperInputVoidPtr(nvSciBufObject)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.nvSciBufObject.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cnvSciBufObject);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_11anon_union2_10__reduce_cython__, "anon_union2.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union2_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_11anon_union2_12__setstate_cython__, "anon_union2.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union2_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union2_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10070
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalMemoryHandleDesc))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10070, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10070, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10070, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10070, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10070, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10070, __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.runtime.cudaExternalMemoryHandleDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct cudaExternalMemoryHandleDesc *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":10071
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalMemoryHandleDesc))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10072
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalMemoryHandleDesc))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct cudaExternalMemoryHandleDesc *)calloc(1, (sizeof(struct cudaExternalMemoryHandleDesc))));

    /* "cuda/bindings/runtime.pyx":10073
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalMemoryHandleDesc))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":10071
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalMemoryHandleDesc))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":10075
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalMemoryHandleDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":10070
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalMemoryHandleDesc))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10076
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._handle = anon_union2(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10076, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10076, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10076, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10076, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10076, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10076, __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.runtime.cudaExternalMemoryHandleDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":10078
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._handle = anon_union2(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10078, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10078, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_handle);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_handle);
  __pyx_v_self->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10076
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryHandleDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._handle = anon_union2(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10079
 *         pass
 *         self._handle = anon_union2(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":10080
 *         self._handle = anon_union2(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10081
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":10080
 *         self._handle = anon_union2(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":10079
 *         pass
 *         self._handle = anon_union2(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10082
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_7getPtr(PyObject *__pyx_v_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_7runtime_28cudaExternalMemoryHandleDesc_6getPtr, "cudaExternalMemoryHandleDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10083
 *             free(self._val_ptr)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10082
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10084
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr130__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10085
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10086
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10086, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10087
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10088
 *             str_list = []
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10088, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10088, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10088, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10088, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10088, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10088, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10087
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10089
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10089, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10090
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10090, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 10090, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10090, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10087
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10091
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10092
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10092, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_handle_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10092, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10092, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10092, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10092, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10092, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr130__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr130__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10092, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10092, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr130__pyx_v_line); __pyx_10genexpr130__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr130__pyx_v_line); __pyx_10genexpr130__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10092, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_handle_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10092, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10092, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10092, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10092, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10091
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10093
 *             try:
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10093, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10094
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10094, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_handle_ValueError) != (0)) __PYX_ERR(0, 10094, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10094, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10091
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10095
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10096
 *                 str_list += ['handle : <ValueError>']
 *             try:
 *                 str_list += ['size : ' + str(self.size)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_size_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10096, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10096, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_size, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10096, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10096, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10096, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10096, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10095
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10097
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 10097, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10098
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10098, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_size_ValueError) != (0)) __PYX_ERR(0, 10098, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10098, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":10095
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10099
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10100
 *                 str_list += ['size : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10100, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10100, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10100, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10100, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10100, __pyx_L35_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10100, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10099
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10101
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10101, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10102
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10102, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 10102, __pyx_L37_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10102, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":10099
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10103
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10104
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10104, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10104, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10104, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10104, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10104, __pyx_L43_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10104, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10103
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10105
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 10105, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10106
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10106, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10106, __pyx_L45_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10106, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":10103
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10107
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10107, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10085
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10109
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10084
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr130__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10110
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalMemoryHandleType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10112
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalMemoryHandleType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaExternalMemoryHandleType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaExternalMemoryHandleTy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 10112, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":10113
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalMemoryHandleType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaExternalMemoryHandleType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10112
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalMemoryHandleType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaExternalMemoryHandleType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":10114
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalMemoryHandleType:
 *             return None
 *         return _dict_cudaExternalMemoryHandleType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaExternalMemoryHandleType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaExternalMemoryHandleTy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10110
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalMemoryHandleType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10115
 *             return None
 *         return _dict_cudaExternalMemoryHandleType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaExternalMemoryHandleType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 10116, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaExternalMemoryHandleType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10117
 *     @type.setter
 *     def type(self, type not None : cudaExternalMemoryHandleType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def handle(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaExternalMemoryHandleType)__Pyx_PyLong_As_enum__cudaExternalMemoryHandleType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10117, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":10115
 *             return None
 *         return _dict_cudaExternalMemoryHandleType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaExternalMemoryHandleType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10118
 *     def type(self, type not None : cudaExternalMemoryHandleType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return self._handle
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10120
 *     @property
 *     def handle(self):
 *         return self._handle             # <<<<<<<<<<<<<<
 *     @handle.setter
 *     def handle(self, handle not None : anon_union2):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_handle);
  __pyx_r = ((PyObject *)__pyx_v_self->_handle);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10118
 *     def type(self, type not None : cudaExternalMemoryHandleType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return self._handle
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10121
 *     def handle(self):
 *         return self._handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle not None : anon_union2):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union2*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handle), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2, 0, "handle", 0))) __PYX_ERR(0, 10122, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)__pyx_v_handle));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *__pyx_v_handle) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10123
 *     @handle.setter
 *     def handle(self, handle not None : anon_union2):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union2*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))             # <<<<<<<<<<<<<<
 *     @property
 *     def size(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_handle);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10123, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).handle), ((union anon_union2 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).handle))));

  /* "cuda/bindings/runtime.pyx":10121
 *     def handle(self):
 *         return self._handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle not None : anon_union2):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union2*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10124
 *     def handle(self, handle not None : anon_union2):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union2*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].size
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10126
 *     @property
 *     def size(self):
 *         return self._pvt_ptr[0].size             # <<<<<<<<<<<<<<
 *     @size.setter
 *     def size(self, unsigned long long size):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10124
 *     def handle(self, handle not None : anon_union2):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union2*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].size
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10127
 *     def size(self):
 *         return self._pvt_ptr[0].size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size) {
  unsigned PY_LONG_LONG __pyx_v_size;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_size); {
    __pyx_v_size = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_size); if (unlikely((__pyx_v_size == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10128, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_size));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_size) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10129
 *     @size.setter
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).size = __pyx_v_size;

  /* "cuda/bindings/runtime.pyx":10127
 *     def size(self):
 *         return self._pvt_ptr[0].size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10130
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10132
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10130
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10133
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10134, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10135
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":10133
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10136
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10138
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10136
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10139
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[16];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":10141
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalMemoryBufferDesc:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 10141, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (16));

  /* "cuda/bindings/runtime.pyx":10139
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_28cudaExternalMemoryHandleDesc_10__reduce_cython__, "cudaExternalMemoryHandleDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_28cudaExternalMemoryHandleDesc_12__setstate_cython__, "cudaExternalMemoryHandleDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalMemoryHandleDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryHandleDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10163
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10163, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10163, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10163, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10163, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10163, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10163, __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.runtime.cudaExternalMemoryBufferDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":10164
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10165
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryBufferDesc *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":10164
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":10167
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryBufferDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalMemoryBufferDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":10163
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10168
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryBufferDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10168, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10168, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10168, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10168, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10168, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10168, __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.runtime.cudaExternalMemoryBufferDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10170
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10172
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_7getPtr(PyObject *__pyx_v_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_7runtime_28cudaExternalMemoryBufferDesc_6getPtr, "cudaExternalMemoryBufferDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10173
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10172
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10174
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10175
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10176
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10176, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10177
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10178
 *             str_list = []
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_offset_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10178, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10178, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_offset_3, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10178, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10178, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10178, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10178, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10177
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10179
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10179, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10180
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10180, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_offset_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_offset_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_offset_ValueError) != (0)) __PYX_ERR(0, 10180, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10180, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10177
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10181
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10182
 *                 str_list += ['offset : <ValueError>']
 *             try:
 *                 str_list += ['size : ' + str(self.size)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_size_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10182, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10182, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_size, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10182, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10182, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10182, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10182, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10181
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10183
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10183, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10184
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10184, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_size_ValueError) != (0)) __PYX_ERR(0, 10184, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10184, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10181
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10185
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10186
 *                 str_list += ['size : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10186, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10186, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10186, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10186, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10186, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10186, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10185
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10187
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10187, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10188
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10188, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 10188, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10188, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":10185
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10189
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10190
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10190, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10190, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10190, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10190, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10190, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10190, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10189
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10191
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10191, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10192
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10192, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10192, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10192, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":10189
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10193
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10193, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10175
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10195
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def offset(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10174
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10196
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def offset(self):
 *         return self._pvt_ptr[0].offset
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10198
 *     @property
 *     def offset(self):
 *         return self._pvt_ptr[0].offset             # <<<<<<<<<<<<<<
 *     @offset.setter
 *     def offset(self, unsigned long long offset):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10196
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def offset(self):
 *         return self._pvt_ptr[0].offset
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.offset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10199
 *     def offset(self):
 *         return self._pvt_ptr[0].offset
 *     @offset.setter             # <<<<<<<<<<<<<<
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset) {
  unsigned PY_LONG_LONG __pyx_v_offset;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_offset); {
    __pyx_v_offset = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_offset); if (unlikely((__pyx_v_offset == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10200, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_offset));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_offset) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10201
 *     @offset.setter
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset             # <<<<<<<<<<<<<<
 *     @property
 *     def size(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).offset = __pyx_v_offset;

  /* "cuda/bindings/runtime.pyx":10199
 *     def offset(self):
 *         return self._pvt_ptr[0].offset
 *     @offset.setter             # <<<<<<<<<<<<<<
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10202
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].size
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10204
 *     @property
 *     def size(self):
 *         return self._pvt_ptr[0].size             # <<<<<<<<<<<<<<
 *     @size.setter
 *     def size(self, unsigned long long size):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10202
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].size
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10205
 *     def size(self):
 *         return self._pvt_ptr[0].size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size) {
  unsigned PY_LONG_LONG __pyx_v_size;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_size); {
    __pyx_v_size = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_size); if (unlikely((__pyx_v_size == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10206, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_size));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_size) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10207
 *     @size.setter
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).size = __pyx_v_size;

  /* "cuda/bindings/runtime.pyx":10205
 *     def size(self):
 *         return self._pvt_ptr[0].size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10208
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10210
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10208
 *     def size(self, unsigned long long size):
 *         self._pvt_ptr[0].size = size
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10211
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10212, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10213
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":10211
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10214
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10216
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10214
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10217
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[16];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":10219
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalMemoryMipmappedArrayDesc:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 10219, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (16));

  /* "cuda/bindings/runtime.pyx":10217
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_28cudaExternalMemoryBufferDesc_10__reduce_cython__, "cudaExternalMemoryBufferDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_28cudaExternalMemoryBufferDesc_12__setstate_cython__, "cudaExternalMemoryBufferDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalMemoryBufferDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryBufferDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10247
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10247, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10247, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10247, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10247, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10247, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10247, __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.runtime.cudaExternalMemoryMipmappedArrayDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":10248
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10249
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryMipmappedArrayDesc *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":10248
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":10251
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryMipmappedArrayDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalMemoryMipmappedArrayDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":10247
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10252
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryMipmappedArrayDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._formatDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].formatDesc)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10252, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10252, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10252, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10252, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10252, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10252, __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.runtime.cudaExternalMemoryMipmappedArrayDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":10254
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._formatDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].formatDesc)             # <<<<<<<<<<<<<<
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).formatDesc))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10254, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10254, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_formatDesc);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_formatDesc);
  __pyx_v_self->_formatDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10255
 *         pass
 *         self._formatDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].formatDesc)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).extent))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10255, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10255, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_extent);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_extent);
  __pyx_v_self->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10252
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalMemoryMipmappedArrayDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._formatDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].formatDesc)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10256
 *         self._formatDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].formatDesc)
 *         self._extent = cudaExtent(_ptr=<void_ptr>&self._pvt_ptr[0].extent)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10258
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_7getPtr(PyObject *__pyx_v_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_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6getPtr, "cudaExternalMemoryMipmappedArrayDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10259
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10258
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10260
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr131__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr132__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10261
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10262
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10263
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10264
 *             str_list = []
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_offset_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10264, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10264, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_offset_3, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10264, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10264, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10264, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10264, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10263
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10265
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10265, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10266
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['formatDesc :\n' + '\n'.join(['    ' + line for line in str(self.formatDesc).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10266, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_offset_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_offset_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_offset_ValueError) != (0)) __PYX_ERR(0, 10266, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10266, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10263
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10267
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['formatDesc :\n' + '\n'.join(['    ' + line for line in str(self.formatDesc).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10268
 *                 str_list += ['offset : <ValueError>']
 *             try:
 *                 str_list += ['formatDesc :\n' + '\n'.join(['    ' + line for line in str(self.formatDesc).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['formatDesc : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10268, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_formatDesc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10268, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10268, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10268, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10268, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10268, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr131__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr131__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10268, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10268, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr131__pyx_v_line); __pyx_10genexpr131__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr131__pyx_v_line); __pyx_10genexpr131__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10268, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_formatDesc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10268, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10268, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10268, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10268, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10267
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['formatDesc :\n' + '\n'.join(['    ' + line for line in str(self.formatDesc).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10269
 *             try:
 *                 str_list += ['formatDesc :\n' + '\n'.join(['    ' + line for line in str(self.formatDesc).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['formatDesc : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10269, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10270
 *                 str_list += ['formatDesc :\n' + '\n'.join(['    ' + line for line in str(self.formatDesc).splitlines()])]
 *             except ValueError:
 *                 str_list += ['formatDesc : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10270, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_formatDesc_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_formatDesc_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_formatDesc_ValueError) != (0)) __PYX_ERR(0, 10270, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10270, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10267
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['formatDesc :\n' + '\n'.join(['    ' + line for line in str(self.formatDesc).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10271
 *             except ValueError:
 *                 str_list += ['formatDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10272
 *                 str_list += ['formatDesc : <ValueError>']
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10272, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extent_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10272, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10272, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10272, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10272, __pyx_L35_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10272, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr132__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr132__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10272, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 10272, __pyx_L35_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr132__pyx_v_line); __pyx_10genexpr132__pyx_v_line = 0;
          goto __pyx_L39_exit_scope;
          __pyx_L35_error:;
          __Pyx_XDECREF(__pyx_10genexpr132__pyx_v_line); __pyx_10genexpr132__pyx_v_line = 0;
          goto __pyx_L27_error;
          __pyx_L39_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10272, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extent, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10272, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10272, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10272, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10272, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10271
 *             except ValueError:
 *                 str_list += ['formatDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10273
 *             try:
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 10273, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10274
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10274, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extent_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extent_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_extent_ValueError) != (0)) __PYX_ERR(0, 10274, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10274, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":10271
 *             except ValueError:
 *                 str_list += ['formatDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extent :\n' + '\n'.join(['    ' + line for line in str(self.extent).splitlines()])]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10275
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10276
 *                 str_list += ['extent : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10276, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10276, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10276, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10276, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10276, __pyx_L42_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10276, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10275
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L47_try_end;
      __pyx_L42_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10277
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 10277, __pyx_L44_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10278
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['numLevels : ' + str(self.numLevels)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10278, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 10278, __pyx_L44_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10278, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L43_exception_handled;
      }
      goto __pyx_L44_except_error;

      /* "cuda/bindings/runtime.pyx":10275
 *             except ValueError:
 *                 str_list += ['extent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L44_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L43_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L47_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10279
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numLevels : ' + str(self.numLevels)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10280
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['numLevels : ' + str(self.numLevels)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['numLevels : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_numLevels_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10280, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10280, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_numLevels, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10280, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10280, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10280, __pyx_L50_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10280, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10279
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numLevels : ' + str(self.numLevels)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L55_try_end;
      __pyx_L50_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10281
 *             try:
 *                 str_list += ['numLevels : ' + str(self.numLevels)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['numLevels : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 10281, __pyx_L52_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10282
 *                 str_list += ['numLevels : ' + str(self.numLevels)]
 *             except ValueError:
 *                 str_list += ['numLevels : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10282, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_numLevels_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_numLevels_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_numLevels_ValueError) != (0)) __PYX_ERR(0, 10282, __pyx_L52_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10282, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L51_exception_handled;
      }
      goto __pyx_L52_except_error;

      /* "cuda/bindings/runtime.pyx":10279
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numLevels : ' + str(self.numLevels)]
 *             except ValueError:
*/
      __pyx_L52_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L51_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L55_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10283
 *             except ValueError:
 *                 str_list += ['numLevels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10284
 *                 str_list += ['numLevels : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10284, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10284, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10284, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10284, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10284, __pyx_L58_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10284, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10283
 *             except ValueError:
 *                 str_list += ['numLevels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L63_try_end;
      __pyx_L58_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10285
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 10285, __pyx_L60_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10286
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10286, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10286, __pyx_L60_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10286, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L59_exception_handled;
      }
      goto __pyx_L60_except_error;

      /* "cuda/bindings/runtime.pyx":10283
 *             except ValueError:
 *                 str_list += ['numLevels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L60_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L59_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L63_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10287
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10261
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10289
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def offset(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10260
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr131__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr132__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10290
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def offset(self):
 *         return self._pvt_ptr[0].offset
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10292
 *     @property
 *     def offset(self):
 *         return self._pvt_ptr[0].offset             # <<<<<<<<<<<<<<
 *     @offset.setter
 *     def offset(self, unsigned long long offset):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10290
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def offset(self):
 *         return self._pvt_ptr[0].offset
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.offset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10293
 *     def offset(self):
 *         return self._pvt_ptr[0].offset
 *     @offset.setter             # <<<<<<<<<<<<<<
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset) {
  unsigned PY_LONG_LONG __pyx_v_offset;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_offset); {
    __pyx_v_offset = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_offset); if (unlikely((__pyx_v_offset == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10294, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_offset));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_offset) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10295
 *     @offset.setter
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset             # <<<<<<<<<<<<<<
 *     @property
 *     def formatDesc(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).offset = __pyx_v_offset;

  /* "cuda/bindings/runtime.pyx":10293
 *     def offset(self):
 *         return self._pvt_ptr[0].offset
 *     @offset.setter             # <<<<<<<<<<<<<<
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10296
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset
 *     @property             # <<<<<<<<<<<<<<
 *     def formatDesc(self):
 *         return self._formatDesc
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10298
 *     @property
 *     def formatDesc(self):
 *         return self._formatDesc             # <<<<<<<<<<<<<<
 *     @formatDesc.setter
 *     def formatDesc(self, formatDesc not None : cudaChannelFormatDesc):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_formatDesc);
  __pyx_r = ((PyObject *)__pyx_v_self->_formatDesc);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10296
 *     def offset(self, unsigned long long offset):
 *         self._pvt_ptr[0].offset = offset
 *     @property             # <<<<<<<<<<<<<<
 *     def formatDesc(self):
 *         return self._formatDesc
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10299
 *     def formatDesc(self):
 *         return self._formatDesc
 *     @formatDesc.setter             # <<<<<<<<<<<<<<
 *     def formatDesc(self, formatDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].formatDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>formatDesc.getPtr(), sizeof(self._pvt_ptr[0].formatDesc))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_formatDesc); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_formatDesc) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_formatDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, 0, "formatDesc", 0))) __PYX_ERR(0, 10300, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_formatDesc));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_formatDesc) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10301
 *     @formatDesc.setter
 *     def formatDesc(self, formatDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].formatDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>formatDesc.getPtr(), sizeof(self._pvt_ptr[0].formatDesc))             # <<<<<<<<<<<<<<
 *     @property
 *     def extent(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_formatDesc);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10301, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).formatDesc), ((struct cudaChannelFormatDesc *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).formatDesc))));

  /* "cuda/bindings/runtime.pyx":10299
 *     def formatDesc(self):
 *         return self._formatDesc
 *     @formatDesc.setter             # <<<<<<<<<<<<<<
 *     def formatDesc(self, formatDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].formatDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>formatDesc.getPtr(), sizeof(self._pvt_ptr[0].formatDesc))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.formatDesc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10302
 *     def formatDesc(self, formatDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].formatDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>formatDesc.getPtr(), sizeof(self._pvt_ptr[0].formatDesc))
 *     @property             # <<<<<<<<<<<<<<
 *     def extent(self):
 *         return self._extent
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10304
 *     @property
 *     def extent(self):
 *         return self._extent             # <<<<<<<<<<<<<<
 *     @extent.setter
 *     def extent(self, extent not None : cudaExtent):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_extent);
  __pyx_r = ((PyObject *)__pyx_v_self->_extent);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10302
 *     def formatDesc(self, formatDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].formatDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>formatDesc.getPtr(), sizeof(self._pvt_ptr[0].formatDesc))
 *     @property             # <<<<<<<<<<<<<<
 *     def extent(self):
 *         return self._extent
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10305
 *     def extent(self):
 *         return self._extent
 *     @extent.setter             # <<<<<<<<<<<<<<
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extent) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 10306, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_v_extent));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10307
 *     @extent.setter
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_extent);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10307, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).extent), ((struct cudaExtent *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).extent))));

  /* "cuda/bindings/runtime.pyx":10305
 *     def extent(self):
 *         return self._extent
 *     @extent.setter             # <<<<<<<<<<<<<<
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.extent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10308
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10310
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10308
 *     def extent(self, extent not None : cudaExtent):
 *         string.memcpy(&self._pvt_ptr[0].extent, <cyruntime.cudaExtent*><void_ptr>extent.getPtr(), sizeof(self._pvt_ptr[0].extent))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10311
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10312, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10313
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def numLevels(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":10311
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10314
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def numLevels(self):
 *         return self._pvt_ptr[0].numLevels
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10316
 *     @property
 *     def numLevels(self):
 *         return self._pvt_ptr[0].numLevels             # <<<<<<<<<<<<<<
 *     @numLevels.setter
 *     def numLevels(self, unsigned int numLevels):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).numLevels); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10314
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def numLevels(self):
 *         return self._pvt_ptr[0].numLevels
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.numLevels.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10317
 *     def numLevels(self):
 *         return self._pvt_ptr[0].numLevels
 *     @numLevels.setter             # <<<<<<<<<<<<<<
 *     def numLevels(self, unsigned int numLevels):
 *         self._pvt_ptr[0].numLevels = numLevels
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numLevels); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numLevels) {
  unsigned int __pyx_v_numLevels;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_numLevels); {
    __pyx_v_numLevels = __Pyx_PyLong_As_unsigned_int(__pyx_arg_numLevels); if (unlikely((__pyx_v_numLevels == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10318, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.numLevels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((unsigned int)__pyx_v_numLevels));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, unsigned int __pyx_v_numLevels) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10319
 *     @numLevels.setter
 *     def numLevels(self, unsigned int numLevels):
 *         self._pvt_ptr[0].numLevels = numLevels             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).numLevels = __pyx_v_numLevels;

  /* "cuda/bindings/runtime.pyx":10317
 *     def numLevels(self):
 *         return self._pvt_ptr[0].numLevels
 *     @numLevels.setter             # <<<<<<<<<<<<<<
 *     def numLevels(self, unsigned int numLevels):
 *         self._pvt_ptr[0].numLevels = numLevels
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10320
 *     def numLevels(self, unsigned int numLevels):
 *         self._pvt_ptr[0].numLevels = numLevels
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10322
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10320
 *     def numLevels(self, unsigned int numLevels):
 *         self._pvt_ptr[0].numLevels = numLevels
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10323
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[16];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":10325
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct9:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 10325, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (16));

  /* "cuda/bindings/runtime.pyx":10323
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__, "cudaExternalMemoryMipmappedArrayDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__, "cudaExternalMemoryMipmappedArrayDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalMemoryMipmappedArrayDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10341
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10341, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10341, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10341, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10341, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10341, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10341, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10341, __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.runtime.anon_struct9.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10342
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreHandleDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10341
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10344
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10344, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10344, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10344, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10344, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10344, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10344, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10344, __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.runtime.anon_struct9.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10346
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10348
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_struct9_6getPtr, "anon_struct9.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct9_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct9_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10349
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).handle.win32))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10348
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10350
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10351
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10352
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['handle : ' + hex(self.handle)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10352, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10353
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10354
 *             str_list = []
 *             try:
 *                 str_list += ['handle : ' + hex(self.handle)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_handle_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10354, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10354, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_handle, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10354, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10354, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10354, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10354, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10353
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10355
 *             try:
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10355, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10356
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['name : ' + hex(self.name)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10356, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_handle_ValueError) != (0)) __PYX_ERR(0, 10356, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10356, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10353
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + hex(self.handle)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10357
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10358
 *                 str_list += ['handle : <ValueError>']
 *             try:
 *                 str_list += ['name : ' + hex(self.name)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10358, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10358, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_name_2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10358, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10358, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10358, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10358, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10357
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10359
 *             try:
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10359, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10360
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10360, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_name_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_name_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_name_ValueError) != (0)) __PYX_ERR(0, 10360, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10360, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10357
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['name : ' + hex(self.name)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10361
 *             except ValueError:
 *                 str_list += ['name : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10361, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10351
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10363
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def handle(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10350
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10364
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_6handle_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6handle___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10366
 *     @property
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle             # <<<<<<<<<<<<<<
 *     @handle.setter
 *     def handle(self, handle):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).handle.win32.handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10364
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.handle.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10367
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle):
 *         _chandle = _HelperInputVoidPtr(handle)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6handle_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self), ((PyObject *)__pyx_v_handle));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, PyObject *__pyx_v_handle) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__chandle = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10369
 *     @handle.setter
 *     def handle(self, handle):
 *         _chandle = _HelperInputVoidPtr(handle)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].handle.win32.handle = <void*><void_ptr>_chandle.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_handle};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10369, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__chandle = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10370
 *     def handle(self, handle):
 *         _chandle = _HelperInputVoidPtr(handle)
 *         self._pvt_ptr[0].handle.win32.handle = <void*><void_ptr>_chandle.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def name(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__chandle), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10370, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).handle.win32.handle = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":10367
 *     def handle(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle):
 *         _chandle = _HelperInputVoidPtr(handle)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__chandle);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10371
 *         _chandle = _HelperInputVoidPtr(handle)
 *         self._pvt_ptr[0].handle.win32.handle = <void*><void_ptr>_chandle.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_4name_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4name___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4name___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10373
 *     @property
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name             # <<<<<<<<<<<<<<
 *     @name.setter
 *     def name(self, name):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).handle.win32.name)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10371
 *         _chandle = _HelperInputVoidPtr(handle)
 *         self._pvt_ptr[0].handle.win32.handle = <void*><void_ptr>_chandle.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10374
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name
 *     @name.setter             # <<<<<<<<<<<<<<
 *     def name(self, name):
 *         _cname = _HelperInputVoidPtr(name)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4name_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self), ((PyObject *)__pyx_v_name));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_4name_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, PyObject *__pyx_v_name) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cname = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10376
 *     @name.setter
 *     def name(self, name):
 *         _cname = _HelperInputVoidPtr(name)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].handle.win32.name = <void*><void_ptr>_cname.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_name};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10376, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cname = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10377
 *     def name(self, name):
 *         _cname = _HelperInputVoidPtr(name)
 *         self._pvt_ptr[0].handle.win32.name = <void*><void_ptr>_cname.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union3:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cname), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10377, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).handle.win32.name = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":10374
 *     def name(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.win32.name
 *     @name.setter             # <<<<<<<<<<<<<<
 *     def name(self, name):
 *         _cname = _HelperInputVoidPtr(name)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cname);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct9_10__reduce_cython__, "anon_struct9.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct9_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct9_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_struct9_12__setstate_cython__, "anon_struct9.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_struct9_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct9_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct9.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_struct9_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct9.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10395
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10395, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10395, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10395, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10395, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10395, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10395, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10395, __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.runtime.anon_union3.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10396
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreHandleDesc *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10395
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10398
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._win32 = anon_struct9(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10398, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10398, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10398, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10398, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10398, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10398, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10398, __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.runtime.anon_union3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":10400
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._win32 = anon_struct9(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10400, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10400, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_win32);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_win32);
  __pyx_v_self->_win32 = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10398
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._win32 = anon_struct9(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10401
 *         pass
 *         self._win32 = anon_struct9(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10403
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_7getPtr(PyObject *__pyx_v_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_7runtime_11anon_union3_6getPtr, "anon_union3.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union3_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union3_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10404
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).handle))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10403
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10405
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr133__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10406
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10407
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['fd : ' + str(self.fd)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10408
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10409
 *             str_list = []
 *             try:
 *                 str_list += ['fd : ' + str(self.fd)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_fd_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10409, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10409, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_fd, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10409, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10409, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10409, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10409, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10408
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10410
 *             try:
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['fd : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10410, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10411
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10411, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_fd_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_fd_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_fd_ValueError) != (0)) __PYX_ERR(0, 10411, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10411, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10408
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fd : ' + str(self.fd)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10412
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10413
 *                 str_list += ['fd : <ValueError>']
 *             try:
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10413, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_win32_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10413, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10413, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10413, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10413, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10413, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr133__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr133__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10413, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10413, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr133__pyx_v_line); __pyx_10genexpr133__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr133__pyx_v_line); __pyx_10genexpr133__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10413, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_win32, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10413, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10413, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10413, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10413, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10412
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10414
 *             try:
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32 : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10414, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10415
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10415, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_win32_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_win32_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_win32_ValueError) != (0)) __PYX_ERR(0, 10415, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10415, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10412
 *             except ValueError:
 *                 str_list += ['fd : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['win32 :\n' + '\n'.join(['    ' + line for line in str(self.win32).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10416
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10417
 *                 str_list += ['win32 : <ValueError>']
 *             try:
 *                 str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['nvSciSyncObj : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_nvSciSyncObj_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10417, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10417, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_nvSciSyncObj, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10417, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10417, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10417, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10417, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10416
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10418
 *             try:
 *                 str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSyncObj : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 10418, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10419
 *                 str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)]
 *             except ValueError:
 *                 str_list += ['nvSciSyncObj : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10419, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_nvSciSyncObj_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_nvSciSyncObj_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_nvSciSyncObj_ValueError) != (0)) __PYX_ERR(0, 10419, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10419, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":10416
 *             except ValueError:
 *                 str_list += ['win32 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10420
 *             except ValueError:
 *                 str_list += ['nvSciSyncObj : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10406
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10422
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def fd(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10405
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr133__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10423
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_2fd_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_2fd_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2fd___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2fd___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10425
 *     @property
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd             # <<<<<<<<<<<<<<
 *     @fd.setter
 *     def fd(self, int fd):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).handle.fd); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10423
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.fd.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10426
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd
 *     @fd.setter             # <<<<<<<<<<<<<<
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_2fd_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_fd); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_2fd_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_fd) {
  int __pyx_v_fd;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_fd); {
    __pyx_v_fd = __Pyx_PyLong_As_int(__pyx_arg_fd); if (unlikely((__pyx_v_fd == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10427, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.fd.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2fd_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self), ((int)__pyx_v_fd));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_2fd_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, int __pyx_v_fd) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10428
 *     @fd.setter
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd             # <<<<<<<<<<<<<<
 *     @property
 *     def win32(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).handle.fd = __pyx_v_fd;

  /* "cuda/bindings/runtime.pyx":10426
 *     def fd(self):
 *         return self._pvt_ptr[0].handle.fd
 *     @fd.setter             # <<<<<<<<<<<<<<
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10429
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd
 *     @property             # <<<<<<<<<<<<<<
 *     def win32(self):
 *         return self._win32
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5win32_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5win32_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_5win32___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_5win32___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10431
 *     @property
 *     def win32(self):
 *         return self._win32             # <<<<<<<<<<<<<<
 *     @win32.setter
 *     def win32(self, win32 not None : anon_struct9):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_win32);
  __pyx_r = ((PyObject *)__pyx_v_self->_win32);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10429
 *     def fd(self, int fd):
 *         self._pvt_ptr[0].handle.fd = fd
 *     @property             # <<<<<<<<<<<<<<
 *     def win32(self):
 *         return self._win32
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10432
 *     def win32(self):
 *         return self._win32
 *     @win32.setter             # <<<<<<<<<<<<<<
 *     def win32(self, win32 not None : anon_struct9):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct9*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5win32_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5win32_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_win32) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_win32), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9, 0, "win32", 0))) __PYX_ERR(0, 10433, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_5win32_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)__pyx_v_win32));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_5win32_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *__pyx_v_win32) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10434
 *     @win32.setter
 *     def win32(self, win32 not None : anon_struct9):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct9*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))             # <<<<<<<<<<<<<<
 *     @property
 *     def nvSciSyncObj(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_win32);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10434, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).handle.win32), ((struct anon_struct9 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).handle.win32))));

  /* "cuda/bindings/runtime.pyx":10432
 *     def win32(self):
 *         return self._win32
 *     @win32.setter             # <<<<<<<<<<<<<<
 *     def win32(self, win32 not None : anon_struct9):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct9*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.win32.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10435
 *     def win32(self, win32 not None : anon_struct9):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct9*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))
 *     @property             # <<<<<<<<<<<<<<
 *     def nvSciSyncObj(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciSyncObj
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10437
 *     @property
 *     def nvSciSyncObj(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciSyncObj             # <<<<<<<<<<<<<<
 *     @nvSciSyncObj.setter
 *     def nvSciSyncObj(self, nvSciSyncObj):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).handle.nvSciSyncObj)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10435
 *     def win32(self, win32 not None : anon_struct9):
 *         string.memcpy(&self._pvt_ptr[0].handle.win32, <cyruntime.anon_struct9*><void_ptr>win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32))
 *     @property             # <<<<<<<<<<<<<<
 *     def nvSciSyncObj(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciSyncObj
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.nvSciSyncObj.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10438
 *     def nvSciSyncObj(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciSyncObj
 *     @nvSciSyncObj.setter             # <<<<<<<<<<<<<<
 *     def nvSciSyncObj(self, nvSciSyncObj):
 *         _cnvSciSyncObj = _HelperInputVoidPtr(nvSciSyncObj)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSyncObj); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSyncObj) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self), ((PyObject *)__pyx_v_nvSciSyncObj));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, PyObject *__pyx_v_nvSciSyncObj) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cnvSciSyncObj = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10440
 *     @nvSciSyncObj.setter
 *     def nvSciSyncObj(self, nvSciSyncObj):
 *         _cnvSciSyncObj = _HelperInputVoidPtr(nvSciSyncObj)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].handle.nvSciSyncObj = <void*><void_ptr>_cnvSciSyncObj.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_nvSciSyncObj};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10440, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cnvSciSyncObj = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10441
 *     def nvSciSyncObj(self, nvSciSyncObj):
 *         _cnvSciSyncObj = _HelperInputVoidPtr(nvSciSyncObj)
 *         self._pvt_ptr[0].handle.nvSciSyncObj = <void*><void_ptr>_cnvSciSyncObj.cptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalSemaphoreHandleDesc:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cnvSciSyncObj), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10441, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).handle.nvSciSyncObj = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":10438
 *     def nvSciSyncObj(self):
 *         return <void_ptr>self._pvt_ptr[0].handle.nvSciSyncObj
 *     @nvSciSyncObj.setter             # <<<<<<<<<<<<<<
 *     def nvSciSyncObj(self, nvSciSyncObj):
 *         _cnvSciSyncObj = _HelperInputVoidPtr(nvSciSyncObj)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.nvSciSyncObj.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cnvSciSyncObj);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_11anon_union3_10__reduce_cython__, "anon_union3.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union3_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union3_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_11anon_union3_12__setstate_cython__, "anon_union3.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union3_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union3_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union3_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10463
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalSemaphoreHandleDesc))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10463, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10463, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10463, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10463, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10463, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10463, __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.runtime.cudaExternalSemaphoreHandleDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct cudaExternalSemaphoreHandleDesc *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":10464
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalSemaphoreHandleDesc))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10465
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalSemaphoreHandleDesc))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct cudaExternalSemaphoreHandleDesc *)calloc(1, (sizeof(struct cudaExternalSemaphoreHandleDesc))));

    /* "cuda/bindings/runtime.pyx":10466
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalSemaphoreHandleDesc))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":10464
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalSemaphoreHandleDesc))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":10468
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreHandleDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":10463
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>calloc(1, sizeof(cyruntime.cudaExternalSemaphoreHandleDesc))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10469
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._handle = anon_union3(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10469, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10469, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10469, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10469, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10469, __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.runtime.cudaExternalSemaphoreHandleDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":10471
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._handle = anon_union3(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10471, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10471, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_handle);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_handle);
  __pyx_v_self->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10469
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreHandleDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._handle = anon_union3(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10472
 *         pass
 *         self._handle = anon_union3(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":10473
 *         self._handle = anon_union3(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10474
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":10473
 *         self._handle = anon_union3(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":10472
 *         pass
 *         self._handle = anon_union3(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10475
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_7getPtr(PyObject *__pyx_v_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_7runtime_31cudaExternalSemaphoreHandleDesc_6getPtr, "cudaExternalSemaphoreHandleDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10476
 *             free(self._val_ptr)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10475
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10477
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr134__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10478
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10479
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10479, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10480
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10481
 *             str_list = []
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10481, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10481, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10481, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10481, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10481, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10481, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10480
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10482
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10482, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10483
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10483, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 10483, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10483, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10480
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10484
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10485
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10485, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_handle_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10485, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10485, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10485, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10485, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10485, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr134__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr134__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10485, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10485, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr134__pyx_v_line); __pyx_10genexpr134__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr134__pyx_v_line); __pyx_10genexpr134__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10485, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_handle_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10485, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10485, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10485, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10485, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10484
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10486
 *             try:
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10486, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10487
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10487, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_handle_ValueError) != (0)) __PYX_ERR(0, 10487, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10487, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10484
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle :\n' + '\n'.join(['    ' + line for line in str(self.handle).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10488
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10489
 *                 str_list += ['handle : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10489, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10489, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10489, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10489, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10489, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10489, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10488
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10490
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 10490, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10491
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10491, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 10491, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10491, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":10488
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10492
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10493
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10493, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10493, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10493, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10493, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10493, __pyx_L35_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10493, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10492
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10494
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 10494, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10495
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10495, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10495, __pyx_L37_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10495, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":10492
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10496
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10496, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10478
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10498
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10477
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr134__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10499
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalSemaphoreHandleType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10501
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalSemaphoreHandleType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaExternalSemaphoreHandleType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaExternalSemaphoreHandl); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 10501, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":10502
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalSemaphoreHandleType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaExternalSemaphoreHandleType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10501
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalSemaphoreHandleType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaExternalSemaphoreHandleType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":10503
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalSemaphoreHandleType:
 *             return None
 *         return _dict_cudaExternalSemaphoreHandleType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaExternalSemaphoreHandleType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaExternalSemaphoreHandl); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10499
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaExternalSemaphoreHandleType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10504
 *             return None
 *         return _dict_cudaExternalSemaphoreHandleType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaExternalSemaphoreHandleType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 10505, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaExternalSemaphoreHandleType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10506
 *     @type.setter
 *     def type(self, type not None : cudaExternalSemaphoreHandleType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def handle(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaExternalSemaphoreHandleType)__Pyx_PyLong_As_enum__cudaExternalSemaphoreHandleType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 10506, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":10504
 *             return None
 *         return _dict_cudaExternalSemaphoreHandleType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaExternalSemaphoreHandleType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10507
 *     def type(self, type not None : cudaExternalSemaphoreHandleType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return self._handle
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10509
 *     @property
 *     def handle(self):
 *         return self._handle             # <<<<<<<<<<<<<<
 *     @handle.setter
 *     def handle(self, handle not None : anon_union3):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_handle);
  __pyx_r = ((PyObject *)__pyx_v_self->_handle);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10507
 *     def type(self, type not None : cudaExternalSemaphoreHandleType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return self._handle
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10510
 *     def handle(self):
 *         return self._handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle not None : anon_union3):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union3*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handle), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3, 0, "handle", 0))) __PYX_ERR(0, 10511, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)__pyx_v_handle));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *__pyx_v_handle) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10512
 *     @handle.setter
 *     def handle(self, handle not None : anon_union3):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union3*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_handle);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10512, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10512, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).handle), ((union anon_union3 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).handle))));

  /* "cuda/bindings/runtime.pyx":10510
 *     def handle(self):
 *         return self._handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle not None : anon_union3):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union3*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10513
 *     def handle(self, handle not None : anon_union3):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union3*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10515
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10513
 *     def handle(self, handle not None : anon_union3):
 *         string.memcpy(&self._pvt_ptr[0].handle, <cyruntime.anon_union3*><void_ptr>handle.getPtr(), sizeof(self._pvt_ptr[0].handle))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10516
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10517, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10518
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":10516
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10519
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10521
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10519
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10522
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[16];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":10524
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct10:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 10524, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (16));

  /* "cuda/bindings/runtime.pyx":10522
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__, "cudaExternalSemaphoreHandleDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__, "cudaExternalSemaphoreHandleDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalSemaphoreHandleDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10538
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10538, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10538, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10538, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10538, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10538, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10538, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10538, __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.runtime.anon_struct10.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10539
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10538
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10541
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10541, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10541, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10541, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10541, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10541, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10541, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10541, __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.runtime.anon_struct10.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10543
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10545
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct10_6getPtr, "anon_struct10.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct10_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct10_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10546
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.fence             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).params.fence))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10545
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct10.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10547
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10548
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10549
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['value : ' + str(self.value)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10550
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10551
 *             str_list = []
 *             try:
 *                 str_list += ['value : ' + str(self.value)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10551, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10551, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_value_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10551, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10551, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10551, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10551, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10550
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10552
 *             try:
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct10.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10552, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10553
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10553, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_value_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_value_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_value_ValueError) != (0)) __PYX_ERR(0, 10553, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10553, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10550
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10554
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10554, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10548
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10556
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def value(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10547
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct10.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10557
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5value_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_5value___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_5value___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10559
 *     @property
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value             # <<<<<<<<<<<<<<
 *     @value.setter
 *     def value(self, unsigned long long value):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).params.fence.value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10557
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct10.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10560
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value
 *     @value.setter             # <<<<<<<<<<<<<<
 *     def value(self, unsigned long long value):
 *         self._pvt_ptr[0].params.fence.value = value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  unsigned PY_LONG_LONG __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_value); if (unlikely((__pyx_v_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10561, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct10.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_5value_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_5value_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_value) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10562
 *     @value.setter
 *     def value(self, unsigned long long value):
 *         self._pvt_ptr[0].params.fence.value = value             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union4:
*/
  (__pyx_v_self->_pvt_ptr[0]).params.fence.value = __pyx_v_value;

  /* "cuda/bindings/runtime.pyx":10560
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value
 *     @value.setter             # <<<<<<<<<<<<<<
 *     def value(self, unsigned long long value):
 *         self._pvt_ptr[0].params.fence.value = value
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct10_10__reduce_cython__, "anon_struct10.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct10_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct10_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct10.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct10_12__setstate_cython__, "anon_struct10.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct10_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct10_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct10.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct10_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct10.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10578
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10578, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10578, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10578, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10578, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10578, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10578, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10578, __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.runtime.anon_union4.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union4___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10579
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10578
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10581
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10581, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10581, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10581, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10581, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10581, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10581, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10581, __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.runtime.anon_union4.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10583
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10585
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_7getPtr(PyObject *__pyx_v_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_7runtime_11anon_union4_6getPtr, "anon_union4.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union4_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union4_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10586
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).params.nvSciSync))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10585
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10587
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10588
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10589
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['fence : ' + hex(self.fence)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10590
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10591
 *             str_list = []
 *             try:
 *                 str_list += ['fence : ' + hex(self.fence)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_fence_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10591, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10591, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_fence, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10591, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10591, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10591, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10591, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10590
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10592
 *             try:
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10592, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10593
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10593, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_fence_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_fence_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_fence_ValueError) != (0)) __PYX_ERR(0, 10593, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10593, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10590
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10594
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10595
 *                 str_list += ['fence : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10595, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10595, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10595, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10595, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10595, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10595, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10594
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10596
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10596, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10597
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10597, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10597, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10597, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10594
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10598
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10588
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10600
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def fence(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10587
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10601
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5fence_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5fence_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_5fence___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_5fence___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10603
 *     @property
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence             # <<<<<<<<<<<<<<
 *     @fence.setter
 *     def fence(self, fence):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).params.nvSciSync.fence)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10601
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.fence.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10604
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence
 *     @fence.setter             # <<<<<<<<<<<<<<
 *     def fence(self, fence):
 *         _cfence = _HelperInputVoidPtr(fence)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_5fence_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self), ((PyObject *)__pyx_v_fence));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_5fence_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, PyObject *__pyx_v_fence) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cfence = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10606
 *     @fence.setter
 *     def fence(self, fence):
 *         _cfence = _HelperInputVoidPtr(fence)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].params.nvSciSync.fence = <void*><void_ptr>_cfence.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_fence};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10606, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cfence = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10607
 *     def fence(self, fence):
 *         _cfence = _HelperInputVoidPtr(fence)
 *         self._pvt_ptr[0].params.nvSciSync.fence = <void*><void_ptr>_cfence.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cfence), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).params.nvSciSync.fence = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":10604
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence
 *     @fence.setter             # <<<<<<<<<<<<<<
 *     def fence(self, fence):
 *         _cfence = _HelperInputVoidPtr(fence)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.fence.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cfence);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10608
 *         _cfence = _HelperInputVoidPtr(fence)
 *         self._pvt_ptr[0].params.nvSciSync.fence = <void*><void_ptr>_cfence.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10610
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, unsigned long long reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).params.nvSciSync.reserved); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10608
 *         _cfence = _HelperInputVoidPtr(fence)
 *         self._pvt_ptr[0].params.nvSciSync.fence = <void*><void_ptr>_cfence.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10611
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, unsigned long long reserved):
 *         self._pvt_ptr[0].params.nvSciSync.reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved) {
  unsigned PY_LONG_LONG __pyx_v_reserved;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_reserved); {
    __pyx_v_reserved = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_reserved); if (unlikely((__pyx_v_reserved == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10612, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_reserved) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10613
 *     @reserved.setter
 *     def reserved(self, unsigned long long reserved):
 *         self._pvt_ptr[0].params.nvSciSync.reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct11:
*/
  (__pyx_v_self->_pvt_ptr[0]).params.nvSciSync.reserved = __pyx_v_reserved;

  /* "cuda/bindings/runtime.pyx":10611
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, unsigned long long reserved):
 *         self._pvt_ptr[0].params.nvSciSync.reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_11anon_union4_10__reduce_cython__, "anon_union4.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union4_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union4_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_11anon_union4_12__setstate_cython__, "anon_union4.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union4_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union4_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union4_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union4_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10627
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10627, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10627, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10627, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10627, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10627, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10627, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10627, __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.runtime.anon_struct11.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10628
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10627
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10630
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10630, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10630, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10630, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10630, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10630, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10630, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10630, __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.runtime.anon_struct11.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10632
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10634
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct11_6getPtr, "anon_struct11.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct11_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct11_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10635
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).params.keyedMutex))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10634
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct11.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10636
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10637
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10638
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['key : ' + str(self.key)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10638, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10639
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10640
 *             str_list = []
 *             try:
 *                 str_list += ['key : ' + str(self.key)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['key : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_key_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10640, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10640, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_key, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10640, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10640, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10640, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10640, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10639
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10641
 *             try:
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['key : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct11.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10641, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10642
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:
 *                 str_list += ['key : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10642, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_key_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_key_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_key_ValueError) != (0)) __PYX_ERR(0, 10642, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10642, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10639
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10643
 *             except ValueError:
 *                 str_list += ['key : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10637
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10645
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def key(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10636
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct11.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10646
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3key_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3key_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_3key___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_3key___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10648
 *     @property
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key             # <<<<<<<<<<<<<<
 *     @key.setter
 *     def key(self, unsigned long long key):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).params.keyedMutex.key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10646
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct11.key.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10649
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key
 *     @key.setter             # <<<<<<<<<<<<<<
 *     def key(self, unsigned long long key):
 *         self._pvt_ptr[0].params.keyedMutex.key = key
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3key_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3key_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
  unsigned PY_LONG_LONG __pyx_v_key;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_key); {
    __pyx_v_key = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_key); if (unlikely((__pyx_v_key == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10650, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct11.key.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_3key_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_3key_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_key) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10651
 *     @key.setter
 *     def key(self, unsigned long long key):
 *         self._pvt_ptr[0].params.keyedMutex.key = key             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct12:
*/
  (__pyx_v_self->_pvt_ptr[0]).params.keyedMutex.key = __pyx_v_key;

  /* "cuda/bindings/runtime.pyx":10649
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key
 *     @key.setter             # <<<<<<<<<<<<<<
 *     def key(self, unsigned long long key):
 *         self._pvt_ptr[0].params.keyedMutex.key = key
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct11_10__reduce_cython__, "anon_struct11.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct11_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct11_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct11.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct11_12__setstate_cython__, "anon_struct11.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct11_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct11_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct11.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct11_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct11.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10671
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10671, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10671, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10671, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10671, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10671, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10671, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10671, __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.runtime.anon_struct12.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10672
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10671
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10674
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._fence = anon_struct10(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10674, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10674, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10674, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10674, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10674, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10674, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10674, __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.runtime.anon_struct12.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":10676
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._fence = anon_struct10(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._nvSciSync = anon_union4(_ptr=<void_ptr>self._pvt_ptr)
 *         self._keyedMutex = anon_struct11(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10676, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10676, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10676, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10676, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_fence);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_fence);
  __pyx_v_self->_fence = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10677
 *         pass
 *         self._fence = anon_struct10(_ptr=<void_ptr>self._pvt_ptr)
 *         self._nvSciSync = anon_union4(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._keyedMutex = anon_struct11(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10677, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10677, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_nvSciSync);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_nvSciSync);
  __pyx_v_self->_nvSciSync = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10678
 *         self._fence = anon_struct10(_ptr=<void_ptr>self._pvt_ptr)
 *         self._nvSciSync = anon_union4(_ptr=<void_ptr>self._pvt_ptr)
 *         self._keyedMutex = anon_struct11(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10678, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10678, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_keyedMutex);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_keyedMutex);
  __pyx_v_self->_keyedMutex = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10674
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._fence = anon_struct10(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10679
 *         self._nvSciSync = anon_union4(_ptr=<void_ptr>self._pvt_ptr)
 *         self._keyedMutex = anon_struct11(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10681
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct12_6getPtr, "anon_struct12.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct12_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct12_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10682
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).params))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10682, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10681
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10683
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr135__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr136__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr137__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10684
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10685
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10685, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10686
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10687
 *             str_list = []
 *             try:
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10687, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_fence_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10687, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10687, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10687, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10687, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10687, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr135__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr135__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10687, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10687, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr135__pyx_v_line); __pyx_10genexpr135__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr135__pyx_v_line); __pyx_10genexpr135__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10687, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_fence_3, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10687, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10687, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10687, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10687, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10686
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10688
 *             try:
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 10688, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10689
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10689, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_fence_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_fence_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_fence_ValueError) != (0)) __PYX_ERR(0, 10689, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10689, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10686
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10690
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10691
 *                 str_list += ['fence : <ValueError>']
 *             try:
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10691, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_nvSciSync_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10691, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10691, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10691, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_7; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10691, __pyx_L27_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10691, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_10genexpr136__pyx_v_line, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr136__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10691, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 10691, __pyx_L27_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr136__pyx_v_line); __pyx_10genexpr136__pyx_v_line = 0;
          goto __pyx_L31_exit_scope;
          __pyx_L27_error:;
          __Pyx_XDECREF(__pyx_10genexpr136__pyx_v_line); __pyx_10genexpr136__pyx_v_line = 0;
          goto __pyx_L19_error;
          __pyx_L31_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10691, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_nvSciSync, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10691, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10691, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10691, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10691, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10690
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10692
 *             try:
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 10692, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":10693
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10693, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_nvSciSync_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_nvSciSync_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_nvSciSync_ValueError) != (0)) __PYX_ERR(0, 10693, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10693, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":10690
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10694
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10695
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10695, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_keyedMutex_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10695, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10695, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10695, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_2; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10695, __pyx_L42_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10695, __pyx_L42_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr137__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr137__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10695, __pyx_L42_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 10695, __pyx_L42_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr137__pyx_v_line); __pyx_10genexpr137__pyx_v_line = 0;
          goto __pyx_L46_exit_scope;
          __pyx_L42_error:;
          __Pyx_XDECREF(__pyx_10genexpr137__pyx_v_line); __pyx_10genexpr137__pyx_v_line = 0;
          goto __pyx_L34_error;
          __pyx_L46_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10695, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_keyedMutex, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10695, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10695, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 10695, __pyx_L34_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10695, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":10694
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L39_try_end;
      __pyx_L34_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10696
 *             try:
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10696, __pyx_L36_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10697
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10697, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_keyedMutex_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_keyedMutex_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_keyedMutex_ValueError) != (0)) __PYX_ERR(0, 10697, __pyx_L36_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10697, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L35_exception_handled;
      }
      goto __pyx_L36_except_error;

      /* "cuda/bindings/runtime.pyx":10694
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:
*/
      __pyx_L36_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L35_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L39_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10698
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10699
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10699, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10699, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10699, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10699, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10699, __pyx_L49_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10699, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10698
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L54_try_end;
      __pyx_L49_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10700
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 10700, __pyx_L51_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":10701
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10701, __pyx_L51_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10701, __pyx_L51_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10701, __pyx_L51_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L50_exception_handled;
      }
      goto __pyx_L51_except_error;

      /* "cuda/bindings/runtime.pyx":10698
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L51_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L50_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L54_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10702
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10684
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10704
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def fence(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10683
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr135__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr136__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr137__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10705
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fence(self):
 *         return self._fence
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5fence_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5fence_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_5fence___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_5fence___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10707
 *     @property
 *     def fence(self):
 *         return self._fence             # <<<<<<<<<<<<<<
 *     @fence.setter
 *     def fence(self, fence not None : anon_struct10):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_fence);
  __pyx_r = ((PyObject *)__pyx_v_self->_fence);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10705
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fence(self):
 *         return self._fence
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10708
 *     def fence(self):
 *         return self._fence
 *     @fence.setter             # <<<<<<<<<<<<<<
 *     def fence(self, fence not None : anon_struct10):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct10*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fence), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10, 0, "fence", 0))) __PYX_ERR(0, 10709, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_5fence_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)__pyx_v_fence));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_5fence_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *__pyx_v_fence) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10710
 *     @fence.setter
 *     def fence(self, fence not None : anon_struct10):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct10*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))             # <<<<<<<<<<<<<<
 *     @property
 *     def nvSciSync(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_fence);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).params.fence), ((struct anon_struct10 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).params.fence))));

  /* "cuda/bindings/runtime.pyx":10708
 *     def fence(self):
 *         return self._fence
 *     @fence.setter             # <<<<<<<<<<<<<<
 *     def fence(self, fence not None : anon_struct10):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct10*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.fence.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10711
 *     def fence(self, fence not None : anon_struct10):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct10*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))
 *     @property             # <<<<<<<<<<<<<<
 *     def nvSciSync(self):
 *         return self._nvSciSync
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10713
 *     @property
 *     def nvSciSync(self):
 *         return self._nvSciSync             # <<<<<<<<<<<<<<
 *     @nvSciSync.setter
 *     def nvSciSync(self, nvSciSync not None : anon_union4):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_nvSciSync);
  __pyx_r = ((PyObject *)__pyx_v_self->_nvSciSync);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10711
 *     def fence(self, fence not None : anon_struct10):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct10*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))
 *     @property             # <<<<<<<<<<<<<<
 *     def nvSciSync(self):
 *         return self._nvSciSync
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10714
 *     def nvSciSync(self):
 *         return self._nvSciSync
 *     @nvSciSync.setter             # <<<<<<<<<<<<<<
 *     def nvSciSync(self, nvSciSync not None : anon_union4):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union4*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSync); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSync) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nvSciSync), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4, 0, "nvSciSync", 0))) __PYX_ERR(0, 10715, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)__pyx_v_nvSciSync));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *__pyx_v_nvSciSync) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10716
 *     @nvSciSync.setter
 *     def nvSciSync(self, nvSciSync not None : anon_union4):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union4*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))             # <<<<<<<<<<<<<<
 *     @property
 *     def keyedMutex(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_nvSciSync);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10716, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10716, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).params.nvSciSync), ((union anon_union4 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).params.nvSciSync))));

  /* "cuda/bindings/runtime.pyx":10714
 *     def nvSciSync(self):
 *         return self._nvSciSync
 *     @nvSciSync.setter             # <<<<<<<<<<<<<<
 *     def nvSciSync(self, nvSciSync not None : anon_union4):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union4*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.nvSciSync.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10717
 *     def nvSciSync(self, nvSciSync not None : anon_union4):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union4*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))
 *     @property             # <<<<<<<<<<<<<<
 *     def keyedMutex(self):
 *         return self._keyedMutex
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10719
 *     @property
 *     def keyedMutex(self):
 *         return self._keyedMutex             # <<<<<<<<<<<<<<
 *     @keyedMutex.setter
 *     def keyedMutex(self, keyedMutex not None : anon_struct11):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_keyedMutex);
  __pyx_r = ((PyObject *)__pyx_v_self->_keyedMutex);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10717
 *     def nvSciSync(self, nvSciSync not None : anon_union4):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union4*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))
 *     @property             # <<<<<<<<<<<<<<
 *     def keyedMutex(self):
 *         return self._keyedMutex
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10720
 *     def keyedMutex(self):
 *         return self._keyedMutex
 *     @keyedMutex.setter             # <<<<<<<<<<<<<<
 *     def keyedMutex(self, keyedMutex not None : anon_struct11):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct11*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_keyedMutex); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_keyedMutex) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_keyedMutex), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11, 0, "keyedMutex", 0))) __PYX_ERR(0, 10721, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)__pyx_v_keyedMutex));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *__pyx_v_keyedMutex) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10722
 *     @keyedMutex.setter
 *     def keyedMutex(self, keyedMutex not None : anon_struct11):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct11*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_keyedMutex);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10722, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10722, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).params.keyedMutex), ((struct anon_struct11 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).params.keyedMutex))));

  /* "cuda/bindings/runtime.pyx":10720
 *     def keyedMutex(self):
 *         return self._keyedMutex
 *     @keyedMutex.setter             # <<<<<<<<<<<<<<
 *     def keyedMutex(self, keyedMutex not None : anon_struct11):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct11*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.keyedMutex.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10723
 *     def keyedMutex(self, keyedMutex not None : anon_struct11):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct11*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10725
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).params.reserved, 12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10723
 *     def keyedMutex(self, keyedMutex not None : anon_struct11):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct11*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10726
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].params.reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[12];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":10728
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].params.reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalSemaphoreSignalParams:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 12) < 0))) __PYX_ERR(0, 10728, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).params.reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).params.reserved[0]) * (12));

  /* "cuda/bindings/runtime.pyx":10726
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].params.reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct12_10__reduce_cython__, "anon_struct12.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct12_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct12_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct12_12__setstate_cython__, "anon_struct12.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct12_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct12_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct12.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct12_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct12.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10755
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10755, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10755, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10755, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10755, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10755, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10755, __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.runtime.cudaExternalSemaphoreSignalParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":10756
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10757
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":10756
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":10759
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreSignalParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":10755
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10760
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._params = anon_struct12(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10760, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10760, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10760, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10760, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10760, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 10760, __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.runtime.cudaExternalSemaphoreSignalParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":10762
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._params = anon_struct12(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10762, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10762, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_params);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_params);
  __pyx_v_self->_params = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10760
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._params = anon_struct12(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10763
 *         pass
 *         self._params = anon_struct12(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10765
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_7getPtr(PyObject *__pyx_v_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_7runtime_33cudaExternalSemaphoreSignalParams_6getPtr, "cudaExternalSemaphoreSignalParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10766
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10765
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10767
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr138__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10768
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10769
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10770
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10771
 *             str_list = []
 *             try:
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10771, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_params_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10771, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10771, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10771, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10771, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10771, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr138__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr138__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10771, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10771, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr138__pyx_v_line); __pyx_10genexpr138__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr138__pyx_v_line); __pyx_10genexpr138__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10771, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_params, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10771, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10771, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10771, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10771, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10770
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10772
 *             try:
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['params : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 10772, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10773
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10773, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_params_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_params_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_params_ValueError) != (0)) __PYX_ERR(0, 10773, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10773, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10770
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10774
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10775
 *                 str_list += ['params : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10775, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10775, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10775, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10775, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10775, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10775, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10774
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10776
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 10776, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10777
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10777, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 10777, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10777, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":10774
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10778
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10779
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10779, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10779, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10779, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10779, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10779, __pyx_L27_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10779, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10778
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10780
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 10780, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10781
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10781, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10781, __pyx_L29_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10781, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":10778
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10782
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10782, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10768
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10784
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def params(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10767
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr138__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10785
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def params(self):
 *         return self._params
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10787
 *     @property
 *     def params(self):
 *         return self._params             # <<<<<<<<<<<<<<
 *     @params.setter
 *     def params(self, params not None : anon_struct12):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_params);
  __pyx_r = ((PyObject *)__pyx_v_self->_params);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10785
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def params(self):
 *         return self._params
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10788
 *     def params(self):
 *         return self._params
 *     @params.setter             # <<<<<<<<<<<<<<
 *     def params(self, params not None : anon_struct12):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct12*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_params); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_params) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_params), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12, 0, "params", 0))) __PYX_ERR(0, 10789, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)__pyx_v_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *__pyx_v_params) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10790
 *     @params.setter
 *     def params(self, params not None : anon_struct12):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct12*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_params);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10790, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).params), ((struct anon_struct12 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).params))));

  /* "cuda/bindings/runtime.pyx":10788
 *     def params(self):
 *         return self._params
 *     @params.setter             # <<<<<<<<<<<<<<
 *     def params(self, params not None : anon_struct12):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct12*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.params.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10791
 *     def params(self, params not None : anon_struct12):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct12*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10793
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10791
 *     def params(self, params not None : anon_struct12):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct12*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10794
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10795, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10796
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":10794
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10797
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10799
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10797
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10800
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[16];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":10802
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct13:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 10802, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (16));

  /* "cuda/bindings/runtime.pyx":10800
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_33cudaExternalSemaphoreSignalParams_10__reduce_cython__, "cudaExternalSemaphoreSignalParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_33cudaExternalSemaphoreSignalParams_12__setstate_cython__, "cudaExternalSemaphoreSignalParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalSemaphoreSignalParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10816
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10816, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10816, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10816, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10816, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10816, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10816, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10816, __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.runtime.anon_struct13.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10817
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10816
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10819
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10819, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10819, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10819, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10819, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10819, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10819, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10819, __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.runtime.anon_struct13.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10821
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10823
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct13_6getPtr, "anon_struct13.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct13_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct13_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10824
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.fence             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).params.fence))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10823
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct13.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10825
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10826
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10827
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['value : ' + str(self.value)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10828
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10829
 *             str_list = []
 *             try:
 *                 str_list += ['value : ' + str(self.value)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10829, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10829, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_value_2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10829, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10829, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10829, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10829, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10828
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10830
 *             try:
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct13.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10830, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10831
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10831, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_value_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_value_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_value_ValueError) != (0)) __PYX_ERR(0, 10831, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10831, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10828
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['value : ' + str(self.value)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10832
 *             except ValueError:
 *                 str_list += ['value : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10832, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10826
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10834
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def value(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10825
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct13.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10835
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5value_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_5value___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_5value___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10837
 *     @property
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value             # <<<<<<<<<<<<<<
 *     @value.setter
 *     def value(self, unsigned long long value):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).params.fence.value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10835
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct13.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10838
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value
 *     @value.setter             # <<<<<<<<<<<<<<
 *     def value(self, unsigned long long value):
 *         self._pvt_ptr[0].params.fence.value = value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_value) {
  unsigned PY_LONG_LONG __pyx_v_value;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_value); {
    __pyx_v_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_value); if (unlikely((__pyx_v_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10839, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct13.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_5value_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_5value_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_value) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10840
 *     @value.setter
 *     def value(self, unsigned long long value):
 *         self._pvt_ptr[0].params.fence.value = value             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union5:
*/
  (__pyx_v_self->_pvt_ptr[0]).params.fence.value = __pyx_v_value;

  /* "cuda/bindings/runtime.pyx":10838
 *     def value(self):
 *         return self._pvt_ptr[0].params.fence.value
 *     @value.setter             # <<<<<<<<<<<<<<
 *     def value(self, unsigned long long value):
 *         self._pvt_ptr[0].params.fence.value = value
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct13_10__reduce_cython__, "anon_struct13.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct13_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct13_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct13.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct13_12__setstate_cython__, "anon_struct13.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct13_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct13_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct13.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct13_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct13.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10856
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10856, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10856, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10856, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10856, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10856, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10856, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10856, __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.runtime.anon_union5.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union5___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10857
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10856
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10859
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10859, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10859, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10859, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10859, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10859, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10859, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10859, __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.runtime.anon_union5.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10861
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10863
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_7getPtr(PyObject *__pyx_v_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_7runtime_11anon_union5_6getPtr, "anon_union5.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union5_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union5_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10864
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).params.nvSciSync))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10863
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10865
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10866
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10867
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['fence : ' + hex(self.fence)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10868
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10869
 *             str_list = []
 *             try:
 *                 str_list += ['fence : ' + hex(self.fence)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_fence_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10869, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10869, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_fence, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10869, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10869, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10869, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10869, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10868
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10870
 *             try:
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10870, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10871
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10871, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_fence_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_fence_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_fence_ValueError) != (0)) __PYX_ERR(0, 10871, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10871, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10868
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : ' + hex(self.fence)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10872
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10873
 *                 str_list += ['fence : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10873, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10873, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10873, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10873, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10873, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10873, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10872
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10874
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10874, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10875
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10875, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10875, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10875, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10872
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10876
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10866
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10878
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def fence(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10865
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10879
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5fence_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5fence_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_5fence___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_5fence___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10881
 *     @property
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence             # <<<<<<<<<<<<<<
 *     @fence.setter
 *     def fence(self, fence):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).params.nvSciSync.fence)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10879
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.fence.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10882
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence
 *     @fence.setter             # <<<<<<<<<<<<<<
 *     def fence(self, fence):
 *         _cfence = _HelperInputVoidPtr(fence)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_5fence_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self), ((PyObject *)__pyx_v_fence));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_5fence_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, PyObject *__pyx_v_fence) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cfence = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":10884
 *     @fence.setter
 *     def fence(self, fence):
 *         _cfence = _HelperInputVoidPtr(fence)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].params.nvSciSync.fence = <void*><void_ptr>_cfence.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_fence};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10884, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cfence = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10885
 *     def fence(self, fence):
 *         _cfence = _HelperInputVoidPtr(fence)
 *         self._pvt_ptr[0].params.nvSciSync.fence = <void*><void_ptr>_cfence.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cfence), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10885, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).params.nvSciSync.fence = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":10882
 *     def fence(self):
 *         return <void_ptr>self._pvt_ptr[0].params.nvSciSync.fence
 *     @fence.setter             # <<<<<<<<<<<<<<
 *     def fence(self, fence):
 *         _cfence = _HelperInputVoidPtr(fence)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.fence.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cfence);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10886
 *         _cfence = _HelperInputVoidPtr(fence)
 *         self._pvt_ptr[0].params.nvSciSync.fence = <void*><void_ptr>_cfence.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10888
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, unsigned long long reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).params.nvSciSync.reserved); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10886
 *         _cfence = _HelperInputVoidPtr(fence)
 *         self._pvt_ptr[0].params.nvSciSync.fence = <void*><void_ptr>_cfence.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10889
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, unsigned long long reserved):
 *         self._pvt_ptr[0].params.nvSciSync.reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved) {
  unsigned PY_LONG_LONG __pyx_v_reserved;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_reserved); {
    __pyx_v_reserved = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_reserved); if (unlikely((__pyx_v_reserved == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10890, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_reserved) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10891
 *     @reserved.setter
 *     def reserved(self, unsigned long long reserved):
 *         self._pvt_ptr[0].params.nvSciSync.reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct14:
*/
  (__pyx_v_self->_pvt_ptr[0]).params.nvSciSync.reserved = __pyx_v_reserved;

  /* "cuda/bindings/runtime.pyx":10889
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.nvSciSync.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, unsigned long long reserved):
 *         self._pvt_ptr[0].params.nvSciSync.reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_11anon_union5_10__reduce_cython__, "anon_union5.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union5_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union5_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_11anon_union5_12__setstate_cython__, "anon_union5.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union5_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union5_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union5.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union5_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union5_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union5.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10907
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10907, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10907, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10907, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10907, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10907, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10907, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10907, __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.runtime.anon_struct14.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10908
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10907
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10910
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10910, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10910, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10910, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10910, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10910, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10910, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10910, __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.runtime.anon_struct14.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10912
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10914
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct14_6getPtr, "anon_struct14.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct14_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct14_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10915
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).params.keyedMutex))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10914
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10916
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10917
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10918
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['key : ' + str(self.key)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10918, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10919
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10920
 *             str_list = []
 *             try:
 *                 str_list += ['key : ' + str(self.key)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['key : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_key_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10920, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10920, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_key, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10920, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10920, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10920, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10920, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10919
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":10921
 *             try:
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['key : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 10921, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":10922
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:
 *                 str_list += ['key : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['timeoutMs : ' + str(self.timeoutMs)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10922, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_key_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_key_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_key_ValueError) != (0)) __PYX_ERR(0, 10922, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10922, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10919
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['key : ' + str(self.key)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10923
 *             except ValueError:
 *                 str_list += ['key : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['timeoutMs : ' + str(self.timeoutMs)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10924
 *                 str_list += ['key : <ValueError>']
 *             try:
 *                 str_list += ['timeoutMs : ' + str(self.timeoutMs)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['timeoutMs : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_timeoutMs_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10924, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10924, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_timeoutMs, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10924, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10924, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 10924, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 10924, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":10923
 *             except ValueError:
 *                 str_list += ['key : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['timeoutMs : ' + str(self.timeoutMs)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":10925
 *             try:
 *                 str_list += ['timeoutMs : ' + str(self.timeoutMs)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['timeoutMs : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10925, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10926
 *                 str_list += ['timeoutMs : ' + str(self.timeoutMs)]
 *             except ValueError:
 *                 str_list += ['timeoutMs : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10926, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_timeoutMs_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_timeoutMs_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_timeoutMs_ValueError) != (0)) __PYX_ERR(0, 10926, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 10926, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":10923
 *             except ValueError:
 *                 str_list += ['key : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['timeoutMs : ' + str(self.timeoutMs)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10927
 *             except ValueError:
 *                 str_list += ['timeoutMs : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10917
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10929
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def key(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10916
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10930
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3key_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3key_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_3key___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_3key___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10932
 *     @property
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key             # <<<<<<<<<<<<<<
 *     @key.setter
 *     def key(self, unsigned long long key):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).params.keyedMutex.key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10930
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.key.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10933
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key
 *     @key.setter             # <<<<<<<<<<<<<<
 *     def key(self, unsigned long long key):
 *         self._pvt_ptr[0].params.keyedMutex.key = key
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3key_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3key_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
  unsigned PY_LONG_LONG __pyx_v_key;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_key); {
    __pyx_v_key = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_key); if (unlikely((__pyx_v_key == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10934, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.key.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_3key_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_3key_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_key) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10935
 *     @key.setter
 *     def key(self, unsigned long long key):
 *         self._pvt_ptr[0].params.keyedMutex.key = key             # <<<<<<<<<<<<<<
 *     @property
 *     def timeoutMs(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).params.keyedMutex.key = __pyx_v_key;

  /* "cuda/bindings/runtime.pyx":10933
 *     def key(self):
 *         return self._pvt_ptr[0].params.keyedMutex.key
 *     @key.setter             # <<<<<<<<<<<<<<
 *     def key(self, unsigned long long key):
 *         self._pvt_ptr[0].params.keyedMutex.key = key
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10936
 *     def key(self, unsigned long long key):
 *         self._pvt_ptr[0].params.keyedMutex.key = key
 *     @property             # <<<<<<<<<<<<<<
 *     def timeoutMs(self):
 *         return self._pvt_ptr[0].params.keyedMutex.timeoutMs
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10938
 *     @property
 *     def timeoutMs(self):
 *         return self._pvt_ptr[0].params.keyedMutex.timeoutMs             # <<<<<<<<<<<<<<
 *     @timeoutMs.setter
 *     def timeoutMs(self, unsigned int timeoutMs):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).params.keyedMutex.timeoutMs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10936
 *     def key(self, unsigned long long key):
 *         self._pvt_ptr[0].params.keyedMutex.key = key
 *     @property             # <<<<<<<<<<<<<<
 *     def timeoutMs(self):
 *         return self._pvt_ptr[0].params.keyedMutex.timeoutMs
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.timeoutMs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10939
 *     def timeoutMs(self):
 *         return self._pvt_ptr[0].params.keyedMutex.timeoutMs
 *     @timeoutMs.setter             # <<<<<<<<<<<<<<
 *     def timeoutMs(self, unsigned int timeoutMs):
 *         self._pvt_ptr[0].params.keyedMutex.timeoutMs = timeoutMs
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_timeoutMs); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_timeoutMs) {
  unsigned int __pyx_v_timeoutMs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_timeoutMs); {
    __pyx_v_timeoutMs = __Pyx_PyLong_As_unsigned_int(__pyx_arg_timeoutMs); if (unlikely((__pyx_v_timeoutMs == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 10940, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.timeoutMs.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self), ((unsigned int)__pyx_v_timeoutMs));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, unsigned int __pyx_v_timeoutMs) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10941
 *     @timeoutMs.setter
 *     def timeoutMs(self, unsigned int timeoutMs):
 *         self._pvt_ptr[0].params.keyedMutex.timeoutMs = timeoutMs             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct15:
*/
  (__pyx_v_self->_pvt_ptr[0]).params.keyedMutex.timeoutMs = __pyx_v_timeoutMs;

  /* "cuda/bindings/runtime.pyx":10939
 *     def timeoutMs(self):
 *         return self._pvt_ptr[0].params.keyedMutex.timeoutMs
 *     @timeoutMs.setter             # <<<<<<<<<<<<<<
 *     def timeoutMs(self, unsigned int timeoutMs):
 *         self._pvt_ptr[0].params.keyedMutex.timeoutMs = timeoutMs
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct14_10__reduce_cython__, "anon_struct14.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct14_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct14_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct14_12__setstate_cython__, "anon_struct14.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct14_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct14_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct14.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct14_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct14.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10961
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10961, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10961, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 10961, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 10961, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10961, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10961, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10961, __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.runtime.anon_struct15.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":10962
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":10961
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10964
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._fence = anon_struct13(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 10964, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10964, __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, "__init__", 0) < (0)) __PYX_ERR(0, 10964, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 10964, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 10964, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 10964, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 10964, __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.runtime.anon_struct15.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":10966
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._fence = anon_struct13(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._nvSciSync = anon_union5(_ptr=<void_ptr>self._pvt_ptr)
 *         self._keyedMutex = anon_struct14(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10966, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10966, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_fence);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_fence);
  __pyx_v_self->_fence = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10967
 *         pass
 *         self._fence = anon_struct13(_ptr=<void_ptr>self._pvt_ptr)
 *         self._nvSciSync = anon_union5(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._keyedMutex = anon_struct14(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10967, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10967, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10967, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_nvSciSync);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_nvSciSync);
  __pyx_v_self->_nvSciSync = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10968
 *         self._fence = anon_struct13(_ptr=<void_ptr>self._pvt_ptr)
 *         self._nvSciSync = anon_union5(_ptr=<void_ptr>self._pvt_ptr)
 *         self._keyedMutex = anon_struct14(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 10968, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 10968, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10968, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_keyedMutex);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_keyedMutex);
  __pyx_v_self->_keyedMutex = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":10964
 *         self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._fence = anon_struct13(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10969
 *         self._nvSciSync = anon_union5(_ptr=<void_ptr>self._pvt_ptr)
 *         self._keyedMutex = anon_struct14(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":10971
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct15_6getPtr, "anon_struct15.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct15_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct15_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":10972
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).params))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10971
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10973
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr139__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr140__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr141__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":10974
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":10975
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":10976
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10977
 *             str_list = []
 *             try:
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10977, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_fence_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10977, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10977, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10977, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10977, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10977, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr139__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr139__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10977, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 10977, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr139__pyx_v_line); __pyx_10genexpr139__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr139__pyx_v_line); __pyx_10genexpr139__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10977, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_fence_3, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10977, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10977, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10977, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10977, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10976
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10978
 *             try:
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 10978, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":10979
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10979, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_fence_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_fence_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_fence_ValueError) != (0)) __PYX_ERR(0, 10979, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10979, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":10976
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['fence :\n' + '\n'.join(['    ' + line for line in str(self.fence).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10980
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10981
 *                 str_list += ['fence : <ValueError>']
 *             try:
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10981, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_nvSciSync_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10981, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10981, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10981, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_7; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10981, __pyx_L27_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10981, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_10genexpr140__pyx_v_line, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr140__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10981, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 10981, __pyx_L27_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr140__pyx_v_line); __pyx_10genexpr140__pyx_v_line = 0;
          goto __pyx_L31_exit_scope;
          __pyx_L27_error:;
          __Pyx_XDECREF(__pyx_10genexpr140__pyx_v_line); __pyx_10genexpr140__pyx_v_line = 0;
          goto __pyx_L19_error;
          __pyx_L31_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10981, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_nvSciSync, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10981, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10981, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 10981, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10981, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":10980
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10982
 *             try:
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 10982, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":10983
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10983, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_nvSciSync_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_nvSciSync_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_nvSciSync_ValueError) != (0)) __PYX_ERR(0, 10983, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10983, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":10980
 *             except ValueError:
 *                 str_list += ['fence : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvSciSync :\n' + '\n'.join(['    ' + line for line in str(self.nvSciSync).splitlines()])]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10984
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10985
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10985, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_keyedMutex_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10985, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10985, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10985, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_2; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 10985, __pyx_L42_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10985, __pyx_L42_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr141__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr141__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10985, __pyx_L42_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 10985, __pyx_L42_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr141__pyx_v_line); __pyx_10genexpr141__pyx_v_line = 0;
          goto __pyx_L46_exit_scope;
          __pyx_L42_error:;
          __Pyx_XDECREF(__pyx_10genexpr141__pyx_v_line); __pyx_10genexpr141__pyx_v_line = 0;
          goto __pyx_L34_error;
          __pyx_L46_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10985, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_keyedMutex, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10985, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10985, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 10985, __pyx_L34_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10985, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":10984
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L39_try_end;
      __pyx_L34_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10986
 *             try:
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 10986, __pyx_L36_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":10987
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10987, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_keyedMutex_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_keyedMutex_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_keyedMutex_ValueError) != (0)) __PYX_ERR(0, 10987, __pyx_L36_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10987, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L35_exception_handled;
      }
      goto __pyx_L36_except_error;

      /* "cuda/bindings/runtime.pyx":10984
 *             except ValueError:
 *                 str_list += ['nvSciSync : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['keyedMutex :\n' + '\n'.join(['    ' + line for line in str(self.keyedMutex).splitlines()])]
 *             except ValueError:
*/
      __pyx_L36_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L35_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L39_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10988
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":10989
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10989, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10989, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10989, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 10989, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 10989, __pyx_L49_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10989, __pyx_L49_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":10988
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L54_try_end;
      __pyx_L49_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":10990
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 10990, __pyx_L51_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":10991
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 10991, __pyx_L51_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 10991, __pyx_L51_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 10991, __pyx_L51_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L50_exception_handled;
      }
      goto __pyx_L51_except_error;

      /* "cuda/bindings/runtime.pyx":10988
 *             except ValueError:
 *                 str_list += ['keyedMutex : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L51_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L50_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L54_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":10992
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 10992, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":10974
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":10994
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def fence(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":10973
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr139__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr140__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr141__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10995
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fence(self):
 *         return self._fence
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5fence_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5fence_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_5fence___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_5fence___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":10997
 *     @property
 *     def fence(self):
 *         return self._fence             # <<<<<<<<<<<<<<
 *     @fence.setter
 *     def fence(self, fence not None : anon_struct13):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_fence);
  __pyx_r = ((PyObject *)__pyx_v_self->_fence);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":10995
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def fence(self):
 *         return self._fence
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":10998
 *     def fence(self):
 *         return self._fence
 *     @fence.setter             # <<<<<<<<<<<<<<
 *     def fence(self, fence not None : anon_struct13):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct13*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5fence_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_fence) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fence), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13, 0, "fence", 0))) __PYX_ERR(0, 10999, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_5fence_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)__pyx_v_fence));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_5fence_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *__pyx_v_fence) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11000
 *     @fence.setter
 *     def fence(self, fence not None : anon_struct13):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct13*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))             # <<<<<<<<<<<<<<
 *     @property
 *     def nvSciSync(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_fence);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11000, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11000, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).params.fence), ((struct anon_struct13 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).params.fence))));

  /* "cuda/bindings/runtime.pyx":10998
 *     def fence(self):
 *         return self._fence
 *     @fence.setter             # <<<<<<<<<<<<<<
 *     def fence(self, fence not None : anon_struct13):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct13*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.fence.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11001
 *     def fence(self, fence not None : anon_struct13):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct13*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))
 *     @property             # <<<<<<<<<<<<<<
 *     def nvSciSync(self):
 *         return self._nvSciSync
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11003
 *     @property
 *     def nvSciSync(self):
 *         return self._nvSciSync             # <<<<<<<<<<<<<<
 *     @nvSciSync.setter
 *     def nvSciSync(self, nvSciSync not None : anon_union5):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_nvSciSync);
  __pyx_r = ((PyObject *)__pyx_v_self->_nvSciSync);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11001
 *     def fence(self, fence not None : anon_struct13):
 *         string.memcpy(&self._pvt_ptr[0].params.fence, <cyruntime.anon_struct13*><void_ptr>fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence))
 *     @property             # <<<<<<<<<<<<<<
 *     def nvSciSync(self):
 *         return self._nvSciSync
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11004
 *     def nvSciSync(self):
 *         return self._nvSciSync
 *     @nvSciSync.setter             # <<<<<<<<<<<<<<
 *     def nvSciSync(self, nvSciSync not None : anon_union5):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union5*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSync); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_nvSciSync) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nvSciSync), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5, 0, "nvSciSync", 0))) __PYX_ERR(0, 11005, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)__pyx_v_nvSciSync));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *__pyx_v_nvSciSync) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11006
 *     @nvSciSync.setter
 *     def nvSciSync(self, nvSciSync not None : anon_union5):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union5*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))             # <<<<<<<<<<<<<<
 *     @property
 *     def keyedMutex(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_nvSciSync);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11006, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11006, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).params.nvSciSync), ((union anon_union5 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).params.nvSciSync))));

  /* "cuda/bindings/runtime.pyx":11004
 *     def nvSciSync(self):
 *         return self._nvSciSync
 *     @nvSciSync.setter             # <<<<<<<<<<<<<<
 *     def nvSciSync(self, nvSciSync not None : anon_union5):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union5*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.nvSciSync.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11007
 *     def nvSciSync(self, nvSciSync not None : anon_union5):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union5*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))
 *     @property             # <<<<<<<<<<<<<<
 *     def keyedMutex(self):
 *         return self._keyedMutex
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11009
 *     @property
 *     def keyedMutex(self):
 *         return self._keyedMutex             # <<<<<<<<<<<<<<
 *     @keyedMutex.setter
 *     def keyedMutex(self, keyedMutex not None : anon_struct14):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_keyedMutex);
  __pyx_r = ((PyObject *)__pyx_v_self->_keyedMutex);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11007
 *     def nvSciSync(self, nvSciSync not None : anon_union5):
 *         string.memcpy(&self._pvt_ptr[0].params.nvSciSync, <cyruntime.anon_union5*><void_ptr>nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync))
 *     @property             # <<<<<<<<<<<<<<
 *     def keyedMutex(self):
 *         return self._keyedMutex
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11010
 *     def keyedMutex(self):
 *         return self._keyedMutex
 *     @keyedMutex.setter             # <<<<<<<<<<<<<<
 *     def keyedMutex(self, keyedMutex not None : anon_struct14):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct14*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_keyedMutex); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_keyedMutex) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_keyedMutex), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14, 0, "keyedMutex", 0))) __PYX_ERR(0, 11011, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)__pyx_v_keyedMutex));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *__pyx_v_keyedMutex) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11012
 *     @keyedMutex.setter
 *     def keyedMutex(self, keyedMutex not None : anon_struct14):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct14*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_keyedMutex);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11012, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).params.keyedMutex), ((struct anon_struct14 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).params.keyedMutex))));

  /* "cuda/bindings/runtime.pyx":11010
 *     def keyedMutex(self):
 *         return self._keyedMutex
 *     @keyedMutex.setter             # <<<<<<<<<<<<<<
 *     def keyedMutex(self, keyedMutex not None : anon_struct14):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct14*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.keyedMutex.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11013
 *     def keyedMutex(self, keyedMutex not None : anon_struct14):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct14*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11015
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).params.reserved, 10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11013
 *     def keyedMutex(self, keyedMutex not None : anon_struct14):
 *         string.memcpy(&self._pvt_ptr[0].params.keyedMutex, <cyruntime.anon_struct14*><void_ptr>keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11016
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].params.reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[10];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":11018
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].params.reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalSemaphoreWaitParams:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 10) < 0))) __PYX_ERR(0, 11018, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).params.reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).params.reserved[0]) * (10));

  /* "cuda/bindings/runtime.pyx":11016
 *     def reserved(self):
 *         return self._pvt_ptr[0].params.reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].params.reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct15_10__reduce_cython__, "anon_struct15.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct15_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct15_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct15_12__setstate_cython__, "anon_struct15.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct15_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct15_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct15.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct15_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct15.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11045
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11045, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11045, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11045, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11045, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11045, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11045, __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.runtime.cudaExternalSemaphoreWaitParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11046
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11047
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11046
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11049
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreWaitParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11045
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11050
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._params = anon_struct15(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11050, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11050, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11050, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11050, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11050, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11050, __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.runtime.cudaExternalSemaphoreWaitParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":11052
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._params = anon_struct15(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11052, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11052, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11052, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_params);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_params);
  __pyx_v_self->_params = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11050
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._params = anon_struct15(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11053
 *         pass
 *         self._params = anon_struct15(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11055
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_7getPtr(PyObject *__pyx_v_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_7runtime_31cudaExternalSemaphoreWaitParams_6getPtr, "cudaExternalSemaphoreWaitParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11056
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11056, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11055
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11057
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr142__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11058
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11059
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11060
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11061
 *             str_list = []
 *             try:
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11061, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_params_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11061, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11061, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11061, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11061, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11061, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr142__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr142__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11061, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11061, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr142__pyx_v_line); __pyx_10genexpr142__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr142__pyx_v_line); __pyx_10genexpr142__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11061, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_params, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11061, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11061, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11061, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11061, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11060
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":11062
 *             try:
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['params : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 11062, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11063
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11063, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_params_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_params_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_params_ValueError) != (0)) __PYX_ERR(0, 11063, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 11063, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11060
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['params :\n' + '\n'.join(['    ' + line for line in str(self.params).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11064
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11065
 *                 str_list += ['params : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11065, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11065, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11065, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11065, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 11065, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11065, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":11064
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":11066
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(0, 11066, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11067
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 11067, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 11067, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11067, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":11064
 *             except ValueError:
 *                 str_list += ['params : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11068
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11069
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11069, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11069, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11069, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11069, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11069, __pyx_L27_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11069, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11068
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":11070
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 11070, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11071
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11071, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 11071, __pyx_L29_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 11071, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":11068
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11072
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11072, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11058
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11074
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def params(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11057
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr142__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11075
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def params(self):
 *         return self._params
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11077
 *     @property
 *     def params(self):
 *         return self._params             # <<<<<<<<<<<<<<
 *     @params.setter
 *     def params(self, params not None : anon_struct15):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_params);
  __pyx_r = ((PyObject *)__pyx_v_self->_params);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11075
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def params(self):
 *         return self._params
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11078
 *     def params(self):
 *         return self._params
 *     @params.setter             # <<<<<<<<<<<<<<
 *     def params(self, params not None : anon_struct15):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct15*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_params); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_params) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_params), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15, 0, "params", 0))) __PYX_ERR(0, 11079, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)__pyx_v_params));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *__pyx_v_params) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11080
 *     @params.setter
 *     def params(self, params not None : anon_struct15):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct15*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_params);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11080, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).params), ((struct anon_struct15 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).params))));

  /* "cuda/bindings/runtime.pyx":11078
 *     def params(self):
 *         return self._params
 *     @params.setter             # <<<<<<<<<<<<<<
 *     def params(self, params not None : anon_struct15):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct15*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.params.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11081
 *     def params(self, params not None : anon_struct15):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct15*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11083
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11081
 *     def params(self, params not None : anon_struct15):
 *         string.memcpy(&self._pvt_ptr[0].params, <cyruntime.anon_struct15*><void_ptr>params.getPtr(), sizeof(self._pvt_ptr[0].params))
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11084
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11085, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11086
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":11084
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11087
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11089
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 16); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11087
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11090
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[16];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":11092
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDevSmResource:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 16) < 0))) __PYX_ERR(0, 11092, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (16));

  /* "cuda/bindings/runtime.pyx":11090
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_31cudaExternalSemaphoreWaitParams_10__reduce_cython__, "cudaExternalSemaphoreWaitParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_31cudaExternalSemaphoreWaitParams_12__setstate_cython__, "cudaExternalSemaphoreWaitParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalSemaphoreWaitParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11120
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11120, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11120, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11120, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11120, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11120, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11120, __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.runtime.cudaDevSmResource.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11121
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11122
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevSmResource *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11121
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11124
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevSmResource *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaDevSmResource *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11120
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11125
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevSmResource *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11125, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11125, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11125, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11125, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11125, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11125, __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.runtime.cudaDevSmResource.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11127
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11129
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7getPtr(PyObject *__pyx_v_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_7runtime_17cudaDevSmResource_6getPtr, "cudaDevSmResource.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaDevSmResource_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaDevSmResource_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11130
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11129
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11131
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11132
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11133
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['smCount : ' + str(self.smCount)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11134
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11135
 *             str_list = []
 *             try:
 *                 str_list += ['smCount : ' + str(self.smCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_smCount_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_smCount, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11135, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11134
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11136
 *             try:
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCount : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11136, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11137
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11137, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_smCount_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_smCount_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_smCount_ValueError) != (0)) __PYX_ERR(0, 11137, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11137, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11134
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11138
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11139
 *                 str_list += ['smCount : <ValueError>']
 *             try:
 *                 str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['minSmPartitionSize : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_minSmPartitionSize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_minSmPartitionSize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11139, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11138
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11140
 *             try:
 *                 str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['minSmPartitionSize : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11140, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11141
 *                 str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)]
 *             except ValueError:
 *                 str_list += ['minSmPartitionSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11141, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_minSmPartitionSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_minSmPartitionSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_minSmPartitionSize_ValueError) != (0)) __PYX_ERR(0, 11141, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11141, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11138
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11142
 *             except ValueError:
 *                 str_list += ['minSmPartitionSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11143
 *                 str_list += ['minSmPartitionSize : <ValueError>']
 *             try:
 *                 str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['smCoscheduledAlignment : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_smCoscheduledAlignment_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11143, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11143, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_smCoscheduledAlignment, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11143, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11143, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11143, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11143, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11142
 *             except ValueError:
 *                 str_list += ['minSmPartitionSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11144
 *             try:
 *                 str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCoscheduledAlignment : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11144, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11145
 *                 str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)]
 *             except ValueError:
 *                 str_list += ['smCoscheduledAlignment : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11145, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_smCoscheduledAlignment_ValueErro);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_smCoscheduledAlignment_ValueErro);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_smCoscheduledAlignment_ValueErro) != (0)) __PYX_ERR(0, 11145, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11145, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":11142
 *             except ValueError:
 *                 str_list += ['minSmPartitionSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11146
 *             except ValueError:
 *                 str_list += ['smCoscheduledAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11147
 *                 str_list += ['smCoscheduledAlignment : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11147, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11147, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11147, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11147, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11147, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11147, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11146
 *             except ValueError:
 *                 str_list += ['smCoscheduledAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11148
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11148, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11149
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11149, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 11149, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11149, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":11146
 *             except ValueError:
 *                 str_list += ['smCoscheduledAlignment : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11150
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11132
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11152
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def smCount(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11131
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11153
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11155
 *     @property
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount             # <<<<<<<<<<<<<<
 *     @smCount.setter
 *     def smCount(self, unsigned int smCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).smCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11153
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.smCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11156
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount
 *     @smCount.setter             # <<<<<<<<<<<<<<
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_smCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_smCount) {
  unsigned int __pyx_v_smCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_smCount); {
    __pyx_v_smCount = __Pyx_PyLong_As_unsigned_int(__pyx_arg_smCount); if (unlikely((__pyx_v_smCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11157, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.smCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self), ((unsigned int)__pyx_v_smCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, unsigned int __pyx_v_smCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11158
 *     @smCount.setter
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount             # <<<<<<<<<<<<<<
 *     @property
 *     def minSmPartitionSize(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).smCount = __pyx_v_smCount;

  /* "cuda/bindings/runtime.pyx":11156
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount
 *     @smCount.setter             # <<<<<<<<<<<<<<
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11159
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount
 *     @property             # <<<<<<<<<<<<<<
 *     def minSmPartitionSize(self):
 *         return self._pvt_ptr[0].minSmPartitionSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11161
 *     @property
 *     def minSmPartitionSize(self):
 *         return self._pvt_ptr[0].minSmPartitionSize             # <<<<<<<<<<<<<<
 *     @minSmPartitionSize.setter
 *     def minSmPartitionSize(self, unsigned int minSmPartitionSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).minSmPartitionSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11159
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount
 *     @property             # <<<<<<<<<<<<<<
 *     def minSmPartitionSize(self):
 *         return self._pvt_ptr[0].minSmPartitionSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.minSmPartitionSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11162
 *     def minSmPartitionSize(self):
 *         return self._pvt_ptr[0].minSmPartitionSize
 *     @minSmPartitionSize.setter             # <<<<<<<<<<<<<<
 *     def minSmPartitionSize(self, unsigned int minSmPartitionSize):
 *         self._pvt_ptr[0].minSmPartitionSize = minSmPartitionSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_minSmPartitionSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_minSmPartitionSize) {
  unsigned int __pyx_v_minSmPartitionSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_minSmPartitionSize); {
    __pyx_v_minSmPartitionSize = __Pyx_PyLong_As_unsigned_int(__pyx_arg_minSmPartitionSize); if (unlikely((__pyx_v_minSmPartitionSize == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11163, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.minSmPartitionSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self), ((unsigned int)__pyx_v_minSmPartitionSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, unsigned int __pyx_v_minSmPartitionSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11164
 *     @minSmPartitionSize.setter
 *     def minSmPartitionSize(self, unsigned int minSmPartitionSize):
 *         self._pvt_ptr[0].minSmPartitionSize = minSmPartitionSize             # <<<<<<<<<<<<<<
 *     @property
 *     def smCoscheduledAlignment(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).minSmPartitionSize = __pyx_v_minSmPartitionSize;

  /* "cuda/bindings/runtime.pyx":11162
 *     def minSmPartitionSize(self):
 *         return self._pvt_ptr[0].minSmPartitionSize
 *     @minSmPartitionSize.setter             # <<<<<<<<<<<<<<
 *     def minSmPartitionSize(self, unsigned int minSmPartitionSize):
 *         self._pvt_ptr[0].minSmPartitionSize = minSmPartitionSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11165
 *     def minSmPartitionSize(self, unsigned int minSmPartitionSize):
 *         self._pvt_ptr[0].minSmPartitionSize = minSmPartitionSize
 *     @property             # <<<<<<<<<<<<<<
 *     def smCoscheduledAlignment(self):
 *         return self._pvt_ptr[0].smCoscheduledAlignment
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11167
 *     @property
 *     def smCoscheduledAlignment(self):
 *         return self._pvt_ptr[0].smCoscheduledAlignment             # <<<<<<<<<<<<<<
 *     @smCoscheduledAlignment.setter
 *     def smCoscheduledAlignment(self, unsigned int smCoscheduledAlignment):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).smCoscheduledAlignment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11165
 *     def minSmPartitionSize(self, unsigned int minSmPartitionSize):
 *         self._pvt_ptr[0].minSmPartitionSize = minSmPartitionSize
 *     @property             # <<<<<<<<<<<<<<
 *     def smCoscheduledAlignment(self):
 *         return self._pvt_ptr[0].smCoscheduledAlignment
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.smCoscheduledAlignment.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11168
 *     def smCoscheduledAlignment(self):
 *         return self._pvt_ptr[0].smCoscheduledAlignment
 *     @smCoscheduledAlignment.setter             # <<<<<<<<<<<<<<
 *     def smCoscheduledAlignment(self, unsigned int smCoscheduledAlignment):
 *         self._pvt_ptr[0].smCoscheduledAlignment = smCoscheduledAlignment
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_smCoscheduledAlignment); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_smCoscheduledAlignment) {
  unsigned int __pyx_v_smCoscheduledAlignment;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_smCoscheduledAlignment); {
    __pyx_v_smCoscheduledAlignment = __Pyx_PyLong_As_unsigned_int(__pyx_arg_smCoscheduledAlignment); if (unlikely((__pyx_v_smCoscheduledAlignment == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11169, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.smCoscheduledAlignment.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self), ((unsigned int)__pyx_v_smCoscheduledAlignment));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, unsigned int __pyx_v_smCoscheduledAlignment) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11170
 *     @smCoscheduledAlignment.setter
 *     def smCoscheduledAlignment(self, unsigned int smCoscheduledAlignment):
 *         self._pvt_ptr[0].smCoscheduledAlignment = smCoscheduledAlignment             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).smCoscheduledAlignment = __pyx_v_smCoscheduledAlignment;

  /* "cuda/bindings/runtime.pyx":11168
 *     def smCoscheduledAlignment(self):
 *         return self._pvt_ptr[0].smCoscheduledAlignment
 *     @smCoscheduledAlignment.setter             # <<<<<<<<<<<<<<
 *     def smCoscheduledAlignment(self, unsigned int smCoscheduledAlignment):
 *         self._pvt_ptr[0].smCoscheduledAlignment = smCoscheduledAlignment
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11171
 *     def smCoscheduledAlignment(self, unsigned int smCoscheduledAlignment):
 *         self._pvt_ptr[0].smCoscheduledAlignment = smCoscheduledAlignment
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11173
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11171
 *     def smCoscheduledAlignment(self, unsigned int smCoscheduledAlignment):
 *         self._pvt_ptr[0].smCoscheduledAlignment = smCoscheduledAlignment
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11174
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11175, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11176
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDevWorkqueueConfigResource:
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":11174
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_17cudaDevSmResource_10__reduce_cython__, "cudaDevSmResource.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaDevSmResource_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaDevSmResource_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_17cudaDevSmResource_12__setstate_cython__, "cudaDevSmResource.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaDevSmResource_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaDevSmResource_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaDevSmResource.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17cudaDevSmResource_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResource.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11196
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11196, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11196, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11196, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11196, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11196, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11196, __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.runtime.cudaDevWorkqueueConfigResource.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11197
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11198
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevWorkqueueConfigResource *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11197
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11200
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevWorkqueueConfigResource *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaDevWorkqueueConfigResource *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11196
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11201
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevWorkqueueConfigResource *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11201, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11201, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11201, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11201, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11201, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11201, __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.runtime.cudaDevWorkqueueConfigResource.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11203
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11205
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_7getPtr(PyObject *__pyx_v_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_7runtime_30cudaDevWorkqueueConfigResource_6getPtr, "cudaDevWorkqueueConfigResource.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11206
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11205
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11207
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11208
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11209
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['device : ' + str(self.device)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11209, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11210
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11211
 *             str_list = []
 *             try:
 *                 str_list += ['device : ' + str(self.device)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_device_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11211, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11211, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_device, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11211, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11211, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11211, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11211, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11210
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11212
 *             try:
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['device : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11212, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11213
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11213, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_device_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_device_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_device_ValueError) != (0)) __PYX_ERR(0, 11213, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11213, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11210
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['device : ' + str(self.device)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11214
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11215
 *                 str_list += ['device : <ValueError>']
 *             try:
 *                 str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['wqConcurrencyLimit : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_wqConcurrencyLimit_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11215, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11215, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_wqConcurrencyLimit, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11215, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11215, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11215, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11215, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11214
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11216
 *             try:
 *                 str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['wqConcurrencyLimit : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11216, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11217
 *                 str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)]
 *             except ValueError:
 *                 str_list += ['wqConcurrencyLimit : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sharingScope : ' + str(self.sharingScope)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11217, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_wqConcurrencyLimit_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_wqConcurrencyLimit_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_wqConcurrencyLimit_ValueError) != (0)) __PYX_ERR(0, 11217, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11217, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11214
 *             except ValueError:
 *                 str_list += ['device : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11218
 *             except ValueError:
 *                 str_list += ['wqConcurrencyLimit : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharingScope : ' + str(self.sharingScope)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11219
 *                 str_list += ['wqConcurrencyLimit : <ValueError>']
 *             try:
 *                 str_list += ['sharingScope : ' + str(self.sharingScope)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sharingScope : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sharingScope_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11219, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11219, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sharingScope, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11219, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11219, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11219, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11219, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11218
 *             except ValueError:
 *                 str_list += ['wqConcurrencyLimit : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharingScope : ' + str(self.sharingScope)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11220
 *             try:
 *                 str_list += ['sharingScope : ' + str(self.sharingScope)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharingScope : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11220, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11221
 *                 str_list += ['sharingScope : ' + str(self.sharingScope)]
 *             except ValueError:
 *                 str_list += ['sharingScope : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11221, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sharingScope_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sharingScope_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_sharingScope_ValueError) != (0)) __PYX_ERR(0, 11221, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11221, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":11218
 *             except ValueError:
 *                 str_list += ['wqConcurrencyLimit : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharingScope : ' + str(self.sharingScope)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11222
 *             except ValueError:
 *                 str_list += ['sharingScope : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11208
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11224
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def device(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11207
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11225
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def device(self):
 *         return self._pvt_ptr[0].device
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11227
 *     @property
 *     def device(self):
 *         return self._pvt_ptr[0].device             # <<<<<<<<<<<<<<
 *     @device.setter
 *     def device(self, int device):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).device); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11225
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def device(self):
 *         return self._pvt_ptr[0].device
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.device.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11228
 *     def device(self):
 *         return self._pvt_ptr[0].device
 *     @device.setter             # <<<<<<<<<<<<<<
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_device); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_device) {
  int __pyx_v_device;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_device); {
    __pyx_v_device = __Pyx_PyLong_As_int(__pyx_arg_device); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11229, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.device.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self), ((int)__pyx_v_device));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, int __pyx_v_device) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11230
 *     @device.setter
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device             # <<<<<<<<<<<<<<
 *     @property
 *     def wqConcurrencyLimit(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).device = __pyx_v_device;

  /* "cuda/bindings/runtime.pyx":11228
 *     def device(self):
 *         return self._pvt_ptr[0].device
 *     @device.setter             # <<<<<<<<<<<<<<
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11231
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device
 *     @property             # <<<<<<<<<<<<<<
 *     def wqConcurrencyLimit(self):
 *         return self._pvt_ptr[0].wqConcurrencyLimit
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11233
 *     @property
 *     def wqConcurrencyLimit(self):
 *         return self._pvt_ptr[0].wqConcurrencyLimit             # <<<<<<<<<<<<<<
 *     @wqConcurrencyLimit.setter
 *     def wqConcurrencyLimit(self, unsigned int wqConcurrencyLimit):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).wqConcurrencyLimit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11231
 *     def device(self, int device):
 *         self._pvt_ptr[0].device = device
 *     @property             # <<<<<<<<<<<<<<
 *     def wqConcurrencyLimit(self):
 *         return self._pvt_ptr[0].wqConcurrencyLimit
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.wqConcurrencyLimit.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11234
 *     def wqConcurrencyLimit(self):
 *         return self._pvt_ptr[0].wqConcurrencyLimit
 *     @wqConcurrencyLimit.setter             # <<<<<<<<<<<<<<
 *     def wqConcurrencyLimit(self, unsigned int wqConcurrencyLimit):
 *         self._pvt_ptr[0].wqConcurrencyLimit = wqConcurrencyLimit
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_wqConcurrencyLimit); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_wqConcurrencyLimit) {
  unsigned int __pyx_v_wqConcurrencyLimit;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_wqConcurrencyLimit); {
    __pyx_v_wqConcurrencyLimit = __Pyx_PyLong_As_unsigned_int(__pyx_arg_wqConcurrencyLimit); if (unlikely((__pyx_v_wqConcurrencyLimit == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11235, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.wqConcurrencyLimit.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self), ((unsigned int)__pyx_v_wqConcurrencyLimit));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, unsigned int __pyx_v_wqConcurrencyLimit) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11236
 *     @wqConcurrencyLimit.setter
 *     def wqConcurrencyLimit(self, unsigned int wqConcurrencyLimit):
 *         self._pvt_ptr[0].wqConcurrencyLimit = wqConcurrencyLimit             # <<<<<<<<<<<<<<
 *     @property
 *     def sharingScope(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).wqConcurrencyLimit = __pyx_v_wqConcurrencyLimit;

  /* "cuda/bindings/runtime.pyx":11234
 *     def wqConcurrencyLimit(self):
 *         return self._pvt_ptr[0].wqConcurrencyLimit
 *     @wqConcurrencyLimit.setter             # <<<<<<<<<<<<<<
 *     def wqConcurrencyLimit(self, unsigned int wqConcurrencyLimit):
 *         self._pvt_ptr[0].wqConcurrencyLimit = wqConcurrencyLimit
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11237
 *     def wqConcurrencyLimit(self, unsigned int wqConcurrencyLimit):
 *         self._pvt_ptr[0].wqConcurrencyLimit = wqConcurrencyLimit
 *     @property             # <<<<<<<<<<<<<<
 *     def sharingScope(self):
 *         if self._pvt_ptr[0].sharingScope not in _dict_cudaDevWorkqueueConfigScope:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11239
 *     @property
 *     def sharingScope(self):
 *         if self._pvt_ptr[0].sharingScope not in _dict_cudaDevWorkqueueConfigScope:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaDevWorkqueueConfigScope[self._pvt_ptr[0].sharingScope]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaDevWorkqueueConfigScope((__pyx_v_self->_pvt_ptr[0]).sharingScope); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaDevWorkqueueConfigScop); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 11239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":11240
 *     def sharingScope(self):
 *         if self._pvt_ptr[0].sharingScope not in _dict_cudaDevWorkqueueConfigScope:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaDevWorkqueueConfigScope[self._pvt_ptr[0].sharingScope]
 *     @sharingScope.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11239
 *     @property
 *     def sharingScope(self):
 *         if self._pvt_ptr[0].sharingScope not in _dict_cudaDevWorkqueueConfigScope:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaDevWorkqueueConfigScope[self._pvt_ptr[0].sharingScope]
*/
  }

  /* "cuda/bindings/runtime.pyx":11241
 *         if self._pvt_ptr[0].sharingScope not in _dict_cudaDevWorkqueueConfigScope:
 *             return None
 *         return _dict_cudaDevWorkqueueConfigScope[self._pvt_ptr[0].sharingScope]             # <<<<<<<<<<<<<<
 *     @sharingScope.setter
 *     def sharingScope(self, sharingScope not None : cudaDevWorkqueueConfigScope):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaDevWorkqueueConfigScop); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaDevWorkqueueConfigScope((__pyx_v_self->_pvt_ptr[0]).sharingScope); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11237
 *     def wqConcurrencyLimit(self, unsigned int wqConcurrencyLimit):
 *         self._pvt_ptr[0].wqConcurrencyLimit = wqConcurrencyLimit
 *     @property             # <<<<<<<<<<<<<<
 *     def sharingScope(self):
 *         if self._pvt_ptr[0].sharingScope not in _dict_cudaDevWorkqueueConfigScope:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.sharingScope.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11242
 *             return None
 *         return _dict_cudaDevWorkqueueConfigScope[self._pvt_ptr[0].sharingScope]
 *     @sharingScope.setter             # <<<<<<<<<<<<<<
 *     def sharingScope(self, sharingScope not None : cudaDevWorkqueueConfigScope):
 *         self._pvt_ptr[0].sharingScope = sharingScope.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_sharingScope); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_sharingScope) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_sharingScope) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "sharingScope"); __PYX_ERR(0, 11243, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self), ((PyObject *)__pyx_v_sharingScope));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, PyObject *__pyx_v_sharingScope) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaDevWorkqueueConfigScope __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11244
 *     @sharingScope.setter
 *     def sharingScope(self, sharingScope not None : cudaDevWorkqueueConfigScope):
 *         self._pvt_ptr[0].sharingScope = sharingScope.value             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDevWorkqueueResource:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sharingScope, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaDevWorkqueueConfigScope)__Pyx_PyLong_As_enum__cudaDevWorkqueueConfigScope(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11244, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).sharingScope = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":11242
 *             return None
 *         return _dict_cudaDevWorkqueueConfigScope[self._pvt_ptr[0].sharingScope]
 *     @sharingScope.setter             # <<<<<<<<<<<<<<
 *     def sharingScope(self, sharingScope not None : cudaDevWorkqueueConfigScope):
 *         self._pvt_ptr[0].sharingScope = sharingScope.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.sharingScope.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_30cudaDevWorkqueueConfigResource_10__reduce_cython__, "cudaDevWorkqueueConfigResource.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_30cudaDevWorkqueueConfigResource_12__setstate_cython__, "cudaDevWorkqueueConfigResource.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaDevWorkqueueConfigResource.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueConfigResource.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11260
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11260, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11260, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11260, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11260, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11260, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11260, __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.runtime.cudaDevWorkqueueResource.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11261
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11262
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevWorkqueueResource *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11261
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11264
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevWorkqueueResource *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaDevWorkqueueResource *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11260
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11265
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevWorkqueueResource *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11265, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11265, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11265, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11265, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11265, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11265, __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.runtime.cudaDevWorkqueueResource.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11267
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11269
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_7getPtr(PyObject *__pyx_v_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_7runtime_24cudaDevWorkqueueResource_6getPtr, "cudaDevWorkqueueResource.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11270
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11269
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueResource.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11271
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11272
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11273
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11274
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11275
 *             str_list = []
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11275, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11275, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11275, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11275, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11275, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11275, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11274
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11276
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11276, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11277
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11277, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 11277, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11277, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11274
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11278
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11278, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11272
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11280
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11271
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueResource.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11281
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 40)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11283
 *     @property
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 40)             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_pvt_ptr[0]).reserved), 40); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11281
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 40)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueResource.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11284
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 40)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 40:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self, PyObject *__pyx_v_reserved) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  unsigned char __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11286
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 40:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 40, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11286, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 40);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":11287
 *     def reserved(self, reserved):
 *         if len(reserved) != 40:
 *             raise ValueError("reserved length must be 40, is " + str(len(reserved)))             # <<<<<<<<<<<<<<
 *         for i, b in enumerate(reserved):
 *             self._pvt_ptr[0].reserved[i] = b
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11287, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_40_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11287, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 11287, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":11286
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 40:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 40, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
*/
  }

  /* "cuda/bindings/runtime.pyx":11288
 *         if len(reserved) != 40:
 *             raise ValueError("reserved length must be 40, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].reserved[i] = b
 * 
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
    __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_1 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11288, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_5))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11288, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11288, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11288, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_5);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 11288, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":11289
 *             raise ValueError("reserved length must be 40, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
 *             self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDevSmResourceGroupParams_st:
*/
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_9 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 11289, __pyx_L1_error)
    __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 11289, __pyx_L1_error)
    ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_10]) = __pyx_t_9;

    /* "cuda/bindings/runtime.pyx":11288
 *         if len(reserved) != 40:
 *             raise ValueError("reserved length must be 40, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].reserved[i] = b
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":11284
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 40)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 40:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueResource.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_24cudaDevWorkqueueResource_10__reduce_cython__, "cudaDevWorkqueueResource.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueResource.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_24cudaDevWorkqueueResource_12__setstate_cython__, "cudaDevWorkqueueResource.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaDevWorkqueueResource.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevWorkqueueResource.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11316
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11316, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11316, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11316, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11316, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11316, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11316, __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.runtime.cudaDevSmResourceGroupParams_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11317
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11318
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevSmResourceGroupParams_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11317
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11320
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevSmResourceGroupParams_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaDevSmResourceGroupParams_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11316
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11321
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevSmResourceGroupParams_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11321, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11321, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11321, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11321, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11321, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11321, __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.runtime.cudaDevSmResourceGroupParams_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11323
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11325
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7getPtr(PyObject *__pyx_v_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_7runtime_31cudaDevSmResourceGroupParams_st_6getPtr, "cudaDevSmResourceGroupParams_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11326
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11325
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11327
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11328
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11329
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['smCount : ' + str(self.smCount)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11330
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11331
 *             str_list = []
 *             try:
 *                 str_list += ['smCount : ' + str(self.smCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_smCount_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11331, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11331, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_smCount, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11331, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11331, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11331, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11331, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11330
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11332
 *             try:
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCount : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11332, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11333
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11333, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_smCount_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_smCount_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_smCount_ValueError) != (0)) __PYX_ERR(0, 11333, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11333, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11330
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['smCount : ' + str(self.smCount)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11334
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11335
 *                 str_list += ['smCount : <ValueError>']
 *             try:
 *                 str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['coscheduledSmCount : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_coscheduledSmCount_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11335, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11335, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_coscheduledSmCount, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11335, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11335, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11335, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11335, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11334
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11336
 *             try:
 *                 str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['coscheduledSmCount : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11336, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11337
 *                 str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)]
 *             except ValueError:
 *                 str_list += ['coscheduledSmCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11337, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_coscheduledSmCount_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_coscheduledSmCount_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_coscheduledSmCount_ValueError) != (0)) __PYX_ERR(0, 11337, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11337, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11334
 *             except ValueError:
 *                 str_list += ['smCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11338
 *             except ValueError:
 *                 str_list += ['coscheduledSmCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11339
 *                 str_list += ['coscheduledSmCount : <ValueError>']
 *             try:
 *                 str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['preferredCoscheduledSmCount : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_preferredCoscheduledSmCount_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11339, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11339, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_preferredCoscheduledSmCount, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11339, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11339, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11339, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11339, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11338
 *             except ValueError:
 *                 str_list += ['coscheduledSmCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11340
 *             try:
 *                 str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredCoscheduledSmCount : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11340, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11341
 *                 str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)]
 *             except ValueError:
 *                 str_list += ['preferredCoscheduledSmCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11341, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_preferredCoscheduledSmCount_Valu);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_preferredCoscheduledSmCount_Valu);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_preferredCoscheduledSmCount_Valu) != (0)) __PYX_ERR(0, 11341, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11341, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":11338
 *             except ValueError:
 *                 str_list += ['coscheduledSmCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11342
 *             except ValueError:
 *                 str_list += ['preferredCoscheduledSmCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11343
 *                 str_list += ['preferredCoscheduledSmCount : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11343, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11343, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11343, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11343, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11343, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11343, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11342
 *             except ValueError:
 *                 str_list += ['preferredCoscheduledSmCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11344
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11344, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11345
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11345, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 11345, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11345, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":11342
 *             except ValueError:
 *                 str_list += ['preferredCoscheduledSmCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11346
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11347
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11347, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11347, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11347, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11347, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11347, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11347, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11346
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11348
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11348, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11349
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11349, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 11349, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11349, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":11346
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11350
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11350, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11328
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11352
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def smCount(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11327
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11353
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11355
 *     @property
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount             # <<<<<<<<<<<<<<
 *     @smCount.setter
 *     def smCount(self, unsigned int smCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).smCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11353
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.smCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11356
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount
 *     @smCount.setter             # <<<<<<<<<<<<<<
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_smCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_smCount) {
  unsigned int __pyx_v_smCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_smCount); {
    __pyx_v_smCount = __Pyx_PyLong_As_unsigned_int(__pyx_arg_smCount); if (unlikely((__pyx_v_smCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11357, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.smCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self), ((unsigned int)__pyx_v_smCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, unsigned int __pyx_v_smCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11358
 *     @smCount.setter
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount             # <<<<<<<<<<<<<<
 *     @property
 *     def coscheduledSmCount(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).smCount = __pyx_v_smCount;

  /* "cuda/bindings/runtime.pyx":11356
 *     def smCount(self):
 *         return self._pvt_ptr[0].smCount
 *     @smCount.setter             # <<<<<<<<<<<<<<
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11359
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount
 *     @property             # <<<<<<<<<<<<<<
 *     def coscheduledSmCount(self):
 *         return self._pvt_ptr[0].coscheduledSmCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11361
 *     @property
 *     def coscheduledSmCount(self):
 *         return self._pvt_ptr[0].coscheduledSmCount             # <<<<<<<<<<<<<<
 *     @coscheduledSmCount.setter
 *     def coscheduledSmCount(self, unsigned int coscheduledSmCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).coscheduledSmCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11359
 *     def smCount(self, unsigned int smCount):
 *         self._pvt_ptr[0].smCount = smCount
 *     @property             # <<<<<<<<<<<<<<
 *     def coscheduledSmCount(self):
 *         return self._pvt_ptr[0].coscheduledSmCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.coscheduledSmCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11362
 *     def coscheduledSmCount(self):
 *         return self._pvt_ptr[0].coscheduledSmCount
 *     @coscheduledSmCount.setter             # <<<<<<<<<<<<<<
 *     def coscheduledSmCount(self, unsigned int coscheduledSmCount):
 *         self._pvt_ptr[0].coscheduledSmCount = coscheduledSmCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_coscheduledSmCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_coscheduledSmCount) {
  unsigned int __pyx_v_coscheduledSmCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_coscheduledSmCount); {
    __pyx_v_coscheduledSmCount = __Pyx_PyLong_As_unsigned_int(__pyx_arg_coscheduledSmCount); if (unlikely((__pyx_v_coscheduledSmCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11363, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.coscheduledSmCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self), ((unsigned int)__pyx_v_coscheduledSmCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, unsigned int __pyx_v_coscheduledSmCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11364
 *     @coscheduledSmCount.setter
 *     def coscheduledSmCount(self, unsigned int coscheduledSmCount):
 *         self._pvt_ptr[0].coscheduledSmCount = coscheduledSmCount             # <<<<<<<<<<<<<<
 *     @property
 *     def preferredCoscheduledSmCount(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).coscheduledSmCount = __pyx_v_coscheduledSmCount;

  /* "cuda/bindings/runtime.pyx":11362
 *     def coscheduledSmCount(self):
 *         return self._pvt_ptr[0].coscheduledSmCount
 *     @coscheduledSmCount.setter             # <<<<<<<<<<<<<<
 *     def coscheduledSmCount(self, unsigned int coscheduledSmCount):
 *         self._pvt_ptr[0].coscheduledSmCount = coscheduledSmCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11365
 *     def coscheduledSmCount(self, unsigned int coscheduledSmCount):
 *         self._pvt_ptr[0].coscheduledSmCount = coscheduledSmCount
 *     @property             # <<<<<<<<<<<<<<
 *     def preferredCoscheduledSmCount(self):
 *         return self._pvt_ptr[0].preferredCoscheduledSmCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11367
 *     @property
 *     def preferredCoscheduledSmCount(self):
 *         return self._pvt_ptr[0].preferredCoscheduledSmCount             # <<<<<<<<<<<<<<
 *     @preferredCoscheduledSmCount.setter
 *     def preferredCoscheduledSmCount(self, unsigned int preferredCoscheduledSmCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).preferredCoscheduledSmCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11365
 *     def coscheduledSmCount(self, unsigned int coscheduledSmCount):
 *         self._pvt_ptr[0].coscheduledSmCount = coscheduledSmCount
 *     @property             # <<<<<<<<<<<<<<
 *     def preferredCoscheduledSmCount(self):
 *         return self._pvt_ptr[0].preferredCoscheduledSmCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.preferredCoscheduledSmCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11368
 *     def preferredCoscheduledSmCount(self):
 *         return self._pvt_ptr[0].preferredCoscheduledSmCount
 *     @preferredCoscheduledSmCount.setter             # <<<<<<<<<<<<<<
 *     def preferredCoscheduledSmCount(self, unsigned int preferredCoscheduledSmCount):
 *         self._pvt_ptr[0].preferredCoscheduledSmCount = preferredCoscheduledSmCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_preferredCoscheduledSmCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_preferredCoscheduledSmCount) {
  unsigned int __pyx_v_preferredCoscheduledSmCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_preferredCoscheduledSmCount); {
    __pyx_v_preferredCoscheduledSmCount = __Pyx_PyLong_As_unsigned_int(__pyx_arg_preferredCoscheduledSmCount); if (unlikely((__pyx_v_preferredCoscheduledSmCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11369, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.preferredCoscheduledSmCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self), ((unsigned int)__pyx_v_preferredCoscheduledSmCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, unsigned int __pyx_v_preferredCoscheduledSmCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11370
 *     @preferredCoscheduledSmCount.setter
 *     def preferredCoscheduledSmCount(self, unsigned int preferredCoscheduledSmCount):
 *         self._pvt_ptr[0].preferredCoscheduledSmCount = preferredCoscheduledSmCount             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).preferredCoscheduledSmCount = __pyx_v_preferredCoscheduledSmCount;

  /* "cuda/bindings/runtime.pyx":11368
 *     def preferredCoscheduledSmCount(self):
 *         return self._pvt_ptr[0].preferredCoscheduledSmCount
 *     @preferredCoscheduledSmCount.setter             # <<<<<<<<<<<<<<
 *     def preferredCoscheduledSmCount(self, unsigned int preferredCoscheduledSmCount):
 *         self._pvt_ptr[0].preferredCoscheduledSmCount = preferredCoscheduledSmCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11371
 *     def preferredCoscheduledSmCount(self, unsigned int preferredCoscheduledSmCount):
 *         self._pvt_ptr[0].preferredCoscheduledSmCount = preferredCoscheduledSmCount
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11373
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11371
 *     def preferredCoscheduledSmCount(self, unsigned int preferredCoscheduledSmCount):
 *         self._pvt_ptr[0].preferredCoscheduledSmCount = preferredCoscheduledSmCount
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11374
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11375, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self), ((unsigned int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, unsigned int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11376
 *     @flags.setter
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":11374
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11377
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11379
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11377
 *     def flags(self, unsigned int flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11380
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[12];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":11382
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDevResource_st:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 12) < 0))) __PYX_ERR(0, 11382, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (12));

  /* "cuda/bindings/runtime.pyx":11380
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_31cudaDevSmResourceGroupParams_st_10__reduce_cython__, "cudaDevSmResourceGroupParams_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_31cudaDevSmResourceGroupParams_st_12__setstate_cython__, "cudaDevSmResourceGroupParams_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaDevSmResourceGroupParams_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceGroupParams_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11425
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaDevResource_st *>calloc(1, sizeof(cyruntime.cudaDevResource_st))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11425, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11425, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11425, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11425, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11425, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11425, __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.runtime.cudaDevResource_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct cudaDevResource_st *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":11426
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaDevResource_st *>calloc(1, sizeof(cyruntime.cudaDevResource_st))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11427
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaDevResource_st *>calloc(1, sizeof(cyruntime.cudaDevResource_st))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct cudaDevResource_st *)calloc(1, (sizeof(struct cudaDevResource_st))));

    /* "cuda/bindings/runtime.pyx":11428
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaDevResource_st *>calloc(1, sizeof(cyruntime.cudaDevResource_st))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevResource_st *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":11426
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaDevResource_st *>calloc(1, sizeof(cyruntime.cudaDevResource_st))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11430
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevResource_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaDevResource_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11425
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaDevResource_st *>calloc(1, sizeof(cyruntime.cudaDevResource_st))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11431
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevResource_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._sm = cudaDevSmResource(_ptr=<void_ptr>&self._pvt_ptr[0].sm)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11431, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11431, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11431, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11431, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11431, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11431, __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.runtime.cudaDevResource_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":11433
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._sm = cudaDevSmResource(_ptr=<void_ptr>&self._pvt_ptr[0].sm)             # <<<<<<<<<<<<<<
 *         self._wqConfig = cudaDevWorkqueueConfigResource(_ptr=<void_ptr>&self._pvt_ptr[0].wqConfig)
 *         self._wq = cudaDevWorkqueueResource(_ptr=<void_ptr>&self._pvt_ptr[0].wq)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).sm))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11433, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11433, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11433, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_sm);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_sm);
  __pyx_v_self->_sm = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11434
 *         pass
 *         self._sm = cudaDevSmResource(_ptr=<void_ptr>&self._pvt_ptr[0].sm)
 *         self._wqConfig = cudaDevWorkqueueConfigResource(_ptr=<void_ptr>&self._pvt_ptr[0].wqConfig)             # <<<<<<<<<<<<<<
 *         self._wq = cudaDevWorkqueueResource(_ptr=<void_ptr>&self._pvt_ptr[0].wq)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).wqConfig))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11434, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11434, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11434, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_wqConfig);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_wqConfig);
  __pyx_v_self->_wqConfig = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11435
 *         self._sm = cudaDevSmResource(_ptr=<void_ptr>&self._pvt_ptr[0].sm)
 *         self._wqConfig = cudaDevWorkqueueConfigResource(_ptr=<void_ptr>&self._pvt_ptr[0].wqConfig)
 *         self._wq = cudaDevWorkqueueResource(_ptr=<void_ptr>&self._pvt_ptr[0].wq)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).wq))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11435, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11435, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_wq);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_wq);
  __pyx_v_self->_wq = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11431
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaDevResource_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._sm = cudaDevSmResource(_ptr=<void_ptr>&self._pvt_ptr[0].sm)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11436
 *         self._wqConfig = cudaDevWorkqueueConfigResource(_ptr=<void_ptr>&self._pvt_ptr[0].wqConfig)
 *         self._wq = cudaDevWorkqueueResource(_ptr=<void_ptr>&self._pvt_ptr[0].wq)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11437
 *         self._wq = cudaDevWorkqueueResource(_ptr=<void_ptr>&self._pvt_ptr[0].wq)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *         if self._nextResource is not NULL:
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11438
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *         if self._nextResource is not NULL:
 *             free(self._nextResource)
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":11437
 *         self._wq = cudaDevWorkqueueResource(_ptr=<void_ptr>&self._pvt_ptr[0].wq)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *         if self._nextResource is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":11439
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *         if self._nextResource is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._nextResource)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_nextResource != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11440
 *             free(self._val_ptr)
 *         if self._nextResource is not NULL:
 *             free(self._nextResource)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_nextResource);

    /* "cuda/bindings/runtime.pyx":11439
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *         if self._nextResource is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._nextResource)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":11436
 *         self._wqConfig = cudaDevWorkqueueConfigResource(_ptr=<void_ptr>&self._pvt_ptr[0].wqConfig)
 *         self._wq = cudaDevWorkqueueResource(_ptr=<void_ptr>&self._pvt_ptr[0].wq)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11441
 *         if self._nextResource is not NULL:
 *             free(self._nextResource)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_7getPtr(PyObject *__pyx_v_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_7runtime_18cudaDevResource_st_6getPtr, "cudaDevResource_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaDevResource_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaDevResource_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11442
 *             free(self._nextResource)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11442, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11441
 *         if self._nextResource is not NULL:
 *             free(self._nextResource)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11443
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr143__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr144__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr145__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11444
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11445
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11446
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11447
 *             str_list = []
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11447, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11447, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11447, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11447, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11447, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11447, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11446
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11448
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11448, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11449
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['_internal_padding : ' + str(self._internal_padding)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11449, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 11449, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11449, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11446
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11450
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['_internal_padding : ' + str(self._internal_padding)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11451
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['_internal_padding : ' + str(self._internal_padding)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['_internal_padding : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_internal_padding_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11451, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11451, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_internal_padding, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11451, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11451, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11451, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11451, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11450
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['_internal_padding : ' + str(self._internal_padding)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11452
 *             try:
 *                 str_list += ['_internal_padding : ' + str(self._internal_padding)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['_internal_padding : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11452, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11453
 *                 str_list += ['_internal_padding : ' + str(self._internal_padding)]
 *             except ValueError:
 *                 str_list += ['_internal_padding : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sm :\n' + '\n'.join(['    ' + line for line in str(self.sm).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11453, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_internal_padding_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_internal_padding_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_internal_padding_ValueError) != (0)) __PYX_ERR(0, 11453, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11453, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11450
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['_internal_padding : ' + str(self._internal_padding)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11454
 *             except ValueError:
 *                 str_list += ['_internal_padding : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sm :\n' + '\n'.join(['    ' + line for line in str(self.sm).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11455
 *                 str_list += ['_internal_padding : <ValueError>']
 *             try:
 *                 str_list += ['sm :\n' + '\n'.join(['    ' + line for line in str(self.sm).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sm : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11455, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sm_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11455, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11455, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11455, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_6; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11455, __pyx_L28_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11455, __pyx_L28_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr143__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr143__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11455, __pyx_L28_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11455, __pyx_L28_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr143__pyx_v_line); __pyx_10genexpr143__pyx_v_line = 0;
          goto __pyx_L32_exit_scope;
          __pyx_L28_error:;
          __Pyx_XDECREF(__pyx_10genexpr143__pyx_v_line); __pyx_10genexpr143__pyx_v_line = 0;
          goto __pyx_L20_error;
          __pyx_L32_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11455, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sm, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11455, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11455, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11455, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11455, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11454
 *             except ValueError:
 *                 str_list += ['_internal_padding : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sm :\n' + '\n'.join(['    ' + line for line in str(self.sm).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11456
 *             try:
 *                 str_list += ['sm :\n' + '\n'.join(['    ' + line for line in str(self.sm).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sm : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 11456, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11457
 *                 str_list += ['sm :\n' + '\n'.join(['    ' + line for line in str(self.sm).splitlines()])]
 *             except ValueError:
 *                 str_list += ['sm : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['wqConfig :\n' + '\n'.join(['    ' + line for line in str(self.wqConfig).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11457, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sm_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sm_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_sm_ValueError) != (0)) __PYX_ERR(0, 11457, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11457, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":11454
 *             except ValueError:
 *                 str_list += ['_internal_padding : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sm :\n' + '\n'.join(['    ' + line for line in str(self.sm).splitlines()])]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11458
 *             except ValueError:
 *                 str_list += ['sm : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wqConfig :\n' + '\n'.join(['    ' + line for line in str(self.wqConfig).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11459
 *                 str_list += ['sm : <ValueError>']
 *             try:
 *                 str_list += ['wqConfig :\n' + '\n'.join(['    ' + line for line in str(self.wqConfig).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['wqConfig : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11459, __pyx_L43_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_wqConfig_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11459, __pyx_L43_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11459, __pyx_L43_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11459, __pyx_L43_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_8; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11459, __pyx_L43_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11459, __pyx_L43_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_10genexpr144__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr144__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11459, __pyx_L43_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 11459, __pyx_L43_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr144__pyx_v_line); __pyx_10genexpr144__pyx_v_line = 0;
          goto __pyx_L47_exit_scope;
          __pyx_L43_error:;
          __Pyx_XDECREF(__pyx_10genexpr144__pyx_v_line); __pyx_10genexpr144__pyx_v_line = 0;
          goto __pyx_L35_error;
          __pyx_L47_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11459, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_wqConfig, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11459, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11459, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 11459, __pyx_L35_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11459, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":11458
 *             except ValueError:
 *                 str_list += ['sm : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wqConfig :\n' + '\n'.join(['    ' + line for line in str(self.wqConfig).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11460
 *             try:
 *                 str_list += ['wqConfig :\n' + '\n'.join(['    ' + line for line in str(self.wqConfig).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['wqConfig : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 11460, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11461
 *                 str_list += ['wqConfig :\n' + '\n'.join(['    ' + line for line in str(self.wqConfig).splitlines()])]
 *             except ValueError:
 *                 str_list += ['wqConfig : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['wq :\n' + '\n'.join(['    ' + line for line in str(self.wq).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11461, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_wqConfig_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_wqConfig_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_wqConfig_ValueError) != (0)) __PYX_ERR(0, 11461, __pyx_L37_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11461, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":11458
 *             except ValueError:
 *                 str_list += ['sm : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wqConfig :\n' + '\n'.join(['    ' + line for line in str(self.wqConfig).splitlines()])]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11462
 *             except ValueError:
 *                 str_list += ['wqConfig : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wq :\n' + '\n'.join(['    ' + line for line in str(self.wq).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11463
 *                 str_list += ['wqConfig : <ValueError>']
 *             try:
 *                 str_list += ['wq :\n' + '\n'.join(['    ' + line for line in str(self.wq).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['wq : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11463, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_wq_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11463, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11463, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11463, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_2; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11463, __pyx_L58_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11463, __pyx_L58_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr145__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr145__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11463, __pyx_L58_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 11463, __pyx_L58_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr145__pyx_v_line); __pyx_10genexpr145__pyx_v_line = 0;
          goto __pyx_L62_exit_scope;
          __pyx_L58_error:;
          __Pyx_XDECREF(__pyx_10genexpr145__pyx_v_line); __pyx_10genexpr145__pyx_v_line = 0;
          goto __pyx_L50_error;
          __pyx_L62_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11463, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_wq, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11463, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11463, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11463, __pyx_L50_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11463, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11462
 *             except ValueError:
 *                 str_list += ['wqConfig : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wq :\n' + '\n'.join(['    ' + line for line in str(self.wq).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L55_try_end;
      __pyx_L50_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11464
 *             try:
 *                 str_list += ['wq :\n' + '\n'.join(['    ' + line for line in str(self.wq).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['wq : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11464, __pyx_L52_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11465
 *                 str_list += ['wq :\n' + '\n'.join(['    ' + line for line in str(self.wq).splitlines()])]
 *             except ValueError:
 *                 str_list += ['wq : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['_oversize : ' + str(self._oversize)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11465, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_wq_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_wq_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_wq_ValueError) != (0)) __PYX_ERR(0, 11465, __pyx_L52_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11465, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L51_exception_handled;
      }
      goto __pyx_L52_except_error;

      /* "cuda/bindings/runtime.pyx":11462
 *             except ValueError:
 *                 str_list += ['wqConfig : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['wq :\n' + '\n'.join(['    ' + line for line in str(self.wq).splitlines()])]
 *             except ValueError:
*/
      __pyx_L52_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L51_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L55_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11466
 *             except ValueError:
 *                 str_list += ['wq : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['_oversize : ' + str(self._oversize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11467
 *                 str_list += ['wq : <ValueError>']
 *             try:
 *                 str_list += ['_oversize : ' + str(self._oversize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['_oversize : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_oversize_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11467, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11467, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_oversize, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11467, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11467, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11467, __pyx_L65_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11467, __pyx_L65_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11466
 *             except ValueError:
 *                 str_list += ['wq : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['_oversize : ' + str(self._oversize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L70_try_end;
      __pyx_L65_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11468
 *             try:
 *                 str_list += ['_oversize : ' + str(self._oversize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['_oversize : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11468, __pyx_L67_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11469
 *                 str_list += ['_oversize : ' + str(self._oversize)]
 *             except ValueError:
 *                 str_list += ['_oversize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['nextResource : ' + str(self.nextResource)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11469, __pyx_L67_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_oversize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_oversize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_oversize_ValueError) != (0)) __PYX_ERR(0, 11469, __pyx_L67_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11469, __pyx_L67_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L66_exception_handled;
      }
      goto __pyx_L67_except_error;

      /* "cuda/bindings/runtime.pyx":11466
 *             except ValueError:
 *                 str_list += ['wq : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['_oversize : ' + str(self._oversize)]
 *             except ValueError:
*/
      __pyx_L67_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L66_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L70_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11470
 *             except ValueError:
 *                 str_list += ['_oversize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nextResource : ' + str(self.nextResource)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11471
 *                 str_list += ['_oversize : <ValueError>']
 *             try:
 *                 str_list += ['nextResource : ' + str(self.nextResource)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['nextResource : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_nextResource_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11471, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11471, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_nextResource, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11471, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11471, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11471, __pyx_L73_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11471, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11470
 *             except ValueError:
 *                 str_list += ['_oversize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nextResource : ' + str(self.nextResource)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L78_try_end;
      __pyx_L73_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11472
 *             try:
 *                 str_list += ['nextResource : ' + str(self.nextResource)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['nextResource : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11472, __pyx_L75_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11473
 *                 str_list += ['nextResource : ' + str(self.nextResource)]
 *             except ValueError:
 *                 str_list += ['nextResource : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11473, __pyx_L75_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_nextResource_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_nextResource_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_nextResource_ValueError) != (0)) __PYX_ERR(0, 11473, __pyx_L75_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11473, __pyx_L75_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L74_exception_handled;
      }
      goto __pyx_L75_except_error;

      /* "cuda/bindings/runtime.pyx":11470
 *             except ValueError:
 *                 str_list += ['_oversize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nextResource : ' + str(self.nextResource)]
 *             except ValueError:
*/
      __pyx_L75_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L74_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L78_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11474
 *             except ValueError:
 *                 str_list += ['nextResource : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11474, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11444
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11476
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11443
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr143__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr144__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr145__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11477
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaDevResourceType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11479
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaDevResourceType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaDevResourceType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaDevResourceType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaDevResourceType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 11479, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":11480
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaDevResourceType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaDevResourceType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11479
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaDevResourceType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaDevResourceType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":11481
 *         if self._pvt_ptr[0].type not in _dict_cudaDevResourceType:
 *             return None
 *         return _dict_cudaDevResourceType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaDevResourceType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaDevResourceType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11481, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaDevResourceType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11481, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11481, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11477
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaDevResourceType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11482
 *             return None
 *         return _dict_cudaDevResourceType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaDevResourceType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 11483, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaDevResourceType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11484
 *     @type.setter
 *     def type(self, type not None : cudaDevResourceType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def _internal_padding(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaDevResourceType)__Pyx_PyLong_As_enum__cudaDevResourceType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 11484, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":11482
 *             return None
 *         return _dict_cudaDevResourceType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaDevResourceType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11485
 *     def type(self, type not None : cudaDevResourceType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def _internal_padding(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._internal_padding, 92)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11487
 *     @property
 *     def _internal_padding(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._internal_padding, 92)             # <<<<<<<<<<<<<<
 *     @_internal_padding.setter
 *     def _internal_padding(self, _internal_padding):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_pvt_ptr[0])._internal_padding), 92); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11485
 *     def type(self, type not None : cudaDevResourceType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def _internal_padding(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._internal_padding, 92)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st._internal_padding.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11488
 *     def _internal_padding(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._internal_padding, 92)
 *     @_internal_padding.setter             # <<<<<<<<<<<<<<
 *     def _internal_padding(self, _internal_padding):
 *         if len(_internal_padding) != 92:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v__internal_padding); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v__internal_padding) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), ((PyObject *)__pyx_v__internal_padding));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, PyObject *__pyx_v__internal_padding) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  unsigned char __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11490
 *     @_internal_padding.setter
 *     def _internal_padding(self, _internal_padding):
 *         if len(_internal_padding) != 92:             # <<<<<<<<<<<<<<
 *             raise ValueError("_internal_padding length must be 92, is " + str(len(_internal_padding)))
 *         for i, b in enumerate(_internal_padding):
*/
  __pyx_t_1 = PyObject_Length(__pyx_v__internal_padding); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11490, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 92);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":11491
 *     def _internal_padding(self, _internal_padding):
 *         if len(_internal_padding) != 92:
 *             raise ValueError("_internal_padding length must be 92, is " + str(len(_internal_padding)))             # <<<<<<<<<<<<<<
 *         for i, b in enumerate(_internal_padding):
 *             self._pvt_ptr[0]._internal_padding[i] = b
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v__internal_padding); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11491, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_internal_padding_length_must_be, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11491, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 11491, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":11490
 *     @_internal_padding.setter
 *     def _internal_padding(self, _internal_padding):
 *         if len(_internal_padding) != 92:             # <<<<<<<<<<<<<<
 *             raise ValueError("_internal_padding length must be 92, is " + str(len(_internal_padding)))
 *         for i, b in enumerate(_internal_padding):
*/
  }

  /* "cuda/bindings/runtime.pyx":11492
 *         if len(_internal_padding) != 92:
 *             raise ValueError("_internal_padding length must be 92, is " + str(len(_internal_padding)))
 *         for i, b in enumerate(_internal_padding):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0]._internal_padding[i] = b
 *     @property
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v__internal_padding)) || PyTuple_CheckExact(__pyx_v__internal_padding)) {
    __pyx_t_5 = __pyx_v__internal_padding; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_1 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v__internal_padding); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11492, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11492, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_5))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11492, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11492, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11492, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_5);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 11492, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11492, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":11493
 *             raise ValueError("_internal_padding length must be 92, is " + str(len(_internal_padding)))
 *         for i, b in enumerate(_internal_padding):
 *             self._pvt_ptr[0]._internal_padding[i] = b             # <<<<<<<<<<<<<<
 *     @property
 *     def sm(self):
*/
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_9 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 11493, __pyx_L1_error)
    __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 11493, __pyx_L1_error)
    ((__pyx_v_self->_pvt_ptr[0])._internal_padding[__pyx_t_10]) = __pyx_t_9;

    /* "cuda/bindings/runtime.pyx":11492
 *         if len(_internal_padding) != 92:
 *             raise ValueError("_internal_padding length must be 92, is " + str(len(_internal_padding)))
 *         for i, b in enumerate(_internal_padding):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0]._internal_padding[i] = b
 *     @property
*/
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":11488
 *     def _internal_padding(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._internal_padding, 92)
 *     @_internal_padding.setter             # <<<<<<<<<<<<<<
 *     def _internal_padding(self, _internal_padding):
 *         if len(_internal_padding) != 92:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st._internal_padding.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11494
 *         for i, b in enumerate(_internal_padding):
 *             self._pvt_ptr[0]._internal_padding[i] = b
 *     @property             # <<<<<<<<<<<<<<
 *     def sm(self):
 *         return self._sm
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11496
 *     @property
 *     def sm(self):
 *         return self._sm             # <<<<<<<<<<<<<<
 *     @sm.setter
 *     def sm(self, sm not None : cudaDevSmResource):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_sm);
  __pyx_r = ((PyObject *)__pyx_v_self->_sm);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11494
 *         for i, b in enumerate(_internal_padding):
 *             self._pvt_ptr[0]._internal_padding[i] = b
 *     @property             # <<<<<<<<<<<<<<
 *     def sm(self):
 *         return self._sm
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11497
 *     def sm(self):
 *         return self._sm
 *     @sm.setter             # <<<<<<<<<<<<<<
 *     def sm(self, sm not None : cudaDevSmResource):
 *         string.memcpy(&self._pvt_ptr[0].sm, <cyruntime.cudaDevSmResource*><void_ptr>sm.getPtr(), sizeof(self._pvt_ptr[0].sm))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_sm); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_sm) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sm), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource, 0, "sm", 0))) __PYX_ERR(0, 11498, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)__pyx_v_sm));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *__pyx_v_sm) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11499
 *     @sm.setter
 *     def sm(self, sm not None : cudaDevSmResource):
 *         string.memcpy(&self._pvt_ptr[0].sm, <cyruntime.cudaDevSmResource*><void_ptr>sm.getPtr(), sizeof(self._pvt_ptr[0].sm))             # <<<<<<<<<<<<<<
 *     @property
 *     def wqConfig(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_sm);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11499, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11499, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).sm), ((struct cudaDevSmResource *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).sm))));

  /* "cuda/bindings/runtime.pyx":11497
 *     def sm(self):
 *         return self._sm
 *     @sm.setter             # <<<<<<<<<<<<<<
 *     def sm(self, sm not None : cudaDevSmResource):
 *         string.memcpy(&self._pvt_ptr[0].sm, <cyruntime.cudaDevSmResource*><void_ptr>sm.getPtr(), sizeof(self._pvt_ptr[0].sm))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.sm.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11500
 *     def sm(self, sm not None : cudaDevSmResource):
 *         string.memcpy(&self._pvt_ptr[0].sm, <cyruntime.cudaDevSmResource*><void_ptr>sm.getPtr(), sizeof(self._pvt_ptr[0].sm))
 *     @property             # <<<<<<<<<<<<<<
 *     def wqConfig(self):
 *         return self._wqConfig
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11502
 *     @property
 *     def wqConfig(self):
 *         return self._wqConfig             # <<<<<<<<<<<<<<
 *     @wqConfig.setter
 *     def wqConfig(self, wqConfig not None : cudaDevWorkqueueConfigResource):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_wqConfig);
  __pyx_r = ((PyObject *)__pyx_v_self->_wqConfig);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11500
 *     def sm(self, sm not None : cudaDevSmResource):
 *         string.memcpy(&self._pvt_ptr[0].sm, <cyruntime.cudaDevSmResource*><void_ptr>sm.getPtr(), sizeof(self._pvt_ptr[0].sm))
 *     @property             # <<<<<<<<<<<<<<
 *     def wqConfig(self):
 *         return self._wqConfig
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11503
 *     def wqConfig(self):
 *         return self._wqConfig
 *     @wqConfig.setter             # <<<<<<<<<<<<<<
 *     def wqConfig(self, wqConfig not None : cudaDevWorkqueueConfigResource):
 *         string.memcpy(&self._pvt_ptr[0].wqConfig, <cyruntime.cudaDevWorkqueueConfigResource*><void_ptr>wqConfig.getPtr(), sizeof(self._pvt_ptr[0].wqConfig))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_wqConfig); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_wqConfig) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wqConfig), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource, 0, "wqConfig", 0))) __PYX_ERR(0, 11504, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)__pyx_v_wqConfig));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *__pyx_v_wqConfig) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11505
 *     @wqConfig.setter
 *     def wqConfig(self, wqConfig not None : cudaDevWorkqueueConfigResource):
 *         string.memcpy(&self._pvt_ptr[0].wqConfig, <cyruntime.cudaDevWorkqueueConfigResource*><void_ptr>wqConfig.getPtr(), sizeof(self._pvt_ptr[0].wqConfig))             # <<<<<<<<<<<<<<
 *     @property
 *     def wq(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_wqConfig);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).wqConfig), ((struct cudaDevWorkqueueConfigResource *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).wqConfig))));

  /* "cuda/bindings/runtime.pyx":11503
 *     def wqConfig(self):
 *         return self._wqConfig
 *     @wqConfig.setter             # <<<<<<<<<<<<<<
 *     def wqConfig(self, wqConfig not None : cudaDevWorkqueueConfigResource):
 *         string.memcpy(&self._pvt_ptr[0].wqConfig, <cyruntime.cudaDevWorkqueueConfigResource*><void_ptr>wqConfig.getPtr(), sizeof(self._pvt_ptr[0].wqConfig))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.wqConfig.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11506
 *     def wqConfig(self, wqConfig not None : cudaDevWorkqueueConfigResource):
 *         string.memcpy(&self._pvt_ptr[0].wqConfig, <cyruntime.cudaDevWorkqueueConfigResource*><void_ptr>wqConfig.getPtr(), sizeof(self._pvt_ptr[0].wqConfig))
 *     @property             # <<<<<<<<<<<<<<
 *     def wq(self):
 *         return self._wq
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11508
 *     @property
 *     def wq(self):
 *         return self._wq             # <<<<<<<<<<<<<<
 *     @wq.setter
 *     def wq(self, wq not None : cudaDevWorkqueueResource):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_wq);
  __pyx_r = ((PyObject *)__pyx_v_self->_wq);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11506
 *     def wqConfig(self, wqConfig not None : cudaDevWorkqueueConfigResource):
 *         string.memcpy(&self._pvt_ptr[0].wqConfig, <cyruntime.cudaDevWorkqueueConfigResource*><void_ptr>wqConfig.getPtr(), sizeof(self._pvt_ptr[0].wqConfig))
 *     @property             # <<<<<<<<<<<<<<
 *     def wq(self):
 *         return self._wq
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11509
 *     def wq(self):
 *         return self._wq
 *     @wq.setter             # <<<<<<<<<<<<<<
 *     def wq(self, wq not None : cudaDevWorkqueueResource):
 *         string.memcpy(&self._pvt_ptr[0].wq, <cyruntime.cudaDevWorkqueueResource*><void_ptr>wq.getPtr(), sizeof(self._pvt_ptr[0].wq))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_wq); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_wq) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_wq), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource, 0, "wq", 0))) __PYX_ERR(0, 11510, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)__pyx_v_wq));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *__pyx_v_wq) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11511
 *     @wq.setter
 *     def wq(self, wq not None : cudaDevWorkqueueResource):
 *         string.memcpy(&self._pvt_ptr[0].wq, <cyruntime.cudaDevWorkqueueResource*><void_ptr>wq.getPtr(), sizeof(self._pvt_ptr[0].wq))             # <<<<<<<<<<<<<<
 *     @property
 *     def _oversize(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_wq);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11511, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).wq), ((struct cudaDevWorkqueueResource *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).wq))));

  /* "cuda/bindings/runtime.pyx":11509
 *     def wq(self):
 *         return self._wq
 *     @wq.setter             # <<<<<<<<<<<<<<
 *     def wq(self, wq not None : cudaDevWorkqueueResource):
 *         string.memcpy(&self._pvt_ptr[0].wq, <cyruntime.cudaDevWorkqueueResource*><void_ptr>wq.getPtr(), sizeof(self._pvt_ptr[0].wq))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.wq.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11512
 *     def wq(self, wq not None : cudaDevWorkqueueResource):
 *         string.memcpy(&self._pvt_ptr[0].wq, <cyruntime.cudaDevWorkqueueResource*><void_ptr>wq.getPtr(), sizeof(self._pvt_ptr[0].wq))
 *     @property             # <<<<<<<<<<<<<<
 *     def _oversize(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._oversize, 40)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11514
 *     @property
 *     def _oversize(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._oversize, 40)             # <<<<<<<<<<<<<<
 *     @_oversize.setter
 *     def _oversize(self, _oversize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_pvt_ptr[0])._oversize), 40); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11512
 *     def wq(self, wq not None : cudaDevWorkqueueResource):
 *         string.memcpy(&self._pvt_ptr[0].wq, <cyruntime.cudaDevWorkqueueResource*><void_ptr>wq.getPtr(), sizeof(self._pvt_ptr[0].wq))
 *     @property             # <<<<<<<<<<<<<<
 *     def _oversize(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._oversize, 40)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st._oversize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11515
 *     def _oversize(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._oversize, 40)
 *     @_oversize.setter             # <<<<<<<<<<<<<<
 *     def _oversize(self, _oversize):
 *         if len(_oversize) != 40:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v__oversize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v__oversize) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), ((PyObject *)__pyx_v__oversize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, PyObject *__pyx_v__oversize) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  unsigned char __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11517
 *     @_oversize.setter
 *     def _oversize(self, _oversize):
 *         if len(_oversize) != 40:             # <<<<<<<<<<<<<<
 *             raise ValueError("_oversize length must be 40, is " + str(len(_oversize)))
 *         for i, b in enumerate(_oversize):
*/
  __pyx_t_1 = PyObject_Length(__pyx_v__oversize); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11517, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 40);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":11518
 *     def _oversize(self, _oversize):
 *         if len(_oversize) != 40:
 *             raise ValueError("_oversize length must be 40, is " + str(len(_oversize)))             # <<<<<<<<<<<<<<
 *         for i, b in enumerate(_oversize):
 *             self._pvt_ptr[0]._oversize[i] = b
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v__oversize); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11518, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_oversize_length_must_be_40_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11518, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 11518, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":11517
 *     @_oversize.setter
 *     def _oversize(self, _oversize):
 *         if len(_oversize) != 40:             # <<<<<<<<<<<<<<
 *             raise ValueError("_oversize length must be 40, is " + str(len(_oversize)))
 *         for i, b in enumerate(_oversize):
*/
  }

  /* "cuda/bindings/runtime.pyx":11519
 *         if len(_oversize) != 40:
 *             raise ValueError("_oversize length must be 40, is " + str(len(_oversize)))
 *         for i, b in enumerate(_oversize):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0]._oversize[i] = b
 *     @property
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v__oversize)) || PyTuple_CheckExact(__pyx_v__oversize)) {
    __pyx_t_5 = __pyx_v__oversize; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_1 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v__oversize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11519, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_5))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11519, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11519, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11519, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_5);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 11519, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":11520
 *             raise ValueError("_oversize length must be 40, is " + str(len(_oversize)))
 *         for i, b in enumerate(_oversize):
 *             self._pvt_ptr[0]._oversize[i] = b             # <<<<<<<<<<<<<<
 *     @property
 *     def nextResource(self):
*/
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_9 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 11520, __pyx_L1_error)
    __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 11520, __pyx_L1_error)
    ((__pyx_v_self->_pvt_ptr[0])._oversize[__pyx_t_10]) = __pyx_t_9;

    /* "cuda/bindings/runtime.pyx":11519
 *         if len(_oversize) != 40:
 *             raise ValueError("_oversize length must be 40, is " + str(len(_oversize)))
 *         for i, b in enumerate(_oversize):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0]._oversize[i] = b
 *     @property
*/
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":11515
 *     def _oversize(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0]._oversize, 40)
 *     @_oversize.setter             # <<<<<<<<<<<<<<
 *     def _oversize(self, _oversize):
 *         if len(_oversize) != 40:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st._oversize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11521
 *         for i, b in enumerate(_oversize):
 *             self._pvt_ptr[0]._oversize[i] = b
 *     @property             # <<<<<<<<<<<<<<
 *     def nextResource(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].nextResource + x*sizeof(cyruntime.cudaDevResource_st) for x in range(self._nextResource_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr146__pyx_v_x;
  PyObject *__pyx_10genexpr147__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11523
 *     @property
 *     def nextResource(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].nextResource + x*sizeof(cyruntime.cudaDevResource_st) for x in range(self._nextResource_length)]             # <<<<<<<<<<<<<<
 *         return [cudaDevResource_st(_ptr=arr) for arr in arrs]
 *     @nextResource.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11523, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_nextResource_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr146__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).nextResource) + (__pyx_10genexpr146__pyx_v_x * (sizeof(struct cudaDevResource_st))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11523, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 11523, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11524
 *     def nextResource(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].nextResource + x*sizeof(cyruntime.cudaDevResource_st) for x in range(self._nextResource_length)]
 *         return [cudaDevResource_st(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @nextResource.setter
 *     def nextResource(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11524, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11524, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11524, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr147__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11524, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr147__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11524, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11524, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 11524, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr147__pyx_v_arr); __pyx_10genexpr147__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr147__pyx_v_arr); __pyx_10genexpr147__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11521
 *         for i, b in enumerate(_oversize):
 *             self._pvt_ptr[0]._oversize[i] = b
 *     @property             # <<<<<<<<<<<<<<
 *     def nextResource(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].nextResource + x*sizeof(cyruntime.cudaDevResource_st) for x in range(self._nextResource_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.nextResource.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr147__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11525
 *         arrs = [<void_ptr>self._pvt_ptr[0].nextResource + x*sizeof(cyruntime.cudaDevResource_st) for x in range(self._nextResource_length)]
 *         return [cudaDevResource_st(_ptr=arr) for arr in arrs]
 *     @nextResource.setter             # <<<<<<<<<<<<<<
 *     def nextResource(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  struct cudaDevResource_st *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11527
 *     @nextResource.setter
 *     def nextResource(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._nextResource)
 *             self._nextResource_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11527, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":11528
 *     def nextResource(self, val):
 *         if len(val) == 0:
 *             free(self._nextResource)             # <<<<<<<<<<<<<<
 *             self._nextResource_length = 0
 *             self._pvt_ptr[0].nextResource = NULL
*/
    free(__pyx_v_self->_nextResource);

    /* "cuda/bindings/runtime.pyx":11529
 *         if len(val) == 0:
 *             free(self._nextResource)
 *             self._nextResource_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].nextResource = NULL
 *         else:
*/
    __pyx_v_self->_nextResource_length = 0;

    /* "cuda/bindings/runtime.pyx":11530
 *             free(self._nextResource)
 *             self._nextResource_length = 0
 *             self._pvt_ptr[0].nextResource = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._nextResource_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).nextResource = NULL;

    /* "cuda/bindings/runtime.pyx":11527
 *     @nextResource.setter
 *     def nextResource(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._nextResource)
 *             self._nextResource_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11532
 *             self._pvt_ptr[0].nextResource = NULL
 *         else:
 *             if self._nextResource_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._nextResource)
 *                 self._nextResource = <cyruntime.cudaDevResource_st*> calloc(len(val), sizeof(cyruntime.cudaDevResource_st))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11532, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_nextResource_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":11533
 *         else:
 *             if self._nextResource_length != <size_t>len(val):
 *                 free(self._nextResource)             # <<<<<<<<<<<<<<
 *                 self._nextResource = <cyruntime.cudaDevResource_st*> calloc(len(val), sizeof(cyruntime.cudaDevResource_st))
 *                 if self._nextResource is NULL:
*/
      free(__pyx_v_self->_nextResource);

      /* "cuda/bindings/runtime.pyx":11534
 *             if self._nextResource_length != <size_t>len(val):
 *                 free(self._nextResource)
 *                 self._nextResource = <cyruntime.cudaDevResource_st*> calloc(len(val), sizeof(cyruntime.cudaDevResource_st))             # <<<<<<<<<<<<<<
 *                 if self._nextResource is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaDevResource_st)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11534, __pyx_L1_error)
      __pyx_v_self->_nextResource = ((struct cudaDevResource_st *)calloc(__pyx_t_1, (sizeof(struct cudaDevResource_st))));

      /* "cuda/bindings/runtime.pyx":11535
 *                 free(self._nextResource)
 *                 self._nextResource = <cyruntime.cudaDevResource_st*> calloc(len(val), sizeof(cyruntime.cudaDevResource_st))
 *                 if self._nextResource is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaDevResource_st)))
 *                 self._nextResource_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_nextResource == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":11536
 *                 self._nextResource = <cyruntime.cudaDevResource_st*> calloc(len(val), sizeof(cyruntime.cudaDevResource_st))
 *                 if self._nextResource is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaDevResource_st)))             # <<<<<<<<<<<<<<
 *                 self._nextResource_length = <size_t>len(val)
 *                 self._pvt_ptr[0].nextResource = self._nextResource
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11536, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11536, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11536, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11536, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11536, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaDevResource_st))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11536, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11536, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11536, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11536, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 11536, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":11535
 *                 free(self._nextResource)
 *                 self._nextResource = <cyruntime.cudaDevResource_st*> calloc(len(val), sizeof(cyruntime.cudaDevResource_st))
 *                 if self._nextResource is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaDevResource_st)))
 *                 self._nextResource_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":11537
 *                 if self._nextResource is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaDevResource_st)))
 *                 self._nextResource_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].nextResource = self._nextResource
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11537, __pyx_L1_error)
      __pyx_v_self->_nextResource_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":11538
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaDevResource_st)))
 *                 self._nextResource_length = <size_t>len(val)
 *                 self._pvt_ptr[0].nextResource = self._nextResource             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._nextResource[idx], (<cudaDevResource_st>val[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource_st))
*/
      __pyx_t_9 = __pyx_v_self->_nextResource;
      (__pyx_v_self->_pvt_ptr[0]).nextResource = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":11532
 *             self._pvt_ptr[0].nextResource = NULL
 *         else:
 *             if self._nextResource_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._nextResource)
 *                 self._nextResource = <cyruntime.cudaDevResource_st*> calloc(len(val), sizeof(cyruntime.cudaDevResource_st))
*/
    }

    /* "cuda/bindings/runtime.pyx":11539
 *                 self._nextResource_length = <size_t>len(val)
 *                 self._pvt_ptr[0].nextResource = self._nextResource
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 string.memcpy(&self._nextResource[idx], (<cudaDevResource_st>val[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource_st))
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11539, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":11540
 *                 self._pvt_ptr[0].nextResource = self._nextResource
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._nextResource[idx], (<cudaDevResource_st>val[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource_st))             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11540, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_self->_nextResource[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaDevResource_st))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11525
 *         arrs = [<void_ptr>self._pvt_ptr[0].nextResource + x*sizeof(cyruntime.cudaDevResource_st) for x in range(self._nextResource_length)]
 *         return [cudaDevResource_st(_ptr=arr) for arr in arrs]
 *     @nextResource.setter             # <<<<<<<<<<<<<<
 *     def nextResource(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.nextResource.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_18cudaDevResource_st_10__reduce_cython__, "cudaDevResource_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaDevResource_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaDevResource_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_18cudaDevResource_st_12__setstate_cython__, "cudaDevResource_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_18cudaDevResource_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaDevResource_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaDevResource_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDevResource_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResource_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11561
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11561, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11561, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11561, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11561, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11561, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11561, __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.runtime.cudalibraryHostUniversalFunctionAndDataTable.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11562
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11563
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudalibraryHostUniversalFunctionAndDataTable *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11562
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11565
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudalibraryHostUniversalFunctionAndDataTable *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11561
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11566
 *         else:
 *             self._pvt_ptr = <cyruntime.cudalibraryHostUniversalFunctionAndDataTable *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11566, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11566, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11566, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11566, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11566, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11566, __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.runtime.cudalibraryHostUniversalFunctionAndDataTable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11568
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11570
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_7getPtr(PyObject *__pyx_v_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_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_6getPtr, "cudalibraryHostUniversalFunctionAndDataTable.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11571
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11570
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11572
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11573
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11574
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['functionTable : ' + hex(self.functionTable)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11575
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['functionTable : ' + hex(self.functionTable)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11576
 *             str_list = []
 *             try:
 *                 str_list += ['functionTable : ' + hex(self.functionTable)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['functionTable : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_functionTable_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11576, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11576, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_functionTable, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11576, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11576, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11576, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11576, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11575
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['functionTable : ' + hex(self.functionTable)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11577
 *             try:
 *                 str_list += ['functionTable : ' + hex(self.functionTable)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['functionTable : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11577, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11578
 *                 str_list += ['functionTable : ' + hex(self.functionTable)]
 *             except ValueError:
 *                 str_list += ['functionTable : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['functionWindowSize : ' + str(self.functionWindowSize)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11578, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_functionTable_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_functionTable_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_functionTable_ValueError) != (0)) __PYX_ERR(0, 11578, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11578, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11575
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['functionTable : ' + hex(self.functionTable)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11579
 *             except ValueError:
 *                 str_list += ['functionTable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['functionWindowSize : ' + str(self.functionWindowSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11580
 *                 str_list += ['functionTable : <ValueError>']
 *             try:
 *                 str_list += ['functionWindowSize : ' + str(self.functionWindowSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['functionWindowSize : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_functionWindowSize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11580, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11580, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_functionWindowSize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11580, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11580, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11580, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11580, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11579
 *             except ValueError:
 *                 str_list += ['functionTable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['functionWindowSize : ' + str(self.functionWindowSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11581
 *             try:
 *                 str_list += ['functionWindowSize : ' + str(self.functionWindowSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['functionWindowSize : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11581, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11582
 *                 str_list += ['functionWindowSize : ' + str(self.functionWindowSize)]
 *             except ValueError:
 *                 str_list += ['functionWindowSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dataTable : ' + hex(self.dataTable)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11582, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_functionWindowSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_functionWindowSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_functionWindowSize_ValueError) != (0)) __PYX_ERR(0, 11582, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11582, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11579
 *             except ValueError:
 *                 str_list += ['functionTable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['functionWindowSize : ' + str(self.functionWindowSize)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11583
 *             except ValueError:
 *                 str_list += ['functionWindowSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dataTable : ' + hex(self.dataTable)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11584
 *                 str_list += ['functionWindowSize : <ValueError>']
 *             try:
 *                 str_list += ['dataTable : ' + hex(self.dataTable)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dataTable : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dataTable_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11584, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11584, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_dataTable, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11584, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11584, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11584, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11584, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11583
 *             except ValueError:
 *                 str_list += ['functionWindowSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dataTable : ' + hex(self.dataTable)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11585
 *             try:
 *                 str_list += ['dataTable : ' + hex(self.dataTable)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dataTable : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11585, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11586
 *                 str_list += ['dataTable : ' + hex(self.dataTable)]
 *             except ValueError:
 *                 str_list += ['dataTable : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['dataWindowSize : ' + str(self.dataWindowSize)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11586, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dataTable_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dataTable_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_dataTable_ValueError) != (0)) __PYX_ERR(0, 11586, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11586, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":11583
 *             except ValueError:
 *                 str_list += ['functionWindowSize : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dataTable : ' + hex(self.dataTable)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11587
 *             except ValueError:
 *                 str_list += ['dataTable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dataWindowSize : ' + str(self.dataWindowSize)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11588
 *                 str_list += ['dataTable : <ValueError>']
 *             try:
 *                 str_list += ['dataWindowSize : ' + str(self.dataWindowSize)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['dataWindowSize : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dataWindowSize_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11588, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11588, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_dataWindowSize, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11588, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11588, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11588, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11588, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11587
 *             except ValueError:
 *                 str_list += ['dataTable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dataWindowSize : ' + str(self.dataWindowSize)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11589
 *             try:
 *                 str_list += ['dataWindowSize : ' + str(self.dataWindowSize)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['dataWindowSize : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11589, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11590
 *                 str_list += ['dataWindowSize : ' + str(self.dataWindowSize)]
 *             except ValueError:
 *                 str_list += ['dataWindowSize : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11590, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_dataWindowSize_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_dataWindowSize_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_dataWindowSize_ValueError) != (0)) __PYX_ERR(0, 11590, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11590, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":11587
 *             except ValueError:
 *                 str_list += ['dataTable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['dataWindowSize : ' + str(self.dataWindowSize)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11591
 *             except ValueError:
 *                 str_list += ['dataWindowSize : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11573
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11593
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def functionTable(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11572
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11594
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def functionTable(self):
 *         return <void_ptr>self._pvt_ptr[0].functionTable
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11596
 *     @property
 *     def functionTable(self):
 *         return <void_ptr>self._pvt_ptr[0].functionTable             # <<<<<<<<<<<<<<
 *     @functionTable.setter
 *     def functionTable(self, functionTable):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).functionTable)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11594
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def functionTable(self):
 *         return <void_ptr>self._pvt_ptr[0].functionTable
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.functionTable.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11597
 *     def functionTable(self):
 *         return <void_ptr>self._pvt_ptr[0].functionTable
 *     @functionTable.setter             # <<<<<<<<<<<<<<
 *     def functionTable(self, functionTable):
 *         _cfunctionTable = _HelperInputVoidPtr(functionTable)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_functionTable); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_functionTable) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self), ((PyObject *)__pyx_v_functionTable));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, PyObject *__pyx_v_functionTable) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cfunctionTable = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11599
 *     @functionTable.setter
 *     def functionTable(self, functionTable):
 *         _cfunctionTable = _HelperInputVoidPtr(functionTable)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].functionTable = <void*><void_ptr>_cfunctionTable.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_functionTable};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11599, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cfunctionTable = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11600
 *     def functionTable(self, functionTable):
 *         _cfunctionTable = _HelperInputVoidPtr(functionTable)
 *         self._pvt_ptr[0].functionTable = <void*><void_ptr>_cfunctionTable.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def functionWindowSize(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cfunctionTable), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11600, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).functionTable = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":11597
 *     def functionTable(self):
 *         return <void_ptr>self._pvt_ptr[0].functionTable
 *     @functionTable.setter             # <<<<<<<<<<<<<<
 *     def functionTable(self, functionTable):
 *         _cfunctionTable = _HelperInputVoidPtr(functionTable)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.functionTable.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cfunctionTable);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11601
 *         _cfunctionTable = _HelperInputVoidPtr(functionTable)
 *         self._pvt_ptr[0].functionTable = <void*><void_ptr>_cfunctionTable.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def functionWindowSize(self):
 *         return self._pvt_ptr[0].functionWindowSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11603
 *     @property
 *     def functionWindowSize(self):
 *         return self._pvt_ptr[0].functionWindowSize             # <<<<<<<<<<<<<<
 *     @functionWindowSize.setter
 *     def functionWindowSize(self, size_t functionWindowSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).functionWindowSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11601
 *         _cfunctionTable = _HelperInputVoidPtr(functionTable)
 *         self._pvt_ptr[0].functionTable = <void*><void_ptr>_cfunctionTable.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def functionWindowSize(self):
 *         return self._pvt_ptr[0].functionWindowSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11604
 *     def functionWindowSize(self):
 *         return self._pvt_ptr[0].functionWindowSize
 *     @functionWindowSize.setter             # <<<<<<<<<<<<<<
 *     def functionWindowSize(self, size_t functionWindowSize):
 *         self._pvt_ptr[0].functionWindowSize = functionWindowSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_functionWindowSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_functionWindowSize) {
  size_t __pyx_v_functionWindowSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_functionWindowSize); {
    __pyx_v_functionWindowSize = __Pyx_PyLong_As_size_t(__pyx_arg_functionWindowSize); if (unlikely((__pyx_v_functionWindowSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 11605, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self), ((size_t)__pyx_v_functionWindowSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, size_t __pyx_v_functionWindowSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11606
 *     @functionWindowSize.setter
 *     def functionWindowSize(self, size_t functionWindowSize):
 *         self._pvt_ptr[0].functionWindowSize = functionWindowSize             # <<<<<<<<<<<<<<
 *     @property
 *     def dataTable(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).functionWindowSize = __pyx_v_functionWindowSize;

  /* "cuda/bindings/runtime.pyx":11604
 *     def functionWindowSize(self):
 *         return self._pvt_ptr[0].functionWindowSize
 *     @functionWindowSize.setter             # <<<<<<<<<<<<<<
 *     def functionWindowSize(self, size_t functionWindowSize):
 *         self._pvt_ptr[0].functionWindowSize = functionWindowSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11607
 *     def functionWindowSize(self, size_t functionWindowSize):
 *         self._pvt_ptr[0].functionWindowSize = functionWindowSize
 *     @property             # <<<<<<<<<<<<<<
 *     def dataTable(self):
 *         return <void_ptr>self._pvt_ptr[0].dataTable
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11609
 *     @property
 *     def dataTable(self):
 *         return <void_ptr>self._pvt_ptr[0].dataTable             # <<<<<<<<<<<<<<
 *     @dataTable.setter
 *     def dataTable(self, dataTable):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).dataTable)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11607
 *     def functionWindowSize(self, size_t functionWindowSize):
 *         self._pvt_ptr[0].functionWindowSize = functionWindowSize
 *     @property             # <<<<<<<<<<<<<<
 *     def dataTable(self):
 *         return <void_ptr>self._pvt_ptr[0].dataTable
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.dataTable.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11610
 *     def dataTable(self):
 *         return <void_ptr>self._pvt_ptr[0].dataTable
 *     @dataTable.setter             # <<<<<<<<<<<<<<
 *     def dataTable(self, dataTable):
 *         _cdataTable = _HelperInputVoidPtr(dataTable)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dataTable); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_dataTable) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self), ((PyObject *)__pyx_v_dataTable));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, PyObject *__pyx_v_dataTable) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cdataTable = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11612
 *     @dataTable.setter
 *     def dataTable(self, dataTable):
 *         _cdataTable = _HelperInputVoidPtr(dataTable)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].dataTable = <void*><void_ptr>_cdataTable.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dataTable};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11612, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cdataTable = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11613
 *     def dataTable(self, dataTable):
 *         _cdataTable = _HelperInputVoidPtr(dataTable)
 *         self._pvt_ptr[0].dataTable = <void*><void_ptr>_cdataTable.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def dataWindowSize(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cdataTable), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11613, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).dataTable = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":11610
 *     def dataTable(self):
 *         return <void_ptr>self._pvt_ptr[0].dataTable
 *     @dataTable.setter             # <<<<<<<<<<<<<<
 *     def dataTable(self, dataTable):
 *         _cdataTable = _HelperInputVoidPtr(dataTable)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.dataTable.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cdataTable);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11614
 *         _cdataTable = _HelperInputVoidPtr(dataTable)
 *         self._pvt_ptr[0].dataTable = <void*><void_ptr>_cdataTable.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def dataWindowSize(self):
 *         return self._pvt_ptr[0].dataWindowSize
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11616
 *     @property
 *     def dataWindowSize(self):
 *         return self._pvt_ptr[0].dataWindowSize             # <<<<<<<<<<<<<<
 *     @dataWindowSize.setter
 *     def dataWindowSize(self, size_t dataWindowSize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).dataWindowSize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11614
 *         _cdataTable = _HelperInputVoidPtr(dataTable)
 *         self._pvt_ptr[0].dataTable = <void*><void_ptr>_cdataTable.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def dataWindowSize(self):
 *         return self._pvt_ptr[0].dataWindowSize
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11617
 *     def dataWindowSize(self):
 *         return self._pvt_ptr[0].dataWindowSize
 *     @dataWindowSize.setter             # <<<<<<<<<<<<<<
 *     def dataWindowSize(self, size_t dataWindowSize):
 *         self._pvt_ptr[0].dataWindowSize = dataWindowSize
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_dataWindowSize); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_dataWindowSize) {
  size_t __pyx_v_dataWindowSize;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_dataWindowSize); {
    __pyx_v_dataWindowSize = __Pyx_PyLong_As_size_t(__pyx_arg_dataWindowSize); if (unlikely((__pyx_v_dataWindowSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 11618, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self), ((size_t)__pyx_v_dataWindowSize));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, size_t __pyx_v_dataWindowSize) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11619
 *     @dataWindowSize.setter
 *     def dataWindowSize(self, size_t dataWindowSize):
 *         self._pvt_ptr[0].dataWindowSize = dataWindowSize             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaKernelNodeParams:
*/
  (__pyx_v_self->_pvt_ptr[0]).dataWindowSize = __pyx_v_dataWindowSize;

  /* "cuda/bindings/runtime.pyx":11617
 *     def dataWindowSize(self):
 *         return self._pvt_ptr[0].dataWindowSize
 *     @dataWindowSize.setter             # <<<<<<<<<<<<<<
 *     def dataWindowSize(self, size_t dataWindowSize):
 *         self._pvt_ptr[0].dataWindowSize = dataWindowSize
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_10__reduce_cython__, "cudalibraryHostUniversalFunctionAndDataTable.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_12__setstate_cython__, "cudalibraryHostUniversalFunctionAndDataTable.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudalibraryHostUniversalFunctionAndDataTable.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11645
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11645, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11645, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11645, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11645, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11645, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11645, __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.runtime.cudaKernelNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11646
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11647
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernelNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11646
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11649
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernelNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaKernelNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11645
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11650
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernelNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11650, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11650, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11650, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11650, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11650, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11650, __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.runtime.cudaKernelNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":11652
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)             # <<<<<<<<<<<<<<
 *         self._blockDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].blockDim)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).gridDim))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11652, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11652, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_gridDim);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_gridDim);
  __pyx_v_self->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11653
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)
 *         self._blockDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].blockDim)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).blockDim))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11653, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11653, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_blockDim);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_blockDim);
  __pyx_v_self->_blockDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11650
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernelNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11654
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)
 *         self._blockDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].blockDim)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11656
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_20cudaKernelNodeParams_6getPtr, "cudaKernelNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaKernelNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11657
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11656
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11658
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr148__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr149__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11659
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11660
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['func : ' + hex(self.func)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11661
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11662
 *             str_list = []
 *             try:
 *                 str_list += ['func : ' + hex(self.func)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_func_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11662, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11662, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_func, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11662, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11662, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11662, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11662, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11661
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11663
 *             try:
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['func : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11663, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11664
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11664, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_func_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_func_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_func_ValueError) != (0)) __PYX_ERR(0, 11664, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11664, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11661
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11665
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11666
 *                 str_list += ['func : <ValueError>']
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11666, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_gridDim_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11666, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11666, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11666, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11666, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11666, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr148__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr148__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11666, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11666, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr148__pyx_v_line); __pyx_10genexpr148__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr148__pyx_v_line); __pyx_10genexpr148__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11666, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_gridDim, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11666, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11666, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11666, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11666, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11665
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11667
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 11667, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11668
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11668, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_gridDim_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_gridDim_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_gridDim_ValueError) != (0)) __PYX_ERR(0, 11668, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11668, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11665
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11669
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11670
 *                 str_list += ['gridDim : <ValueError>']
 *             try:
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11670, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_blockDim_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11670, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11670, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11670, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11670, __pyx_L35_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11670, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr149__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr149__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11670, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 11670, __pyx_L35_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr149__pyx_v_line); __pyx_10genexpr149__pyx_v_line = 0;
          goto __pyx_L39_exit_scope;
          __pyx_L35_error:;
          __Pyx_XDECREF(__pyx_10genexpr149__pyx_v_line); __pyx_10genexpr149__pyx_v_line = 0;
          goto __pyx_L27_error;
          __pyx_L39_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11670, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_blockDim, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11670, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11670, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 11670, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11670, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":11669
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11671
 *             try:
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['blockDim : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 11671, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11672
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11672, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_blockDim_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_blockDim_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_blockDim_ValueError) != (0)) __PYX_ERR(0, 11672, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11672, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":11669
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11673
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11674
 *                 str_list += ['blockDim : <ValueError>']
 *             try:
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sharedMemBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11674, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11674, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sharedMemBytes, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11674, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11674, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11674, __pyx_L42_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11674, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11673
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L47_try_end;
      __pyx_L42_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11675
 *             try:
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 11675, __pyx_L44_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11676
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11676, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sharedMemBytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sharedMemBytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_sharedMemBytes_ValueError) != (0)) __PYX_ERR(0, 11676, __pyx_L44_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11676, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L43_exception_handled;
      }
      goto __pyx_L44_except_error;

      /* "cuda/bindings/runtime.pyx":11673
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:
*/
      __pyx_L44_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L43_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L47_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11677
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11678
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_kernelParams); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11678, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11678, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_kernelParams_2, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11678, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11678, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 11678, __pyx_L50_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11678, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":11677
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L55_try_end;
      __pyx_L50_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11679
 *             try:
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 11679, __pyx_L52_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11680
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extra : ' + str(self.extra)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11680, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_kernelParams_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_kernelParams_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_kernelParams_ValueError) != (0)) __PYX_ERR(0, 11680, __pyx_L52_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11680, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L51_exception_handled;
      }
      goto __pyx_L52_except_error;

      /* "cuda/bindings/runtime.pyx":11677
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:
*/
      __pyx_L52_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L51_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L55_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11681
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11682
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:
 *                 str_list += ['extra : ' + str(self.extra)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extra : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extra_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11682, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11682, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extra, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11682, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11682, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11682, __pyx_L58_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11682, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11681
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L63_try_end;
      __pyx_L58_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11683
 *             try:
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extra : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 11683, __pyx_L60_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11684
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:
 *                 str_list += ['extra : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11684, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extra_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extra_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_extra_ValueError) != (0)) __PYX_ERR(0, 11684, __pyx_L60_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11684, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L59_exception_handled;
      }
      goto __pyx_L60_except_error;

      /* "cuda/bindings/runtime.pyx":11681
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:
*/
      __pyx_L60_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L59_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L63_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11685
 *             except ValueError:
 *                 str_list += ['extra : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11685, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11659
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11687
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def func(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11658
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr148__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr149__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11688
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11690
 *     @property
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func             # <<<<<<<<<<<<<<
 *     @func.setter
 *     def func(self, func):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).func)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11688
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.func.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11691
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func
 *     @func.setter             # <<<<<<<<<<<<<<
 *     def func(self, func):
 *         _cfunc = _HelperInputVoidPtr(func)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_func));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, PyObject *__pyx_v_func) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cfunc = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11693
 *     @func.setter
 *     def func(self, func):
 *         _cfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].func = <void*><void_ptr>_cfunc.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11693, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11694
 *     def func(self, func):
 *         _cfunc = _HelperInputVoidPtr(func)
 *         self._pvt_ptr[0].func = <void*><void_ptr>_cfunc.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def gridDim(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11694, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).func = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":11691
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func
 *     @func.setter             # <<<<<<<<<<<<<<
 *     def func(self, func):
 *         _cfunc = _HelperInputVoidPtr(func)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.func.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cfunc);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11695
 *         _cfunc = _HelperInputVoidPtr(func)
 *         self._pvt_ptr[0].func = <void*><void_ptr>_cfunc.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def gridDim(self):
 *         return self._gridDim
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11697
 *     @property
 *     def gridDim(self):
 *         return self._gridDim             # <<<<<<<<<<<<<<
 *     @gridDim.setter
 *     def gridDim(self, gridDim not None : dim3):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_gridDim);
  __pyx_r = ((PyObject *)__pyx_v_self->_gridDim);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11695
 *         _cfunc = _HelperInputVoidPtr(func)
 *         self._pvt_ptr[0].func = <void*><void_ptr>_cfunc.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def gridDim(self):
 *         return self._gridDim
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11698
 *     def gridDim(self):
 *         return self._gridDim
 *     @gridDim.setter             # <<<<<<<<<<<<<<
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gridDim), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, 0, "gridDim", 0))) __PYX_ERR(0, 11699, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_gridDim));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_gridDim) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11700
 *     @gridDim.setter
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))             # <<<<<<<<<<<<<<
 *     @property
 *     def blockDim(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_gridDim);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11700, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).gridDim), ((struct dim3 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).gridDim))));

  /* "cuda/bindings/runtime.pyx":11698
 *     def gridDim(self):
 *         return self._gridDim
 *     @gridDim.setter             # <<<<<<<<<<<<<<
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.gridDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11701
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def blockDim(self):
 *         return self._blockDim
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11703
 *     @property
 *     def blockDim(self):
 *         return self._blockDim             # <<<<<<<<<<<<<<
 *     @blockDim.setter
 *     def blockDim(self, blockDim not None : dim3):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_blockDim);
  __pyx_r = ((PyObject *)__pyx_v_self->_blockDim);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11701
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def blockDim(self):
 *         return self._blockDim
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11704
 *     def blockDim(self):
 *         return self._blockDim
 *     @blockDim.setter             # <<<<<<<<<<<<<<
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_blockDim); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_blockDim) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_blockDim), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, 0, "blockDim", 0))) __PYX_ERR(0, 11705, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_blockDim));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_blockDim) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11706
 *     @blockDim.setter
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))             # <<<<<<<<<<<<<<
 *     @property
 *     def sharedMemBytes(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_blockDim);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11706, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).blockDim), ((struct dim3 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).blockDim))));

  /* "cuda/bindings/runtime.pyx":11704
 *     def blockDim(self):
 *         return self._blockDim
 *     @blockDim.setter             # <<<<<<<<<<<<<<
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.blockDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11707
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11709
 *     @property
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes             # <<<<<<<<<<<<<<
 *     @sharedMemBytes.setter
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).sharedMemBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11707
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.sharedMemBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11710
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes
 *     @sharedMemBytes.setter             # <<<<<<<<<<<<<<
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemBytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemBytes) {
  unsigned int __pyx_v_sharedMemBytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sharedMemBytes); {
    __pyx_v_sharedMemBytes = __Pyx_PyLong_As_unsigned_int(__pyx_arg_sharedMemBytes); if (unlikely((__pyx_v_sharedMemBytes == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11711, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.sharedMemBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), ((unsigned int)__pyx_v_sharedMemBytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, unsigned int __pyx_v_sharedMemBytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11712
 *     @sharedMemBytes.setter
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes             # <<<<<<<<<<<<<<
 *     @property
 *     def kernelParams(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sharedMemBytes = __pyx_v_sharedMemBytes;

  /* "cuda/bindings/runtime.pyx":11710
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes
 *     @sharedMemBytes.setter             # <<<<<<<<<<<<<<
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11713
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11715
 *     @property
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams             # <<<<<<<<<<<<<<
 *     @kernelParams.setter
 *     def kernelParams(self, kernelParams):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).kernelParams)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11713
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.kernelParams.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11716
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams
 *     @kernelParams.setter             # <<<<<<<<<<<<<<
 *     def kernelParams(self, kernelParams):
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernelParams); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernelParams) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_kernelParams));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, PyObject *__pyx_v_kernelParams) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11718
 *     @kernelParams.setter
 *     def kernelParams(self, kernelParams):
 *         self._cykernelParams = _HelperKernelParams(kernelParams)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].kernelParams = <void**><void_ptr>self._cykernelParams.ckernelParams
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_kernelParams};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11718, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_cykernelParams);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_cykernelParams);
  __pyx_v_self->_cykernelParams = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11719
 *     def kernelParams(self, kernelParams):
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
 *         self._pvt_ptr[0].kernelParams = <void**><void_ptr>self._cykernelParams.ckernelParams             # <<<<<<<<<<<<<<
 *     @property
 *     def extra(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_cykernelParams), __pyx_mstate_global->__pyx_n_u_ckernelParams); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11719, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).kernelParams = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":11716
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams
 *     @kernelParams.setter             # <<<<<<<<<<<<<<
 *     def kernelParams(self, kernelParams):
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.kernelParams.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11720
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
 *         self._pvt_ptr[0].kernelParams = <void**><void_ptr>self._cykernelParams.ckernelParams
 *     @property             # <<<<<<<<<<<<<<
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11722
 *     @property
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra             # <<<<<<<<<<<<<<
 *     @extra.setter
 *     def extra(self, void_ptr extra):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11722, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11720
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
 *         self._pvt_ptr[0].kernelParams = <void**><void_ptr>self._cykernelParams.ckernelParams
 *     @property             # <<<<<<<<<<<<<<
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.extra.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11723
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra
 *     @extra.setter             # <<<<<<<<<<<<<<
 *     def extra(self, void_ptr extra):
 *         self._pvt_ptr[0].extra = <void**>extra
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_extra); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_extra) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_extra;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_extra); {
    __pyx_v_extra = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_extra); if (unlikely((__pyx_v_extra == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11724, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.extra.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_extra));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_extra) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11725
 *     @extra.setter
 *     def extra(self, void_ptr extra):
 *         self._pvt_ptr[0].extra = <void**>extra             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaKernelNodeParamsV2:
*/
  (__pyx_v_self->_pvt_ptr[0]).extra = ((void **)__pyx_v_extra);

  /* "cuda/bindings/runtime.pyx":11723
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra
 *     @extra.setter             # <<<<<<<<<<<<<<
 *     def extra(self, void_ptr extra):
 *         self._pvt_ptr[0].extra = <void**>extra
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaKernelNodeParams_10__reduce_cython__, "cudaKernelNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaKernelNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaKernelNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaKernelNodeParams_12__setstate_cython__, "cudaKernelNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaKernelNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaKernelNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11754
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11754, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11754, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11754, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11754, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11754, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11754, __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.runtime.cudaKernelNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11755
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11756
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernelNodeParamsV2 *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11755
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11758
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernelNodeParamsV2 *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaKernelNodeParamsV2 *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11754
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11759
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernelNodeParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11759, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11759, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11759, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11759, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11759, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11759, __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.runtime.cudaKernelNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":11761
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)             # <<<<<<<<<<<<<<
 *         self._blockDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].blockDim)
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).gridDim))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11761, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11761, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_gridDim);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_gridDim);
  __pyx_v_self->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11762
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)
 *         self._blockDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].blockDim)             # <<<<<<<<<<<<<<
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).blockDim))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11762, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11762, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_blockDim);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_blockDim);
  __pyx_v_self->_blockDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11763
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)
 *         self._blockDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].blockDim)
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).ctx))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11763, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11763, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_ctx);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_ctx);
  __pyx_v_self->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11759
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaKernelNodeParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].gridDim)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11764
 *         self._blockDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].blockDim)
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11766
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7getPtr(PyObject *__pyx_v_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_7runtime_22cudaKernelNodeParamsV2_6getPtr, "cudaKernelNodeParamsV2.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11767
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11766
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11768
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr150__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr151__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11769
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11770
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['func : ' + hex(self.func)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11771
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11772
 *             str_list = []
 *             try:
 *                 str_list += ['func : ' + hex(self.func)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_func_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11772, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11772, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_func, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11772, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11772, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11772, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11772, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11771
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11773
 *             try:
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['func : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11773, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11774
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11774, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_func_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_func_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_func_ValueError) != (0)) __PYX_ERR(0, 11774, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11774, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11771
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['func : ' + hex(self.func)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11775
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11776
 *                 str_list += ['func : <ValueError>']
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11776, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_gridDim_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11776, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11776, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11776, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11776, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11776, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr150__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr150__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11776, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 11776, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr150__pyx_v_line); __pyx_10genexpr150__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr150__pyx_v_line); __pyx_10genexpr150__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11776, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_gridDim, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11776, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11776, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11776, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11776, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11775
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11777
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 11777, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11778
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11778, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_gridDim_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_gridDim_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_gridDim_ValueError) != (0)) __PYX_ERR(0, 11778, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11778, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11775
 *             except ValueError:
 *                 str_list += ['func : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11779
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11780
 *                 str_list += ['gridDim : <ValueError>']
 *             try:
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11780, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_blockDim_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11780, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11780, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11780, __pyx_L35_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11780, __pyx_L35_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11780, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr151__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr151__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11780, __pyx_L35_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 11780, __pyx_L35_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr151__pyx_v_line); __pyx_10genexpr151__pyx_v_line = 0;
          goto __pyx_L39_exit_scope;
          __pyx_L35_error:;
          __Pyx_XDECREF(__pyx_10genexpr151__pyx_v_line); __pyx_10genexpr151__pyx_v_line = 0;
          goto __pyx_L27_error;
          __pyx_L39_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11780, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_blockDim, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11780, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11780, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 11780, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11780, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":11779
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11781
 *             try:
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['blockDim : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 11781, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11782
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11782, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_blockDim_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_blockDim_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_blockDim_ValueError) != (0)) __PYX_ERR(0, 11782, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11782, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":11779
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['blockDim :\n' + '\n'.join(['    ' + line for line in str(self.blockDim).splitlines()])]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11783
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11784
 *                 str_list += ['blockDim : <ValueError>']
 *             try:
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sharedMemBytes_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11784, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11784, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sharedMemBytes, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11784, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11784, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11784, __pyx_L42_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11784, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11783
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L47_try_end;
      __pyx_L42_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11785
 *             try:
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 11785, __pyx_L44_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11786
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11786, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sharedMemBytes_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sharedMemBytes_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_sharedMemBytes_ValueError) != (0)) __PYX_ERR(0, 11786, __pyx_L44_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11786, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L43_exception_handled;
      }
      goto __pyx_L44_except_error;

      /* "cuda/bindings/runtime.pyx":11783
 *             except ValueError:
 *                 str_list += ['blockDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)]
 *             except ValueError:
*/
      __pyx_L44_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L43_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L47_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11787
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11788
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_kernelParams); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11788, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11788, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_kernelParams_2, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11788, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11788, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 11788, __pyx_L50_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11788, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":11787
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L55_try_end;
      __pyx_L50_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11789
 *             try:
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 11789, __pyx_L52_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11790
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extra : ' + str(self.extra)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11790, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_kernelParams_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_kernelParams_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_kernelParams_ValueError) != (0)) __PYX_ERR(0, 11790, __pyx_L52_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11790, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L51_exception_handled;
      }
      goto __pyx_L52_except_error;

      /* "cuda/bindings/runtime.pyx":11787
 *             except ValueError:
 *                 str_list += ['sharedMemBytes : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernelParams : ' + str(self.kernelParams)]
 *             except ValueError:
*/
      __pyx_L52_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L51_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L55_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11791
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11792
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:
 *                 str_list += ['extra : ' + str(self.extra)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extra : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extra_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11792, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11792, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extra, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11792, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11792, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11792, __pyx_L58_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11792, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11791
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L63_try_end;
      __pyx_L58_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11793
 *             try:
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extra : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 11793, __pyx_L60_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":11794
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:
 *                 str_list += ['extra : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11794, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extra_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extra_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_extra_ValueError) != (0)) __PYX_ERR(0, 11794, __pyx_L60_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11794, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L59_exception_handled;
      }
      goto __pyx_L60_except_error;

      /* "cuda/bindings/runtime.pyx":11791
 *             except ValueError:
 *                 str_list += ['kernelParams : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extra : ' + str(self.extra)]
 *             except ValueError:
*/
      __pyx_L60_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L59_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L63_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11795
 *             except ValueError:
 *                 str_list += ['extra : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11796
 *                 str_list += ['extra : <ValueError>']
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ctx_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11796, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11796, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ctx, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11796, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11796, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 11796, __pyx_L66_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11796, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":11795
 *             except ValueError:
 *                 str_list += ['extra : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L71_try_end;
      __pyx_L66_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11797
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 11797, __pyx_L68_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11798
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11798, __pyx_L68_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ctx_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ctx_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_ctx_ValueError) != (0)) __PYX_ERR(0, 11798, __pyx_L68_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11798, __pyx_L68_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L67_exception_handled;
      }
      goto __pyx_L68_except_error;

      /* "cuda/bindings/runtime.pyx":11795
 *             except ValueError:
 *                 str_list += ['extra : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
      __pyx_L68_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L67_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L71_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11799
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11799, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11769
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11801
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def func(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11768
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr150__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr151__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11802
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11804
 *     @property
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func             # <<<<<<<<<<<<<<
 *     @func.setter
 *     def func(self, func):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).func)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11804, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11802
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.func.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11805
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func
 *     @func.setter             # <<<<<<<<<<<<<<
 *     def func(self, func):
 *         _cfunc = _HelperInputVoidPtr(func)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_func) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_func));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_func) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cfunc = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11807
 *     @func.setter
 *     def func(self, func):
 *         _cfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].func = <void*><void_ptr>_cfunc.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11807, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11808
 *     def func(self, func):
 *         _cfunc = _HelperInputVoidPtr(func)
 *         self._pvt_ptr[0].func = <void*><void_ptr>_cfunc.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def gridDim(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11808, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).func = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":11805
 *     def func(self):
 *         return <void_ptr>self._pvt_ptr[0].func
 *     @func.setter             # <<<<<<<<<<<<<<
 *     def func(self, func):
 *         _cfunc = _HelperInputVoidPtr(func)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.func.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cfunc);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11809
 *         _cfunc = _HelperInputVoidPtr(func)
 *         self._pvt_ptr[0].func = <void*><void_ptr>_cfunc.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def gridDim(self):
 *         return self._gridDim
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11811
 *     @property
 *     def gridDim(self):
 *         return self._gridDim             # <<<<<<<<<<<<<<
 *     @gridDim.setter
 *     def gridDim(self, gridDim not None : dim3):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_gridDim);
  __pyx_r = ((PyObject *)__pyx_v_self->_gridDim);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11809
 *         _cfunc = _HelperInputVoidPtr(func)
 *         self._pvt_ptr[0].func = <void*><void_ptr>_cfunc.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def gridDim(self):
 *         return self._gridDim
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11812
 *     def gridDim(self):
 *         return self._gridDim
 *     @gridDim.setter             # <<<<<<<<<<<<<<
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gridDim), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, 0, "gridDim", 0))) __PYX_ERR(0, 11813, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_gridDim));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_gridDim) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11814
 *     @gridDim.setter
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))             # <<<<<<<<<<<<<<
 *     @property
 *     def blockDim(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_gridDim);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11814, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).gridDim), ((struct dim3 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).gridDim))));

  /* "cuda/bindings/runtime.pyx":11812
 *     def gridDim(self):
 *         return self._gridDim
 *     @gridDim.setter             # <<<<<<<<<<<<<<
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.gridDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11815
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def blockDim(self):
 *         return self._blockDim
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11817
 *     @property
 *     def blockDim(self):
 *         return self._blockDim             # <<<<<<<<<<<<<<
 *     @blockDim.setter
 *     def blockDim(self, blockDim not None : dim3):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_blockDim);
  __pyx_r = ((PyObject *)__pyx_v_self->_blockDim);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11815
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def blockDim(self):
 *         return self._blockDim
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11818
 *     def blockDim(self):
 *         return self._blockDim
 *     @blockDim.setter             # <<<<<<<<<<<<<<
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_blockDim); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_blockDim) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_blockDim), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, 0, "blockDim", 0))) __PYX_ERR(0, 11819, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_blockDim));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_blockDim) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11820
 *     @blockDim.setter
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))             # <<<<<<<<<<<<<<
 *     @property
 *     def sharedMemBytes(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_blockDim);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11820, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11820, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).blockDim), ((struct dim3 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).blockDim))));

  /* "cuda/bindings/runtime.pyx":11818
 *     def blockDim(self):
 *         return self._blockDim
 *     @blockDim.setter             # <<<<<<<<<<<<<<
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.blockDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11821
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11823
 *     @property
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes             # <<<<<<<<<<<<<<
 *     @sharedMemBytes.setter
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).sharedMemBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11821
 *     def blockDim(self, blockDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].blockDim, <cyruntime.dim3*><void_ptr>blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.sharedMemBytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11824
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes
 *     @sharedMemBytes.setter             # <<<<<<<<<<<<<<
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemBytes); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemBytes) {
  unsigned int __pyx_v_sharedMemBytes;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sharedMemBytes); {
    __pyx_v_sharedMemBytes = __Pyx_PyLong_As_unsigned_int(__pyx_arg_sharedMemBytes); if (unlikely((__pyx_v_sharedMemBytes == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11825, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.sharedMemBytes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_sharedMemBytes));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_sharedMemBytes) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11826
 *     @sharedMemBytes.setter
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes             # <<<<<<<<<<<<<<
 *     @property
 *     def kernelParams(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sharedMemBytes = __pyx_v_sharedMemBytes;

  /* "cuda/bindings/runtime.pyx":11824
 *     def sharedMemBytes(self):
 *         return self._pvt_ptr[0].sharedMemBytes
 *     @sharedMemBytes.setter             # <<<<<<<<<<<<<<
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11827
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11829
 *     @property
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams             # <<<<<<<<<<<<<<
 *     @kernelParams.setter
 *     def kernelParams(self, kernelParams):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).kernelParams)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11829, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11827
 *     def sharedMemBytes(self, unsigned int sharedMemBytes):
 *         self._pvt_ptr[0].sharedMemBytes = sharedMemBytes
 *     @property             # <<<<<<<<<<<<<<
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.kernelParams.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11830
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams
 *     @kernelParams.setter             # <<<<<<<<<<<<<<
 *     def kernelParams(self, kernelParams):
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernelParams); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernelParams) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_kernelParams));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_kernelParams) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11832
 *     @kernelParams.setter
 *     def kernelParams(self, kernelParams):
 *         self._cykernelParams = _HelperKernelParams(kernelParams)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].kernelParams = <void**><void_ptr>self._cykernelParams.ckernelParams
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_kernelParams};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11832, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_cykernelParams);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_cykernelParams);
  __pyx_v_self->_cykernelParams = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11833
 *     def kernelParams(self, kernelParams):
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
 *         self._pvt_ptr[0].kernelParams = <void**><void_ptr>self._cykernelParams.ckernelParams             # <<<<<<<<<<<<<<
 *     @property
 *     def extra(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_cykernelParams), __pyx_mstate_global->__pyx_n_u_ckernelParams); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).kernelParams = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":11830
 *     def kernelParams(self):
 *         return <void_ptr>self._pvt_ptr[0].kernelParams
 *     @kernelParams.setter             # <<<<<<<<<<<<<<
 *     def kernelParams(self, kernelParams):
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.kernelParams.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11834
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
 *         self._pvt_ptr[0].kernelParams = <void**><void_ptr>self._cykernelParams.ckernelParams
 *     @property             # <<<<<<<<<<<<<<
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11836
 *     @property
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra             # <<<<<<<<<<<<<<
 *     @extra.setter
 *     def extra(self, void_ptr extra):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11834
 *         self._cykernelParams = _HelperKernelParams(kernelParams)
 *         self._pvt_ptr[0].kernelParams = <void**><void_ptr>self._cykernelParams.ckernelParams
 *     @property             # <<<<<<<<<<<<<<
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.extra.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11837
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra
 *     @extra.setter             # <<<<<<<<<<<<<<
 *     def extra(self, void_ptr extra):
 *         self._pvt_ptr[0].extra = <void**>extra
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_extra); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_extra) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_extra;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_extra); {
    __pyx_v_extra = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_extra); if (unlikely((__pyx_v_extra == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11838, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.extra.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_extra));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_extra) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11839
 *     @extra.setter
 *     def extra(self, void_ptr extra):
 *         self._pvt_ptr[0].extra = <void**>extra             # <<<<<<<<<<<<<<
 *     @property
 *     def ctx(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).extra = ((void **)__pyx_v_extra);

  /* "cuda/bindings/runtime.pyx":11837
 *     def extra(self):
 *         return <void_ptr>self._pvt_ptr[0].extra
 *     @extra.setter             # <<<<<<<<<<<<<<
 *     def extra(self, void_ptr extra):
 *         self._pvt_ptr[0].extra = <void**>extra
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11840
 *     def extra(self, void_ptr extra):
 *         self._pvt_ptr[0].extra = <void**>extra
 *     @property             # <<<<<<<<<<<<<<
 *     def ctx(self):
 *         return self._ctx
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11842
 *     @property
 *     def ctx(self):
 *         return self._ctx             # <<<<<<<<<<<<<<
 *     @ctx.setter
 *     def ctx(self, ctx):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_ctx);
  __pyx_r = ((PyObject *)__pyx_v_self->_ctx);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11840
 *     def extra(self, void_ptr extra):
 *         self._pvt_ptr[0].extra = <void**>extra
 *     @property             # <<<<<<<<<<<<<<
 *     def ctx(self):
 *         return self._ctx
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11843
 *     def ctx(self):
 *         return self._ctx
 *     @ctx.setter             # <<<<<<<<<<<<<<
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ctx); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ctx) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_ctx));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_ctx) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11846
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11847
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)
*/
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":11846
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11848
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11849
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11850
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11850, __pyx_L1_error)
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":11848
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11852
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11852, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11852, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":11853
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *         self._ctx._pvt_ptr[0] = cyctx
 * 
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11853, __pyx_L1_error)
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11854
 *             pctx = int(cudaExecutionContext_t(ctx))
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalSemaphoreSignalNodeParams:
*/
  (__pyx_v_self->_ctx->_pvt_ptr[0]) = __pyx_v_cyctx;

  /* "cuda/bindings/runtime.pyx":11843
 *     def ctx(self):
 *         return self._ctx
 *     @ctx.setter             # <<<<<<<<<<<<<<
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.ctx.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_22cudaKernelNodeParamsV2_10__reduce_cython__, "cudaKernelNodeParamsV2.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_22cudaKernelNodeParamsV2_12__setstate_cython__, "cudaKernelNodeParamsV2.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaKernelNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11875
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11875, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11875, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11875, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11875, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11875, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11875, __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.runtime.cudaExternalSemaphoreSignalNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11876
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11877
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11876
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11879
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreSignalNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11875
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11880
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11880, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11880, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11880, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11880, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11880, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11880, __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.runtime.cudaExternalSemaphoreSignalNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11882
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._extSemArray is not NULL:
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11884
 *     def __dealloc__(self):
 *         pass
 *         if self._extSemArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
*/
  __pyx_t_1 = (__pyx_v_self->_extSemArray != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11885
 *         pass
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)             # <<<<<<<<<<<<<<
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
*/
    free(__pyx_v_self->_extSemArray);

    /* "cuda/bindings/runtime.pyx":11884
 *     def __dealloc__(self):
 *         pass
 *         if self._extSemArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":11886
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_paramsArray != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11887
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_paramsArray);

    /* "cuda/bindings/runtime.pyx":11886
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":11882
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._extSemArray is not NULL:
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11888
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_37cudaExternalSemaphoreSignalNodeParams_6getPtr, "cudaExternalSemaphoreSignalNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11889
 *             free(self._paramsArray)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11889, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11888
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11890
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11891
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11892
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11892, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11893
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11894
 *             str_list = []
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extSemArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11894, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11894, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extSemArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11894, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11894, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11894, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11894, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11893
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11895
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11895, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11896
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11896, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError) != (0)) __PYX_ERR(0, 11896, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11896, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11893
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11897
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11898
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_paramsArray_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11898, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11898, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_paramsArray, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11898, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11898, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11898, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11898, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11897
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11899
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 11899, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":11900
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11900, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError) != (0)) __PYX_ERR(0, 11900, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11900, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11897
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11901
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11902
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_numExtSems_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11902, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11902, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_numExtSems, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11902, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11902, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11902, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11902, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11901
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":11903
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11903, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11904
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11904, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError) != (0)) __PYX_ERR(0, 11904, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11904, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":11901
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11905
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11905, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11891
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":11907
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def extSemArray(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11890
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11908
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr152__pyx_v_x;
  PyObject *__pyx_10genexpr153__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11910
 *     @property
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]             # <<<<<<<<<<<<<<
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11910, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_extSemArray_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr152__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).extSemArray) + (__pyx_10genexpr152__pyx_v_x * (sizeof(cudaExternalSemaphore_t))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11910, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 11910, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11911
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @extSemArray.setter
 *     def extSemArray(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11911, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11911, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11911, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr153__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11911, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr153__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11911, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11911, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 11911, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr153__pyx_v_arr); __pyx_10genexpr153__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr153__pyx_v_arr); __pyx_10genexpr153__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11908
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.extSemArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr153__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11912
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter             # <<<<<<<<<<<<<<
 *     def extSemArray(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  cudaExternalSemaphore_t *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11914
 *     @extSemArray.setter
 *     def extSemArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11914, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":11915
 *     def extSemArray(self, val):
 *         if len(val) == 0:
 *             free(self._extSemArray)             # <<<<<<<<<<<<<<
 *             self._extSemArray_length = 0
 *             self._pvt_ptr[0].extSemArray = NULL
*/
    free(__pyx_v_self->_extSemArray);

    /* "cuda/bindings/runtime.pyx":11916
 *         if len(val) == 0:
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
*/
    __pyx_v_self->_extSemArray_length = 0;

    /* "cuda/bindings/runtime.pyx":11917
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
 *             self._pvt_ptr[0].extSemArray = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).extSemArray = NULL;

    /* "cuda/bindings/runtime.pyx":11914
 *     @extSemArray.setter
 *     def extSemArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11919
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11919, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_extSemArray_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":11920
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):
 *                 free(self._extSemArray)             # <<<<<<<<<<<<<<
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:
*/
      free(__pyx_v_self->_extSemArray);

      /* "cuda/bindings/runtime.pyx":11921
 *             if self._extSemArray_length != <size_t>len(val):
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))             # <<<<<<<<<<<<<<
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11921, __pyx_L1_error)
      __pyx_v_self->_extSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_1, (sizeof(cudaExternalSemaphore_t))));

      /* "cuda/bindings/runtime.pyx":11922
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_extSemArray == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":11923
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))             # <<<<<<<<<<<<<<
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11923, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11923, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11923, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11923, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11923, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11923, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11923, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11923, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11923, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 11923, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":11922
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":11924
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11924, __pyx_L1_error)
      __pyx_v_self->_extSemArray_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":11925
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
*/
      __pyx_t_9 = __pyx_v_self->_extSemArray;
      (__pyx_v_self->_pvt_ptr[0]).extSemArray = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":11919
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
    }

    /* "cuda/bindings/runtime.pyx":11926
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11926, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":11927
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11927, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (__pyx_v_self->_extSemArray[__pyx_v_idx]) = (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_3)->_pvt_ptr[0]);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11912
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter             # <<<<<<<<<<<<<<
 *     def extSemArray(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.extSemArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11929
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr154__pyx_v_x;
  PyObject *__pyx_10genexpr155__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11931
 *     @property
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]             # <<<<<<<<<<<<<<
 *         return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11931, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_paramsArray_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr154__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).paramsArray) + (__pyx_10genexpr154__pyx_v_x * (sizeof(struct cudaExternalSemaphoreSignalParams))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11931, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 11931, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":11932
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @paramsArray.setter
 *     def paramsArray(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11932, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 11932, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11932, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr155__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11932, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr155__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 11932, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11932, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 11932, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr155__pyx_v_arr); __pyx_10genexpr155__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr155__pyx_v_arr); __pyx_10genexpr155__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11929
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.paramsArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr155__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11933
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter             # <<<<<<<<<<<<<<
 *     def paramsArray(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  struct cudaExternalSemaphoreSignalParams *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":11935
 *     @paramsArray.setter
 *     def paramsArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11935, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":11936
 *     def paramsArray(self, val):
 *         if len(val) == 0:
 *             free(self._paramsArray)             # <<<<<<<<<<<<<<
 *             self._paramsArray_length = 0
 *             self._pvt_ptr[0].paramsArray = NULL
*/
    free(__pyx_v_self->_paramsArray);

    /* "cuda/bindings/runtime.pyx":11937
 *         if len(val) == 0:
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
*/
    __pyx_v_self->_paramsArray_length = 0;

    /* "cuda/bindings/runtime.pyx":11938
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
 *             self._pvt_ptr[0].paramsArray = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).paramsArray = NULL;

    /* "cuda/bindings/runtime.pyx":11935
 *     @paramsArray.setter
 *     def paramsArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11940
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11940, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_paramsArray_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":11941
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):
 *                 free(self._paramsArray)             # <<<<<<<<<<<<<<
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *                 if self._paramsArray is NULL:
*/
      free(__pyx_v_self->_paramsArray);

      /* "cuda/bindings/runtime.pyx":11942
 *             if self._paramsArray_length != <size_t>len(val):
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))             # <<<<<<<<<<<<<<
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11942, __pyx_L1_error)
      __pyx_v_self->_paramsArray = ((struct cudaExternalSemaphoreSignalParams *)calloc(__pyx_t_1, (sizeof(struct cudaExternalSemaphoreSignalParams))));

      /* "cuda/bindings/runtime.pyx":11943
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *                 if self._paramsArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *                 self._paramsArray_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_paramsArray == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":11944
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))             # <<<<<<<<<<<<<<
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11944, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11944, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11944, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11944, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11944, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalParams))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11944, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 11944, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 11944, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11944, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 11944, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":11943
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *                 if self._paramsArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *                 self._paramsArray_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":11945
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *                 self._paramsArray_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11945, __pyx_L1_error)
      __pyx_v_self->_paramsArray_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":11946
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
*/
      __pyx_t_9 = __pyx_v_self->_paramsArray;
      (__pyx_v_self->_pvt_ptr[0]).paramsArray = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":11940
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
*/
    }

    /* "cuda/bindings/runtime.pyx":11947
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 11947, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":11948
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11948, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_self->_paramsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaExternalSemaphoreSignalParams))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11933
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter             # <<<<<<<<<<<<<<
 *     def paramsArray(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.paramsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11950
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":11952
 *     @property
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems             # <<<<<<<<<<<<<<
 *     @numExtSems.setter
 *     def numExtSems(self, unsigned int numExtSems):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).numExtSems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11950
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.numExtSems.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11953
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
 *     @numExtSems.setter             # <<<<<<<<<<<<<<
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems) {
  unsigned int __pyx_v_numExtSems;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_numExtSems); {
    __pyx_v_numExtSems = __Pyx_PyLong_As_unsigned_int(__pyx_arg_numExtSems); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 11954, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), ((unsigned int)__pyx_v_numExtSems));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, unsigned int __pyx_v_numExtSems) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":11955
 *     @numExtSems.setter
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalSemaphoreSignalNodeParamsV2:
*/
  (__pyx_v_self->_pvt_ptr[0]).numExtSems = __pyx_v_numExtSems;

  /* "cuda/bindings/runtime.pyx":11953
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
 *     @numExtSems.setter             # <<<<<<<<<<<<<<
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__, "cudaExternalSemaphoreSignalNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__, "cudaExternalSemaphoreSignalNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalSemaphoreSignalNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11976
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11976, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11976, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 11976, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11976, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11976, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11976, __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.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11977
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11978
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalNodeParamsV2 *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":11977
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":11980
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalNodeParamsV2 *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":11976
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11981
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreSignalNodeParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 11981, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11981, __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, "__init__", 0) < (0)) __PYX_ERR(0, 11981, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 11981, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 11981, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 11981, __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.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11983
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._extSemArray is not NULL:
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":11985
 *     def __dealloc__(self):
 *         pass
 *         if self._extSemArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
*/
  __pyx_t_1 = (__pyx_v_self->_extSemArray != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11986
 *         pass
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)             # <<<<<<<<<<<<<<
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
*/
    free(__pyx_v_self->_extSemArray);

    /* "cuda/bindings/runtime.pyx":11985
 *     def __dealloc__(self):
 *         pass
 *         if self._extSemArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":11987
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_paramsArray != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11988
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_paramsArray);

    /* "cuda/bindings/runtime.pyx":11987
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":11983
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._extSemArray is not NULL:
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":11989
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr(PyObject *__pyx_v_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_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr, "cudaExternalSemaphoreSignalNodeParamsV2.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":11990
 *             free(self._paramsArray)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11990, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":11989
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":11991
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":11992
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":11993
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11993, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":11994
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11995
 *             str_list = []
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extSemArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11995, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11995, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extSemArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11995, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11995, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 11995, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11995, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":11994
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":11996
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 11996, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":11997
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 11997, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError) != (0)) __PYX_ERR(0, 11997, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 11997, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":11994
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":11998
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":11999
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_paramsArray_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11999, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11999, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_paramsArray, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11999, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 11999, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 11999, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 11999, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":11998
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12000
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12000, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12001
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12001, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError) != (0)) __PYX_ERR(0, 12001, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12001, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":11998
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12002
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12003
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_numExtSems_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12003, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12003, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_numExtSems, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12003, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12003, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12003, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12003, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12002
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12004
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12004, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12005
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12005, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError) != (0)) __PYX_ERR(0, 12005, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12005, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":12002
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12006
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12006, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":11992
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12008
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def extSemArray(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":11991
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12009
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr156__pyx_v_x;
  PyObject *__pyx_10genexpr157__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12011
 *     @property
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]             # <<<<<<<<<<<<<<
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12011, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_extSemArray_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr156__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).extSemArray) + (__pyx_10genexpr156__pyx_v_x * (sizeof(cudaExternalSemaphore_t))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12011, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12011, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12012
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @extSemArray.setter
 *     def extSemArray(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12012, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12012, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12012, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr157__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12012, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr157__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12012, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12012, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 12012, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr157__pyx_v_arr); __pyx_10genexpr157__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr157__pyx_v_arr); __pyx_10genexpr157__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12009
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.extSemArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr157__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12013
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter             # <<<<<<<<<<<<<<
 *     def extSemArray(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  cudaExternalSemaphore_t *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12015
 *     @extSemArray.setter
 *     def extSemArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12015, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":12016
 *     def extSemArray(self, val):
 *         if len(val) == 0:
 *             free(self._extSemArray)             # <<<<<<<<<<<<<<
 *             self._extSemArray_length = 0
 *             self._pvt_ptr[0].extSemArray = NULL
*/
    free(__pyx_v_self->_extSemArray);

    /* "cuda/bindings/runtime.pyx":12017
 *         if len(val) == 0:
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
*/
    __pyx_v_self->_extSemArray_length = 0;

    /* "cuda/bindings/runtime.pyx":12018
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
 *             self._pvt_ptr[0].extSemArray = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).extSemArray = NULL;

    /* "cuda/bindings/runtime.pyx":12015
 *     @extSemArray.setter
 *     def extSemArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12020
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12020, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_extSemArray_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":12021
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):
 *                 free(self._extSemArray)             # <<<<<<<<<<<<<<
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:
*/
      free(__pyx_v_self->_extSemArray);

      /* "cuda/bindings/runtime.pyx":12022
 *             if self._extSemArray_length != <size_t>len(val):
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))             # <<<<<<<<<<<<<<
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12022, __pyx_L1_error)
      __pyx_v_self->_extSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_1, (sizeof(cudaExternalSemaphore_t))));

      /* "cuda/bindings/runtime.pyx":12023
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_extSemArray == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":12024
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))             # <<<<<<<<<<<<<<
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12024, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12024, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12024, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12024, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12024, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12024, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12024, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12024, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12024, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 12024, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":12023
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":12025
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12025, __pyx_L1_error)
      __pyx_v_self->_extSemArray_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":12026
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
*/
      __pyx_t_9 = __pyx_v_self->_extSemArray;
      (__pyx_v_self->_pvt_ptr[0]).extSemArray = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":12020
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
    }

    /* "cuda/bindings/runtime.pyx":12027
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12027, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":12028
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12028, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (__pyx_v_self->_extSemArray[__pyx_v_idx]) = (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_3)->_pvt_ptr[0]);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12013
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter             # <<<<<<<<<<<<<<
 *     def extSemArray(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.extSemArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12030
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr158__pyx_v_x;
  PyObject *__pyx_10genexpr159__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12032
 *     @property
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]             # <<<<<<<<<<<<<<
 *         return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12032, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_paramsArray_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr158__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).paramsArray) + (__pyx_10genexpr158__pyx_v_x * (sizeof(struct cudaExternalSemaphoreSignalParams))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12032, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12033
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @paramsArray.setter
 *     def paramsArray(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12033, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12033, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12033, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr159__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12033, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr159__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12033, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12033, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 12033, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr159__pyx_v_arr); __pyx_10genexpr159__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr159__pyx_v_arr); __pyx_10genexpr159__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12030
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.paramsArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr159__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12034
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter             # <<<<<<<<<<<<<<
 *     def paramsArray(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  struct cudaExternalSemaphoreSignalParams *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12036
 *     @paramsArray.setter
 *     def paramsArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12036, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":12037
 *     def paramsArray(self, val):
 *         if len(val) == 0:
 *             free(self._paramsArray)             # <<<<<<<<<<<<<<
 *             self._paramsArray_length = 0
 *             self._pvt_ptr[0].paramsArray = NULL
*/
    free(__pyx_v_self->_paramsArray);

    /* "cuda/bindings/runtime.pyx":12038
 *         if len(val) == 0:
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
*/
    __pyx_v_self->_paramsArray_length = 0;

    /* "cuda/bindings/runtime.pyx":12039
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
 *             self._pvt_ptr[0].paramsArray = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).paramsArray = NULL;

    /* "cuda/bindings/runtime.pyx":12036
 *     @paramsArray.setter
 *     def paramsArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12041
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12041, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_paramsArray_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":12042
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):
 *                 free(self._paramsArray)             # <<<<<<<<<<<<<<
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *                 if self._paramsArray is NULL:
*/
      free(__pyx_v_self->_paramsArray);

      /* "cuda/bindings/runtime.pyx":12043
 *             if self._paramsArray_length != <size_t>len(val):
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))             # <<<<<<<<<<<<<<
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12043, __pyx_L1_error)
      __pyx_v_self->_paramsArray = ((struct cudaExternalSemaphoreSignalParams *)calloc(__pyx_t_1, (sizeof(struct cudaExternalSemaphoreSignalParams))));

      /* "cuda/bindings/runtime.pyx":12044
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *                 if self._paramsArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *                 self._paramsArray_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_paramsArray == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":12045
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))             # <<<<<<<<<<<<<<
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12045, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalParams))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12045, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 12045, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":12044
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *                 if self._paramsArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *                 self._paramsArray_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":12046
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *                 self._paramsArray_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12046, __pyx_L1_error)
      __pyx_v_self->_paramsArray_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":12047
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
*/
      __pyx_t_9 = __pyx_v_self->_paramsArray;
      (__pyx_v_self->_pvt_ptr[0]).paramsArray = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":12041
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
*/
    }

    /* "cuda/bindings/runtime.pyx":12048
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12048, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":12049
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12049, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_self->_paramsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaExternalSemaphoreSignalParams))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12034
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreSignalParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter             # <<<<<<<<<<<<<<
 *     def paramsArray(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.paramsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12051
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12053
 *     @property
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems             # <<<<<<<<<<<<<<
 *     @numExtSems.setter
 *     def numExtSems(self, unsigned int numExtSems):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).numExtSems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12051
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreSignalParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.numExtSems.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12054
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
 *     @numExtSems.setter             # <<<<<<<<<<<<<<
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems) {
  unsigned int __pyx_v_numExtSems;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_numExtSems); {
    __pyx_v_numExtSems = __Pyx_PyLong_As_unsigned_int(__pyx_arg_numExtSems); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12055, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_numExtSems));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_numExtSems) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12056
 *     @numExtSems.setter
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalSemaphoreWaitNodeParams:
*/
  (__pyx_v_self->_pvt_ptr[0]).numExtSems = __pyx_v_numExtSems;

  /* "cuda/bindings/runtime.pyx":12054
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
 *     @numExtSems.setter             # <<<<<<<<<<<<<<
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__, "cudaExternalSemaphoreSignalNodeParamsV2.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__, "cudaExternalSemaphoreSignalNodeParamsV2.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12077
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12077, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12077, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12077, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12077, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12077, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12077, __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.runtime.cudaExternalSemaphoreWaitNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12078
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12079
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":12078
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12081
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreWaitNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12077
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12082
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12082, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12082, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12082, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12082, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12082, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12082, __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.runtime.cudaExternalSemaphoreWaitNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12084
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._extSemArray is not NULL:
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12086
 *     def __dealloc__(self):
 *         pass
 *         if self._extSemArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
*/
  __pyx_t_1 = (__pyx_v_self->_extSemArray != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12087
 *         pass
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)             # <<<<<<<<<<<<<<
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
*/
    free(__pyx_v_self->_extSemArray);

    /* "cuda/bindings/runtime.pyx":12086
 *     def __dealloc__(self):
 *         pass
 *         if self._extSemArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":12088
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_paramsArray != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12089
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_paramsArray);

    /* "cuda/bindings/runtime.pyx":12088
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":12084
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._extSemArray is not NULL:
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12090
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_35cudaExternalSemaphoreWaitNodeParams_6getPtr, "cudaExternalSemaphoreWaitNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12091
 *             free(self._paramsArray)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12090
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12092
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12093
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12094
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12095
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12096
 *             str_list = []
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extSemArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12096, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12096, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extSemArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12096, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12096, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12096, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12096, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12095
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12097
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12097, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12098
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12098, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError) != (0)) __PYX_ERR(0, 12098, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12098, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12095
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12099
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12100
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_paramsArray_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12100, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12100, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_paramsArray, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12100, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12100, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12100, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12100, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12099
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12101
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12101, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12102
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12102, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError) != (0)) __PYX_ERR(0, 12102, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12102, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":12099
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12103
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12104
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_numExtSems_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12104, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12104, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_numExtSems, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12104, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12104, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12104, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12104, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12103
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12105
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12105, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12106
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12106, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError) != (0)) __PYX_ERR(0, 12106, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12106, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":12103
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12107
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12107, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12093
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12109
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def extSemArray(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12092
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12110
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr160__pyx_v_x;
  PyObject *__pyx_10genexpr161__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12112
 *     @property
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]             # <<<<<<<<<<<<<<
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12112, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_extSemArray_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr160__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).extSemArray) + (__pyx_10genexpr160__pyx_v_x * (sizeof(cudaExternalSemaphore_t))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12112, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12112, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12113
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @extSemArray.setter
 *     def extSemArray(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12113, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12113, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12113, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr161__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12113, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr161__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12113, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12113, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 12113, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr161__pyx_v_arr); __pyx_10genexpr161__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr161__pyx_v_arr); __pyx_10genexpr161__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12110
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.extSemArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr161__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12114
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter             # <<<<<<<<<<<<<<
 *     def extSemArray(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  cudaExternalSemaphore_t *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12116
 *     @extSemArray.setter
 *     def extSemArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12116, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":12117
 *     def extSemArray(self, val):
 *         if len(val) == 0:
 *             free(self._extSemArray)             # <<<<<<<<<<<<<<
 *             self._extSemArray_length = 0
 *             self._pvt_ptr[0].extSemArray = NULL
*/
    free(__pyx_v_self->_extSemArray);

    /* "cuda/bindings/runtime.pyx":12118
 *         if len(val) == 0:
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
*/
    __pyx_v_self->_extSemArray_length = 0;

    /* "cuda/bindings/runtime.pyx":12119
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
 *             self._pvt_ptr[0].extSemArray = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).extSemArray = NULL;

    /* "cuda/bindings/runtime.pyx":12116
 *     @extSemArray.setter
 *     def extSemArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12121
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12121, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_extSemArray_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":12122
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):
 *                 free(self._extSemArray)             # <<<<<<<<<<<<<<
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:
*/
      free(__pyx_v_self->_extSemArray);

      /* "cuda/bindings/runtime.pyx":12123
 *             if self._extSemArray_length != <size_t>len(val):
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))             # <<<<<<<<<<<<<<
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12123, __pyx_L1_error)
      __pyx_v_self->_extSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_1, (sizeof(cudaExternalSemaphore_t))));

      /* "cuda/bindings/runtime.pyx":12124
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_extSemArray == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":12125
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))             # <<<<<<<<<<<<<<
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12125, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12125, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12125, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12125, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12125, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12125, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12125, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12125, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12125, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 12125, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":12124
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":12126
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12126, __pyx_L1_error)
      __pyx_v_self->_extSemArray_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":12127
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
*/
      __pyx_t_9 = __pyx_v_self->_extSemArray;
      (__pyx_v_self->_pvt_ptr[0]).extSemArray = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":12121
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
    }

    /* "cuda/bindings/runtime.pyx":12128
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12128, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":12129
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12129, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (__pyx_v_self->_extSemArray[__pyx_v_idx]) = (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_3)->_pvt_ptr[0]);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12114
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter             # <<<<<<<<<<<<<<
 *     def extSemArray(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.extSemArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12131
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr162__pyx_v_x;
  PyObject *__pyx_10genexpr163__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12133
 *     @property
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]             # <<<<<<<<<<<<<<
 *         return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_paramsArray_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr162__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).paramsArray) + (__pyx_10genexpr162__pyx_v_x * (sizeof(struct cudaExternalSemaphoreWaitParams))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12133, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12133, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12134
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @paramsArray.setter
 *     def paramsArray(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12134, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12134, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12134, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr163__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12134, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr163__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12134, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12134, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 12134, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr163__pyx_v_arr); __pyx_10genexpr163__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr163__pyx_v_arr); __pyx_10genexpr163__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12131
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.paramsArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr163__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12135
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter             # <<<<<<<<<<<<<<
 *     def paramsArray(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  struct cudaExternalSemaphoreWaitParams *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12137
 *     @paramsArray.setter
 *     def paramsArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12137, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":12138
 *     def paramsArray(self, val):
 *         if len(val) == 0:
 *             free(self._paramsArray)             # <<<<<<<<<<<<<<
 *             self._paramsArray_length = 0
 *             self._pvt_ptr[0].paramsArray = NULL
*/
    free(__pyx_v_self->_paramsArray);

    /* "cuda/bindings/runtime.pyx":12139
 *         if len(val) == 0:
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
*/
    __pyx_v_self->_paramsArray_length = 0;

    /* "cuda/bindings/runtime.pyx":12140
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
 *             self._pvt_ptr[0].paramsArray = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).paramsArray = NULL;

    /* "cuda/bindings/runtime.pyx":12137
 *     @paramsArray.setter
 *     def paramsArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12142
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12142, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_paramsArray_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":12143
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):
 *                 free(self._paramsArray)             # <<<<<<<<<<<<<<
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *                 if self._paramsArray is NULL:
*/
      free(__pyx_v_self->_paramsArray);

      /* "cuda/bindings/runtime.pyx":12144
 *             if self._paramsArray_length != <size_t>len(val):
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))             # <<<<<<<<<<<<<<
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12144, __pyx_L1_error)
      __pyx_v_self->_paramsArray = ((struct cudaExternalSemaphoreWaitParams *)calloc(__pyx_t_1, (sizeof(struct cudaExternalSemaphoreWaitParams))));

      /* "cuda/bindings/runtime.pyx":12145
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *                 if self._paramsArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *                 self._paramsArray_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_paramsArray == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":12146
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))             # <<<<<<<<<<<<<<
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12146, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12146, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12146, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12146, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12146, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitParams))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12146, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12146, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12146, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12146, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 12146, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":12145
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *                 if self._paramsArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *                 self._paramsArray_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":12147
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *                 self._paramsArray_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12147, __pyx_L1_error)
      __pyx_v_self->_paramsArray_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":12148
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
*/
      __pyx_t_9 = __pyx_v_self->_paramsArray;
      (__pyx_v_self->_pvt_ptr[0]).paramsArray = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":12142
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
*/
    }

    /* "cuda/bindings/runtime.pyx":12149
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12149, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":12150
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12150, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_self->_paramsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaExternalSemaphoreWaitParams))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12135
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter             # <<<<<<<<<<<<<<
 *     def paramsArray(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.paramsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12152
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12154
 *     @property
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems             # <<<<<<<<<<<<<<
 *     @numExtSems.setter
 *     def numExtSems(self, unsigned int numExtSems):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).numExtSems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12152
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.numExtSems.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12155
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
 *     @numExtSems.setter             # <<<<<<<<<<<<<<
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems) {
  unsigned int __pyx_v_numExtSems;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_numExtSems); {
    __pyx_v_numExtSems = __Pyx_PyLong_As_unsigned_int(__pyx_arg_numExtSems); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12156, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), ((unsigned int)__pyx_v_numExtSems));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, unsigned int __pyx_v_numExtSems) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12157
 *     @numExtSems.setter
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaExternalSemaphoreWaitNodeParamsV2:
*/
  (__pyx_v_self->_pvt_ptr[0]).numExtSems = __pyx_v_numExtSems;

  /* "cuda/bindings/runtime.pyx":12155
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
 *     @numExtSems.setter             # <<<<<<<<<<<<<<
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__, "cudaExternalSemaphoreWaitNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__, "cudaExternalSemaphoreWaitNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalSemaphoreWaitNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12178
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12178, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12178, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12178, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12178, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12178, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12178, __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.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12179
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12180
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitNodeParamsV2 *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":12179
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12182
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitNodeParamsV2 *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12178
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12183
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaExternalSemaphoreWaitNodeParamsV2 *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12183, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12183, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12183, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12183, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12183, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12183, __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.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12185
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._extSemArray is not NULL:
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12187
 *     def __dealloc__(self):
 *         pass
 *         if self._extSemArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
*/
  __pyx_t_1 = (__pyx_v_self->_extSemArray != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12188
 *         pass
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)             # <<<<<<<<<<<<<<
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
*/
    free(__pyx_v_self->_extSemArray);

    /* "cuda/bindings/runtime.pyx":12187
 *     def __dealloc__(self):
 *         pass
 *         if self._extSemArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":12189
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_paramsArray != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12190
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_paramsArray);

    /* "cuda/bindings/runtime.pyx":12189
 *         if self._extSemArray is not NULL:
 *             free(self._extSemArray)
 *         if self._paramsArray is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":12185
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *         if self._extSemArray is not NULL:
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12191
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr(PyObject *__pyx_v_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_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr, "cudaExternalSemaphoreWaitNodeParamsV2.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12192
 *             free(self._paramsArray)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12191
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12193
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12194
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12195
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12196
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12197
 *             str_list = []
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extSemArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12197, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12197, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extSemArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12197, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12197, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12197, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12197, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12196
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12198
 *             try:
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12198, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12199
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12199, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_extSemArray_ValueError) != (0)) __PYX_ERR(0, 12199, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12199, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12196
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemArray : ' + str(self.extSemArray)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12200
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12201
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_paramsArray_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12201, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12201, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_paramsArray, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12201, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12201, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12201, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12201, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12200
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12202
 *             try:
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12202, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12203
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12203, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_paramsArray_ValueError) != (0)) __PYX_ERR(0, 12203, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12203, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":12200
 *             except ValueError:
 *                 str_list += ['extSemArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['paramsArray : ' + str(self.paramsArray)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12204
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12205
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_numExtSems_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12205, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12205, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_numExtSems, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12205, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12205, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12205, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12205, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12204
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12206
 *             try:
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12206, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12207
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12207, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_numExtSems_ValueError) != (0)) __PYX_ERR(0, 12207, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12207, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":12204
 *             except ValueError:
 *                 str_list += ['paramsArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numExtSems : ' + str(self.numExtSems)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12208
 *             except ValueError:
 *                 str_list += ['numExtSems : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12194
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12210
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def extSemArray(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12193
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12211
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr164__pyx_v_x;
  PyObject *__pyx_10genexpr165__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12213
 *     @property
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]             # <<<<<<<<<<<<<<
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12213, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_extSemArray_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr164__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).extSemArray) + (__pyx_10genexpr164__pyx_v_x * (sizeof(cudaExternalSemaphore_t))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12213, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12214
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @extSemArray.setter
 *     def extSemArray(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12214, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12214, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12214, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr165__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12214, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr165__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12214, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12214, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 12214, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr165__pyx_v_arr); __pyx_10genexpr165__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr165__pyx_v_arr); __pyx_10genexpr165__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12211
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.extSemArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr165__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12215
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter             # <<<<<<<<<<<<<<
 *     def extSemArray(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  cudaExternalSemaphore_t *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12217
 *     @extSemArray.setter
 *     def extSemArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12217, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":12218
 *     def extSemArray(self, val):
 *         if len(val) == 0:
 *             free(self._extSemArray)             # <<<<<<<<<<<<<<
 *             self._extSemArray_length = 0
 *             self._pvt_ptr[0].extSemArray = NULL
*/
    free(__pyx_v_self->_extSemArray);

    /* "cuda/bindings/runtime.pyx":12219
 *         if len(val) == 0:
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
*/
    __pyx_v_self->_extSemArray_length = 0;

    /* "cuda/bindings/runtime.pyx":12220
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
 *             self._pvt_ptr[0].extSemArray = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).extSemArray = NULL;

    /* "cuda/bindings/runtime.pyx":12217
 *     @extSemArray.setter
 *     def extSemArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._extSemArray)
 *             self._extSemArray_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12222
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12222, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_extSemArray_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":12223
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):
 *                 free(self._extSemArray)             # <<<<<<<<<<<<<<
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:
*/
      free(__pyx_v_self->_extSemArray);

      /* "cuda/bindings/runtime.pyx":12224
 *             if self._extSemArray_length != <size_t>len(val):
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))             # <<<<<<<<<<<<<<
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12224, __pyx_L1_error)
      __pyx_v_self->_extSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_1, (sizeof(cudaExternalSemaphore_t))));

      /* "cuda/bindings/runtime.pyx":12225
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_extSemArray == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":12226
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))             # <<<<<<<<<<<<<<
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12226, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12226, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 12226, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":12225
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
 *                 if self._extSemArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":12227
 *                 if self._extSemArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12227, __pyx_L1_error)
      __pyx_v_self->_extSemArray_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":12228
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
*/
      __pyx_t_9 = __pyx_v_self->_extSemArray;
      (__pyx_v_self->_pvt_ptr[0]).extSemArray = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":12222
 *             self._pvt_ptr[0].extSemArray = NULL
 *         else:
 *             if self._extSemArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._extSemArray)
 *                 self._extSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
    }

    /* "cuda/bindings/runtime.pyx":12229
 *                 self._extSemArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12229, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":12230
 *                 self._pvt_ptr[0].extSemArray = self._extSemArray
 *             for idx in range(len(val)):
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12230, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (__pyx_v_self->_extSemArray[__pyx_v_idx]) = (((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_3)->_pvt_ptr[0]);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12215
 *         arrs = [<void_ptr>self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)]
 *         return [cudaExternalSemaphore_t(_ptr=arr) for arr in arrs]
 *     @extSemArray.setter             # <<<<<<<<<<<<<<
 *     def extSemArray(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.extSemArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12232
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  size_t __pyx_10genexpr166__pyx_v_x;
  PyObject *__pyx_10genexpr167__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12234
 *     @property
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]             # <<<<<<<<<<<<<<
 *         return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_self->_paramsArray_length;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr166__pyx_v_x = __pyx_t_4;
      __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).paramsArray) + (__pyx_10genexpr166__pyx_v_x * (sizeof(struct cudaExternalSemaphoreWaitParams))))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12234, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 12234, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12235
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @paramsArray.setter
 *     def paramsArray(self, val):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12235, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12235, __pyx_L7_error)
        #endif
        if (__pyx_t_6 >= __pyx_temp) break;
      }
      __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_6;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12235, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_10genexpr167__pyx_v_arr, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      __pyx_t_2 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12235, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr167__pyx_v_arr, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12235, __pyx_L7_error)
        __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, __pyx_callargs+__pyx_t_2, (1-__pyx_t_2) | (__pyx_t_2*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12235, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_7);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 12235, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr167__pyx_v_arr); __pyx_10genexpr167__pyx_v_arr = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr167__pyx_v_arr); __pyx_10genexpr167__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12232
 *                 self._extSemArray[idx] = (<cudaExternalSemaphore_t>val[idx])._pvt_ptr[0]
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def paramsArray(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.paramsArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr167__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12236
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter             # <<<<<<<<<<<<<<
 *     def paramsArray(self, val):
 *         if len(val) == 0:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), ((PyObject *)__pyx_v_val));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, PyObject *__pyx_v_val) {
  Py_ssize_t __pyx_v_idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  struct cudaExternalSemaphoreWaitParams *__pyx_t_9;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12238
 *     @paramsArray.setter
 *     def paramsArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12238, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":12239
 *     def paramsArray(self, val):
 *         if len(val) == 0:
 *             free(self._paramsArray)             # <<<<<<<<<<<<<<
 *             self._paramsArray_length = 0
 *             self._pvt_ptr[0].paramsArray = NULL
*/
    free(__pyx_v_self->_paramsArray);

    /* "cuda/bindings/runtime.pyx":12240
 *         if len(val) == 0:
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
*/
    __pyx_v_self->_paramsArray_length = 0;

    /* "cuda/bindings/runtime.pyx":12241
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
 *             self._pvt_ptr[0].paramsArray = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):
*/
    (__pyx_v_self->_pvt_ptr[0]).paramsArray = NULL;

    /* "cuda/bindings/runtime.pyx":12238
 *     @paramsArray.setter
 *     def paramsArray(self, val):
 *         if len(val) == 0:             # <<<<<<<<<<<<<<
 *             free(self._paramsArray)
 *             self._paramsArray_length = 0
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12243
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
*/
  /*else*/ {
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12243, __pyx_L1_error)
    __pyx_t_2 = (__pyx_v_self->_paramsArray_length != ((size_t)__pyx_t_1));
    if (__pyx_t_2) {

      /* "cuda/bindings/runtime.pyx":12244
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):
 *                 free(self._paramsArray)             # <<<<<<<<<<<<<<
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *                 if self._paramsArray is NULL:
*/
      free(__pyx_v_self->_paramsArray);

      /* "cuda/bindings/runtime.pyx":12245
 *             if self._paramsArray_length != <size_t>len(val):
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))             # <<<<<<<<<<<<<<
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12245, __pyx_L1_error)
      __pyx_v_self->_paramsArray = ((struct cudaExternalSemaphoreWaitParams *)calloc(__pyx_t_1, (sizeof(struct cudaExternalSemaphoreWaitParams))));

      /* "cuda/bindings/runtime.pyx":12246
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *                 if self._paramsArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *                 self._paramsArray_length = <size_t>len(val)
*/
      __pyx_t_2 = (__pyx_v_self->_paramsArray == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cuda/bindings/runtime.pyx":12247
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))             # <<<<<<<<<<<<<<
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
*/
        __pyx_t_4 = NULL;
        __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12247, __pyx_L1_error)
        __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12247, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12247, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12247, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12247, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitParams))); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12247, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12247, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12247, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12247, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 12247, __pyx_L1_error)

        /* "cuda/bindings/runtime.pyx":12246
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *                 if self._paramsArray is NULL:             # <<<<<<<<<<<<<<
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *                 self._paramsArray_length = <size_t>len(val)
*/
      }

      /* "cuda/bindings/runtime.pyx":12248
 *                 if self._paramsArray is NULL:
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *                 self._paramsArray_length = <size_t>len(val)             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):
*/
      __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12248, __pyx_L1_error)
      __pyx_v_self->_paramsArray_length = ((size_t)__pyx_t_1);

      /* "cuda/bindings/runtime.pyx":12249
 *                     raise MemoryError('Failed to allocate length x size memory: ' + str(len(val)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray             # <<<<<<<<<<<<<<
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
*/
      __pyx_t_9 = __pyx_v_self->_paramsArray;
      (__pyx_v_self->_pvt_ptr[0]).paramsArray = __pyx_t_9;

      /* "cuda/bindings/runtime.pyx":12243
 *             self._pvt_ptr[0].paramsArray = NULL
 *         else:
 *             if self._paramsArray_length != <size_t>len(val):             # <<<<<<<<<<<<<<
 *                 free(self._paramsArray)
 *                 self._paramsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(val), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
*/
    }

    /* "cuda/bindings/runtime.pyx":12250
 *                 self._paramsArray_length = <size_t>len(val)
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):             # <<<<<<<<<<<<<<
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 * 
*/
    __pyx_t_1 = PyObject_Length(__pyx_v_val); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12250, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_1;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":12251
 *                 self._pvt_ptr[0].paramsArray = self._paramsArray
 *             for idx in range(len(val)):
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_val, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_self->_paramsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaExternalSemaphoreWaitParams))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12236
 *         arrs = [<void_ptr>self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)]
 *         return [cudaExternalSemaphoreWaitParams(_ptr=arr) for arr in arrs]
 *     @paramsArray.setter             # <<<<<<<<<<<<<<
 *     def paramsArray(self, val):
 *         if len(val) == 0:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.paramsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12253
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12255
 *     @property
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems             # <<<<<<<<<<<<<<
 *     @numExtSems.setter
 *     def numExtSems(self, unsigned int numExtSems):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).numExtSems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12253
 *                 string.memcpy(&self._paramsArray[idx], (<cudaExternalSemaphoreWaitParams>val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.numExtSems.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12256
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
 *     @numExtSems.setter             # <<<<<<<<<<<<<<
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numExtSems) {
  unsigned int __pyx_v_numExtSems;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_numExtSems); {
    __pyx_v_numExtSems = __Pyx_PyLong_As_unsigned_int(__pyx_arg_numExtSems); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12257, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.numExtSems.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), ((unsigned int)__pyx_v_numExtSems));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, unsigned int __pyx_v_numExtSems) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12258
 *     @numExtSems.setter
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaConditionalNodeParams:
*/
  (__pyx_v_self->_pvt_ptr[0]).numExtSems = __pyx_v_numExtSems;

  /* "cuda/bindings/runtime.pyx":12256
 *     def numExtSems(self):
 *         return self._pvt_ptr[0].numExtSems
 *     @numExtSems.setter             # <<<<<<<<<<<<<<
 *     def numExtSems(self, unsigned int numExtSems):
 *         self._pvt_ptr[0].numExtSems = numExtSems
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__, "cudaExternalSemaphoreWaitNodeParamsV2.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__, "cudaExternalSemaphoreWaitNodeParamsV2.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12300
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12300, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12300, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12300, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12300, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12300, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12300, __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.runtime.cudaConditionalNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12301
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12302
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaConditionalNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":12301
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12304
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaConditionalNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaConditionalNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12300
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12305
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaConditionalNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._handle = cudaGraphConditionalHandle(_ptr=<void_ptr>&self._pvt_ptr[0].handle)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12305, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12305, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12305, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12305, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12305, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12305, __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.runtime.cudaConditionalNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":12307
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._handle = cudaGraphConditionalHandle(_ptr=<void_ptr>&self._pvt_ptr[0].handle)             # <<<<<<<<<<<<<<
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).handle))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12307, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12307, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_handle);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_handle);
  __pyx_v_self->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12308
 *         pass
 *         self._handle = cudaGraphConditionalHandle(_ptr=<void_ptr>&self._pvt_ptr[0].handle)
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).ctx))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12308, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12308, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_ctx);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_ctx);
  __pyx_v_self->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12305
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaConditionalNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._handle = cudaGraphConditionalHandle(_ptr=<void_ptr>&self._pvt_ptr[0].handle)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12309
 *         self._handle = cudaGraphConditionalHandle(_ptr=<void_ptr>&self._pvt_ptr[0].handle)
 *         self._ctx = cudaExecutionContext_t(_ptr=<void_ptr>&self._pvt_ptr[0].ctx)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12311
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_25cudaConditionalNodeParams_6getPtr, "cudaConditionalNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12312
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12311
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12313
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12314
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12315
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['handle : ' + str(self.handle)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12316
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + str(self.handle)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12317
 *             str_list = []
 *             try:
 *                 str_list += ['handle : ' + str(self.handle)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_handle_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12317, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12317, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_handle, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12317, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12317, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12317, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12317, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12316
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + str(self.handle)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12318
 *             try:
 *                 str_list += ['handle : ' + str(self.handle)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12318, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12319
 *                 str_list += ['handle : ' + str(self.handle)]
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12319, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_handle_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_handle_ValueError) != (0)) __PYX_ERR(0, 12319, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12319, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12316
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['handle : ' + str(self.handle)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12320
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12321
 *                 str_list += ['handle : <ValueError>']
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12321, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12321, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12321, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12321, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12321, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12321, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12320
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12322
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12322, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12323
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12323, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 12323, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12323, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":12320
 *             except ValueError:
 *                 str_list += ['handle : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12324
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12325
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['size : ' + str(self.size)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_size_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12325, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12325, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_size, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12325, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12325, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12325, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12325, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12324
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12326
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12326, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12327
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['phGraph_out : ' + str(self.phGraph_out)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12327, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_size_ValueError) != (0)) __PYX_ERR(0, 12327, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12327, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":12324
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12328
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['phGraph_out : ' + str(self.phGraph_out)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12329
 *                 str_list += ['size : <ValueError>']
 *             try:
 *                 str_list += ['phGraph_out : ' + str(self.phGraph_out)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['phGraph_out : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_phGraph_out_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12329, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12329, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_phGraph_out, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12329, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12329, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12329, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12329, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12328
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['phGraph_out : ' + str(self.phGraph_out)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12330
 *             try:
 *                 str_list += ['phGraph_out : ' + str(self.phGraph_out)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['phGraph_out : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12330, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12331
 *                 str_list += ['phGraph_out : ' + str(self.phGraph_out)]
 *             except ValueError:
 *                 str_list += ['phGraph_out : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12331, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_phGraph_out_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_phGraph_out_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_phGraph_out_ValueError) != (0)) __PYX_ERR(0, 12331, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12331, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":12328
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['phGraph_out : ' + str(self.phGraph_out)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12332
 *             except ValueError:
 *                 str_list += ['phGraph_out : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12333
 *                 str_list += ['phGraph_out : <ValueError>']
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ctx_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12333, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12333, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ctx, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12333, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12333, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12333, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12333, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12332
 *             except ValueError:
 *                 str_list += ['phGraph_out : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12334
 *             try:
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12334, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12335
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12335, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ctx_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ctx_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_ctx_ValueError) != (0)) __PYX_ERR(0, 12335, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12335, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":12332
 *             except ValueError:
 *                 str_list += ['phGraph_out : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ctx : ' + str(self.ctx)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12336
 *             except ValueError:
 *                 str_list += ['ctx : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12314
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12338
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def handle(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12313
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12339
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return self._handle
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12341
 *     @property
 *     def handle(self):
 *         return self._handle             # <<<<<<<<<<<<<<
 *     @handle.setter
 *     def handle(self, handle):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_handle);
  __pyx_r = ((PyObject *)__pyx_v_self->_handle);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12339
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def handle(self):
 *         return self._handle
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12342
 *     def handle(self):
 *         return self._handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle):
 *         cdef cyruntime.cudaGraphConditionalHandle cyhandle
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_handle) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_handle));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, PyObject *__pyx_v_handle) {
  cudaGraphConditionalHandle __pyx_v_cyhandle;
  PyObject *__pyx_v_phandle = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12345
 *     def handle(self, handle):
 *         cdef cyruntime.cudaGraphConditionalHandle cyhandle
 *         if handle is None:             # <<<<<<<<<<<<<<
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>0
 *         elif isinstance(handle, (cudaGraphConditionalHandle)):
*/
  __pyx_t_1 = (__pyx_v_handle == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12346
 *         cdef cyruntime.cudaGraphConditionalHandle cyhandle
 *         if handle is None:
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(handle, (cudaGraphConditionalHandle)):
 *             phandle = int(handle)
*/
    __pyx_v_cyhandle = ((cudaGraphConditionalHandle)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":12345
 *     def handle(self, handle):
 *         cdef cyruntime.cudaGraphConditionalHandle cyhandle
 *         if handle is None:             # <<<<<<<<<<<<<<
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>0
 *         elif isinstance(handle, (cudaGraphConditionalHandle)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12347
 *         if handle is None:
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>0
 *         elif isinstance(handle, (cudaGraphConditionalHandle)):             # <<<<<<<<<<<<<<
 *             phandle = int(handle)
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>phandle
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_handle, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12348
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>0
 *         elif isinstance(handle, (cudaGraphConditionalHandle)):
 *             phandle = int(handle)             # <<<<<<<<<<<<<<
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>phandle
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_phandle = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12349
 *         elif isinstance(handle, (cudaGraphConditionalHandle)):
 *             phandle = int(handle)
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>phandle             # <<<<<<<<<<<<<<
 *         else:
 *             phandle = int(cudaGraphConditionalHandle(handle))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phandle); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12349, __pyx_L1_error)
    __pyx_v_cyhandle = ((cudaGraphConditionalHandle)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":12347
 *         if handle is None:
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>0
 *         elif isinstance(handle, (cudaGraphConditionalHandle)):             # <<<<<<<<<<<<<<
 *             phandle = int(handle)
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>phandle
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12351
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>phandle
 *         else:
 *             phandle = int(cudaGraphConditionalHandle(handle))             # <<<<<<<<<<<<<<
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>phandle
 *         self._handle._pvt_ptr[0] = cyhandle
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_handle};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12351, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_phandle = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":12352
 *         else:
 *             phandle = int(cudaGraphConditionalHandle(handle))
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>phandle             # <<<<<<<<<<<<<<
 *         self._handle._pvt_ptr[0] = cyhandle
 * 
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phandle); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12352, __pyx_L1_error)
    __pyx_v_cyhandle = ((cudaGraphConditionalHandle)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12353
 *             phandle = int(cudaGraphConditionalHandle(handle))
 *             cyhandle = <cyruntime.cudaGraphConditionalHandle><void_ptr>phandle
 *         self._handle._pvt_ptr[0] = cyhandle             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
  (__pyx_v_self->_handle->_pvt_ptr[0]) = __pyx_v_cyhandle;

  /* "cuda/bindings/runtime.pyx":12342
 *     def handle(self):
 *         return self._handle
 *     @handle.setter             # <<<<<<<<<<<<<<
 *     def handle(self, handle):
 *         cdef cyruntime.cudaGraphConditionalHandle cyhandle
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.handle.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phandle);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12355
 *         self._handle._pvt_ptr[0] = cyhandle
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphConditionalNodeType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12357
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphConditionalNodeType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphConditionalNodeType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphConditionalNodeType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphConditionalNodeTy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 12357, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":12358
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphConditionalNodeType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaGraphConditionalNodeType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12357
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphConditionalNodeType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphConditionalNodeType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":12359
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphConditionalNodeType:
 *             return None
 *         return _dict_cudaGraphConditionalNodeType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaGraphConditionalNodeType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphConditionalNodeTy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphConditionalNodeType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12355
 *         self._handle._pvt_ptr[0] = cyhandle
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphConditionalNodeType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12360
 *             return None
 *         return _dict_cudaGraphConditionalNodeType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaGraphConditionalNodeType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 12361, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaGraphConditionalNodeType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12362
 *     @type.setter
 *     def type(self, type not None : cudaGraphConditionalNodeType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def size(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaGraphConditionalNodeType)__Pyx_PyLong_As_enum__cudaGraphConditionalNodeType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12362, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":12360
 *             return None
 *         return _dict_cudaGraphConditionalNodeType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaGraphConditionalNodeType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12363
 *     def type(self, type not None : cudaGraphConditionalNodeType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].size
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12365
 *     @property
 *     def size(self):
 *         return self._pvt_ptr[0].size             # <<<<<<<<<<<<<<
 *     @size.setter
 *     def size(self, unsigned int size):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12363
 *     def type(self, type not None : cudaGraphConditionalNodeType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].size
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12366
 *     def size(self):
 *         return self._pvt_ptr[0].size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, unsigned int size):
 *         self._pvt_ptr[0].size = size
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size) {
  unsigned int __pyx_v_size;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_size); {
    __pyx_v_size = __Pyx_PyLong_As_unsigned_int(__pyx_arg_size); if (unlikely((__pyx_v_size == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 12367, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self), ((unsigned int)__pyx_v_size));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, unsigned int __pyx_v_size) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12368
 *     @size.setter
 *     def size(self, unsigned int size):
 *         self._pvt_ptr[0].size = size             # <<<<<<<<<<<<<<
 *     @property
 *     def phGraph_out(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).size = __pyx_v_size;

  /* "cuda/bindings/runtime.pyx":12366
 *     def size(self):
 *         return self._pvt_ptr[0].size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, unsigned int size):
 *         self._pvt_ptr[0].size = size
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12369
 *     def size(self, unsigned int size):
 *         self._pvt_ptr[0].size = size
 *     @property             # <<<<<<<<<<<<<<
 *     def phGraph_out(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].phGraph_out + x*sizeof(cyruntime.cudaGraph_t) for x in range(self.size)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11phGraph_out_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11phGraph_out_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11phGraph_out___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11phGraph_out___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_arrs = NULL;
  PyObject *__pyx_10genexpr168__pyx_v_x = NULL;
  PyObject *__pyx_10genexpr169__pyx_v_arr = NULL;
  PyObject *__pyx_r = NULL;
  __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)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12371
 *     @property
 *     def phGraph_out(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].phGraph_out + x*sizeof(cyruntime.cudaGraph_t) for x in range(self.size)]             # <<<<<<<<<<<<<<
 *         return [cudaGraph_t(_ptr=arr) for arr in arrs]
 *     @property
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12371, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = NULL;
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_size_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12371, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __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_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12371, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12371, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12371, __pyx_L5_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_6(__pyx_t_4);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 12371, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_10genexpr168__pyx_v_x, __pyx_t_2);
      __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).phGraph_out)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12371, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraph_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12371, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_7 = PyNumber_Multiply(__pyx_10genexpr168__pyx_v_x, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 12371, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyNumber_Add(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12371, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 12371, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_10genexpr168__pyx_v_x); __pyx_10genexpr168__pyx_v_x = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_10genexpr168__pyx_v_x); __pyx_10genexpr168__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_v_arrs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12372
 *     def phGraph_out(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].phGraph_out + x*sizeof(cyruntime.cudaGraph_t) for x in range(self.size)]
 *         return [cudaGraph_t(_ptr=arr) for arr in arrs]             # <<<<<<<<<<<<<<
 *     @property
 *     def ctx(self):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12372, __pyx_L12_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __pyx_v_arrs; __Pyx_INCREF(__pyx_t_4);
    __pyx_t_8 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12372, __pyx_L12_error)
        #endif
        if (__pyx_t_8 >= __pyx_temp) break;
      }
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_8;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12372, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_10genexpr169__pyx_v_arr, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_7 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, NULL};
        __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12372, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_10genexpr169__pyx_v_arr, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12372, __pyx_L12_error)
        __pyx_t_3 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12372, __pyx_L12_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_3);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 12372, __pyx_L12_error)
      __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_10genexpr169__pyx_v_arr); __pyx_10genexpr169__pyx_v_arr = 0;
    goto __pyx_L16_exit_scope;
    __pyx_L12_error:;
    __Pyx_XDECREF(__pyx_10genexpr169__pyx_v_arr); __pyx_10genexpr169__pyx_v_arr = 0;
    goto __pyx_L1_error;
    __pyx_L16_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12369
 *     def size(self, unsigned int size):
 *         self._pvt_ptr[0].size = size
 *     @property             # <<<<<<<<<<<<<<
 *     def phGraph_out(self):
 *         arrs = [<void_ptr>self._pvt_ptr[0].phGraph_out + x*sizeof(cyruntime.cudaGraph_t) for x in range(self.size)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.phGraph_out.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_arrs);
  __Pyx_XDECREF(__pyx_10genexpr168__pyx_v_x);
  __Pyx_XDECREF(__pyx_10genexpr169__pyx_v_arr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12373
 *         arrs = [<void_ptr>self._pvt_ptr[0].phGraph_out + x*sizeof(cyruntime.cudaGraph_t) for x in range(self.size)]
 *         return [cudaGraph_t(_ptr=arr) for arr in arrs]
 *     @property             # <<<<<<<<<<<<<<
 *     def ctx(self):
 *         return self._ctx
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12375
 *     @property
 *     def ctx(self):
 *         return self._ctx             # <<<<<<<<<<<<<<
 *     @ctx.setter
 *     def ctx(self, ctx):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_ctx);
  __pyx_r = ((PyObject *)__pyx_v_self->_ctx);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12373
 *         arrs = [<void_ptr>self._pvt_ptr[0].phGraph_out + x*sizeof(cyruntime.cudaGraph_t) for x in range(self.size)]
 *         return [cudaGraph_t(_ptr=arr) for arr in arrs]
 *     @property             # <<<<<<<<<<<<<<
 *     def ctx(self):
 *         return self._ctx
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12376
 *     def ctx(self):
 *         return self._ctx
 *     @ctx.setter             # <<<<<<<<<<<<<<
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ctx); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ctx) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_ctx));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, PyObject *__pyx_v_ctx) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12379
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12380
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)
*/
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":12379
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
 *         if ctx is None:             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12381
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12382
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12383
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12383, __pyx_L1_error)
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":12381
 *         if ctx is None:
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>0
 *         elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *             pctx = int(ctx)
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12385
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12385, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12385, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":12386
 *         else:
 *             pctx = int(cudaExecutionContext_t(ctx))
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *         self._ctx._pvt_ptr[0] = cyctx
 * 
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12386, __pyx_L1_error)
    __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12387
 *             pctx = int(cudaExecutionContext_t(ctx))
 *             cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *         self._ctx._pvt_ptr[0] = cyctx             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaChildGraphNodeParams:
*/
  (__pyx_v_self->_ctx->_pvt_ptr[0]) = __pyx_v_cyctx;

  /* "cuda/bindings/runtime.pyx":12376
 *     def ctx(self):
 *         return self._ctx
 *     @ctx.setter             # <<<<<<<<<<<<<<
 *     def ctx(self, ctx):
 *         cdef cyruntime.cudaExecutionContext_t cyctx
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.ctx.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_25cudaConditionalNodeParams_10__reduce_cython__, "cudaConditionalNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_25cudaConditionalNodeParams_12__setstate_cython__, "cudaConditionalNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaConditionalNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaConditionalNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12409
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12409, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12409, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12409, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12409, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12409, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12409, __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.runtime.cudaChildGraphNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12410
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12411
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaChildGraphNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":12410
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12413
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaChildGraphNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaChildGraphNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12409
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12414
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaChildGraphNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._graph = cudaGraph_t(_ptr=<void_ptr>&self._pvt_ptr[0].graph)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12414, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12414, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12414, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12414, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12414, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12414, __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.runtime.cudaChildGraphNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":12416
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._graph = cudaGraph_t(_ptr=<void_ptr>&self._pvt_ptr[0].graph)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).graph))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12416, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12416, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_graph);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_graph);
  __pyx_v_self->_graph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12414
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaChildGraphNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._graph = cudaGraph_t(_ptr=<void_ptr>&self._pvt_ptr[0].graph)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12417
 *         pass
 *         self._graph = cudaGraph_t(_ptr=<void_ptr>&self._pvt_ptr[0].graph)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12419
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_24cudaChildGraphNodeParams_6getPtr, "cudaChildGraphNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12420
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12419
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12421
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12422
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12423
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['graph : ' + str(self.graph)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12424
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['graph : ' + str(self.graph)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12425
 *             str_list = []
 *             try:
 *                 str_list += ['graph : ' + str(self.graph)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_graph_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12425, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12425, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_graph, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12425, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12425, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12425, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12425, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12424
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['graph : ' + str(self.graph)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12426
 *             try:
 *                 str_list += ['graph : ' + str(self.graph)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['graph : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12426, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12427
 *                 str_list += ['graph : ' + str(self.graph)]
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['ownership : ' + str(self.ownership)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12427, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_graph_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_graph_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_graph_ValueError) != (0)) __PYX_ERR(0, 12427, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12427, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12424
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['graph : ' + str(self.graph)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12428
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ownership : ' + str(self.ownership)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12429
 *                 str_list += ['graph : <ValueError>']
 *             try:
 *                 str_list += ['ownership : ' + str(self.ownership)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['ownership : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_ownership_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12429, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12429, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_ownership, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12429, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12429, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12429, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12429, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12428
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ownership : ' + str(self.ownership)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12430
 *             try:
 *                 str_list += ['ownership : ' + str(self.ownership)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['ownership : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12430, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12431
 *                 str_list += ['ownership : ' + str(self.ownership)]
 *             except ValueError:
 *                 str_list += ['ownership : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12431, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_ownership_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_ownership_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_ownership_ValueError) != (0)) __PYX_ERR(0, 12431, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12431, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":12428
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['ownership : ' + str(self.ownership)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12432
 *             except ValueError:
 *                 str_list += ['ownership : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12432, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12422
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12434
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def graph(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12421
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12435
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def graph(self):
 *         return self._graph
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12437
 *     @property
 *     def graph(self):
 *         return self._graph             # <<<<<<<<<<<<<<
 *     @graph.setter
 *     def graph(self, graph):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_graph);
  __pyx_r = ((PyObject *)__pyx_v_self->_graph);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12435
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def graph(self):
 *         return self._graph
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12438
 *     def graph(self):
 *         return self._graph
 *     @graph.setter             # <<<<<<<<<<<<<<
 *     def graph(self, graph):
 *         cdef cyruntime.cudaGraph_t cygraph
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_graph); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_graph) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_graph));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_graph) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12441
 *     def graph(self, graph):
 *         cdef cyruntime.cudaGraph_t cygraph
 *         if graph is None:             # <<<<<<<<<<<<<<
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>0
 *         elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12442
 *         cdef cyruntime.cudaGraph_t cygraph
 *         if graph is None:
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *             pgraph = int(graph)
*/
    __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":12441
 *     def graph(self, graph):
 *         cdef cyruntime.cudaGraph_t cygraph
 *         if graph is None:             # <<<<<<<<<<<<<<
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>0
 *         elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12443
 *         if graph is None:
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>0
 *         elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *             pgraph = int(graph)
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12444
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>0
 *         elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *             pgraph = int(graph)             # <<<<<<<<<<<<<<
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":12445
 *         elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *             pgraph = int(graph)
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *         else:
 *             pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12445, __pyx_L1_error)
    __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":12443
 *         if graph is None:
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>0
 *         elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *             pgraph = int(graph)
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12447
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *         else:
 *             pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *         self._graph._pvt_ptr[0] = cygraph
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12447, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":12448
 *         else:
 *             pgraph = int(cudaGraph_t(graph))
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *         self._graph._pvt_ptr[0] = cygraph
 *     @property
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12448, __pyx_L1_error)
    __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12449
 *             pgraph = int(cudaGraph_t(graph))
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *         self._graph._pvt_ptr[0] = cygraph             # <<<<<<<<<<<<<<
 *     @property
 *     def ownership(self):
*/
  (__pyx_v_self->_graph->__pyx_base._pvt_ptr[0]) = __pyx_v_cygraph;

  /* "cuda/bindings/runtime.pyx":12438
 *     def graph(self):
 *         return self._graph
 *     @graph.setter             # <<<<<<<<<<<<<<
 *     def graph(self, graph):
 *         cdef cyruntime.cudaGraph_t cygraph
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.graph.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12450
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *         self._graph._pvt_ptr[0] = cygraph
 *     @property             # <<<<<<<<<<<<<<
 *     def ownership(self):
 *         if self._pvt_ptr[0].ownership not in _dict_cudaGraphChildGraphNodeOwnership:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12452
 *     @property
 *     def ownership(self):
 *         if self._pvt_ptr[0].ownership not in _dict_cudaGraphChildGraphNodeOwnership:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphChildGraphNodeOwnership[self._pvt_ptr[0].ownership]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphChildGraphNodeOwnership((__pyx_v_self->_pvt_ptr[0]).ownership); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphChildGraphNodeOwn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 12452, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":12453
 *     def ownership(self):
 *         if self._pvt_ptr[0].ownership not in _dict_cudaGraphChildGraphNodeOwnership:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaGraphChildGraphNodeOwnership[self._pvt_ptr[0].ownership]
 *     @ownership.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12452
 *     @property
 *     def ownership(self):
 *         if self._pvt_ptr[0].ownership not in _dict_cudaGraphChildGraphNodeOwnership:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphChildGraphNodeOwnership[self._pvt_ptr[0].ownership]
*/
  }

  /* "cuda/bindings/runtime.pyx":12454
 *         if self._pvt_ptr[0].ownership not in _dict_cudaGraphChildGraphNodeOwnership:
 *             return None
 *         return _dict_cudaGraphChildGraphNodeOwnership[self._pvt_ptr[0].ownership]             # <<<<<<<<<<<<<<
 *     @ownership.setter
 *     def ownership(self, ownership not None : cudaGraphChildGraphNodeOwnership):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphChildGraphNodeOwn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphChildGraphNodeOwnership((__pyx_v_self->_pvt_ptr[0]).ownership); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12450
 *             cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *         self._graph._pvt_ptr[0] = cygraph
 *     @property             # <<<<<<<<<<<<<<
 *     def ownership(self):
 *         if self._pvt_ptr[0].ownership not in _dict_cudaGraphChildGraphNodeOwnership:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.ownership.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12455
 *             return None
 *         return _dict_cudaGraphChildGraphNodeOwnership[self._pvt_ptr[0].ownership]
 *     @ownership.setter             # <<<<<<<<<<<<<<
 *     def ownership(self, ownership not None : cudaGraphChildGraphNodeOwnership):
 *         self._pvt_ptr[0].ownership = ownership.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ownership); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ownership) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_ownership) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "ownership"); __PYX_ERR(0, 12456, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_ownership));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_ownership) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaGraphChildGraphNodeOwnership __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12457
 *     @ownership.setter
 *     def ownership(self, ownership not None : cudaGraphChildGraphNodeOwnership):
 *         self._pvt_ptr[0].ownership = ownership.value             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaEventRecordNodeParams:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_ownership, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaGraphChildGraphNodeOwnership)__Pyx_PyLong_As_enum__cudaGraphChildGraphNodeOwnership(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12457, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).ownership = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":12455
 *             return None
 *         return _dict_cudaGraphChildGraphNodeOwnership[self._pvt_ptr[0].ownership]
 *     @ownership.setter             # <<<<<<<<<<<<<<
 *     def ownership(self, ownership not None : cudaGraphChildGraphNodeOwnership):
 *         self._pvt_ptr[0].ownership = ownership.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.ownership.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_24cudaChildGraphNodeParams_10__reduce_cython__, "cudaChildGraphNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_24cudaChildGraphNodeParams_12__setstate_cython__, "cudaChildGraphNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaChildGraphNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChildGraphNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12473
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12473, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12473, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12473, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12473, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12473, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12473, __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.runtime.cudaEventRecordNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12474
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12475
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEventRecordNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":12474
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12477
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEventRecordNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaEventRecordNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12473
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12478
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEventRecordNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].event)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12478, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12478, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12478, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12478, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12478, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12478, __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.runtime.cudaEventRecordNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":12480
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].event)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).event))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12480, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12480, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_event);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_event);
  __pyx_v_self->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12478
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEventRecordNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].event)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecordNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12481
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].event)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12483
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_25cudaEventRecordNodeParams_6getPtr, "cudaEventRecordNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12484
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12483
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecordNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12485
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12486
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12487
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['event : ' + str(self.event)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12487, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12488
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12489
 *             str_list = []
 *             try:
 *                 str_list += ['event : ' + str(self.event)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_event_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12489, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12489, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_event, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12489, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12489, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12489, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12489, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12488
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12490
 *             try:
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecordNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12490, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12491
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12491, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_event_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_event_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_event_ValueError) != (0)) __PYX_ERR(0, 12491, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12491, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12488
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12492
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12492, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12486
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12494
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def event(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12485
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecordNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12495
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def event(self):
 *         return self._event
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12497
 *     @property
 *     def event(self):
 *         return self._event             # <<<<<<<<<<<<<<
 *     @event.setter
 *     def event(self, event):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_event);
  __pyx_r = ((PyObject *)__pyx_v_self->_event);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12495
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def event(self):
 *         return self._event
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12498
 *     def event(self):
 *         return self._event
 *     @event.setter             # <<<<<<<<<<<<<<
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_event));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12501
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12502
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)
*/
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":12501
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12503
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12504
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12504, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":12505
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *         else:
 *             pevent = int(cudaEvent_t(event))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12505, __pyx_L1_error)
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":12503
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12507
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         else:
 *             pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12507, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12507, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":12508
 *         else:
 *             pevent = int(cudaEvent_t(event))
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *         self._event._pvt_ptr[0] = cyevent
 * 
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12508, __pyx_L1_error)
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12509
 *             pevent = int(cudaEvent_t(event))
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaEventWaitNodeParams:
*/
  (__pyx_v_self->_event->__pyx_base._pvt_ptr[0]) = __pyx_v_cyevent;

  /* "cuda/bindings/runtime.pyx":12498
 *     def event(self):
 *         return self._event
 *     @event.setter             # <<<<<<<<<<<<<<
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecordNodeParams.event.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_25cudaEventRecordNodeParams_10__reduce_cython__, "cudaEventRecordNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecordNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_25cudaEventRecordNodeParams_12__setstate_cython__, "cudaEventRecordNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaEventRecordNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecordNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12525
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12525, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12525, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12525, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12525, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12525, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12525, __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.runtime.cudaEventWaitNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12526
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12527
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEventWaitNodeParams *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":12526
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12529
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEventWaitNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaEventWaitNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12525
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12530
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEventWaitNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].event)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12530, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12530, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12530, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12530, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12530, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12530, __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.runtime.cudaEventWaitNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":12532
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].event)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).event))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12532, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12532, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_event);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_event);
  __pyx_v_self->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12530
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEventWaitNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].event)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventWaitNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12533
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].event)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12535
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_23cudaEventWaitNodeParams_6getPtr, "cudaEventWaitNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12536
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12535
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventWaitNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12537
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12538
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12539
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['event : ' + str(self.event)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12539, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12540
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12541
 *             str_list = []
 *             try:
 *                 str_list += ['event : ' + str(self.event)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_event_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12541, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12541, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_event, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12541, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12541, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12541, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12541, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12540
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12542
 *             try:
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12542, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12543
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12543, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_event_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_event_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_event_ValueError) != (0)) __PYX_ERR(0, 12543, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12543, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12540
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12544
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12538
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12546
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def event(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12537
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventWaitNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12547
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def event(self):
 *         return self._event
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12549
 *     @property
 *     def event(self):
 *         return self._event             # <<<<<<<<<<<<<<
 *     @event.setter
 *     def event(self, event):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_event);
  __pyx_r = ((PyObject *)__pyx_v_self->_event);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12547
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def event(self):
 *         return self._event
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12550
 *     def event(self):
 *         return self._event
 *     @event.setter             # <<<<<<<<<<<<<<
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_event));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12553
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12554
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)
*/
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":12553
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12555
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12556
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":12557
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *         else:
 *             pevent = int(cudaEvent_t(event))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12557, __pyx_L1_error)
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":12555
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12559
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         else:
 *             pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12559, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":12560
 *         else:
 *             pevent = int(cudaEvent_t(event))
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *         self._event._pvt_ptr[0] = cyevent
 * 
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12560, __pyx_L1_error)
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12561
 *             pevent = int(cudaEvent_t(event))
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaGraphNodeParams:
*/
  (__pyx_v_self->_event->__pyx_base._pvt_ptr[0]) = __pyx_v_cyevent;

  /* "cuda/bindings/runtime.pyx":12550
 *     def event(self):
 *         return self._event
 *     @event.setter             # <<<<<<<<<<<<<<
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventWaitNodeParams.event.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_23cudaEventWaitNodeParams_10__reduce_cython__, "cudaEventWaitNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventWaitNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_23cudaEventWaitNodeParams_12__setstate_cython__, "cudaEventWaitNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaEventWaitNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventWaitNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12607
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaGraphNodeParams *>calloc(1, sizeof(cyruntime.cudaGraphNodeParams))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12607, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12607, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12607, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12607, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12607, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12607, __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.runtime.cudaGraphNodeParams.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct cudaGraphNodeParams *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":12608
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaGraphNodeParams *>calloc(1, sizeof(cyruntime.cudaGraphNodeParams))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12609
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaGraphNodeParams *>calloc(1, sizeof(cyruntime.cudaGraphNodeParams))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct cudaGraphNodeParams *)calloc(1, (sizeof(struct cudaGraphNodeParams))));

    /* "cuda/bindings/runtime.pyx":12610
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaGraphNodeParams *>calloc(1, sizeof(cyruntime.cudaGraphNodeParams))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphNodeParams *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":12608
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaGraphNodeParams *>calloc(1, sizeof(cyruntime.cudaGraphNodeParams))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12612
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphNodeParams *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaGraphNodeParams *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12607
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaGraphNodeParams *>calloc(1, sizeof(cyruntime.cudaGraphNodeParams))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12613
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._kernel = cudaKernelNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].kernel)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12613, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12613, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12613, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12613, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12613, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12613, __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.runtime.cudaGraphNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":12615
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._kernel = cudaKernelNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].kernel)             # <<<<<<<<<<<<<<
 *         self._memcpy = cudaMemcpyNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].memcpy)
 *         self._memset = cudaMemsetParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].memset)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).kernel))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12615, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12615, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_kernel);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_kernel);
  __pyx_v_self->_kernel = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12616
 *         pass
 *         self._kernel = cudaKernelNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].kernel)
 *         self._memcpy = cudaMemcpyNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].memcpy)             # <<<<<<<<<<<<<<
 *         self._memset = cudaMemsetParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].memset)
 *         self._host = cudaHostNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].host)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).memcpy))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12616, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12616, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12616, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_memcpy);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_memcpy);
  __pyx_v_self->_memcpy = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12617
 *         self._kernel = cudaKernelNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].kernel)
 *         self._memcpy = cudaMemcpyNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].memcpy)
 *         self._memset = cudaMemsetParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].memset)             # <<<<<<<<<<<<<<
 *         self._host = cudaHostNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].host)
 *         self._graph = cudaChildGraphNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].graph)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).memset))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12617, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12617, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_memset);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_memset);
  __pyx_v_self->_memset = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12618
 *         self._memcpy = cudaMemcpyNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].memcpy)
 *         self._memset = cudaMemsetParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].memset)
 *         self._host = cudaHostNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].host)             # <<<<<<<<<<<<<<
 *         self._graph = cudaChildGraphNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].graph)
 *         self._eventWait = cudaEventWaitNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventWait)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).host))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12618, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12618, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12618, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_host);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_host);
  __pyx_v_self->_host = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12619
 *         self._memset = cudaMemsetParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].memset)
 *         self._host = cudaHostNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].host)
 *         self._graph = cudaChildGraphNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].graph)             # <<<<<<<<<<<<<<
 *         self._eventWait = cudaEventWaitNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventWait)
 *         self._eventRecord = cudaEventRecordNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventRecord)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).graph))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12619, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12619, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_graph);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_graph);
  __pyx_v_self->_graph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12620
 *         self._host = cudaHostNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].host)
 *         self._graph = cudaChildGraphNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].graph)
 *         self._eventWait = cudaEventWaitNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventWait)             # <<<<<<<<<<<<<<
 *         self._eventRecord = cudaEventRecordNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventRecord)
 *         self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemSignal)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).eventWait))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12620, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12620, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12620, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_eventWait);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_eventWait);
  __pyx_v_self->_eventWait = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12621
 *         self._graph = cudaChildGraphNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].graph)
 *         self._eventWait = cudaEventWaitNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventWait)
 *         self._eventRecord = cudaEventRecordNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventRecord)             # <<<<<<<<<<<<<<
 *         self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemSignal)
 *         self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemWait)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).eventRecord))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12621, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12621, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_eventRecord);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_eventRecord);
  __pyx_v_self->_eventRecord = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12622
 *         self._eventWait = cudaEventWaitNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventWait)
 *         self._eventRecord = cudaEventRecordNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventRecord)
 *         self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemSignal)             # <<<<<<<<<<<<<<
 *         self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemWait)
 *         self._alloc = cudaMemAllocNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].alloc)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).extSemSignal))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12622, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12622, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_extSemSignal);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_extSemSignal);
  __pyx_v_self->_extSemSignal = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12623
 *         self._eventRecord = cudaEventRecordNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].eventRecord)
 *         self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemSignal)
 *         self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemWait)             # <<<<<<<<<<<<<<
 *         self._alloc = cudaMemAllocNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].alloc)
 *         self._free = cudaMemFreeNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].free)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).extSemWait))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12623, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12623, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_extSemWait);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_extSemWait);
  __pyx_v_self->_extSemWait = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12624
 *         self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemSignal)
 *         self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemWait)
 *         self._alloc = cudaMemAllocNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].alloc)             # <<<<<<<<<<<<<<
 *         self._free = cudaMemFreeNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].free)
 *         self._conditional = cudaConditionalNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].conditional)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).alloc))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12624, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12624, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12624, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_alloc);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_alloc);
  __pyx_v_self->_alloc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12625
 *         self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].extSemWait)
 *         self._alloc = cudaMemAllocNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].alloc)
 *         self._free = cudaMemFreeNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].free)             # <<<<<<<<<<<<<<
 *         self._conditional = cudaConditionalNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].conditional)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).free))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12625, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12625, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_free);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_free);
  __pyx_v_self->_free = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12626
 *         self._alloc = cudaMemAllocNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].alloc)
 *         self._free = cudaMemFreeNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].free)
 *         self._conditional = cudaConditionalNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].conditional)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).conditional))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12626, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12626, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_conditional);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_conditional);
  __pyx_v_self->_conditional = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12613
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphNodeParams *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._kernel = cudaKernelNodeParamsV2(_ptr=<void_ptr>&self._pvt_ptr[0].kernel)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12627
 *         self._free = cudaMemFreeNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].free)
 *         self._conditional = cudaConditionalNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].conditional)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12628
 *         self._conditional = cudaConditionalNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].conditional)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12629
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":12628
 *         self._conditional = cudaConditionalNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].conditional)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":12627
 *         self._free = cudaMemFreeNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].free)
 *         self._conditional = cudaConditionalNodeParams(_ptr=<void_ptr>&self._pvt_ptr[0].conditional)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12630
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_7getPtr(PyObject *__pyx_v_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_7runtime_19cudaGraphNodeParams_6getPtr, "cudaGraphNodeParams.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaGraphNodeParams_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12631
 *             free(self._val_ptr)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12630
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12632
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr170__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr171__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr172__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr173__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr174__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr175__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr176__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr177__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr178__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr179__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr180__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr181__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12633
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12634
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12634, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12635
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12636
 *             str_list = []
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12636, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12636, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12636, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12636, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12636, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12636, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12635
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12637
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12637, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12638
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved0 : ' + str(self.reserved0)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12638, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 12638, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12638, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12635
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12639
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved0 : ' + str(self.reserved0)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12640
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['reserved0 : ' + str(self.reserved0)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved0 : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved0_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12640, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12640, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved0, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12640, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12640, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12640, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12640, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12639
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved0 : ' + str(self.reserved0)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12641
 *             try:
 *                 str_list += ['reserved0 : ' + str(self.reserved0)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved0 : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12641, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12642
 *                 str_list += ['reserved0 : ' + str(self.reserved0)]
 *             except ValueError:
 *                 str_list += ['reserved0 : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved1 : ' + str(self.reserved1)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12642, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved0_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved0_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved0_ValueError) != (0)) __PYX_ERR(0, 12642, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12642, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":12639
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved0 : ' + str(self.reserved0)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12643
 *             except ValueError:
 *                 str_list += ['reserved0 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved1 : ' + str(self.reserved1)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12644
 *                 str_list += ['reserved0 : <ValueError>']
 *             try:
 *                 str_list += ['reserved1 : ' + str(self.reserved1)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved1 : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved1_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12644, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12644, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved1, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12644, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12644, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12644, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12644, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12643
 *             except ValueError:
 *                 str_list += ['reserved0 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved1 : ' + str(self.reserved1)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12645
 *             try:
 *                 str_list += ['reserved1 : ' + str(self.reserved1)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved1 : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12645, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12646
 *                 str_list += ['reserved1 : ' + str(self.reserved1)]
 *             except ValueError:
 *                 str_list += ['reserved1 : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['kernel :\n' + '\n'.join(['    ' + line for line in str(self.kernel).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12646, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved1_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved1_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved1_ValueError) != (0)) __PYX_ERR(0, 12646, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12646, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":12643
 *             except ValueError:
 *                 str_list += ['reserved0 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved1 : ' + str(self.reserved1)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12647
 *             except ValueError:
 *                 str_list += ['reserved1 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernel :\n' + '\n'.join(['    ' + line for line in str(self.kernel).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12648
 *                 str_list += ['reserved1 : <ValueError>']
 *             try:
 *                 str_list += ['kernel :\n' + '\n'.join(['    ' + line for line in str(self.kernel).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['kernel : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12648, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_kernel_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12648, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12648, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12648, __pyx_L36_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12648, __pyx_L36_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12648, __pyx_L36_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr170__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr170__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12648, __pyx_L36_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 12648, __pyx_L36_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr170__pyx_v_line); __pyx_10genexpr170__pyx_v_line = 0;
          goto __pyx_L40_exit_scope;
          __pyx_L36_error:;
          __Pyx_XDECREF(__pyx_10genexpr170__pyx_v_line); __pyx_10genexpr170__pyx_v_line = 0;
          goto __pyx_L28_error;
          __pyx_L40_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12648, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_kernel, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12648, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12648, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12648, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12648, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12647
 *             except ValueError:
 *                 str_list += ['reserved1 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernel :\n' + '\n'.join(['    ' + line for line in str(self.kernel).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12649
 *             try:
 *                 str_list += ['kernel :\n' + '\n'.join(['    ' + line for line in str(self.kernel).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernel : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 12649, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":12650
 *                 str_list += ['kernel :\n' + '\n'.join(['    ' + line for line in str(self.kernel).splitlines()])]
 *             except ValueError:
 *                 str_list += ['kernel : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['memcpy :\n' + '\n'.join(['    ' + line for line in str(self.memcpy).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12650, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_kernel_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_kernel_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_kernel_ValueError) != (0)) __PYX_ERR(0, 12650, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12650, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":12647
 *             except ValueError:
 *                 str_list += ['reserved1 : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['kernel :\n' + '\n'.join(['    ' + line for line in str(self.kernel).splitlines()])]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12651
 *             except ValueError:
 *                 str_list += ['kernel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memcpy :\n' + '\n'.join(['    ' + line for line in str(self.memcpy).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12652
 *                 str_list += ['kernel : <ValueError>']
 *             try:
 *                 str_list += ['memcpy :\n' + '\n'.join(['    ' + line for line in str(self.memcpy).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['memcpy : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12652, __pyx_L51_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_memcpy_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12652, __pyx_L51_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12652, __pyx_L51_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12652, __pyx_L51_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12652, __pyx_L51_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12652, __pyx_L51_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr171__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr171__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12652, __pyx_L51_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 12652, __pyx_L51_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr171__pyx_v_line); __pyx_10genexpr171__pyx_v_line = 0;
          goto __pyx_L55_exit_scope;
          __pyx_L51_error:;
          __Pyx_XDECREF(__pyx_10genexpr171__pyx_v_line); __pyx_10genexpr171__pyx_v_line = 0;
          goto __pyx_L43_error;
          __pyx_L55_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12652, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_memcpy, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12652, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12652, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 12652, __pyx_L43_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12652, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":12651
 *             except ValueError:
 *                 str_list += ['kernel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memcpy :\n' + '\n'.join(['    ' + line for line in str(self.memcpy).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12653
 *             try:
 *                 str_list += ['memcpy :\n' + '\n'.join(['    ' + line for line in str(self.memcpy).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['memcpy : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 12653, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12654
 *                 str_list += ['memcpy :\n' + '\n'.join(['    ' + line for line in str(self.memcpy).splitlines()])]
 *             except ValueError:
 *                 str_list += ['memcpy : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['memset :\n' + '\n'.join(['    ' + line for line in str(self.memset).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12654, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_memcpy_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_memcpy_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_memcpy_ValueError) != (0)) __PYX_ERR(0, 12654, __pyx_L45_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12654, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":12651
 *             except ValueError:
 *                 str_list += ['kernel : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memcpy :\n' + '\n'.join(['    ' + line for line in str(self.memcpy).splitlines()])]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12655
 *             except ValueError:
 *                 str_list += ['memcpy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memset :\n' + '\n'.join(['    ' + line for line in str(self.memset).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12656
 *                 str_list += ['memcpy : <ValueError>']
 *             try:
 *                 str_list += ['memset :\n' + '\n'.join(['    ' + line for line in str(self.memset).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['memset : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12656, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_memset_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12656, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12656, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12656, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_8; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12656, __pyx_L66_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12656, __pyx_L66_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_10genexpr172__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr172__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12656, __pyx_L66_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 12656, __pyx_L66_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr172__pyx_v_line); __pyx_10genexpr172__pyx_v_line = 0;
          goto __pyx_L70_exit_scope;
          __pyx_L66_error:;
          __Pyx_XDECREF(__pyx_10genexpr172__pyx_v_line); __pyx_10genexpr172__pyx_v_line = 0;
          goto __pyx_L58_error;
          __pyx_L70_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12656, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_memset, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12656, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12656, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12656, __pyx_L58_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12656, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12655
 *             except ValueError:
 *                 str_list += ['memcpy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memset :\n' + '\n'.join(['    ' + line for line in str(self.memset).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L63_try_end;
      __pyx_L58_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12657
 *             try:
 *                 str_list += ['memset :\n' + '\n'.join(['    ' + line for line in str(self.memset).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['memset : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12657, __pyx_L60_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12658
 *                 str_list += ['memset :\n' + '\n'.join(['    ' + line for line in str(self.memset).splitlines()])]
 *             except ValueError:
 *                 str_list += ['memset : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['host :\n' + '\n'.join(['    ' + line for line in str(self.host).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12658, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_memset_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_memset_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_memset_ValueError) != (0)) __PYX_ERR(0, 12658, __pyx_L60_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12658, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L59_exception_handled;
      }
      goto __pyx_L60_except_error;

      /* "cuda/bindings/runtime.pyx":12655
 *             except ValueError:
 *                 str_list += ['memcpy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memset :\n' + '\n'.join(['    ' + line for line in str(self.memset).splitlines()])]
 *             except ValueError:
*/
      __pyx_L60_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L59_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L63_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12659
 *             except ValueError:
 *                 str_list += ['memset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['host :\n' + '\n'.join(['    ' + line for line in str(self.host).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12660
 *                 str_list += ['memset : <ValueError>']
 *             try:
 *                 str_list += ['host :\n' + '\n'.join(['    ' + line for line in str(self.host).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['host : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12660, __pyx_L81_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_host_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12660, __pyx_L81_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12660, __pyx_L81_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12660, __pyx_L81_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12660, __pyx_L81_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12660, __pyx_L81_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr173__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr173__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12660, __pyx_L81_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 12660, __pyx_L81_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr173__pyx_v_line); __pyx_10genexpr173__pyx_v_line = 0;
          goto __pyx_L85_exit_scope;
          __pyx_L81_error:;
          __Pyx_XDECREF(__pyx_10genexpr173__pyx_v_line); __pyx_10genexpr173__pyx_v_line = 0;
          goto __pyx_L73_error;
          __pyx_L85_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12660, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_host, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12660, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12660, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12660, __pyx_L73_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12660, __pyx_L73_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12659
 *             except ValueError:
 *                 str_list += ['memset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['host :\n' + '\n'.join(['    ' + line for line in str(self.host).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L78_try_end;
      __pyx_L73_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12661
 *             try:
 *                 str_list += ['host :\n' + '\n'.join(['    ' + line for line in str(self.host).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['host : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 12661, __pyx_L75_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":12662
 *                 str_list += ['host :\n' + '\n'.join(['    ' + line for line in str(self.host).splitlines()])]
 *             except ValueError:
 *                 str_list += ['host : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['graph :\n' + '\n'.join(['    ' + line for line in str(self.graph).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12662, __pyx_L75_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_host_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_host_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_host_ValueError) != (0)) __PYX_ERR(0, 12662, __pyx_L75_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12662, __pyx_L75_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L74_exception_handled;
      }
      goto __pyx_L75_except_error;

      /* "cuda/bindings/runtime.pyx":12659
 *             except ValueError:
 *                 str_list += ['memset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['host :\n' + '\n'.join(['    ' + line for line in str(self.host).splitlines()])]
 *             except ValueError:
*/
      __pyx_L75_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L74_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L78_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12663
 *             except ValueError:
 *                 str_list += ['host : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['graph :\n' + '\n'.join(['    ' + line for line in str(self.graph).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12664
 *                 str_list += ['host : <ValueError>']
 *             try:
 *                 str_list += ['graph :\n' + '\n'.join(['    ' + line for line in str(self.graph).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12664, __pyx_L96_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_graph_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12664, __pyx_L96_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12664, __pyx_L96_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12664, __pyx_L96_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12664, __pyx_L96_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12664, __pyx_L96_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr174__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr174__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12664, __pyx_L96_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 12664, __pyx_L96_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr174__pyx_v_line); __pyx_10genexpr174__pyx_v_line = 0;
          goto __pyx_L100_exit_scope;
          __pyx_L96_error:;
          __Pyx_XDECREF(__pyx_10genexpr174__pyx_v_line); __pyx_10genexpr174__pyx_v_line = 0;
          goto __pyx_L88_error;
          __pyx_L100_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12664, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_graph_3, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12664, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12664, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 12664, __pyx_L88_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12664, __pyx_L88_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":12663
 *             except ValueError:
 *                 str_list += ['host : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['graph :\n' + '\n'.join(['    ' + line for line in str(self.graph).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L93_try_end;
      __pyx_L88_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12665
 *             try:
 *                 str_list += ['graph :\n' + '\n'.join(['    ' + line for line in str(self.graph).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['graph : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 12665, __pyx_L90_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12666
 *                 str_list += ['graph :\n' + '\n'.join(['    ' + line for line in str(self.graph).splitlines()])]
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['eventWait :\n' + '\n'.join(['    ' + line for line in str(self.eventWait).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12666, __pyx_L90_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_graph_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_graph_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_graph_ValueError) != (0)) __PYX_ERR(0, 12666, __pyx_L90_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12666, __pyx_L90_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L89_exception_handled;
      }
      goto __pyx_L90_except_error;

      /* "cuda/bindings/runtime.pyx":12663
 *             except ValueError:
 *                 str_list += ['host : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['graph :\n' + '\n'.join(['    ' + line for line in str(self.graph).splitlines()])]
 *             except ValueError:
*/
      __pyx_L90_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L89_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L93_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12667
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eventWait :\n' + '\n'.join(['    ' + line for line in str(self.eventWait).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12668
 *                 str_list += ['graph : <ValueError>']
 *             try:
 *                 str_list += ['eventWait :\n' + '\n'.join(['    ' + line for line in str(self.eventWait).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['eventWait : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12668, __pyx_L111_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_eventWait_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12668, __pyx_L111_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12668, __pyx_L111_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12668, __pyx_L111_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_8; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12668, __pyx_L111_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12668, __pyx_L111_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_10genexpr175__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr175__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12668, __pyx_L111_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 12668, __pyx_L111_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr175__pyx_v_line); __pyx_10genexpr175__pyx_v_line = 0;
          goto __pyx_L115_exit_scope;
          __pyx_L111_error:;
          __Pyx_XDECREF(__pyx_10genexpr175__pyx_v_line); __pyx_10genexpr175__pyx_v_line = 0;
          goto __pyx_L103_error;
          __pyx_L115_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12668, __pyx_L103_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_eventWait, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12668, __pyx_L103_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12668, __pyx_L103_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12668, __pyx_L103_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12668, __pyx_L103_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12667
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eventWait :\n' + '\n'.join(['    ' + line for line in str(self.eventWait).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L108_try_end;
      __pyx_L103_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12669
 *             try:
 *                 str_list += ['eventWait :\n' + '\n'.join(['    ' + line for line in str(self.eventWait).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['eventWait : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12669, __pyx_L105_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12670
 *                 str_list += ['eventWait :\n' + '\n'.join(['    ' + line for line in str(self.eventWait).splitlines()])]
 *             except ValueError:
 *                 str_list += ['eventWait : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['eventRecord :\n' + '\n'.join(['    ' + line for line in str(self.eventRecord).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12670, __pyx_L105_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_eventWait_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_eventWait_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_eventWait_ValueError) != (0)) __PYX_ERR(0, 12670, __pyx_L105_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12670, __pyx_L105_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L104_exception_handled;
      }
      goto __pyx_L105_except_error;

      /* "cuda/bindings/runtime.pyx":12667
 *             except ValueError:
 *                 str_list += ['graph : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eventWait :\n' + '\n'.join(['    ' + line for line in str(self.eventWait).splitlines()])]
 *             except ValueError:
*/
      __pyx_L105_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L104_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L108_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12671
 *             except ValueError:
 *                 str_list += ['eventWait : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eventRecord :\n' + '\n'.join(['    ' + line for line in str(self.eventRecord).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12672
 *                 str_list += ['eventWait : <ValueError>']
 *             try:
 *                 str_list += ['eventRecord :\n' + '\n'.join(['    ' + line for line in str(self.eventRecord).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['eventRecord : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12672, __pyx_L126_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_eventRecord_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12672, __pyx_L126_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12672, __pyx_L126_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12672, __pyx_L126_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12672, __pyx_L126_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12672, __pyx_L126_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr176__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr176__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12672, __pyx_L126_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 12672, __pyx_L126_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr176__pyx_v_line); __pyx_10genexpr176__pyx_v_line = 0;
          goto __pyx_L130_exit_scope;
          __pyx_L126_error:;
          __Pyx_XDECREF(__pyx_10genexpr176__pyx_v_line); __pyx_10genexpr176__pyx_v_line = 0;
          goto __pyx_L118_error;
          __pyx_L130_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12672, __pyx_L118_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_eventRecord, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12672, __pyx_L118_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12672, __pyx_L118_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12672, __pyx_L118_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12672, __pyx_L118_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12671
 *             except ValueError:
 *                 str_list += ['eventWait : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eventRecord :\n' + '\n'.join(['    ' + line for line in str(self.eventRecord).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L123_try_end;
      __pyx_L118_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12673
 *             try:
 *                 str_list += ['eventRecord :\n' + '\n'.join(['    ' + line for line in str(self.eventRecord).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['eventRecord : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 12673, __pyx_L120_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":12674
 *                 str_list += ['eventRecord :\n' + '\n'.join(['    ' + line for line in str(self.eventRecord).splitlines()])]
 *             except ValueError:
 *                 str_list += ['eventRecord : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extSemSignal :\n' + '\n'.join(['    ' + line for line in str(self.extSemSignal).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12674, __pyx_L120_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_eventRecord_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_eventRecord_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_eventRecord_ValueError) != (0)) __PYX_ERR(0, 12674, __pyx_L120_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12674, __pyx_L120_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L119_exception_handled;
      }
      goto __pyx_L120_except_error;

      /* "cuda/bindings/runtime.pyx":12671
 *             except ValueError:
 *                 str_list += ['eventWait : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eventRecord :\n' + '\n'.join(['    ' + line for line in str(self.eventRecord).splitlines()])]
 *             except ValueError:
*/
      __pyx_L120_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L119_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L123_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12675
 *             except ValueError:
 *                 str_list += ['eventRecord : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemSignal :\n' + '\n'.join(['    ' + line for line in str(self.extSemSignal).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12676
 *                 str_list += ['eventRecord : <ValueError>']
 *             try:
 *                 str_list += ['extSemSignal :\n' + '\n'.join(['    ' + line for line in str(self.extSemSignal).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extSemSignal : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12676, __pyx_L141_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extSemSignal_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12676, __pyx_L141_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12676, __pyx_L141_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12676, __pyx_L141_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12676, __pyx_L141_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12676, __pyx_L141_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr177__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr177__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12676, __pyx_L141_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 12676, __pyx_L141_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr177__pyx_v_line); __pyx_10genexpr177__pyx_v_line = 0;
          goto __pyx_L145_exit_scope;
          __pyx_L141_error:;
          __Pyx_XDECREF(__pyx_10genexpr177__pyx_v_line); __pyx_10genexpr177__pyx_v_line = 0;
          goto __pyx_L133_error;
          __pyx_L145_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12676, __pyx_L133_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extSemSignal, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12676, __pyx_L133_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12676, __pyx_L133_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 12676, __pyx_L133_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12676, __pyx_L133_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":12675
 *             except ValueError:
 *                 str_list += ['eventRecord : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemSignal :\n' + '\n'.join(['    ' + line for line in str(self.extSemSignal).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L138_try_end;
      __pyx_L133_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12677
 *             try:
 *                 str_list += ['extSemSignal :\n' + '\n'.join(['    ' + line for line in str(self.extSemSignal).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemSignal : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 12677, __pyx_L135_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12678
 *                 str_list += ['extSemSignal :\n' + '\n'.join(['    ' + line for line in str(self.extSemSignal).splitlines()])]
 *             except ValueError:
 *                 str_list += ['extSemSignal : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['extSemWait :\n' + '\n'.join(['    ' + line for line in str(self.extSemWait).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12678, __pyx_L135_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extSemSignal_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extSemSignal_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_extSemSignal_ValueError) != (0)) __PYX_ERR(0, 12678, __pyx_L135_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12678, __pyx_L135_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L134_exception_handled;
      }
      goto __pyx_L135_except_error;

      /* "cuda/bindings/runtime.pyx":12675
 *             except ValueError:
 *                 str_list += ['eventRecord : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemSignal :\n' + '\n'.join(['    ' + line for line in str(self.extSemSignal).splitlines()])]
 *             except ValueError:
*/
      __pyx_L135_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L134_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L138_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12679
 *             except ValueError:
 *                 str_list += ['extSemSignal : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemWait :\n' + '\n'.join(['    ' + line for line in str(self.extSemWait).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12680
 *                 str_list += ['extSemSignal : <ValueError>']
 *             try:
 *                 str_list += ['extSemWait :\n' + '\n'.join(['    ' + line for line in str(self.extSemWait).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['extSemWait : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12680, __pyx_L156_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_extSemWait_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12680, __pyx_L156_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12680, __pyx_L156_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12680, __pyx_L156_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_8; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12680, __pyx_L156_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12680, __pyx_L156_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_10genexpr178__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr178__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12680, __pyx_L156_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 12680, __pyx_L156_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr178__pyx_v_line); __pyx_10genexpr178__pyx_v_line = 0;
          goto __pyx_L160_exit_scope;
          __pyx_L156_error:;
          __Pyx_XDECREF(__pyx_10genexpr178__pyx_v_line); __pyx_10genexpr178__pyx_v_line = 0;
          goto __pyx_L148_error;
          __pyx_L160_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12680, __pyx_L148_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_extSemWait, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12680, __pyx_L148_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12680, __pyx_L148_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12680, __pyx_L148_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12680, __pyx_L148_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12679
 *             except ValueError:
 *                 str_list += ['extSemSignal : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemWait :\n' + '\n'.join(['    ' + line for line in str(self.extSemWait).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L153_try_end;
      __pyx_L148_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12681
 *             try:
 *                 str_list += ['extSemWait :\n' + '\n'.join(['    ' + line for line in str(self.extSemWait).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemWait : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12681, __pyx_L150_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12682
 *                 str_list += ['extSemWait :\n' + '\n'.join(['    ' + line for line in str(self.extSemWait).splitlines()])]
 *             except ValueError:
 *                 str_list += ['extSemWait : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['alloc :\n' + '\n'.join(['    ' + line for line in str(self.alloc).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12682, __pyx_L150_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_extSemWait_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_extSemWait_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_extSemWait_ValueError) != (0)) __PYX_ERR(0, 12682, __pyx_L150_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12682, __pyx_L150_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L149_exception_handled;
      }
      goto __pyx_L150_except_error;

      /* "cuda/bindings/runtime.pyx":12679
 *             except ValueError:
 *                 str_list += ['extSemSignal : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['extSemWait :\n' + '\n'.join(['    ' + line for line in str(self.extSemWait).splitlines()])]
 *             except ValueError:
*/
      __pyx_L150_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L149_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L153_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12683
 *             except ValueError:
 *                 str_list += ['extSemWait : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['alloc :\n' + '\n'.join(['    ' + line for line in str(self.alloc).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12684
 *                 str_list += ['extSemWait : <ValueError>']
 *             try:
 *                 str_list += ['alloc :\n' + '\n'.join(['    ' + line for line in str(self.alloc).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['alloc : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12684, __pyx_L171_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_alloc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12684, __pyx_L171_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12684, __pyx_L171_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12684, __pyx_L171_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12684, __pyx_L171_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12684, __pyx_L171_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr179__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr179__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12684, __pyx_L171_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 12684, __pyx_L171_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr179__pyx_v_line); __pyx_10genexpr179__pyx_v_line = 0;
          goto __pyx_L175_exit_scope;
          __pyx_L171_error:;
          __Pyx_XDECREF(__pyx_10genexpr179__pyx_v_line); __pyx_10genexpr179__pyx_v_line = 0;
          goto __pyx_L163_error;
          __pyx_L175_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12684, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_alloc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12684, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12684, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12684, __pyx_L163_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12684, __pyx_L163_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12683
 *             except ValueError:
 *                 str_list += ['extSemWait : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['alloc :\n' + '\n'.join(['    ' + line for line in str(self.alloc).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L168_try_end;
      __pyx_L163_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12685
 *             try:
 *                 str_list += ['alloc :\n' + '\n'.join(['    ' + line for line in str(self.alloc).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['alloc : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 12685, __pyx_L165_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":12686
 *                 str_list += ['alloc :\n' + '\n'.join(['    ' + line for line in str(self.alloc).splitlines()])]
 *             except ValueError:
 *                 str_list += ['alloc : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['free :\n' + '\n'.join(['    ' + line for line in str(self.free).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12686, __pyx_L165_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_alloc_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_alloc_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_alloc_ValueError) != (0)) __PYX_ERR(0, 12686, __pyx_L165_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12686, __pyx_L165_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L164_exception_handled;
      }
      goto __pyx_L165_except_error;

      /* "cuda/bindings/runtime.pyx":12683
 *             except ValueError:
 *                 str_list += ['extSemWait : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['alloc :\n' + '\n'.join(['    ' + line for line in str(self.alloc).splitlines()])]
 *             except ValueError:
*/
      __pyx_L165_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L164_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L168_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12687
 *             except ValueError:
 *                 str_list += ['alloc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['free :\n' + '\n'.join(['    ' + line for line in str(self.free).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12688
 *                 str_list += ['alloc : <ValueError>']
 *             try:
 *                 str_list += ['free :\n' + '\n'.join(['    ' + line for line in str(self.free).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['free : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12688, __pyx_L186_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_free_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12688, __pyx_L186_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12688, __pyx_L186_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12688, __pyx_L186_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12688, __pyx_L186_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12688, __pyx_L186_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr180__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr180__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12688, __pyx_L186_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 12688, __pyx_L186_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr180__pyx_v_line); __pyx_10genexpr180__pyx_v_line = 0;
          goto __pyx_L190_exit_scope;
          __pyx_L186_error:;
          __Pyx_XDECREF(__pyx_10genexpr180__pyx_v_line); __pyx_10genexpr180__pyx_v_line = 0;
          goto __pyx_L178_error;
          __pyx_L190_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12688, __pyx_L178_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_free, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12688, __pyx_L178_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12688, __pyx_L178_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 12688, __pyx_L178_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12688, __pyx_L178_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":12687
 *             except ValueError:
 *                 str_list += ['alloc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['free :\n' + '\n'.join(['    ' + line for line in str(self.free).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L183_try_end;
      __pyx_L178_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12689
 *             try:
 *                 str_list += ['free :\n' + '\n'.join(['    ' + line for line in str(self.free).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['free : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 12689, __pyx_L180_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12690
 *                 str_list += ['free :\n' + '\n'.join(['    ' + line for line in str(self.free).splitlines()])]
 *             except ValueError:
 *                 str_list += ['free : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['conditional :\n' + '\n'.join(['    ' + line for line in str(self.conditional).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12690, __pyx_L180_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_free_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_free_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_free_ValueError) != (0)) __PYX_ERR(0, 12690, __pyx_L180_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12690, __pyx_L180_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L179_exception_handled;
      }
      goto __pyx_L180_except_error;

      /* "cuda/bindings/runtime.pyx":12687
 *             except ValueError:
 *                 str_list += ['alloc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['free :\n' + '\n'.join(['    ' + line for line in str(self.free).splitlines()])]
 *             except ValueError:
*/
      __pyx_L180_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L179_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L183_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12691
 *             except ValueError:
 *                 str_list += ['free : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['conditional :\n' + '\n'.join(['    ' + line for line in str(self.conditional).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12692
 *                 str_list += ['free : <ValueError>']
 *             try:
 *                 str_list += ['conditional :\n' + '\n'.join(['    ' + line for line in str(self.conditional).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['conditional : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12692, __pyx_L201_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_conditional_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12692, __pyx_L201_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12692, __pyx_L201_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12692, __pyx_L201_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_8; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12692, __pyx_L201_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12692, __pyx_L201_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_10genexpr181__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr181__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12692, __pyx_L201_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 12692, __pyx_L201_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr181__pyx_v_line); __pyx_10genexpr181__pyx_v_line = 0;
          goto __pyx_L205_exit_scope;
          __pyx_L201_error:;
          __Pyx_XDECREF(__pyx_10genexpr181__pyx_v_line); __pyx_10genexpr181__pyx_v_line = 0;
          goto __pyx_L193_error;
          __pyx_L205_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12692, __pyx_L193_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_conditional, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12692, __pyx_L193_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12692, __pyx_L193_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12692, __pyx_L193_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12692, __pyx_L193_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12691
 *             except ValueError:
 *                 str_list += ['free : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['conditional :\n' + '\n'.join(['    ' + line for line in str(self.conditional).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L198_try_end;
      __pyx_L193_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12693
 *             try:
 *                 str_list += ['conditional :\n' + '\n'.join(['    ' + line for line in str(self.conditional).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['conditional : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12693, __pyx_L195_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12694
 *                 str_list += ['conditional :\n' + '\n'.join(['    ' + line for line in str(self.conditional).splitlines()])]
 *             except ValueError:
 *                 str_list += ['conditional : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved2 : ' + str(self.reserved2)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12694, __pyx_L195_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_conditional_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_conditional_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_conditional_ValueError) != (0)) __PYX_ERR(0, 12694, __pyx_L195_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12694, __pyx_L195_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L194_exception_handled;
      }
      goto __pyx_L195_except_error;

      /* "cuda/bindings/runtime.pyx":12691
 *             except ValueError:
 *                 str_list += ['free : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['conditional :\n' + '\n'.join(['    ' + line for line in str(self.conditional).splitlines()])]
 *             except ValueError:
*/
      __pyx_L195_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L194_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L198_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12695
 *             except ValueError:
 *                 str_list += ['conditional : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved2 : ' + str(self.reserved2)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12696
 *                 str_list += ['conditional : <ValueError>']
 *             try:
 *                 str_list += ['reserved2 : ' + str(self.reserved2)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved2 : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved2_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12696, __pyx_L208_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12696, __pyx_L208_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12696, __pyx_L208_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12696, __pyx_L208_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12696, __pyx_L208_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12696, __pyx_L208_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12695
 *             except ValueError:
 *                 str_list += ['conditional : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved2 : ' + str(self.reserved2)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L213_try_end;
      __pyx_L208_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12697
 *             try:
 *                 str_list += ['reserved2 : ' + str(self.reserved2)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved2 : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12697, __pyx_L210_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12698
 *                 str_list += ['reserved2 : ' + str(self.reserved2)]
 *             except ValueError:
 *                 str_list += ['reserved2 : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12698, __pyx_L210_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved2_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved2_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved2_ValueError) != (0)) __PYX_ERR(0, 12698, __pyx_L210_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12698, __pyx_L210_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L209_exception_handled;
      }
      goto __pyx_L210_except_error;

      /* "cuda/bindings/runtime.pyx":12695
 *             except ValueError:
 *                 str_list += ['conditional : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved2 : ' + str(self.reserved2)]
 *             except ValueError:
*/
      __pyx_L210_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L209_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L213_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12699
 *             except ValueError:
 *                 str_list += ['reserved2 : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12699, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12633
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12701
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12632
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr170__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr171__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr172__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr173__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr174__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr175__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr176__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr177__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr178__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr179__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr180__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr181__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12702
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphNodeType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12704
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphNodeType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphNodeType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphNodeType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphNodeType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 12704, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":12705
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphNodeType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaGraphNodeType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12704
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphNodeType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphNodeType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":12706
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphNodeType:
 *             return None
 *         return _dict_cudaGraphNodeType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaGraphNodeType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphNodeType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphNodeType((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12702
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaGraphNodeType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12707
 *             return None
 *         return _dict_cudaGraphNodeType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaGraphNodeType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 12708, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaGraphNodeType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12709
 *     @type.setter
 *     def type(self, type not None : cudaGraphNodeType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved0(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaGraphNodeType)__Pyx_PyLong_As_enum__cudaGraphNodeType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12709, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":12707
 *             return None
 *         return _dict_cudaGraphNodeType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaGraphNodeType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12710
 *     def type(self, type not None : cudaGraphNodeType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved0(self):
 *         return self._pvt_ptr[0].reserved0
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12712
 *     @property
 *     def reserved0(self):
 *         return self._pvt_ptr[0].reserved0             # <<<<<<<<<<<<<<
 *     @reserved0.setter
 *     def reserved0(self, reserved0):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_int((__pyx_v_self->_pvt_ptr[0]).reserved0, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12710
 *     def type(self, type not None : cudaGraphNodeType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved0(self):
 *         return self._pvt_ptr[0].reserved0
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.reserved0.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12713
 *     def reserved0(self):
 *         return self._pvt_ptr[0].reserved0
 *     @reserved0.setter             # <<<<<<<<<<<<<<
 *     def reserved0(self, reserved0):
 *         self._pvt_ptr[0].reserved0 = reserved0
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved0); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved0) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved0));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_reserved0) {
  int __pyx_r;
  int __pyx_t_1[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":12715
 *     @reserved0.setter
 *     def reserved0(self, reserved0):
 *         self._pvt_ptr[0].reserved0 = reserved0             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved1(self):
*/
  if (unlikely((__Pyx_carray_from_py_int(__pyx_v_reserved0, __pyx_t_1, 3) < 0))) __PYX_ERR(0, 12715, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved0[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved0[0]) * (3));

  /* "cuda/bindings/runtime.pyx":12713
 *     def reserved0(self):
 *         return self._pvt_ptr[0].reserved0
 *     @reserved0.setter             # <<<<<<<<<<<<<<
 *     def reserved0(self, reserved0):
 *         self._pvt_ptr[0].reserved0 = reserved0
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.reserved0.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12716
 *     def reserved0(self, reserved0):
 *         self._pvt_ptr[0].reserved0 = reserved0
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved1(self):
 *         return self._pvt_ptr[0].reserved1
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12718
 *     @property
 *     def reserved1(self):
 *         return self._pvt_ptr[0].reserved1             # <<<<<<<<<<<<<<
 *     @reserved1.setter
 *     def reserved1(self, reserved1):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).reserved1, 29); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12716
 *     def reserved0(self, reserved0):
 *         self._pvt_ptr[0].reserved0 = reserved0
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved1(self):
 *         return self._pvt_ptr[0].reserved1
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.reserved1.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12719
 *     def reserved1(self):
 *         return self._pvt_ptr[0].reserved1
 *     @reserved1.setter             # <<<<<<<<<<<<<<
 *     def reserved1(self, reserved1):
 *         self._pvt_ptr[0].reserved1 = reserved1
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved1); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved1) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((PyObject *)__pyx_v_reserved1));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, PyObject *__pyx_v_reserved1) {
  int __pyx_r;
  PY_LONG_LONG __pyx_t_1[29];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":12721
 *     @reserved1.setter
 *     def reserved1(self, reserved1):
 *         self._pvt_ptr[0].reserved1 = reserved1             # <<<<<<<<<<<<<<
 *     @property
 *     def kernel(self):
*/
  if (unlikely((__Pyx_carray_from_py_PY_LONG_LONG(__pyx_v_reserved1, __pyx_t_1, 29) < 0))) __PYX_ERR(0, 12721, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved1[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved1[0]) * (29));

  /* "cuda/bindings/runtime.pyx":12719
 *     def reserved1(self):
 *         return self._pvt_ptr[0].reserved1
 *     @reserved1.setter             # <<<<<<<<<<<<<<
 *     def reserved1(self, reserved1):
 *         self._pvt_ptr[0].reserved1 = reserved1
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.reserved1.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12722
 *     def reserved1(self, reserved1):
 *         self._pvt_ptr[0].reserved1 = reserved1
 *     @property             # <<<<<<<<<<<<<<
 *     def kernel(self):
 *         return self._kernel
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12724
 *     @property
 *     def kernel(self):
 *         return self._kernel             # <<<<<<<<<<<<<<
 *     @kernel.setter
 *     def kernel(self, kernel not None : cudaKernelNodeParamsV2):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_kernel);
  __pyx_r = ((PyObject *)__pyx_v_self->_kernel);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12722
 *     def reserved1(self, reserved1):
 *         self._pvt_ptr[0].reserved1 = reserved1
 *     @property             # <<<<<<<<<<<<<<
 *     def kernel(self):
 *         return self._kernel
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12725
 *     def kernel(self):
 *         return self._kernel
 *     @kernel.setter             # <<<<<<<<<<<<<<
 *     def kernel(self, kernel not None : cudaKernelNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].kernel, <cyruntime.cudaKernelNodeParamsV2*><void_ptr>kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernel); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_kernel) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_kernel), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, 0, "kernel", 0))) __PYX_ERR(0, 12726, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)__pyx_v_kernel));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *__pyx_v_kernel) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12727
 *     @kernel.setter
 *     def kernel(self, kernel not None : cudaKernelNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].kernel, <cyruntime.cudaKernelNodeParamsV2*><void_ptr>kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel))             # <<<<<<<<<<<<<<
 *     @property
 *     def memcpy(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_kernel);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12727, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12727, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).kernel), ((struct cudaKernelNodeParamsV2 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).kernel))));

  /* "cuda/bindings/runtime.pyx":12725
 *     def kernel(self):
 *         return self._kernel
 *     @kernel.setter             # <<<<<<<<<<<<<<
 *     def kernel(self, kernel not None : cudaKernelNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].kernel, <cyruntime.cudaKernelNodeParamsV2*><void_ptr>kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.kernel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12728
 *     def kernel(self, kernel not None : cudaKernelNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].kernel, <cyruntime.cudaKernelNodeParamsV2*><void_ptr>kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel))
 *     @property             # <<<<<<<<<<<<<<
 *     def memcpy(self):
 *         return self._memcpy
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12730
 *     @property
 *     def memcpy(self):
 *         return self._memcpy             # <<<<<<<<<<<<<<
 *     @memcpy.setter
 *     def memcpy(self, memcpy not None : cudaMemcpyNodeParams):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_memcpy);
  __pyx_r = ((PyObject *)__pyx_v_self->_memcpy);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12728
 *     def kernel(self, kernel not None : cudaKernelNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].kernel, <cyruntime.cudaKernelNodeParamsV2*><void_ptr>kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel))
 *     @property             # <<<<<<<<<<<<<<
 *     def memcpy(self):
 *         return self._memcpy
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12731
 *     def memcpy(self):
 *         return self._memcpy
 *     @memcpy.setter             # <<<<<<<<<<<<<<
 *     def memcpy(self, memcpy not None : cudaMemcpyNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].memcpy, <cyruntime.cudaMemcpyNodeParams*><void_ptr>memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memcpy); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memcpy) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_memcpy), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, 0, "memcpy", 0))) __PYX_ERR(0, 12732, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)__pyx_v_memcpy));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *__pyx_v_memcpy) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12733
 *     @memcpy.setter
 *     def memcpy(self, memcpy not None : cudaMemcpyNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].memcpy, <cyruntime.cudaMemcpyNodeParams*><void_ptr>memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy))             # <<<<<<<<<<<<<<
 *     @property
 *     def memset(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_memcpy);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12733, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).memcpy), ((struct cudaMemcpyNodeParams *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).memcpy))));

  /* "cuda/bindings/runtime.pyx":12731
 *     def memcpy(self):
 *         return self._memcpy
 *     @memcpy.setter             # <<<<<<<<<<<<<<
 *     def memcpy(self, memcpy not None : cudaMemcpyNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].memcpy, <cyruntime.cudaMemcpyNodeParams*><void_ptr>memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.memcpy.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12734
 *     def memcpy(self, memcpy not None : cudaMemcpyNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].memcpy, <cyruntime.cudaMemcpyNodeParams*><void_ptr>memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy))
 *     @property             # <<<<<<<<<<<<<<
 *     def memset(self):
 *         return self._memset
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12736
 *     @property
 *     def memset(self):
 *         return self._memset             # <<<<<<<<<<<<<<
 *     @memset.setter
 *     def memset(self, memset not None : cudaMemsetParamsV2):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_memset);
  __pyx_r = ((PyObject *)__pyx_v_self->_memset);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12734
 *     def memcpy(self, memcpy not None : cudaMemcpyNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].memcpy, <cyruntime.cudaMemcpyNodeParams*><void_ptr>memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy))
 *     @property             # <<<<<<<<<<<<<<
 *     def memset(self):
 *         return self._memset
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12737
 *     def memset(self):
 *         return self._memset
 *     @memset.setter             # <<<<<<<<<<<<<<
 *     def memset(self, memset not None : cudaMemsetParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].memset, <cyruntime.cudaMemsetParamsV2*><void_ptr>memset.getPtr(), sizeof(self._pvt_ptr[0].memset))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memset); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memset) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_memset), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2, 0, "memset", 0))) __PYX_ERR(0, 12738, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)__pyx_v_memset));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *__pyx_v_memset) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12739
 *     @memset.setter
 *     def memset(self, memset not None : cudaMemsetParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].memset, <cyruntime.cudaMemsetParamsV2*><void_ptr>memset.getPtr(), sizeof(self._pvt_ptr[0].memset))             # <<<<<<<<<<<<<<
 *     @property
 *     def host(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_memset);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12739, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12739, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).memset), ((struct cudaMemsetParamsV2 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).memset))));

  /* "cuda/bindings/runtime.pyx":12737
 *     def memset(self):
 *         return self._memset
 *     @memset.setter             # <<<<<<<<<<<<<<
 *     def memset(self, memset not None : cudaMemsetParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].memset, <cyruntime.cudaMemsetParamsV2*><void_ptr>memset.getPtr(), sizeof(self._pvt_ptr[0].memset))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.memset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12740
 *     def memset(self, memset not None : cudaMemsetParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].memset, <cyruntime.cudaMemsetParamsV2*><void_ptr>memset.getPtr(), sizeof(self._pvt_ptr[0].memset))
 *     @property             # <<<<<<<<<<<<<<
 *     def host(self):
 *         return self._host
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12742
 *     @property
 *     def host(self):
 *         return self._host             # <<<<<<<<<<<<<<
 *     @host.setter
 *     def host(self, host not None : cudaHostNodeParamsV2):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_host);
  __pyx_r = ((PyObject *)__pyx_v_self->_host);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12740
 *     def memset(self, memset not None : cudaMemsetParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].memset, <cyruntime.cudaMemsetParamsV2*><void_ptr>memset.getPtr(), sizeof(self._pvt_ptr[0].memset))
 *     @property             # <<<<<<<<<<<<<<
 *     def host(self):
 *         return self._host
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12743
 *     def host(self):
 *         return self._host
 *     @host.setter             # <<<<<<<<<<<<<<
 *     def host(self, host not None : cudaHostNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].host, <cyruntime.cudaHostNodeParamsV2*><void_ptr>host.getPtr(), sizeof(self._pvt_ptr[0].host))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_host); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_host) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_host), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, 0, "host", 0))) __PYX_ERR(0, 12744, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)__pyx_v_host));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *__pyx_v_host) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12745
 *     @host.setter
 *     def host(self, host not None : cudaHostNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].host, <cyruntime.cudaHostNodeParamsV2*><void_ptr>host.getPtr(), sizeof(self._pvt_ptr[0].host))             # <<<<<<<<<<<<<<
 *     @property
 *     def graph(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_host);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12745, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12745, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).host), ((struct cudaHostNodeParamsV2 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).host))));

  /* "cuda/bindings/runtime.pyx":12743
 *     def host(self):
 *         return self._host
 *     @host.setter             # <<<<<<<<<<<<<<
 *     def host(self, host not None : cudaHostNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].host, <cyruntime.cudaHostNodeParamsV2*><void_ptr>host.getPtr(), sizeof(self._pvt_ptr[0].host))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.host.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12746
 *     def host(self, host not None : cudaHostNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].host, <cyruntime.cudaHostNodeParamsV2*><void_ptr>host.getPtr(), sizeof(self._pvt_ptr[0].host))
 *     @property             # <<<<<<<<<<<<<<
 *     def graph(self):
 *         return self._graph
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12748
 *     @property
 *     def graph(self):
 *         return self._graph             # <<<<<<<<<<<<<<
 *     @graph.setter
 *     def graph(self, graph not None : cudaChildGraphNodeParams):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_graph);
  __pyx_r = ((PyObject *)__pyx_v_self->_graph);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12746
 *     def host(self, host not None : cudaHostNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].host, <cyruntime.cudaHostNodeParamsV2*><void_ptr>host.getPtr(), sizeof(self._pvt_ptr[0].host))
 *     @property             # <<<<<<<<<<<<<<
 *     def graph(self):
 *         return self._graph
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12749
 *     def graph(self):
 *         return self._graph
 *     @graph.setter             # <<<<<<<<<<<<<<
 *     def graph(self, graph not None : cudaChildGraphNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].graph, <cyruntime.cudaChildGraphNodeParams*><void_ptr>graph.getPtr(), sizeof(self._pvt_ptr[0].graph))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_graph); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_graph) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_graph), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, 0, "graph", 0))) __PYX_ERR(0, 12750, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)__pyx_v_graph));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *__pyx_v_graph) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12751
 *     @graph.setter
 *     def graph(self, graph not None : cudaChildGraphNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].graph, <cyruntime.cudaChildGraphNodeParams*><void_ptr>graph.getPtr(), sizeof(self._pvt_ptr[0].graph))             # <<<<<<<<<<<<<<
 *     @property
 *     def eventWait(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_graph);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12751, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12751, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).graph), ((struct cudaChildGraphNodeParams *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).graph))));

  /* "cuda/bindings/runtime.pyx":12749
 *     def graph(self):
 *         return self._graph
 *     @graph.setter             # <<<<<<<<<<<<<<
 *     def graph(self, graph not None : cudaChildGraphNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].graph, <cyruntime.cudaChildGraphNodeParams*><void_ptr>graph.getPtr(), sizeof(self._pvt_ptr[0].graph))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.graph.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12752
 *     def graph(self, graph not None : cudaChildGraphNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].graph, <cyruntime.cudaChildGraphNodeParams*><void_ptr>graph.getPtr(), sizeof(self._pvt_ptr[0].graph))
 *     @property             # <<<<<<<<<<<<<<
 *     def eventWait(self):
 *         return self._eventWait
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12754
 *     @property
 *     def eventWait(self):
 *         return self._eventWait             # <<<<<<<<<<<<<<
 *     @eventWait.setter
 *     def eventWait(self, eventWait not None : cudaEventWaitNodeParams):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_eventWait);
  __pyx_r = ((PyObject *)__pyx_v_self->_eventWait);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12752
 *     def graph(self, graph not None : cudaChildGraphNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].graph, <cyruntime.cudaChildGraphNodeParams*><void_ptr>graph.getPtr(), sizeof(self._pvt_ptr[0].graph))
 *     @property             # <<<<<<<<<<<<<<
 *     def eventWait(self):
 *         return self._eventWait
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12755
 *     def eventWait(self):
 *         return self._eventWait
 *     @eventWait.setter             # <<<<<<<<<<<<<<
 *     def eventWait(self, eventWait not None : cudaEventWaitNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventWait, <cyruntime.cudaEventWaitNodeParams*><void_ptr>eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eventWait); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eventWait) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eventWait), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, 0, "eventWait", 0))) __PYX_ERR(0, 12756, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)__pyx_v_eventWait));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *__pyx_v_eventWait) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12757
 *     @eventWait.setter
 *     def eventWait(self, eventWait not None : cudaEventWaitNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventWait, <cyruntime.cudaEventWaitNodeParams*><void_ptr>eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait))             # <<<<<<<<<<<<<<
 *     @property
 *     def eventRecord(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_eventWait);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12757, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).eventWait), ((struct cudaEventWaitNodeParams *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).eventWait))));

  /* "cuda/bindings/runtime.pyx":12755
 *     def eventWait(self):
 *         return self._eventWait
 *     @eventWait.setter             # <<<<<<<<<<<<<<
 *     def eventWait(self, eventWait not None : cudaEventWaitNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventWait, <cyruntime.cudaEventWaitNodeParams*><void_ptr>eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.eventWait.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12758
 *     def eventWait(self, eventWait not None : cudaEventWaitNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventWait, <cyruntime.cudaEventWaitNodeParams*><void_ptr>eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait))
 *     @property             # <<<<<<<<<<<<<<
 *     def eventRecord(self):
 *         return self._eventRecord
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12760
 *     @property
 *     def eventRecord(self):
 *         return self._eventRecord             # <<<<<<<<<<<<<<
 *     @eventRecord.setter
 *     def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_eventRecord);
  __pyx_r = ((PyObject *)__pyx_v_self->_eventRecord);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12758
 *     def eventWait(self, eventWait not None : cudaEventWaitNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventWait, <cyruntime.cudaEventWaitNodeParams*><void_ptr>eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait))
 *     @property             # <<<<<<<<<<<<<<
 *     def eventRecord(self):
 *         return self._eventRecord
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12761
 *     def eventRecord(self):
 *         return self._eventRecord
 *     @eventRecord.setter             # <<<<<<<<<<<<<<
 *     def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventRecord, <cyruntime.cudaEventRecordNodeParams*><void_ptr>eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eventRecord); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eventRecord) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eventRecord), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, 0, "eventRecord", 0))) __PYX_ERR(0, 12762, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)__pyx_v_eventRecord));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *__pyx_v_eventRecord) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12763
 *     @eventRecord.setter
 *     def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventRecord, <cyruntime.cudaEventRecordNodeParams*><void_ptr>eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord))             # <<<<<<<<<<<<<<
 *     @property
 *     def extSemSignal(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_eventRecord);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12763, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).eventRecord), ((struct cudaEventRecordNodeParams *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).eventRecord))));

  /* "cuda/bindings/runtime.pyx":12761
 *     def eventRecord(self):
 *         return self._eventRecord
 *     @eventRecord.setter             # <<<<<<<<<<<<<<
 *     def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventRecord, <cyruntime.cudaEventRecordNodeParams*><void_ptr>eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.eventRecord.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12764
 *     def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventRecord, <cyruntime.cudaEventRecordNodeParams*><void_ptr>eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord))
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemSignal(self):
 *         return self._extSemSignal
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12766
 *     @property
 *     def extSemSignal(self):
 *         return self._extSemSignal             # <<<<<<<<<<<<<<
 *     @extSemSignal.setter
 *     def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_extSemSignal);
  __pyx_r = ((PyObject *)__pyx_v_self->_extSemSignal);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12764
 *     def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].eventRecord, <cyruntime.cudaEventRecordNodeParams*><void_ptr>eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord))
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemSignal(self):
 *         return self._extSemSignal
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12767
 *     def extSemSignal(self):
 *         return self._extSemSignal
 *     @extSemSignal.setter             # <<<<<<<<<<<<<<
 *     def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemSignal, <cyruntime.cudaExternalSemaphoreSignalNodeParamsV2*><void_ptr>extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extSemSignal); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extSemSignal) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extSemSignal), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2, 0, "extSemSignal", 0))) __PYX_ERR(0, 12768, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)__pyx_v_extSemSignal));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *__pyx_v_extSemSignal) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12769
 *     @extSemSignal.setter
 *     def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemSignal, <cyruntime.cudaExternalSemaphoreSignalNodeParamsV2*><void_ptr>extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal))             # <<<<<<<<<<<<<<
 *     @property
 *     def extSemWait(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_extSemSignal);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12769, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).extSemSignal), ((struct cudaExternalSemaphoreSignalNodeParamsV2 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).extSemSignal))));

  /* "cuda/bindings/runtime.pyx":12767
 *     def extSemSignal(self):
 *         return self._extSemSignal
 *     @extSemSignal.setter             # <<<<<<<<<<<<<<
 *     def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemSignal, <cyruntime.cudaExternalSemaphoreSignalNodeParamsV2*><void_ptr>extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.extSemSignal.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12770
 *     def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemSignal, <cyruntime.cudaExternalSemaphoreSignalNodeParamsV2*><void_ptr>extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal))
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemWait(self):
 *         return self._extSemWait
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12772
 *     @property
 *     def extSemWait(self):
 *         return self._extSemWait             # <<<<<<<<<<<<<<
 *     @extSemWait.setter
 *     def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_extSemWait);
  __pyx_r = ((PyObject *)__pyx_v_self->_extSemWait);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12770
 *     def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemSignal, <cyruntime.cudaExternalSemaphoreSignalNodeParamsV2*><void_ptr>extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal))
 *     @property             # <<<<<<<<<<<<<<
 *     def extSemWait(self):
 *         return self._extSemWait
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12773
 *     def extSemWait(self):
 *         return self._extSemWait
 *     @extSemWait.setter             # <<<<<<<<<<<<<<
 *     def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemWait, <cyruntime.cudaExternalSemaphoreWaitNodeParamsV2*><void_ptr>extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extSemWait); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_extSemWait) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extSemWait), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2, 0, "extSemWait", 0))) __PYX_ERR(0, 12774, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)__pyx_v_extSemWait));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *__pyx_v_extSemWait) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12775
 *     @extSemWait.setter
 *     def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemWait, <cyruntime.cudaExternalSemaphoreWaitNodeParamsV2*><void_ptr>extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait))             # <<<<<<<<<<<<<<
 *     @property
 *     def alloc(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_extSemWait);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12775, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12775, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).extSemWait), ((struct cudaExternalSemaphoreWaitNodeParamsV2 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).extSemWait))));

  /* "cuda/bindings/runtime.pyx":12773
 *     def extSemWait(self):
 *         return self._extSemWait
 *     @extSemWait.setter             # <<<<<<<<<<<<<<
 *     def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemWait, <cyruntime.cudaExternalSemaphoreWaitNodeParamsV2*><void_ptr>extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.extSemWait.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12776
 *     def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemWait, <cyruntime.cudaExternalSemaphoreWaitNodeParamsV2*><void_ptr>extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait))
 *     @property             # <<<<<<<<<<<<<<
 *     def alloc(self):
 *         return self._alloc
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12778
 *     @property
 *     def alloc(self):
 *         return self._alloc             # <<<<<<<<<<<<<<
 *     @alloc.setter
 *     def alloc(self, alloc not None : cudaMemAllocNodeParamsV2):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_alloc);
  __pyx_r = ((PyObject *)__pyx_v_self->_alloc);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12776
 *     def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].extSemWait, <cyruntime.cudaExternalSemaphoreWaitNodeParamsV2*><void_ptr>extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait))
 *     @property             # <<<<<<<<<<<<<<
 *     def alloc(self):
 *         return self._alloc
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12779
 *     def alloc(self):
 *         return self._alloc
 *     @alloc.setter             # <<<<<<<<<<<<<<
 *     def alloc(self, alloc not None : cudaMemAllocNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].alloc, <cyruntime.cudaMemAllocNodeParamsV2*><void_ptr>alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_alloc); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_alloc) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_alloc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, 0, "alloc", 0))) __PYX_ERR(0, 12780, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)__pyx_v_alloc));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *__pyx_v_alloc) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12781
 *     @alloc.setter
 *     def alloc(self, alloc not None : cudaMemAllocNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].alloc, <cyruntime.cudaMemAllocNodeParamsV2*><void_ptr>alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc))             # <<<<<<<<<<<<<<
 *     @property
 *     def free(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_alloc);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12781, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12781, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).alloc), ((struct cudaMemAllocNodeParamsV2 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).alloc))));

  /* "cuda/bindings/runtime.pyx":12779
 *     def alloc(self):
 *         return self._alloc
 *     @alloc.setter             # <<<<<<<<<<<<<<
 *     def alloc(self, alloc not None : cudaMemAllocNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].alloc, <cyruntime.cudaMemAllocNodeParamsV2*><void_ptr>alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.alloc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12782
 *     def alloc(self, alloc not None : cudaMemAllocNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].alloc, <cyruntime.cudaMemAllocNodeParamsV2*><void_ptr>alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc))
 *     @property             # <<<<<<<<<<<<<<
 *     def free(self):
 *         return self._free
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12784
 *     @property
 *     def free(self):
 *         return self._free             # <<<<<<<<<<<<<<
 *     @free.setter
 *     def free(self, free not None : cudaMemFreeNodeParams):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_free);
  __pyx_r = ((PyObject *)__pyx_v_self->_free);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12782
 *     def alloc(self, alloc not None : cudaMemAllocNodeParamsV2):
 *         string.memcpy(&self._pvt_ptr[0].alloc, <cyruntime.cudaMemAllocNodeParamsV2*><void_ptr>alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc))
 *     @property             # <<<<<<<<<<<<<<
 *     def free(self):
 *         return self._free
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12785
 *     def free(self):
 *         return self._free
 *     @free.setter             # <<<<<<<<<<<<<<
 *     def free(self, free not None : cudaMemFreeNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].free, <cyruntime.cudaMemFreeNodeParams*><void_ptr>free.getPtr(), sizeof(self._pvt_ptr[0].free))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_free); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_free) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_free), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams, 0, "free", 0))) __PYX_ERR(0, 12786, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)__pyx_v_free));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *__pyx_v_free) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12787
 *     @free.setter
 *     def free(self, free not None : cudaMemFreeNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].free, <cyruntime.cudaMemFreeNodeParams*><void_ptr>free.getPtr(), sizeof(self._pvt_ptr[0].free))             # <<<<<<<<<<<<<<
 *     @property
 *     def conditional(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_free);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12787, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12787, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).free), ((struct cudaMemFreeNodeParams *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).free))));

  /* "cuda/bindings/runtime.pyx":12785
 *     def free(self):
 *         return self._free
 *     @free.setter             # <<<<<<<<<<<<<<
 *     def free(self, free not None : cudaMemFreeNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].free, <cyruntime.cudaMemFreeNodeParams*><void_ptr>free.getPtr(), sizeof(self._pvt_ptr[0].free))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.free.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12788
 *     def free(self, free not None : cudaMemFreeNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].free, <cyruntime.cudaMemFreeNodeParams*><void_ptr>free.getPtr(), sizeof(self._pvt_ptr[0].free))
 *     @property             # <<<<<<<<<<<<<<
 *     def conditional(self):
 *         return self._conditional
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12790
 *     @property
 *     def conditional(self):
 *         return self._conditional             # <<<<<<<<<<<<<<
 *     @conditional.setter
 *     def conditional(self, conditional not None : cudaConditionalNodeParams):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_conditional);
  __pyx_r = ((PyObject *)__pyx_v_self->_conditional);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12788
 *     def free(self, free not None : cudaMemFreeNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].free, <cyruntime.cudaMemFreeNodeParams*><void_ptr>free.getPtr(), sizeof(self._pvt_ptr[0].free))
 *     @property             # <<<<<<<<<<<<<<
 *     def conditional(self):
 *         return self._conditional
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12791
 *     def conditional(self):
 *         return self._conditional
 *     @conditional.setter             # <<<<<<<<<<<<<<
 *     def conditional(self, conditional not None : cudaConditionalNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].conditional, <cyruntime.cudaConditionalNodeParams*><void_ptr>conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_conditional); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_conditional) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_conditional), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams, 0, "conditional", 0))) __PYX_ERR(0, 12792, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)__pyx_v_conditional));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *__pyx_v_conditional) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12793
 *     @conditional.setter
 *     def conditional(self, conditional not None : cudaConditionalNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].conditional, <cyruntime.cudaConditionalNodeParams*><void_ptr>conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional))             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved2(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_conditional);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12793, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).conditional), ((struct cudaConditionalNodeParams *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).conditional))));

  /* "cuda/bindings/runtime.pyx":12791
 *     def conditional(self):
 *         return self._conditional
 *     @conditional.setter             # <<<<<<<<<<<<<<
 *     def conditional(self, conditional not None : cudaConditionalNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].conditional, <cyruntime.cudaConditionalNodeParams*><void_ptr>conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.conditional.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12794
 *     def conditional(self, conditional not None : cudaConditionalNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].conditional, <cyruntime.cudaConditionalNodeParams*><void_ptr>conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved2(self):
 *         return self._pvt_ptr[0].reserved2
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12796
 *     @property
 *     def reserved2(self):
 *         return self._pvt_ptr[0].reserved2             # <<<<<<<<<<<<<<
 *     @reserved2.setter
 *     def reserved2(self, long long reserved2):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).reserved2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12794
 *     def conditional(self, conditional not None : cudaConditionalNodeParams):
 *         string.memcpy(&self._pvt_ptr[0].conditional, <cyruntime.cudaConditionalNodeParams*><void_ptr>conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved2(self):
 *         return self._pvt_ptr[0].reserved2
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.reserved2.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12797
 *     def reserved2(self):
 *         return self._pvt_ptr[0].reserved2
 *     @reserved2.setter             # <<<<<<<<<<<<<<
 *     def reserved2(self, long long reserved2):
 *         self._pvt_ptr[0].reserved2 = reserved2
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved2); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_reserved2) {
  PY_LONG_LONG __pyx_v_reserved2;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_reserved2); {
    __pyx_v_reserved2 = __Pyx_PyLong_As_PY_LONG_LONG(__pyx_arg_reserved2); if (unlikely((__pyx_v_reserved2 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12798, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.reserved2.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), ((PY_LONG_LONG)__pyx_v_reserved2));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, PY_LONG_LONG __pyx_v_reserved2) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12799
 *     @reserved2.setter
 *     def reserved2(self, long long reserved2):
 *         self._pvt_ptr[0].reserved2 = reserved2             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaGraphEdgeData_st:
*/
  (__pyx_v_self->_pvt_ptr[0]).reserved2 = __pyx_v_reserved2;

  /* "cuda/bindings/runtime.pyx":12797
 *     def reserved2(self):
 *         return self._pvt_ptr[0].reserved2
 *     @reserved2.setter             # <<<<<<<<<<<<<<
 *     def reserved2(self, long long reserved2):
 *         self._pvt_ptr[0].reserved2 = reserved2
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_19cudaGraphNodeParams_10__reduce_cython__, "cudaGraphNodeParams.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_19cudaGraphNodeParams_12__setstate_cython__, "cudaGraphNodeParams.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaGraphNodeParams_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaGraphNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeParams.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12840
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12840, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12840, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12840, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12840, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12840, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12840, __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.runtime.cudaGraphEdgeData_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12841
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12842
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphEdgeData_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":12841
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12844
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphEdgeData_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaGraphEdgeData_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12840
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12845
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphEdgeData_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12845, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12845, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12845, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12845, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12845, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12845, __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.runtime.cudaGraphEdgeData_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12847
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12849
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7getPtr(PyObject *__pyx_v_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_7runtime_20cudaGraphEdgeData_st_6getPtr, "cudaGraphEdgeData_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12850
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12849
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12851
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12852
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12853
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['from_port : ' + str(self.from_port)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12854
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['from_port : ' + str(self.from_port)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12855
 *             str_list = []
 *             try:
 *                 str_list += ['from_port : ' + str(self.from_port)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['from_port : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_from_port_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12855, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12855, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_from_port, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12855, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12855, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12855, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12855, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12854
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['from_port : ' + str(self.from_port)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12856
 *             try:
 *                 str_list += ['from_port : ' + str(self.from_port)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['from_port : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12856, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12857
 *                 str_list += ['from_port : ' + str(self.from_port)]
 *             except ValueError:
 *                 str_list += ['from_port : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['to_port : ' + str(self.to_port)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12857, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_from_port_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_from_port_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_from_port_ValueError) != (0)) __PYX_ERR(0, 12857, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12857, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12854
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['from_port : ' + str(self.from_port)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12858
 *             except ValueError:
 *                 str_list += ['from_port : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['to_port : ' + str(self.to_port)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12859
 *                 str_list += ['from_port : <ValueError>']
 *             try:
 *                 str_list += ['to_port : ' + str(self.to_port)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['to_port : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_to_port_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12859, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12859, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_to_port, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12859, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12859, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12859, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12859, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12858
 *             except ValueError:
 *                 str_list += ['from_port : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['to_port : ' + str(self.to_port)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12860
 *             try:
 *                 str_list += ['to_port : ' + str(self.to_port)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['to_port : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12860, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12861
 *                 str_list += ['to_port : ' + str(self.to_port)]
 *             except ValueError:
 *                 str_list += ['to_port : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12861, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_to_port_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_to_port_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_to_port_ValueError) != (0)) __PYX_ERR(0, 12861, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12861, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":12858
 *             except ValueError:
 *                 str_list += ['from_port : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['to_port : ' + str(self.to_port)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12862
 *             except ValueError:
 *                 str_list += ['to_port : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12863
 *                 str_list += ['to_port : <ValueError>']
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12863, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12863, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12863, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12863, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12863, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12863, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12862
 *             except ValueError:
 *                 str_list += ['to_port : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12864
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12864, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12865
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12865, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 12865, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12865, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":12862
 *             except ValueError:
 *                 str_list += ['to_port : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12866
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12867
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12867, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12867, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12867, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12867, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12867, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12867, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12866
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12868
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12868, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12869
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12869, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 12869, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12869, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":12866
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12870
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12870, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12852
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12872
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def from_port(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12851
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12873
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def from_port(self):
 *         return self._pvt_ptr[0].from_port
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12875
 *     @property
 *     def from_port(self):
 *         return self._pvt_ptr[0].from_port             # <<<<<<<<<<<<<<
 *     @from_port.setter
 *     def from_port(self, unsigned char from_port):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_char((__pyx_v_self->_pvt_ptr[0]).from_port); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12873
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def from_port(self):
 *         return self._pvt_ptr[0].from_port
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.from_port.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12876
 *     def from_port(self):
 *         return self._pvt_ptr[0].from_port
 *     @from_port.setter             # <<<<<<<<<<<<<<
 *     def from_port(self, unsigned char from_port):
 *         self._pvt_ptr[0].from_port = from_port
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_from_port); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_from_port) {
  unsigned char __pyx_v_from_port;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_from_port); {
    __pyx_v_from_port = __Pyx_PyLong_As_unsigned_char(__pyx_arg_from_port); if (unlikely((__pyx_v_from_port == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 12877, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.from_port.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self), ((unsigned char)__pyx_v_from_port));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_from_port) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12878
 *     @from_port.setter
 *     def from_port(self, unsigned char from_port):
 *         self._pvt_ptr[0].from_port = from_port             # <<<<<<<<<<<<<<
 *     @property
 *     def to_port(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).from_port = __pyx_v_from_port;

  /* "cuda/bindings/runtime.pyx":12876
 *     def from_port(self):
 *         return self._pvt_ptr[0].from_port
 *     @from_port.setter             # <<<<<<<<<<<<<<
 *     def from_port(self, unsigned char from_port):
 *         self._pvt_ptr[0].from_port = from_port
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12879
 *     def from_port(self, unsigned char from_port):
 *         self._pvt_ptr[0].from_port = from_port
 *     @property             # <<<<<<<<<<<<<<
 *     def to_port(self):
 *         return self._pvt_ptr[0].to_port
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12881
 *     @property
 *     def to_port(self):
 *         return self._pvt_ptr[0].to_port             # <<<<<<<<<<<<<<
 *     @to_port.setter
 *     def to_port(self, unsigned char to_port):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_char((__pyx_v_self->_pvt_ptr[0]).to_port); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12879
 *     def from_port(self, unsigned char from_port):
 *         self._pvt_ptr[0].from_port = from_port
 *     @property             # <<<<<<<<<<<<<<
 *     def to_port(self):
 *         return self._pvt_ptr[0].to_port
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.to_port.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12882
 *     def to_port(self):
 *         return self._pvt_ptr[0].to_port
 *     @to_port.setter             # <<<<<<<<<<<<<<
 *     def to_port(self, unsigned char to_port):
 *         self._pvt_ptr[0].to_port = to_port
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_to_port); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_to_port) {
  unsigned char __pyx_v_to_port;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_to_port); {
    __pyx_v_to_port = __Pyx_PyLong_As_unsigned_char(__pyx_arg_to_port); if (unlikely((__pyx_v_to_port == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 12883, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.to_port.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self), ((unsigned char)__pyx_v_to_port));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_to_port) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12884
 *     @to_port.setter
 *     def to_port(self, unsigned char to_port):
 *         self._pvt_ptr[0].to_port = to_port             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).to_port = __pyx_v_to_port;

  /* "cuda/bindings/runtime.pyx":12882
 *     def to_port(self):
 *         return self._pvt_ptr[0].to_port
 *     @to_port.setter             # <<<<<<<<<<<<<<
 *     def to_port(self, unsigned char to_port):
 *         self._pvt_ptr[0].to_port = to_port
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12885
 *     def to_port(self, unsigned char to_port):
 *         self._pvt_ptr[0].to_port = to_port
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         return self._pvt_ptr[0].type
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12887
 *     @property
 *     def type(self):
 *         return self._pvt_ptr[0].type             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, unsigned char type):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_char((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12885
 *     def to_port(self, unsigned char to_port):
 *         self._pvt_ptr[0].to_port = to_port
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         return self._pvt_ptr[0].type
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12888
 *     def type(self):
 *         return self._pvt_ptr[0].type
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, unsigned char type):
 *         self._pvt_ptr[0].type = type
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_type) {
  unsigned char __pyx_v_type;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_type); {
    __pyx_v_type = __Pyx_PyLong_As_unsigned_char(__pyx_arg_type); if (unlikely((__pyx_v_type == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 12889, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self), ((unsigned char)__pyx_v_type));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, unsigned char __pyx_v_type) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12890
 *     @type.setter
 *     def type(self, unsigned char type):
 *         self._pvt_ptr[0].type = type             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_v_type;

  /* "cuda/bindings/runtime.pyx":12888
 *     def type(self):
 *         return self._pvt_ptr[0].type
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, unsigned char type):
 *         self._pvt_ptr[0].type = type
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12891
 *     def type(self, unsigned char type):
 *         self._pvt_ptr[0].type = type
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 5)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12893
 *     @property
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 5)             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize(((char *)(__pyx_v_self->_pvt_ptr[0]).reserved), 5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12891
 *     def type(self, unsigned char type):
 *         self._pvt_ptr[0].type = type
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 5)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12894
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 5)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 5:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, PyObject *__pyx_v_reserved) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  unsigned char __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12896
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 5:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 5, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12896, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 5);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":12897
 *     def reserved(self, reserved):
 *         if len(reserved) != 5:
 *             raise ValueError("reserved length must be 5, is " + str(len(reserved)))             # <<<<<<<<<<<<<<
 *         for i, b in enumerate(reserved):
 *             self._pvt_ptr[0].reserved[i] = b
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_reserved); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 12897, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved_length_must_be_5_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12897, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 12897, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":12896
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         if len(reserved) != 5:             # <<<<<<<<<<<<<<
 *             raise ValueError("reserved length must be 5, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
*/
  }

  /* "cuda/bindings/runtime.pyx":12898
 *         if len(reserved) != 5:
 *             raise ValueError("reserved length must be 5, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].reserved[i] = b
 * 
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v_reserved)) || PyTuple_CheckExact(__pyx_v_reserved)) {
    __pyx_t_5 = __pyx_v_reserved; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_1 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_reserved); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12898, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12898, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_5))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12898, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 12898, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12898, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_8(__pyx_t_5);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 12898, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12898, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":12899
 *             raise ValueError("reserved length must be 5, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):
 *             self._pvt_ptr[0].reserved[i] = b             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaGraphInstantiateParams_st:
*/
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_char(__pyx_v_b); if (unlikely((__pyx_t_9 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 12899, __pyx_L1_error)
    __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 12899, __pyx_L1_error)
    ((__pyx_v_self->_pvt_ptr[0]).reserved[__pyx_t_10]) = __pyx_t_9;

    /* "cuda/bindings/runtime.pyx":12898
 *         if len(reserved) != 5:
 *             raise ValueError("reserved length must be 5, is " + str(len(reserved)))
 *         for i, b in enumerate(reserved):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].reserved[i] = b
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":12894
 *     def reserved(self):
 *         return PyBytes_FromStringAndSize(<char*>self._pvt_ptr[0].reserved, 5)
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         if len(reserved) != 5:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_20cudaGraphEdgeData_st_10__reduce_cython__, "cudaGraphEdgeData_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_20cudaGraphEdgeData_st_12__setstate_cython__, "cudaGraphEdgeData_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaGraphEdgeData_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEdgeData_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12921
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12921, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12921, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 12921, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12921, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12921, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12921, __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.runtime.cudaGraphInstantiateParams_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":12922
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12923
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphInstantiateParams_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":12922
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12925
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphInstantiateParams_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaGraphInstantiateParams_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12921
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12926
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphInstantiateParams_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._uploadStream = cudaStream_t(_ptr=<void_ptr>&self._pvt_ptr[0].uploadStream)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 12926, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12926, __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, "__init__", 0) < (0)) __PYX_ERR(0, 12926, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 12926, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12926, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 12926, __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.runtime.cudaGraphInstantiateParams_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":12928
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._uploadStream = cudaStream_t(_ptr=<void_ptr>&self._pvt_ptr[0].uploadStream)             # <<<<<<<<<<<<<<
 *         self._errNode_out = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errNode_out)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).uploadStream))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12928, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12928, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12928, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12928, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_uploadStream);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_uploadStream);
  __pyx_v_self->_uploadStream = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12929
 *         pass
 *         self._uploadStream = cudaStream_t(_ptr=<void_ptr>&self._pvt_ptr[0].uploadStream)
 *         self._errNode_out = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errNode_out)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).errNode_out))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 12929, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12929, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_errNode_out);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_errNode_out);
  __pyx_v_self->_errNode_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":12926
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphInstantiateParams_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._uploadStream = cudaStream_t(_ptr=<void_ptr>&self._pvt_ptr[0].uploadStream)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12930
 *         self._uploadStream = cudaStream_t(_ptr=<void_ptr>&self._pvt_ptr[0].uploadStream)
 *         self._errNode_out = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errNode_out)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":12932
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_7getPtr(PyObject *__pyx_v_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_7runtime_29cudaGraphInstantiateParams_st_6getPtr, "cudaGraphInstantiateParams_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":12933
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12932
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12934
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":12935
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12936
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12936, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":12937
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12938
 *             str_list = []
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12938, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12938, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12938, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12938, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12938, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12938, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12937
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":12939
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12939, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12940
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['uploadStream : ' + str(self.uploadStream)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12940, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 12940, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12940, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":12937
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12941
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['uploadStream : ' + str(self.uploadStream)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12942
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['uploadStream : ' + str(self.uploadStream)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['uploadStream : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_uploadStream_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12942, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12942, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_uploadStream, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12942, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12942, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12942, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12942, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12941
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['uploadStream : ' + str(self.uploadStream)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12943
 *             try:
 *                 str_list += ['uploadStream : ' + str(self.uploadStream)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['uploadStream : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12943, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12944
 *                 str_list += ['uploadStream : ' + str(self.uploadStream)]
 *             except ValueError:
 *                 str_list += ['uploadStream : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['errNode_out : ' + str(self.errNode_out)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12944, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_uploadStream_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_uploadStream_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_uploadStream_ValueError) != (0)) __PYX_ERR(0, 12944, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12944, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":12941
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['uploadStream : ' + str(self.uploadStream)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12945
 *             except ValueError:
 *                 str_list += ['uploadStream : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errNode_out : ' + str(self.errNode_out)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12946
 *                 str_list += ['uploadStream : <ValueError>']
 *             try:
 *                 str_list += ['errNode_out : ' + str(self.errNode_out)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['errNode_out : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_errNode_out_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12946, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12946, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_errNode_out, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12946, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12946, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 12946, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12946, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":12945
 *             except ValueError:
 *                 str_list += ['uploadStream : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errNode_out : ' + str(self.errNode_out)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12947
 *             try:
 *                 str_list += ['errNode_out : ' + str(self.errNode_out)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['errNode_out : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 12947, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":12948
 *                 str_list += ['errNode_out : ' + str(self.errNode_out)]
 *             except ValueError:
 *                 str_list += ['errNode_out : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['result_out : ' + str(self.result_out)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12948, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_errNode_out_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_errNode_out_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_errNode_out_ValueError) != (0)) __PYX_ERR(0, 12948, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12948, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":12945
 *             except ValueError:
 *                 str_list += ['uploadStream : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errNode_out : ' + str(self.errNode_out)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12949
 *             except ValueError:
 *                 str_list += ['errNode_out : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['result_out : ' + str(self.result_out)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":12950
 *                 str_list += ['errNode_out : <ValueError>']
 *             try:
 *                 str_list += ['result_out : ' + str(self.result_out)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['result_out : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_result_out_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12950, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12950, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_result_out, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12950, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 12950, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 12950, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 12950, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":12949
 *             except ValueError:
 *                 str_list += ['errNode_out : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['result_out : ' + str(self.result_out)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":12951
 *             try:
 *                 str_list += ['result_out : ' + str(self.result_out)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['result_out : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 12951, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":12952
 *                 str_list += ['result_out : ' + str(self.result_out)]
 *             except ValueError:
 *                 str_list += ['result_out : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 12952, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_result_out_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_result_out_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_result_out_ValueError) != (0)) __PYX_ERR(0, 12952, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 12952, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":12949
 *             except ValueError:
 *                 str_list += ['errNode_out : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['result_out : ' + str(self.result_out)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":12953
 *             except ValueError:
 *                 str_list += ['result_out : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12953, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12935
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":12955
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":12934
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12956
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12958
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, unsigned long long flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12956
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12959
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned long long flags):
 *         self._pvt_ptr[0].flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  unsigned PY_LONG_LONG __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12960, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":12961
 *     @flags.setter
 *     def flags(self, unsigned long long flags):
 *         self._pvt_ptr[0].flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def uploadStream(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":12959
 *     def flags(self):
 *         return self._pvt_ptr[0].flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, unsigned long long flags):
 *         self._pvt_ptr[0].flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12962
 *     def flags(self, unsigned long long flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def uploadStream(self):
 *         return self._uploadStream
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12964
 *     @property
 *     def uploadStream(self):
 *         return self._uploadStream             # <<<<<<<<<<<<<<
 *     @uploadStream.setter
 *     def uploadStream(self, uploadStream):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_uploadStream);
  __pyx_r = ((PyObject *)__pyx_v_self->_uploadStream);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12962
 *     def flags(self, unsigned long long flags):
 *         self._pvt_ptr[0].flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def uploadStream(self):
 *         return self._uploadStream
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12965
 *     def uploadStream(self):
 *         return self._uploadStream
 *     @uploadStream.setter             # <<<<<<<<<<<<<<
 *     def uploadStream(self, uploadStream):
 *         cdef cyruntime.cudaStream_t cyuploadStream
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_uploadStream); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_uploadStream) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self), ((PyObject *)__pyx_v_uploadStream));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_uploadStream) {
  cudaStream_t __pyx_v_cyuploadStream;
  PyObject *__pyx_v_puploadStream = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12968
 *     def uploadStream(self, uploadStream):
 *         cdef cyruntime.cudaStream_t cyuploadStream
 *         if uploadStream is None:             # <<<<<<<<<<<<<<
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>0
 *         elif isinstance(uploadStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_uploadStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12969
 *         cdef cyruntime.cudaStream_t cyuploadStream
 *         if uploadStream is None:
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(uploadStream, (cudaStream_t,driver.CUstream)):
 *             puploadStream = int(uploadStream)
*/
    __pyx_v_cyuploadStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":12968
 *     def uploadStream(self, uploadStream):
 *         cdef cyruntime.cudaStream_t cyuploadStream
 *         if uploadStream is None:             # <<<<<<<<<<<<<<
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>0
 *         elif isinstance(uploadStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12970
 *         if uploadStream is None:
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>0
 *         elif isinstance(uploadStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *             puploadStream = int(uploadStream)
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_uploadStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_uploadStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12971
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>0
 *         elif isinstance(uploadStream, (cudaStream_t,driver.CUstream)):
 *             puploadStream = int(uploadStream)             # <<<<<<<<<<<<<<
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_uploadStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12971, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_puploadStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":12972
 *         elif isinstance(uploadStream, (cudaStream_t,driver.CUstream)):
 *             puploadStream = int(uploadStream)
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream             # <<<<<<<<<<<<<<
 *         else:
 *             puploadStream = int(cudaStream_t(uploadStream))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_puploadStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12972, __pyx_L1_error)
    __pyx_v_cyuploadStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":12970
 *         if uploadStream is None:
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>0
 *         elif isinstance(uploadStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *             puploadStream = int(uploadStream)
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12974
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream
 *         else:
 *             puploadStream = int(cudaStream_t(uploadStream))             # <<<<<<<<<<<<<<
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream
 *         self._uploadStream._pvt_ptr[0] = cyuploadStream
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_uploadStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12974, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_puploadStream = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":12975
 *         else:
 *             puploadStream = int(cudaStream_t(uploadStream))
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream             # <<<<<<<<<<<<<<
 *         self._uploadStream._pvt_ptr[0] = cyuploadStream
 *     @property
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_puploadStream); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12975, __pyx_L1_error)
    __pyx_v_cyuploadStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12976
 *             puploadStream = int(cudaStream_t(uploadStream))
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream
 *         self._uploadStream._pvt_ptr[0] = cyuploadStream             # <<<<<<<<<<<<<<
 *     @property
 *     def errNode_out(self):
*/
  (__pyx_v_self->_uploadStream->__pyx_base._pvt_ptr[0]) = __pyx_v_cyuploadStream;

  /* "cuda/bindings/runtime.pyx":12965
 *     def uploadStream(self):
 *         return self._uploadStream
 *     @uploadStream.setter             # <<<<<<<<<<<<<<
 *     def uploadStream(self, uploadStream):
 *         cdef cyruntime.cudaStream_t cyuploadStream
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.uploadStream.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_puploadStream);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12977
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream
 *         self._uploadStream._pvt_ptr[0] = cyuploadStream
 *     @property             # <<<<<<<<<<<<<<
 *     def errNode_out(self):
 *         return self._errNode_out
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12979
 *     @property
 *     def errNode_out(self):
 *         return self._errNode_out             # <<<<<<<<<<<<<<
 *     @errNode_out.setter
 *     def errNode_out(self, errNode_out):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_errNode_out);
  __pyx_r = ((PyObject *)__pyx_v_self->_errNode_out);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12977
 *             cyuploadStream = <cyruntime.cudaStream_t><void_ptr>puploadStream
 *         self._uploadStream._pvt_ptr[0] = cyuploadStream
 *     @property             # <<<<<<<<<<<<<<
 *     def errNode_out(self):
 *         return self._errNode_out
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12980
 *     def errNode_out(self):
 *         return self._errNode_out
 *     @errNode_out.setter             # <<<<<<<<<<<<<<
 *     def errNode_out(self, errNode_out):
 *         cdef cyruntime.cudaGraphNode_t cyerrNode_out
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errNode_out); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errNode_out) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self), ((PyObject *)__pyx_v_errNode_out));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_errNode_out) {
  cudaGraphNode_t __pyx_v_cyerrNode_out;
  PyObject *__pyx_v_perrNode_out = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12983
 *     def errNode_out(self, errNode_out):
 *         cdef cyruntime.cudaGraphNode_t cyerrNode_out
 *         if errNode_out is None:             # <<<<<<<<<<<<<<
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errNode_out, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_errNode_out == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12984
 *         cdef cyruntime.cudaGraphNode_t cyerrNode_out
 *         if errNode_out is None:
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(errNode_out, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrNode_out = int(errNode_out)
*/
    __pyx_v_cyerrNode_out = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":12983
 *     def errNode_out(self, errNode_out):
 *         cdef cyruntime.cudaGraphNode_t cyerrNode_out
 *         if errNode_out is None:             # <<<<<<<<<<<<<<
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errNode_out, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12985
 *         if errNode_out is None:
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errNode_out, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *             perrNode_out = int(errNode_out)
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errNode_out, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errNode_out, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":12986
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errNode_out, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrNode_out = int(errNode_out)             # <<<<<<<<<<<<<<
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_errNode_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_perrNode_out = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":12987
 *         elif isinstance(errNode_out, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrNode_out = int(errNode_out)
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out             # <<<<<<<<<<<<<<
 *         else:
 *             perrNode_out = int(cudaGraphNode_t(errNode_out))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_perrNode_out); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12987, __pyx_L1_error)
    __pyx_v_cyerrNode_out = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":12985
 *         if errNode_out is None:
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errNode_out, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *             perrNode_out = int(errNode_out)
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":12989
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out
 *         else:
 *             perrNode_out = int(cudaGraphNode_t(errNode_out))             # <<<<<<<<<<<<<<
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out
 *         self._errNode_out._pvt_ptr[0] = cyerrNode_out
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_errNode_out};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 12989, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 12989, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_perrNode_out = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":12990
 *         else:
 *             perrNode_out = int(cudaGraphNode_t(errNode_out))
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out             # <<<<<<<<<<<<<<
 *         self._errNode_out._pvt_ptr[0] = cyerrNode_out
 *     @property
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_perrNode_out); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 12990, __pyx_L1_error)
    __pyx_v_cyerrNode_out = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":12991
 *             perrNode_out = int(cudaGraphNode_t(errNode_out))
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out
 *         self._errNode_out._pvt_ptr[0] = cyerrNode_out             # <<<<<<<<<<<<<<
 *     @property
 *     def result_out(self):
*/
  (__pyx_v_self->_errNode_out->__pyx_base._pvt_ptr[0]) = __pyx_v_cyerrNode_out;

  /* "cuda/bindings/runtime.pyx":12980
 *     def errNode_out(self):
 *         return self._errNode_out
 *     @errNode_out.setter             # <<<<<<<<<<<<<<
 *     def errNode_out(self, errNode_out):
 *         cdef cyruntime.cudaGraphNode_t cyerrNode_out
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.errNode_out.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_perrNode_out);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12992
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out
 *         self._errNode_out._pvt_ptr[0] = cyerrNode_out
 *     @property             # <<<<<<<<<<<<<<
 *     def result_out(self):
 *         if self._pvt_ptr[0].result_out not in _dict_cudaGraphInstantiateResult:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":12994
 *     @property
 *     def result_out(self):
 *         if self._pvt_ptr[0].result_out not in _dict_cudaGraphInstantiateResult:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphInstantiateResult[self._pvt_ptr[0].result_out]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphInstantiateResult((__pyx_v_self->_pvt_ptr[0]).result_out); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphInstantiateResult); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 12994, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":12995
 *     def result_out(self):
 *         if self._pvt_ptr[0].result_out not in _dict_cudaGraphInstantiateResult:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaGraphInstantiateResult[self._pvt_ptr[0].result_out]
 *     @result_out.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":12994
 *     @property
 *     def result_out(self):
 *         if self._pvt_ptr[0].result_out not in _dict_cudaGraphInstantiateResult:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphInstantiateResult[self._pvt_ptr[0].result_out]
*/
  }

  /* "cuda/bindings/runtime.pyx":12996
 *         if self._pvt_ptr[0].result_out not in _dict_cudaGraphInstantiateResult:
 *             return None
 *         return _dict_cudaGraphInstantiateResult[self._pvt_ptr[0].result_out]             # <<<<<<<<<<<<<<
 *     @result_out.setter
 *     def result_out(self, result_out not None : cudaGraphInstantiateResult):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphInstantiateResult); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphInstantiateResult((__pyx_v_self->_pvt_ptr[0]).result_out); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":12992
 *             cyerrNode_out = <cyruntime.cudaGraphNode_t><void_ptr>perrNode_out
 *         self._errNode_out._pvt_ptr[0] = cyerrNode_out
 *     @property             # <<<<<<<<<<<<<<
 *     def result_out(self):
 *         if self._pvt_ptr[0].result_out not in _dict_cudaGraphInstantiateResult:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.result_out.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":12997
 *             return None
 *         return _dict_cudaGraphInstantiateResult[self._pvt_ptr[0].result_out]
 *     @result_out.setter             # <<<<<<<<<<<<<<
 *     def result_out(self, result_out not None : cudaGraphInstantiateResult):
 *         self._pvt_ptr[0].result_out = result_out.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_result_out); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_result_out) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_result_out) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "result_out"); __PYX_ERR(0, 12998, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self), ((PyObject *)__pyx_v_result_out));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, PyObject *__pyx_v_result_out) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaGraphInstantiateResult __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":12999
 *     @result_out.setter
 *     def result_out(self, result_out not None : cudaGraphInstantiateResult):
 *         self._pvt_ptr[0].result_out = result_out.value             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaGraphExecUpdateResultInfo_st:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_out, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaGraphInstantiateResult)__Pyx_PyLong_As_enum__cudaGraphInstantiateResult(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 12999, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).result_out = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":12997
 *             return None
 *         return _dict_cudaGraphInstantiateResult[self._pvt_ptr[0].result_out]
 *     @result_out.setter             # <<<<<<<<<<<<<<
 *     def result_out(self, result_out not None : cudaGraphInstantiateResult):
 *         self._pvt_ptr[0].result_out = result_out.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.result_out.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_29cudaGraphInstantiateParams_st_10__reduce_cython__, "cudaGraphInstantiateParams_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_29cudaGraphInstantiateParams_st_12__setstate_cython__, "cudaGraphInstantiateParams_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaGraphInstantiateParams_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateParams_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13022
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13022, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13022, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13022, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13022, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13022, __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.runtime.cudaGraphExecUpdateResultInfo_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":13023
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13024
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphExecUpdateResultInfo_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":13023
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13026
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphExecUpdateResultInfo_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaGraphExecUpdateResultInfo_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13022
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13027
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphExecUpdateResultInfo_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._errorNode = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errorNode)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13027, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13027, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13027, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13027, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13027, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13027, __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.runtime.cudaGraphExecUpdateResultInfo_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":13029
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._errorNode = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errorNode)             # <<<<<<<<<<<<<<
 *         self._errorFromNode = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errorFromNode)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).errorNode))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13029, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13029, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13029, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13029, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_errorNode);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_errorNode);
  __pyx_v_self->_errorNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13030
 *         pass
 *         self._errorNode = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errorNode)
 *         self._errorFromNode = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errorFromNode)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).errorFromNode))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13030, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13030, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13030, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_errorFromNode);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_errorFromNode);
  __pyx_v_self->_errorFromNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13027
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphExecUpdateResultInfo_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._errorNode = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errorNode)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13031
 *         self._errorNode = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errorNode)
 *         self._errorFromNode = cudaGraphNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].errorFromNode)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13033
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_7getPtr(PyObject *__pyx_v_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_7runtime_32cudaGraphExecUpdateResultInfo_st_6getPtr, "cudaGraphExecUpdateResultInfo_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13034
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13033
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13035
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13036
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13037
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['result : ' + str(self.result)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13038
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['result : ' + str(self.result)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13039
 *             str_list = []
 *             try:
 *                 str_list += ['result : ' + str(self.result)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['result : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_result_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13039, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13039, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_result, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13039, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13039, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13039, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13039, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13038
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['result : ' + str(self.result)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13040
 *             try:
 *                 str_list += ['result : ' + str(self.result)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['result : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13040, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13041
 *                 str_list += ['result : ' + str(self.result)]
 *             except ValueError:
 *                 str_list += ['result : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['errorNode : ' + str(self.errorNode)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13041, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_result_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_result_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_result_ValueError) != (0)) __PYX_ERR(0, 13041, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13041, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13038
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['result : ' + str(self.result)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13042
 *             except ValueError:
 *                 str_list += ['result : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errorNode : ' + str(self.errorNode)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13043
 *                 str_list += ['result : <ValueError>']
 *             try:
 *                 str_list += ['errorNode : ' + str(self.errorNode)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['errorNode : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_errorNode_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13043, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13043, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_errorNode, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13043, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13043, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13043, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13043, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13042
 *             except ValueError:
 *                 str_list += ['result : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errorNode : ' + str(self.errorNode)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13044
 *             try:
 *                 str_list += ['errorNode : ' + str(self.errorNode)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['errorNode : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13044, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13045
 *                 str_list += ['errorNode : ' + str(self.errorNode)]
 *             except ValueError:
 *                 str_list += ['errorNode : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['errorFromNode : ' + str(self.errorFromNode)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13045, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_errorNode_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_errorNode_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_errorNode_ValueError) != (0)) __PYX_ERR(0, 13045, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13045, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13042
 *             except ValueError:
 *                 str_list += ['result : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errorNode : ' + str(self.errorNode)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13046
 *             except ValueError:
 *                 str_list += ['errorNode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errorFromNode : ' + str(self.errorFromNode)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13047
 *                 str_list += ['errorNode : <ValueError>']
 *             try:
 *                 str_list += ['errorFromNode : ' + str(self.errorFromNode)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['errorFromNode : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_errorFromNode_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13047, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13047, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_errorFromNode, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13047, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13047, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13047, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13047, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13046
 *             except ValueError:
 *                 str_list += ['errorNode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errorFromNode : ' + str(self.errorFromNode)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13048
 *             try:
 *                 str_list += ['errorFromNode : ' + str(self.errorFromNode)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['errorFromNode : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13048, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13049
 *                 str_list += ['errorFromNode : ' + str(self.errorFromNode)]
 *             except ValueError:
 *                 str_list += ['errorFromNode : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13049, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_errorFromNode_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_errorFromNode_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_errorFromNode_ValueError) != (0)) __PYX_ERR(0, 13049, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13049, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":13046
 *             except ValueError:
 *                 str_list += ['errorNode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['errorFromNode : ' + str(self.errorFromNode)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13050
 *             except ValueError:
 *                 str_list += ['errorFromNode : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13050, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13036
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13052
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def result(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13035
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13053
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def result(self):
 *         if self._pvt_ptr[0].result not in _dict_cudaGraphExecUpdateResult:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13055
 *     @property
 *     def result(self):
 *         if self._pvt_ptr[0].result not in _dict_cudaGraphExecUpdateResult:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphExecUpdateResult[self._pvt_ptr[0].result]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult((__pyx_v_self->_pvt_ptr[0]).result); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphExecUpdateResult); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 13055, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":13056
 *     def result(self):
 *         if self._pvt_ptr[0].result not in _dict_cudaGraphExecUpdateResult:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaGraphExecUpdateResult[self._pvt_ptr[0].result]
 *     @result.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13055
 *     @property
 *     def result(self):
 *         if self._pvt_ptr[0].result not in _dict_cudaGraphExecUpdateResult:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphExecUpdateResult[self._pvt_ptr[0].result]
*/
  }

  /* "cuda/bindings/runtime.pyx":13057
 *         if self._pvt_ptr[0].result not in _dict_cudaGraphExecUpdateResult:
 *             return None
 *         return _dict_cudaGraphExecUpdateResult[self._pvt_ptr[0].result]             # <<<<<<<<<<<<<<
 *     @result.setter
 *     def result(self, result not None : cudaGraphExecUpdateResult):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphExecUpdateResult); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult((__pyx_v_self->_pvt_ptr[0]).result); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13053
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def result(self):
 *         if self._pvt_ptr[0].result not in _dict_cudaGraphExecUpdateResult:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.result.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13058
 *             return None
 *         return _dict_cudaGraphExecUpdateResult[self._pvt_ptr[0].result]
 *     @result.setter             # <<<<<<<<<<<<<<
 *     def result(self, result not None : cudaGraphExecUpdateResult):
 *         self._pvt_ptr[0].result = result.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_result); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_result) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "result"); __PYX_ERR(0, 13059, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), ((PyObject *)__pyx_v_result));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_result) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaGraphExecUpdateResult __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13060
 *     @result.setter
 *     def result(self, result not None : cudaGraphExecUpdateResult):
 *         self._pvt_ptr[0].result = result.value             # <<<<<<<<<<<<<<
 *     @property
 *     def errorNode(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_result, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13060, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaGraphExecUpdateResult)__Pyx_PyLong_As_enum__cudaGraphExecUpdateResult(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13060, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).result = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":13058
 *             return None
 *         return _dict_cudaGraphExecUpdateResult[self._pvt_ptr[0].result]
 *     @result.setter             # <<<<<<<<<<<<<<
 *     def result(self, result not None : cudaGraphExecUpdateResult):
 *         self._pvt_ptr[0].result = result.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.result.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13061
 *     def result(self, result not None : cudaGraphExecUpdateResult):
 *         self._pvt_ptr[0].result = result.value
 *     @property             # <<<<<<<<<<<<<<
 *     def errorNode(self):
 *         return self._errorNode
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13063
 *     @property
 *     def errorNode(self):
 *         return self._errorNode             # <<<<<<<<<<<<<<
 *     @errorNode.setter
 *     def errorNode(self, errorNode):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_errorNode);
  __pyx_r = ((PyObject *)__pyx_v_self->_errorNode);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13061
 *     def result(self, result not None : cudaGraphExecUpdateResult):
 *         self._pvt_ptr[0].result = result.value
 *     @property             # <<<<<<<<<<<<<<
 *     def errorNode(self):
 *         return self._errorNode
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13064
 *     def errorNode(self):
 *         return self._errorNode
 *     @errorNode.setter             # <<<<<<<<<<<<<<
 *     def errorNode(self, errorNode):
 *         cdef cyruntime.cudaGraphNode_t cyerrorNode
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errorNode); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errorNode) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), ((PyObject *)__pyx_v_errorNode));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_errorNode) {
  cudaGraphNode_t __pyx_v_cyerrorNode;
  PyObject *__pyx_v_perrorNode = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13067
 *     def errorNode(self, errorNode):
 *         cdef cyruntime.cudaGraphNode_t cyerrorNode
 *         if errorNode is None:             # <<<<<<<<<<<<<<
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_errorNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13068
 *         cdef cyruntime.cudaGraphNode_t cyerrorNode
 *         if errorNode is None:
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(errorNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrorNode = int(errorNode)
*/
    __pyx_v_cyerrorNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":13067
 *     def errorNode(self, errorNode):
 *         cdef cyruntime.cudaGraphNode_t cyerrorNode
 *         if errorNode is None:             # <<<<<<<<<<<<<<
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13069
 *         if errorNode is None:
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *             perrorNode = int(errorNode)
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errorNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errorNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13070
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrorNode = int(errorNode)             # <<<<<<<<<<<<<<
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_errorNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13070, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_perrorNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":13071
 *         elif isinstance(errorNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrorNode = int(errorNode)
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode             # <<<<<<<<<<<<<<
 *         else:
 *             perrorNode = int(cudaGraphNode_t(errorNode))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_perrorNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13071, __pyx_L1_error)
    __pyx_v_cyerrorNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":13069
 *         if errorNode is None:
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *             perrorNode = int(errorNode)
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13073
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode
 *         else:
 *             perrorNode = int(cudaGraphNode_t(errorNode))             # <<<<<<<<<<<<<<
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode
 *         self._errorNode._pvt_ptr[0] = cyerrorNode
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_errorNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13073, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_perrorNode = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":13074
 *         else:
 *             perrorNode = int(cudaGraphNode_t(errorNode))
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode             # <<<<<<<<<<<<<<
 *         self._errorNode._pvt_ptr[0] = cyerrorNode
 *     @property
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_perrorNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13074, __pyx_L1_error)
    __pyx_v_cyerrorNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13075
 *             perrorNode = int(cudaGraphNode_t(errorNode))
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode
 *         self._errorNode._pvt_ptr[0] = cyerrorNode             # <<<<<<<<<<<<<<
 *     @property
 *     def errorFromNode(self):
*/
  (__pyx_v_self->_errorNode->__pyx_base._pvt_ptr[0]) = __pyx_v_cyerrorNode;

  /* "cuda/bindings/runtime.pyx":13064
 *     def errorNode(self):
 *         return self._errorNode
 *     @errorNode.setter             # <<<<<<<<<<<<<<
 *     def errorNode(self, errorNode):
 *         cdef cyruntime.cudaGraphNode_t cyerrorNode
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.errorNode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_perrorNode);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13076
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode
 *         self._errorNode._pvt_ptr[0] = cyerrorNode
 *     @property             # <<<<<<<<<<<<<<
 *     def errorFromNode(self):
 *         return self._errorFromNode
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13078
 *     @property
 *     def errorFromNode(self):
 *         return self._errorFromNode             # <<<<<<<<<<<<<<
 *     @errorFromNode.setter
 *     def errorFromNode(self, errorFromNode):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_errorFromNode);
  __pyx_r = ((PyObject *)__pyx_v_self->_errorFromNode);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13076
 *             cyerrorNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorNode
 *         self._errorNode._pvt_ptr[0] = cyerrorNode
 *     @property             # <<<<<<<<<<<<<<
 *     def errorFromNode(self):
 *         return self._errorFromNode
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13079
 *     def errorFromNode(self):
 *         return self._errorFromNode
 *     @errorFromNode.setter             # <<<<<<<<<<<<<<
 *     def errorFromNode(self, errorFromNode):
 *         cdef cyruntime.cudaGraphNode_t cyerrorFromNode
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errorFromNode); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_errorFromNode) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), ((PyObject *)__pyx_v_errorFromNode));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, PyObject *__pyx_v_errorFromNode) {
  cudaGraphNode_t __pyx_v_cyerrorFromNode;
  PyObject *__pyx_v_perrorFromNode = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13082
 *     def errorFromNode(self, errorFromNode):
 *         cdef cyruntime.cudaGraphNode_t cyerrorFromNode
 *         if errorFromNode is None:             # <<<<<<<<<<<<<<
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorFromNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_errorFromNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13083
 *         cdef cyruntime.cudaGraphNode_t cyerrorFromNode
 *         if errorFromNode is None:
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(errorFromNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrorFromNode = int(errorFromNode)
*/
    __pyx_v_cyerrorFromNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":13082
 *     def errorFromNode(self, errorFromNode):
 *         cdef cyruntime.cudaGraphNode_t cyerrorFromNode
 *         if errorFromNode is None:             # <<<<<<<<<<<<<<
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorFromNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13084
 *         if errorFromNode is None:
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorFromNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *             perrorFromNode = int(errorFromNode)
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorFromNode
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errorFromNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_errorFromNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13085
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorFromNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrorFromNode = int(errorFromNode)             # <<<<<<<<<<<<<<
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorFromNode
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_errorFromNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13085, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_perrorFromNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":13086
 *         elif isinstance(errorFromNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *             perrorFromNode = int(errorFromNode)
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorFromNode             # <<<<<<<<<<<<<<
 *         else:
 *             perrorFromNode = int(cudaGraphNode_t(errorFromNode))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_perrorFromNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13086, __pyx_L1_error)
    __pyx_v_cyerrorFromNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":13084
 *         if errorFromNode is None:
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>0
 *         elif isinstance(errorFromNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *             perrorFromNode = int(errorFromNode)
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorFromNode
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13088
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorFromNode
 *         else:
 *             perrorFromNode = int(cudaGraphNode_t(errorFromNode))             # <<<<<<<<<<<<<<
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorFromNode
 *         self._errorFromNode._pvt_ptr[0] = cyerrorFromNode
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_errorFromNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13088, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13088, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_perrorFromNode = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":13089
 *         else:
 *             perrorFromNode = int(cudaGraphNode_t(errorFromNode))
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorFromNode             # <<<<<<<<<<<<<<
 *         self._errorFromNode._pvt_ptr[0] = cyerrorFromNode
 * 
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_perrorFromNode); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13089, __pyx_L1_error)
    __pyx_v_cyerrorFromNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13090
 *             perrorFromNode = int(cudaGraphNode_t(errorFromNode))
 *             cyerrorFromNode = <cyruntime.cudaGraphNode_t><void_ptr>perrorFromNode
 *         self._errorFromNode._pvt_ptr[0] = cyerrorFromNode             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct16:
*/
  (__pyx_v_self->_errorFromNode->__pyx_base._pvt_ptr[0]) = __pyx_v_cyerrorFromNode;

  /* "cuda/bindings/runtime.pyx":13079
 *     def errorFromNode(self):
 *         return self._errorFromNode
 *     @errorFromNode.setter             # <<<<<<<<<<<<<<
 *     def errorFromNode(self, errorFromNode):
 *         cdef cyruntime.cudaGraphNode_t cyerrorFromNode
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.errorFromNode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_perrorFromNode);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__, "cudaGraphExecUpdateResultInfo_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__, "cudaGraphExecUpdateResultInfo_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaGraphExecUpdateResultInfo_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13108
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13108, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13108, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13108, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 13108, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13108, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13108, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13108, __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.runtime.anon_struct16.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13109
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaGraphKernelNodeUpdate *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":13108
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13111
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13111, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13111, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13111, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 13111, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13111, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13111, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13111, __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.runtime.anon_struct16.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13113
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13115
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].updateData.param
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct16_6getPtr, "anon_struct16.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct16_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct16_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13116
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].updateData.param             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).updateData.param))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13115
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].updateData.param
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13117
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].updateData.param
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13118
 *         return <void_ptr>&self._pvt_ptr[0].updateData.param
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13119
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pValue : ' + hex(self.pValue)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13120
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pValue : ' + hex(self.pValue)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13121
 *             str_list = []
 *             try:
 *                 str_list += ['pValue : ' + hex(self.pValue)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pValue : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pValue_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13121, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13121, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_pValue, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13121, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13121, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13121, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13121, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13120
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pValue : ' + hex(self.pValue)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13122
 *             try:
 *                 str_list += ['pValue : ' + hex(self.pValue)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pValue : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13122, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13123
 *                 str_list += ['pValue : ' + hex(self.pValue)]
 *             except ValueError:
 *                 str_list += ['pValue : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13123, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pValue_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pValue_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_pValue_ValueError) != (0)) __PYX_ERR(0, 13123, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13123, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13120
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pValue : ' + hex(self.pValue)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13124
 *             except ValueError:
 *                 str_list += ['pValue : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13125
 *                 str_list += ['pValue : <ValueError>']
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_offset_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13125, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13125, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_offset_3, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13125, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13125, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13125, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13125, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13124
 *             except ValueError:
 *                 str_list += ['pValue : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13126
 *             try:
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13126, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13127
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13127, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_offset_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_offset_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_offset_ValueError) != (0)) __PYX_ERR(0, 13127, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13127, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13124
 *             except ValueError:
 *                 str_list += ['pValue : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['offset : ' + str(self.offset)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13128
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13129
 *                 str_list += ['offset : <ValueError>']
 *             try:
 *                 str_list += ['size : ' + str(self.size)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_size_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13129, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13129, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_size, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13129, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13129, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13129, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13129, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13128
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13130
 *             try:
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13130, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13131
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13131, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_size_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_size_ValueError) != (0)) __PYX_ERR(0, 13131, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13131, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":13128
 *             except ValueError:
 *                 str_list += ['offset : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['size : ' + str(self.size)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13132
 *             except ValueError:
 *                 str_list += ['size : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13132, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13118
 *         return <void_ptr>&self._pvt_ptr[0].updateData.param
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13134
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def pValue(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13117
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].updateData.param
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13135
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def pValue(self):
 *         return <void_ptr>self._pvt_ptr[0].updateData.param.pValue
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6pValue_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6pValue_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6pValue___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6pValue___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13137
 *     @property
 *     def pValue(self):
 *         return <void_ptr>self._pvt_ptr[0].updateData.param.pValue             # <<<<<<<<<<<<<<
 *     @pValue.setter
 *     def pValue(self, pValue):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_self->_pvt_ptr[0]).updateData.param.pValue)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13135
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def pValue(self):
 *         return <void_ptr>self._pvt_ptr[0].updateData.param.pValue
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.pValue.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13138
 *     def pValue(self):
 *         return <void_ptr>self._pvt_ptr[0].updateData.param.pValue
 *     @pValue.setter             # <<<<<<<<<<<<<<
 *     def pValue(self, pValue):
 *         _cpValue = _HelperInputVoidPtr(pValue)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6pValue_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pValue); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6pValue_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pValue) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6pValue_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self), ((PyObject *)__pyx_v_pValue));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6pValue_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, PyObject *__pyx_v_pValue) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v__cpValue = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13140
 *     @pValue.setter
 *     def pValue(self, pValue):
 *         _cpValue = _HelperInputVoidPtr(pValue)             # <<<<<<<<<<<<<<
 *         self._pvt_ptr[0].updateData.param.pValue = <void*><void_ptr>_cpValue.cptr
 *     @property
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_pValue};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13140, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v__cpValue = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13141
 *     def pValue(self, pValue):
 *         _cpValue = _HelperInputVoidPtr(pValue)
 *         self._pvt_ptr[0].updateData.param.pValue = <void*><void_ptr>_cpValue.cptr             # <<<<<<<<<<<<<<
 *     @property
 *     def offset(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v__cpValue), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).updateData.param.pValue = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":13138
 *     def pValue(self):
 *         return <void_ptr>self._pvt_ptr[0].updateData.param.pValue
 *     @pValue.setter             # <<<<<<<<<<<<<<
 *     def pValue(self, pValue):
 *         _cpValue = _HelperInputVoidPtr(pValue)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.pValue.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v__cpValue);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13142
 *         _cpValue = _HelperInputVoidPtr(pValue)
 *         self._pvt_ptr[0].updateData.param.pValue = <void*><void_ptr>_cpValue.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def offset(self):
 *         return self._pvt_ptr[0].updateData.param.offset
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6offset_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6offset_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6offset___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6offset___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13144
 *     @property
 *     def offset(self):
 *         return self._pvt_ptr[0].updateData.param.offset             # <<<<<<<<<<<<<<
 *     @offset.setter
 *     def offset(self, size_t offset):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).updateData.param.offset); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13142
 *         _cpValue = _HelperInputVoidPtr(pValue)
 *         self._pvt_ptr[0].updateData.param.pValue = <void*><void_ptr>_cpValue.cptr
 *     @property             # <<<<<<<<<<<<<<
 *     def offset(self):
 *         return self._pvt_ptr[0].updateData.param.offset
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.offset.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13145
 *     def offset(self):
 *         return self._pvt_ptr[0].updateData.param.offset
 *     @offset.setter             # <<<<<<<<<<<<<<
 *     def offset(self, size_t offset):
 *         self._pvt_ptr[0].updateData.param.offset = offset
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6offset_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_offset) {
  size_t __pyx_v_offset;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_offset); {
    __pyx_v_offset = __Pyx_PyLong_As_size_t(__pyx_arg_offset); if (unlikely((__pyx_v_offset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 13146, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.offset.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6offset_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self), ((size_t)__pyx_v_offset));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_6offset_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, size_t __pyx_v_offset) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13147
 *     @offset.setter
 *     def offset(self, size_t offset):
 *         self._pvt_ptr[0].updateData.param.offset = offset             # <<<<<<<<<<<<<<
 *     @property
 *     def size(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).updateData.param.offset = __pyx_v_offset;

  /* "cuda/bindings/runtime.pyx":13145
 *     def offset(self):
 *         return self._pvt_ptr[0].updateData.param.offset
 *     @offset.setter             # <<<<<<<<<<<<<<
 *     def offset(self, size_t offset):
 *         self._pvt_ptr[0].updateData.param.offset = offset
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13148
 *     def offset(self, size_t offset):
 *         self._pvt_ptr[0].updateData.param.offset = offset
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].updateData.param.size
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_4size_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_4size_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4size___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4size___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13150
 *     @property
 *     def size(self):
 *         return self._pvt_ptr[0].updateData.param.size             # <<<<<<<<<<<<<<
 *     @size.setter
 *     def size(self, size_t size):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((__pyx_v_self->_pvt_ptr[0]).updateData.param.size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13148
 *     def offset(self, size_t offset):
 *         self._pvt_ptr[0].updateData.param.offset = offset
 *     @property             # <<<<<<<<<<<<<<
 *     def size(self):
 *         return self._pvt_ptr[0].updateData.param.size
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13151
 *     def size(self):
 *         return self._pvt_ptr[0].updateData.param.size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, size_t size):
 *         self._pvt_ptr[0].updateData.param.size = size
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_size) {
  size_t __pyx_v_size;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_size); {
    __pyx_v_size = __Pyx_PyLong_As_size_t(__pyx_arg_size); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 13152, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4size_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self), ((size_t)__pyx_v_size));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_4size_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, size_t __pyx_v_size) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13153
 *     @size.setter
 *     def size(self, size_t size):
 *         self._pvt_ptr[0].updateData.param.size = size             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union8:
*/
  (__pyx_v_self->_pvt_ptr[0]).updateData.param.size = __pyx_v_size;

  /* "cuda/bindings/runtime.pyx":13151
 *     def size(self):
 *         return self._pvt_ptr[0].updateData.param.size
 *     @size.setter             # <<<<<<<<<<<<<<
 *     def size(self, size_t size):
 *         self._pvt_ptr[0].updateData.param.size = size
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct16_10__reduce_cython__, "anon_struct16.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct16_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct16_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct16_12__setstate_cython__, "anon_struct16.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct16_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct16_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct16.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct16_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct16.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13171
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13171, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13171, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13171, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 13171, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13171, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13171, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13171, __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.runtime.anon_union8.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13172
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaGraphKernelNodeUpdate *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":13171
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13174
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].updateData.gridDim)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13174, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13174, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13174, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 13174, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13174, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13174, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13174, __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.runtime.anon_union8.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":13176
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].updateData.gridDim)             # <<<<<<<<<<<<<<
 *         self._param = anon_struct16(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).updateData.gridDim))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13176, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13176, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13176, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_gridDim);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_gridDim);
  __pyx_v_self->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13177
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].updateData.gridDim)
 *         self._param = anon_struct16(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13177, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13177, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_param);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_param);
  __pyx_v_self->_param = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13174
 *         self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].updateData.gridDim)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13178
 *         self._gridDim = dim3(_ptr=<void_ptr>&self._pvt_ptr[0].updateData.gridDim)
 *         self._param = anon_struct16(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13180
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].updateData
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7getPtr(PyObject *__pyx_v_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_7runtime_11anon_union8_6getPtr, "anon_union8.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union8_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union8_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13181
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].updateData             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).updateData))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13180
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].updateData
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13182
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].updateData
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr182__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr183__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13183
 *         return <void_ptr>&self._pvt_ptr[0].updateData
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13184
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13185
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13186
 *             str_list = []
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13186, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_gridDim_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13186, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13186, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13186, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13186, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13186, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr182__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr182__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13186, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 13186, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr182__pyx_v_line); __pyx_10genexpr182__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr182__pyx_v_line); __pyx_10genexpr182__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13186, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_gridDim, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13186, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13186, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13186, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13186, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13185
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":13187
 *             try:
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 13187, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13188
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['param :\n' + '\n'.join(['    ' + line for line in str(self.param).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13188, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_gridDim_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_gridDim_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_gridDim_ValueError) != (0)) __PYX_ERR(0, 13188, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 13188, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13185
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['gridDim :\n' + '\n'.join(['    ' + line for line in str(self.gridDim).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13189
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['param :\n' + '\n'.join(['    ' + line for line in str(self.param).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13190
 *                 str_list += ['gridDim : <ValueError>']
 *             try:
 *                 str_list += ['param :\n' + '\n'.join(['    ' + line for line in str(self.param).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['param : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13190, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_param_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13190, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13190, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13190, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_7; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13190, __pyx_L27_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13190, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_10genexpr183__pyx_v_line, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr183__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13190, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 13190, __pyx_L27_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr183__pyx_v_line); __pyx_10genexpr183__pyx_v_line = 0;
          goto __pyx_L31_exit_scope;
          __pyx_L27_error:;
          __Pyx_XDECREF(__pyx_10genexpr183__pyx_v_line); __pyx_10genexpr183__pyx_v_line = 0;
          goto __pyx_L19_error;
          __pyx_L31_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13190, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_param, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13190, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13190, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 13190, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13190, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":13189
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['param :\n' + '\n'.join(['    ' + line for line in str(self.param).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":13191
 *             try:
 *                 str_list += ['param :\n' + '\n'.join(['    ' + line for line in str(self.param).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['param : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 13191, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":13192
 *                 str_list += ['param :\n' + '\n'.join(['    ' + line for line in str(self.param).splitlines()])]
 *             except ValueError:
 *                 str_list += ['param : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['isEnabled : ' + str(self.isEnabled)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 13192, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_param_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_param_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_param_ValueError) != (0)) __PYX_ERR(0, 13192, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13192, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":13189
 *             except ValueError:
 *                 str_list += ['gridDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['param :\n' + '\n'.join(['    ' + line for line in str(self.param).splitlines()])]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13193
 *             except ValueError:
 *                 str_list += ['param : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['isEnabled : ' + str(self.isEnabled)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13194
 *                 str_list += ['param : <ValueError>']
 *             try:
 *                 str_list += ['isEnabled : ' + str(self.isEnabled)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['isEnabled : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_isEnabled_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13194, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13194, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_isEnabled, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13194, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13194, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 13194, __pyx_L34_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 13194, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":13193
 *             except ValueError:
 *                 str_list += ['param : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['isEnabled : ' + str(self.isEnabled)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L39_try_end;
      __pyx_L34_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":13195
 *             try:
 *                 str_list += ['isEnabled : ' + str(self.isEnabled)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['isEnabled : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 13195, __pyx_L36_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13196
 *                 str_list += ['isEnabled : ' + str(self.isEnabled)]
 *             except ValueError:
 *                 str_list += ['isEnabled : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13196, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_isEnabled_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_isEnabled_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_isEnabled_ValueError) != (0)) __PYX_ERR(0, 13196, __pyx_L36_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 13196, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L35_exception_handled;
      }
      goto __pyx_L36_except_error;

      /* "cuda/bindings/runtime.pyx":13193
 *             except ValueError:
 *                 str_list += ['param : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['isEnabled : ' + str(self.isEnabled)]
 *             except ValueError:
*/
      __pyx_L36_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L35_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L39_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13197
 *             except ValueError:
 *                 str_list += ['isEnabled : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13197, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13183
 *         return <void_ptr>&self._pvt_ptr[0].updateData
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13199
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def gridDim(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13182
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].updateData
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr182__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr183__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13200
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def gridDim(self):
 *         return self._gridDim
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7gridDim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7gridDim_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_7gridDim___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_7gridDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13202
 *     @property
 *     def gridDim(self):
 *         return self._gridDim             # <<<<<<<<<<<<<<
 *     @gridDim.setter
 *     def gridDim(self, gridDim not None : dim3):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_gridDim);
  __pyx_r = ((PyObject *)__pyx_v_self->_gridDim);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13200
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def gridDim(self):
 *         return self._gridDim
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13203
 *     def gridDim(self):
 *         return self._gridDim
 *     @gridDim.setter             # <<<<<<<<<<<<<<
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].updateData.gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].updateData.gridDim))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7gridDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_gridDim) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_gridDim), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, 0, "gridDim", 0))) __PYX_ERR(0, 13204, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_7gridDim_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)__pyx_v_gridDim));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_7gridDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *__pyx_v_gridDim) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13205
 *     @gridDim.setter
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].updateData.gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].updateData.gridDim))             # <<<<<<<<<<<<<<
 *     @property
 *     def param(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_gridDim);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13205, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).updateData.gridDim), ((struct dim3 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).updateData.gridDim))));

  /* "cuda/bindings/runtime.pyx":13203
 *     def gridDim(self):
 *         return self._gridDim
 *     @gridDim.setter             # <<<<<<<<<<<<<<
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].updateData.gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].updateData.gridDim))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.gridDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13206
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].updateData.gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].updateData.gridDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def param(self):
 *         return self._param
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5param_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5param_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_5param___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_5param___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13208
 *     @property
 *     def param(self):
 *         return self._param             # <<<<<<<<<<<<<<
 *     @param.setter
 *     def param(self, param not None : anon_struct16):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_param);
  __pyx_r = ((PyObject *)__pyx_v_self->_param);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13206
 *     def gridDim(self, gridDim not None : dim3):
 *         string.memcpy(&self._pvt_ptr[0].updateData.gridDim, <cyruntime.dim3*><void_ptr>gridDim.getPtr(), sizeof(self._pvt_ptr[0].updateData.gridDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def param(self):
 *         return self._param
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13209
 *     def param(self):
 *         return self._param
 *     @param.setter             # <<<<<<<<<<<<<<
 *     def param(self, param not None : anon_struct16):
 *         string.memcpy(&self._pvt_ptr[0].updateData.param, <cyruntime.anon_struct16*><void_ptr>param.getPtr(), sizeof(self._pvt_ptr[0].updateData.param))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5param_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_param); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5param_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_param) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_param), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16, 0, "param", 0))) __PYX_ERR(0, 13210, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_5param_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)__pyx_v_param));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_5param_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *__pyx_v_param) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13211
 *     @param.setter
 *     def param(self, param not None : anon_struct16):
 *         string.memcpy(&self._pvt_ptr[0].updateData.param, <cyruntime.anon_struct16*><void_ptr>param.getPtr(), sizeof(self._pvt_ptr[0].updateData.param))             # <<<<<<<<<<<<<<
 *     @property
 *     def isEnabled(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_param);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).updateData.param), ((struct anon_struct16 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).updateData.param))));

  /* "cuda/bindings/runtime.pyx":13209
 *     def param(self):
 *         return self._param
 *     @param.setter             # <<<<<<<<<<<<<<
 *     def param(self, param not None : anon_struct16):
 *         string.memcpy(&self._pvt_ptr[0].updateData.param, <cyruntime.anon_struct16*><void_ptr>param.getPtr(), sizeof(self._pvt_ptr[0].updateData.param))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.param.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13212
 *     def param(self, param not None : anon_struct16):
 *         string.memcpy(&self._pvt_ptr[0].updateData.param, <cyruntime.anon_struct16*><void_ptr>param.getPtr(), sizeof(self._pvt_ptr[0].updateData.param))
 *     @property             # <<<<<<<<<<<<<<
 *     def isEnabled(self):
 *         return self._pvt_ptr[0].updateData.isEnabled
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_9isEnabled___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_9isEnabled___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13214
 *     @property
 *     def isEnabled(self):
 *         return self._pvt_ptr[0].updateData.isEnabled             # <<<<<<<<<<<<<<
 *     @isEnabled.setter
 *     def isEnabled(self, unsigned int isEnabled):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).updateData.isEnabled); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13212
 *     def param(self, param not None : anon_struct16):
 *         string.memcpy(&self._pvt_ptr[0].updateData.param, <cyruntime.anon_struct16*><void_ptr>param.getPtr(), sizeof(self._pvt_ptr[0].updateData.param))
 *     @property             # <<<<<<<<<<<<<<
 *     def isEnabled(self):
 *         return self._pvt_ptr[0].updateData.isEnabled
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.isEnabled.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13215
 *     def isEnabled(self):
 *         return self._pvt_ptr[0].updateData.isEnabled
 *     @isEnabled.setter             # <<<<<<<<<<<<<<
 *     def isEnabled(self, unsigned int isEnabled):
 *         self._pvt_ptr[0].updateData.isEnabled = isEnabled
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_isEnabled); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_isEnabled) {
  unsigned int __pyx_v_isEnabled;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_isEnabled); {
    __pyx_v_isEnabled = __Pyx_PyLong_As_unsigned_int(__pyx_arg_isEnabled); if (unlikely((__pyx_v_isEnabled == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13216, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.isEnabled.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self), ((unsigned int)__pyx_v_isEnabled));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, unsigned int __pyx_v_isEnabled) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13217
 *     @isEnabled.setter
 *     def isEnabled(self, unsigned int isEnabled):
 *         self._pvt_ptr[0].updateData.isEnabled = isEnabled             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaGraphKernelNodeUpdate:
*/
  (__pyx_v_self->_pvt_ptr[0]).updateData.isEnabled = __pyx_v_isEnabled;

  /* "cuda/bindings/runtime.pyx":13215
 *     def isEnabled(self):
 *         return self._pvt_ptr[0].updateData.isEnabled
 *     @isEnabled.setter             # <<<<<<<<<<<<<<
 *     def isEnabled(self, unsigned int isEnabled):
 *         self._pvt_ptr[0].updateData.isEnabled = isEnabled
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_11anon_union8_10__reduce_cython__, "anon_union8.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union8_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union8_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_11anon_union8_12__setstate_cython__, "anon_union8.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union8_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union8_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union8.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union8_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union8_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union8.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13239
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>calloc(1, sizeof(cyruntime.cudaGraphKernelNodeUpdate))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13239, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13239, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13239, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13239, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13239, __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.runtime.cudaGraphKernelNodeUpdate.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct cudaGraphKernelNodeUpdate *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":13240
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>calloc(1, sizeof(cyruntime.cudaGraphKernelNodeUpdate))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13241
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>calloc(1, sizeof(cyruntime.cudaGraphKernelNodeUpdate))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct cudaGraphKernelNodeUpdate *)calloc(1, (sizeof(struct cudaGraphKernelNodeUpdate))));

    /* "cuda/bindings/runtime.pyx":13242
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>calloc(1, sizeof(cyruntime.cudaGraphKernelNodeUpdate))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":13240
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>calloc(1, sizeof(cyruntime.cudaGraphKernelNodeUpdate))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13244
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaGraphKernelNodeUpdate *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13239
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>calloc(1, sizeof(cyruntime.cudaGraphKernelNodeUpdate))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13245
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._node = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].node)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13245, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13245, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13245, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13245, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13245, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13245, __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.runtime.cudaGraphKernelNodeUpdate.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":13247
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._node = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].node)             # <<<<<<<<<<<<<<
 *         self._updateData = anon_union8(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).node))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13247, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13247, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_node);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_node);
  __pyx_v_self->_node = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13248
 *         pass
 *         self._node = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].node)
 *         self._updateData = anon_union8(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13248, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13248, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13248, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_updateData);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_updateData);
  __pyx_v_self->_updateData = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13245
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphKernelNodeUpdate *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._node = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].node)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13249
 *         self._node = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].node)
 *         self._updateData = anon_union8(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":13250
 *         self._updateData = anon_union8(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13251
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":13250
 *         self._updateData = anon_union8(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":13249
 *         self._node = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].node)
 *         self._updateData = anon_union8(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13252
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_7getPtr(PyObject *__pyx_v_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_7runtime_25cudaGraphKernelNodeUpdate_6getPtr, "cudaGraphKernelNodeUpdate.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13253
 *             free(self._val_ptr)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13252
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13254
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr184__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13255
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13256
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['node : ' + str(self.node)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13257
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['node : ' + str(self.node)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13258
 *             str_list = []
 *             try:
 *                 str_list += ['node : ' + str(self.node)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['node : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_node_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13258, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13258, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_node, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13258, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13258, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13258, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13258, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13257
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['node : ' + str(self.node)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13259
 *             try:
 *                 str_list += ['node : ' + str(self.node)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['node : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13259, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13260
 *                 str_list += ['node : ' + str(self.node)]
 *             except ValueError:
 *                 str_list += ['node : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['field : ' + str(self.field)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13260, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_node_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_node_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_node_ValueError) != (0)) __PYX_ERR(0, 13260, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13260, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13257
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['node : ' + str(self.node)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13261
 *             except ValueError:
 *                 str_list += ['node : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['field : ' + str(self.field)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13262
 *                 str_list += ['node : <ValueError>']
 *             try:
 *                 str_list += ['field : ' + str(self.field)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['field : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_field_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13262, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13262, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_field, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13262, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13262, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13262, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13262, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13261
 *             except ValueError:
 *                 str_list += ['node : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['field : ' + str(self.field)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13263
 *             try:
 *                 str_list += ['field : ' + str(self.field)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['field : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13263, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13264
 *                 str_list += ['field : ' + str(self.field)]
 *             except ValueError:
 *                 str_list += ['field : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['updateData :\n' + '\n'.join(['    ' + line for line in str(self.updateData).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13264, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_field_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_field_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_field_ValueError) != (0)) __PYX_ERR(0, 13264, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13264, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13261
 *             except ValueError:
 *                 str_list += ['node : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['field : ' + str(self.field)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13265
 *             except ValueError:
 *                 str_list += ['field : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['updateData :\n' + '\n'.join(['    ' + line for line in str(self.updateData).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13266
 *                 str_list += ['field : <ValueError>']
 *             try:
 *                 str_list += ['updateData :\n' + '\n'.join(['    ' + line for line in str(self.updateData).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['updateData : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13266, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_updateData_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13266, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13266, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13266, __pyx_L28_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_6; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13266, __pyx_L28_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13266, __pyx_L28_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr184__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr184__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13266, __pyx_L28_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 13266, __pyx_L28_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr184__pyx_v_line); __pyx_10genexpr184__pyx_v_line = 0;
          goto __pyx_L32_exit_scope;
          __pyx_L28_error:;
          __Pyx_XDECREF(__pyx_10genexpr184__pyx_v_line); __pyx_10genexpr184__pyx_v_line = 0;
          goto __pyx_L20_error;
          __pyx_L32_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13266, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_updateData, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13266, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13266, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13266, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13266, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13265
 *             except ValueError:
 *                 str_list += ['field : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['updateData :\n' + '\n'.join(['    ' + line for line in str(self.updateData).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13267
 *             try:
 *                 str_list += ['updateData :\n' + '\n'.join(['    ' + line for line in str(self.updateData).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['updateData : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 13267, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13268
 *                 str_list += ['updateData :\n' + '\n'.join(['    ' + line for line in str(self.updateData).splitlines()])]
 *             except ValueError:
 *                 str_list += ['updateData : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13268, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_updateData_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_updateData_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_updateData_ValueError) != (0)) __PYX_ERR(0, 13268, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13268, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":13265
 *             except ValueError:
 *                 str_list += ['field : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['updateData :\n' + '\n'.join(['    ' + line for line in str(self.updateData).splitlines()])]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13269
 *             except ValueError:
 *                 str_list += ['updateData : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13269, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13255
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13271
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def node(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13254
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr184__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13272
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def node(self):
 *         return self._node
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13274
 *     @property
 *     def node(self):
 *         return self._node             # <<<<<<<<<<<<<<
 *     @node.setter
 *     def node(self, node):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_node);
  __pyx_r = ((PyObject *)__pyx_v_self->_node);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13272
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def node(self):
 *         return self._node
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13275
 *     def node(self):
 *         return self._node
 *     @node.setter             # <<<<<<<<<<<<<<
 *     def node(self, node):
 *         cdef cyruntime.cudaGraphDeviceNode_t cynode
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_node); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_node) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self), ((PyObject *)__pyx_v_node));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, PyObject *__pyx_v_node) {
  cudaGraphDeviceNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13278
 *     def node(self, node):
 *         cdef cyruntime.cudaGraphDeviceNode_t cynode
 *         if node is None:             # <<<<<<<<<<<<<<
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(node, (cudaGraphDeviceNode_t,)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13279
 *         cdef cyruntime.cudaGraphDeviceNode_t cynode
 *         if node is None:
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(node, (cudaGraphDeviceNode_t,)):
 *             pnode = int(node)
*/
    __pyx_v_cynode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":13278
 *     def node(self, node):
 *         cdef cyruntime.cudaGraphDeviceNode_t cynode
 *         if node is None:             # <<<<<<<<<<<<<<
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(node, (cudaGraphDeviceNode_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13280
 *         if node is None:
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(node, (cudaGraphDeviceNode_t,)):             # <<<<<<<<<<<<<<
 *             pnode = int(node)
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13281
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(node, (cudaGraphDeviceNode_t,)):
 *             pnode = int(node)             # <<<<<<<<<<<<<<
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pnode = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13282
 *         elif isinstance(node, (cudaGraphDeviceNode_t,)):
 *             pnode = int(node)
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *         else:
 *             pnode = int(cudaGraphDeviceNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13282, __pyx_L1_error)
    __pyx_v_cynode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":13280
 *         if node is None:
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(node, (cudaGraphDeviceNode_t,)):             # <<<<<<<<<<<<<<
 *             pnode = int(node)
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13284
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode
 *         else:
 *             pnode = int(cudaGraphDeviceNode_t(node))             # <<<<<<<<<<<<<<
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode
 *         self._node._pvt_ptr[0] = cynode
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13284, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":13285
 *         else:
 *             pnode = int(cudaGraphDeviceNode_t(node))
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *         self._node._pvt_ptr[0] = cynode
 *     @property
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13285, __pyx_L1_error)
    __pyx_v_cynode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13286
 *             pnode = int(cudaGraphDeviceNode_t(node))
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode
 *         self._node._pvt_ptr[0] = cynode             # <<<<<<<<<<<<<<
 *     @property
 *     def field(self):
*/
  (__pyx_v_self->_node->_pvt_ptr[0]) = __pyx_v_cynode;

  /* "cuda/bindings/runtime.pyx":13275
 *     def node(self):
 *         return self._node
 *     @node.setter             # <<<<<<<<<<<<<<
 *     def node(self, node):
 *         cdef cyruntime.cudaGraphDeviceNode_t cynode
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.node.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13287
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode
 *         self._node._pvt_ptr[0] = cynode
 *     @property             # <<<<<<<<<<<<<<
 *     def field(self):
 *         if self._pvt_ptr[0].field not in _dict_cudaGraphKernelNodeField:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13289
 *     @property
 *     def field(self):
 *         if self._pvt_ptr[0].field not in _dict_cudaGraphKernelNodeField:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphKernelNodeField[self._pvt_ptr[0].field]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphKernelNodeField((__pyx_v_self->_pvt_ptr[0]).field); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphKernelNodeField); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 13289, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":13290
 *     def field(self):
 *         if self._pvt_ptr[0].field not in _dict_cudaGraphKernelNodeField:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaGraphKernelNodeField[self._pvt_ptr[0].field]
 *     @field.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13289
 *     @property
 *     def field(self):
 *         if self._pvt_ptr[0].field not in _dict_cudaGraphKernelNodeField:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaGraphKernelNodeField[self._pvt_ptr[0].field]
*/
  }

  /* "cuda/bindings/runtime.pyx":13291
 *         if self._pvt_ptr[0].field not in _dict_cudaGraphKernelNodeField:
 *             return None
 *         return _dict_cudaGraphKernelNodeField[self._pvt_ptr[0].field]             # <<<<<<<<<<<<<<
 *     @field.setter
 *     def field(self, field not None : cudaGraphKernelNodeField):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphKernelNodeField); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaGraphKernelNodeField((__pyx_v_self->_pvt_ptr[0]).field); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13287
 *             cynode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pnode
 *         self._node._pvt_ptr[0] = cynode
 *     @property             # <<<<<<<<<<<<<<
 *     def field(self):
 *         if self._pvt_ptr[0].field not in _dict_cudaGraphKernelNodeField:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.field.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13292
 *             return None
 *         return _dict_cudaGraphKernelNodeField[self._pvt_ptr[0].field]
 *     @field.setter             # <<<<<<<<<<<<<<
 *     def field(self, field not None : cudaGraphKernelNodeField):
 *         self._pvt_ptr[0].field = field.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_field); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_field) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_field) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "field"); __PYX_ERR(0, 13293, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self), ((PyObject *)__pyx_v_field));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, PyObject *__pyx_v_field) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaGraphKernelNodeField __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13294
 *     @field.setter
 *     def field(self, field not None : cudaGraphKernelNodeField):
 *         self._pvt_ptr[0].field = field.value             # <<<<<<<<<<<<<<
 *     @property
 *     def updateData(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaGraphKernelNodeField)__Pyx_PyLong_As_enum__cudaGraphKernelNodeField(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).field = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":13292
 *             return None
 *         return _dict_cudaGraphKernelNodeField[self._pvt_ptr[0].field]
 *     @field.setter             # <<<<<<<<<<<<<<
 *     def field(self, field not None : cudaGraphKernelNodeField):
 *         self._pvt_ptr[0].field = field.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.field.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13295
 *     def field(self, field not None : cudaGraphKernelNodeField):
 *         self._pvt_ptr[0].field = field.value
 *     @property             # <<<<<<<<<<<<<<
 *     def updateData(self):
 *         return self._updateData
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13297
 *     @property
 *     def updateData(self):
 *         return self._updateData             # <<<<<<<<<<<<<<
 *     @updateData.setter
 *     def updateData(self, updateData not None : anon_union8):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_updateData);
  __pyx_r = ((PyObject *)__pyx_v_self->_updateData);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13295
 *     def field(self, field not None : cudaGraphKernelNodeField):
 *         self._pvt_ptr[0].field = field.value
 *     @property             # <<<<<<<<<<<<<<
 *     def updateData(self):
 *         return self._updateData
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13298
 *     def updateData(self):
 *         return self._updateData
 *     @updateData.setter             # <<<<<<<<<<<<<<
 *     def updateData(self, updateData not None : anon_union8):
 *         string.memcpy(&self._pvt_ptr[0].updateData, <cyruntime.anon_union8*><void_ptr>updateData.getPtr(), sizeof(self._pvt_ptr[0].updateData))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_updateData); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_updateData) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_updateData), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8, 0, "updateData", 0))) __PYX_ERR(0, 13299, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)__pyx_v_updateData));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *__pyx_v_updateData) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13300
 *     @updateData.setter
 *     def updateData(self, updateData not None : anon_union8):
 *         string.memcpy(&self._pvt_ptr[0].updateData, <cyruntime.anon_union8*><void_ptr>updateData.getPtr(), sizeof(self._pvt_ptr[0].updateData))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaLaunchMemSyncDomainMap_st:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_updateData);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13300, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).updateData), ((union anon_union8 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).updateData))));

  /* "cuda/bindings/runtime.pyx":13298
 *     def updateData(self):
 *         return self._updateData
 *     @updateData.setter             # <<<<<<<<<<<<<<
 *     def updateData(self, updateData not None : anon_union8):
 *         string.memcpy(&self._pvt_ptr[0].updateData, <cyruntime.anon_union8*><void_ptr>updateData.getPtr(), sizeof(self._pvt_ptr[0].updateData))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.updateData.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_25cudaGraphKernelNodeUpdate_10__reduce_cython__, "cudaGraphKernelNodeUpdate.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_25cudaGraphKernelNodeUpdate_12__setstate_cython__, "cudaGraphKernelNodeUpdate.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaGraphKernelNodeUpdate.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeUpdate.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13324
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13324, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13324, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13324, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13324, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13324, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13324, __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.runtime.cudaLaunchMemSyncDomainMap_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":13325
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13326
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchMemSyncDomainMap_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":13325
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13328
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchMemSyncDomainMap_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaLaunchMemSyncDomainMap_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13324
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13329
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchMemSyncDomainMap_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13329, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13329, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13329, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13329, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13329, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13329, __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.runtime.cudaLaunchMemSyncDomainMap_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13331
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13333
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_7getPtr(PyObject *__pyx_v_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_7runtime_29cudaLaunchMemSyncDomainMap_st_6getPtr, "cudaLaunchMemSyncDomainMap_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13334
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13333
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13335
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13336
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13337
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['default_ : ' + str(self.default_)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13338
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['default_ : ' + str(self.default_)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13339
 *             str_list = []
 *             try:
 *                 str_list += ['default_ : ' + str(self.default_)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['default_ : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_default_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13339, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13339, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_default, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13339, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13339, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13339, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13339, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13338
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['default_ : ' + str(self.default_)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13340
 *             try:
 *                 str_list += ['default_ : ' + str(self.default_)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['default_ : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13340, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13341
 *                 str_list += ['default_ : ' + str(self.default_)]
 *             except ValueError:
 *                 str_list += ['default_ : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['remote : ' + str(self.remote)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13341, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_default__ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_default__ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_default__ValueError) != (0)) __PYX_ERR(0, 13341, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13341, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13338
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['default_ : ' + str(self.default_)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13342
 *             except ValueError:
 *                 str_list += ['default_ : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['remote : ' + str(self.remote)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13343
 *                 str_list += ['default_ : <ValueError>']
 *             try:
 *                 str_list += ['remote : ' + str(self.remote)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['remote : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_remote_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13343, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13343, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_remote, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13343, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13343, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13343, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13343, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13342
 *             except ValueError:
 *                 str_list += ['default_ : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['remote : ' + str(self.remote)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13344
 *             try:
 *                 str_list += ['remote : ' + str(self.remote)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['remote : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13344, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13345
 *                 str_list += ['remote : ' + str(self.remote)]
 *             except ValueError:
 *                 str_list += ['remote : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13345, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_remote_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_remote_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_remote_ValueError) != (0)) __PYX_ERR(0, 13345, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13345, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13342
 *             except ValueError:
 *                 str_list += ['default_ : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['remote : ' + str(self.remote)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13346
 *             except ValueError:
 *                 str_list += ['remote : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13346, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13336
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13348
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def default_(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13335
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13349
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def default_(self):
 *         return self._pvt_ptr[0].default_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default____get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default____get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13351
 *     @property
 *     def default_(self):
 *         return self._pvt_ptr[0].default_             # <<<<<<<<<<<<<<
 *     @default_.setter
 *     def default_(self, unsigned char default_):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_char((__pyx_v_self->_pvt_ptr[0]).default_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13349
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def default_(self):
 *         return self._pvt_ptr[0].default_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.default_.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13352
 *     def default_(self):
 *         return self._pvt_ptr[0].default_
 *     @default_.setter             # <<<<<<<<<<<<<<
 *     def default_(self, unsigned char default_):
 *         self._pvt_ptr[0].default_ = default_
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_default_); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_default_) {
  unsigned char __pyx_v_default_;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_default_); {
    __pyx_v_default_ = __Pyx_PyLong_As_unsigned_char(__pyx_arg_default_); if (unlikely((__pyx_v_default_ == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 13353, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.default_.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), ((unsigned char)__pyx_v_default_));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, unsigned char __pyx_v_default_) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13354
 *     @default_.setter
 *     def default_(self, unsigned char default_):
 *         self._pvt_ptr[0].default_ = default_             # <<<<<<<<<<<<<<
 *     @property
 *     def remote(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).default_ = __pyx_v_default_;

  /* "cuda/bindings/runtime.pyx":13352
 *     def default_(self):
 *         return self._pvt_ptr[0].default_
 *     @default_.setter             # <<<<<<<<<<<<<<
 *     def default_(self, unsigned char default_):
 *         self._pvt_ptr[0].default_ = default_
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13355
 *     def default_(self, unsigned char default_):
 *         self._pvt_ptr[0].default_ = default_
 *     @property             # <<<<<<<<<<<<<<
 *     def remote(self):
 *         return self._pvt_ptr[0].remote
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13357
 *     @property
 *     def remote(self):
 *         return self._pvt_ptr[0].remote             # <<<<<<<<<<<<<<
 *     @remote.setter
 *     def remote(self, unsigned char remote):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_char((__pyx_v_self->_pvt_ptr[0]).remote); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13355
 *     def default_(self, unsigned char default_):
 *         self._pvt_ptr[0].default_ = default_
 *     @property             # <<<<<<<<<<<<<<
 *     def remote(self):
 *         return self._pvt_ptr[0].remote
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.remote.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13358
 *     def remote(self):
 *         return self._pvt_ptr[0].remote
 *     @remote.setter             # <<<<<<<<<<<<<<
 *     def remote(self, unsigned char remote):
 *         self._pvt_ptr[0].remote = remote
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_remote); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_remote) {
  unsigned char __pyx_v_remote;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_remote); {
    __pyx_v_remote = __Pyx_PyLong_As_unsigned_char(__pyx_arg_remote); if (unlikely((__pyx_v_remote == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 13359, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.remote.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), ((unsigned char)__pyx_v_remote));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, unsigned char __pyx_v_remote) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13360
 *     @remote.setter
 *     def remote(self, unsigned char remote):
 *         self._pvt_ptr[0].remote = remote             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct17:
*/
  (__pyx_v_self->_pvt_ptr[0]).remote = __pyx_v_remote;

  /* "cuda/bindings/runtime.pyx":13358
 *     def remote(self):
 *         return self._pvt_ptr[0].remote
 *     @remote.setter             # <<<<<<<<<<<<<<
 *     def remote(self, unsigned char remote):
 *         self._pvt_ptr[0].remote = remote
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__, "cudaLaunchMemSyncDomainMap_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__, "cudaLaunchMemSyncDomainMap_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaLaunchMemSyncDomainMap_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13378
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13378, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13378, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13378, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 13378, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13378, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13378, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13378, __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.runtime.anon_struct17.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13379
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":13378
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13381
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13381, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13381, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13381, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 13381, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13381, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13381, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13381, __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.runtime.anon_struct17.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13383
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13385
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].clusterDim
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct17_6getPtr, "anon_struct17.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct17_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct17_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13386
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].clusterDim             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).clusterDim))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13385
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].clusterDim
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13387
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].clusterDim
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13388
 *         return <void_ptr>&self._pvt_ptr[0].clusterDim
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13389
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13390
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13391
 *             str_list = []
 *             try:
 *                 str_list += ['x : ' + str(self.x)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13391, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13391, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13391, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13391, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13391, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13391, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13390
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13392
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13392, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13393
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13393, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_x_ValueError) != (0)) __PYX_ERR(0, 13393, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13393, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13390
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13394
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13395
 *                 str_list += ['x : <ValueError>']
 *             try:
 *                 str_list += ['y : ' + str(self.y)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13395, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13395, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13395, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13395, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13395, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13395, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13394
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13396
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13396, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13397
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13397, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_y_ValueError) != (0)) __PYX_ERR(0, 13397, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13397, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13394
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13398
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13399
 *                 str_list += ['y : <ValueError>']
 *             try:
 *                 str_list += ['z : ' + str(self.z)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13399, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13399, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13399, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13399, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13399, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13399, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13398
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13400
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13400, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13401
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13401, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_z_ValueError) != (0)) __PYX_ERR(0, 13401, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13401, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":13398
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13402
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13388
 *         return <void_ptr>&self._pvt_ptr[0].clusterDim
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13404
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def x(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13387
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].clusterDim
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13405
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].clusterDim.x
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1x_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1x___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13407
 *     @property
 *     def x(self):
 *         return self._pvt_ptr[0].clusterDim.x             # <<<<<<<<<<<<<<
 *     @x.setter
 *     def x(self, unsigned int x):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).clusterDim.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13405
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].clusterDim.x
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13408
 *     def x(self):
 *         return self._pvt_ptr[0].clusterDim.x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].clusterDim.x = x
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x) {
  unsigned int __pyx_v_x;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_x); {
    __pyx_v_x = __Pyx_PyLong_As_unsigned_int(__pyx_arg_x); if (unlikely((__pyx_v_x == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13409, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1x_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self), ((unsigned int)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, unsigned int __pyx_v_x) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13410
 *     @x.setter
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].clusterDim.x = x             # <<<<<<<<<<<<<<
 *     @property
 *     def y(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).clusterDim.x = __pyx_v_x;

  /* "cuda/bindings/runtime.pyx":13408
 *     def x(self):
 *         return self._pvt_ptr[0].clusterDim.x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].clusterDim.x = x
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13411
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].clusterDim.x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].clusterDim.y
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1y_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1y___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13413
 *     @property
 *     def y(self):
 *         return self._pvt_ptr[0].clusterDim.y             # <<<<<<<<<<<<<<
 *     @y.setter
 *     def y(self, unsigned int y):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).clusterDim.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13411
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].clusterDim.x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].clusterDim.y
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13414
 *     def y(self):
 *         return self._pvt_ptr[0].clusterDim.y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].clusterDim.y = y
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y) {
  unsigned int __pyx_v_y;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_y); {
    __pyx_v_y = __Pyx_PyLong_As_unsigned_int(__pyx_arg_y); if (unlikely((__pyx_v_y == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13415, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1y_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self), ((unsigned int)__pyx_v_y));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, unsigned int __pyx_v_y) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13416
 *     @y.setter
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].clusterDim.y = y             # <<<<<<<<<<<<<<
 *     @property
 *     def z(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).clusterDim.y = __pyx_v_y;

  /* "cuda/bindings/runtime.pyx":13414
 *     def y(self):
 *         return self._pvt_ptr[0].clusterDim.y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].clusterDim.y = y
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13417
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].clusterDim.y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].clusterDim.z
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1z_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1z___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13419
 *     @property
 *     def z(self):
 *         return self._pvt_ptr[0].clusterDim.z             # <<<<<<<<<<<<<<
 *     @z.setter
 *     def z(self, unsigned int z):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).clusterDim.z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13417
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].clusterDim.y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].clusterDim.z
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13420
 *     def z(self):
 *         return self._pvt_ptr[0].clusterDim.z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].clusterDim.z = z
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z) {
  unsigned int __pyx_v_z;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_z); {
    __pyx_v_z = __Pyx_PyLong_As_unsigned_int(__pyx_arg_z); if (unlikely((__pyx_v_z == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13421, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1z_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self), ((unsigned int)__pyx_v_z));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, unsigned int __pyx_v_z) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13422
 *     @z.setter
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].clusterDim.z = z             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct18:
*/
  (__pyx_v_self->_pvt_ptr[0]).clusterDim.z = __pyx_v_z;

  /* "cuda/bindings/runtime.pyx":13420
 *     def z(self):
 *         return self._pvt_ptr[0].clusterDim.z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].clusterDim.z = z
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct17_10__reduce_cython__, "anon_struct17.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct17_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct17_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct17_12__setstate_cython__, "anon_struct17.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct17_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct17_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct17.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct17_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct17.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13440
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13440, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13440, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13440, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 13440, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13440, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13440, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13440, __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.runtime.anon_struct18.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13441
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":13440
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13443
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].programmaticEvent.event)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13443, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13443, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13443, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 13443, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13443, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13443, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13443, __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.runtime.anon_struct18.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":13445
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].programmaticEvent.event)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).programmaticEvent.event))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13445, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13445, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_event);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_event);
  __pyx_v_self->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13443
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].programmaticEvent.event)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13446
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].programmaticEvent.event)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13448
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].programmaticEvent
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct18_6getPtr, "anon_struct18.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct18_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct18_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13449
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].programmaticEvent             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).programmaticEvent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13448
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].programmaticEvent
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13450
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].programmaticEvent
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13451
 *         return <void_ptr>&self._pvt_ptr[0].programmaticEvent
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13452
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['event : ' + str(self.event)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13452, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13453
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13454
 *             str_list = []
 *             try:
 *                 str_list += ['event : ' + str(self.event)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_event_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13454, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13454, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_event, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13454, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13454, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13454, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13454, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13453
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13455
 *             try:
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13455, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13456
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13456, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_event_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_event_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_event_ValueError) != (0)) __PYX_ERR(0, 13456, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13456, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13453
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13457
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13458
 *                 str_list += ['event : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13458, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13458, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13458, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13458, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13458, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13458, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13457
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13459
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13459, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13460
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13460, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 13460, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13460, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13457
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13461
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13462
 *                 str_list += ['flags : <ValueError>']
 *             try:
 *                 str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['triggerAtBlockStart : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_triggerAtBlockStart_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13462, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13462, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_triggerAtBlockStart, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13462, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13462, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13462, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13462, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13461
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13463
 *             try:
 *                 str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['triggerAtBlockStart : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13463, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13464
 *                 str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)]
 *             except ValueError:
 *                 str_list += ['triggerAtBlockStart : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13464, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_triggerAtBlockStart_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_triggerAtBlockStart_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_triggerAtBlockStart_ValueError) != (0)) __PYX_ERR(0, 13464, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13464, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":13461
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13465
 *             except ValueError:
 *                 str_list += ['triggerAtBlockStart : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13465, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13451
 *         return <void_ptr>&self._pvt_ptr[0].programmaticEvent
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13467
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def event(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13450
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].programmaticEvent
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13468
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def event(self):
 *         return self._event
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5event_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5event_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5event___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5event___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13470
 *     @property
 *     def event(self):
 *         return self._event             # <<<<<<<<<<<<<<
 *     @event.setter
 *     def event(self, event):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_event);
  __pyx_r = ((PyObject *)__pyx_v_self->_event);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13468
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def event(self):
 *         return self._event
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13471
 *     def event(self):
 *         return self._event
 *     @event.setter             # <<<<<<<<<<<<<<
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5event_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self), ((PyObject *)__pyx_v_event));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5event_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13474
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13475
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)
*/
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":13474
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13476
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13477
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":13478
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *         else:
 *             pevent = int(cudaEvent_t(event))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13478, __pyx_L1_error)
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":13476
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13480
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         else:
 *             pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13480, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":13481
 *         else:
 *             pevent = int(cudaEvent_t(event))
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *         self._event._pvt_ptr[0] = cyevent
 *     @property
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13481, __pyx_L1_error)
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13482
 *             pevent = int(cudaEvent_t(event))
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  (__pyx_v_self->_event->__pyx_base._pvt_ptr[0]) = __pyx_v_cyevent;

  /* "cuda/bindings/runtime.pyx":13471
 *     def event(self):
 *         return self._event
 *     @event.setter             # <<<<<<<<<<<<<<
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.event.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13483
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].programmaticEvent.flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13485
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].programmaticEvent.flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).programmaticEvent.flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13483
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].programmaticEvent.flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13486
 *     def flags(self):
 *         return self._pvt_ptr[0].programmaticEvent.flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].programmaticEvent.flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13487, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self), ((int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13488
 *     @flags.setter
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].programmaticEvent.flags = flags             # <<<<<<<<<<<<<<
 *     @property
 *     def triggerAtBlockStart(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).programmaticEvent.flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":13486
 *     def flags(self):
 *         return self._pvt_ptr[0].programmaticEvent.flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].programmaticEvent.flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13489
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].programmaticEvent.flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def triggerAtBlockStart(self):
 *         return self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13491
 *     @property
 *     def triggerAtBlockStart(self):
 *         return self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart             # <<<<<<<<<<<<<<
 *     @triggerAtBlockStart.setter
 *     def triggerAtBlockStart(self, int triggerAtBlockStart):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).programmaticEvent.triggerAtBlockStart); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13489
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].programmaticEvent.flags = flags
 *     @property             # <<<<<<<<<<<<<<
 *     def triggerAtBlockStart(self):
 *         return self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.triggerAtBlockStart.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13492
 *     def triggerAtBlockStart(self):
 *         return self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart
 *     @triggerAtBlockStart.setter             # <<<<<<<<<<<<<<
 *     def triggerAtBlockStart(self, int triggerAtBlockStart):
 *         self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart = triggerAtBlockStart
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_triggerAtBlockStart); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_triggerAtBlockStart) {
  int __pyx_v_triggerAtBlockStart;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_triggerAtBlockStart); {
    __pyx_v_triggerAtBlockStart = __Pyx_PyLong_As_int(__pyx_arg_triggerAtBlockStart); if (unlikely((__pyx_v_triggerAtBlockStart == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13493, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.triggerAtBlockStart.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self), ((int)__pyx_v_triggerAtBlockStart));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, int __pyx_v_triggerAtBlockStart) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13494
 *     @triggerAtBlockStart.setter
 *     def triggerAtBlockStart(self, int triggerAtBlockStart):
 *         self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart = triggerAtBlockStart             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct19:
*/
  (__pyx_v_self->_pvt_ptr[0]).programmaticEvent.triggerAtBlockStart = __pyx_v_triggerAtBlockStart;

  /* "cuda/bindings/runtime.pyx":13492
 *     def triggerAtBlockStart(self):
 *         return self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart
 *     @triggerAtBlockStart.setter             # <<<<<<<<<<<<<<
 *     def triggerAtBlockStart(self, int triggerAtBlockStart):
 *         self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart = triggerAtBlockStart
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct18_10__reduce_cython__, "anon_struct18.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct18_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct18_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct18_12__setstate_cython__, "anon_struct18.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct18_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct18_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct18.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct18_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct18.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13512
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13512, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13512, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13512, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 13512, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13512, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13512, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13512, __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.runtime.anon_struct19.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13513
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":13512
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13515
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13515, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13515, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13515, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 13515, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13515, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13515, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13515, __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.runtime.anon_struct19.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13517
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13519
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].preferredClusterDim
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct19_6getPtr, "anon_struct19.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct19_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct19_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13520
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].preferredClusterDim             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).preferredClusterDim))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13519
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].preferredClusterDim
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13521
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].preferredClusterDim
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13522
 *         return <void_ptr>&self._pvt_ptr[0].preferredClusterDim
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13523
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13523, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13524
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13525
 *             str_list = []
 *             try:
 *                 str_list += ['x : ' + str(self.x)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13525, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13525, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_x, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13525, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13525, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13525, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13525, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13524
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13526
 *             try:
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13526, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13527
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13527, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_x_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_x_ValueError) != (0)) __PYX_ERR(0, 13527, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13527, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13524
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['x : ' + str(self.x)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13528
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13529
 *                 str_list += ['x : <ValueError>']
 *             try:
 *                 str_list += ['y : ' + str(self.y)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_y_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13529, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13529, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13529, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13529, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13529, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13529, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13528
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13530
 *             try:
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13530, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13531
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13531, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_y_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_y_ValueError) != (0)) __PYX_ERR(0, 13531, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13531, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13528
 *             except ValueError:
 *                 str_list += ['x : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['y : ' + str(self.y)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13532
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13533
 *                 str_list += ['y : <ValueError>']
 *             try:
 *                 str_list += ['z : ' + str(self.z)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_z_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13533, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13533, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_z, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13533, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13533, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13533, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13533, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13532
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13534
 *             try:
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13534, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13535
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13535, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_z_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_z_ValueError) != (0)) __PYX_ERR(0, 13535, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13535, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":13532
 *             except ValueError:
 *                 str_list += ['y : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['z : ' + str(self.z)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13536
 *             except ValueError:
 *                 str_list += ['z : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13522
 *         return <void_ptr>&self._pvt_ptr[0].preferredClusterDim
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13538
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def x(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13521
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].preferredClusterDim
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13539
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].preferredClusterDim.x
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1x_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1x___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1x___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13541
 *     @property
 *     def x(self):
 *         return self._pvt_ptr[0].preferredClusterDim.x             # <<<<<<<<<<<<<<
 *     @x.setter
 *     def x(self, unsigned int x):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).preferredClusterDim.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13539
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def x(self):
 *         return self._pvt_ptr[0].preferredClusterDim.x
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13542
 *     def x(self):
 *         return self._pvt_ptr[0].preferredClusterDim.x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].preferredClusterDim.x = x
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_x) {
  unsigned int __pyx_v_x;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_x); {
    __pyx_v_x = __Pyx_PyLong_As_unsigned_int(__pyx_arg_x); if (unlikely((__pyx_v_x == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13543, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1x_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self), ((unsigned int)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1x_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, unsigned int __pyx_v_x) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13544
 *     @x.setter
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].preferredClusterDim.x = x             # <<<<<<<<<<<<<<
 *     @property
 *     def y(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).preferredClusterDim.x = __pyx_v_x;

  /* "cuda/bindings/runtime.pyx":13542
 *     def x(self):
 *         return self._pvt_ptr[0].preferredClusterDim.x
 *     @x.setter             # <<<<<<<<<<<<<<
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].preferredClusterDim.x = x
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13545
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].preferredClusterDim.x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].preferredClusterDim.y
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1y_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1y___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1y___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13547
 *     @property
 *     def y(self):
 *         return self._pvt_ptr[0].preferredClusterDim.y             # <<<<<<<<<<<<<<
 *     @y.setter
 *     def y(self, unsigned int y):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).preferredClusterDim.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13545
 *     def x(self, unsigned int x):
 *         self._pvt_ptr[0].preferredClusterDim.x = x
 *     @property             # <<<<<<<<<<<<<<
 *     def y(self):
 *         return self._pvt_ptr[0].preferredClusterDim.y
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13548
 *     def y(self):
 *         return self._pvt_ptr[0].preferredClusterDim.y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].preferredClusterDim.y = y
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_y) {
  unsigned int __pyx_v_y;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_y); {
    __pyx_v_y = __Pyx_PyLong_As_unsigned_int(__pyx_arg_y); if (unlikely((__pyx_v_y == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13549, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1y_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self), ((unsigned int)__pyx_v_y));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1y_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, unsigned int __pyx_v_y) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13550
 *     @y.setter
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].preferredClusterDim.y = y             # <<<<<<<<<<<<<<
 *     @property
 *     def z(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).preferredClusterDim.y = __pyx_v_y;

  /* "cuda/bindings/runtime.pyx":13548
 *     def y(self):
 *         return self._pvt_ptr[0].preferredClusterDim.y
 *     @y.setter             # <<<<<<<<<<<<<<
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].preferredClusterDim.y = y
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13551
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].preferredClusterDim.y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].preferredClusterDim.z
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1z_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1z___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1z___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13553
 *     @property
 *     def z(self):
 *         return self._pvt_ptr[0].preferredClusterDim.z             # <<<<<<<<<<<<<<
 *     @z.setter
 *     def z(self, unsigned int z):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).preferredClusterDim.z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13551
 *     def y(self, unsigned int y):
 *         self._pvt_ptr[0].preferredClusterDim.y = y
 *     @property             # <<<<<<<<<<<<<<
 *     def z(self):
 *         return self._pvt_ptr[0].preferredClusterDim.z
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13554
 *     def z(self):
 *         return self._pvt_ptr[0].preferredClusterDim.z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].preferredClusterDim.z = z
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_z) {
  unsigned int __pyx_v_z;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_z); {
    __pyx_v_z = __Pyx_PyLong_As_unsigned_int(__pyx_arg_z); if (unlikely((__pyx_v_z == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13555, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1z_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self), ((unsigned int)__pyx_v_z));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_1z_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, unsigned int __pyx_v_z) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13556
 *     @z.setter
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].preferredClusterDim.z = z             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct20:
*/
  (__pyx_v_self->_pvt_ptr[0]).preferredClusterDim.z = __pyx_v_z;

  /* "cuda/bindings/runtime.pyx":13554
 *     def z(self):
 *         return self._pvt_ptr[0].preferredClusterDim.z
 *     @z.setter             # <<<<<<<<<<<<<<
 *     def z(self, unsigned int z):
 *         self._pvt_ptr[0].preferredClusterDim.z = z
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct19_10__reduce_cython__, "anon_struct19.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct19_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct19_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct19_12__setstate_cython__, "anon_struct19.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct19_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct19_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct19.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct19_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct19.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13572
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13572, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13572, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13572, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 13572, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13572, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13572, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13572, __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.runtime.anon_struct20.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13573
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":13572
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13575
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].launchCompletionEvent.event)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13575, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13575, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13575, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 13575, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13575, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13575, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13575, __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.runtime.anon_struct20.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":13577
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].launchCompletionEvent.event)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).launchCompletionEvent.event))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13577, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13577, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_event);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_event);
  __pyx_v_self->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13575
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].launchCompletionEvent.event)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13578
 *         pass
 *         self._event = cudaEvent_t(_ptr=<void_ptr>&self._pvt_ptr[0].launchCompletionEvent.event)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13580
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].launchCompletionEvent
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct20_6getPtr, "anon_struct20.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct20_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct20_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13581
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].launchCompletionEvent             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).launchCompletionEvent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13580
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].launchCompletionEvent
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13582
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].launchCompletionEvent
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13583
 *         return <void_ptr>&self._pvt_ptr[0].launchCompletionEvent
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13584
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['event : ' + str(self.event)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13585
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13586
 *             str_list = []
 *             try:
 *                 str_list += ['event : ' + str(self.event)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_event_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13586, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13586, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_event, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13586, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13586, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13586, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13586, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13585
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13587
 *             try:
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13587, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13588
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13588, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_event_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_event_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_event_ValueError) != (0)) __PYX_ERR(0, 13588, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13588, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13585
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['event : ' + str(self.event)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13589
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13590
 *                 str_list += ['event : <ValueError>']
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_flags_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13590, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13590, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_flags, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13590, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13590, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13590, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13590, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13589
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13591
 *             try:
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13591, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13592
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13592, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_flags_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_flags_ValueError) != (0)) __PYX_ERR(0, 13592, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13592, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13589
 *             except ValueError:
 *                 str_list += ['event : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['flags : ' + str(self.flags)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13593
 *             except ValueError:
 *                 str_list += ['flags : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13593, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13583
 *         return <void_ptr>&self._pvt_ptr[0].launchCompletionEvent
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13595
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def event(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13582
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].launchCompletionEvent
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13596
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def event(self):
 *         return self._event
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5event_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5event_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5event___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5event___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13598
 *     @property
 *     def event(self):
 *         return self._event             # <<<<<<<<<<<<<<
 *     @event.setter
 *     def event(self, event):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_event);
  __pyx_r = ((PyObject *)__pyx_v_self->_event);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13596
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def event(self):
 *         return self._event
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13599
 *     def event(self):
 *         return self._event
 *     @event.setter             # <<<<<<<<<<<<<<
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5event_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_event) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5event_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self), ((PyObject *)__pyx_v_event));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5event_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13602
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13603
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)
*/
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":13602
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
 *         if event is None:             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13604
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13605
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         else:
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13605, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":13606
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *         else:
 *             pevent = int(cudaEvent_t(event))
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13606, __pyx_L1_error)
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

    /* "cuda/bindings/runtime.pyx":13604
 *         if event is None:
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>0
 *         elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *             pevent = int(event)
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13608
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         else:
 *             pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13608, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13608, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cuda/bindings/runtime.pyx":13609
 *         else:
 *             pevent = int(cudaEvent_t(event))
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *         self._event._pvt_ptr[0] = cyevent
 *     @property
*/
    __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13609, __pyx_L1_error)
    __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13610
 *             pevent = int(cudaEvent_t(event))
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent             # <<<<<<<<<<<<<<
 *     @property
 *     def flags(self):
*/
  (__pyx_v_self->_event->__pyx_base._pvt_ptr[0]) = __pyx_v_cyevent;

  /* "cuda/bindings/runtime.pyx":13599
 *     def event(self):
 *         return self._event
 *     @event.setter             # <<<<<<<<<<<<<<
 *     def event(self, event):
 *         cdef cyruntime.cudaEvent_t cyevent
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.event.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13611
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].launchCompletionEvent.flags
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5flags_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5flags_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5flags___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5flags___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13613
 *     @property
 *     def flags(self):
 *         return self._pvt_ptr[0].launchCompletionEvent.flags             # <<<<<<<<<<<<<<
 *     @flags.setter
 *     def flags(self, int flags):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).launchCompletionEvent.flags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13611
 *             cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *         self._event._pvt_ptr[0] = cyevent
 *     @property             # <<<<<<<<<<<<<<
 *     def flags(self):
 *         return self._pvt_ptr[0].launchCompletionEvent.flags
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.flags.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13614
 *     def flags(self):
 *         return self._pvt_ptr[0].launchCompletionEvent.flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].launchCompletionEvent.flags = flags
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5flags_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_flags) {
  int __pyx_v_flags;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_flags); {
    __pyx_v_flags = __Pyx_PyLong_As_int(__pyx_arg_flags); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13615, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.flags.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5flags_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self), ((int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_5flags_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, int __pyx_v_flags) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13616
 *     @flags.setter
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].launchCompletionEvent.flags = flags             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct21:
*/
  (__pyx_v_self->_pvt_ptr[0]).launchCompletionEvent.flags = __pyx_v_flags;

  /* "cuda/bindings/runtime.pyx":13614
 *     def flags(self):
 *         return self._pvt_ptr[0].launchCompletionEvent.flags
 *     @flags.setter             # <<<<<<<<<<<<<<
 *     def flags(self, int flags):
 *         self._pvt_ptr[0].launchCompletionEvent.flags = flags
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct20_10__reduce_cython__, "anon_struct20.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct20_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct20_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct20_12__setstate_cython__, "anon_struct20.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct20_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct20_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct20.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct20_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct20.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13632
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13632, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13632, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13632, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 13632, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13632, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13632, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13632, __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.runtime.anon_struct21.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13633
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":13632
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13635
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._devNode = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode.devNode)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13635, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13635, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13635, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 13635, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13635, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13635, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 13635, __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.runtime.anon_struct21.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":13637
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._devNode = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode.devNode)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).deviceUpdatableKernelNode.devNode))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13637, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13637, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_devNode);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_devNode);
  __pyx_v_self->_devNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13635
 *         self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._devNode = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode.devNode)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13638
 *         pass
 *         self._devNode = cudaGraphDeviceNode_t(_ptr=<void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode.devNode)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13640
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct21_6getPtr, "anon_struct21.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct21_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct21_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13641
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).deviceUpdatableKernelNode))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13640
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13642
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13643
 *         return <void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13644
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13645
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13646
 *             str_list = []
 *             try:
 *                 str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['deviceUpdatable : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_deviceUpdatable_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13646, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13646, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_deviceUpdatable, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13646, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13646, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13646, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13646, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13645
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13647
 *             try:
 *                 str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceUpdatable : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13647, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13648
 *                 str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)]
 *             except ValueError:
 *                 str_list += ['deviceUpdatable : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['devNode : ' + str(self.devNode)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13648, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_deviceUpdatable_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_deviceUpdatable_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_deviceUpdatable_ValueError) != (0)) __PYX_ERR(0, 13648, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13648, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13645
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13649
 *             except ValueError:
 *                 str_list += ['deviceUpdatable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devNode : ' + str(self.devNode)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13650
 *                 str_list += ['deviceUpdatable : <ValueError>']
 *             try:
 *                 str_list += ['devNode : ' + str(self.devNode)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['devNode : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_devNode_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13650, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13650, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_devNode, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13650, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13650, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13650, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13650, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13649
 *             except ValueError:
 *                 str_list += ['deviceUpdatable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devNode : ' + str(self.devNode)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13651
 *             try:
 *                 str_list += ['devNode : ' + str(self.devNode)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['devNode : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13651, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13652
 *                 str_list += ['devNode : ' + str(self.devNode)]
 *             except ValueError:
 *                 str_list += ['devNode : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13652, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_devNode_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_devNode_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_devNode_ValueError) != (0)) __PYX_ERR(0, 13652, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13652, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13649
 *             except ValueError:
 *                 str_list += ['deviceUpdatable : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['devNode : ' + str(self.devNode)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13653
 *             except ValueError:
 *                 str_list += ['devNode : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13643
 *         return <void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13655
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def deviceUpdatable(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13642
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13656
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def deviceUpdatable(self):
 *         return self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13658
 *     @property
 *     def deviceUpdatable(self):
 *         return self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable             # <<<<<<<<<<<<<<
 *     @deviceUpdatable.setter
 *     def deviceUpdatable(self, int deviceUpdatable):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).deviceUpdatableKernelNode.deviceUpdatable); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13658, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13656
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def deviceUpdatable(self):
 *         return self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.deviceUpdatable.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13659
 *     def deviceUpdatable(self):
 *         return self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable
 *     @deviceUpdatable.setter             # <<<<<<<<<<<<<<
 *     def deviceUpdatable(self, int deviceUpdatable):
 *         self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceUpdatable); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_deviceUpdatable) {
  int __pyx_v_deviceUpdatable;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_deviceUpdatable); {
    __pyx_v_deviceUpdatable = __Pyx_PyLong_As_int(__pyx_arg_deviceUpdatable); if (unlikely((__pyx_v_deviceUpdatable == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13660, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.deviceUpdatable.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self), ((int)__pyx_v_deviceUpdatable));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, int __pyx_v_deviceUpdatable) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13661
 *     @deviceUpdatable.setter
 *     def deviceUpdatable(self, int deviceUpdatable):
 *         self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable             # <<<<<<<<<<<<<<
 *     @property
 *     def devNode(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).deviceUpdatableKernelNode.deviceUpdatable = __pyx_v_deviceUpdatable;

  /* "cuda/bindings/runtime.pyx":13659
 *     def deviceUpdatable(self):
 *         return self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable
 *     @deviceUpdatable.setter             # <<<<<<<<<<<<<<
 *     def deviceUpdatable(self, int deviceUpdatable):
 *         self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13662
 *     def deviceUpdatable(self, int deviceUpdatable):
 *         self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable
 *     @property             # <<<<<<<<<<<<<<
 *     def devNode(self):
 *         return self._devNode
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7devNode_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7devNode_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_7devNode___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_7devNode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13664
 *     @property
 *     def devNode(self):
 *         return self._devNode             # <<<<<<<<<<<<<<
 *     @devNode.setter
 *     def devNode(self, devNode):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_devNode);
  __pyx_r = ((PyObject *)__pyx_v_self->_devNode);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13662
 *     def deviceUpdatable(self, int deviceUpdatable):
 *         self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable
 *     @property             # <<<<<<<<<<<<<<
 *     def devNode(self):
 *         return self._devNode
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13665
 *     def devNode(self):
 *         return self._devNode
 *     @devNode.setter             # <<<<<<<<<<<<<<
 *     def devNode(self, devNode):
 *         cdef cyruntime.cudaGraphDeviceNode_t cydevNode
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7devNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devNode); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7devNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_devNode) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_7devNode_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self), ((PyObject *)__pyx_v_devNode));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_7devNode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, PyObject *__pyx_v_devNode) {
  cudaGraphDeviceNode_t __pyx_v_cydevNode;
  PyObject *__pyx_v_pdevNode = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13668
 *     def devNode(self, devNode):
 *         cdef cyruntime.cudaGraphDeviceNode_t cydevNode
 *         if devNode is None:             # <<<<<<<<<<<<<<
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(devNode, (cudaGraphDeviceNode_t,)):
*/
  __pyx_t_1 = (__pyx_v_devNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13669
 *         cdef cyruntime.cudaGraphDeviceNode_t cydevNode
 *         if devNode is None:
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0             # <<<<<<<<<<<<<<
 *         elif isinstance(devNode, (cudaGraphDeviceNode_t,)):
 *             pdevNode = int(devNode)
*/
    __pyx_v_cydevNode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0));

    /* "cuda/bindings/runtime.pyx":13668
 *     def devNode(self, devNode):
 *         cdef cyruntime.cudaGraphDeviceNode_t cydevNode
 *         if devNode is None:             # <<<<<<<<<<<<<<
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(devNode, (cudaGraphDeviceNode_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13670
 *         if devNode is None:
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(devNode, (cudaGraphDeviceNode_t,)):             # <<<<<<<<<<<<<<
 *             pdevNode = int(devNode)
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pdevNode
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_devNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13671
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(devNode, (cudaGraphDeviceNode_t,)):
 *             pdevNode = int(devNode)             # <<<<<<<<<<<<<<
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pdevNode
 *         else:
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_devNode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13671, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pdevNode = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13672
 *         elif isinstance(devNode, (cudaGraphDeviceNode_t,)):
 *             pdevNode = int(devNode)
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pdevNode             # <<<<<<<<<<<<<<
 *         else:
 *             pdevNode = int(cudaGraphDeviceNode_t(devNode))
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdevNode); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13672, __pyx_L1_error)
    __pyx_v_cydevNode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));

    /* "cuda/bindings/runtime.pyx":13670
 *         if devNode is None:
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>0
 *         elif isinstance(devNode, (cudaGraphDeviceNode_t,)):             # <<<<<<<<<<<<<<
 *             pdevNode = int(devNode)
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pdevNode
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13674
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pdevNode
 *         else:
 *             pdevNode = int(cudaGraphDeviceNode_t(devNode))             # <<<<<<<<<<<<<<
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pdevNode
 *         self._devNode._pvt_ptr[0] = cydevNode
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_devNode};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13674, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13674, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pdevNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":13675
 *         else:
 *             pdevNode = int(cudaGraphDeviceNode_t(devNode))
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pdevNode             # <<<<<<<<<<<<<<
 *         self._devNode._pvt_ptr[0] = cydevNode
 * 
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdevNode); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13675, __pyx_L1_error)
    __pyx_v_cydevNode = ((cudaGraphDeviceNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_3));
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13676
 *             pdevNode = int(cudaGraphDeviceNode_t(devNode))
 *             cydevNode = <cyruntime.cudaGraphDeviceNode_t><void_ptr>pdevNode
 *         self._devNode._pvt_ptr[0] = cydevNode             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaLaunchAttributeValue:
*/
  (__pyx_v_self->_devNode->_pvt_ptr[0]) = __pyx_v_cydevNode;

  /* "cuda/bindings/runtime.pyx":13665
 *     def devNode(self):
 *         return self._devNode
 *     @devNode.setter             # <<<<<<<<<<<<<<
 *     def devNode(self, devNode):
 *         cdef cyruntime.cudaGraphDeviceNode_t cydevNode
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.devNode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pdevNode);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct21_10__reduce_cython__, "anon_struct21.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct21_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct21_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct21_12__setstate_cython__, "anon_struct21.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct21_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct21_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct21.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct21_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct21.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13764
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13764, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13764, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13764, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13764, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13764, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13764, __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.runtime.cudaLaunchAttributeValue.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":13765
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13766
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":13765
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13768
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((union cudaLaunchAttributeValue *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13764
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13769
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=<void_ptr>&self._pvt_ptr[0].accessPolicyWindow)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13769, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13769, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13769, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13769, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13769, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13769, __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.runtime.cudaLaunchAttributeValue.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":13771
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=<void_ptr>&self._pvt_ptr[0].accessPolicyWindow)             # <<<<<<<<<<<<<<
 *         self._clusterDim = anon_struct17(_ptr=<void_ptr>self._pvt_ptr)
 *         self._programmaticEvent = anon_struct18(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).accessPolicyWindow))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13771, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13771, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13771, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_accessPolicyWindow);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_accessPolicyWindow);
  __pyx_v_self->_accessPolicyWindow = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13772
 *         pass
 *         self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=<void_ptr>&self._pvt_ptr[0].accessPolicyWindow)
 *         self._clusterDim = anon_struct17(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._programmaticEvent = anon_struct18(_ptr=<void_ptr>self._pvt_ptr)
 *         self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=<void_ptr>&self._pvt_ptr[0].memSyncDomainMap)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13772, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13772, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13772, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_clusterDim);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_clusterDim);
  __pyx_v_self->_clusterDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13773
 *         self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=<void_ptr>&self._pvt_ptr[0].accessPolicyWindow)
 *         self._clusterDim = anon_struct17(_ptr=<void_ptr>self._pvt_ptr)
 *         self._programmaticEvent = anon_struct18(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=<void_ptr>&self._pvt_ptr[0].memSyncDomainMap)
 *         self._preferredClusterDim = anon_struct19(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13773, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13773, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13773, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_programmaticEvent);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_programmaticEvent);
  __pyx_v_self->_programmaticEvent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13774
 *         self._clusterDim = anon_struct17(_ptr=<void_ptr>self._pvt_ptr)
 *         self._programmaticEvent = anon_struct18(_ptr=<void_ptr>self._pvt_ptr)
 *         self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=<void_ptr>&self._pvt_ptr[0].memSyncDomainMap)             # <<<<<<<<<<<<<<
 *         self._preferredClusterDim = anon_struct19(_ptr=<void_ptr>self._pvt_ptr)
 *         self._launchCompletionEvent = anon_struct20(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).memSyncDomainMap))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13774, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13774, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13774, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_memSyncDomainMap);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_memSyncDomainMap);
  __pyx_v_self->_memSyncDomainMap = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13775
 *         self._programmaticEvent = anon_struct18(_ptr=<void_ptr>self._pvt_ptr)
 *         self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=<void_ptr>&self._pvt_ptr[0].memSyncDomainMap)
 *         self._preferredClusterDim = anon_struct19(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._launchCompletionEvent = anon_struct20(_ptr=<void_ptr>self._pvt_ptr)
 *         self._deviceUpdatableKernelNode = anon_struct21(_ptr=<void_ptr>self._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13775, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13775, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13775, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_preferredClusterDim);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_preferredClusterDim);
  __pyx_v_self->_preferredClusterDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13776
 *         self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=<void_ptr>&self._pvt_ptr[0].memSyncDomainMap)
 *         self._preferredClusterDim = anon_struct19(_ptr=<void_ptr>self._pvt_ptr)
 *         self._launchCompletionEvent = anon_struct20(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *         self._deviceUpdatableKernelNode = anon_struct21(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13776, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13776, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13776, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_launchCompletionEvent);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_launchCompletionEvent);
  __pyx_v_self->_launchCompletionEvent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13777
 *         self._preferredClusterDim = anon_struct19(_ptr=<void_ptr>self._pvt_ptr)
 *         self._launchCompletionEvent = anon_struct20(_ptr=<void_ptr>self._pvt_ptr)
 *         self._deviceUpdatableKernelNode = anon_struct21(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13777, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13777, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13777, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_deviceUpdatableKernelNode);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_deviceUpdatableKernelNode);
  __pyx_v_self->_deviceUpdatableKernelNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13769
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchAttributeValue *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=<void_ptr>&self._pvt_ptr[0].accessPolicyWindow)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13778
 *         self._launchCompletionEvent = anon_struct20(_ptr=<void_ptr>self._pvt_ptr)
 *         self._deviceUpdatableKernelNode = anon_struct21(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13780
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_7getPtr(PyObject *__pyx_v_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_7runtime_24cudaLaunchAttributeValue_6getPtr, "cudaLaunchAttributeValue.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13781
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13780
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13782
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr185__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr186__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr187__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr188__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr189__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr190__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr191__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13783
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13784
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pad : ' + str(self.pad)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13784, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13785
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pad : ' + str(self.pad)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13786
 *             str_list = []
 *             try:
 *                 str_list += ['pad : ' + str(self.pad)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pad : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pad_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13786, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13786, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pad, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13786, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13786, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13786, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13786, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13785
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pad : ' + str(self.pad)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13787
 *             try:
 *                 str_list += ['pad : ' + str(self.pad)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pad : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13787, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13788
 *                 str_list += ['pad : ' + str(self.pad)]
 *             except ValueError:
 *                 str_list += ['pad : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['accessPolicyWindow :\n' + '\n'.join(['    ' + line for line in str(self.accessPolicyWindow).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13788, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pad_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pad_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_pad_ValueError) != (0)) __PYX_ERR(0, 13788, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13788, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13785
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pad : ' + str(self.pad)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13789
 *             except ValueError:
 *                 str_list += ['pad : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessPolicyWindow :\n' + '\n'.join(['    ' + line for line in str(self.accessPolicyWindow).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13790
 *                 str_list += ['pad : <ValueError>']
 *             try:
 *                 str_list += ['accessPolicyWindow :\n' + '\n'.join(['    ' + line for line in str(self.accessPolicyWindow).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['accessPolicyWindow : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13790, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_accessPolicyWindow_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13790, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13790, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13790, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13790, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13790, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr185__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr185__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13790, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 13790, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr185__pyx_v_line); __pyx_10genexpr185__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr185__pyx_v_line); __pyx_10genexpr185__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13790, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_accessPolicyWindow, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13790, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13790, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13790, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13790, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13789
 *             except ValueError:
 *                 str_list += ['pad : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessPolicyWindow :\n' + '\n'.join(['    ' + line for line in str(self.accessPolicyWindow).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13791
 *             try:
 *                 str_list += ['accessPolicyWindow :\n' + '\n'.join(['    ' + line for line in str(self.accessPolicyWindow).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessPolicyWindow : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 13791, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13792
 *                 str_list += ['accessPolicyWindow :\n' + '\n'.join(['    ' + line for line in str(self.accessPolicyWindow).splitlines()])]
 *             except ValueError:
 *                 str_list += ['accessPolicyWindow : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['cooperative : ' + str(self.cooperative)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13792, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_accessPolicyWindow_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_accessPolicyWindow_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_accessPolicyWindow_ValueError) != (0)) __PYX_ERR(0, 13792, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13792, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":13789
 *             except ValueError:
 *                 str_list += ['pad : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['accessPolicyWindow :\n' + '\n'.join(['    ' + line for line in str(self.accessPolicyWindow).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13793
 *             except ValueError:
 *                 str_list += ['accessPolicyWindow : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cooperative : ' + str(self.cooperative)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13794
 *                 str_list += ['accessPolicyWindow : <ValueError>']
 *             try:
 *                 str_list += ['cooperative : ' + str(self.cooperative)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['cooperative : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_cooperative_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13794, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13794, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cooperative, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13794, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13794, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 13794, __pyx_L27_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13794, __pyx_L27_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":13793
 *             except ValueError:
 *                 str_list += ['accessPolicyWindow : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cooperative : ' + str(self.cooperative)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L32_try_end;
      __pyx_L27_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13795
 *             try:
 *                 str_list += ['cooperative : ' + str(self.cooperative)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['cooperative : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 13795, __pyx_L29_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13796
 *                 str_list += ['cooperative : ' + str(self.cooperative)]
 *             except ValueError:
 *                 str_list += ['cooperative : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['syncPolicy : ' + str(self.syncPolicy)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13796, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_cooperative_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_cooperative_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_cooperative_ValueError) != (0)) __PYX_ERR(0, 13796, __pyx_L29_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13796, __pyx_L29_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L28_exception_handled;
      }
      goto __pyx_L29_except_error;

      /* "cuda/bindings/runtime.pyx":13793
 *             except ValueError:
 *                 str_list += ['accessPolicyWindow : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['cooperative : ' + str(self.cooperative)]
 *             except ValueError:
*/
      __pyx_L29_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L28_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L32_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13797
 *             except ValueError:
 *                 str_list += ['cooperative : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['syncPolicy : ' + str(self.syncPolicy)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13798
 *                 str_list += ['cooperative : <ValueError>']
 *             try:
 *                 str_list += ['syncPolicy : ' + str(self.syncPolicy)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['syncPolicy : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_syncPolicy_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13798, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13798, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_syncPolicy, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13798, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13798, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13798, __pyx_L35_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13798, __pyx_L35_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13797
 *             except ValueError:
 *                 str_list += ['cooperative : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['syncPolicy : ' + str(self.syncPolicy)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L40_try_end;
      __pyx_L35_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13799
 *             try:
 *                 str_list += ['syncPolicy : ' + str(self.syncPolicy)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['syncPolicy : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 13799, __pyx_L37_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13800
 *                 str_list += ['syncPolicy : ' + str(self.syncPolicy)]
 *             except ValueError:
 *                 str_list += ['syncPolicy : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['clusterDim :\n' + '\n'.join(['    ' + line for line in str(self.clusterDim).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13800, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_syncPolicy_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_syncPolicy_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_syncPolicy_ValueError) != (0)) __PYX_ERR(0, 13800, __pyx_L37_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13800, __pyx_L37_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L36_exception_handled;
      }
      goto __pyx_L37_except_error;

      /* "cuda/bindings/runtime.pyx":13797
 *             except ValueError:
 *                 str_list += ['cooperative : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['syncPolicy : ' + str(self.syncPolicy)]
 *             except ValueError:
*/
      __pyx_L37_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L36_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L40_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13801
 *             except ValueError:
 *                 str_list += ['syncPolicy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterDim :\n' + '\n'.join(['    ' + line for line in str(self.clusterDim).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13802
 *                 str_list += ['syncPolicy : <ValueError>']
 *             try:
 *                 str_list += ['clusterDim :\n' + '\n'.join(['    ' + line for line in str(self.clusterDim).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['clusterDim : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13802, __pyx_L51_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_clusterDim_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13802, __pyx_L51_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13802, __pyx_L51_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13802, __pyx_L51_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13802, __pyx_L51_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13802, __pyx_L51_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr186__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr186__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13802, __pyx_L51_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 13802, __pyx_L51_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr186__pyx_v_line); __pyx_10genexpr186__pyx_v_line = 0;
          goto __pyx_L55_exit_scope;
          __pyx_L51_error:;
          __Pyx_XDECREF(__pyx_10genexpr186__pyx_v_line); __pyx_10genexpr186__pyx_v_line = 0;
          goto __pyx_L43_error;
          __pyx_L55_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13802, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_clusterDim, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13802, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13802, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 13802, __pyx_L43_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13802, __pyx_L43_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":13801
 *             except ValueError:
 *                 str_list += ['syncPolicy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterDim :\n' + '\n'.join(['    ' + line for line in str(self.clusterDim).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L48_try_end;
      __pyx_L43_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13803
 *             try:
 *                 str_list += ['clusterDim :\n' + '\n'.join(['    ' + line for line in str(self.clusterDim).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterDim : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 13803, __pyx_L45_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13804
 *                 str_list += ['clusterDim :\n' + '\n'.join(['    ' + line for line in str(self.clusterDim).splitlines()])]
 *             except ValueError:
 *                 str_list += ['clusterDim : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13804, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_clusterDim_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_clusterDim_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_clusterDim_ValueError) != (0)) __PYX_ERR(0, 13804, __pyx_L45_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13804, __pyx_L45_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L44_exception_handled;
      }
      goto __pyx_L45_except_error;

      /* "cuda/bindings/runtime.pyx":13801
 *             except ValueError:
 *                 str_list += ['syncPolicy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterDim :\n' + '\n'.join(['    ' + line for line in str(self.clusterDim).splitlines()])]
 *             except ValueError:
*/
      __pyx_L45_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L44_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L48_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13805
 *             except ValueError:
 *                 str_list += ['clusterDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13806
 *                 str_list += ['clusterDim : <ValueError>']
 *             try:
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_clusterSchedulingPolicyPreferenc_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13806, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13806, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13806, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13806, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13806, __pyx_L58_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13806, __pyx_L58_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13805
 *             except ValueError:
 *                 str_list += ['clusterDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L63_try_end;
      __pyx_L58_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13807
 *             try:
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 13807, __pyx_L60_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13808
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13808, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_clusterSchedulingPolicyPreferenc_3) != (0)) __PYX_ERR(0, 13808, __pyx_L60_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13808, __pyx_L60_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L59_exception_handled;
      }
      goto __pyx_L60_except_error;

      /* "cuda/bindings/runtime.pyx":13805
 *             except ValueError:
 *                 str_list += ['clusterDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)]
 *             except ValueError:
*/
      __pyx_L60_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L59_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L63_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13809
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13810
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:
 *                 str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['programmaticStreamSerializationAllowed : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_programmaticStreamSerializationA_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13810, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13810, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_programmaticStreamSerializationA, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13810, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13810, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 13810, __pyx_L66_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13810, __pyx_L66_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":13809
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L71_try_end;
      __pyx_L66_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13811
 *             try:
 *                 str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['programmaticStreamSerializationAllowed : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 13811, __pyx_L68_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13812
 *                 str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)]
 *             except ValueError:
 *                 str_list += ['programmaticStreamSerializationAllowed : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['programmaticEvent :\n' + '\n'.join(['    ' + line for line in str(self.programmaticEvent).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13812, __pyx_L68_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_programmaticStreamSerializationA_3);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_programmaticStreamSerializationA_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_programmaticStreamSerializationA_3) != (0)) __PYX_ERR(0, 13812, __pyx_L68_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13812, __pyx_L68_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L67_exception_handled;
      }
      goto __pyx_L68_except_error;

      /* "cuda/bindings/runtime.pyx":13809
 *             except ValueError:
 *                 str_list += ['clusterSchedulingPolicyPreference : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)]
 *             except ValueError:
*/
      __pyx_L68_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L67_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L71_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13813
 *             except ValueError:
 *                 str_list += ['programmaticStreamSerializationAllowed : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['programmaticEvent :\n' + '\n'.join(['    ' + line for line in str(self.programmaticEvent).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13814
 *                 str_list += ['programmaticStreamSerializationAllowed : <ValueError>']
 *             try:
 *                 str_list += ['programmaticEvent :\n' + '\n'.join(['    ' + line for line in str(self.programmaticEvent).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['programmaticEvent : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13814, __pyx_L82_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_programmaticEvent_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13814, __pyx_L82_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13814, __pyx_L82_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13814, __pyx_L82_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_8; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13814, __pyx_L82_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13814, __pyx_L82_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_10genexpr187__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr187__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13814, __pyx_L82_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 13814, __pyx_L82_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr187__pyx_v_line); __pyx_10genexpr187__pyx_v_line = 0;
          goto __pyx_L86_exit_scope;
          __pyx_L82_error:;
          __Pyx_XDECREF(__pyx_10genexpr187__pyx_v_line); __pyx_10genexpr187__pyx_v_line = 0;
          goto __pyx_L74_error;
          __pyx_L86_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13814, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_programmaticEvent, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13814, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13814, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13814, __pyx_L74_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13814, __pyx_L74_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13813
 *             except ValueError:
 *                 str_list += ['programmaticStreamSerializationAllowed : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['programmaticEvent :\n' + '\n'.join(['    ' + line for line in str(self.programmaticEvent).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L79_try_end;
      __pyx_L74_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13815
 *             try:
 *                 str_list += ['programmaticEvent :\n' + '\n'.join(['    ' + line for line in str(self.programmaticEvent).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['programmaticEvent : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13815, __pyx_L76_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13816
 *                 str_list += ['programmaticEvent :\n' + '\n'.join(['    ' + line for line in str(self.programmaticEvent).splitlines()])]
 *             except ValueError:
 *                 str_list += ['programmaticEvent : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['priority : ' + str(self.priority)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13816, __pyx_L76_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_programmaticEvent_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_programmaticEvent_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_programmaticEvent_ValueError) != (0)) __PYX_ERR(0, 13816, __pyx_L76_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13816, __pyx_L76_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L75_exception_handled;
      }
      goto __pyx_L76_except_error;

      /* "cuda/bindings/runtime.pyx":13813
 *             except ValueError:
 *                 str_list += ['programmaticStreamSerializationAllowed : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['programmaticEvent :\n' + '\n'.join(['    ' + line for line in str(self.programmaticEvent).splitlines()])]
 *             except ValueError:
*/
      __pyx_L76_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L75_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L79_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13817
 *             except ValueError:
 *                 str_list += ['programmaticEvent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['priority : ' + str(self.priority)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13818
 *                 str_list += ['programmaticEvent : <ValueError>']
 *             try:
 *                 str_list += ['priority : ' + str(self.priority)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['priority : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_priority_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13818, __pyx_L89_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13818, __pyx_L89_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_priority, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13818, __pyx_L89_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13818, __pyx_L89_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13818, __pyx_L89_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13818, __pyx_L89_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13817
 *             except ValueError:
 *                 str_list += ['programmaticEvent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['priority : ' + str(self.priority)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L94_try_end;
      __pyx_L89_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13819
 *             try:
 *                 str_list += ['priority : ' + str(self.priority)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['priority : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 13819, __pyx_L91_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13820
 *                 str_list += ['priority : ' + str(self.priority)]
 *             except ValueError:
 *                 str_list += ['priority : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['memSyncDomainMap :\n' + '\n'.join(['    ' + line for line in str(self.memSyncDomainMap).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13820, __pyx_L91_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_priority_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_priority_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_priority_ValueError) != (0)) __PYX_ERR(0, 13820, __pyx_L91_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13820, __pyx_L91_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L90_exception_handled;
      }
      goto __pyx_L91_except_error;

      /* "cuda/bindings/runtime.pyx":13817
 *             except ValueError:
 *                 str_list += ['programmaticEvent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['priority : ' + str(self.priority)]
 *             except ValueError:
*/
      __pyx_L91_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L90_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L94_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13821
 *             except ValueError:
 *                 str_list += ['priority : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memSyncDomainMap :\n' + '\n'.join(['    ' + line for line in str(self.memSyncDomainMap).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13822
 *                 str_list += ['priority : <ValueError>']
 *             try:
 *                 str_list += ['memSyncDomainMap :\n' + '\n'.join(['    ' + line for line in str(self.memSyncDomainMap).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['memSyncDomainMap : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13822, __pyx_L105_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_memSyncDomainMap_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13822, __pyx_L105_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13822, __pyx_L105_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13822, __pyx_L105_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_6; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13822, __pyx_L105_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13822, __pyx_L105_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr188__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr188__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13822, __pyx_L105_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 13822, __pyx_L105_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr188__pyx_v_line); __pyx_10genexpr188__pyx_v_line = 0;
          goto __pyx_L109_exit_scope;
          __pyx_L105_error:;
          __Pyx_XDECREF(__pyx_10genexpr188__pyx_v_line); __pyx_10genexpr188__pyx_v_line = 0;
          goto __pyx_L97_error;
          __pyx_L109_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13822, __pyx_L97_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_memSyncDomainMap, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13822, __pyx_L97_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13822, __pyx_L97_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13822, __pyx_L97_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13822, __pyx_L97_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13821
 *             except ValueError:
 *                 str_list += ['priority : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memSyncDomainMap :\n' + '\n'.join(['    ' + line for line in str(self.memSyncDomainMap).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L102_try_end;
      __pyx_L97_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13823
 *             try:
 *                 str_list += ['memSyncDomainMap :\n' + '\n'.join(['    ' + line for line in str(self.memSyncDomainMap).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['memSyncDomainMap : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 13823, __pyx_L99_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13824
 *                 str_list += ['memSyncDomainMap :\n' + '\n'.join(['    ' + line for line in str(self.memSyncDomainMap).splitlines()])]
 *             except ValueError:
 *                 str_list += ['memSyncDomainMap : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['memSyncDomain : ' + str(self.memSyncDomain)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13824, __pyx_L99_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_memSyncDomainMap_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_memSyncDomainMap_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_memSyncDomainMap_ValueError) != (0)) __PYX_ERR(0, 13824, __pyx_L99_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13824, __pyx_L99_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L98_exception_handled;
      }
      goto __pyx_L99_except_error;

      /* "cuda/bindings/runtime.pyx":13821
 *             except ValueError:
 *                 str_list += ['priority : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memSyncDomainMap :\n' + '\n'.join(['    ' + line for line in str(self.memSyncDomainMap).splitlines()])]
 *             except ValueError:
*/
      __pyx_L99_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L98_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L102_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13825
 *             except ValueError:
 *                 str_list += ['memSyncDomainMap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memSyncDomain : ' + str(self.memSyncDomain)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13826
 *                 str_list += ['memSyncDomainMap : <ValueError>']
 *             try:
 *                 str_list += ['memSyncDomain : ' + str(self.memSyncDomain)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['memSyncDomain : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_memSyncDomain_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13826, __pyx_L112_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13826, __pyx_L112_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_memSyncDomain, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13826, __pyx_L112_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13826, __pyx_L112_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 13826, __pyx_L112_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13826, __pyx_L112_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":13825
 *             except ValueError:
 *                 str_list += ['memSyncDomainMap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memSyncDomain : ' + str(self.memSyncDomain)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L117_try_end;
      __pyx_L112_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13827
 *             try:
 *                 str_list += ['memSyncDomain : ' + str(self.memSyncDomain)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['memSyncDomain : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 13827, __pyx_L114_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13828
 *                 str_list += ['memSyncDomain : ' + str(self.memSyncDomain)]
 *             except ValueError:
 *                 str_list += ['memSyncDomain : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['preferredClusterDim :\n' + '\n'.join(['    ' + line for line in str(self.preferredClusterDim).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13828, __pyx_L114_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_memSyncDomain_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_memSyncDomain_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_memSyncDomain_ValueError) != (0)) __PYX_ERR(0, 13828, __pyx_L114_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13828, __pyx_L114_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L113_exception_handled;
      }
      goto __pyx_L114_except_error;

      /* "cuda/bindings/runtime.pyx":13825
 *             except ValueError:
 *                 str_list += ['memSyncDomainMap : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['memSyncDomain : ' + str(self.memSyncDomain)]
 *             except ValueError:
*/
      __pyx_L114_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L113_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L117_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13829
 *             except ValueError:
 *                 str_list += ['memSyncDomain : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredClusterDim :\n' + '\n'.join(['    ' + line for line in str(self.preferredClusterDim).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13830
 *                 str_list += ['memSyncDomain : <ValueError>']
 *             try:
 *                 str_list += ['preferredClusterDim :\n' + '\n'.join(['    ' + line for line in str(self.preferredClusterDim).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['preferredClusterDim : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13830, __pyx_L128_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_preferredClusterDim_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13830, __pyx_L128_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13830, __pyx_L128_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = PyUnicode_Splitlines(((PyObject*)__pyx_t_6), 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13830, __pyx_L128_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = __pyx_t_8; __Pyx_INCREF(__pyx_t_6);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13830, __pyx_L128_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13830, __pyx_L128_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_10genexpr189__pyx_v_line, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr189__pyx_v_line); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13830, __pyx_L128_error)
            __Pyx_GOTREF(__pyx_t_8);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 13830, __pyx_L128_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_10genexpr189__pyx_v_line); __pyx_10genexpr189__pyx_v_line = 0;
          goto __pyx_L132_exit_scope;
          __pyx_L128_error:;
          __Pyx_XDECREF(__pyx_10genexpr189__pyx_v_line); __pyx_10genexpr189__pyx_v_line = 0;
          goto __pyx_L120_error;
          __pyx_L132_exit_scope:;
        } /* exit inner scope */
        __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13830, __pyx_L120_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_preferredClusterDim, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13830, __pyx_L120_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13830, __pyx_L120_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13830, __pyx_L120_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13830, __pyx_L120_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13829
 *             except ValueError:
 *                 str_list += ['memSyncDomain : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredClusterDim :\n' + '\n'.join(['    ' + line for line in str(self.preferredClusterDim).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L125_try_end;
      __pyx_L120_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13831
 *             try:
 *                 str_list += ['preferredClusterDim :\n' + '\n'.join(['    ' + line for line in str(self.preferredClusterDim).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredClusterDim : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13831, __pyx_L122_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":13832
 *                 str_list += ['preferredClusterDim :\n' + '\n'.join(['    ' + line for line in str(self.preferredClusterDim).splitlines()])]
 *             except ValueError:
 *                 str_list += ['preferredClusterDim : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['launchCompletionEvent :\n' + '\n'.join(['    ' + line for line in str(self.launchCompletionEvent).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13832, __pyx_L122_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_preferredClusterDim_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_preferredClusterDim_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_preferredClusterDim_ValueError) != (0)) __PYX_ERR(0, 13832, __pyx_L122_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13832, __pyx_L122_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L121_exception_handled;
      }
      goto __pyx_L122_except_error;

      /* "cuda/bindings/runtime.pyx":13829
 *             except ValueError:
 *                 str_list += ['memSyncDomain : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['preferredClusterDim :\n' + '\n'.join(['    ' + line for line in str(self.preferredClusterDim).splitlines()])]
 *             except ValueError:
*/
      __pyx_L122_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L121_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L125_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13833
 *             except ValueError:
 *                 str_list += ['preferredClusterDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['launchCompletionEvent :\n' + '\n'.join(['    ' + line for line in str(self.launchCompletionEvent).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13834
 *                 str_list += ['preferredClusterDim : <ValueError>']
 *             try:
 *                 str_list += ['launchCompletionEvent :\n' + '\n'.join(['    ' + line for line in str(self.launchCompletionEvent).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['launchCompletionEvent : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13834, __pyx_L143_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_launchCompletionEvent_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13834, __pyx_L143_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13834, __pyx_L143_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13834, __pyx_L143_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13834, __pyx_L143_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13834, __pyx_L143_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr190__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr190__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13834, __pyx_L143_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 13834, __pyx_L143_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr190__pyx_v_line); __pyx_10genexpr190__pyx_v_line = 0;
          goto __pyx_L147_exit_scope;
          __pyx_L143_error:;
          __Pyx_XDECREF(__pyx_10genexpr190__pyx_v_line); __pyx_10genexpr190__pyx_v_line = 0;
          goto __pyx_L135_error;
          __pyx_L147_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13834, __pyx_L135_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_launchCompletionEvent, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13834, __pyx_L135_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13834, __pyx_L135_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 13834, __pyx_L135_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13834, __pyx_L135_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":13833
 *             except ValueError:
 *                 str_list += ['preferredClusterDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['launchCompletionEvent :\n' + '\n'.join(['    ' + line for line in str(self.launchCompletionEvent).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L140_try_end;
      __pyx_L135_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13835
 *             try:
 *                 str_list += ['launchCompletionEvent :\n' + '\n'.join(['    ' + line for line in str(self.launchCompletionEvent).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['launchCompletionEvent : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 13835, __pyx_L137_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13836
 *                 str_list += ['launchCompletionEvent :\n' + '\n'.join(['    ' + line for line in str(self.launchCompletionEvent).splitlines()])]
 *             except ValueError:
 *                 str_list += ['launchCompletionEvent : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join(['    ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13836, __pyx_L137_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_launchCompletionEvent_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_launchCompletionEvent_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_launchCompletionEvent_ValueError) != (0)) __PYX_ERR(0, 13836, __pyx_L137_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13836, __pyx_L137_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L136_exception_handled;
      }
      goto __pyx_L137_except_error;

      /* "cuda/bindings/runtime.pyx":13833
 *             except ValueError:
 *                 str_list += ['preferredClusterDim : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['launchCompletionEvent :\n' + '\n'.join(['    ' + line for line in str(self.launchCompletionEvent).splitlines()])]
 *             except ValueError:
*/
      __pyx_L137_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L136_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L140_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13837
 *             except ValueError:
 *                 str_list += ['launchCompletionEvent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join(['    ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13838
 *                 str_list += ['launchCompletionEvent : <ValueError>']
 *             try:
 *                 str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join(['    ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['deviceUpdatableKernelNode : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13838, __pyx_L158_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_deviceUpdatableKernelNode_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13838, __pyx_L158_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13838, __pyx_L158_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = PyUnicode_Splitlines(((PyObject*)__pyx_t_8), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13838, __pyx_L158_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_8 = __pyx_t_2; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13838, __pyx_L158_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13838, __pyx_L158_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_XDECREF_SET(__pyx_10genexpr191__pyx_v_line, __pyx_t_2);
            __pyx_t_2 = 0;
            __pyx_t_2 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr191__pyx_v_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13838, __pyx_L158_error)
            __Pyx_GOTREF(__pyx_t_2);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 13838, __pyx_L158_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_10genexpr191__pyx_v_line); __pyx_10genexpr191__pyx_v_line = 0;
          goto __pyx_L162_exit_scope;
          __pyx_L158_error:;
          __Pyx_XDECREF(__pyx_10genexpr191__pyx_v_line); __pyx_10genexpr191__pyx_v_line = 0;
          goto __pyx_L150_error;
          __pyx_L162_exit_scope:;
        } /* exit inner scope */
        __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13838, __pyx_L150_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_deviceUpdatableKernelNode, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13838, __pyx_L150_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13838, __pyx_L150_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 13838, __pyx_L150_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13838, __pyx_L150_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":13837
 *             except ValueError:
 *                 str_list += ['launchCompletionEvent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join(['    ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L155_try_end;
      __pyx_L150_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13839
 *             try:
 *                 str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join(['    ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceUpdatableKernelNode : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 13839, __pyx_L152_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13840
 *                 str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join(['    ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])]
 *             except ValueError:
 *                 str_list += ['deviceUpdatableKernelNode : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13840, __pyx_L152_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_deviceUpdatableKernelNode_ValueE);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_deviceUpdatableKernelNode_ValueE);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_deviceUpdatableKernelNode_ValueE) != (0)) __PYX_ERR(0, 13840, __pyx_L152_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13840, __pyx_L152_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L151_exception_handled;
      }
      goto __pyx_L152_except_error;

      /* "cuda/bindings/runtime.pyx":13837
 *             except ValueError:
 *                 str_list += ['launchCompletionEvent : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join(['    ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])]
 *             except ValueError:
*/
      __pyx_L152_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L151_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L155_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13841
 *             except ValueError:
 *                 str_list += ['deviceUpdatableKernelNode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13842
 *                 str_list += ['deviceUpdatableKernelNode : <ValueError>']
 *             try:
 *                 str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sharedMemCarveout : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sharedMemCarveout_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13842, __pyx_L165_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13842, __pyx_L165_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sharedMemCarveout, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13842, __pyx_L165_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13842, __pyx_L165_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13842, __pyx_L165_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13842, __pyx_L165_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13841
 *             except ValueError:
 *                 str_list += ['deviceUpdatableKernelNode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L170_try_end;
      __pyx_L165_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13843
 *             try:
 *                 str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemCarveout : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 13843, __pyx_L167_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":13844
 *                 str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)]
 *             except ValueError:
 *                 str_list += ['sharedMemCarveout : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13844, __pyx_L167_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sharedMemCarveout_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sharedMemCarveout_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_sharedMemCarveout_ValueError) != (0)) __PYX_ERR(0, 13844, __pyx_L167_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13844, __pyx_L167_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L166_exception_handled;
      }
      goto __pyx_L167_except_error;

      /* "cuda/bindings/runtime.pyx":13841
 *             except ValueError:
 *                 str_list += ['deviceUpdatableKernelNode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)]
 *             except ValueError:
*/
      __pyx_L167_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L166_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L170_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13845
 *             except ValueError:
 *                 str_list += ['sharedMemCarveout : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13846
 *                 str_list += ['sharedMemCarveout : <ValueError>']
 *             try:
 *                 str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['nvlinkUtilCentricScheduling : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_nvlinkUtilCentricScheduling_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13846, __pyx_L173_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13846, __pyx_L173_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_nvlinkUtilCentricScheduling, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13846, __pyx_L173_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13846, __pyx_L173_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 13846, __pyx_L173_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13846, __pyx_L173_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":13845
 *             except ValueError:
 *                 str_list += ['sharedMemCarveout : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L178_try_end;
      __pyx_L173_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":13847
 *             try:
 *                 str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvlinkUtilCentricScheduling : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_2) < 0) __PYX_ERR(0, 13847, __pyx_L175_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":13848
 *                 str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)]
 *             except ValueError:
 *                 str_list += ['nvlinkUtilCentricScheduling : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 13848, __pyx_L175_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_nvlinkUtilCentricScheduling_Valu);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_nvlinkUtilCentricScheduling_Valu);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_nvlinkUtilCentricScheduling_Valu) != (0)) __PYX_ERR(0, 13848, __pyx_L175_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 13848, __pyx_L175_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L174_exception_handled;
      }
      goto __pyx_L175_except_error;

      /* "cuda/bindings/runtime.pyx":13845
 *             except ValueError:
 *                 str_list += ['sharedMemCarveout : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)]
 *             except ValueError:
*/
      __pyx_L175_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L174_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L178_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":13849
 *             except ValueError:
 *                 str_list += ['nvlinkUtilCentricScheduling : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13783
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":13851
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def pad(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13782
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr185__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr186__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr187__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr188__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr189__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr190__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr191__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13852
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def pad(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].pad, 64)
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13854
 *     @property
 *     def pad(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].pad, 64)             # <<<<<<<<<<<<<<
 *     @pad.setter
 *     def pad(self, pad):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyBytes_FromStringAndSize((__pyx_v_self->_pvt_ptr[0]).pad, 64); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13852
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def pad(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].pad, 64)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.pad.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13855
 *     def pad(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].pad, 64)
 *     @pad.setter             # <<<<<<<<<<<<<<
 *     def pad(self, pad):
 *         if len(pad) != 64:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pad); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pad) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((PyObject *)__pyx_v_pad));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_pad) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_b = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_t_9;
  char __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13857
 *     @pad.setter
 *     def pad(self, pad):
 *         if len(pad) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("pad length must be 64, is " + str(len(pad)))
 *         if CHAR_MIN == 0:
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_pad); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 13857, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 64);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":13858
 *     def pad(self, pad):
 *         if len(pad) != 64:
 *             raise ValueError("pad length must be 64, is " + str(len(pad)))             # <<<<<<<<<<<<<<
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(pad):
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = PyObject_Length(__pyx_v_pad); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 13858, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13858, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13858, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pad_length_must_be_64_is, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13858, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13858, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 13858, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":13857
 *     @pad.setter
 *     def pad(self, pad):
 *         if len(pad) != 64:             # <<<<<<<<<<<<<<
 *             raise ValueError("pad length must be 64, is " + str(len(pad)))
 *         if CHAR_MIN == 0:
*/
  }

  /* "cuda/bindings/runtime.pyx":13859
 *         if len(pad) != 64:
 *             raise ValueError("pad length must be 64, is " + str(len(pad)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(pad):
 *                 if b < 0 and b > -129:
*/
  __pyx_t_2 = (CHAR_MIN == 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":13860
 *             raise ValueError("pad length must be 64, is " + str(len(pad)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(pad):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_pad)) || PyTuple_CheckExact(__pyx_v_pad)) {
      __pyx_t_5 = __pyx_v_pad; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_pad); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13860, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13860, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13860, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13860, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13860, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 13860, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13860, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":13861
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(pad):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].pad[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13861, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 13861, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_neg_129, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13861, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 13861, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L8_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":13862
 *             for i, b in enumerate(pad):
 *                 if b < 0 and b > -129:
 *                     b = b + 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].pad[i] = b
 *         else:
*/
        __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13862, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":13861
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(pad):
 *                 if b < 0 and b > -129:             # <<<<<<<<<<<<<<
 *                     b = b + 256
 *                 self._pvt_ptr[0].pad[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":13863
 *                 if b < 0 and b > -129:
 *                     b = b + 256
 *                 self._pvt_ptr[0].pad[i] = b             # <<<<<<<<<<<<<<
 *         else:
 *             for i, b in enumerate(pad):
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 13863, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 13863, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).pad[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":13860
 *             raise ValueError("pad length must be 64, is " + str(len(pad)))
 *         if CHAR_MIN == 0:
 *             for i, b in enumerate(pad):             # <<<<<<<<<<<<<<
 *                 if b < 0 and b > -129:
 *                     b = b + 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":13859
 *         if len(pad) != 64:
 *             raise ValueError("pad length must be 64, is " + str(len(pad)))
 *         if CHAR_MIN == 0:             # <<<<<<<<<<<<<<
 *             for i, b in enumerate(pad):
 *                 if b < 0 and b > -129:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":13865
 *                 self._pvt_ptr[0].pad[i] = b
 *         else:
 *             for i, b in enumerate(pad):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_pad)) || PyTuple_CheckExact(__pyx_v_pad)) {
      __pyx_t_5 = __pyx_v_pad; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_1 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_pad); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13865, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 13865, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13865, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 13865, __pyx_L1_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13865, __pyx_L1_error)
      } else {
        __pyx_t_4 = __pyx_t_8(__pyx_t_5);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 13865, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13865, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cuda/bindings/runtime.pyx":13866
 *         else:
 *             for i, b in enumerate(pad):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].pad[i] = b
*/
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_127, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13866, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 13866, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_2 = __pyx_t_9;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13866, __pyx_L1_error)
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 13866, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_2 = __pyx_t_9;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_2) {

        /* "cuda/bindings/runtime.pyx":13867
 *             for i, b in enumerate(pad):
 *                 if b > 127 and b < 256:
 *                     b = b - 256             # <<<<<<<<<<<<<<
 *                 self._pvt_ptr[0].pad[i] = b
 *     @property
*/
        __pyx_t_4 = __Pyx_PyLong_SubtractObjC(__pyx_v_b, __pyx_mstate_global->__pyx_int_256, 0x100, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13867, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_b, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cuda/bindings/runtime.pyx":13866
 *         else:
 *             for i, b in enumerate(pad):
 *                 if b > 127 and b < 256:             # <<<<<<<<<<<<<<
 *                     b = b - 256
 *                 self._pvt_ptr[0].pad[i] = b
*/
      }

      /* "cuda/bindings/runtime.pyx":13868
 *                 if b > 127 and b < 256:
 *                     b = b - 256
 *                 self._pvt_ptr[0].pad[i] = b             # <<<<<<<<<<<<<<
 *     @property
 *     def accessPolicyWindow(self):
*/
      __pyx_t_10 = __Pyx_PyLong_As_char(__pyx_v_b); if (unlikely((__pyx_t_10 == (char)-1) && PyErr_Occurred())) __PYX_ERR(0, 13868, __pyx_L1_error)
      __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 13868, __pyx_L1_error)
      ((__pyx_v_self->_pvt_ptr[0]).pad[__pyx_t_11]) = __pyx_t_10;

      /* "cuda/bindings/runtime.pyx":13865
 *                 self._pvt_ptr[0].pad[i] = b
 *         else:
 *             for i, b in enumerate(pad):             # <<<<<<<<<<<<<<
 *                 if b > 127 and b < 256:
 *                     b = b - 256
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":13855
 *     def pad(self):
 *         return PyBytes_FromStringAndSize(self._pvt_ptr[0].pad, 64)
 *     @pad.setter             # <<<<<<<<<<<<<<
 *     def pad(self, pad):
 *         if len(pad) != 64:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.pad.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13869
 *                     b = b - 256
 *                 self._pvt_ptr[0].pad[i] = b
 *     @property             # <<<<<<<<<<<<<<
 *     def accessPolicyWindow(self):
 *         return self._accessPolicyWindow
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13871
 *     @property
 *     def accessPolicyWindow(self):
 *         return self._accessPolicyWindow             # <<<<<<<<<<<<<<
 *     @accessPolicyWindow.setter
 *     def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_accessPolicyWindow);
  __pyx_r = ((PyObject *)__pyx_v_self->_accessPolicyWindow);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13869
 *                     b = b - 256
 *                 self._pvt_ptr[0].pad[i] = b
 *     @property             # <<<<<<<<<<<<<<
 *     def accessPolicyWindow(self):
 *         return self._accessPolicyWindow
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13872
 *     def accessPolicyWindow(self):
 *         return self._accessPolicyWindow
 *     @accessPolicyWindow.setter             # <<<<<<<<<<<<<<
 *     def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow):
 *         string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, <cyruntime.cudaAccessPolicyWindow*><void_ptr>accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_accessPolicyWindow); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_accessPolicyWindow) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_accessPolicyWindow), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow, 0, "accessPolicyWindow", 0))) __PYX_ERR(0, 13873, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)__pyx_v_accessPolicyWindow));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *__pyx_v_accessPolicyWindow) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13874
 *     @accessPolicyWindow.setter
 *     def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow):
 *         string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, <cyruntime.cudaAccessPolicyWindow*><void_ptr>accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow))             # <<<<<<<<<<<<<<
 *     @property
 *     def cooperative(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_accessPolicyWindow);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13874, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13874, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).accessPolicyWindow), ((struct cudaAccessPolicyWindow *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).accessPolicyWindow))));

  /* "cuda/bindings/runtime.pyx":13872
 *     def accessPolicyWindow(self):
 *         return self._accessPolicyWindow
 *     @accessPolicyWindow.setter             # <<<<<<<<<<<<<<
 *     def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow):
 *         string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, <cyruntime.cudaAccessPolicyWindow*><void_ptr>accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.accessPolicyWindow.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13875
 *     def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow):
 *         string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, <cyruntime.cudaAccessPolicyWindow*><void_ptr>accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow))
 *     @property             # <<<<<<<<<<<<<<
 *     def cooperative(self):
 *         return self._pvt_ptr[0].cooperative
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13877
 *     @property
 *     def cooperative(self):
 *         return self._pvt_ptr[0].cooperative             # <<<<<<<<<<<<<<
 *     @cooperative.setter
 *     def cooperative(self, int cooperative):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).cooperative); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13875
 *     def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow):
 *         string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, <cyruntime.cudaAccessPolicyWindow*><void_ptr>accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow))
 *     @property             # <<<<<<<<<<<<<<
 *     def cooperative(self):
 *         return self._pvt_ptr[0].cooperative
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.cooperative.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13878
 *     def cooperative(self):
 *         return self._pvt_ptr[0].cooperative
 *     @cooperative.setter             # <<<<<<<<<<<<<<
 *     def cooperative(self, int cooperative):
 *         self._pvt_ptr[0].cooperative = cooperative
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cooperative); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_cooperative) {
  int __pyx_v_cooperative;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_cooperative); {
    __pyx_v_cooperative = __Pyx_PyLong_As_int(__pyx_arg_cooperative); if (unlikely((__pyx_v_cooperative == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13879, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.cooperative.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((int)__pyx_v_cooperative));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_cooperative) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13880
 *     @cooperative.setter
 *     def cooperative(self, int cooperative):
 *         self._pvt_ptr[0].cooperative = cooperative             # <<<<<<<<<<<<<<
 *     @property
 *     def syncPolicy(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).cooperative = __pyx_v_cooperative;

  /* "cuda/bindings/runtime.pyx":13878
 *     def cooperative(self):
 *         return self._pvt_ptr[0].cooperative
 *     @cooperative.setter             # <<<<<<<<<<<<<<
 *     def cooperative(self, int cooperative):
 *         self._pvt_ptr[0].cooperative = cooperative
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13881
 *     def cooperative(self, int cooperative):
 *         self._pvt_ptr[0].cooperative = cooperative
 *     @property             # <<<<<<<<<<<<<<
 *     def syncPolicy(self):
 *         if self._pvt_ptr[0].syncPolicy not in _dict_cudaSynchronizationPolicy:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13883
 *     @property
 *     def syncPolicy(self):
 *         if self._pvt_ptr[0].syncPolicy not in _dict_cudaSynchronizationPolicy:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaSynchronizationPolicy[self._pvt_ptr[0].syncPolicy]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaSynchronizationPolicy((__pyx_v_self->_pvt_ptr[0]).syncPolicy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaSynchronizationPolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 13883, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":13884
 *     def syncPolicy(self):
 *         if self._pvt_ptr[0].syncPolicy not in _dict_cudaSynchronizationPolicy:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaSynchronizationPolicy[self._pvt_ptr[0].syncPolicy]
 *     @syncPolicy.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13883
 *     @property
 *     def syncPolicy(self):
 *         if self._pvt_ptr[0].syncPolicy not in _dict_cudaSynchronizationPolicy:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaSynchronizationPolicy[self._pvt_ptr[0].syncPolicy]
*/
  }

  /* "cuda/bindings/runtime.pyx":13885
 *         if self._pvt_ptr[0].syncPolicy not in _dict_cudaSynchronizationPolicy:
 *             return None
 *         return _dict_cudaSynchronizationPolicy[self._pvt_ptr[0].syncPolicy]             # <<<<<<<<<<<<<<
 *     @syncPolicy.setter
 *     def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaSynchronizationPolicy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaSynchronizationPolicy((__pyx_v_self->_pvt_ptr[0]).syncPolicy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13881
 *     def cooperative(self, int cooperative):
 *         self._pvt_ptr[0].cooperative = cooperative
 *     @property             # <<<<<<<<<<<<<<
 *     def syncPolicy(self):
 *         if self._pvt_ptr[0].syncPolicy not in _dict_cudaSynchronizationPolicy:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.syncPolicy.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13886
 *             return None
 *         return _dict_cudaSynchronizationPolicy[self._pvt_ptr[0].syncPolicy]
 *     @syncPolicy.setter             # <<<<<<<<<<<<<<
 *     def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy):
 *         self._pvt_ptr[0].syncPolicy = syncPolicy.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_syncPolicy); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_syncPolicy) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_syncPolicy) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "syncPolicy"); __PYX_ERR(0, 13887, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((PyObject *)__pyx_v_syncPolicy));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_syncPolicy) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaSynchronizationPolicy __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13888
 *     @syncPolicy.setter
 *     def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy):
 *         self._pvt_ptr[0].syncPolicy = syncPolicy.value             # <<<<<<<<<<<<<<
 *     @property
 *     def clusterDim(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_syncPolicy, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaSynchronizationPolicy)__Pyx_PyLong_As_enum__cudaSynchronizationPolicy(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13888, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).syncPolicy = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":13886
 *             return None
 *         return _dict_cudaSynchronizationPolicy[self._pvt_ptr[0].syncPolicy]
 *     @syncPolicy.setter             # <<<<<<<<<<<<<<
 *     def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy):
 *         self._pvt_ptr[0].syncPolicy = syncPolicy.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.syncPolicy.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13889
 *     def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy):
 *         self._pvt_ptr[0].syncPolicy = syncPolicy.value
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterDim(self):
 *         return self._clusterDim
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13891
 *     @property
 *     def clusterDim(self):
 *         return self._clusterDim             # <<<<<<<<<<<<<<
 *     @clusterDim.setter
 *     def clusterDim(self, clusterDim not None : anon_struct17):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_clusterDim);
  __pyx_r = ((PyObject *)__pyx_v_self->_clusterDim);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13889
 *     def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy):
 *         self._pvt_ptr[0].syncPolicy = syncPolicy.value
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterDim(self):
 *         return self._clusterDim
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13892
 *     def clusterDim(self):
 *         return self._clusterDim
 *     @clusterDim.setter             # <<<<<<<<<<<<<<
 *     def clusterDim(self, clusterDim not None : anon_struct17):
 *         string.memcpy(&self._pvt_ptr[0].clusterDim, <cyruntime.anon_struct17*><void_ptr>clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_clusterDim); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_clusterDim) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_clusterDim), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17, 0, "clusterDim", 0))) __PYX_ERR(0, 13893, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)__pyx_v_clusterDim));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *__pyx_v_clusterDim) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13894
 *     @clusterDim.setter
 *     def clusterDim(self, clusterDim not None : anon_struct17):
 *         string.memcpy(&self._pvt_ptr[0].clusterDim, <cyruntime.anon_struct17*><void_ptr>clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim))             # <<<<<<<<<<<<<<
 *     @property
 *     def clusterSchedulingPolicyPreference(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_clusterDim);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13894, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13894, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).clusterDim), ((struct anon_struct17 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).clusterDim))));

  /* "cuda/bindings/runtime.pyx":13892
 *     def clusterDim(self):
 *         return self._clusterDim
 *     @clusterDim.setter             # <<<<<<<<<<<<<<
 *     def clusterDim(self, clusterDim not None : anon_struct17):
 *         string.memcpy(&self._pvt_ptr[0].clusterDim, <cyruntime.anon_struct17*><void_ptr>clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.clusterDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13895
 *     def clusterDim(self, clusterDim not None : anon_struct17):
 *         string.memcpy(&self._pvt_ptr[0].clusterDim, <cyruntime.anon_struct17*><void_ptr>clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterSchedulingPolicyPreference(self):
 *         if self._pvt_ptr[0].clusterSchedulingPolicyPreference not in _dict_cudaClusterSchedulingPolicy:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13897
 *     @property
 *     def clusterSchedulingPolicyPreference(self):
 *         if self._pvt_ptr[0].clusterSchedulingPolicyPreference not in _dict_cudaClusterSchedulingPolicy:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaClusterSchedulingPolicy[self._pvt_ptr[0].clusterSchedulingPolicyPreference]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaClusterSchedulingPolicy((__pyx_v_self->_pvt_ptr[0]).clusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaClusterSchedulingPolic); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 13897, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":13898
 *     def clusterSchedulingPolicyPreference(self):
 *         if self._pvt_ptr[0].clusterSchedulingPolicyPreference not in _dict_cudaClusterSchedulingPolicy:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaClusterSchedulingPolicy[self._pvt_ptr[0].clusterSchedulingPolicyPreference]
 *     @clusterSchedulingPolicyPreference.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13897
 *     @property
 *     def clusterSchedulingPolicyPreference(self):
 *         if self._pvt_ptr[0].clusterSchedulingPolicyPreference not in _dict_cudaClusterSchedulingPolicy:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaClusterSchedulingPolicy[self._pvt_ptr[0].clusterSchedulingPolicyPreference]
*/
  }

  /* "cuda/bindings/runtime.pyx":13899
 *         if self._pvt_ptr[0].clusterSchedulingPolicyPreference not in _dict_cudaClusterSchedulingPolicy:
 *             return None
 *         return _dict_cudaClusterSchedulingPolicy[self._pvt_ptr[0].clusterSchedulingPolicyPreference]             # <<<<<<<<<<<<<<
 *     @clusterSchedulingPolicyPreference.setter
 *     def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaClusterSchedulingPolic); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaClusterSchedulingPolicy((__pyx_v_self->_pvt_ptr[0]).clusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13895
 *     def clusterDim(self, clusterDim not None : anon_struct17):
 *         string.memcpy(&self._pvt_ptr[0].clusterDim, <cyruntime.anon_struct17*><void_ptr>clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def clusterSchedulingPolicyPreference(self):
 *         if self._pvt_ptr[0].clusterSchedulingPolicyPreference not in _dict_cudaClusterSchedulingPolicy:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13900
 *             return None
 *         return _dict_cudaClusterSchedulingPolicy[self._pvt_ptr[0].clusterSchedulingPolicyPreference]
 *     @clusterSchedulingPolicyPreference.setter             # <<<<<<<<<<<<<<
 *     def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_clusterSchedulingPolicyPreference); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_clusterSchedulingPolicyPreference) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_clusterSchedulingPolicyPreference) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "clusterSchedulingPolicyPreference"); __PYX_ERR(0, 13901, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((PyObject *)__pyx_v_clusterSchedulingPolicyPreference));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_clusterSchedulingPolicyPreference) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaClusterSchedulingPolicy __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13902
 *     @clusterSchedulingPolicyPreference.setter
 *     def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value             # <<<<<<<<<<<<<<
 *     @property
 *     def programmaticStreamSerializationAllowed(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_clusterSchedulingPolicyPreference, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaClusterSchedulingPolicy)__Pyx_PyLong_As_enum__cudaClusterSchedulingPolicy(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13902, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).clusterSchedulingPolicyPreference = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":13900
 *             return None
 *         return _dict_cudaClusterSchedulingPolicy[self._pvt_ptr[0].clusterSchedulingPolicyPreference]
 *     @clusterSchedulingPolicyPreference.setter             # <<<<<<<<<<<<<<
 *     def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13903
 *     def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value
 *     @property             # <<<<<<<<<<<<<<
 *     def programmaticStreamSerializationAllowed(self):
 *         return self._pvt_ptr[0].programmaticStreamSerializationAllowed
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13905
 *     @property
 *     def programmaticStreamSerializationAllowed(self):
 *         return self._pvt_ptr[0].programmaticStreamSerializationAllowed             # <<<<<<<<<<<<<<
 *     @programmaticStreamSerializationAllowed.setter
 *     def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).programmaticStreamSerializationAllowed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13903
 *     def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy):
 *         self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference.value
 *     @property             # <<<<<<<<<<<<<<
 *     def programmaticStreamSerializationAllowed(self):
 *         return self._pvt_ptr[0].programmaticStreamSerializationAllowed
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.programmaticStreamSerializationAllowed.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13906
 *     def programmaticStreamSerializationAllowed(self):
 *         return self._pvt_ptr[0].programmaticStreamSerializationAllowed
 *     @programmaticStreamSerializationAllowed.setter             # <<<<<<<<<<<<<<
 *     def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed):
 *         self._pvt_ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_programmaticStreamSerializationAllowed); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_programmaticStreamSerializationAllowed) {
  int __pyx_v_programmaticStreamSerializationAllowed;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_programmaticStreamSerializationAllowed); {
    __pyx_v_programmaticStreamSerializationAllowed = __Pyx_PyLong_As_int(__pyx_arg_programmaticStreamSerializationAllowed); if (unlikely((__pyx_v_programmaticStreamSerializationAllowed == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13907, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.programmaticStreamSerializationAllowed.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((int)__pyx_v_programmaticStreamSerializationAllowed));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_programmaticStreamSerializationAllowed) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13908
 *     @programmaticStreamSerializationAllowed.setter
 *     def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed):
 *         self._pvt_ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed             # <<<<<<<<<<<<<<
 *     @property
 *     def programmaticEvent(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).programmaticStreamSerializationAllowed = __pyx_v_programmaticStreamSerializationAllowed;

  /* "cuda/bindings/runtime.pyx":13906
 *     def programmaticStreamSerializationAllowed(self):
 *         return self._pvt_ptr[0].programmaticStreamSerializationAllowed
 *     @programmaticStreamSerializationAllowed.setter             # <<<<<<<<<<<<<<
 *     def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed):
 *         self._pvt_ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13909
 *     def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed):
 *         self._pvt_ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed
 *     @property             # <<<<<<<<<<<<<<
 *     def programmaticEvent(self):
 *         return self._programmaticEvent
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13911
 *     @property
 *     def programmaticEvent(self):
 *         return self._programmaticEvent             # <<<<<<<<<<<<<<
 *     @programmaticEvent.setter
 *     def programmaticEvent(self, programmaticEvent not None : anon_struct18):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_programmaticEvent);
  __pyx_r = ((PyObject *)__pyx_v_self->_programmaticEvent);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13909
 *     def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed):
 *         self._pvt_ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed
 *     @property             # <<<<<<<<<<<<<<
 *     def programmaticEvent(self):
 *         return self._programmaticEvent
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13912
 *     def programmaticEvent(self):
 *         return self._programmaticEvent
 *     @programmaticEvent.setter             # <<<<<<<<<<<<<<
 *     def programmaticEvent(self, programmaticEvent not None : anon_struct18):
 *         string.memcpy(&self._pvt_ptr[0].programmaticEvent, <cyruntime.anon_struct18*><void_ptr>programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_programmaticEvent); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_programmaticEvent) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_programmaticEvent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18, 0, "programmaticEvent", 0))) __PYX_ERR(0, 13913, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)__pyx_v_programmaticEvent));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *__pyx_v_programmaticEvent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13914
 *     @programmaticEvent.setter
 *     def programmaticEvent(self, programmaticEvent not None : anon_struct18):
 *         string.memcpy(&self._pvt_ptr[0].programmaticEvent, <cyruntime.anon_struct18*><void_ptr>programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent))             # <<<<<<<<<<<<<<
 *     @property
 *     def priority(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_programmaticEvent);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13914, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13914, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).programmaticEvent), ((struct anon_struct18 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).programmaticEvent))));

  /* "cuda/bindings/runtime.pyx":13912
 *     def programmaticEvent(self):
 *         return self._programmaticEvent
 *     @programmaticEvent.setter             # <<<<<<<<<<<<<<
 *     def programmaticEvent(self, programmaticEvent not None : anon_struct18):
 *         string.memcpy(&self._pvt_ptr[0].programmaticEvent, <cyruntime.anon_struct18*><void_ptr>programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.programmaticEvent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13915
 *     def programmaticEvent(self, programmaticEvent not None : anon_struct18):
 *         string.memcpy(&self._pvt_ptr[0].programmaticEvent, <cyruntime.anon_struct18*><void_ptr>programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent))
 *     @property             # <<<<<<<<<<<<<<
 *     def priority(self):
 *         return self._pvt_ptr[0].priority
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13917
 *     @property
 *     def priority(self):
 *         return self._pvt_ptr[0].priority             # <<<<<<<<<<<<<<
 *     @priority.setter
 *     def priority(self, int priority):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).priority); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13915
 *     def programmaticEvent(self, programmaticEvent not None : anon_struct18):
 *         string.memcpy(&self._pvt_ptr[0].programmaticEvent, <cyruntime.anon_struct18*><void_ptr>programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent))
 *     @property             # <<<<<<<<<<<<<<
 *     def priority(self):
 *         return self._pvt_ptr[0].priority
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.priority.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13918
 *     def priority(self):
 *         return self._pvt_ptr[0].priority
 *     @priority.setter             # <<<<<<<<<<<<<<
 *     def priority(self, int priority):
 *         self._pvt_ptr[0].priority = priority
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_priority); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_priority) {
  int __pyx_v_priority;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_priority); {
    __pyx_v_priority = __Pyx_PyLong_As_int(__pyx_arg_priority); if (unlikely((__pyx_v_priority == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13919, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.priority.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((int)__pyx_v_priority));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, int __pyx_v_priority) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13920
 *     @priority.setter
 *     def priority(self, int priority):
 *         self._pvt_ptr[0].priority = priority             # <<<<<<<<<<<<<<
 *     @property
 *     def memSyncDomainMap(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).priority = __pyx_v_priority;

  /* "cuda/bindings/runtime.pyx":13918
 *     def priority(self):
 *         return self._pvt_ptr[0].priority
 *     @priority.setter             # <<<<<<<<<<<<<<
 *     def priority(self, int priority):
 *         self._pvt_ptr[0].priority = priority
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13921
 *     def priority(self, int priority):
 *         self._pvt_ptr[0].priority = priority
 *     @property             # <<<<<<<<<<<<<<
 *     def memSyncDomainMap(self):
 *         return self._memSyncDomainMap
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13923
 *     @property
 *     def memSyncDomainMap(self):
 *         return self._memSyncDomainMap             # <<<<<<<<<<<<<<
 *     @memSyncDomainMap.setter
 *     def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_memSyncDomainMap);
  __pyx_r = ((PyObject *)__pyx_v_self->_memSyncDomainMap);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13921
 *     def priority(self, int priority):
 *         self._pvt_ptr[0].priority = priority
 *     @property             # <<<<<<<<<<<<<<
 *     def memSyncDomainMap(self):
 *         return self._memSyncDomainMap
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13924
 *     def memSyncDomainMap(self):
 *         return self._memSyncDomainMap
 *     @memSyncDomainMap.setter             # <<<<<<<<<<<<<<
 *     def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap):
 *         string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, <cyruntime.cudaLaunchMemSyncDomainMap*><void_ptr>memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memSyncDomainMap); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memSyncDomainMap) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_memSyncDomainMap), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap, 0, "memSyncDomainMap", 0))) __PYX_ERR(0, 13925, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap *)__pyx_v_memSyncDomainMap));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap *__pyx_v_memSyncDomainMap) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13926
 *     @memSyncDomainMap.setter
 *     def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap):
 *         string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, <cyruntime.cudaLaunchMemSyncDomainMap*><void_ptr>memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap))             # <<<<<<<<<<<<<<
 *     @property
 *     def memSyncDomain(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_memSyncDomainMap);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13926, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13926, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).memSyncDomainMap), ((cudaLaunchMemSyncDomainMap *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).memSyncDomainMap))));

  /* "cuda/bindings/runtime.pyx":13924
 *     def memSyncDomainMap(self):
 *         return self._memSyncDomainMap
 *     @memSyncDomainMap.setter             # <<<<<<<<<<<<<<
 *     def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap):
 *         string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, <cyruntime.cudaLaunchMemSyncDomainMap*><void_ptr>memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.memSyncDomainMap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13927
 *     def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap):
 *         string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, <cyruntime.cudaLaunchMemSyncDomainMap*><void_ptr>memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap))
 *     @property             # <<<<<<<<<<<<<<
 *     def memSyncDomain(self):
 *         if self._pvt_ptr[0].memSyncDomain not in _dict_cudaLaunchMemSyncDomain:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13929
 *     @property
 *     def memSyncDomain(self):
 *         if self._pvt_ptr[0].memSyncDomain not in _dict_cudaLaunchMemSyncDomain:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaLaunchMemSyncDomain[self._pvt_ptr[0].memSyncDomain]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaLaunchMemSyncDomain((__pyx_v_self->_pvt_ptr[0]).memSyncDomain); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaLaunchMemSyncDomain); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 13929, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":13930
 *     def memSyncDomain(self):
 *         if self._pvt_ptr[0].memSyncDomain not in _dict_cudaLaunchMemSyncDomain:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaLaunchMemSyncDomain[self._pvt_ptr[0].memSyncDomain]
 *     @memSyncDomain.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13929
 *     @property
 *     def memSyncDomain(self):
 *         if self._pvt_ptr[0].memSyncDomain not in _dict_cudaLaunchMemSyncDomain:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaLaunchMemSyncDomain[self._pvt_ptr[0].memSyncDomain]
*/
  }

  /* "cuda/bindings/runtime.pyx":13931
 *         if self._pvt_ptr[0].memSyncDomain not in _dict_cudaLaunchMemSyncDomain:
 *             return None
 *         return _dict_cudaLaunchMemSyncDomain[self._pvt_ptr[0].memSyncDomain]             # <<<<<<<<<<<<<<
 *     @memSyncDomain.setter
 *     def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaLaunchMemSyncDomain); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaLaunchMemSyncDomain((__pyx_v_self->_pvt_ptr[0]).memSyncDomain); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13927
 *     def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap):
 *         string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, <cyruntime.cudaLaunchMemSyncDomainMap*><void_ptr>memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap))
 *     @property             # <<<<<<<<<<<<<<
 *     def memSyncDomain(self):
 *         if self._pvt_ptr[0].memSyncDomain not in _dict_cudaLaunchMemSyncDomain:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.memSyncDomain.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13932
 *             return None
 *         return _dict_cudaLaunchMemSyncDomain[self._pvt_ptr[0].memSyncDomain]
 *     @memSyncDomain.setter             # <<<<<<<<<<<<<<
 *     def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain):
 *         self._pvt_ptr[0].memSyncDomain = memSyncDomain.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memSyncDomain); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_memSyncDomain) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_memSyncDomain) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "memSyncDomain"); __PYX_ERR(0, 13933, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((PyObject *)__pyx_v_memSyncDomain));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, PyObject *__pyx_v_memSyncDomain) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaLaunchMemSyncDomain __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13934
 *     @memSyncDomain.setter
 *     def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain):
 *         self._pvt_ptr[0].memSyncDomain = memSyncDomain.value             # <<<<<<<<<<<<<<
 *     @property
 *     def preferredClusterDim(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_memSyncDomain, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13934, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaLaunchMemSyncDomain)__Pyx_PyLong_As_enum__cudaLaunchMemSyncDomain(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 13934, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).memSyncDomain = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":13932
 *             return None
 *         return _dict_cudaLaunchMemSyncDomain[self._pvt_ptr[0].memSyncDomain]
 *     @memSyncDomain.setter             # <<<<<<<<<<<<<<
 *     def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain):
 *         self._pvt_ptr[0].memSyncDomain = memSyncDomain.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.memSyncDomain.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13935
 *     def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain):
 *         self._pvt_ptr[0].memSyncDomain = memSyncDomain.value
 *     @property             # <<<<<<<<<<<<<<
 *     def preferredClusterDim(self):
 *         return self._preferredClusterDim
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13937
 *     @property
 *     def preferredClusterDim(self):
 *         return self._preferredClusterDim             # <<<<<<<<<<<<<<
 *     @preferredClusterDim.setter
 *     def preferredClusterDim(self, preferredClusterDim not None : anon_struct19):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_preferredClusterDim);
  __pyx_r = ((PyObject *)__pyx_v_self->_preferredClusterDim);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13935
 *     def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain):
 *         self._pvt_ptr[0].memSyncDomain = memSyncDomain.value
 *     @property             # <<<<<<<<<<<<<<
 *     def preferredClusterDim(self):
 *         return self._preferredClusterDim
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13938
 *     def preferredClusterDim(self):
 *         return self._preferredClusterDim
 *     @preferredClusterDim.setter             # <<<<<<<<<<<<<<
 *     def preferredClusterDim(self, preferredClusterDim not None : anon_struct19):
 *         string.memcpy(&self._pvt_ptr[0].preferredClusterDim, <cyruntime.anon_struct19*><void_ptr>preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_preferredClusterDim); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_preferredClusterDim) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_preferredClusterDim), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19, 0, "preferredClusterDim", 0))) __PYX_ERR(0, 13939, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)__pyx_v_preferredClusterDim));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *__pyx_v_preferredClusterDim) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13940
 *     @preferredClusterDim.setter
 *     def preferredClusterDim(self, preferredClusterDim not None : anon_struct19):
 *         string.memcpy(&self._pvt_ptr[0].preferredClusterDim, <cyruntime.anon_struct19*><void_ptr>preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim))             # <<<<<<<<<<<<<<
 *     @property
 *     def launchCompletionEvent(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_preferredClusterDim);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13940, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).preferredClusterDim), ((struct anon_struct19 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).preferredClusterDim))));

  /* "cuda/bindings/runtime.pyx":13938
 *     def preferredClusterDim(self):
 *         return self._preferredClusterDim
 *     @preferredClusterDim.setter             # <<<<<<<<<<<<<<
 *     def preferredClusterDim(self, preferredClusterDim not None : anon_struct19):
 *         string.memcpy(&self._pvt_ptr[0].preferredClusterDim, <cyruntime.anon_struct19*><void_ptr>preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.preferredClusterDim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13941
 *     def preferredClusterDim(self, preferredClusterDim not None : anon_struct19):
 *         string.memcpy(&self._pvt_ptr[0].preferredClusterDim, <cyruntime.anon_struct19*><void_ptr>preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def launchCompletionEvent(self):
 *         return self._launchCompletionEvent
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13943
 *     @property
 *     def launchCompletionEvent(self):
 *         return self._launchCompletionEvent             # <<<<<<<<<<<<<<
 *     @launchCompletionEvent.setter
 *     def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct20):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_launchCompletionEvent);
  __pyx_r = ((PyObject *)__pyx_v_self->_launchCompletionEvent);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13941
 *     def preferredClusterDim(self, preferredClusterDim not None : anon_struct19):
 *         string.memcpy(&self._pvt_ptr[0].preferredClusterDim, <cyruntime.anon_struct19*><void_ptr>preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim))
 *     @property             # <<<<<<<<<<<<<<
 *     def launchCompletionEvent(self):
 *         return self._launchCompletionEvent
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13944
 *     def launchCompletionEvent(self):
 *         return self._launchCompletionEvent
 *     @launchCompletionEvent.setter             # <<<<<<<<<<<<<<
 *     def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct20):
 *         string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, <cyruntime.anon_struct20*><void_ptr>launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_launchCompletionEvent); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_launchCompletionEvent) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_launchCompletionEvent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20, 0, "launchCompletionEvent", 0))) __PYX_ERR(0, 13945, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)__pyx_v_launchCompletionEvent));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *__pyx_v_launchCompletionEvent) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13946
 *     @launchCompletionEvent.setter
 *     def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct20):
 *         string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, <cyruntime.anon_struct20*><void_ptr>launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent))             # <<<<<<<<<<<<<<
 *     @property
 *     def deviceUpdatableKernelNode(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_launchCompletionEvent);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13946, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13946, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).launchCompletionEvent), ((struct anon_struct20 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).launchCompletionEvent))));

  /* "cuda/bindings/runtime.pyx":13944
 *     def launchCompletionEvent(self):
 *         return self._launchCompletionEvent
 *     @launchCompletionEvent.setter             # <<<<<<<<<<<<<<
 *     def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct20):
 *         string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, <cyruntime.anon_struct20*><void_ptr>launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.launchCompletionEvent.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13947
 *     def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct20):
 *         string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, <cyruntime.anon_struct20*><void_ptr>launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent))
 *     @property             # <<<<<<<<<<<<<<
 *     def deviceUpdatableKernelNode(self):
 *         return self._deviceUpdatableKernelNode
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13949
 *     @property
 *     def deviceUpdatableKernelNode(self):
 *         return self._deviceUpdatableKernelNode             # <<<<<<<<<<<<<<
 *     @deviceUpdatableKernelNode.setter
 *     def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct21):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_deviceUpdatableKernelNode);
  __pyx_r = ((PyObject *)__pyx_v_self->_deviceUpdatableKernelNode);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13947
 *     def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct20):
 *         string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, <cyruntime.anon_struct20*><void_ptr>launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent))
 *     @property             # <<<<<<<<<<<<<<
 *     def deviceUpdatableKernelNode(self):
 *         return self._deviceUpdatableKernelNode
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13950
 *     def deviceUpdatableKernelNode(self):
 *         return self._deviceUpdatableKernelNode
 *     @deviceUpdatableKernelNode.setter             # <<<<<<<<<<<<<<
 *     def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct21):
 *         string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, <cyruntime.anon_struct21*><void_ptr>deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_deviceUpdatableKernelNode); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_deviceUpdatableKernelNode) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_deviceUpdatableKernelNode), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21, 0, "deviceUpdatableKernelNode", 0))) __PYX_ERR(0, 13951, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)__pyx_v_deviceUpdatableKernelNode));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *__pyx_v_deviceUpdatableKernelNode) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":13952
 *     @deviceUpdatableKernelNode.setter
 *     def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct21):
 *         string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, <cyruntime.anon_struct21*><void_ptr>deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode))             # <<<<<<<<<<<<<<
 *     @property
 *     def sharedMemCarveout(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_deviceUpdatableKernelNode);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13952, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13952, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).deviceUpdatableKernelNode), ((struct anon_struct21 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).deviceUpdatableKernelNode))));

  /* "cuda/bindings/runtime.pyx":13950
 *     def deviceUpdatableKernelNode(self):
 *         return self._deviceUpdatableKernelNode
 *     @deviceUpdatableKernelNode.setter             # <<<<<<<<<<<<<<
 *     def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct21):
 *         string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, <cyruntime.anon_struct21*><void_ptr>deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.deviceUpdatableKernelNode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13953
 *     def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct21):
 *         string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, <cyruntime.anon_struct21*><void_ptr>deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode))
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemCarveout(self):
 *         return self._pvt_ptr[0].sharedMemCarveout
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13955
 *     @property
 *     def sharedMemCarveout(self):
 *         return self._pvt_ptr[0].sharedMemCarveout             # <<<<<<<<<<<<<<
 *     @sharedMemCarveout.setter
 *     def sharedMemCarveout(self, unsigned int sharedMemCarveout):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).sharedMemCarveout); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13955, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13953
 *     def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct21):
 *         string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, <cyruntime.anon_struct21*><void_ptr>deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode))
 *     @property             # <<<<<<<<<<<<<<
 *     def sharedMemCarveout(self):
 *         return self._pvt_ptr[0].sharedMemCarveout
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.sharedMemCarveout.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13956
 *     def sharedMemCarveout(self):
 *         return self._pvt_ptr[0].sharedMemCarveout
 *     @sharedMemCarveout.setter             # <<<<<<<<<<<<<<
 *     def sharedMemCarveout(self, unsigned int sharedMemCarveout):
 *         self._pvt_ptr[0].sharedMemCarveout = sharedMemCarveout
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemCarveout); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sharedMemCarveout) {
  unsigned int __pyx_v_sharedMemCarveout;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sharedMemCarveout); {
    __pyx_v_sharedMemCarveout = __Pyx_PyLong_As_unsigned_int(__pyx_arg_sharedMemCarveout); if (unlikely((__pyx_v_sharedMemCarveout == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13957, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.sharedMemCarveout.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((unsigned int)__pyx_v_sharedMemCarveout));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, unsigned int __pyx_v_sharedMemCarveout) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13958
 *     @sharedMemCarveout.setter
 *     def sharedMemCarveout(self, unsigned int sharedMemCarveout):
 *         self._pvt_ptr[0].sharedMemCarveout = sharedMemCarveout             # <<<<<<<<<<<<<<
 *     @property
 *     def nvlinkUtilCentricScheduling(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sharedMemCarveout = __pyx_v_sharedMemCarveout;

  /* "cuda/bindings/runtime.pyx":13956
 *     def sharedMemCarveout(self):
 *         return self._pvt_ptr[0].sharedMemCarveout
 *     @sharedMemCarveout.setter             # <<<<<<<<<<<<<<
 *     def sharedMemCarveout(self, unsigned int sharedMemCarveout):
 *         self._pvt_ptr[0].sharedMemCarveout = sharedMemCarveout
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13959
 *     def sharedMemCarveout(self, unsigned int sharedMemCarveout):
 *         self._pvt_ptr[0].sharedMemCarveout = sharedMemCarveout
 *     @property             # <<<<<<<<<<<<<<
 *     def nvlinkUtilCentricScheduling(self):
 *         return self._pvt_ptr[0].nvlinkUtilCentricScheduling
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":13961
 *     @property
 *     def nvlinkUtilCentricScheduling(self):
 *         return self._pvt_ptr[0].nvlinkUtilCentricScheduling             # <<<<<<<<<<<<<<
 *     @nvlinkUtilCentricScheduling.setter
 *     def nvlinkUtilCentricScheduling(self, unsigned int nvlinkUtilCentricScheduling):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).nvlinkUtilCentricScheduling); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13959
 *     def sharedMemCarveout(self, unsigned int sharedMemCarveout):
 *         self._pvt_ptr[0].sharedMemCarveout = sharedMemCarveout
 *     @property             # <<<<<<<<<<<<<<
 *     def nvlinkUtilCentricScheduling(self):
 *         return self._pvt_ptr[0].nvlinkUtilCentricScheduling
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.nvlinkUtilCentricScheduling.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13962
 *     def nvlinkUtilCentricScheduling(self):
 *         return self._pvt_ptr[0].nvlinkUtilCentricScheduling
 *     @nvlinkUtilCentricScheduling.setter             # <<<<<<<<<<<<<<
 *     def nvlinkUtilCentricScheduling(self, unsigned int nvlinkUtilCentricScheduling):
 *         self._pvt_ptr[0].nvlinkUtilCentricScheduling = nvlinkUtilCentricScheduling
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_nvlinkUtilCentricScheduling); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_nvlinkUtilCentricScheduling) {
  unsigned int __pyx_v_nvlinkUtilCentricScheduling;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_nvlinkUtilCentricScheduling); {
    __pyx_v_nvlinkUtilCentricScheduling = __Pyx_PyLong_As_unsigned_int(__pyx_arg_nvlinkUtilCentricScheduling); if (unlikely((__pyx_v_nvlinkUtilCentricScheduling == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 13963, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.nvlinkUtilCentricScheduling.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), ((unsigned int)__pyx_v_nvlinkUtilCentricScheduling));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, unsigned int __pyx_v_nvlinkUtilCentricScheduling) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":13964
 *     @nvlinkUtilCentricScheduling.setter
 *     def nvlinkUtilCentricScheduling(self, unsigned int nvlinkUtilCentricScheduling):
 *         self._pvt_ptr[0].nvlinkUtilCentricScheduling = nvlinkUtilCentricScheduling             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaLaunchAttribute_st:
*/
  (__pyx_v_self->_pvt_ptr[0]).nvlinkUtilCentricScheduling = __pyx_v_nvlinkUtilCentricScheduling;

  /* "cuda/bindings/runtime.pyx":13962
 *     def nvlinkUtilCentricScheduling(self):
 *         return self._pvt_ptr[0].nvlinkUtilCentricScheduling
 *     @nvlinkUtilCentricScheduling.setter             # <<<<<<<<<<<<<<
 *     def nvlinkUtilCentricScheduling(self, unsigned int nvlinkUtilCentricScheduling):
 *         self._pvt_ptr[0].nvlinkUtilCentricScheduling = nvlinkUtilCentricScheduling
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_24cudaLaunchAttributeValue_10__reduce_cython__, "cudaLaunchAttributeValue.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_24cudaLaunchAttributeValue_12__setstate_cython__, "cudaLaunchAttributeValue.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaLaunchAttributeValue.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttributeValue.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13982
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13982, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13982, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 13982, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13982, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13982, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13982, __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.runtime.cudaLaunchAttribute_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":13983
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13984
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchAttribute_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":13983
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":13986
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchAttribute_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaLaunchAttribute_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":13982
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13987
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchAttribute_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._val = cudaLaunchAttributeValue(_ptr=<void_ptr>&self._pvt_ptr[0].val)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 13987, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13987, __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, "__init__", 0) < (0)) __PYX_ERR(0, 13987, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 13987, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 13987, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 13987, __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.runtime.cudaLaunchAttribute_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":13989
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._val = cudaLaunchAttributeValue(_ptr=<void_ptr>&self._pvt_ptr[0].val)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).val))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 13989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13989, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 13989, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13989, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_val);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_val);
  __pyx_v_self->_val = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":13987
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLaunchAttribute_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._val = cudaLaunchAttributeValue(_ptr=<void_ptr>&self._pvt_ptr[0].val)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13990
 *         pass
 *         self._val = cudaLaunchAttributeValue(_ptr=<void_ptr>&self._pvt_ptr[0].val)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":13992
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_7getPtr(PyObject *__pyx_v_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_7runtime_22cudaLaunchAttribute_st_6getPtr, "cudaLaunchAttribute_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":13993
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":13992
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":13994
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr192__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":13995
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":13996
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['id : ' + str(self.id)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13996, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":13997
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":13998
 *             str_list = []
 *             try:
 *                 str_list += ['id : ' + str(self.id)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['id : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_id_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13998, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13998, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_id, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13998, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 13998, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 13998, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13998, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":13997
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":13999
 *             try:
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['id : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 13999, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14000
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:
 *                 str_list += ['id : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['val :\n' + '\n'.join(['    ' + line for line in str(self.val).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14000, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_id_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_id_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_id_ValueError) != (0)) __PYX_ERR(0, 14000, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14000, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":13997
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['id : ' + str(self.id)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14001
 *             except ValueError:
 *                 str_list += ['id : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['val :\n' + '\n'.join(['    ' + line for line in str(self.val).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14002
 *                 str_list += ['id : <ValueError>']
 *             try:
 *                 str_list += ['val :\n' + '\n'.join(['    ' + line for line in str(self.val).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['val : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14002, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_val_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14002, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14002, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14002, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14002, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14002, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr192__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr192__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14002, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 14002, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr192__pyx_v_line); __pyx_10genexpr192__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr192__pyx_v_line); __pyx_10genexpr192__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14002, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_val, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14002, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14002, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14002, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14002, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14001
 *             except ValueError:
 *                 str_list += ['id : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['val :\n' + '\n'.join(['    ' + line for line in str(self.val).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14003
 *             try:
 *                 str_list += ['val :\n' + '\n'.join(['    ' + line for line in str(self.val).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['val : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 14003, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":14004
 *                 str_list += ['val :\n' + '\n'.join(['    ' + line for line in str(self.val).splitlines()])]
 *             except ValueError:
 *                 str_list += ['val : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14004, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_val_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_val_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_val_ValueError) != (0)) __PYX_ERR(0, 14004, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14004, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":14001
 *             except ValueError:
 *                 str_list += ['id : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['val :\n' + '\n'.join(['    ' + line for line in str(self.val).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14005
 *             except ValueError:
 *                 str_list += ['val : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14005, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":13995
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":14007
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def id(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":13994
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr192__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14008
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def id(self):
 *         if self._pvt_ptr[0].id not in _dict_cudaLaunchAttributeID:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14010
 *     @property
 *     def id(self):
 *         if self._pvt_ptr[0].id not in _dict_cudaLaunchAttributeID:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaLaunchAttributeID[self._pvt_ptr[0].id]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID((__pyx_v_self->_pvt_ptr[0]).id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaLaunchAttributeID); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 14010, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":14011
 *     def id(self):
 *         if self._pvt_ptr[0].id not in _dict_cudaLaunchAttributeID:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaLaunchAttributeID[self._pvt_ptr[0].id]
 *     @id.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14010
 *     @property
 *     def id(self):
 *         if self._pvt_ptr[0].id not in _dict_cudaLaunchAttributeID:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaLaunchAttributeID[self._pvt_ptr[0].id]
*/
  }

  /* "cuda/bindings/runtime.pyx":14012
 *         if self._pvt_ptr[0].id not in _dict_cudaLaunchAttributeID:
 *             return None
 *         return _dict_cudaLaunchAttributeID[self._pvt_ptr[0].id]             # <<<<<<<<<<<<<<
 *     @id.setter
 *     def id(self, id not None : cudaLaunchAttributeID):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaLaunchAttributeID); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID((__pyx_v_self->_pvt_ptr[0]).id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14008
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def id(self):
 *         if self._pvt_ptr[0].id not in _dict_cudaLaunchAttributeID:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14013
 *             return None
 *         return _dict_cudaLaunchAttributeID[self._pvt_ptr[0].id]
 *     @id.setter             # <<<<<<<<<<<<<<
 *     def id(self, id not None : cudaLaunchAttributeID):
 *         self._pvt_ptr[0].id = id.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_id); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_id) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_id) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "id"); __PYX_ERR(0, 14014, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self), ((PyObject *)__pyx_v_id));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, PyObject *__pyx_v_id) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaLaunchAttributeID __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14015
 *     @id.setter
 *     def id(self, id not None : cudaLaunchAttributeID):
 *         self._pvt_ptr[0].id = id.value             # <<<<<<<<<<<<<<
 *     @property
 *     def val(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_id, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaLaunchAttributeID)__Pyx_PyLong_As_enum__cudaLaunchAttributeID(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14015, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).id = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14013
 *             return None
 *         return _dict_cudaLaunchAttributeID[self._pvt_ptr[0].id]
 *     @id.setter             # <<<<<<<<<<<<<<
 *     def id(self, id not None : cudaLaunchAttributeID):
 *         self._pvt_ptr[0].id = id.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14016
 *     def id(self, id not None : cudaLaunchAttributeID):
 *         self._pvt_ptr[0].id = id.value
 *     @property             # <<<<<<<<<<<<<<
 *     def val(self):
 *         return self._val
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14018
 *     @property
 *     def val(self):
 *         return self._val             # <<<<<<<<<<<<<<
 *     @val.setter
 *     def val(self, val not None : cudaLaunchAttributeValue):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_val);
  __pyx_r = ((PyObject *)__pyx_v_self->_val);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14016
 *     def id(self, id not None : cudaLaunchAttributeID):
 *         self._pvt_ptr[0].id = id.value
 *     @property             # <<<<<<<<<<<<<<
 *     def val(self):
 *         return self._val
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14019
 *     def val(self):
 *         return self._val
 *     @val.setter             # <<<<<<<<<<<<<<
 *     def val(self, val not None : cudaLaunchAttributeValue):
 *         string.memcpy(&self._pvt_ptr[0].val, <cyruntime.cudaLaunchAttributeValue*><void_ptr>val.getPtr(), sizeof(self._pvt_ptr[0].val))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_val) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_val), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, 0, "val", 0))) __PYX_ERR(0, 14020, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)__pyx_v_val));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *__pyx_v_val) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14021
 *     @val.setter
 *     def val(self, val not None : cudaLaunchAttributeValue):
 *         string.memcpy(&self._pvt_ptr[0].val, <cyruntime.cudaLaunchAttributeValue*><void_ptr>val.getPtr(), sizeof(self._pvt_ptr[0].val))             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_struct22:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_val);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14021, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).val), ((union cudaLaunchAttributeValue *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).val))));

  /* "cuda/bindings/runtime.pyx":14019
 *     def val(self):
 *         return self._val
 *     @val.setter             # <<<<<<<<<<<<<<
 *     def val(self, val not None : cudaLaunchAttributeValue):
 *         string.memcpy(&self._pvt_ptr[0].val, <cyruntime.cudaLaunchAttributeValue*><void_ptr>val.getPtr(), sizeof(self._pvt_ptr[0].val))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.val.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_22cudaLaunchAttribute_st_10__reduce_cython__, "cudaLaunchAttribute_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_22cudaLaunchAttribute_st_12__setstate_cython__, "cudaLaunchAttribute_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaLaunchAttribute_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchAttribute_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14035
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14035, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14035, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14035, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 14035, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14035, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14035, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14035, __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.runtime.anon_struct22.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14036
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaAsyncNotificationInfo *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":14035
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14038
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14038, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14038, __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, "__init__", 0) < (0)) __PYX_ERR(0, 14038, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 14038, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14038, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14038, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14038, __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.runtime.anon_struct22.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14040
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14042
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].info.overBudget
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_7getPtr(PyObject *__pyx_v_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_7runtime_13anon_struct22_6getPtr, "anon_struct22.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct22_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct22_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14043
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].info.overBudget             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).info.overBudget))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14042
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].info.overBudget
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct22.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14044
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].info.overBudget
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14045
 *         return <void_ptr>&self._pvt_ptr[0].info.overBudget
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14046
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":14047
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14048
 *             str_list = []
 *             try:
 *                 str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['bytesOverBudget : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_bytesOverBudget_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14048, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14048, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_bytesOverBudget, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14048, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14048, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14048, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14048, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14047
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":14049
 *             try:
 *                 str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesOverBudget : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct22.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14049, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14050
 *                 str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)]
 *             except ValueError:
 *                 str_list += ['bytesOverBudget : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14050, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_bytesOverBudget_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_bytesOverBudget_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_bytesOverBudget_ValueError) != (0)) __PYX_ERR(0, 14050, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14050, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":14047
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14051
 *             except ValueError:
 *                 str_list += ['bytesOverBudget : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14051, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14045
 *         return <void_ptr>&self._pvt_ptr[0].info.overBudget
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":14053
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def bytesOverBudget(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":14044
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].info.overBudget
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct22.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14054
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def bytesOverBudget(self):
 *         return self._pvt_ptr[0].info.overBudget.bytesOverBudget
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14056
 *     @property
 *     def bytesOverBudget(self):
 *         return self._pvt_ptr[0].info.overBudget.bytesOverBudget             # <<<<<<<<<<<<<<
 *     @bytesOverBudget.setter
 *     def bytesOverBudget(self, unsigned long long bytesOverBudget):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG((__pyx_v_self->_pvt_ptr[0]).info.overBudget.bytesOverBudget); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14056, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14054
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def bytesOverBudget(self):
 *         return self._pvt_ptr[0].info.overBudget.bytesOverBudget
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct22.bytesOverBudget.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14057
 *     def bytesOverBudget(self):
 *         return self._pvt_ptr[0].info.overBudget.bytesOverBudget
 *     @bytesOverBudget.setter             # <<<<<<<<<<<<<<
 *     def bytesOverBudget(self, unsigned long long bytesOverBudget):
 *         self._pvt_ptr[0].info.overBudget.bytesOverBudget = bytesOverBudget
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesOverBudget); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_bytesOverBudget) {
  unsigned PY_LONG_LONG __pyx_v_bytesOverBudget;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_bytesOverBudget); {
    __pyx_v_bytesOverBudget = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_arg_bytesOverBudget); if (unlikely((__pyx_v_bytesOverBudget == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14058, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct22.bytesOverBudget.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v_bytesOverBudget));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_bytesOverBudget) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14059
 *     @bytesOverBudget.setter
 *     def bytesOverBudget(self, unsigned long long bytesOverBudget):
 *         self._pvt_ptr[0].info.overBudget.bytesOverBudget = bytesOverBudget             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union9:
*/
  (__pyx_v_self->_pvt_ptr[0]).info.overBudget.bytesOverBudget = __pyx_v_bytesOverBudget;

  /* "cuda/bindings/runtime.pyx":14057
 *     def bytesOverBudget(self):
 *         return self._pvt_ptr[0].info.overBudget.bytesOverBudget
 *     @bytesOverBudget.setter             # <<<<<<<<<<<<<<
 *     def bytesOverBudget(self, unsigned long long bytesOverBudget):
 *         self._pvt_ptr[0].info.overBudget.bytesOverBudget = bytesOverBudget
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct22_10__reduce_cython__, "anon_struct22.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct22_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct22_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct22.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_13anon_struct22_12__setstate_cython__, "anon_struct22.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13anon_struct22_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct22_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_struct22.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_13anon_struct22_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_struct22.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14073
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14073, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14073, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14073, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 14073, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14073, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14073, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14073, __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.runtime.anon_union9.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union9___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union9___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14074
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct cudaAsyncNotificationInfo *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":14073
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14076
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._overBudget = anon_struct22(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14076, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14076, __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, "__init__", 0) < (0)) __PYX_ERR(0, 14076, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 14076, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14076, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14076, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14076, __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.runtime.anon_union9.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":14078
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *         self._overBudget = anon_struct22(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 14078, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14078, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_overBudget);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_overBudget);
  __pyx_v_self->_overBudget = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":14076
 *         self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *         self._overBudget = anon_struct22(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union9.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14079
 *         pass
 *         self._overBudget = anon_struct22(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14081
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].info
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_7getPtr(PyObject *__pyx_v_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_7runtime_11anon_union9_6getPtr, "anon_union9.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union9_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union9_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14082
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].info             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).info))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14081
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].info
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union9.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14083
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].info
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr193__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14084
 *         return <void_ptr>&self._pvt_ptr[0].info
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14085
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['overBudget :\n' + '\n'.join(['    ' + line for line in str(self.overBudget).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14085, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":14086
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['overBudget :\n' + '\n'.join(['    ' + line for line in str(self.overBudget).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14087
 *             str_list = []
 *             try:
 *                 str_list += ['overBudget :\n' + '\n'.join(['    ' + line for line in str(self.overBudget).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['overBudget : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14087, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_overBudget_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14087, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14087, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14087, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14087, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14087, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr193__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr193__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14087, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 14087, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr193__pyx_v_line); __pyx_10genexpr193__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr193__pyx_v_line); __pyx_10genexpr193__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14087, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_overBudget, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14087, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14087, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14087, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14087, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14086
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['overBudget :\n' + '\n'.join(['    ' + line for line in str(self.overBudget).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":14088
 *             try:
 *                 str_list += ['overBudget :\n' + '\n'.join(['    ' + line for line in str(self.overBudget).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['overBudget : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union9.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 14088, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":14089
 *                 str_list += ['overBudget :\n' + '\n'.join(['    ' + line for line in str(self.overBudget).splitlines()])]
 *             except ValueError:
 *                 str_list += ['overBudget : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14089, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_overBudget_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_overBudget_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_overBudget_ValueError) != (0)) __PYX_ERR(0, 14089, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 14089, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":14086
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['overBudget :\n' + '\n'.join(['    ' + line for line in str(self.overBudget).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14090
 *             except ValueError:
 *                 str_list += ['overBudget : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14090, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14084
 *         return <void_ptr>&self._pvt_ptr[0].info
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":14092
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def overBudget(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":14083
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].info
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union9.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr193__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14093
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def overBudget(self):
 *         return self._overBudget
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_10overBudget_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_10overBudget_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10overBudget___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10overBudget___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14095
 *     @property
 *     def overBudget(self):
 *         return self._overBudget             # <<<<<<<<<<<<<<
 *     @overBudget.setter
 *     def overBudget(self, overBudget not None : anon_struct22):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_overBudget);
  __pyx_r = ((PyObject *)__pyx_v_self->_overBudget);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14093
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def overBudget(self):
 *         return self._overBudget
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14096
 *     def overBudget(self):
 *         return self._overBudget
 *     @overBudget.setter             # <<<<<<<<<<<<<<
 *     def overBudget(self, overBudget not None : anon_struct22):
 *         string.memcpy(&self._pvt_ptr[0].info.overBudget, <cyruntime.anon_struct22*><void_ptr>overBudget.getPtr(), sizeof(self._pvt_ptr[0].info.overBudget))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_10overBudget_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_overBudget); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_10overBudget_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_overBudget) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_overBudget), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22, 0, "overBudget", 0))) __PYX_ERR(0, 14097, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10overBudget_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)__pyx_v_overBudget));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10overBudget_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *__pyx_v_overBudget) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14098
 *     @overBudget.setter
 *     def overBudget(self, overBudget not None : anon_struct22):
 *         string.memcpy(&self._pvt_ptr[0].info.overBudget, <cyruntime.anon_struct22*><void_ptr>overBudget.getPtr(), sizeof(self._pvt_ptr[0].info.overBudget))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaAsyncNotificationInfo:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_overBudget);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14098, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14098, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).info.overBudget), ((struct anon_struct22 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).info.overBudget))));

  /* "cuda/bindings/runtime.pyx":14096
 *     def overBudget(self):
 *         return self._overBudget
 *     @overBudget.setter             # <<<<<<<<<<<<<<
 *     def overBudget(self, overBudget not None : anon_struct22):
 *         string.memcpy(&self._pvt_ptr[0].info.overBudget, <cyruntime.anon_struct22*><void_ptr>overBudget.getPtr(), sizeof(self._pvt_ptr[0].info.overBudget))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union9.overBudget.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_11anon_union9_10__reduce_cython__, "anon_union9.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union9_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union9_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union9.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_11anon_union9_12__setstate_cython__, "anon_union9.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11anon_union9_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union9_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union9.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_11anon_union9_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_11anon_union9_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union9.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14117
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaAsyncNotificationInfo *>calloc(1, sizeof(cyruntime.cudaAsyncNotificationInfo))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14117, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14117, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14117, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14117, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14117, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 14117, __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.runtime.cudaAsyncNotificationInfo.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct cudaAsyncNotificationInfo *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14118
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaAsyncNotificationInfo *>calloc(1, sizeof(cyruntime.cudaAsyncNotificationInfo))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14119
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaAsyncNotificationInfo *>calloc(1, sizeof(cyruntime.cudaAsyncNotificationInfo))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct cudaAsyncNotificationInfo *)calloc(1, (sizeof(struct cudaAsyncNotificationInfo))));

    /* "cuda/bindings/runtime.pyx":14120
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaAsyncNotificationInfo *>calloc(1, sizeof(cyruntime.cudaAsyncNotificationInfo))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":14118
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaAsyncNotificationInfo *>calloc(1, sizeof(cyruntime.cudaAsyncNotificationInfo))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14122
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaAsyncNotificationInfo *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14117
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaAsyncNotificationInfo *>calloc(1, sizeof(cyruntime.cudaAsyncNotificationInfo))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14123
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._info = anon_union9(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14123, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14123, __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, "__init__", 0) < (0)) __PYX_ERR(0, 14123, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14123, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14123, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 14123, __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.runtime.cudaAsyncNotificationInfo.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":14125
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._info = anon_union9(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 14125, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14125, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_info);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_info);
  __pyx_v_self->_info = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":14123
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaAsyncNotificationInfo *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._info = anon_union9(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14126
 *         pass
 *         self._info = anon_union9(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14127
 *         self._info = anon_union9(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14128
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":14127
 *         self._info = anon_union9(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14126
 *         pass
 *         self._info = anon_union9(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14129
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_7getPtr(PyObject *__pyx_v_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_7runtime_25cudaAsyncNotificationInfo_6getPtr, "cudaAsyncNotificationInfo.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14130
 *             free(self._val_ptr)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14129
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14131
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr194__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14132
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14133
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":14134
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14135
 *             str_list = []
 *             try:
 *                 str_list += ['type : ' + str(self.type)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_type_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14135, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14135, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14134
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":14136
 *             try:
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14136, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14137
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['info :\n' + '\n'.join(['    ' + line for line in str(self.info).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14137, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_type_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_type_ValueError) != (0)) __PYX_ERR(0, 14137, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14137, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":14134
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['type : ' + str(self.type)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14138
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['info :\n' + '\n'.join(['    ' + line for line in str(self.info).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14139
 *                 str_list += ['type : <ValueError>']
 *             try:
 *                 str_list += ['info :\n' + '\n'.join(['    ' + line for line in str(self.info).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['info : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14139, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_info_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14139, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14139, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14139, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14139, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14139, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr194__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr194__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14139, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 14139, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr194__pyx_v_line); __pyx_10genexpr194__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr194__pyx_v_line); __pyx_10genexpr194__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_info, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14139, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14139, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14138
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['info :\n' + '\n'.join(['    ' + line for line in str(self.info).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14140
 *             try:
 *                 str_list += ['info :\n' + '\n'.join(['    ' + line for line in str(self.info).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['info : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 14140, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":14141
 *                 str_list += ['info :\n' + '\n'.join(['    ' + line for line in str(self.info).splitlines()])]
 *             except ValueError:
 *                 str_list += ['info : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14141, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_info_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_info_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_info_ValueError) != (0)) __PYX_ERR(0, 14141, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14141, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":14138
 *             except ValueError:
 *                 str_list += ['type : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['info :\n' + '\n'.join(['    ' + line for line in str(self.info).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14142
 *             except ValueError:
 *                 str_list += ['info : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14132
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":14144
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def type(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":14131
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr194__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14145
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaAsyncNotificationType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14147
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaAsyncNotificationType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaAsyncNotificationType[self._pvt_ptr[0].type]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaAsyncNotificationType_enum((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaAsyncNotificationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 14147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":14148
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaAsyncNotificationType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaAsyncNotificationType[self._pvt_ptr[0].type]
 *     @type.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14147
 *     @property
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaAsyncNotificationType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaAsyncNotificationType[self._pvt_ptr[0].type]
*/
  }

  /* "cuda/bindings/runtime.pyx":14149
 *         if self._pvt_ptr[0].type not in _dict_cudaAsyncNotificationType:
 *             return None
 *         return _dict_cudaAsyncNotificationType[self._pvt_ptr[0].type]             # <<<<<<<<<<<<<<
 *     @type.setter
 *     def type(self, type not None : cudaAsyncNotificationType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaAsyncNotificationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaAsyncNotificationType_enum((__pyx_v_self->_pvt_ptr[0]).type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14145
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def type(self):
 *         if self._pvt_ptr[0].type not in _dict_cudaAsyncNotificationType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14150
 *             return None
 *         return _dict_cudaAsyncNotificationType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaAsyncNotificationType):
 *         self._pvt_ptr[0].type = type.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_type) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_type) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "type"); __PYX_ERR(0, 14151, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self), ((PyObject *)__pyx_v_type));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, PyObject *__pyx_v_type) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  cudaAsyncNotificationType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14152
 *     @type.setter
 *     def type(self, type not None : cudaAsyncNotificationType):
 *         self._pvt_ptr[0].type = type.value             # <<<<<<<<<<<<<<
 *     @property
 *     def info(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaAsyncNotificationType_enum)__Pyx_PyLong_As_enum__cudaAsyncNotificationType_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).type = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14150
 *             return None
 *         return _dict_cudaAsyncNotificationType[self._pvt_ptr[0].type]
 *     @type.setter             # <<<<<<<<<<<<<<
 *     def type(self, type not None : cudaAsyncNotificationType):
 *         self._pvt_ptr[0].type = type.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14153
 *     def type(self, type not None : cudaAsyncNotificationType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def info(self):
 *         return self._info
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14155
 *     @property
 *     def info(self):
 *         return self._info             # <<<<<<<<<<<<<<
 *     @info.setter
 *     def info(self, info not None : anon_union9):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_info);
  __pyx_r = ((PyObject *)__pyx_v_self->_info);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14153
 *     def type(self, type not None : cudaAsyncNotificationType):
 *         self._pvt_ptr[0].type = type.value
 *     @property             # <<<<<<<<<<<<<<
 *     def info(self):
 *         return self._info
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14156
 *     def info(self):
 *         return self._info
 *     @info.setter             # <<<<<<<<<<<<<<
 *     def info(self, info not None : anon_union9):
 *         string.memcpy(&self._pvt_ptr[0].info, <cyruntime.anon_union9*><void_ptr>info.getPtr(), sizeof(self._pvt_ptr[0].info))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_info); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_info) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_info), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9, 0, "info", 0))) __PYX_ERR(0, 14157, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)__pyx_v_info));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *__pyx_v_info) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14158
 *     @info.setter
 *     def info(self, info not None : anon_union9):
 *         string.memcpy(&self._pvt_ptr[0].info, <cyruntime.anon_union9*><void_ptr>info.getPtr(), sizeof(self._pvt_ptr[0].info))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaTextureDesc:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_info);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14158, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).info), ((union anon_union9 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).info))));

  /* "cuda/bindings/runtime.pyx":14156
 *     def info(self):
 *         return self._info
 *     @info.setter             # <<<<<<<<<<<<<<
 *     def info(self, info not None : anon_union9):
 *         string.memcpy(&self._pvt_ptr[0].info, <cyruntime.anon_union9*><void_ptr>info.getPtr(), sizeof(self._pvt_ptr[0].info))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.info.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_25cudaAsyncNotificationInfo_10__reduce_cython__, "cudaAsyncNotificationInfo.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_25cudaAsyncNotificationInfo_12__setstate_cython__, "cudaAsyncNotificationInfo.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaAsyncNotificationInfo.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaAsyncNotificationInfo.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14198
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14198, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14198, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14198, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14198, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14198, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 14198, __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.runtime.cudaTextureDesc.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14199
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14200
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaTextureDesc *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14199
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14202
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaTextureDesc *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct cudaTextureDesc *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14198
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14203
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaTextureDesc *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14203, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14203, __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, "__init__", 0) < (0)) __PYX_ERR(0, 14203, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14203, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14203, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 14203, __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.runtime.cudaTextureDesc.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14205
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14207
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_7getPtr(PyObject *__pyx_v_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_7runtime_15cudaTextureDesc_6getPtr, "cudaTextureDesc.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaTextureDesc_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaTextureDesc_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14208
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14207
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14209
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14210
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14211
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['addressMode : ' + str(self.addressMode)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":14212
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['addressMode : ' + str(self.addressMode)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14213
 *             str_list = []
 *             try:
 *                 str_list += ['addressMode : ' + str(self.addressMode)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['addressMode : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_addressMode_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14213, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14213, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_addressMode, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14213, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14213, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14213, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14213, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14212
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['addressMode : ' + str(self.addressMode)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":14214
 *             try:
 *                 str_list += ['addressMode : ' + str(self.addressMode)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['addressMode : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14214, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14215
 *                 str_list += ['addressMode : ' + str(self.addressMode)]
 *             except ValueError:
 *                 str_list += ['addressMode : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['filterMode : ' + str(self.filterMode)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14215, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_addressMode_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_addressMode_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_addressMode_ValueError) != (0)) __PYX_ERR(0, 14215, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14215, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":14212
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['addressMode : ' + str(self.addressMode)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14216
 *             except ValueError:
 *                 str_list += ['addressMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['filterMode : ' + str(self.filterMode)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14217
 *                 str_list += ['addressMode : <ValueError>']
 *             try:
 *                 str_list += ['filterMode : ' + str(self.filterMode)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['filterMode : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_filterMode_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14217, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14217, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_filterMode, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14217, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14217, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14217, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14217, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14216
 *             except ValueError:
 *                 str_list += ['addressMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['filterMode : ' + str(self.filterMode)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14218
 *             try:
 *                 str_list += ['filterMode : ' + str(self.filterMode)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['filterMode : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 14218, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":14219
 *                 str_list += ['filterMode : ' + str(self.filterMode)]
 *             except ValueError:
 *                 str_list += ['filterMode : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['readMode : ' + str(self.readMode)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14219, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_filterMode_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_filterMode_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_filterMode_ValueError) != (0)) __PYX_ERR(0, 14219, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14219, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":14216
 *             except ValueError:
 *                 str_list += ['addressMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['filterMode : ' + str(self.filterMode)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14220
 *             except ValueError:
 *                 str_list += ['filterMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['readMode : ' + str(self.readMode)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14221
 *                 str_list += ['filterMode : <ValueError>']
 *             try:
 *                 str_list += ['readMode : ' + str(self.readMode)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['readMode : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_readMode_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14221, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14221, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_readMode, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14221, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14221, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14221, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14221, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14220
 *             except ValueError:
 *                 str_list += ['filterMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['readMode : ' + str(self.readMode)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14222
 *             try:
 *                 str_list += ['readMode : ' + str(self.readMode)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['readMode : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14222, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14223
 *                 str_list += ['readMode : ' + str(self.readMode)]
 *             except ValueError:
 *                 str_list += ['readMode : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['sRGB : ' + str(self.sRGB)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14223, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_readMode_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_readMode_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_readMode_ValueError) != (0)) __PYX_ERR(0, 14223, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14223, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":14220
 *             except ValueError:
 *                 str_list += ['filterMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['readMode : ' + str(self.readMode)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14224
 *             except ValueError:
 *                 str_list += ['readMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sRGB : ' + str(self.sRGB)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14225
 *                 str_list += ['readMode : <ValueError>']
 *             try:
 *                 str_list += ['sRGB : ' + str(self.sRGB)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['sRGB : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_sRGB_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14225, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14225, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_sRGB, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14225, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14225, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14225, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14225, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14224
 *             except ValueError:
 *                 str_list += ['readMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sRGB : ' + str(self.sRGB)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14226
 *             try:
 *                 str_list += ['sRGB : ' + str(self.sRGB)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['sRGB : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 14226, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":14227
 *                 str_list += ['sRGB : ' + str(self.sRGB)]
 *             except ValueError:
 *                 str_list += ['sRGB : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['borderColor : ' + str(self.borderColor)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14227, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_sRGB_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_sRGB_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_sRGB_ValueError) != (0)) __PYX_ERR(0, 14227, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14227, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":14224
 *             except ValueError:
 *                 str_list += ['readMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['sRGB : ' + str(self.sRGB)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14228
 *             except ValueError:
 *                 str_list += ['sRGB : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['borderColor : ' + str(self.borderColor)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14229
 *                 str_list += ['sRGB : <ValueError>']
 *             try:
 *                 str_list += ['borderColor : ' + str(self.borderColor)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['borderColor : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_borderColor_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14229, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14229, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_borderColor, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14229, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14229, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14229, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14229, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14228
 *             except ValueError:
 *                 str_list += ['sRGB : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['borderColor : ' + str(self.borderColor)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14230
 *             try:
 *                 str_list += ['borderColor : ' + str(self.borderColor)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['borderColor : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14230, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14231
 *                 str_list += ['borderColor : ' + str(self.borderColor)]
 *             except ValueError:
 *                 str_list += ['borderColor : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['normalizedCoords : ' + str(self.normalizedCoords)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14231, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_borderColor_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_borderColor_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_borderColor_ValueError) != (0)) __PYX_ERR(0, 14231, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14231, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":14228
 *             except ValueError:
 *                 str_list += ['sRGB : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['borderColor : ' + str(self.borderColor)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14232
 *             except ValueError:
 *                 str_list += ['borderColor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['normalizedCoords : ' + str(self.normalizedCoords)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14233
 *                 str_list += ['borderColor : <ValueError>']
 *             try:
 *                 str_list += ['normalizedCoords : ' + str(self.normalizedCoords)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['normalizedCoords : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_normalizedCoords_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14233, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14233, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_normalizedCoords, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14233, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14233, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14233, __pyx_L44_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14233, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14232
 *             except ValueError:
 *                 str_list += ['borderColor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['normalizedCoords : ' + str(self.normalizedCoords)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L49_try_end;
      __pyx_L44_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14234
 *             try:
 *                 str_list += ['normalizedCoords : ' + str(self.normalizedCoords)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['normalizedCoords : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 14234, __pyx_L46_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":14235
 *                 str_list += ['normalizedCoords : ' + str(self.normalizedCoords)]
 *             except ValueError:
 *                 str_list += ['normalizedCoords : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14235, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_normalizedCoords_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_normalizedCoords_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_normalizedCoords_ValueError) != (0)) __PYX_ERR(0, 14235, __pyx_L46_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14235, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L45_exception_handled;
      }
      goto __pyx_L46_except_error;

      /* "cuda/bindings/runtime.pyx":14232
 *             except ValueError:
 *                 str_list += ['borderColor : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['normalizedCoords : ' + str(self.normalizedCoords)]
 *             except ValueError:
*/
      __pyx_L46_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L45_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L49_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14236
 *             except ValueError:
 *                 str_list += ['normalizedCoords : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14237
 *                 str_list += ['normalizedCoords : <ValueError>']
 *             try:
 *                 str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxAnisotropy : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxAnisotropy_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14237, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14237, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxAnisotropy, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14237, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14237, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14237, __pyx_L52_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14237, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14236
 *             except ValueError:
 *                 str_list += ['normalizedCoords : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L57_try_end;
      __pyx_L52_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14238
 *             try:
 *                 str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxAnisotropy : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14238, __pyx_L54_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14239
 *                 str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)]
 *             except ValueError:
 *                 str_list += ['maxAnisotropy : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14239, __pyx_L54_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxAnisotropy_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxAnisotropy_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_maxAnisotropy_ValueError) != (0)) __PYX_ERR(0, 14239, __pyx_L54_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14239, __pyx_L54_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L53_exception_handled;
      }
      goto __pyx_L54_except_error;

      /* "cuda/bindings/runtime.pyx":14236
 *             except ValueError:
 *                 str_list += ['normalizedCoords : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)]
 *             except ValueError:
*/
      __pyx_L54_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L53_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L57_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14240
 *             except ValueError:
 *                 str_list += ['maxAnisotropy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14241
 *                 str_list += ['maxAnisotropy : <ValueError>']
 *             try:
 *                 str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['mipmapFilterMode : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_mipmapFilterMode_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14241, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14241, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_mipmapFilterMode, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14241, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14241, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14241, __pyx_L60_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14241, __pyx_L60_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14240
 *             except ValueError:
 *                 str_list += ['maxAnisotropy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L65_try_end;
      __pyx_L60_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14242
 *             try:
 *                 str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmapFilterMode : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 14242, __pyx_L62_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":14243
 *                 str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)]
 *             except ValueError:
 *                 str_list += ['mipmapFilterMode : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14243, __pyx_L62_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_mipmapFilterMode_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_mipmapFilterMode_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_mipmapFilterMode_ValueError) != (0)) __PYX_ERR(0, 14243, __pyx_L62_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14243, __pyx_L62_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L61_exception_handled;
      }
      goto __pyx_L62_except_error;

      /* "cuda/bindings/runtime.pyx":14240
 *             except ValueError:
 *                 str_list += ['maxAnisotropy : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)]
 *             except ValueError:
*/
      __pyx_L62_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L61_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L65_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14244
 *             except ValueError:
 *                 str_list += ['mipmapFilterMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14245
 *                 str_list += ['mipmapFilterMode : <ValueError>']
 *             try:
 *                 str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['mipmapLevelBias : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_mipmapLevelBias_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14245, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14245, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_mipmapLevelBias, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14245, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14245, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14245, __pyx_L68_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14245, __pyx_L68_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14244
 *             except ValueError:
 *                 str_list += ['mipmapFilterMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L73_try_end;
      __pyx_L68_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14246
 *             try:
 *                 str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmapLevelBias : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14246, __pyx_L70_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14247
 *                 str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)]
 *             except ValueError:
 *                 str_list += ['mipmapLevelBias : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14247, __pyx_L70_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_mipmapLevelBias_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_mipmapLevelBias_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_mipmapLevelBias_ValueError) != (0)) __PYX_ERR(0, 14247, __pyx_L70_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14247, __pyx_L70_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L69_exception_handled;
      }
      goto __pyx_L70_except_error;

      /* "cuda/bindings/runtime.pyx":14244
 *             except ValueError:
 *                 str_list += ['mipmapFilterMode : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)]
 *             except ValueError:
*/
      __pyx_L70_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L69_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L73_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14248
 *             except ValueError:
 *                 str_list += ['mipmapLevelBias : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14249
 *                 str_list += ['mipmapLevelBias : <ValueError>']
 *             try:
 *                 str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['minMipmapLevelClamp : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_minMipmapLevelClamp_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14249, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14249, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_minMipmapLevelClamp, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14249, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14249, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14249, __pyx_L76_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14249, __pyx_L76_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14248
 *             except ValueError:
 *                 str_list += ['mipmapLevelBias : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L81_try_end;
      __pyx_L76_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14250
 *             try:
 *                 str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['minMipmapLevelClamp : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 14250, __pyx_L78_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":14251
 *                 str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)]
 *             except ValueError:
 *                 str_list += ['minMipmapLevelClamp : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14251, __pyx_L78_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_minMipmapLevelClamp_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_minMipmapLevelClamp_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_minMipmapLevelClamp_ValueError) != (0)) __PYX_ERR(0, 14251, __pyx_L78_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14251, __pyx_L78_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L77_exception_handled;
      }
      goto __pyx_L78_except_error;

      /* "cuda/bindings/runtime.pyx":14248
 *             except ValueError:
 *                 str_list += ['mipmapLevelBias : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)]
 *             except ValueError:
*/
      __pyx_L78_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L77_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L81_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14252
 *             except ValueError:
 *                 str_list += ['minMipmapLevelClamp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14253
 *                 str_list += ['minMipmapLevelClamp : <ValueError>']
 *             try:
 *                 str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['maxMipmapLevelClamp : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_maxMipmapLevelClamp_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14253, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14253, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_maxMipmapLevelClamp, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14253, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14253, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14253, __pyx_L84_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14253, __pyx_L84_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14252
 *             except ValueError:
 *                 str_list += ['minMipmapLevelClamp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L89_try_end;
      __pyx_L84_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14254
 *             try:
 *                 str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxMipmapLevelClamp : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14254, __pyx_L86_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14255
 *                 str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)]
 *             except ValueError:
 *                 str_list += ['maxMipmapLevelClamp : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14255, __pyx_L86_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_maxMipmapLevelClamp_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_maxMipmapLevelClamp_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_maxMipmapLevelClamp_ValueError) != (0)) __PYX_ERR(0, 14255, __pyx_L86_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14255, __pyx_L86_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L85_exception_handled;
      }
      goto __pyx_L86_except_error;

      /* "cuda/bindings/runtime.pyx":14252
 *             except ValueError:
 *                 str_list += ['minMipmapLevelClamp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)]
 *             except ValueError:
*/
      __pyx_L86_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L85_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L89_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14256
 *             except ValueError:
 *                 str_list += ['maxMipmapLevelClamp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14257
 *                 str_list += ['maxMipmapLevelClamp : <ValueError>']
 *             try:
 *                 str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['disableTrilinearOptimization : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_disableTrilinearOptimization_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14257, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14257, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_disableTrilinearOptimization, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14257, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14257, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14257, __pyx_L92_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14257, __pyx_L92_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14256
 *             except ValueError:
 *                 str_list += ['maxMipmapLevelClamp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L97_try_end;
      __pyx_L92_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14258
 *             try:
 *                 str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['disableTrilinearOptimization : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 14258, __pyx_L94_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":14259
 *                 str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)]
 *             except ValueError:
 *                 str_list += ['disableTrilinearOptimization : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14259, __pyx_L94_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_disableTrilinearOptimization_Val);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_disableTrilinearOptimization_Val);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_disableTrilinearOptimization_Val) != (0)) __PYX_ERR(0, 14259, __pyx_L94_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14259, __pyx_L94_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L93_exception_handled;
      }
      goto __pyx_L94_except_error;

      /* "cuda/bindings/runtime.pyx":14256
 *             except ValueError:
 *                 str_list += ['maxMipmapLevelClamp : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)]
 *             except ValueError:
*/
      __pyx_L94_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L93_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L97_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14260
 *             except ValueError:
 *                 str_list += ['disableTrilinearOptimization : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14261
 *                 str_list += ['disableTrilinearOptimization : <ValueError>']
 *             try:
 *                 str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['seamlessCubemap : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_seamlessCubemap_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14261, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14261, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_seamlessCubemap, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14261, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14261, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14261, __pyx_L100_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14261, __pyx_L100_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14260
 *             except ValueError:
 *                 str_list += ['disableTrilinearOptimization : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L105_try_end;
      __pyx_L100_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14262
 *             try:
 *                 str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['seamlessCubemap : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14262, __pyx_L102_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14263
 *                 str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)]
 *             except ValueError:
 *                 str_list += ['seamlessCubemap : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14263, __pyx_L102_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_seamlessCubemap_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_seamlessCubemap_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_seamlessCubemap_ValueError) != (0)) __PYX_ERR(0, 14263, __pyx_L102_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14263, __pyx_L102_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L101_exception_handled;
      }
      goto __pyx_L102_except_error;

      /* "cuda/bindings/runtime.pyx":14260
 *             except ValueError:
 *                 str_list += ['disableTrilinearOptimization : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)]
 *             except ValueError:
*/
      __pyx_L102_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L101_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L105_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14264
 *             except ValueError:
 *                 str_list += ['seamlessCubemap : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14210
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":14266
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def addressMode(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":14209
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14267
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def addressMode(self):
 *         return [_dict_cudaTextureAddressMode[_x] if _x in _dict_cudaTextureAddressMode else None for _x in list(self._pvt_ptr[0].addressMode)]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self) {
  PyObject *__pyx_10genexpr195__pyx_v__x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14269
 *     @property
 *     def addressMode(self):
 *         return [_dict_cudaTextureAddressMode[_x] if _x in _dict_cudaTextureAddressMode else None for _x in list(self._pvt_ptr[0].addressMode)]             # <<<<<<<<<<<<<<
 *     @addressMode.setter
 *     def addressMode(self, addressMode):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14269, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_carray_to_py_enum__cudaTextureAddressMode((__pyx_v_self->_pvt_ptr[0]).addressMode, 3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14269, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PySequence_ListKeepNew(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14269, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14269, __pyx_L5_error)
        #endif
        if (__pyx_t_4 >= __pyx_temp) break;
      }
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_4;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14269, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_10genexpr195__pyx_v__x, __pyx_t_3);
      __pyx_t_3 = 0;
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureAddressMode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14269, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_10genexpr195__pyx_v__x, __pyx_t_5, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 14269, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_6) {
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureAddressMode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14269, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_10genexpr195__pyx_v__x); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14269, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_3 = __pyx_t_7;
        __pyx_t_7 = 0;
      } else {
        __Pyx_INCREF(Py_None);
        __pyx_t_3 = Py_None;
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 14269, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_10genexpr195__pyx_v__x); __pyx_10genexpr195__pyx_v__x = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_10genexpr195__pyx_v__x); __pyx_10genexpr195__pyx_v__x = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14267
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def addressMode(self):
 *         return [_dict_cudaTextureAddressMode[_x] if _x in _dict_cudaTextureAddressMode else None for _x in list(self._pvt_ptr[0].addressMode)]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.addressMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_10genexpr195__pyx_v__x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14270
 *     def addressMode(self):
 *         return [_dict_cudaTextureAddressMode[_x] if _x in _dict_cudaTextureAddressMode else None for _x in list(self._pvt_ptr[0].addressMode)]
 *     @addressMode.setter             # <<<<<<<<<<<<<<
 *     def addressMode(self, addressMode):
 *         self._pvt_ptr[0].addressMode = [_x.value for _x in addressMode]
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_addressMode); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_addressMode) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_addressMode));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_addressMode) {
  PyObject *__pyx_10genexpr196__pyx_v__x = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  enum cudaTextureAddressMode __pyx_t_6[3];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14272
 *     @addressMode.setter
 *     def addressMode(self, addressMode):
 *         self._pvt_ptr[0].addressMode = [_x.value for _x in addressMode]             # <<<<<<<<<<<<<<
 *     @property
 *     def filterMode(self):
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14272, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_addressMode)) || PyTuple_CheckExact(__pyx_v_addressMode)) {
      __pyx_t_2 = __pyx_v_addressMode; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = 0;
      __pyx_t_4 = NULL;
    } else {
      __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_addressMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14272, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14272, __pyx_L5_error)
    }
    for (;;) {
      if (likely(!__pyx_t_4)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14272, __pyx_L5_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_3;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14272, __pyx_L5_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3);
          #endif
          ++__pyx_t_3;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14272, __pyx_L5_error)
      } else {
        __pyx_t_5 = __pyx_t_4(__pyx_t_2);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 14272, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_10genexpr196__pyx_v__x, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr196__pyx_v__x, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14272, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 14272, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_10genexpr196__pyx_v__x); __pyx_10genexpr196__pyx_v__x = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_10genexpr196__pyx_v__x); __pyx_10genexpr196__pyx_v__x = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  if (unlikely((__Pyx_carray_from_py_enum__cudaTextureAddressMode(__pyx_t_1, __pyx_t_6, 3) < 0))) __PYX_ERR(0, 14272, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).addressMode[0]), __pyx_t_6, sizeof((__pyx_v_self->_pvt_ptr[0]).addressMode[0]) * (3));

  /* "cuda/bindings/runtime.pyx":14270
 *     def addressMode(self):
 *         return [_dict_cudaTextureAddressMode[_x] if _x in _dict_cudaTextureAddressMode else None for _x in list(self._pvt_ptr[0].addressMode)]
 *     @addressMode.setter             # <<<<<<<<<<<<<<
 *     def addressMode(self, addressMode):
 *         self._pvt_ptr[0].addressMode = [_x.value for _x in addressMode]
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.addressMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_10genexpr196__pyx_v__x);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14273
 *     def addressMode(self, addressMode):
 *         self._pvt_ptr[0].addressMode = [_x.value for _x in addressMode]
 *     @property             # <<<<<<<<<<<<<<
 *     def filterMode(self):
 *         if self._pvt_ptr[0].filterMode not in _dict_cudaTextureFilterMode:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14275
 *     @property
 *     def filterMode(self):
 *         if self._pvt_ptr[0].filterMode not in _dict_cudaTextureFilterMode:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].filterMode]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaTextureFilterMode((__pyx_v_self->_pvt_ptr[0]).filterMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureFilterMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 14275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":14276
 *     def filterMode(self):
 *         if self._pvt_ptr[0].filterMode not in _dict_cudaTextureFilterMode:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].filterMode]
 *     @filterMode.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14275
 *     @property
 *     def filterMode(self):
 *         if self._pvt_ptr[0].filterMode not in _dict_cudaTextureFilterMode:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].filterMode]
*/
  }

  /* "cuda/bindings/runtime.pyx":14277
 *         if self._pvt_ptr[0].filterMode not in _dict_cudaTextureFilterMode:
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].filterMode]             # <<<<<<<<<<<<<<
 *     @filterMode.setter
 *     def filterMode(self, filterMode not None : cudaTextureFilterMode):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureFilterMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaTextureFilterMode((__pyx_v_self->_pvt_ptr[0]).filterMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14273
 *     def addressMode(self, addressMode):
 *         self._pvt_ptr[0].addressMode = [_x.value for _x in addressMode]
 *     @property             # <<<<<<<<<<<<<<
 *     def filterMode(self):
 *         if self._pvt_ptr[0].filterMode not in _dict_cudaTextureFilterMode:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.filterMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14278
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].filterMode]
 *     @filterMode.setter             # <<<<<<<<<<<<<<
 *     def filterMode(self, filterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].filterMode = filterMode.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_filterMode); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_filterMode) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_filterMode) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "filterMode"); __PYX_ERR(0, 14279, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_filterMode));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_filterMode) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaTextureFilterMode __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14280
 *     @filterMode.setter
 *     def filterMode(self, filterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].filterMode = filterMode.value             # <<<<<<<<<<<<<<
 *     @property
 *     def readMode(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_filterMode, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaTextureFilterMode)__Pyx_PyLong_As_enum__cudaTextureFilterMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14280, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).filterMode = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14278
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].filterMode]
 *     @filterMode.setter             # <<<<<<<<<<<<<<
 *     def filterMode(self, filterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].filterMode = filterMode.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.filterMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14281
 *     def filterMode(self, filterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].filterMode = filterMode.value
 *     @property             # <<<<<<<<<<<<<<
 *     def readMode(self):
 *         if self._pvt_ptr[0].readMode not in _dict_cudaTextureReadMode:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14283
 *     @property
 *     def readMode(self):
 *         if self._pvt_ptr[0].readMode not in _dict_cudaTextureReadMode:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaTextureReadMode[self._pvt_ptr[0].readMode]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaTextureReadMode((__pyx_v_self->_pvt_ptr[0]).readMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureReadMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 14283, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":14284
 *     def readMode(self):
 *         if self._pvt_ptr[0].readMode not in _dict_cudaTextureReadMode:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaTextureReadMode[self._pvt_ptr[0].readMode]
 *     @readMode.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14283
 *     @property
 *     def readMode(self):
 *         if self._pvt_ptr[0].readMode not in _dict_cudaTextureReadMode:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaTextureReadMode[self._pvt_ptr[0].readMode]
*/
  }

  /* "cuda/bindings/runtime.pyx":14285
 *         if self._pvt_ptr[0].readMode not in _dict_cudaTextureReadMode:
 *             return None
 *         return _dict_cudaTextureReadMode[self._pvt_ptr[0].readMode]             # <<<<<<<<<<<<<<
 *     @readMode.setter
 *     def readMode(self, readMode not None : cudaTextureReadMode):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureReadMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaTextureReadMode((__pyx_v_self->_pvt_ptr[0]).readMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14281
 *     def filterMode(self, filterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].filterMode = filterMode.value
 *     @property             # <<<<<<<<<<<<<<
 *     def readMode(self):
 *         if self._pvt_ptr[0].readMode not in _dict_cudaTextureReadMode:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.readMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14286
 *             return None
 *         return _dict_cudaTextureReadMode[self._pvt_ptr[0].readMode]
 *     @readMode.setter             # <<<<<<<<<<<<<<
 *     def readMode(self, readMode not None : cudaTextureReadMode):
 *         self._pvt_ptr[0].readMode = readMode.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_readMode); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_readMode) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_readMode) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "readMode"); __PYX_ERR(0, 14287, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_readMode));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_readMode) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaTextureReadMode __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14288
 *     @readMode.setter
 *     def readMode(self, readMode not None : cudaTextureReadMode):
 *         self._pvt_ptr[0].readMode = readMode.value             # <<<<<<<<<<<<<<
 *     @property
 *     def sRGB(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_readMode, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaTextureReadMode)__Pyx_PyLong_As_enum__cudaTextureReadMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14288, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).readMode = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14286
 *             return None
 *         return _dict_cudaTextureReadMode[self._pvt_ptr[0].readMode]
 *     @readMode.setter             # <<<<<<<<<<<<<<
 *     def readMode(self, readMode not None : cudaTextureReadMode):
 *         self._pvt_ptr[0].readMode = readMode.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.readMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14289
 *     def readMode(self, readMode not None : cudaTextureReadMode):
 *         self._pvt_ptr[0].readMode = readMode.value
 *     @property             # <<<<<<<<<<<<<<
 *     def sRGB(self):
 *         return self._pvt_ptr[0].sRGB
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14291
 *     @property
 *     def sRGB(self):
 *         return self._pvt_ptr[0].sRGB             # <<<<<<<<<<<<<<
 *     @sRGB.setter
 *     def sRGB(self, int sRGB):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).sRGB); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14289
 *     def readMode(self, readMode not None : cudaTextureReadMode):
 *         self._pvt_ptr[0].readMode = readMode.value
 *     @property             # <<<<<<<<<<<<<<
 *     def sRGB(self):
 *         return self._pvt_ptr[0].sRGB
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.sRGB.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14292
 *     def sRGB(self):
 *         return self._pvt_ptr[0].sRGB
 *     @sRGB.setter             # <<<<<<<<<<<<<<
 *     def sRGB(self, int sRGB):
 *         self._pvt_ptr[0].sRGB = sRGB
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sRGB); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_sRGB) {
  int __pyx_v_sRGB;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_sRGB); {
    __pyx_v_sRGB = __Pyx_PyLong_As_int(__pyx_arg_sRGB); if (unlikely((__pyx_v_sRGB == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14293, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.sRGB.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((int)__pyx_v_sRGB));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, int __pyx_v_sRGB) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14294
 *     @sRGB.setter
 *     def sRGB(self, int sRGB):
 *         self._pvt_ptr[0].sRGB = sRGB             # <<<<<<<<<<<<<<
 *     @property
 *     def borderColor(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).sRGB = __pyx_v_sRGB;

  /* "cuda/bindings/runtime.pyx":14292
 *     def sRGB(self):
 *         return self._pvt_ptr[0].sRGB
 *     @sRGB.setter             # <<<<<<<<<<<<<<
 *     def sRGB(self, int sRGB):
 *         self._pvt_ptr[0].sRGB = sRGB
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14295
 *     def sRGB(self, int sRGB):
 *         self._pvt_ptr[0].sRGB = sRGB
 *     @property             # <<<<<<<<<<<<<<
 *     def borderColor(self):
 *         return self._pvt_ptr[0].borderColor
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14297
 *     @property
 *     def borderColor(self):
 *         return self._pvt_ptr[0].borderColor             # <<<<<<<<<<<<<<
 *     @borderColor.setter
 *     def borderColor(self, borderColor):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_float((__pyx_v_self->_pvt_ptr[0]).borderColor, 4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14295
 *     def sRGB(self, int sRGB):
 *         self._pvt_ptr[0].sRGB = sRGB
 *     @property             # <<<<<<<<<<<<<<
 *     def borderColor(self):
 *         return self._pvt_ptr[0].borderColor
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.borderColor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14298
 *     def borderColor(self):
 *         return self._pvt_ptr[0].borderColor
 *     @borderColor.setter             # <<<<<<<<<<<<<<
 *     def borderColor(self, borderColor):
 *         self._pvt_ptr[0].borderColor = borderColor
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_borderColor); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_borderColor) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_borderColor));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_borderColor) {
  int __pyx_r;
  float __pyx_t_1[4];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":14300
 *     @borderColor.setter
 *     def borderColor(self, borderColor):
 *         self._pvt_ptr[0].borderColor = borderColor             # <<<<<<<<<<<<<<
 *     @property
 *     def normalizedCoords(self):
*/
  if (unlikely((__Pyx_carray_from_py_float(__pyx_v_borderColor, __pyx_t_1, 4) < 0))) __PYX_ERR(0, 14300, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).borderColor[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).borderColor[0]) * (4));

  /* "cuda/bindings/runtime.pyx":14298
 *     def borderColor(self):
 *         return self._pvt_ptr[0].borderColor
 *     @borderColor.setter             # <<<<<<<<<<<<<<
 *     def borderColor(self, borderColor):
 *         self._pvt_ptr[0].borderColor = borderColor
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.borderColor.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14301
 *     def borderColor(self, borderColor):
 *         self._pvt_ptr[0].borderColor = borderColor
 *     @property             # <<<<<<<<<<<<<<
 *     def normalizedCoords(self):
 *         return self._pvt_ptr[0].normalizedCoords
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14303
 *     @property
 *     def normalizedCoords(self):
 *         return self._pvt_ptr[0].normalizedCoords             # <<<<<<<<<<<<<<
 *     @normalizedCoords.setter
 *     def normalizedCoords(self, int normalizedCoords):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).normalizedCoords); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14301
 *     def borderColor(self, borderColor):
 *         self._pvt_ptr[0].borderColor = borderColor
 *     @property             # <<<<<<<<<<<<<<
 *     def normalizedCoords(self):
 *         return self._pvt_ptr[0].normalizedCoords
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.normalizedCoords.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14304
 *     def normalizedCoords(self):
 *         return self._pvt_ptr[0].normalizedCoords
 *     @normalizedCoords.setter             # <<<<<<<<<<<<<<
 *     def normalizedCoords(self, int normalizedCoords):
 *         self._pvt_ptr[0].normalizedCoords = normalizedCoords
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_normalizedCoords); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_normalizedCoords) {
  int __pyx_v_normalizedCoords;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_normalizedCoords); {
    __pyx_v_normalizedCoords = __Pyx_PyLong_As_int(__pyx_arg_normalizedCoords); if (unlikely((__pyx_v_normalizedCoords == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14305, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.normalizedCoords.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((int)__pyx_v_normalizedCoords));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, int __pyx_v_normalizedCoords) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14306
 *     @normalizedCoords.setter
 *     def normalizedCoords(self, int normalizedCoords):
 *         self._pvt_ptr[0].normalizedCoords = normalizedCoords             # <<<<<<<<<<<<<<
 *     @property
 *     def maxAnisotropy(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).normalizedCoords = __pyx_v_normalizedCoords;

  /* "cuda/bindings/runtime.pyx":14304
 *     def normalizedCoords(self):
 *         return self._pvt_ptr[0].normalizedCoords
 *     @normalizedCoords.setter             # <<<<<<<<<<<<<<
 *     def normalizedCoords(self, int normalizedCoords):
 *         self._pvt_ptr[0].normalizedCoords = normalizedCoords
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14307
 *     def normalizedCoords(self, int normalizedCoords):
 *         self._pvt_ptr[0].normalizedCoords = normalizedCoords
 *     @property             # <<<<<<<<<<<<<<
 *     def maxAnisotropy(self):
 *         return self._pvt_ptr[0].maxAnisotropy
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14309
 *     @property
 *     def maxAnisotropy(self):
 *         return self._pvt_ptr[0].maxAnisotropy             # <<<<<<<<<<<<<<
 *     @maxAnisotropy.setter
 *     def maxAnisotropy(self, unsigned int maxAnisotropy):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).maxAnisotropy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14307
 *     def normalizedCoords(self, int normalizedCoords):
 *         self._pvt_ptr[0].normalizedCoords = normalizedCoords
 *     @property             # <<<<<<<<<<<<<<
 *     def maxAnisotropy(self):
 *         return self._pvt_ptr[0].maxAnisotropy
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.maxAnisotropy.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14310
 *     def maxAnisotropy(self):
 *         return self._pvt_ptr[0].maxAnisotropy
 *     @maxAnisotropy.setter             # <<<<<<<<<<<<<<
 *     def maxAnisotropy(self, unsigned int maxAnisotropy):
 *         self._pvt_ptr[0].maxAnisotropy = maxAnisotropy
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxAnisotropy); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxAnisotropy) {
  unsigned int __pyx_v_maxAnisotropy;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxAnisotropy); {
    __pyx_v_maxAnisotropy = __Pyx_PyLong_As_unsigned_int(__pyx_arg_maxAnisotropy); if (unlikely((__pyx_v_maxAnisotropy == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14311, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.maxAnisotropy.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((unsigned int)__pyx_v_maxAnisotropy));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, unsigned int __pyx_v_maxAnisotropy) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14312
 *     @maxAnisotropy.setter
 *     def maxAnisotropy(self, unsigned int maxAnisotropy):
 *         self._pvt_ptr[0].maxAnisotropy = maxAnisotropy             # <<<<<<<<<<<<<<
 *     @property
 *     def mipmapFilterMode(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxAnisotropy = __pyx_v_maxAnisotropy;

  /* "cuda/bindings/runtime.pyx":14310
 *     def maxAnisotropy(self):
 *         return self._pvt_ptr[0].maxAnisotropy
 *     @maxAnisotropy.setter             # <<<<<<<<<<<<<<
 *     def maxAnisotropy(self, unsigned int maxAnisotropy):
 *         self._pvt_ptr[0].maxAnisotropy = maxAnisotropy
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14313
 *     def maxAnisotropy(self, unsigned int maxAnisotropy):
 *         self._pvt_ptr[0].maxAnisotropy = maxAnisotropy
 *     @property             # <<<<<<<<<<<<<<
 *     def mipmapFilterMode(self):
 *         if self._pvt_ptr[0].mipmapFilterMode not in _dict_cudaTextureFilterMode:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14315
 *     @property
 *     def mipmapFilterMode(self):
 *         if self._pvt_ptr[0].mipmapFilterMode not in _dict_cudaTextureFilterMode:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].mipmapFilterMode]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaTextureFilterMode((__pyx_v_self->_pvt_ptr[0]).mipmapFilterMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureFilterMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 14315, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":14316
 *     def mipmapFilterMode(self):
 *         if self._pvt_ptr[0].mipmapFilterMode not in _dict_cudaTextureFilterMode:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].mipmapFilterMode]
 *     @mipmapFilterMode.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14315
 *     @property
 *     def mipmapFilterMode(self):
 *         if self._pvt_ptr[0].mipmapFilterMode not in _dict_cudaTextureFilterMode:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].mipmapFilterMode]
*/
  }

  /* "cuda/bindings/runtime.pyx":14317
 *         if self._pvt_ptr[0].mipmapFilterMode not in _dict_cudaTextureFilterMode:
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].mipmapFilterMode]             # <<<<<<<<<<<<<<
 *     @mipmapFilterMode.setter
 *     def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureFilterMode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaTextureFilterMode((__pyx_v_self->_pvt_ptr[0]).mipmapFilterMode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14313
 *     def maxAnisotropy(self, unsigned int maxAnisotropy):
 *         self._pvt_ptr[0].maxAnisotropy = maxAnisotropy
 *     @property             # <<<<<<<<<<<<<<
 *     def mipmapFilterMode(self):
 *         if self._pvt_ptr[0].mipmapFilterMode not in _dict_cudaTextureFilterMode:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.mipmapFilterMode.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14318
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].mipmapFilterMode]
 *     @mipmapFilterMode.setter             # <<<<<<<<<<<<<<
 *     def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].mipmapFilterMode = mipmapFilterMode.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmapFilterMode); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_mipmapFilterMode) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_mipmapFilterMode) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "mipmapFilterMode"); __PYX_ERR(0, 14319, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((PyObject *)__pyx_v_mipmapFilterMode));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, PyObject *__pyx_v_mipmapFilterMode) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaTextureFilterMode __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14320
 *     @mipmapFilterMode.setter
 *     def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].mipmapFilterMode = mipmapFilterMode.value             # <<<<<<<<<<<<<<
 *     @property
 *     def mipmapLevelBias(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_mipmapFilterMode, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaTextureFilterMode)__Pyx_PyLong_As_enum__cudaTextureFilterMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).mipmapFilterMode = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14318
 *             return None
 *         return _dict_cudaTextureFilterMode[self._pvt_ptr[0].mipmapFilterMode]
 *     @mipmapFilterMode.setter             # <<<<<<<<<<<<<<
 *     def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].mipmapFilterMode = mipmapFilterMode.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.mipmapFilterMode.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14321
 *     def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].mipmapFilterMode = mipmapFilterMode.value
 *     @property             # <<<<<<<<<<<<<<
 *     def mipmapLevelBias(self):
 *         return self._pvt_ptr[0].mipmapLevelBias
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14323
 *     @property
 *     def mipmapLevelBias(self):
 *         return self._pvt_ptr[0].mipmapLevelBias             # <<<<<<<<<<<<<<
 *     @mipmapLevelBias.setter
 *     def mipmapLevelBias(self, float mipmapLevelBias):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->_pvt_ptr[0]).mipmapLevelBias); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14321
 *     def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode):
 *         self._pvt_ptr[0].mipmapFilterMode = mipmapFilterMode.value
 *     @property             # <<<<<<<<<<<<<<
 *     def mipmapLevelBias(self):
 *         return self._pvt_ptr[0].mipmapLevelBias
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.mipmapLevelBias.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14324
 *     def mipmapLevelBias(self):
 *         return self._pvt_ptr[0].mipmapLevelBias
 *     @mipmapLevelBias.setter             # <<<<<<<<<<<<<<
 *     def mipmapLevelBias(self, float mipmapLevelBias):
 *         self._pvt_ptr[0].mipmapLevelBias = mipmapLevelBias
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_mipmapLevelBias); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_mipmapLevelBias) {
  float __pyx_v_mipmapLevelBias;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_mipmapLevelBias); {
    __pyx_v_mipmapLevelBias = __Pyx_PyFloat_AsFloat(__pyx_arg_mipmapLevelBias); if (unlikely((__pyx_v_mipmapLevelBias == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 14325, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.mipmapLevelBias.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((float)__pyx_v_mipmapLevelBias));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, float __pyx_v_mipmapLevelBias) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14326
 *     @mipmapLevelBias.setter
 *     def mipmapLevelBias(self, float mipmapLevelBias):
 *         self._pvt_ptr[0].mipmapLevelBias = mipmapLevelBias             # <<<<<<<<<<<<<<
 *     @property
 *     def minMipmapLevelClamp(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).mipmapLevelBias = __pyx_v_mipmapLevelBias;

  /* "cuda/bindings/runtime.pyx":14324
 *     def mipmapLevelBias(self):
 *         return self._pvt_ptr[0].mipmapLevelBias
 *     @mipmapLevelBias.setter             # <<<<<<<<<<<<<<
 *     def mipmapLevelBias(self, float mipmapLevelBias):
 *         self._pvt_ptr[0].mipmapLevelBias = mipmapLevelBias
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14327
 *     def mipmapLevelBias(self, float mipmapLevelBias):
 *         self._pvt_ptr[0].mipmapLevelBias = mipmapLevelBias
 *     @property             # <<<<<<<<<<<<<<
 *     def minMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].minMipmapLevelClamp
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14329
 *     @property
 *     def minMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].minMipmapLevelClamp             # <<<<<<<<<<<<<<
 *     @minMipmapLevelClamp.setter
 *     def minMipmapLevelClamp(self, float minMipmapLevelClamp):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->_pvt_ptr[0]).minMipmapLevelClamp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14327
 *     def mipmapLevelBias(self, float mipmapLevelBias):
 *         self._pvt_ptr[0].mipmapLevelBias = mipmapLevelBias
 *     @property             # <<<<<<<<<<<<<<
 *     def minMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].minMipmapLevelClamp
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.minMipmapLevelClamp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14330
 *     def minMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].minMipmapLevelClamp
 *     @minMipmapLevelClamp.setter             # <<<<<<<<<<<<<<
 *     def minMipmapLevelClamp(self, float minMipmapLevelClamp):
 *         self._pvt_ptr[0].minMipmapLevelClamp = minMipmapLevelClamp
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_minMipmapLevelClamp); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_minMipmapLevelClamp) {
  float __pyx_v_minMipmapLevelClamp;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_minMipmapLevelClamp); {
    __pyx_v_minMipmapLevelClamp = __Pyx_PyFloat_AsFloat(__pyx_arg_minMipmapLevelClamp); if (unlikely((__pyx_v_minMipmapLevelClamp == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 14331, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.minMipmapLevelClamp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((float)__pyx_v_minMipmapLevelClamp));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, float __pyx_v_minMipmapLevelClamp) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14332
 *     @minMipmapLevelClamp.setter
 *     def minMipmapLevelClamp(self, float minMipmapLevelClamp):
 *         self._pvt_ptr[0].minMipmapLevelClamp = minMipmapLevelClamp             # <<<<<<<<<<<<<<
 *     @property
 *     def maxMipmapLevelClamp(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).minMipmapLevelClamp = __pyx_v_minMipmapLevelClamp;

  /* "cuda/bindings/runtime.pyx":14330
 *     def minMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].minMipmapLevelClamp
 *     @minMipmapLevelClamp.setter             # <<<<<<<<<<<<<<
 *     def minMipmapLevelClamp(self, float minMipmapLevelClamp):
 *         self._pvt_ptr[0].minMipmapLevelClamp = minMipmapLevelClamp
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14333
 *     def minMipmapLevelClamp(self, float minMipmapLevelClamp):
 *         self._pvt_ptr[0].minMipmapLevelClamp = minMipmapLevelClamp
 *     @property             # <<<<<<<<<<<<<<
 *     def maxMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].maxMipmapLevelClamp
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14335
 *     @property
 *     def maxMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].maxMipmapLevelClamp             # <<<<<<<<<<<<<<
 *     @maxMipmapLevelClamp.setter
 *     def maxMipmapLevelClamp(self, float maxMipmapLevelClamp):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->_pvt_ptr[0]).maxMipmapLevelClamp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14333
 *     def minMipmapLevelClamp(self, float minMipmapLevelClamp):
 *         self._pvt_ptr[0].minMipmapLevelClamp = minMipmapLevelClamp
 *     @property             # <<<<<<<<<<<<<<
 *     def maxMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].maxMipmapLevelClamp
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.maxMipmapLevelClamp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14336
 *     def maxMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].maxMipmapLevelClamp
 *     @maxMipmapLevelClamp.setter             # <<<<<<<<<<<<<<
 *     def maxMipmapLevelClamp(self, float maxMipmapLevelClamp):
 *         self._pvt_ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxMipmapLevelClamp); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_maxMipmapLevelClamp) {
  float __pyx_v_maxMipmapLevelClamp;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_maxMipmapLevelClamp); {
    __pyx_v_maxMipmapLevelClamp = __Pyx_PyFloat_AsFloat(__pyx_arg_maxMipmapLevelClamp); if (unlikely((__pyx_v_maxMipmapLevelClamp == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 14337, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.maxMipmapLevelClamp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((float)__pyx_v_maxMipmapLevelClamp));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, float __pyx_v_maxMipmapLevelClamp) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14338
 *     @maxMipmapLevelClamp.setter
 *     def maxMipmapLevelClamp(self, float maxMipmapLevelClamp):
 *         self._pvt_ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp             # <<<<<<<<<<<<<<
 *     @property
 *     def disableTrilinearOptimization(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).maxMipmapLevelClamp = __pyx_v_maxMipmapLevelClamp;

  /* "cuda/bindings/runtime.pyx":14336
 *     def maxMipmapLevelClamp(self):
 *         return self._pvt_ptr[0].maxMipmapLevelClamp
 *     @maxMipmapLevelClamp.setter             # <<<<<<<<<<<<<<
 *     def maxMipmapLevelClamp(self, float maxMipmapLevelClamp):
 *         self._pvt_ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14339
 *     def maxMipmapLevelClamp(self, float maxMipmapLevelClamp):
 *         self._pvt_ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp
 *     @property             # <<<<<<<<<<<<<<
 *     def disableTrilinearOptimization(self):
 *         return self._pvt_ptr[0].disableTrilinearOptimization
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14341
 *     @property
 *     def disableTrilinearOptimization(self):
 *         return self._pvt_ptr[0].disableTrilinearOptimization             # <<<<<<<<<<<<<<
 *     @disableTrilinearOptimization.setter
 *     def disableTrilinearOptimization(self, int disableTrilinearOptimization):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).disableTrilinearOptimization); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14339
 *     def maxMipmapLevelClamp(self, float maxMipmapLevelClamp):
 *         self._pvt_ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp
 *     @property             # <<<<<<<<<<<<<<
 *     def disableTrilinearOptimization(self):
 *         return self._pvt_ptr[0].disableTrilinearOptimization
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.disableTrilinearOptimization.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14342
 *     def disableTrilinearOptimization(self):
 *         return self._pvt_ptr[0].disableTrilinearOptimization
 *     @disableTrilinearOptimization.setter             # <<<<<<<<<<<<<<
 *     def disableTrilinearOptimization(self, int disableTrilinearOptimization):
 *         self._pvt_ptr[0].disableTrilinearOptimization = disableTrilinearOptimization
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_disableTrilinearOptimization); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_disableTrilinearOptimization) {
  int __pyx_v_disableTrilinearOptimization;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_disableTrilinearOptimization); {
    __pyx_v_disableTrilinearOptimization = __Pyx_PyLong_As_int(__pyx_arg_disableTrilinearOptimization); if (unlikely((__pyx_v_disableTrilinearOptimization == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14343, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.disableTrilinearOptimization.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((int)__pyx_v_disableTrilinearOptimization));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, int __pyx_v_disableTrilinearOptimization) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14344
 *     @disableTrilinearOptimization.setter
 *     def disableTrilinearOptimization(self, int disableTrilinearOptimization):
 *         self._pvt_ptr[0].disableTrilinearOptimization = disableTrilinearOptimization             # <<<<<<<<<<<<<<
 *     @property
 *     def seamlessCubemap(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).disableTrilinearOptimization = __pyx_v_disableTrilinearOptimization;

  /* "cuda/bindings/runtime.pyx":14342
 *     def disableTrilinearOptimization(self):
 *         return self._pvt_ptr[0].disableTrilinearOptimization
 *     @disableTrilinearOptimization.setter             # <<<<<<<<<<<<<<
 *     def disableTrilinearOptimization(self, int disableTrilinearOptimization):
 *         self._pvt_ptr[0].disableTrilinearOptimization = disableTrilinearOptimization
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14345
 *     def disableTrilinearOptimization(self, int disableTrilinearOptimization):
 *         self._pvt_ptr[0].disableTrilinearOptimization = disableTrilinearOptimization
 *     @property             # <<<<<<<<<<<<<<
 *     def seamlessCubemap(self):
 *         return self._pvt_ptr[0].seamlessCubemap
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14347
 *     @property
 *     def seamlessCubemap(self):
 *         return self._pvt_ptr[0].seamlessCubemap             # <<<<<<<<<<<<<<
 *     @seamlessCubemap.setter
 *     def seamlessCubemap(self, int seamlessCubemap):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_self->_pvt_ptr[0]).seamlessCubemap); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14345
 *     def disableTrilinearOptimization(self, int disableTrilinearOptimization):
 *         self._pvt_ptr[0].disableTrilinearOptimization = disableTrilinearOptimization
 *     @property             # <<<<<<<<<<<<<<
 *     def seamlessCubemap(self):
 *         return self._pvt_ptr[0].seamlessCubemap
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.seamlessCubemap.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14348
 *     def seamlessCubemap(self):
 *         return self._pvt_ptr[0].seamlessCubemap
 *     @seamlessCubemap.setter             # <<<<<<<<<<<<<<
 *     def seamlessCubemap(self, int seamlessCubemap):
 *         self._pvt_ptr[0].seamlessCubemap = seamlessCubemap
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_seamlessCubemap); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_seamlessCubemap) {
  int __pyx_v_seamlessCubemap;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_seamlessCubemap); {
    __pyx_v_seamlessCubemap = __Pyx_PyLong_As_int(__pyx_arg_seamlessCubemap); if (unlikely((__pyx_v_seamlessCubemap == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14349, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.seamlessCubemap.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), ((int)__pyx_v_seamlessCubemap));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, int __pyx_v_seamlessCubemap) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14350
 *     @seamlessCubemap.setter
 *     def seamlessCubemap(self, int seamlessCubemap):
 *         self._pvt_ptr[0].seamlessCubemap = seamlessCubemap             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaEglPlaneDesc_st:
*/
  (__pyx_v_self->_pvt_ptr[0]).seamlessCubemap = __pyx_v_seamlessCubemap;

  /* "cuda/bindings/runtime.pyx":14348
 *     def seamlessCubemap(self):
 *         return self._pvt_ptr[0].seamlessCubemap
 *     @seamlessCubemap.setter             # <<<<<<<<<<<<<<
 *     def seamlessCubemap(self, int seamlessCubemap):
 *         self._pvt_ptr[0].seamlessCubemap = seamlessCubemap
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_15cudaTextureDesc_10__reduce_cython__, "cudaTextureDesc.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaTextureDesc_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaTextureDesc_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_15cudaTextureDesc_12__setstate_cython__, "cudaTextureDesc.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaTextureDesc_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaTextureDesc_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaTextureDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaTextureDesc_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureDesc.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14379
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14379, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14379, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14379, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14379, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14379, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 14379, __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.runtime.cudaEglPlaneDesc_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14380
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14381
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEglPlaneDesc_st *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14380
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14383
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEglPlaneDesc_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14379
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14384
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEglPlaneDesc_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._channelDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].channelDesc)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14384, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14384, __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, "__init__", 0) < (0)) __PYX_ERR(0, 14384, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14384, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14384, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 14384, __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.runtime.cudaEglPlaneDesc_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":14386
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._channelDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].channelDesc)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).channelDesc))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14386, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 14386, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14386, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_channelDesc);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_channelDesc);
  __pyx_v_self->_channelDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":14384
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEglPlaneDesc_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._channelDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].channelDesc)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14387
 *         pass
 *         self._channelDesc = cudaChannelFormatDesc(_ptr=<void_ptr>&self._pvt_ptr[0].channelDesc)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14389
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_7getPtr(PyObject *__pyx_v_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_7runtime_19cudaEglPlaneDesc_st_6getPtr, "cudaEglPlaneDesc_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14390
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14389
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14391
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr197__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14392
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14393
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":14394
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14395
 *             str_list = []
 *             try:
 *                 str_list += ['width : ' + str(self.width)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_width_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14395, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14395, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14395, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14395, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14395, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14395, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14394
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":14396
 *             try:
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14396, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14397
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14397, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_width_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_width_ValueError) != (0)) __PYX_ERR(0, 14397, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14397, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":14394
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['width : ' + str(self.width)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14398
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14399
 *                 str_list += ['width : <ValueError>']
 *             try:
 *                 str_list += ['height : ' + str(self.height)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_height_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14399, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14399, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_height, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14399, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14399, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14399, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14399, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14398
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14400
 *             try:
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 14400, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":14401
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14401, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_height_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_height_ValueError) != (0)) __PYX_ERR(0, 14401, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14401, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":14398
 *             except ValueError:
 *                 str_list += ['width : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['height : ' + str(self.height)]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14402
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14403
 *                 str_list += ['height : <ValueError>']
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_depth_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14403, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14403, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_depth, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14403, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14403, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14403, __pyx_L20_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14403, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14402
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L25_try_end;
      __pyx_L20_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14404
 *             try:
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14404, __pyx_L22_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14405
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14405, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_depth_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_depth_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_depth_ValueError) != (0)) __PYX_ERR(0, 14405, __pyx_L22_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14405, __pyx_L22_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L21_exception_handled;
      }
      goto __pyx_L22_except_error;

      /* "cuda/bindings/runtime.pyx":14402
 *             except ValueError:
 *                 str_list += ['height : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['depth : ' + str(self.depth)]
 *             except ValueError:
*/
      __pyx_L22_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L21_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L25_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14406
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14407
 *                 str_list += ['depth : <ValueError>']
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
*/
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pitch_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14407, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14407, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pitch, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14407, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14407, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14407, __pyx_L28_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14407, __pyx_L28_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14406
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L33_try_end;
      __pyx_L28_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14408
 *             try:
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_6, &__pyx_t_2) < 0) __PYX_ERR(0, 14408, __pyx_L30_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);

        /* "cuda/bindings/runtime.pyx":14409
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['numChannels : ' + str(self.numChannels)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14409, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pitch_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pitch_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_pitch_ValueError) != (0)) __PYX_ERR(0, 14409, __pyx_L30_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14409, __pyx_L30_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L29_exception_handled;
      }
      goto __pyx_L30_except_error;

      /* "cuda/bindings/runtime.pyx":14406
 *             except ValueError:
 *                 str_list += ['depth : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pitch : ' + str(self.pitch)]
 *             except ValueError:
*/
      __pyx_L30_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L29_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L33_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14410
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numChannels : ' + str(self.numChannels)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14411
 *                 str_list += ['pitch : <ValueError>']
 *             try:
 *                 str_list += ['numChannels : ' + str(self.numChannels)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['numChannels : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_numChannels_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14411, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14411, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_numChannels, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14411, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14411, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14411, __pyx_L36_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14411, __pyx_L36_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14410
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numChannels : ' + str(self.numChannels)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L41_try_end;
      __pyx_L36_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14412
 *             try:
 *                 str_list += ['numChannels : ' + str(self.numChannels)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['numChannels : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14412, __pyx_L38_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14413
 *                 str_list += ['numChannels : ' + str(self.numChannels)]
 *             except ValueError:
 *                 str_list += ['numChannels : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['channelDesc :\n' + '\n'.join(['    ' + line for line in str(self.channelDesc).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14413, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_numChannels_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_numChannels_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_numChannels_ValueError) != (0)) __PYX_ERR(0, 14413, __pyx_L38_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14413, __pyx_L38_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L37_exception_handled;
      }
      goto __pyx_L38_except_error;

      /* "cuda/bindings/runtime.pyx":14410
 *             except ValueError:
 *                 str_list += ['pitch : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['numChannels : ' + str(self.numChannels)]
 *             except ValueError:
*/
      __pyx_L38_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L37_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L41_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14414
 *             except ValueError:
 *                 str_list += ['numChannels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['channelDesc :\n' + '\n'.join(['    ' + line for line in str(self.channelDesc).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14415
 *                 str_list += ['numChannels : <ValueError>']
 *             try:
 *                 str_list += ['channelDesc :\n' + '\n'.join(['    ' + line for line in str(self.channelDesc).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['channelDesc : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14415, __pyx_L52_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_channelDesc_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14415, __pyx_L52_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14415, __pyx_L52_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14415, __pyx_L52_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14415, __pyx_L52_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14415, __pyx_L52_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr197__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr197__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14415, __pyx_L52_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 14415, __pyx_L52_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr197__pyx_v_line); __pyx_10genexpr197__pyx_v_line = 0;
          goto __pyx_L56_exit_scope;
          __pyx_L52_error:;
          __Pyx_XDECREF(__pyx_10genexpr197__pyx_v_line); __pyx_10genexpr197__pyx_v_line = 0;
          goto __pyx_L44_error;
          __pyx_L56_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14415, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_channelDesc, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14415, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14415, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14415, __pyx_L44_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14415, __pyx_L44_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14414
 *             except ValueError:
 *                 str_list += ['numChannels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['channelDesc :\n' + '\n'.join(['    ' + line for line in str(self.channelDesc).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L49_try_end;
      __pyx_L44_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14416
 *             try:
 *                 str_list += ['channelDesc :\n' + '\n'.join(['    ' + line for line in str(self.channelDesc).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['channelDesc : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 14416, __pyx_L46_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":14417
 *                 str_list += ['channelDesc :\n' + '\n'.join(['    ' + line for line in str(self.channelDesc).splitlines()])]
 *             except ValueError:
 *                 str_list += ['channelDesc : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14417, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_channelDesc_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_channelDesc_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_channelDesc_ValueError) != (0)) __PYX_ERR(0, 14417, __pyx_L46_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14417, __pyx_L46_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L45_exception_handled;
      }
      goto __pyx_L46_except_error;

      /* "cuda/bindings/runtime.pyx":14414
 *             except ValueError:
 *                 str_list += ['numChannels : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['channelDesc :\n' + '\n'.join(['    ' + line for line in str(self.channelDesc).splitlines()])]
 *             except ValueError:
*/
      __pyx_L46_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L45_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L49_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14418
 *             except ValueError:
 *                 str_list += ['channelDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14419
 *                 str_list += ['channelDesc : <ValueError>']
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_reserved_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14419, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14419, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_reserved, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14419, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14419, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 14419, __pyx_L59_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14419, __pyx_L59_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":14418
 *             except ValueError:
 *                 str_list += ['channelDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L64_try_end;
      __pyx_L59_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14420
 *             try:
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_8) < 0) __PYX_ERR(0, 14420, __pyx_L61_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14421
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14421, __pyx_L61_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_reserved_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_reserved_ValueError) != (0)) __PYX_ERR(0, 14421, __pyx_L61_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14421, __pyx_L61_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L60_exception_handled;
      }
      goto __pyx_L61_except_error;

      /* "cuda/bindings/runtime.pyx":14418
 *             except ValueError:
 *                 str_list += ['channelDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['reserved : ' + str(self.reserved)]
 *             except ValueError:
*/
      __pyx_L61_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L60_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L64_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14422
 *             except ValueError:
 *                 str_list += ['reserved : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14422, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14392
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":14424
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def width(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":14391
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr197__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14425
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14427
 *     @property
 *     def width(self):
 *         return self._pvt_ptr[0].width             # <<<<<<<<<<<<<<
 *     @width.setter
 *     def width(self, unsigned int width):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14425
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def width(self):
 *         return self._pvt_ptr[0].width
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14428
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].width = width
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_width) {
  unsigned int __pyx_v_width;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_width); {
    __pyx_v_width = __Pyx_PyLong_As_unsigned_int(__pyx_arg_width); if (unlikely((__pyx_v_width == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14429, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_width));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_width) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14430
 *     @width.setter
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].width = width             # <<<<<<<<<<<<<<
 *     @property
 *     def height(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).width = __pyx_v_width;

  /* "cuda/bindings/runtime.pyx":14428
 *     def width(self):
 *         return self._pvt_ptr[0].width
 *     @width.setter             # <<<<<<<<<<<<<<
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].width = width
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14431
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14433
 *     @property
 *     def height(self):
 *         return self._pvt_ptr[0].height             # <<<<<<<<<<<<<<
 *     @height.setter
 *     def height(self, unsigned int height):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14431
 *     def width(self, unsigned int width):
 *         self._pvt_ptr[0].width = width
 *     @property             # <<<<<<<<<<<<<<
 *     def height(self):
 *         return self._pvt_ptr[0].height
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14434
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].height = height
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_height) {
  unsigned int __pyx_v_height;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_height); {
    __pyx_v_height = __Pyx_PyLong_As_unsigned_int(__pyx_arg_height); if (unlikely((__pyx_v_height == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14435, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_height));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_height) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14436
 *     @height.setter
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].height = height             # <<<<<<<<<<<<<<
 *     @property
 *     def depth(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).height = __pyx_v_height;

  /* "cuda/bindings/runtime.pyx":14434
 *     def height(self):
 *         return self._pvt_ptr[0].height
 *     @height.setter             # <<<<<<<<<<<<<<
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].height = height
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14437
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14439
 *     @property
 *     def depth(self):
 *         return self._pvt_ptr[0].depth             # <<<<<<<<<<<<<<
 *     @depth.setter
 *     def depth(self, unsigned int depth):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).depth); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14437
 *     def height(self, unsigned int height):
 *         self._pvt_ptr[0].height = height
 *     @property             # <<<<<<<<<<<<<<
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.depth.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14440
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
 *     @depth.setter             # <<<<<<<<<<<<<<
 *     def depth(self, unsigned int depth):
 *         self._pvt_ptr[0].depth = depth
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_depth) {
  unsigned int __pyx_v_depth;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_depth); {
    __pyx_v_depth = __Pyx_PyLong_As_unsigned_int(__pyx_arg_depth); if (unlikely((__pyx_v_depth == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14441, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.depth.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_depth));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_depth) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14442
 *     @depth.setter
 *     def depth(self, unsigned int depth):
 *         self._pvt_ptr[0].depth = depth             # <<<<<<<<<<<<<<
 *     @property
 *     def pitch(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).depth = __pyx_v_depth;

  /* "cuda/bindings/runtime.pyx":14440
 *     def depth(self):
 *         return self._pvt_ptr[0].depth
 *     @depth.setter             # <<<<<<<<<<<<<<
 *     def depth(self, unsigned int depth):
 *         self._pvt_ptr[0].depth = depth
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14443
 *     def depth(self, unsigned int depth):
 *         self._pvt_ptr[0].depth = depth
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14445
 *     @property
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch             # <<<<<<<<<<<<<<
 *     @pitch.setter
 *     def pitch(self, unsigned int pitch):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).pitch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14443
 *     def depth(self, unsigned int depth):
 *         self._pvt_ptr[0].depth = depth
 *     @property             # <<<<<<<<<<<<<<
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.pitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14446
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
 *     @pitch.setter             # <<<<<<<<<<<<<<
 *     def pitch(self, unsigned int pitch):
 *         self._pvt_ptr[0].pitch = pitch
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_pitch) {
  unsigned int __pyx_v_pitch;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_pitch); {
    __pyx_v_pitch = __Pyx_PyLong_As_unsigned_int(__pyx_arg_pitch); if (unlikely((__pyx_v_pitch == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14447, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.pitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_pitch));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_pitch) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14448
 *     @pitch.setter
 *     def pitch(self, unsigned int pitch):
 *         self._pvt_ptr[0].pitch = pitch             # <<<<<<<<<<<<<<
 *     @property
 *     def numChannels(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).pitch = __pyx_v_pitch;

  /* "cuda/bindings/runtime.pyx":14446
 *     def pitch(self):
 *         return self._pvt_ptr[0].pitch
 *     @pitch.setter             # <<<<<<<<<<<<<<
 *     def pitch(self, unsigned int pitch):
 *         self._pvt_ptr[0].pitch = pitch
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14449
 *     def pitch(self, unsigned int pitch):
 *         self._pvt_ptr[0].pitch = pitch
 *     @property             # <<<<<<<<<<<<<<
 *     def numChannels(self):
 *         return self._pvt_ptr[0].numChannels
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14451
 *     @property
 *     def numChannels(self):
 *         return self._pvt_ptr[0].numChannels             # <<<<<<<<<<<<<<
 *     @numChannels.setter
 *     def numChannels(self, unsigned int numChannels):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).numChannels); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14449
 *     def pitch(self, unsigned int pitch):
 *         self._pvt_ptr[0].pitch = pitch
 *     @property             # <<<<<<<<<<<<<<
 *     def numChannels(self):
 *         return self._pvt_ptr[0].numChannels
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.numChannels.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14452
 *     def numChannels(self):
 *         return self._pvt_ptr[0].numChannels
 *     @numChannels.setter             # <<<<<<<<<<<<<<
 *     def numChannels(self, unsigned int numChannels):
 *         self._pvt_ptr[0].numChannels = numChannels
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numChannels); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_numChannels) {
  unsigned int __pyx_v_numChannels;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_numChannels); {
    __pyx_v_numChannels = __Pyx_PyLong_As_unsigned_int(__pyx_arg_numChannels); if (unlikely((__pyx_v_numChannels == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14453, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.numChannels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), ((unsigned int)__pyx_v_numChannels));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, unsigned int __pyx_v_numChannels) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14454
 *     @numChannels.setter
 *     def numChannels(self, unsigned int numChannels):
 *         self._pvt_ptr[0].numChannels = numChannels             # <<<<<<<<<<<<<<
 *     @property
 *     def channelDesc(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).numChannels = __pyx_v_numChannels;

  /* "cuda/bindings/runtime.pyx":14452
 *     def numChannels(self):
 *         return self._pvt_ptr[0].numChannels
 *     @numChannels.setter             # <<<<<<<<<<<<<<
 *     def numChannels(self, unsigned int numChannels):
 *         self._pvt_ptr[0].numChannels = numChannels
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14455
 *     def numChannels(self, unsigned int numChannels):
 *         self._pvt_ptr[0].numChannels = numChannels
 *     @property             # <<<<<<<<<<<<<<
 *     def channelDesc(self):
 *         return self._channelDesc
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14457
 *     @property
 *     def channelDesc(self):
 *         return self._channelDesc             # <<<<<<<<<<<<<<
 *     @channelDesc.setter
 *     def channelDesc(self, channelDesc not None : cudaChannelFormatDesc):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_channelDesc);
  __pyx_r = ((PyObject *)__pyx_v_self->_channelDesc);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14455
 *     def numChannels(self, unsigned int numChannels):
 *         self._pvt_ptr[0].numChannels = numChannels
 *     @property             # <<<<<<<<<<<<<<
 *     def channelDesc(self):
 *         return self._channelDesc
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14458
 *     def channelDesc(self):
 *         return self._channelDesc
 *     @channelDesc.setter             # <<<<<<<<<<<<<<
 *     def channelDesc(self, channelDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].channelDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>channelDesc.getPtr(), sizeof(self._pvt_ptr[0].channelDesc))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_channelDesc); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_channelDesc) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_channelDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, 0, "channelDesc", 0))) __PYX_ERR(0, 14459, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_v_channelDesc));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_channelDesc) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14460
 *     @channelDesc.setter
 *     def channelDesc(self, channelDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].channelDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>channelDesc.getPtr(), sizeof(self._pvt_ptr[0].channelDesc))             # <<<<<<<<<<<<<<
 *     @property
 *     def reserved(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_channelDesc);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14460, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14460, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).channelDesc), ((struct cudaChannelFormatDesc *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).channelDesc))));

  /* "cuda/bindings/runtime.pyx":14458
 *     def channelDesc(self):
 *         return self._channelDesc
 *     @channelDesc.setter             # <<<<<<<<<<<<<<
 *     def channelDesc(self, channelDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].channelDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>channelDesc.getPtr(), sizeof(self._pvt_ptr[0].channelDesc))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.channelDesc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14461
 *     def channelDesc(self, channelDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].channelDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>channelDesc.getPtr(), sizeof(self._pvt_ptr[0].channelDesc))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14463
 *     @property
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved             # <<<<<<<<<<<<<<
 *     @reserved.setter
 *     def reserved(self, reserved):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_carray_to_py_unsigned_int((__pyx_v_self->_pvt_ptr[0]).reserved, 4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14461
 *     def channelDesc(self, channelDesc not None : cudaChannelFormatDesc):
 *         string.memcpy(&self._pvt_ptr[0].channelDesc, <cyruntime.cudaChannelFormatDesc*><void_ptr>channelDesc.getPtr(), sizeof(self._pvt_ptr[0].channelDesc))
 *     @property             # <<<<<<<<<<<<<<
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.reserved.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14464
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_reserved) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), ((PyObject *)__pyx_v_reserved));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, PyObject *__pyx_v_reserved) {
  int __pyx_r;
  unsigned int __pyx_t_1[4];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cuda/bindings/runtime.pyx":14466
 *     @reserved.setter
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved             # <<<<<<<<<<<<<<
 * 
 * cdef class anon_union10:
*/
  if (unlikely((__Pyx_carray_from_py_unsigned_int(__pyx_v_reserved, __pyx_t_1, 4) < 0))) __PYX_ERR(0, 14466, __pyx_L1_error)
  memcpy(&((__pyx_v_self->_pvt_ptr[0]).reserved[0]), __pyx_t_1, sizeof((__pyx_v_self->_pvt_ptr[0]).reserved[0]) * (4));

  /* "cuda/bindings/runtime.pyx":14464
 *     def reserved(self):
 *         return self._pvt_ptr[0].reserved
 *     @reserved.setter             # <<<<<<<<<<<<<<
 *     def reserved(self, reserved):
 *         self._pvt_ptr[0].reserved = reserved
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.reserved.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_19cudaEglPlaneDesc_st_10__reduce_cython__, "cudaEglPlaneDesc_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_19cudaEglPlaneDesc_st_12__setstate_cython__, "cudaEglPlaneDesc_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaEglPlaneDesc_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglPlaneDesc_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14482
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaEglFrame_st *>_ptr
 * 
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14482, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14482, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14482, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(0, 14482, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14482, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14482, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14482, __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.runtime.anon_union10.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_union10___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14483
 *     """
 *     def __cinit__(self, void_ptr _ptr):
 *         self._pvt_ptr = <cyruntime.cudaEglFrame_st *>_ptr             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, void_ptr _ptr):
*/
  __pyx_v_self->_pvt_ptr = ((struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st *)__pyx_v__ptr);

  /* "cuda/bindings/runtime.pyx":14482
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         self._pvt_ptr = <cyruntime.cudaEglFrame_st *>_ptr
 * 
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14485
 *         self._pvt_ptr = <cyruntime.cudaEglFrame_st *>_ptr
 * 
 *     def __init__(self, void_ptr _ptr):             # <<<<<<<<<<<<<<
 *         pass
 *     def __dealloc__(self):
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14485, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14485, __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, "__init__", 0) < (0)) __PYX_ERR(0, 14485, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 14485, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14485, __pyx_L3_error)
    }
    __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14485, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 14485, __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.runtime.anon_union10.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_2__init__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14487
 *     def __init__(self, void_ptr _ptr):
 *         pass
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def getPtr(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_4__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14489
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].frame
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_7getPtr(PyObject *__pyx_v_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_7runtime_12anon_union10_6getPtr, "anon_union10.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_union10_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_union10_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14490
 *         pass
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].frame             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_self->_pvt_ptr[0]).frame))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14489
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].frame
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14491
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].frame
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr198__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14492
 *         return <void_ptr>&self._pvt_ptr[0].frame
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14493
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pArray : ' + str(self.pArray)]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":14494
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pArray : ' + str(self.pArray)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14495
 *             str_list = []
 *             try:
 *                 str_list += ['pArray : ' + str(self.pArray)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pArray : <ValueError>']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pArray_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14495, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14495, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pArray, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14495, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14495, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14495, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14495, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14494
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pArray : ' + str(self.pArray)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cuda/bindings/runtime.pyx":14496
 *             try:
 *                 str_list += ['pArray : ' + str(self.pArray)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pArray : <ValueError>']
 *             try:
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_8) < 0) __PYX_ERR(0, 14496, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_8);

        /* "cuda/bindings/runtime.pyx":14497
 *                 str_list += ['pArray : ' + str(self.pArray)]
 *             except ValueError:
 *                 str_list += ['pArray : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['pPitch :\n' + '\n'.join(['    ' + line for line in str(self.pPitch).splitlines()])]
*/
        __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14497, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pArray_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pArray_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_kp_u_pArray_ValueError) != (0)) __PYX_ERR(0, 14497, __pyx_L6_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14497, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":14494
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pArray : ' + str(self.pArray)]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14498
 *             except ValueError:
 *                 str_list += ['pArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pPitch :\n' + '\n'.join(['    ' + line for line in str(self.pPitch).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14499
 *                 str_list += ['pArray : <ValueError>']
 *             try:
 *                 str_list += ['pPitch :\n' + '\n'.join(['    ' + line for line in str(self.pPitch).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['pPitch : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14499, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_pPitch_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14499, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14499, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14499, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_6; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14499, __pyx_L20_error)
              #endif
              if (__pyx_t_11 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_11;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14499, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr198__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr198__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14499, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 14499, __pyx_L20_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr198__pyx_v_line); __pyx_10genexpr198__pyx_v_line = 0;
          goto __pyx_L24_exit_scope;
          __pyx_L20_error:;
          __Pyx_XDECREF(__pyx_10genexpr198__pyx_v_line); __pyx_10genexpr198__pyx_v_line = 0;
          goto __pyx_L12_error;
          __pyx_L24_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14499, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_pPitch, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14499, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14499, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 14499, __pyx_L12_error);
        __pyx_t_8 = 0;
        __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 14499, __pyx_L12_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "cuda/bindings/runtime.pyx":14498
 *             except ValueError:
 *                 str_list += ['pArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pPitch :\n' + '\n'.join(['    ' + line for line in str(self.pPitch).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L17_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cuda/bindings/runtime.pyx":14500
 *             try:
 *                 str_list += ['pPitch :\n' + '\n'.join(['    ' + line for line in str(self.pPitch).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['pPitch : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 14500, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":14501
 *                 str_list += ['pPitch :\n' + '\n'.join(['    ' + line for line in str(self.pPitch).splitlines()])]
 *             except ValueError:
 *                 str_list += ['pPitch : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14501, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_pPitch_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_pPitch_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_pPitch_ValueError) != (0)) __PYX_ERR(0, 14501, __pyx_L14_except_error);
        __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14501, __pyx_L14_except_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_9));
        __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L13_exception_handled;
      }
      goto __pyx_L14_except_error;

      /* "cuda/bindings/runtime.pyx":14498
 *             except ValueError:
 *                 str_list += ['pArray : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['pPitch :\n' + '\n'.join(['    ' + line for line in str(self.pPitch).splitlines()])]
 *             except ValueError:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L13_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L17_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14502
 *             except ValueError:
 *                 str_list += ['pPitch : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14502, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14492
 *         return <void_ptr>&self._pvt_ptr[0].frame
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":14504
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def pArray(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":14491
 *     def getPtr(self):
 *         return <void_ptr>&self._pvt_ptr[0].frame
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr198__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14505
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def pArray(self):
 *         return [cudaArray_t(init_value=<void_ptr>_pArray) for _pArray in self._pvt_ptr[0].frame.pArray]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pArray_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pArray_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pArray___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pArray___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self) {
  cudaArray_t __pyx_10genexpr199__pyx_v__pArray;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  cudaArray_t *__pyx_t_2;
  cudaArray_t *__pyx_t_3;
  cudaArray_t *__pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14507
 *     @property
 *     def pArray(self):
 *         return [cudaArray_t(init_value=<void_ptr>_pArray) for _pArray in self._pvt_ptr[0].frame.pArray]             # <<<<<<<<<<<<<<
 *     @pArray.setter
 *     def pArray(self, pArray : list[cudaArray_t]):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14507, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = ((__pyx_v_self->_pvt_ptr[0]).frame.pArray + 3);
    for (__pyx_t_4 = (__pyx_v_self->_pvt_ptr[0]).frame.pArray; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) {
      __pyx_t_2 = __pyx_t_4;
      __pyx_10genexpr199__pyx_v__pArray = (__pyx_t_2[0]);
      __pyx_t_6 = NULL;
      __pyx_t_7 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_10genexpr199__pyx_v__pArray)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14507, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_6, NULL};
        __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 14507, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_7, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 14507, __pyx_L1_error)
        __pyx_t_5 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14507, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_5);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 14507, __pyx_L1_error)
      __Pyx_DECREF((PyObject *)__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14505
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def pArray(self):
 *         return [cudaArray_t(init_value=<void_ptr>_pArray) for _pArray in self._pvt_ptr[0].frame.pArray]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.pArray.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14508
 *     def pArray(self):
 *         return [cudaArray_t(init_value=<void_ptr>_pArray) for _pArray in self._pvt_ptr[0].frame.pArray]
 *     @pArray.setter             # <<<<<<<<<<<<<<
 *     def pArray(self, pArray : list[cudaArray_t]):
 *         if len(pArray) != 3:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pArray); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pArray) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pArray), (&PyList_Type), 0, "pArray", 2))) __PYX_ERR(0, 14509, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pArray_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self), ((PyObject*)__pyx_v_pArray));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pArray_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, PyObject *__pyx_v_pArray) {
  Py_ssize_t __pyx_v__idx;
  PyObject *__pyx_v__pArray = NULL;
  PyObject *__pyx_10genexpr200__pyx_v__pArray = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_pArray);

  /* "cuda/bindings/runtime.pyx":14510
 *     @pArray.setter
 *     def pArray(self, pArray : list[cudaArray_t]):
 *         if len(pArray) != 3:             # <<<<<<<<<<<<<<
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray))
 *         pArray = [int(_pArray) for _pArray in pArray]
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_pArray); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14510, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 3);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":14511
 *     def pArray(self, pArray : list[cudaArray_t]):
 *         if len(pArray) != 3:
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray))             # <<<<<<<<<<<<<<
 *         pArray = [int(_pArray) for _pArray in pArray]
 *         for _idx, _pArray in enumerate(pArray):
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_pArray); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14511, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_not_enough_values_found_during_a_2, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14511, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 14511, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":14510
 *     @pArray.setter
 *     def pArray(self, pArray : list[cudaArray_t]):
 *         if len(pArray) != 3:             # <<<<<<<<<<<<<<
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray))
 *         pArray = [int(_pArray) for _pArray in pArray]
*/
  }

  /* "cuda/bindings/runtime.pyx":14512
 *         if len(pArray) != 3:
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray))
 *         pArray = [int(_pArray) for _pArray in pArray]             # <<<<<<<<<<<<<<
 *         for _idx, _pArray in enumerate(pArray):
 *             self._pvt_ptr[0].frame.pArray[_idx] = <cyruntime.cudaArray_t><void_ptr>_pArray
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14512, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __pyx_v_pArray; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_1 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14512, __pyx_L6_error)
        #endif
        if (__pyx_t_1 >= __pyx_temp) break;
      }
      __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_1;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14512, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_10genexpr200__pyx_v__pArray, __pyx_t_4);
      __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_10genexpr200__pyx_v__pArray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14512, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_4))) __PYX_ERR(0, 14512, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_10genexpr200__pyx_v__pArray); __pyx_10genexpr200__pyx_v__pArray = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_10genexpr200__pyx_v__pArray); __pyx_10genexpr200__pyx_v__pArray = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __Pyx_DECREF_SET(__pyx_v_pArray, ((PyObject*)__pyx_t_3));
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":14513
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray))
 *         pArray = [int(_pArray) for _pArray in pArray]
 *         for _idx, _pArray in enumerate(pArray):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].frame.pArray[_idx] = <cyruntime.cudaArray_t><void_ptr>_pArray
 * 
*/
  __pyx_t_1 = 0;
  __pyx_t_3 = __pyx_v_pArray; __Pyx_INCREF(__pyx_t_3);
  __pyx_t_7 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14513, __pyx_L1_error)
      #endif
      if (__pyx_t_7 >= __pyx_temp) break;
    }
    __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_7;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14513, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v__pArray, __pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_v__idx = __pyx_t_1;
    __pyx_t_1 = (__pyx_t_1 + 1);

    /* "cuda/bindings/runtime.pyx":14514
 *         pArray = [int(_pArray) for _pArray in pArray]
 *         for _idx, _pArray in enumerate(pArray):
 *             self._pvt_ptr[0].frame.pArray[_idx] = <cyruntime.cudaArray_t><void_ptr>_pArray             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
    __pyx_t_8 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v__pArray); if (unlikely((__pyx_t_8 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14514, __pyx_L1_error)
    ((__pyx_v_self->_pvt_ptr[0]).frame.pArray[__pyx_v__idx]) = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_8));

    /* "cuda/bindings/runtime.pyx":14513
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray))
 *         pArray = [int(_pArray) for _pArray in pArray]
 *         for _idx, _pArray in enumerate(pArray):             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0].frame.pArray[_idx] = <cyruntime.cudaArray_t><void_ptr>_pArray
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":14508
 *     def pArray(self):
 *         return [cudaArray_t(init_value=<void_ptr>_pArray) for _pArray in self._pvt_ptr[0].frame.pArray]
 *     @pArray.setter             # <<<<<<<<<<<<<<
 *     def pArray(self, pArray : list[cudaArray_t]):
 *         if len(pArray) != 3:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.pArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v__pArray);
  __Pyx_XDECREF(__pyx_10genexpr200__pyx_v__pArray);
  __Pyx_XDECREF(__pyx_v_pArray);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14516
 *             self._pvt_ptr[0].frame.pArray[_idx] = <cyruntime.cudaArray_t><void_ptr>_pArray
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def pPitch(self):
 *         out_pPitch = [cudaPitchedPtr() for _pPitch in self._pvt_ptr[0].frame.pPitch]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pPitch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pPitch_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pPitch___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pPitch___get__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self) {
  PyObject *__pyx_v_out_pPitch = NULL;
  Py_ssize_t __pyx_v__idx;
  CYTHON_UNUSED struct cudaPitchedPtr __pyx_10genexpr201__pyx_v__pPitch;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct cudaPitchedPtr *__pyx_t_2;
  struct cudaPitchedPtr *__pyx_t_3;
  struct cudaPitchedPtr *__pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14518
 *     @property
 *     def pPitch(self):
 *         out_pPitch = [cudaPitchedPtr() for _pPitch in self._pvt_ptr[0].frame.pPitch]             # <<<<<<<<<<<<<<
 *         for _idx in range(len(out_pPitch)):
 *             string.memcpy(<cyruntime.cudaPitchedPtr*><void_ptr>out_pPitch[_idx].getPtr(), &self._pvt_ptr[0].frame.pPitch[_idx], sizeof(cyruntime.cudaPitchedPtr))
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = ((__pyx_v_self->_pvt_ptr[0]).frame.pPitch + 3);
    for (__pyx_t_4 = (__pyx_v_self->_pvt_ptr[0]).frame.pPitch; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) {
      __pyx_t_2 = __pyx_t_4;
      __pyx_10genexpr201__pyx_v__pPitch = (__pyx_t_2[0]);
      __pyx_t_6 = NULL;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14518, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_5);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 14518, __pyx_L1_error)
      __Pyx_DECREF((PyObject *)__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_out_pPitch = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":14519
 *     def pPitch(self):
 *         out_pPitch = [cudaPitchedPtr() for _pPitch in self._pvt_ptr[0].frame.pPitch]
 *         for _idx in range(len(out_pPitch)):             # <<<<<<<<<<<<<<
 *             string.memcpy(<cyruntime.cudaPitchedPtr*><void_ptr>out_pPitch[_idx].getPtr(), &self._pvt_ptr[0].frame.pPitch[_idx], sizeof(cyruntime.cudaPitchedPtr))
 *         return out_pPitch
*/
  __pyx_t_8 = __Pyx_PyList_GET_SIZE(__pyx_v_out_pPitch); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14519, __pyx_L1_error)
  __pyx_t_9 = __pyx_t_8;
  for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
    __pyx_v__idx = __pyx_t_10;

    /* "cuda/bindings/runtime.pyx":14520
 *         out_pPitch = [cudaPitchedPtr() for _pPitch in self._pvt_ptr[0].frame.pPitch]
 *         for _idx in range(len(out_pPitch)):
 *             string.memcpy(<cyruntime.cudaPitchedPtr*><void_ptr>out_pPitch[_idx].getPtr(), &self._pvt_ptr[0].frame.pPitch[_idx], sizeof(cyruntime.cudaPitchedPtr))             # <<<<<<<<<<<<<<
 *         return out_pPitch
 *     @pPitch.setter
*/
    __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_out_pPitch, __pyx_v__idx, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __pyx_t_6;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14520, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_11 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_11 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14520, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    (void)(memcpy(((struct cudaPitchedPtr *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_11)), (&((__pyx_v_self->_pvt_ptr[0]).frame.pPitch[__pyx_v__idx])), (sizeof(struct cudaPitchedPtr))));
  }

  /* "cuda/bindings/runtime.pyx":14521
 *         for _idx in range(len(out_pPitch)):
 *             string.memcpy(<cyruntime.cudaPitchedPtr*><void_ptr>out_pPitch[_idx].getPtr(), &self._pvt_ptr[0].frame.pPitch[_idx], sizeof(cyruntime.cudaPitchedPtr))
 *         return out_pPitch             # <<<<<<<<<<<<<<
 *     @pPitch.setter
 *     def pPitch(self, pPitch : list[cudaPitchedPtr]):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_out_pPitch);
  __pyx_r = __pyx_v_out_pPitch;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14516
 *             self._pvt_ptr[0].frame.pArray[_idx] = <cyruntime.cudaArray_t><void_ptr>_pArray
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def pPitch(self):
 *         out_pPitch = [cudaPitchedPtr() for _pPitch in self._pvt_ptr[0].frame.pPitch]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.pPitch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_out_pPitch);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14522
 *             string.memcpy(<cyruntime.cudaPitchedPtr*><void_ptr>out_pPitch[_idx].getPtr(), &self._pvt_ptr[0].frame.pPitch[_idx], sizeof(cyruntime.cudaPitchedPtr))
 *         return out_pPitch
 *     @pPitch.setter             # <<<<<<<<<<<<<<
 *     def pPitch(self, pPitch : list[cudaPitchedPtr]):
 *         if len(pPitch) != 3:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pPitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pPitch); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pPitch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_pPitch) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pPitch), (&PyList_Type), 0, "pPitch", 2))) __PYX_ERR(0, 14523, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pPitch_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self), ((PyObject*)__pyx_v_pPitch));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_6pPitch_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, PyObject *__pyx_v_pPitch) {
  Py_ssize_t __pyx_v__idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14524
 *     @pPitch.setter
 *     def pPitch(self, pPitch : list[cudaPitchedPtr]):
 *         if len(pPitch) != 3:             # <<<<<<<<<<<<<<
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pPitch))
 *         for _idx in range(len(pPitch)):
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_pPitch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14524, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 3);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":14525
 *     def pPitch(self, pPitch : list[cudaPitchedPtr]):
 *         if len(pPitch) != 3:
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pPitch))             # <<<<<<<<<<<<<<
 *         for _idx in range(len(pPitch)):
 *             string.memcpy(&self._pvt_ptr[0].frame.pPitch[_idx], <cyruntime.cudaPitchedPtr*><void_ptr>pPitch[_idx].getPtr(), sizeof(cyruntime.cudaPitchedPtr))
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_pPitch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14525, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_not_enough_values_found_during_a_2, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14525, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 14525, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":14524
 *     @pPitch.setter
 *     def pPitch(self, pPitch : list[cudaPitchedPtr]):
 *         if len(pPitch) != 3:             # <<<<<<<<<<<<<<
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pPitch))
 *         for _idx in range(len(pPitch)):
*/
  }

  /* "cuda/bindings/runtime.pyx":14526
 *         if len(pPitch) != 3:
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pPitch))
 *         for _idx in range(len(pPitch)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&self._pvt_ptr[0].frame.pPitch[_idx], <cyruntime.cudaPitchedPtr*><void_ptr>pPitch[_idx].getPtr(), sizeof(cyruntime.cudaPitchedPtr))
 * 
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_pPitch); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14526, __pyx_L1_error)
  __pyx_t_7 = __pyx_t_1;
  for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
    __pyx_v__idx = __pyx_t_8;

    /* "cuda/bindings/runtime.pyx":14527
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(pPitch))
 *         for _idx in range(len(pPitch)):
 *             string.memcpy(&self._pvt_ptr[0].frame.pPitch[_idx], <cyruntime.cudaPitchedPtr*><void_ptr>pPitch[_idx].getPtr(), sizeof(cyruntime.cudaPitchedPtr))             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_pPitch, __pyx_v__idx, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14527, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __pyx_t_4;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14527, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_9 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14527, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    (void)(memcpy((&((__pyx_v_self->_pvt_ptr[0]).frame.pPitch[__pyx_v__idx])), ((struct cudaPitchedPtr *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_9)), (sizeof(struct cudaPitchedPtr))));
  }

  /* "cuda/bindings/runtime.pyx":14522
 *             string.memcpy(<cyruntime.cudaPitchedPtr*><void_ptr>out_pPitch[_idx].getPtr(), &self._pvt_ptr[0].frame.pPitch[_idx], sizeof(cyruntime.cudaPitchedPtr))
 *         return out_pPitch
 *     @pPitch.setter             # <<<<<<<<<<<<<<
 *     def pPitch(self, pPitch : list[cudaPitchedPtr]):
 *         if len(pPitch) != 3:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.pPitch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_12anon_union10_10__reduce_cython__, "anon_union10.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_union10_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_union10_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_12anon_union10_12__setstate_cython__, "anon_union10.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_12anon_union10_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_union10_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.anon_union10.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12anon_union10_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12anon_union10_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.anon_union10.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14559
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaEglFrame_st *>calloc(1, sizeof(cyruntime.cudaEglFrame_st))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14559, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14559, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14559, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14559, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14559, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 14559, __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.runtime.cudaEglFrame_st.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;
  struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st *__pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14560
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaEglFrame_st *>calloc(1, sizeof(cyruntime.cudaEglFrame_st))
 *             self._pvt_ptr = self._val_ptr
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14561
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaEglFrame_st *>calloc(1, sizeof(cyruntime.cudaEglFrame_st))             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = self._val_ptr
 *         else:
*/
    __pyx_v_self->_val_ptr = ((struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st *)calloc(1, (sizeof(struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st))));

    /* "cuda/bindings/runtime.pyx":14562
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaEglFrame_st *>calloc(1, sizeof(cyruntime.cudaEglFrame_st))
 *             self._pvt_ptr = self._val_ptr             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEglFrame_st *>_ptr
*/
    __pyx_t_2 = __pyx_v_self->_val_ptr;
    __pyx_v_self->_pvt_ptr = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":14560
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._val_ptr = <cyruntime.cudaEglFrame_st *>calloc(1, sizeof(cyruntime.cudaEglFrame_st))
 *             self._pvt_ptr = self._val_ptr
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14564
 *             self._pvt_ptr = self._val_ptr
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEglFrame_st *>_ptr             # <<<<<<<<<<<<<<
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14559
 *         Get memory address of class instance
 *     """
 *     def __cinit__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._val_ptr = <cyruntime.cudaEglFrame_st *>calloc(1, sizeof(cyruntime.cudaEglFrame_st))
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14565
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEglFrame_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._frame = anon_union10(_ptr=<void_ptr>self._pvt_ptr)
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14565, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14565, __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, "__init__", 0) < (0)) __PYX_ERR(0, 14565, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14565, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14565, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 14565, __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.runtime.cudaEglFrame_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_2__init__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self), __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_2__init__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, CYTHON_UNUSED __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cuda/bindings/runtime.pyx":14567
 *     def __init__(self, void_ptr _ptr = 0):
 *         pass
 *         self._frame = anon_union10(_ptr=<void_ptr>self._pvt_ptr)             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_3, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 14567, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14567, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __Pyx_GIVEREF((PyObject *)__pyx_t_1);
  __Pyx_GOTREF((PyObject *)__pyx_v_self->_frame);
  __Pyx_DECREF((PyObject *)__pyx_v_self->_frame);
  __pyx_v_self->_frame = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":14565
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaEglFrame_st *>_ptr
 *     def __init__(self, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         pass
 *         self._frame = anon_union10(_ptr=<void_ptr>self._pvt_ptr)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14568
 *         pass
 *         self._frame = anon_union10(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_4__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_4__dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self) {
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14569
 *         self._frame = anon_union10(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  __pyx_t_1 = (__pyx_v_self->_val_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14570
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
    free(__pyx_v_self->_val_ptr);

    /* "cuda/bindings/runtime.pyx":14569
 *         self._frame = anon_union10(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):
 *         if self._val_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             free(self._val_ptr)
 *     def getPtr(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14568
 *         pass
 *         self._frame = anon_union10(_ptr=<void_ptr>self._pvt_ptr)
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14571
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_7getPtr(PyObject *__pyx_v_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_7runtime_15cudaEglFrame_st_6getPtr, "cudaEglFrame_st.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaEglFrame_st_7getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaEglFrame_st_6getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_7getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_6getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_6getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14572
 *             free(self._val_ptr)
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14571
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14573
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_8__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_8__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self) {
  PyObject *__pyx_v_str_list = NULL;
  PyObject *__pyx_10genexpr202__pyx_v_line = NULL;
  PyObject *__pyx_10genexpr203__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14574
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  __pyx_t_1 = (__pyx_v_self->_pvt_ptr != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14575
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:
 *             str_list = []             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['frame :\n' + '\n'.join(['    ' + line for line in str(self.frame).splitlines()])]
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_str_list = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":14576
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['frame :\n' + '\n'.join(['    ' + line for line in str(self.frame).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14577
 *             str_list = []
 *             try:
 *                 str_list += ['frame :\n' + '\n'.join(['    ' + line for line in str(self.frame).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['frame : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14577, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_frame_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14577, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14577, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyUnicode_Splitlines(((PyObject*)__pyx_t_7), 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14577, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14577, __pyx_L12_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14577, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_XDECREF_SET(__pyx_10genexpr202__pyx_v_line, __pyx_t_6);
            __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr202__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14577, __pyx_L12_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 14577, __pyx_L12_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_10genexpr202__pyx_v_line); __pyx_10genexpr202__pyx_v_line = 0;
          goto __pyx_L16_exit_scope;
          __pyx_L12_error:;
          __Pyx_XDECREF(__pyx_10genexpr202__pyx_v_line); __pyx_10genexpr202__pyx_v_line = 0;
          goto __pyx_L4_error;
          __pyx_L16_exit_scope:;
        } /* exit inner scope */
        __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14577, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_frame, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14577, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14577, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 14577, __pyx_L4_error);
        __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14577, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cuda/bindings/runtime.pyx":14576
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['frame :\n' + '\n'.join(['    ' + line for line in str(self.frame).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":14578
 *             try:
 *                 str_list += ['frame :\n' + '\n'.join(['    ' + line for line in str(self.frame).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['frame : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_6) < 0) __PYX_ERR(0, 14578, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":14579
 *                 str_list += ['frame :\n' + '\n'.join(['    ' + line for line in str(self.frame).splitlines()])]
 *             except ValueError:
 *                 str_list += ['frame : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['planeDesc :\n' + '\n'.join(['    ' + line for line in str(self.planeDesc).splitlines()])]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14579, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_frame_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_frame_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_frame_ValueError) != (0)) __PYX_ERR(0, 14579, __pyx_L6_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 14579, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;

      /* "cuda/bindings/runtime.pyx":14576
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['frame :\n' + '\n'.join(['    ' + line for line in str(self.frame).splitlines()])]
 *             except ValueError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L9_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14580
 *             except ValueError:
 *                 str_list += ['frame : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['planeDesc :\n' + '\n'.join(['    ' + line for line in str(self.planeDesc).splitlines()])]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14581
 *                 str_list += ['frame : <ValueError>']
 *             try:
 *                 str_list += ['planeDesc :\n' + '\n'.join(['    ' + line for line in str(self.planeDesc).splitlines()])]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['planeDesc : <ValueError>']
*/
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14581, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_planeDesc_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14581, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14581, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyUnicode_Splitlines(((PyObject*)__pyx_t_2), 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14581, __pyx_L27_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_2 = __pyx_t_7; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 14581, __pyx_L27_error)
              #endif
              if (__pyx_t_8 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_8;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14581, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_10genexpr203__pyx_v_line, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__4, __pyx_10genexpr203__pyx_v_line); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14581, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_7);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 14581, __pyx_L27_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_10genexpr203__pyx_v_line); __pyx_10genexpr203__pyx_v_line = 0;
          goto __pyx_L31_exit_scope;
          __pyx_L27_error:;
          __Pyx_XDECREF(__pyx_10genexpr203__pyx_v_line); __pyx_10genexpr203__pyx_v_line = 0;
          goto __pyx_L19_error;
          __pyx_L31_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14581, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_planeDesc, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14581, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14581, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 14581, __pyx_L19_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14581, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":14580
 *             except ValueError:
 *                 str_list += ['frame : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['planeDesc :\n' + '\n'.join(['    ' + line for line in str(self.planeDesc).splitlines()])]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L24_try_end;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":14582
 *             try:
 *                 str_list += ['planeDesc :\n' + '\n'.join(['    ' + line for line in str(self.planeDesc).splitlines()])]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['planeDesc : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 14582, __pyx_L21_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":14583
 *                 str_list += ['planeDesc :\n' + '\n'.join(['    ' + line for line in str(self.planeDesc).splitlines()])]
 *             except ValueError:
 *                 str_list += ['planeDesc : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['planeCount : ' + str(self.planeCount)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 14583, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_planeDesc_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_planeDesc_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_planeDesc_ValueError) != (0)) __PYX_ERR(0, 14583, __pyx_L21_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14583, __pyx_L21_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L20_exception_handled;
      }
      goto __pyx_L21_except_error;

      /* "cuda/bindings/runtime.pyx":14580
 *             except ValueError:
 *                 str_list += ['frame : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['planeDesc :\n' + '\n'.join(['    ' + line for line in str(self.planeDesc).splitlines()])]
 *             except ValueError:
*/
      __pyx_L21_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L20_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L24_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14584
 *             except ValueError:
 *                 str_list += ['planeDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['planeCount : ' + str(self.planeCount)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14585
 *                 str_list += ['planeDesc : <ValueError>']
 *             try:
 *                 str_list += ['planeCount : ' + str(self.planeCount)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['planeCount : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_planeCount_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14585, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14585, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_planeCount, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14585, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14585, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 14585, __pyx_L34_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14585, __pyx_L34_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":14584
 *             except ValueError:
 *                 str_list += ['planeDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['planeCount : ' + str(self.planeCount)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L39_try_end;
      __pyx_L34_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":14586
 *             try:
 *                 str_list += ['planeCount : ' + str(self.planeCount)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['planeCount : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 14586, __pyx_L36_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":14587
 *                 str_list += ['planeCount : ' + str(self.planeCount)]
 *             except ValueError:
 *                 str_list += ['planeCount : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['frameType : ' + str(self.frameType)]
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14587, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_planeCount_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_planeCount_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_planeCount_ValueError) != (0)) __PYX_ERR(0, 14587, __pyx_L36_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 14587, __pyx_L36_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L35_exception_handled;
      }
      goto __pyx_L36_except_error;

      /* "cuda/bindings/runtime.pyx":14584
 *             except ValueError:
 *                 str_list += ['planeDesc : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['planeCount : ' + str(self.planeCount)]
 *             except ValueError:
*/
      __pyx_L36_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L35_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L39_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14588
 *             except ValueError:
 *                 str_list += ['planeCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['frameType : ' + str(self.frameType)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14589
 *                 str_list += ['planeCount : <ValueError>']
 *             try:
 *                 str_list += ['frameType : ' + str(self.frameType)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['frameType : <ValueError>']
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_frameType_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14589, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14589, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_frameType, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14589, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14589, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 14589, __pyx_L42_error);
        __pyx_t_6 = 0;
        __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14589, __pyx_L42_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "cuda/bindings/runtime.pyx":14588
 *             except ValueError:
 *                 str_list += ['planeCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['frameType : ' + str(self.frameType)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L47_try_end;
      __pyx_L42_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":14590
 *             try:
 *                 str_list += ['frameType : ' + str(self.frameType)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['frameType : <ValueError>']
 *             try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(0, 14590, __pyx_L44_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_7);

        /* "cuda/bindings/runtime.pyx":14591
 *                 str_list += ['frameType : ' + str(self.frameType)]
 *             except ValueError:
 *                 str_list += ['frameType : <ValueError>']             # <<<<<<<<<<<<<<
 *             try:
 *                 str_list += ['eglColorFormat : ' + str(self.eglColorFormat)]
*/
        __pyx_t_11 = PyList_New(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 14591, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_frameType_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_frameType_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_mstate_global->__pyx_kp_u_frameType_ValueError) != (0)) __PYX_ERR(0, 14591, __pyx_L44_except_error);
        __pyx_t_10 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14591, __pyx_L44_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_10));
        __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L43_exception_handled;
      }
      goto __pyx_L44_except_error;

      /* "cuda/bindings/runtime.pyx":14588
 *             except ValueError:
 *                 str_list += ['planeCount : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['frameType : ' + str(self.frameType)]
 *             except ValueError:
*/
      __pyx_L44_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L43_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L47_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14592
 *             except ValueError:
 *                 str_list += ['frameType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eglColorFormat : ' + str(self.eglColorFormat)]
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14593
 *                 str_list += ['frameType : <ValueError>']
 *             try:
 *                 str_list += ['eglColorFormat : ' + str(self.eglColorFormat)]             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 str_list += ['eglColorFormat : <ValueError>']
*/
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_eglColorFormat_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14593, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14593, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_eglColorFormat, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14593, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14593, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 14593, __pyx_L50_error);
        __pyx_t_7 = 0;
        __pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14593, __pyx_L50_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "cuda/bindings/runtime.pyx":14592
 *             except ValueError:
 *                 str_list += ['frameType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eglColorFormat : ' + str(self.eglColorFormat)]
 *             except ValueError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L55_try_end;
      __pyx_L50_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cuda/bindings/runtime.pyx":14594
 *             try:
 *                 str_list += ['eglColorFormat : ' + str(self.eglColorFormat)]
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 str_list += ['eglColorFormat : <ValueError>']
 *             return '\n'.join(str_list)
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_6) < 0) __PYX_ERR(0, 14594, __pyx_L52_except_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cuda/bindings/runtime.pyx":14595
 *                 str_list += ['eglColorFormat : ' + str(self.eglColorFormat)]
 *             except ValueError:
 *                 str_list += ['eglColorFormat : <ValueError>']             # <<<<<<<<<<<<<<
 *             return '\n'.join(str_list)
 *         else:
*/
        __pyx_t_10 = PyList_New(1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 14595, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_eglColorFormat_ValueError);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_eglColorFormat_ValueError);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_kp_u_eglColorFormat_ValueError) != (0)) __PYX_ERR(0, 14595, __pyx_L52_except_error);
        __pyx_t_11 = PyNumber_InPlaceAdd(__pyx_v_str_list, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 14595, __pyx_L52_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF_SET(__pyx_v_str_list, ((PyObject*)__pyx_t_11));
        __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L51_exception_handled;
      }
      goto __pyx_L52_except_error;

      /* "cuda/bindings/runtime.pyx":14592
 *             except ValueError:
 *                 str_list += ['frameType : <ValueError>']
 *             try:             # <<<<<<<<<<<<<<
 *                 str_list += ['eglColorFormat : ' + str(self.eglColorFormat)]
 *             except ValueError:
*/
      __pyx_L52_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L51_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L55_try_end:;
    }

    /* "cuda/bindings/runtime.pyx":14596
 *             except ValueError:
 *                 str_list += ['eglColorFormat : <ValueError>']
 *             return '\n'.join(str_list)             # <<<<<<<<<<<<<<
 *         else:
 *             return ''
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__2, __pyx_v_str_list); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14596, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14574
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
 *         if self._pvt_ptr is not NULL:             # <<<<<<<<<<<<<<
 *             str_list = []
 *             try:
*/
  }

  /* "cuda/bindings/runtime.pyx":14598
 *             return '\n'.join(str_list)
 *         else:
 *             return ''             # <<<<<<<<<<<<<<
 *     @property
 *     def frame(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__3);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__3;
    goto __pyx_L0;
  }

  /* "cuda/bindings/runtime.pyx":14573
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self._pvt_ptr is not NULL:
 *             str_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_str_list);
  __Pyx_XDECREF(__pyx_10genexpr202__pyx_v_line);
  __Pyx_XDECREF(__pyx_10genexpr203__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14599
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def frame(self):
 *         return self._frame
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14601
 *     @property
 *     def frame(self):
 *         return self._frame             # <<<<<<<<<<<<<<
 *     @frame.setter
 *     def frame(self, frame not None : anon_union10):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self->_frame);
  __pyx_r = ((PyObject *)__pyx_v_self->_frame);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14599
 *         else:
 *             return ''
 *     @property             # <<<<<<<<<<<<<<
 *     def frame(self):
 *         return self._frame
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14602
 *     def frame(self):
 *         return self._frame
 *     @frame.setter             # <<<<<<<<<<<<<<
 *     def frame(self, frame not None : anon_union10):
 *         string.memcpy(&self._pvt_ptr[0].frame, <cyruntime.anon_union10*><void_ptr>frame.getPtr(), sizeof(self._pvt_ptr[0].frame))
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_frame); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_frame) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_frame), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10, 0, "frame", 0))) __PYX_ERR(0, 14603, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self), ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)__pyx_v_frame));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *__pyx_v_frame) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14604
 *     @frame.setter
 *     def frame(self, frame not None : anon_union10):
 *         string.memcpy(&self._pvt_ptr[0].frame, <cyruntime.anon_union10*><void_ptr>frame.getPtr(), sizeof(self._pvt_ptr[0].frame))             # <<<<<<<<<<<<<<
 *     @property
 *     def planeDesc(self):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_frame);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14604, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (void)(memcpy((&(__pyx_v_self->_pvt_ptr[0]).frame), ((union __pyx_t_4cuda_8bindings_9cyruntime_anon_union10 *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4)), (sizeof((__pyx_v_self->_pvt_ptr[0]).frame))));

  /* "cuda/bindings/runtime.pyx":14602
 *     def frame(self):
 *         return self._frame
 *     @frame.setter             # <<<<<<<<<<<<<<
 *     def frame(self, frame not None : anon_union10):
 *         string.memcpy(&self._pvt_ptr[0].frame, <cyruntime.anon_union10*><void_ptr>frame.getPtr(), sizeof(self._pvt_ptr[0].frame))
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.frame.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14605
 *     def frame(self, frame not None : anon_union10):
 *         string.memcpy(&self._pvt_ptr[0].frame, <cyruntime.anon_union10*><void_ptr>frame.getPtr(), sizeof(self._pvt_ptr[0].frame))
 *     @property             # <<<<<<<<<<<<<<
 *     def planeDesc(self):
 *         out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._pvt_ptr[0].planeDesc]
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self) {
  PyObject *__pyx_v_out_planeDesc = NULL;
  Py_ssize_t __pyx_v__idx;
  CYTHON_UNUSED __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc __pyx_10genexpr204__pyx_v__planeDesc;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc *__pyx_t_2;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc *__pyx_t_3;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc *__pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14607
 *     @property
 *     def planeDesc(self):
 *         out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._pvt_ptr[0].planeDesc]             # <<<<<<<<<<<<<<
 *         for _idx in range(len(out_planeDesc)):
 *             string.memcpy(<cyruntime.cudaEglPlaneDesc*><void_ptr>out_planeDesc[_idx].getPtr(), &self._pvt_ptr[0].planeDesc[_idx], sizeof(cyruntime.cudaEglPlaneDesc))
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = ((__pyx_v_self->_pvt_ptr[0]).planeDesc + 3);
    for (__pyx_t_4 = (__pyx_v_self->_pvt_ptr[0]).planeDesc; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) {
      __pyx_t_2 = __pyx_t_4;
      __pyx_10genexpr204__pyx_v__planeDesc = (__pyx_t_2[0]);
      __pyx_t_6 = NULL;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14607, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_5);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 14607, __pyx_L1_error)
      __Pyx_DECREF((PyObject *)__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_out_planeDesc = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":14608
 *     def planeDesc(self):
 *         out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._pvt_ptr[0].planeDesc]
 *         for _idx in range(len(out_planeDesc)):             # <<<<<<<<<<<<<<
 *             string.memcpy(<cyruntime.cudaEglPlaneDesc*><void_ptr>out_planeDesc[_idx].getPtr(), &self._pvt_ptr[0].planeDesc[_idx], sizeof(cyruntime.cudaEglPlaneDesc))
 *         return out_planeDesc
*/
  __pyx_t_8 = __Pyx_PyList_GET_SIZE(__pyx_v_out_planeDesc); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14608, __pyx_L1_error)
  __pyx_t_9 = __pyx_t_8;
  for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
    __pyx_v__idx = __pyx_t_10;

    /* "cuda/bindings/runtime.pyx":14609
 *         out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._pvt_ptr[0].planeDesc]
 *         for _idx in range(len(out_planeDesc)):
 *             string.memcpy(<cyruntime.cudaEglPlaneDesc*><void_ptr>out_planeDesc[_idx].getPtr(), &self._pvt_ptr[0].planeDesc[_idx], sizeof(cyruntime.cudaEglPlaneDesc))             # <<<<<<<<<<<<<<
 *         return out_planeDesc
 *     @planeDesc.setter
*/
    __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_out_planeDesc, __pyx_v__idx, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14609, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __pyx_t_6;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14609, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_11 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_11 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14609, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    (void)(memcpy(((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_11)), (&((__pyx_v_self->_pvt_ptr[0]).planeDesc[__pyx_v__idx])), (sizeof(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc))));
  }

  /* "cuda/bindings/runtime.pyx":14610
 *         for _idx in range(len(out_planeDesc)):
 *             string.memcpy(<cyruntime.cudaEglPlaneDesc*><void_ptr>out_planeDesc[_idx].getPtr(), &self._pvt_ptr[0].planeDesc[_idx], sizeof(cyruntime.cudaEglPlaneDesc))
 *         return out_planeDesc             # <<<<<<<<<<<<<<
 *     @planeDesc.setter
 *     def planeDesc(self, planeDesc : list[cudaEglPlaneDesc]):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_out_planeDesc);
  __pyx_r = __pyx_v_out_planeDesc;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14605
 *     def frame(self, frame not None : anon_union10):
 *         string.memcpy(&self._pvt_ptr[0].frame, <cyruntime.anon_union10*><void_ptr>frame.getPtr(), sizeof(self._pvt_ptr[0].frame))
 *     @property             # <<<<<<<<<<<<<<
 *     def planeDesc(self):
 *         out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._pvt_ptr[0].planeDesc]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.planeDesc.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_out_planeDesc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14611
 *             string.memcpy(<cyruntime.cudaEglPlaneDesc*><void_ptr>out_planeDesc[_idx].getPtr(), &self._pvt_ptr[0].planeDesc[_idx], sizeof(cyruntime.cudaEglPlaneDesc))
 *         return out_planeDesc
 *     @planeDesc.setter             # <<<<<<<<<<<<<<
 *     def planeDesc(self, planeDesc : list[cudaEglPlaneDesc]):
 *         if len(planeDesc) != 3:
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_planeDesc); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_planeDesc) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_planeDesc), (&PyList_Type), 0, "planeDesc", 2))) __PYX_ERR(0, 14612, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self), ((PyObject*)__pyx_v_planeDesc));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_planeDesc) {
  Py_ssize_t __pyx_v__idx;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14613
 *     @planeDesc.setter
 *     def planeDesc(self, planeDesc : list[cudaEglPlaneDesc]):
 *         if len(planeDesc) != 3:             # <<<<<<<<<<<<<<
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(planeDesc))
 *         for _idx in range(len(planeDesc)):
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_planeDesc); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14613, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 3);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":14614
 *     def planeDesc(self, planeDesc : list[cudaEglPlaneDesc]):
 *         if len(planeDesc) != 3:
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(planeDesc))             # <<<<<<<<<<<<<<
 *         for _idx in range(len(planeDesc)):
 *             string.memcpy(&self._pvt_ptr[0].planeDesc[_idx], <cyruntime.cudaEglPlaneDesc*><void_ptr>planeDesc[_idx].getPtr(), sizeof(cyruntime.cudaEglPlaneDesc))
*/
    __pyx_t_4 = NULL;
    __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_planeDesc); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14614, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_not_enough_values_found_during_a_2, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14614, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 14614, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":14613
 *     @planeDesc.setter
 *     def planeDesc(self, planeDesc : list[cudaEglPlaneDesc]):
 *         if len(planeDesc) != 3:             # <<<<<<<<<<<<<<
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(planeDesc))
 *         for _idx in range(len(planeDesc)):
*/
  }

  /* "cuda/bindings/runtime.pyx":14615
 *         if len(planeDesc) != 3:
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(planeDesc))
 *         for _idx in range(len(planeDesc)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&self._pvt_ptr[0].planeDesc[_idx], <cyruntime.cudaEglPlaneDesc*><void_ptr>planeDesc[_idx].getPtr(), sizeof(cyruntime.cudaEglPlaneDesc))
 * 
*/
  __pyx_t_1 = __Pyx_PyList_GET_SIZE(__pyx_v_planeDesc); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 14615, __pyx_L1_error)
  __pyx_t_7 = __pyx_t_1;
  for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
    __pyx_v__idx = __pyx_t_8;

    /* "cuda/bindings/runtime.pyx":14616
 *             raise IndexError('not enough values found during array assignment, expected 3, got', len(planeDesc))
 *         for _idx in range(len(planeDesc)):
 *             string.memcpy(&self._pvt_ptr[0].planeDesc[_idx], <cyruntime.cudaEglPlaneDesc*><void_ptr>planeDesc[_idx].getPtr(), sizeof(cyruntime.cudaEglPlaneDesc))             # <<<<<<<<<<<<<<
 * 
 *     @property
*/
    __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_planeDesc, __pyx_v__idx, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14616, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __pyx_t_4;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14616, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_9 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_9 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14616, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    (void)(memcpy((&((__pyx_v_self->_pvt_ptr[0]).planeDesc[__pyx_v__idx])), ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_9)), (sizeof(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc))));
  }

  /* "cuda/bindings/runtime.pyx":14611
 *             string.memcpy(<cyruntime.cudaEglPlaneDesc*><void_ptr>out_planeDesc[_idx].getPtr(), &self._pvt_ptr[0].planeDesc[_idx], sizeof(cyruntime.cudaEglPlaneDesc))
 *         return out_planeDesc
 *     @planeDesc.setter             # <<<<<<<<<<<<<<
 *     def planeDesc(self, planeDesc : list[cudaEglPlaneDesc]):
 *         if len(planeDesc) != 3:
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.planeDesc.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14618
 *             string.memcpy(&self._pvt_ptr[0].planeDesc[_idx], <cyruntime.cudaEglPlaneDesc*><void_ptr>planeDesc[_idx].getPtr(), sizeof(cyruntime.cudaEglPlaneDesc))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def planeCount(self):
 *         return self._pvt_ptr[0].planeCount
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_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("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14620
 *     @property
 *     def planeCount(self):
 *         return self._pvt_ptr[0].planeCount             # <<<<<<<<<<<<<<
 *     @planeCount.setter
 *     def planeCount(self, unsigned int planeCount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int((__pyx_v_self->_pvt_ptr[0]).planeCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14618
 *             string.memcpy(&self._pvt_ptr[0].planeDesc[_idx], <cyruntime.cudaEglPlaneDesc*><void_ptr>planeDesc[_idx].getPtr(), sizeof(cyruntime.cudaEglPlaneDesc))
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def planeCount(self):
 *         return self._pvt_ptr[0].planeCount
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.planeCount.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14621
 *     def planeCount(self):
 *         return self._pvt_ptr[0].planeCount
 *     @planeCount.setter             # <<<<<<<<<<<<<<
 *     def planeCount(self, unsigned int planeCount):
 *         self._pvt_ptr[0].planeCount = planeCount
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_planeCount); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_arg_planeCount) {
  unsigned int __pyx_v_planeCount;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  assert(__pyx_arg_planeCount); {
    __pyx_v_planeCount = __Pyx_PyLong_As_unsigned_int(__pyx_arg_planeCount); if (unlikely((__pyx_v_planeCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14622, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.planeCount.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self), ((unsigned int)__pyx_v_planeCount));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, unsigned int __pyx_v_planeCount) {
  int __pyx_r;

  /* "cuda/bindings/runtime.pyx":14623
 *     @planeCount.setter
 *     def planeCount(self, unsigned int planeCount):
 *         self._pvt_ptr[0].planeCount = planeCount             # <<<<<<<<<<<<<<
 *     @property
 *     def frameType(self):
*/
  (__pyx_v_self->_pvt_ptr[0]).planeCount = __pyx_v_planeCount;

  /* "cuda/bindings/runtime.pyx":14621
 *     def planeCount(self):
 *         return self._pvt_ptr[0].planeCount
 *     @planeCount.setter             # <<<<<<<<<<<<<<
 *     def planeCount(self, unsigned int planeCount):
 *         self._pvt_ptr[0].planeCount = planeCount
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14624
 *     def planeCount(self, unsigned int planeCount):
 *         self._pvt_ptr[0].planeCount = planeCount
 *     @property             # <<<<<<<<<<<<<<
 *     def frameType(self):
 *         if self._pvt_ptr[0].frameType not in _dict_cudaEglFrameType:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14626
 *     @property
 *     def frameType(self):
 *         if self._pvt_ptr[0].frameType not in _dict_cudaEglFrameType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaEglFrameType[self._pvt_ptr[0].frameType]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum((__pyx_v_self->_pvt_ptr[0]).frameType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaEglFrameType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 14626, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":14627
 *     def frameType(self):
 *         if self._pvt_ptr[0].frameType not in _dict_cudaEglFrameType:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaEglFrameType[self._pvt_ptr[0].frameType]
 *     @frameType.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14626
 *     @property
 *     def frameType(self):
 *         if self._pvt_ptr[0].frameType not in _dict_cudaEglFrameType:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaEglFrameType[self._pvt_ptr[0].frameType]
*/
  }

  /* "cuda/bindings/runtime.pyx":14628
 *         if self._pvt_ptr[0].frameType not in _dict_cudaEglFrameType:
 *             return None
 *         return _dict_cudaEglFrameType[self._pvt_ptr[0].frameType]             # <<<<<<<<<<<<<<
 *     @frameType.setter
 *     def frameType(self, frameType not None : cudaEglFrameType):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaEglFrameType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum((__pyx_v_self->_pvt_ptr[0]).frameType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14624
 *     def planeCount(self, unsigned int planeCount):
 *         self._pvt_ptr[0].planeCount = planeCount
 *     @property             # <<<<<<<<<<<<<<
 *     def frameType(self):
 *         if self._pvt_ptr[0].frameType not in _dict_cudaEglFrameType:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.frameType.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14629
 *             return None
 *         return _dict_cudaEglFrameType[self._pvt_ptr[0].frameType]
 *     @frameType.setter             # <<<<<<<<<<<<<<
 *     def frameType(self, frameType not None : cudaEglFrameType):
 *         self._pvt_ptr[0].frameType = frameType.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_frameType); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_frameType) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_frameType) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "frameType"); __PYX_ERR(0, 14630, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self), ((PyObject *)__pyx_v_frameType));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_frameType) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14631
 *     @frameType.setter
 *     def frameType(self, frameType not None : cudaEglFrameType):
 *         self._pvt_ptr[0].frameType = frameType.value             # <<<<<<<<<<<<<<
 *     @property
 *     def eglColorFormat(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_frameType, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)__Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).frameType = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14629
 *             return None
 *         return _dict_cudaEglFrameType[self._pvt_ptr[0].frameType]
 *     @frameType.setter             # <<<<<<<<<<<<<<
 *     def frameType(self, frameType not None : cudaEglFrameType):
 *         self._pvt_ptr[0].frameType = frameType.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.frameType.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14632
 *     def frameType(self, frameType not None : cudaEglFrameType):
 *         self._pvt_ptr[0].frameType = frameType.value
 *     @property             # <<<<<<<<<<<<<<
 *     def eglColorFormat(self):
 *         if self._pvt_ptr[0].eglColorFormat not in _dict_cudaEglColorFormat:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat___get__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat___get__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cuda/bindings/runtime.pyx":14634
 *     @property
 *     def eglColorFormat(self):
 *         if self._pvt_ptr[0].eglColorFormat not in _dict_cudaEglColorFormat:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaEglColorFormat[self._pvt_ptr[0].eglColorFormat]
*/
  __pyx_t_1 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum((__pyx_v_self->_pvt_ptr[0]).eglColorFormat); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaEglColorFormat); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 14634, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cuda/bindings/runtime.pyx":14635
 *     def eglColorFormat(self):
 *         if self._pvt_ptr[0].eglColorFormat not in _dict_cudaEglColorFormat:
 *             return None             # <<<<<<<<<<<<<<
 *         return _dict_cudaEglColorFormat[self._pvt_ptr[0].eglColorFormat]
 *     @eglColorFormat.setter
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":14634
 *     @property
 *     def eglColorFormat(self):
 *         if self._pvt_ptr[0].eglColorFormat not in _dict_cudaEglColorFormat:             # <<<<<<<<<<<<<<
 *             return None
 *         return _dict_cudaEglColorFormat[self._pvt_ptr[0].eglColorFormat]
*/
  }

  /* "cuda/bindings/runtime.pyx":14636
 *         if self._pvt_ptr[0].eglColorFormat not in _dict_cudaEglColorFormat:
 *             return None
 *         return _dict_cudaEglColorFormat[self._pvt_ptr[0].eglColorFormat]             # <<<<<<<<<<<<<<
 *     @eglColorFormat.setter
 *     def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaEglColorFormat); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum((__pyx_v_self->_pvt_ptr[0]).eglColorFormat); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14632
 *     def frameType(self, frameType not None : cudaEglFrameType):
 *         self._pvt_ptr[0].frameType = frameType.value
 *     @property             # <<<<<<<<<<<<<<
 *     def eglColorFormat(self):
 *         if self._pvt_ptr[0].eglColorFormat not in _dict_cudaEglColorFormat:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.eglColorFormat.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14637
 *             return None
 *         return _dict_cudaEglColorFormat[self._pvt_ptr[0].eglColorFormat]
 *     @eglColorFormat.setter             # <<<<<<<<<<<<<<
 *     def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat):
 *         self._pvt_ptr[0].eglColorFormat = eglColorFormat.value
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eglColorFormat); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_eglColorFormat) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(((PyObject *)__pyx_v_eglColorFormat) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "eglColorFormat"); __PYX_ERR(0, 14638, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_2__set__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self), ((PyObject *)__pyx_v_eglColorFormat));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_2__set__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, PyObject *__pyx_v_eglColorFormat) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cuda/bindings/runtime.pyx":14639
 *     @eglColorFormat.setter
 *     def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat):
 *         self._pvt_ptr[0].eglColorFormat = eglColorFormat.value             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaGraphConditionalHandle:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_eglColorFormat, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)__Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 14639, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  (__pyx_v_self->_pvt_ptr[0]).eglColorFormat = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":14637
 *             return None
 *         return _dict_cudaEglColorFormat[self._pvt_ptr[0].eglColorFormat]
 *     @eglColorFormat.setter             # <<<<<<<<<<<<<<
 *     def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat):
 *         self._pvt_ptr[0].eglColorFormat = eglColorFormat.value
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.eglColorFormat.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_15cudaEglFrame_st_10__reduce_cython__, "cudaEglFrame_st.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaEglFrame_st_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaEglFrame_st_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_15cudaEglFrame_st_12__setstate_cython__, "cudaEglFrame_st.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaEglFrame_st_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaEglFrame_st_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaEglFrame_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaEglFrame_st_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEglFrame_st.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14652
 * 
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  unsigned PY_LONG_LONG __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14652, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14652, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14652, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14652, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14652, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14652, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14652, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((unsigned PY_LONG_LONG)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14652, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14652, __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.runtime.cudaGraphConditionalHandle.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14653
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14654
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphConditionalHandle *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14653
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14656
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphConditionalHandle *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaGraphConditionalHandle *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14657
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphConditionalHandle *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14658
 *             self._pvt_ptr = <cyruntime.cudaGraphConditionalHandle *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14657
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaGraphConditionalHandle *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14652
 * 
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14659
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14661
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaGraphConditionalHandle ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14662
 *         pass
 *     def __repr__(self):
 *         return '<cudaGraphConditionalHandle ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaGraphConditionalHandle, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14661
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaGraphConditionalHandle ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphConditionalHandle.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14663
 *     def __repr__(self):
 *         return '<cudaGraphConditionalHandle ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14664
 *         return '<cudaGraphConditionalHandle ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((unsigned PY_LONG_LONG)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14663
 *     def __repr__(self):
 *         return '<cudaGraphConditionalHandle ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphConditionalHandle.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14665
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_9getPtr(PyObject *__pyx_v_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_7runtime_26cudaGraphConditionalHandle_8getPtr, "cudaGraphConditionalHandle.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14666
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaLogIterator:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14665
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphConditionalHandle.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_26cudaGraphConditionalHandle_10__reduce_cython__, "cudaGraphConditionalHandle.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphConditionalHandle.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_26cudaGraphConditionalHandle_12__setstate_cython__, "cudaGraphConditionalHandle.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaGraphConditionalHandle.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphConditionalHandle.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14677
 * 
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  unsigned int __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14677, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14677, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14677, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14677, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14677, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14677, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_init_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14677, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((unsigned int)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14677, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14677, __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.runtime.cudaLogIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14678
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14679
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogIterator *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14678
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14681
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogIterator *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaLogIterator *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14682
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogIterator *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14683
 *             self._pvt_ptr = <cyruntime.cudaLogIterator *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14682
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaLogIterator *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14677
 * 
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14684
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14686
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaLogIterator ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14687
 *         pass
 *     def __repr__(self):
 *         return '<cudaLogIterator ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14687, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaLogIterator, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14686
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaLogIterator ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogIterator.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14688
 *     def __repr__(self):
 *         return '<cudaLogIterator ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14689
 *         return '<cudaLogIterator ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(((unsigned int)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14688
 *     def __repr__(self):
 *         return '<cudaLogIterator ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogIterator.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14690
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_9getPtr(PyObject *__pyx_v_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_7runtime_15cudaLogIterator_8getPtr, "cudaLogIterator.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaLogIterator_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaLogIterator_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14691
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaSurfaceObject_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14690
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogIterator.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_15cudaLogIterator_10__reduce_cython__, "cudaLogIterator.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaLogIterator_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaLogIterator_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogIterator.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_15cudaLogIterator_12__setstate_cython__, "cudaLogIterator.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaLogIterator_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaLogIterator_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaLogIterator.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15cudaLogIterator_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogIterator.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14704
 * 
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  unsigned PY_LONG_LONG __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14704, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14704, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14704, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14704, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14704, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14704, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14704, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((unsigned PY_LONG_LONG)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14704, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14704, __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.runtime.cudaSurfaceObject_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14705
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14706
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaSurfaceObject_t *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14705
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14708
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaSurfaceObject_t *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaSurfaceObject_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14709
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaSurfaceObject_t *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14710
 *             self._pvt_ptr = <cyruntime.cudaSurfaceObject_t *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14709
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaSurfaceObject_t *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14704
 * 
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14711
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14713
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaSurfaceObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14714
 *         pass
 *     def __repr__(self):
 *         return '<cudaSurfaceObject_t ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaSurfaceObject_t, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14713
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaSurfaceObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSurfaceObject_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14715
 *     def __repr__(self):
 *         return '<cudaSurfaceObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14716
 *         return '<cudaSurfaceObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((unsigned PY_LONG_LONG)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14716, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14715
 *     def __repr__(self):
 *         return '<cudaSurfaceObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSurfaceObject_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14717
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_9getPtr(PyObject *__pyx_v_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_7runtime_19cudaSurfaceObject_t_8getPtr, "cudaSurfaceObject_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14718
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaTextureObject_t:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14717
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSurfaceObject_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_19cudaSurfaceObject_t_10__reduce_cython__, "cudaSurfaceObject_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSurfaceObject_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_19cudaSurfaceObject_t_12__setstate_cython__, "cudaSurfaceObject_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaSurfaceObject_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSurfaceObject_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14731
 * 
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  unsigned PY_LONG_LONG __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14731, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14731, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14731, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14731, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14731, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14731, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14731, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((unsigned PY_LONG_LONG)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14731, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14731, __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.runtime.cudaTextureObject_t.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14732
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14733
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaTextureObject_t *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14732
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14735
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaTextureObject_t *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((cudaTextureObject_t *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14736
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaTextureObject_t *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14737
 *             self._pvt_ptr = <cyruntime.cudaTextureObject_t *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14736
 *         else:
 *             self._pvt_ptr = <cyruntime.cudaTextureObject_t *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14731
 * 
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14738
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14740
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaTextureObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14741
 *         pass
 *     def __repr__(self):
 *         return '<cudaTextureObject_t ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14741, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_cudaTextureObject_t, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14740
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<cudaTextureObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureObject_t.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14742
 *     def __repr__(self):
 *         return '<cudaTextureObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14743
 *         return '<cudaTextureObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((unsigned PY_LONG_LONG)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14742
 *     def __repr__(self):
 *         return '<cudaTextureObject_t ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureObject_t.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14744
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_9getPtr(PyObject *__pyx_v_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_7runtime_19cudaTextureObject_t_8getPtr, "cudaTextureObject_t.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaTextureObject_t_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaTextureObject_t_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14745
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class GLenum:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14744
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureObject_t.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_19cudaTextureObject_t_10__reduce_cython__, "cudaTextureObject_t.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaTextureObject_t_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaTextureObject_t_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureObject_t.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_19cudaTextureObject_t_12__setstate_cython__, "cudaTextureObject_t.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaTextureObject_t_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaTextureObject_t_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaTextureObject_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaTextureObject_t_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaTextureObject_t.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14756
 * 
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_6GLenum_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_6GLenum_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  unsigned int __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14756, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14756, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14756, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14756, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14756, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14756, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_init_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14756, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((unsigned int)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14756, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14756, __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.runtime.GLenum.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLenum___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_6GLenum___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14757
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14758
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.GLenum *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14757
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14760
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.GLenum *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_GLenum *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14761
 *         else:
 *             self._pvt_ptr = <cyruntime.GLenum *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14762
 *             self._pvt_ptr = <cyruntime.GLenum *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14761
 *         else:
 *             self._pvt_ptr = <cyruntime.GLenum *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14756
 * 
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14763
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_6GLenum_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_6GLenum_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_6GLenum_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_6GLenum_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14765
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<GLenum ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLenum_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14766
 *         pass
 *     def __repr__(self):
 *         return '<GLenum ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_GLenum, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14765
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<GLenum ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.GLenum.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14767
 *     def __repr__(self):
 *         return '<GLenum ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLenum_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14768
 *         return '<GLenum ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(((unsigned int)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14767
 *     def __repr__(self):
 *         return '<GLenum ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.GLenum.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14769
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_9getPtr(PyObject *__pyx_v_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_7runtime_6GLenum_8getPtr, "GLenum.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6GLenum_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLenum_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLenum_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLenum_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14770
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class GLuint:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14769
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.GLenum.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_6GLenum_10__reduce_cython__, "GLenum.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6GLenum_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLenum_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLenum_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLenum_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.GLenum.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_6GLenum_12__setstate_cython__, "GLenum.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6GLenum_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLenum_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLenum_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLenum_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.GLenum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLenum_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLenum_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLenum *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.GLenum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14781
 * 
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_6GLuint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_6GLuint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  unsigned int __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14781, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14781, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14781, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14781, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14781, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14781, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_init_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14781, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((unsigned int)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14781, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14781, __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.runtime.GLuint.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLuint___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_6GLuint___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14782
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14783
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.GLuint *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14782
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14785
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.GLuint *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_GLuint *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14786
 *         else:
 *             self._pvt_ptr = <cyruntime.GLuint *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14787
 *             self._pvt_ptr = <cyruntime.GLuint *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14786
 *         else:
 *             self._pvt_ptr = <cyruntime.GLuint *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14781
 * 
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14788
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_6GLuint_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_6GLuint_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_6GLuint_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_6GLuint_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14790
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<GLuint ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLuint_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14791
 *         pass
 *     def __repr__(self):
 *         return '<GLuint ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_GLuint, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14790
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<GLuint ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.GLuint.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14792
 *     def __repr__(self):
 *         return '<GLuint ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLuint_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14793
 *         return '<GLuint ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(((unsigned int)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14792
 *     def __repr__(self):
 *         return '<GLuint ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.GLuint.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14794
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_9getPtr(PyObject *__pyx_v_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_7runtime_6GLuint_8getPtr, "GLuint.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6GLuint_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLuint_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLuint_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLuint_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14795
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class EGLint:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14794
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.GLuint.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_6GLuint_10__reduce_cython__, "GLuint.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6GLuint_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLuint_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLuint_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLuint_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.GLuint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_6GLuint_12__setstate_cython__, "GLuint.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6GLuint_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLuint_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLuint_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6GLuint_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.GLuint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6GLuint_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6GLuint_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_GLuint *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.GLuint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14806
 * 
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_6EGLint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_6EGLint_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  unsigned int __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14806, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14806, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14806, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14806, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14806, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14806, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_init_value == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 14806, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((unsigned int)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14806, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14806, __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.runtime.EGLint.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6EGLint___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_6EGLint___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self, unsigned int __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14807
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14808
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLint *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14807
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14810
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLint *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLint *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14811
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLint *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14812
 *             self._pvt_ptr = <cyruntime.EGLint *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14811
 *         else:
 *             self._pvt_ptr = <cyruntime.EGLint *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14806
 * 
 *     """
 *     def __cinit__(self, unsigned int init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14813
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_6EGLint_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_6EGLint_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_6EGLint_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_6EGLint_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14815
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<EGLint ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6EGLint_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14816
 *         pass
 *     def __repr__(self):
 *         return '<EGLint ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_EGLint, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14815
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<EGLint ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLint.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14817
 *     def __repr__(self):
 *         return '<EGLint ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6EGLint_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14818
 *         return '<EGLint ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(((unsigned int)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14817
 *     def __repr__(self):
 *         return '<EGLint ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLint.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14819
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_9getPtr(PyObject *__pyx_v_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_7runtime_6EGLint_8getPtr, "EGLint.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6EGLint_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6EGLint_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6EGLint_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6EGLint_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14820
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class VdpDevice:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14819
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLint.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_6EGLint_10__reduce_cython__, "EGLint.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6EGLint_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6EGLint_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6EGLint_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6EGLint_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLint.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_6EGLint_12__setstate_cython__, "EGLint.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_6EGLint_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6EGLint_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6EGLint_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_6EGLint_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.EGLint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6EGLint_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_6EGLint_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_EGLint *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.EGLint.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14831
 * 
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  uint32_t __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14831, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14831, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14831, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14831, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14831, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14831, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_uint32_t(values[0]); if (unlikely((__pyx_v_init_value == ((uint32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 14831, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((uint32_t)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14831, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14831, __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.runtime.VdpDevice.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14832
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14833
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpDevice *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14832
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14835
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpDevice *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpDevice *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14836
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpDevice *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14837
 *             self._pvt_ptr = <cyruntime.VdpDevice *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14836
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpDevice *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14831
 * 
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14838
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14840
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<VdpDevice ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14841
 *         pass
 *     def __repr__(self):
 *         return '<VdpDevice ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14841, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14841, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_VdpDevice, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14841, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14841, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14840
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<VdpDevice ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpDevice.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14842
 *     def __repr__(self):
 *         return '<VdpDevice ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14843
 *         return '<VdpDevice ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_uint32_t(((uint32_t)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14842
 *     def __repr__(self):
 *         return '<VdpDevice ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpDevice.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14844
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_9getPtr(PyObject *__pyx_v_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_7runtime_9VdpDevice_8getPtr, "VdpDevice.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_9VdpDevice_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9VdpDevice_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14845
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class VdpGetProcAddress:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14844
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpDevice.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_9VdpDevice_10__reduce_cython__, "VdpDevice.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_9VdpDevice_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9VdpDevice_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpDevice.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_9VdpDevice_12__setstate_cython__, "VdpDevice.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_9VdpDevice_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9VdpDevice_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.VdpDevice.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_9VdpDevice_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpDevice.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14856
 * 
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  unsigned PY_LONG_LONG __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14856, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14856, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14856, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14856, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14856, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14856, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[0]); if (unlikely((__pyx_v_init_value == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14856, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((unsigned PY_LONG_LONG)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14856, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14856, __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.runtime.VdpGetProcAddress.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14857
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14858
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpGetProcAddress *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14857
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14860
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpGetProcAddress *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14861
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpGetProcAddress *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14862
 *             self._pvt_ptr = <cyruntime.VdpGetProcAddress *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14861
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpGetProcAddress *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14856
 * 
 *     """
 *     def __cinit__(self, unsigned long long init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14863
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14865
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<VdpGetProcAddress ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14866
 *         pass
 *     def __repr__(self):
 *         return '<VdpGetProcAddress ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14866, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_VdpGetProcAddress, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14865
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<VdpGetProcAddress ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpGetProcAddress.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14867
 *     def __repr__(self):
 *         return '<VdpGetProcAddress ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14868
 *         return '<VdpGetProcAddress ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((unsigned PY_LONG_LONG)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14867
 *     def __repr__(self):
 *         return '<VdpGetProcAddress ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpGetProcAddress.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14869
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_9getPtr(PyObject *__pyx_v_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_7runtime_17VdpGetProcAddress_8getPtr, "VdpGetProcAddress.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17VdpGetProcAddress_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17VdpGetProcAddress_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14870
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class VdpVideoSurface:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14870, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14869
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpGetProcAddress.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_17VdpGetProcAddress_10__reduce_cython__, "VdpGetProcAddress.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17VdpGetProcAddress_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17VdpGetProcAddress_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpGetProcAddress.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_17VdpGetProcAddress_12__setstate_cython__, "VdpGetProcAddress.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17VdpGetProcAddress_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17VdpGetProcAddress_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.VdpGetProcAddress.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_17VdpGetProcAddress_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpGetProcAddress.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14881
 * 
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  uint32_t __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14881, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14881, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14881, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14881, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14881, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14881, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_uint32_t(values[0]); if (unlikely((__pyx_v_init_value == ((uint32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 14881, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((uint32_t)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14881, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14881, __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.runtime.VdpVideoSurface.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14882
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14883
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpVideoSurface *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14882
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14885
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpVideoSurface *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14886
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpVideoSurface *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14887
 *             self._pvt_ptr = <cyruntime.VdpVideoSurface *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14886
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpVideoSurface *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14881
 * 
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14888
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14890
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<VdpVideoSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14891
 *         pass
 *     def __repr__(self):
 *         return '<VdpVideoSurface ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14891, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_VdpVideoSurface, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14890
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<VdpVideoSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpVideoSurface.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14892
 *     def __repr__(self):
 *         return '<VdpVideoSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14893
 *         return '<VdpVideoSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_uint32_t(((uint32_t)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14892
 *     def __repr__(self):
 *         return '<VdpVideoSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpVideoSurface.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14894
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_9getPtr(PyObject *__pyx_v_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_7runtime_15VdpVideoSurface_8getPtr, "VdpVideoSurface.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15VdpVideoSurface_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15VdpVideoSurface_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14895
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * cdef class VdpOutputSurface:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14894
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpVideoSurface.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_15VdpVideoSurface_10__reduce_cython__, "VdpVideoSurface.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15VdpVideoSurface_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15VdpVideoSurface_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpVideoSurface.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_15VdpVideoSurface_12__setstate_cython__, "VdpVideoSurface.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15VdpVideoSurface_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15VdpVideoSurface_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.VdpVideoSurface.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_15VdpVideoSurface_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpVideoSurface.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14906
 * 
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

/* Python wrapper */
static int __pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  uint32_t __pyx_v_init_value;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #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 -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_init_value,&__pyx_mstate_global->__pyx_n_u_ptr_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 14906, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14906, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14906, __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, "__cinit__", 0) < (0)) __PYX_ERR(0, 14906, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14906, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14906, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_init_value = __Pyx_PyLong_As_uint32_t(values[0]); if (unlikely((__pyx_v_init_value == ((uint32_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 14906, __pyx_L3_error)
    } else {
      __pyx_v_init_value = ((uint32_t)0);
    }
    if (values[1]) {
      __pyx_v__ptr = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v__ptr == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 14906, __pyx_L3_error)
    } else {
      __pyx_v__ptr = ((__pyx_t_4cuda_8bindings_7runtime_void_ptr)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 14906, __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.runtime.VdpOutputSurface.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface___cinit__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *)__pyx_v_self), __pyx_v_init_value, __pyx_v__ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface___cinit__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self, uint32_t __pyx_v_init_value, __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v__ptr) {
  int __pyx_r;
  int __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":14907
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
  __pyx_t_1 = (__pyx_v__ptr == 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14908
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val             # <<<<<<<<<<<<<<
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpOutputSurface *>_ptr
*/
    __pyx_v_self->_pvt_ptr = (&__pyx_v_self->_pvt_val);

    /* "cuda/bindings/runtime.pyx":14907
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):
 *         if _ptr == 0:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr = &self._pvt_val
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":14910
 *             self._pvt_ptr = &self._pvt_val
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpOutputSurface *>_ptr             # <<<<<<<<<<<<<<
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
*/
  /*else*/ {
    __pyx_v_self->_pvt_ptr = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface *)__pyx_v__ptr);
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":14911
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpOutputSurface *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  __pyx_t_1 = (__pyx_v_init_value != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":14912
 *             self._pvt_ptr = <cyruntime.VdpOutputSurface *>_ptr
 *         if init_value:
 *             self._pvt_ptr[0] = init_value             # <<<<<<<<<<<<<<
 *     def __dealloc__(self):
 *         pass
*/
    (__pyx_v_self->_pvt_ptr[0]) = __pyx_v_init_value;

    /* "cuda/bindings/runtime.pyx":14911
 *         else:
 *             self._pvt_ptr = <cyruntime.VdpOutputSurface *>_ptr
 *         if init_value:             # <<<<<<<<<<<<<<
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):
*/
  }

  /* "cuda/bindings/runtime.pyx":14906
 * 
 *     """
 *     def __cinit__(self, uint32_t init_value = 0, void_ptr _ptr = 0):             # <<<<<<<<<<<<<<
 *         if _ptr == 0:
 *             self._pvt_ptr = &self._pvt_val
*/

  /* function exit code */
  __pyx_r = 0;
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14913
 *         if init_value:
 *             self._pvt_ptr[0] = init_value
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         pass
 *     def __repr__(self):
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_2__dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_2__dealloc__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self) {

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":14915
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<VdpOutputSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_4__repr__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_4__repr__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cuda/bindings/runtime.pyx":14916
 *         pass
 *     def __repr__(self):
 *         return '<VdpOutputSurface ' + str(self.__int__()) + '>'             # <<<<<<<<<<<<<<
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_int, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14916, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_VdpOutputSurface, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14915
 *     def __dealloc__(self):
 *         pass
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<VdpOutputSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpOutputSurface.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14917
 *     def __repr__(self):
 *         return '<VdpOutputSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_7__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_7__int__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_6__int__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_6__int__(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_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("__int__", 0);

  /* "cuda/bindings/runtime.pyx":14918
 *         return '<VdpOutputSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_uint32_t(((uint32_t)(__pyx_v_self->_pvt_ptr[0]))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14917
 *     def __repr__(self):
 *         return '<VdpOutputSurface ' + str(self.__int__()) + '>'
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpOutputSurface.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14919
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_9getPtr(PyObject *__pyx_v_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_7runtime_16VdpOutputSurface_8getPtr, "VdpOutputSurface.getPtr(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16VdpOutputSurface_9getPtr = {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16VdpOutputSurface_8getPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_9getPtr(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getPtr (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("getPtr", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("getPtr", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_8getPtr(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_8getPtr(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_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("getPtr", 0);

  /* "cuda/bindings/runtime.pyx":14920
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):
 *         return <void_ptr>self._pvt_ptr             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_v_self->_pvt_ptr)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14919
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpOutputSurface.getPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_11__reduce_cython__(PyObject *__pyx_v_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_7runtime_16VdpOutputSurface_10__reduce_cython__, "VdpOutputSurface.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16VdpOutputSurface_11__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16VdpOutputSurface_10__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_11__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_10__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpOutputSurface.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_13__setstate_cython__(PyObject *__pyx_v_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_7runtime_16VdpOutputSurface_12__setstate_cython__, "VdpOutputSurface.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_16VdpOutputSurface_13__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16VdpOutputSurface_12__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_13__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.VdpOutputSurface.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_12__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16VdpOutputSurface_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.VdpOutputSurface.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14922
 *         return <void_ptr>self._pvt_ptr
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceReset():
 *     """ Destroy all allocations and reset all state on the current device in the current process.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_1cudaDeviceReset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_cudaDeviceReset, "cudaDeviceReset()\n\nDestroy all allocations and reset all state on the current device in the current process.\n\nExplicitly destroys and cleans up all resources associated with the\ncurrent device in the current process. It is the caller's\nresponsibility to ensure that the resources are not accessed or passed\nin subsequent API calls and doing so will result in undefined behavior.\nThese resources include CUDA types :py:obj:`~.cudaStream_t`,\n:py:obj:`~.cudaEvent_t`, :py:obj:`~.cudaArray_t`,\n:py:obj:`~.cudaMipmappedArray_t`, :py:obj:`~.cudaPitchedPtr`,\n:py:obj:`~.cudaTextureObject_t`, :py:obj:`~.cudaSurfaceObject_t`,\n:py:obj:`~.textureReference`, :py:obj:`~.surfaceReference`,\n:py:obj:`~.cudaExternalMemory_t`, :py:obj:`~.cudaExternalSemaphore_t`\nand :py:obj:`~.cudaGraphicsResource_t`. These resources also include\nmemory allocations by :py:obj:`~.cudaMalloc`,\n:py:obj:`~.cudaMallocHost`, :py:obj:`~.cudaMallocManaged` and\n:py:obj:`~.cudaMallocPitch`. Any subsequent API call to this device\nwill reinitialize the device.\n\nNote that this function will reset the device immediately. It is the\ncaller's responsibility to ensure that the device is not being accessed\nby any other host threads from the process when this function is\ncalled.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceSynchronize`\n\nNotes\n-----\n:py:obj:`~.cudaDeviceReset()` will not destroy memory allocations by :py:obj:`~.cudaMallocAsync()` and :py:obj:`~.cudaMallocFromPoolAsync()`. These memory allocations need to be destroyed explicitly.\n\nIf a non-primary :py:obj:`~.CUcontext` is current to the thread, :py:obj:`~.cudaDeviceReset()` will destroy only the internal CUDA RT state for that :py:obj:`~.CUcontext`.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_1cudaDeviceReset = {"cudaDeviceReset", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_1cudaDeviceReset, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_cudaDeviceReset};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_1cudaDeviceReset(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceReset (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_cudaDeviceReset(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_cudaDeviceReset(CYTHON_UNUSED PyObject *__pyx_self) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceReset", 0);

  /* "cuda/bindings/runtime.pyx":14962
 *     If a non-primary :py:obj:`~.CUcontext` is current to the thread, :py:obj:`~.cudaDeviceReset()` will destroy only the internal CUDA RT state for that :py:obj:`~.CUcontext`.
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceReset()
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14963
 *     """
 *     with nogil:
 *         err = cyruntime.cudaDeviceReset()             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceReset(); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 14963, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":14962
 *     If a non-primary :py:obj:`~.CUcontext` is current to the thread, :py:obj:`~.cudaDeviceReset()` will destroy only the internal CUDA RT state for that :py:obj:`~.CUcontext`.
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceReset()
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":14964
 *     with nogil:
 *         err = cyruntime.cudaDeviceReset()
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 14964, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14922
 *         return <void_ptr>self._pvt_ptr
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceReset():
 *     """ Destroy all allocations and reset all state on the current device in the current process.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceReset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14966
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSynchronize():
 *     """ Wait for compute device to finish.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_3cudaDeviceSynchronize(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_2cudaDeviceSynchronize, "cudaDeviceSynchronize()\n\nWait for compute device to finish.\n\nBlocks until the device has completed all preceding requested tasks.\n:py:obj:`~.cudaDeviceSynchronize()` returns an error if one of the\npreceding tasks has failed. If the\n:py:obj:`~.cudaDeviceScheduleBlockingSync` flag was set for this\ndevice, the host thread will block until the device has finished its\nwork.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorStreamCaptureUnsupported`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceReset`, :py:obj:`~.cuCtxSynchronize`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_3cudaDeviceSynchronize = {"cudaDeviceSynchronize", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_3cudaDeviceSynchronize, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_2cudaDeviceSynchronize};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_3cudaDeviceSynchronize(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceSynchronize (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_2cudaDeviceSynchronize(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_2cudaDeviceSynchronize(CYTHON_UNUSED PyObject *__pyx_self) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceSynchronize", 0);

  /* "cuda/bindings/runtime.pyx":14986
 *     :py:obj:`~.cudaDeviceReset`, :py:obj:`~.cuCtxSynchronize`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSynchronize()
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":14987
 *     """
 *     with nogil:
 *         err = cyruntime.cudaDeviceSynchronize()             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSynchronize(); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 14987, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":14986
 *     :py:obj:`~.cudaDeviceReset`, :py:obj:`~.cuCtxSynchronize`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSynchronize()
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":14988
 *     with nogil:
 *         err = cyruntime.cudaDeviceSynchronize()
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14988, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14988, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14988, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14988, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 14988, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14966
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSynchronize():
 *     """ Wait for compute device to finish.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":14990
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value):
 *     """ Set resource limits.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_5cudaDeviceSetLimit(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_7runtime_4cudaDeviceSetLimit, "cudaDeviceSetLimit(limit: cudaLimit, size_t value)\n\nSet resource limits.\n\nSetting `limit` to `value` is a request by the application to update\nthe current limit maintained by the device. The driver is free to\nmodify the requested value to meet h/w requirements (this could be\nclamping to minimum or maximum values, rounding up to nearest element\nsize, etc). The application can use :py:obj:`~.cudaDeviceGetLimit()` to\nfind out exactly what the limit has been set to.\n\nSetting each :py:obj:`~.cudaLimit` has its own specific restrictions,\nso each is discussed here.\n\n- :py:obj:`~.cudaLimitStackSize` controls the stack size in bytes of\n  each GPU thread.\n\n- :py:obj:`~.cudaLimitPrintfFifoSize` controls the size in bytes of the\n  shared FIFO used by the :py:obj:`~.printf()` device system call.\n  Setting :py:obj:`~.cudaLimitPrintfFifoSize` must not be performed\n  after launching any kernel that uses the :py:obj:`~.printf()` device\n  system call - in such case :py:obj:`~.cudaErrorInvalidValue` will be\n  returned.\n\n- :py:obj:`~.cudaLimitMallocHeapSize` controls the size in bytes of the\n  heap used by the :py:obj:`~.malloc()` and :py:obj:`~.free()` device\n  system calls. Setting :py:obj:`~.cudaLimitMallocHeapSize` must not be\n  performed after launching any kernel that uses the\n  :py:obj:`~.malloc()` or :py:obj:`~.free()` device system calls - in\n  such case :py:obj:`~.cudaErrorInvalidValue` will be returned.\n\n- :py:obj:`~.cudaLimitDevRuntimeSyncDepth` controls the maximum nesting\n  depth of a grid at which a thread can safely call\n  :py:obj:`~.cudaDeviceSynchronize()`. Setting this limit must be\n  performed before any launch of a kernel that uses the device runtime\n  and calls :py:obj:`~.cudaDeviceSynchronize()` above the default sync\n  depth, two levels of grids. Calls to\n  :py:obj:`~.cudaDeviceSynchronize()` will fail with error code\n  :py:obj:`~.cudaErrorSyncDepthExceeded` if the limitation is violated.\n  This limit can be set smaller tha""n the default or up the maximum\n  launch depth of 24. When setting this limit, keep in mind that\n  additional levels of sync depth require the runtime to reserve large\n  amounts of device memory which can no longer be used for user\n  allocations. If these reservations of device memory fail,\n  :py:obj:`~.cudaDeviceSetLimit` will return\n  :py:obj:`~.cudaErrorMemoryAllocation`, and the limit can be reset to\n  a lower value. This limit is only applicable to devices of compute\n  capability < 9.0. Attempting to set this limit on devices of other\n  compute capability will results in error\n  :py:obj:`~.cudaErrorUnsupportedLimit` being returned.\n\n- :py:obj:`~.cudaLimitDevRuntimePendingLaunchCount` controls the\n  maximum number of outstanding device runtime launches that can be\n  made from the current device. A grid is outstanding from the point of\n  launch up until the grid is known to have been completed. Device\n  runtime launches which violate this limitation fail and return\n  :py:obj:`~.cudaErrorLaunchPendingCountExceeded` when\n  :py:obj:`~.cudaGetLastError()` is called after launch. If more\n  pending launches than the default (2048 launches) are needed for a\n  module using the device runtime, this limit can be increased. Keep in\n  mind that being able to sustain additional pending launches will\n  require the runtime to reserve larger amounts of device memory\n  upfront which can no longer be used for allocations. If these\n  reservations fail, :py:obj:`~.cudaDeviceSetLimit` will return\n  :py:obj:`~.cudaErrorMemoryAllocation`, and the limit can be reset to\n  a lower value. This limit is only applicable to devices of compute\n  capability 3.5 and higher. Attempting to set this limit on devices of\n  compute capability less than 3.5 will result in the error\n  :py:obj:`~.cudaErrorUnsupportedLimit` being returned.\n\n- :py:obj:`~.cudaLimitMaxL2FetchGranularity` controls the L2 cache\n  fetch granularity. Values can range from 0B to 128B. This is purel""y a\n  performance hint and it can be ignored or clamped depending on the\n  platform.\n\n- :py:obj:`~.cudaLimitPersistingL2CacheSize` controls size in bytes\n  available for persisting L2 cache. This is purely a performance hint\n  and it can be ignored or clamped depending on the platform.\n\nParameters\n----------\nlimit : :py:obj:`~.cudaLimit`\n    Limit to set\nvalue : size_t\n    Size of limit\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorUnsupportedLimit`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetLimit`, :py:obj:`~.cuCtxSetLimit`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_5cudaDeviceSetLimit = {"cudaDeviceSetLimit", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_5cudaDeviceSetLimit, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_4cudaDeviceSetLimit};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_5cudaDeviceSetLimit(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_limit = 0;
  size_t __pyx_v_value;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceSetLimit (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_limit,&__pyx_mstate_global->__pyx_n_u_value,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, 14990, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14990, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 14990, __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, "cudaDeviceSetLimit", 0) < (0)) __PYX_ERR(0, 14990, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetLimit", 1, 2, 2, i); __PYX_ERR(0, 14990, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 14990, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 14990, __pyx_L3_error)
    }
    __pyx_v_limit = values[0];
    __pyx_v_value = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_value == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 14991, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceSetLimit", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 14990, __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.runtime.cudaDeviceSetLimit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_limit) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "limit"); __PYX_ERR(0, 14991, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_4cudaDeviceSetLimit(__pyx_self, __pyx_v_limit, __pyx_v_value);

  /* 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_7runtime_4cudaDeviceSetLimit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_limit, size_t __pyx_v_value) {
  enum cudaLimit __pyx_v_cylimit;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaLimit __pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceSetLimit", 0);

  /* "cuda/bindings/runtime.pyx":15085
 *     :py:obj:`~.cudaDeviceGetLimit`, :py:obj:`~.cuCtxSetLimit`
 *     """
 *     cdef cyruntime.cudaLimit cylimit = limit.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetLimit(cylimit, value)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_limit, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15085, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaLimit)__Pyx_PyLong_As_enum__cudaLimit(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15085, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cylimit = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":15086
 *     """
 *     cdef cyruntime.cudaLimit cylimit = limit.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetLimit(cylimit, value)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15087
 *     cdef cyruntime.cudaLimit cylimit = limit.value
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetLimit(cylimit, value)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetLimit(__pyx_v_cylimit, __pyx_v_value); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15087, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":15086
 *     """
 *     cdef cyruntime.cudaLimit cylimit = limit.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetLimit(cylimit, value)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15088
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetLimit(cylimit, value)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 15088, __pyx_L1_error);
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":14990
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value):
 *     """ Set resource limits.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceSetLimit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15090
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetLimit(limit not None : cudaLimit):
 *     """ Return resource limits.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaDeviceGetLimit(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_7runtime_6cudaDeviceGetLimit, "cudaDeviceGetLimit(limit: cudaLimit)\n\nReturn resource limits.\n\nReturns in `*pValue` the current size of `limit`. The following\n:py:obj:`~.cudaLimit` values are supported.\n\n- :py:obj:`~.cudaLimitStackSize` is the stack size in bytes of each GPU\n  thread.\n\n- :py:obj:`~.cudaLimitPrintfFifoSize` is the size in bytes of the\n  shared FIFO used by the :py:obj:`~.printf()` device system call.\n\n- :py:obj:`~.cudaLimitMallocHeapSize` is the size in bytes of the heap\n  used by the :py:obj:`~.malloc()` and :py:obj:`~.free()` device system\n  calls.\n\n- :py:obj:`~.cudaLimitDevRuntimeSyncDepth` is the maximum grid depth at\n  which a thread can isssue the device runtime call\n  :py:obj:`~.cudaDeviceSynchronize()` to wait on child grid launches to\n  complete. This functionality is removed for devices of compute\n  capability >= 9.0, and hence will return error\n  :py:obj:`~.cudaErrorUnsupportedLimit` on such devices.\n\n- :py:obj:`~.cudaLimitDevRuntimePendingLaunchCount` is the maximum\n  number of outstanding device runtime launches.\n\n- :py:obj:`~.cudaLimitMaxL2FetchGranularity` is the L2 cache fetch\n  granularity.\n\n- :py:obj:`~.cudaLimitPersistingL2CacheSize` is the persisting L2 cache\n  size in bytes.\n\nParameters\n----------\nlimit : :py:obj:`~.cudaLimit`\n    Limit to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorUnsupportedLimit`, :py:obj:`~.cudaErrorInvalidValue`\npValue : int\n    Returned size of the limit\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceSetLimit`, :py:obj:`~.cuCtxGetLimit`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_7cudaDeviceGetLimit = {"cudaDeviceGetLimit", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_7cudaDeviceGetLimit, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6cudaDeviceGetLimit};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_7cudaDeviceGetLimit(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_limit = 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("cudaDeviceGetLimit (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_limit,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, 15090, __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, 15090, __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, "cudaDeviceGetLimit", 0) < (0)) __PYX_ERR(0, 15090, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetLimit", 1, 1, 1, i); __PYX_ERR(0, 15090, __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, 15090, __pyx_L3_error)
    }
    __pyx_v_limit = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetLimit", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15090, __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.runtime.cudaDeviceGetLimit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_limit) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "limit"); __PYX_ERR(0, 15091, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_6cudaDeviceGetLimit(__pyx_self, __pyx_v_limit);

  /* 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_7runtime_6cudaDeviceGetLimit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_limit) {
  size_t __pyx_v_pValue;
  enum cudaLimit __pyx_v_cylimit;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaLimit __pyx_t_2;
  cudaError_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetLimit", 0);

  /* "cuda/bindings/runtime.pyx":15139
 *     :py:obj:`~.cudaDeviceSetLimit`, :py:obj:`~.cuCtxGetLimit`
 *     """
 *     cdef size_t pValue = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaLimit cylimit = limit.value
 *     with nogil:
*/
  __pyx_v_pValue = 0;

  /* "cuda/bindings/runtime.pyx":15140
 *     """
 *     cdef size_t pValue = 0
 *     cdef cyruntime.cudaLimit cylimit = limit.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetLimit(&pValue, cylimit)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_limit, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaLimit)__Pyx_PyLong_As_enum__cudaLimit(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cylimit = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":15141
 *     cdef size_t pValue = 0
 *     cdef cyruntime.cudaLimit cylimit = limit.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetLimit(&pValue, cylimit)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15142
 *     cdef cyruntime.cudaLimit cylimit = limit.value
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetLimit(&pValue, cylimit)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetLimit((&__pyx_v_pValue), __pyx_v_cylimit); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15142, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":15141
 *     cdef size_t pValue = 0
 *     cdef cyruntime.cudaLimit cylimit = limit.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetLimit(&pValue, cylimit)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15143
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetLimit(&pValue, cylimit)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pValue)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":15144
 *         err = cyruntime.cudaDeviceGetLimit(&pValue, cylimit)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pValue)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 15144, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 15144, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15143
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetLimit(&pValue, cylimit)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pValue)
*/
  }

  /* "cuda/bindings/runtime.pyx":15145
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pValue)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyLong_FromSize_t(__pyx_v_pValue); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 15145, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 15145, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15090
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetLimit(limit not None : cudaLimit):
 *     """ Return resource limits.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetLimit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15147
 *     return (_dict_cudaError_t[err], pValue)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetTexture1DLinearMaxWidth(fmtDesc : Optional[cudaChannelFormatDesc], int device):
 *     """ Returns the maximum number of elements allocatable in a 1D linear texture for a given element size.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9cudaDeviceGetTexture1DLinearMaxWidth(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_7runtime_8cudaDeviceGetTexture1DLinearMaxWidth, "cudaDeviceGetTexture1DLinearMaxWidth(cudaChannelFormatDesc fmtDesc: Optional[cudaChannelFormatDesc], int device)\n\nReturns the maximum number of elements allocatable in a 1D linear texture for a given element size.\n\nReturns in `maxWidthInElements` the maximum number of elements\nallocatable in a 1D linear texture for given format descriptor\n`fmtDesc`.\n\nParameters\n----------\nfmtDesc : :py:obj:`~.cudaChannelFormatDesc`\n    Texture format description.\nNone : int\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorUnsupportedLimit`, :py:obj:`~.cudaErrorInvalidValue`\nmaxWidthInElements : int\n    Returns maximum number of texture elements allocatable for given\n    `fmtDesc`.\n\nSee Also\n--------\n:py:obj:`~.cuDeviceGetTexture1DLinearMaxWidth`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_9cudaDeviceGetTexture1DLinearMaxWidth = {"cudaDeviceGetTexture1DLinearMaxWidth", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9cudaDeviceGetTexture1DLinearMaxWidth, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_8cudaDeviceGetTexture1DLinearMaxWidth};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_9cudaDeviceGetTexture1DLinearMaxWidth(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_fmtDesc = 0;
  int __pyx_v_device;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetTexture1DLinearMaxWidth (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_fmtDesc,&__pyx_mstate_global->__pyx_n_u_device_2,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, 15147, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15147, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 15147, __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, "cudaDeviceGetTexture1DLinearMaxWidth", 0) < (0)) __PYX_ERR(0, 15147, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetTexture1DLinearMaxWidth", 1, 2, 2, i); __PYX_ERR(0, 15147, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 15147, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15147, __pyx_L3_error)
    }
    __pyx_v_fmtDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)values[0]);
    __pyx_v_device = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15148, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetTexture1DLinearMaxWidth", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 15147, __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.runtime.cudaDeviceGetTexture1DLinearMaxWidth", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_fmtDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, 1, "fmtDesc", 0))) __PYX_ERR(0, 15148, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_8cudaDeviceGetTexture1DLinearMaxWidth(__pyx_self, __pyx_v_fmtDesc, __pyx_v_device);

  /* 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_7runtime_8cudaDeviceGetTexture1DLinearMaxWidth(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_fmtDesc, int __pyx_v_device) {
  size_t __pyx_v_maxWidthInElements;
  struct cudaChannelFormatDesc *__pyx_v_cyfmtDesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct cudaChannelFormatDesc *__pyx_t_1;
  int __pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetTexture1DLinearMaxWidth", 0);

  /* "cuda/bindings/runtime.pyx":15174
 *     :py:obj:`~.cuDeviceGetTexture1DLinearMaxWidth`
 *     """
 *     cdef size_t maxWidthInElements = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaChannelFormatDesc* cyfmtDesc_ptr = fmtDesc._pvt_ptr if fmtDesc is not None else NULL
 *     with nogil:
*/
  __pyx_v_maxWidthInElements = 0;

  /* "cuda/bindings/runtime.pyx":15175
 *     """
 *     cdef size_t maxWidthInElements = 0
 *     cdef cyruntime.cudaChannelFormatDesc* cyfmtDesc_ptr = fmtDesc._pvt_ptr if fmtDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cyfmtDesc_ptr, device)
*/
  __pyx_t_2 = (((PyObject *)__pyx_v_fmtDesc) != Py_None);
  if (__pyx_t_2) {
    __pyx_t_1 = __pyx_v_fmtDesc->_pvt_ptr;
  } else {
    __pyx_t_1 = NULL;
  }
  __pyx_v_cyfmtDesc_ptr = __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":15176
 *     cdef size_t maxWidthInElements = 0
 *     cdef cyruntime.cudaChannelFormatDesc* cyfmtDesc_ptr = fmtDesc._pvt_ptr if fmtDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cyfmtDesc_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15177
 *     cdef cyruntime.cudaChannelFormatDesc* cyfmtDesc_ptr = fmtDesc._pvt_ptr if fmtDesc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cyfmtDesc_ptr, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetTexture1DLinearMaxWidth((&__pyx_v_maxWidthInElements), __pyx_v_cyfmtDesc_ptr, __pyx_v_device); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15177, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":15176
 *     cdef size_t maxWidthInElements = 0
 *     cdef cyruntime.cudaChannelFormatDesc* cyfmtDesc_ptr = fmtDesc._pvt_ptr if fmtDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cyfmtDesc_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15178
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cyfmtDesc_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], maxWidthInElements)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":15179
 *         err = cyruntime.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cyfmtDesc_ptr, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], maxWidthInElements)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 15179, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 15179, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15178
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetTexture1DLinearMaxWidth(&maxWidthInElements, cyfmtDesc_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], maxWidthInElements)
*/
  }

  /* "cuda/bindings/runtime.pyx":15180
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], maxWidthInElements)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyLong_FromSize_t(__pyx_v_maxWidthInElements); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 15180, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 15180, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15147
 *     return (_dict_cudaError_t[err], pValue)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetTexture1DLinearMaxWidth(fmtDesc : Optional[cudaChannelFormatDesc], int device):
 *     """ Returns the maximum number of elements allocatable in a 1D linear texture for a given element size.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetTexture1DLinearMaxWidth", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15182
 *     return (_dict_cudaError_t[err], maxWidthInElements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetCacheConfig():
 *     """ Returns the preferred cache configuration for the current device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaDeviceGetCacheConfig(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_10cudaDeviceGetCacheConfig, "cudaDeviceGetCacheConfig()\n\nReturns the preferred cache configuration for the current device.\n\nOn devices where the L1 cache and shared memory use the same hardware\nresources, this returns through `pCacheConfig` the preferred cache\nconfiguration for the current device. This is only a preference. The\nruntime will use the requested configuration if possible, but it is\nfree to choose a different configuration if required to execute\nfunctions.\n\nThis will return a `pCacheConfig` of\n:py:obj:`~.cudaFuncCachePreferNone` on devices where the size of the L1\ncache and shared memory are fixed.\n\nThe supported cache configurations are:\n\n- :py:obj:`~.cudaFuncCachePreferNone`: no preference for shared memory\n  or L1 (default)\n\n- :py:obj:`~.cudaFuncCachePreferShared`: prefer larger shared memory\n  and smaller L1 cache\n\n- :py:obj:`~.cudaFuncCachePreferL1`: prefer larger L1 cache and smaller\n  shared memory\n\n- :py:obj:`~.cudaFuncCachePreferEqual`: prefer equal size L1 cache and\n  shared memory\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\npCacheConfig : :py:obj:`~.cudaFuncCache`\n    Returned cache configuration\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncSetCacheConfig (C++ API), :py:obj:`~.cuCtxGetCacheConfig`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_11cudaDeviceGetCacheConfig = {"cudaDeviceGetCacheConfig", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_11cudaDeviceGetCacheConfig, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_10cudaDeviceGetCacheConfig};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_11cudaDeviceGetCacheConfig(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetCacheConfig (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_10cudaDeviceGetCacheConfig(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_10cudaDeviceGetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self) {
  enum cudaFuncCache __pyx_v_pCacheConfig;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetCacheConfig", 0);

  /* "cuda/bindings/runtime.pyx":15223
 *     """
 *     cdef cyruntime.cudaFuncCache pCacheConfig
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetCacheConfig(&pCacheConfig)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15224
 *     cdef cyruntime.cudaFuncCache pCacheConfig
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetCacheConfig(&pCacheConfig)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetCacheConfig((&__pyx_v_pCacheConfig)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15224, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":15223
 *     """
 *     cdef cyruntime.cudaFuncCache pCacheConfig
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetCacheConfig(&pCacheConfig)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15225
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetCacheConfig(&pCacheConfig)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaFuncCache(pCacheConfig))
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":15226
 *         err = cyruntime.cudaDeviceGetCacheConfig(&pCacheConfig)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cudaFuncCache(pCacheConfig))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 15226, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 15226, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15225
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetCacheConfig(&pCacheConfig)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaFuncCache(pCacheConfig))
*/
  }

  /* "cuda/bindings/runtime.pyx":15227
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaFuncCache(pCacheConfig))             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cudaFuncCache); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaFuncCache(__pyx_v_pCacheConfig); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 15227, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 15227, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15182
 *     return (_dict_cudaError_t[err], maxWidthInElements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetCacheConfig():
 *     """ Returns the preferred cache configuration for the current device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15229
 *     return (_dict_cudaError_t[err], cudaFuncCache(pCacheConfig))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetStreamPriorityRange():
 *     """ Returns numerical values that correspond to the least and greatest stream priorities.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaDeviceGetStreamPriorityRange(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_12cudaDeviceGetStreamPriorityRange, "cudaDeviceGetStreamPriorityRange()\n\nReturns numerical values that correspond to the least and greatest stream priorities.\n\nReturns in `*leastPriority` and `*greatestPriority` the numerical\nvalues that correspond to the least and greatest stream priorities\nrespectively. Stream priorities follow a convention where lower numbers\nimply greater priorities. The range of meaningful stream priorities is\ngiven by [`*greatestPriority`, `*leastPriority`]. If the user attempts\nto create a stream with a priority value that is outside the the\nmeaningful range as specified by this API, the priority is\nautomatically clamped down or up to either `*leastPriority` or\n`*greatestPriority` respectively. See\n:py:obj:`~.cudaStreamCreateWithPriority` for details on creating a\npriority stream. A NULL may be passed in for `*leastPriority` or\n`*greatestPriority` if the value is not desired.\n\nThis function will return '0' in both `*leastPriority` and\n`*greatestPriority` if the current context's device does not support\nstream priorities (see :py:obj:`~.cudaDeviceGetAttribute`).\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\nleastPriority : int\n    Pointer to an int in which the numerical value for least stream\n    priority is returned\ngreatestPriority : int\n    Pointer to an int in which the numerical value for greatest stream\n    priority is returned\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cuCtxGetStreamPriorityRange`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_13cudaDeviceGetStreamPriorityRange = {"cudaDeviceGetStreamPriorityRange", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_13cudaDeviceGetStreamPriorityRange, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_12cudaDeviceGetStreamPriorityRange};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_13cudaDeviceGetStreamPriorityRange(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetStreamPriorityRange (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_12cudaDeviceGetStreamPriorityRange(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_12cudaDeviceGetStreamPriorityRange(CYTHON_UNUSED PyObject *__pyx_self) {
  int __pyx_v_leastPriority;
  int __pyx_v_greatestPriority;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetStreamPriorityRange", 0);

  /* "cuda/bindings/runtime.pyx":15265
 *     :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cuCtxGetStreamPriorityRange`
 *     """
 *     cdef int leastPriority = 0             # <<<<<<<<<<<<<<
 *     cdef int greatestPriority = 0
 *     with nogil:
*/
  __pyx_v_leastPriority = 0;

  /* "cuda/bindings/runtime.pyx":15266
 *     """
 *     cdef int leastPriority = 0
 *     cdef int greatestPriority = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority)
*/
  __pyx_v_greatestPriority = 0;

  /* "cuda/bindings/runtime.pyx":15267
 *     cdef int leastPriority = 0
 *     cdef int greatestPriority = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15268
 *     cdef int greatestPriority = 0
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetStreamPriorityRange((&__pyx_v_leastPriority), (&__pyx_v_greatestPriority)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15268, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":15267
 *     cdef int leastPriority = 0
 *     cdef int greatestPriority = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15269
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], leastPriority, greatestPriority)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":15270
 *         err = cyruntime.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], leastPriority, greatestPriority)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15270, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15270, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15270, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15270, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 15270, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 15270, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None) != (0)) __PYX_ERR(0, 15270, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15269
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], leastPriority, greatestPriority)
*/
  }

  /* "cuda/bindings/runtime.pyx":15271
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], leastPriority, greatestPriority)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_leastPriority); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_greatestPriority); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 15271, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 15271, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4) != (0)) __PYX_ERR(0, 15271, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15229
 *     return (_dict_cudaError_t[err], cudaFuncCache(pCacheConfig))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetStreamPriorityRange():
 *     """ Returns numerical values that correspond to the least and greatest stream priorities.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetStreamPriorityRange", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15273
 *     return (_dict_cudaError_t[err], leastPriority, greatestPriority)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetCacheConfig(cacheConfig not None : cudaFuncCache):
 *     """ Sets the preferred cache configuration for the current device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaDeviceSetCacheConfig(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_7runtime_14cudaDeviceSetCacheConfig, "cudaDeviceSetCacheConfig(cacheConfig: cudaFuncCache)\n\nSets the preferred cache configuration for the current device.\n\nOn devices where the L1 cache and shared memory use the same hardware\nresources, this sets through `cacheConfig` the preferred cache\nconfiguration for the current device. This is only a preference. The\nruntime will use the requested configuration if possible, but it is\nfree to choose a different configuration if required to execute the\nfunction. Any function preference set via\n:py:obj:`~.cudaFuncSetCacheConfig (C API)` or cudaFuncSetCacheConfig\n(C++ API) will be preferred over this device-wide setting. Setting the\ndevice-wide cache configuration to :py:obj:`~.cudaFuncCachePreferNone`\nwill cause subsequent kernel launches to prefer to not change the cache\nconfiguration unless required to launch the kernel.\n\nThis setting does nothing on devices where the size of the L1 cache and\nshared memory are fixed.\n\nLaunching a kernel with a different preference than the most recent\npreference setting may insert a device-side synchronization point.\n\nThe supported cache configurations are:\n\n- :py:obj:`~.cudaFuncCachePreferNone`: no preference for shared memory\n  or L1 (default)\n\n- :py:obj:`~.cudaFuncCachePreferShared`: prefer larger shared memory\n  and smaller L1 cache\n\n- :py:obj:`~.cudaFuncCachePreferL1`: prefer larger L1 cache and smaller\n  shared memory\n\n- :py:obj:`~.cudaFuncCachePreferEqual`: prefer equal size L1 cache and\n  shared memory\n\nParameters\n----------\ncacheConfig : :py:obj:`~.cudaFuncCache`\n    Requested cache configuration\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncSetCacheConfig (C++ API), :py:obj:`~.cuCtxSetCacheConfig`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_15cudaDeviceSetCacheConfig = {"cudaDeviceSetCacheConfig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaDeviceSetCacheConfig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaDeviceSetCacheConfig};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_15cudaDeviceSetCacheConfig(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_cacheConfig = 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("cudaDeviceSetCacheConfig (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_cacheConfig,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, 15273, __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, 15273, __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, "cudaDeviceSetCacheConfig", 0) < (0)) __PYX_ERR(0, 15273, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetCacheConfig", 1, 1, 1, i); __PYX_ERR(0, 15273, __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, 15273, __pyx_L3_error)
    }
    __pyx_v_cacheConfig = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceSetCacheConfig", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15273, __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.runtime.cudaDeviceSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_cacheConfig) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "cacheConfig"); __PYX_ERR(0, 15274, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_14cudaDeviceSetCacheConfig(__pyx_self, __pyx_v_cacheConfig);

  /* 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_7runtime_14cudaDeviceSetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cacheConfig) {
  enum cudaFuncCache __pyx_v_cycacheConfig;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaFuncCache __pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceSetCacheConfig", 0);

  /* "cuda/bindings/runtime.pyx":15323
 *     :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncSetCacheConfig (C++ API), :py:obj:`~.cuCtxSetCacheConfig`
 *     """
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetCacheConfig(cycacheConfig)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cacheConfig, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaFuncCache)__Pyx_PyLong_As_enum__cudaFuncCache(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15323, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cycacheConfig = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":15324
 *     """
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetCacheConfig(cycacheConfig)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15325
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetCacheConfig(cycacheConfig)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetCacheConfig(__pyx_v_cycacheConfig); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15325, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":15324
 *     """
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetCacheConfig(cycacheConfig)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15326
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetCacheConfig(cycacheConfig)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 15326, __pyx_L1_error);
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15273
 *     return (_dict_cudaError_t[err], leastPriority, greatestPriority)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetCacheConfig(cacheConfig not None : cudaFuncCache):
 *     """ Sets the preferred cache configuration for the current device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15328
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetByPCIBusId(char* pciBusId):
 *     """ Returns a handle to a compute device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDeviceGetByPCIBusId(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_7runtime_16cudaDeviceGetByPCIBusId, "cudaDeviceGetByPCIBusId(char *pciBusId)\n\nReturns a handle to a compute device.\n\nReturns in `*device` a device ordinal given a PCI bus ID string.\n\nwhere `domain`, `bus`, `device`, and `function` are all hexadecimal\nvalues\n\nParameters\n----------\npciBusId : bytes\n    String in one of the following forms:\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\ndevice : int\n    Returned device ordinal\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetPCIBusId`, :py:obj:`~.cuDeviceGetByPCIBusId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_17cudaDeviceGetByPCIBusId = {"cudaDeviceGetByPCIBusId", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaDeviceGetByPCIBusId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaDeviceGetByPCIBusId};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_17cudaDeviceGetByPCIBusId(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
) {
  char *__pyx_v_pciBusId;
  #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("cudaDeviceGetByPCIBusId (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_pciBusId,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, 15328, __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, 15328, __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, "cudaDeviceGetByPCIBusId", 0) < (0)) __PYX_ERR(0, 15328, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetByPCIBusId", 1, 1, 1, i); __PYX_ERR(0, 15328, __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, 15328, __pyx_L3_error)
    }
    __pyx_v_pciBusId = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_pciBusId) && PyErr_Occurred())) __PYX_ERR(0, 15329, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetByPCIBusId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15328, __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.runtime.cudaDeviceGetByPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_16cudaDeviceGetByPCIBusId(__pyx_self, __pyx_v_pciBusId);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaDeviceGetByPCIBusId(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_pciBusId) {
  int __pyx_v_device;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetByPCIBusId", 0);

  /* "cuda/bindings/runtime.pyx":15353
 *     :py:obj:`~.cudaDeviceGetPCIBusId`, :py:obj:`~.cuDeviceGetByPCIBusId`
 *     """
 *     cdef int device = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetByPCIBusId(&device, pciBusId)
*/
  __pyx_v_device = 0;

  /* "cuda/bindings/runtime.pyx":15354
 *     """
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetByPCIBusId(&device, pciBusId)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15355
 *     cdef int device = 0
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetByPCIBusId(&device, pciBusId)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetByPCIBusId((&__pyx_v_device), __pyx_v_pciBusId); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15355, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":15354
 *     """
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetByPCIBusId(&device, pciBusId)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15356
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetByPCIBusId(&device, pciBusId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":15357
 *         err = cyruntime.cudaDeviceGetByPCIBusId(&device, pciBusId)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], device)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 15357, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 15357, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15356
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetByPCIBusId(&device, pciBusId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  }

  /* "cuda/bindings/runtime.pyx":15358
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_device); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 15358, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 15358, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15328
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetByPCIBusId(char* pciBusId):
 *     """ Returns a handle to a compute device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetByPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15360
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetPCIBusId(int length, int device):
 *     """ Returns a PCI Bus Id string for the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaDeviceGetPCIBusId(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_7runtime_18cudaDeviceGetPCIBusId, "cudaDeviceGetPCIBusId(int length, int device)\n\nReturns a PCI Bus Id string for the device.\n\nReturns an ASCII string identifying the device `dev` in the NULL-\nterminated string pointed to by `pciBusId`. `length` specifies the\nmaximum length of the string that may be returned.\n\nwhere `domain`, `bus`, `device`, and `function` are all hexadecimal\nvalues. pciBusId should be large enough to store 13 characters\nincluding the NULL-terminator.\n\nParameters\n----------\nlength : int\n    Maximum length of string to store in `name`\ndevice : int\n    Device to get identifier string for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\npciBusId : bytes\n    Returned identifier string for the device in the following format\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetByPCIBusId`, :py:obj:`~.cuDeviceGetPCIBusId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_19cudaDeviceGetPCIBusId = {"cudaDeviceGetPCIBusId", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaDeviceGetPCIBusId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaDeviceGetPCIBusId};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_19cudaDeviceGetPCIBusId(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
) {
  int __pyx_v_length;
  int __pyx_v_device;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetPCIBusId (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_length,&__pyx_mstate_global->__pyx_n_u_device_2,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, 15360, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15360, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 15360, __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, "cudaDeviceGetPCIBusId", 0) < (0)) __PYX_ERR(0, 15360, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetPCIBusId", 1, 2, 2, i); __PYX_ERR(0, 15360, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 15360, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15360, __pyx_L3_error)
    }
    __pyx_v_length = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_length == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15361, __pyx_L3_error)
    __pyx_v_device = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15361, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetPCIBusId", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 15360, __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.runtime.cudaDeviceGetPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_18cudaDeviceGetPCIBusId(__pyx_self, __pyx_v_length, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_18cudaDeviceGetPCIBusId(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_length, int __pyx_v_device) {
  PyObject *__pyx_v_pypciBusId = NULL;
  char *__pyx_v_pciBusId;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char *__pyx_t_2;
  cudaError_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetPCIBusId", 0);

  /* "cuda/bindings/runtime.pyx":15390
 *     :py:obj:`~.cudaDeviceGetByPCIBusId`, :py:obj:`~.cuDeviceGetPCIBusId`
 *     """
 *     pypciBusId = b" " * length             # <<<<<<<<<<<<<<
 *     cdef char* pciBusId = pypciBusId
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PySequence_Multiply(__pyx_mstate_global->__pyx_kp_b__5, __pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_pypciBusId = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":15391
 *     """
 *     pypciBusId = b" " * length
 *     cdef char* pciBusId = pypciBusId             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetPCIBusId(pciBusId, length, device)
*/
  __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_pypciBusId); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 15391, __pyx_L1_error)
  __pyx_v_pciBusId = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":15392
 *     pypciBusId = b" " * length
 *     cdef char* pciBusId = pypciBusId
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetPCIBusId(pciBusId, length, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15393
 *     cdef char* pciBusId = pypciBusId
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetPCIBusId(pciBusId, length, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetPCIBusId(__pyx_v_pciBusId, __pyx_v_length, __pyx_v_device); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15393, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":15392
 *     pypciBusId = b" " * length
 *     cdef char* pciBusId = pypciBusId
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetPCIBusId(pciBusId, length, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15394
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetPCIBusId(pciBusId, length, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pypciBusId)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":15395
 *         err = cyruntime.cudaDeviceGetPCIBusId(pciBusId, length, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pypciBusId)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 15395, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 15395, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15394
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetPCIBusId(pciBusId, length, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pypciBusId)
*/
  }

  /* "cuda/bindings/runtime.pyx":15396
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pypciBusId)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 15396, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pypciBusId);
  __Pyx_GIVEREF(__pyx_v_pypciBusId);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_pypciBusId) != (0)) __PYX_ERR(0, 15396, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15360
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetPCIBusId(int length, int device):
 *     """ Returns a PCI Bus Id string for the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetPCIBusId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pypciBusId);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15398
 *     return (_dict_cudaError_t[err], pypciBusId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcGetEventHandle(event):
 *     """ Gets an interprocess handle for a previously allocated event.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcGetEventHandle(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_7runtime_20cudaIpcGetEventHandle, "cudaIpcGetEventHandle(event)\n\nGets an interprocess handle for a previously allocated event.\n\nTakes as input a previously allocated event. This event must have been\ncreated with the :py:obj:`~.cudaEventInterprocess` and\n:py:obj:`~.cudaEventDisableTiming` flags set. This opaque handle may be\ncopied into other processes and opened with\n:py:obj:`~.cudaIpcOpenEventHandle` to allow efficient hardware\nsynchronization between GPU work in different processes.\n\nAfter the event has been been opened in the importing process,\n:py:obj:`~.cudaEventRecord`, :py:obj:`~.cudaEventSynchronize`,\n:py:obj:`~.cudaStreamWaitEvent` and :py:obj:`~.cudaEventQuery` may be\nused in either process. Performing operations on the imported event\nafter the exported event has been freed with\n:py:obj:`~.cudaEventDestroy` will result in undefined behavior.\n\nIPC functionality is restricted to devices with support for unified\naddressing on Linux and Windows operating systems. IPC functionality on\nWindows is supported for compatibility purposes but not recommended as\nit comes with performance cost. Users can test their device for IPC\nfunctionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n:py:obj:`~.cudaDevAttrIpcEventSupport`\n\nParameters\n----------\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event allocated with :py:obj:`~.cudaEventInterprocess` and\n    :py:obj:`~.cudaEventDisableTiming` flags.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\nhandle : :py:obj:`~.cudaIpcEventHandle_t`\n    Pointer to a user allocated cudaIpcEventHandle in which to return\n    the opaque event handle\n\nSee Also\n--------\n:py:obj:`~.cudaEventCreate`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaStreamWait""Event`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cudaIpcCloseMemHandle`, :py:obj:`~.cuIpcGetEventHandle`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_21cudaIpcGetEventHandle = {"cudaIpcGetEventHandle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcGetEventHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaIpcGetEventHandle};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcGetEventHandle(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_event = 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("cudaIpcGetEventHandle (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_event_2,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, 15398, __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, 15398, __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, "cudaIpcGetEventHandle", 0) < (0)) __PYX_ERR(0, 15398, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaIpcGetEventHandle", 1, 1, 1, i); __PYX_ERR(0, 15398, __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, 15398, __pyx_L3_error)
    }
    __pyx_v_event = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaIpcGetEventHandle", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15398, __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.runtime.cudaIpcGetEventHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_20cudaIpcGetEventHandle(__pyx_self, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaIpcGetEventHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t *__pyx_v_handle = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaIpcGetEventHandle", 0);

  /* "cuda/bindings/runtime.pyx":15442
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15443
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":15442
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":15444
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15445
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":15444
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":15447
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15447, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":15448
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15448, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":15449
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaIpcGetEventHandle(<cyruntime.cudaIpcEventHandle_t*>handle._pvt_ptr, cyevent)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15449, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15450
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcGetEventHandle(<cyruntime.cudaIpcEventHandle_t*>handle._pvt_ptr, cyevent)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15451
 *     cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t()
 *     with nogil:
 *         err = cyruntime.cudaIpcGetEventHandle(<cyruntime.cudaIpcEventHandle_t*>handle._pvt_ptr, cyevent)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaIpcGetEventHandle(((cudaIpcEventHandle_t *)__pyx_v_handle->__pyx_base._pvt_ptr), __pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15451, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":15450
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cudaIpcEventHandle_t handle = cudaIpcEventHandle_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcGetEventHandle(<cyruntime.cudaIpcEventHandle_t*>handle._pvt_ptr, cyevent)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15452
 *     with nogil:
 *         err = cyruntime.cudaIpcGetEventHandle(<cyruntime.cudaIpcEventHandle_t*>handle._pvt_ptr, cyevent)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], handle)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15453
 *         err = cyruntime.cudaIpcGetEventHandle(<cyruntime.cudaIpcEventHandle_t*>handle._pvt_ptr, cyevent)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], handle)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 15453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 15453, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 15453, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15452
 *     with nogil:
 *         err = cyruntime.cudaIpcGetEventHandle(<cyruntime.cudaIpcEventHandle_t*>handle._pvt_ptr, cyevent)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], handle)
*/
  }

  /* "cuda/bindings/runtime.pyx":15454
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], handle)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 15454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 15454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 15454, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_handle);
  __Pyx_GIVEREF((PyObject *)__pyx_v_handle);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_handle)) != (0)) __PYX_ERR(0, 15454, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15398
 *     return (_dict_cudaError_t[err], pypciBusId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcGetEventHandle(event):
 *     """ Gets an interprocess handle for a previously allocated event.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcGetEventHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF((PyObject *)__pyx_v_handle);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15456
 *     return (_dict_cudaError_t[err], handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcOpenEventHandle(handle not None : cudaIpcEventHandle_t):
 *     """ Opens an interprocess event handle for use in the current process.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaIpcOpenEventHandle(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_7runtime_22cudaIpcOpenEventHandle, "cudaIpcOpenEventHandle(cudaIpcEventHandle_t handle: cudaIpcEventHandle_t)\n\nOpens an interprocess event handle for use in the current process.\n\nOpens an interprocess event handle exported from another process with\n:py:obj:`~.cudaIpcGetEventHandle`. This function returns a\n:py:obj:`~.cudaEvent_t` that behaves like a locally created event with\nthe :py:obj:`~.cudaEventDisableTiming` flag specified. This event must\nbe freed with :py:obj:`~.cudaEventDestroy`.\n\nPerforming operations on the imported event after the exported event\nhas been freed with :py:obj:`~.cudaEventDestroy` will result in\nundefined behavior.\n\nIPC functionality is restricted to devices with support for unified\naddressing on Linux and Windows operating systems. IPC functionality on\nWindows is supported for compatibility purposes but not recommended as\nit comes with performance cost. Users can test their device for IPC\nfunctionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n:py:obj:`~.cudaDevAttrIpcEventSupport`\n\nParameters\n----------\nhandle : :py:obj:`~.cudaIpcEventHandle_t`\n    Interprocess handle to open\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorDeviceUninitialized`\nevent : :py:obj:`~.cudaEvent_t`\n    Returns the imported event\n\nSee Also\n--------\n:py:obj:`~.cudaEventCreate`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cudaIpcCloseMemHandle`, :py:obj:`~.cuIpcOpenEventHandle`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_23cudaIpcOpenEventHandle = {"cudaIpcOpenEventHandle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaIpcOpenEventHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaIpcOpenEventHandle};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_23cudaIpcOpenEventHandle(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t *__pyx_v_handle = 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("cudaIpcOpenEventHandle (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_handle_2,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, 15456, __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, 15456, __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, "cudaIpcOpenEventHandle", 0) < (0)) __PYX_ERR(0, 15456, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaIpcOpenEventHandle", 1, 1, 1, i); __PYX_ERR(0, 15456, __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, 15456, __pyx_L3_error)
    }
    __pyx_v_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaIpcOpenEventHandle", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15456, __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.runtime.cudaIpcOpenEventHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handle), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t, 0, "handle", 0))) __PYX_ERR(0, 15457, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_22cudaIpcOpenEventHandle(__pyx_self, __pyx_v_handle);

  /* 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_7runtime_22cudaIpcOpenEventHandle(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t *__pyx_v_handle) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_event = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaIpcOpenEventHandle", 0);

  /* "cuda/bindings/runtime.pyx":15493
 *     :py:obj:`~.cudaEventCreate`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cudaIpcCloseMemHandle`, :py:obj:`~.cuIpcOpenEventHandle`
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaIpcOpenEventHandle(<cyruntime.cudaEvent_t*>event._pvt_ptr, handle._pvt_ptr[0])
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15493, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":15494
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcOpenEventHandle(<cyruntime.cudaEvent_t*>event._pvt_ptr, handle._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15495
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:
 *         err = cyruntime.cudaIpcOpenEventHandle(<cyruntime.cudaEvent_t*>event._pvt_ptr, handle._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaIpcOpenEventHandle(((cudaEvent_t *)__pyx_v_event->__pyx_base._pvt_ptr), (__pyx_v_handle->__pyx_base._pvt_ptr[0])); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15495, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":15494
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcOpenEventHandle(<cyruntime.cudaEvent_t*>event._pvt_ptr, handle._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15496
 *     with nogil:
 *         err = cyruntime.cudaIpcOpenEventHandle(<cyruntime.cudaEvent_t*>event._pvt_ptr, handle._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":15497
 *         err = cyruntime.cudaIpcOpenEventHandle(<cyruntime.cudaEvent_t*>event._pvt_ptr, handle._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], event)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15497, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15497, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15497, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15497, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 15497, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 15497, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15496
 *     with nogil:
 *         err = cyruntime.cudaIpcOpenEventHandle(<cyruntime.cudaEvent_t*>event._pvt_ptr, handle._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)
*/
  }

  /* "cuda/bindings/runtime.pyx":15498
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15498, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15498, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15498, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15498, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 15498, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_event);
  __Pyx_GIVEREF((PyObject *)__pyx_v_event);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_event)) != (0)) __PYX_ERR(0, 15498, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15456
 *     return (_dict_cudaError_t[err], handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcOpenEventHandle(handle not None : cudaIpcEventHandle_t):
 *     """ Opens an interprocess event handle for use in the current process.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcOpenEventHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_event);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15500
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcGetMemHandle(devPtr):
 *     """ Gets an interprocess memory handle for an existing device memory allocation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaIpcGetMemHandle(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_7runtime_24cudaIpcGetMemHandle, "cudaIpcGetMemHandle(devPtr)\n\nGets an interprocess memory handle for an existing device memory allocation.\n\nTakes a pointer to the base of an existing device memory allocation\ncreated with :py:obj:`~.cudaMalloc` and exports it for use in another\nprocess. This is a lightweight operation and may be called multiple\ntimes on an allocation without adverse effects.\n\nIf a region of memory is freed with :py:obj:`~.cudaFree` and a\nsubsequent call to :py:obj:`~.cudaMalloc` returns memory with the same\ndevice address, :py:obj:`~.cudaIpcGetMemHandle` will return a unique\nhandle for the new memory.\n\nIPC functionality is restricted to devices with support for unified\naddressing on Linux and Windows operating systems. IPC functionality on\nWindows is supported for compatibility purposes but not recommended as\nit comes with performance cost. Users can test their device for IPC\nfunctionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n:py:obj:`~.cudaDevAttrIpcEventSupport`\n\nParameters\n----------\ndevPtr : Any\n    Base pointer to previously allocated device memory\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\nhandle : :py:obj:`~.cudaIpcMemHandle_t`\n    Pointer to user allocated :py:obj:`~.cudaIpcMemHandle` to return\n    the handle in.\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cudaIpcCloseMemHandle`, :py:obj:`~.cuIpcGetMemHandle`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaIpcGetMemHandle = {"cudaIpcGetMemHandle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaIpcGetMemHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaIpcGetMemHandle};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaIpcGetMemHandle(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_devPtr = 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("cudaIpcGetMemHandle (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_devPtr_2,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, 15500, __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, 15500, __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, "cudaIpcGetMemHandle", 0) < (0)) __PYX_ERR(0, 15500, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaIpcGetMemHandle", 1, 1, 1, i); __PYX_ERR(0, 15500, __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, 15500, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaIpcGetMemHandle", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15500, __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.runtime.cudaIpcGetMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_24cudaIpcGetMemHandle(__pyx_self, __pyx_v_devPtr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaIpcGetMemHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t *__pyx_v_handle = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaIpcGetMemHandle", 0);

  /* "cuda/bindings/runtime.pyx":15538
 *     :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cudaIpcCloseMemHandle`, :py:obj:`~.cuIpcGetMemHandle`
 *     """
 *     cdef cudaIpcMemHandle_t handle = cudaIpcMemHandle_t()             # <<<<<<<<<<<<<<
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15538, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":15539
 *     """
 *     cdef cudaIpcMemHandle_t handle = cudaIpcMemHandle_t()
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15539, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":15540
 *     cdef cudaIpcMemHandle_t handle = cudaIpcMemHandle_t()
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaIpcGetMemHandle(<cyruntime.cudaIpcMemHandle_t*>handle._pvt_ptr, cydevPtr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15540, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15540, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":15541
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcGetMemHandle(<cyruntime.cudaIpcMemHandle_t*>handle._pvt_ptr, cydevPtr_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15542
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaIpcGetMemHandle(<cyruntime.cudaIpcMemHandle_t*>handle._pvt_ptr, cydevPtr_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaIpcGetMemHandle(((cudaIpcMemHandle_t *)__pyx_v_handle->__pyx_base._pvt_ptr), __pyx_v_cydevPtr_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15542, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":15541
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcGetMemHandle(<cyruntime.cudaIpcMemHandle_t*>handle._pvt_ptr, cydevPtr_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15543
 *     with nogil:
 *         err = cyruntime.cudaIpcGetMemHandle(<cyruntime.cudaIpcMemHandle_t*>handle._pvt_ptr, cydevPtr_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], handle)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":15544
 *         err = cyruntime.cudaIpcGetMemHandle(<cyruntime.cudaIpcMemHandle_t*>handle._pvt_ptr, cydevPtr_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], handle)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 15544, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 15544, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15543
 *     with nogil:
 *         err = cyruntime.cudaIpcGetMemHandle(<cyruntime.cudaIpcMemHandle_t*>handle._pvt_ptr, cydevPtr_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], handle)
*/
  }

  /* "cuda/bindings/runtime.pyx":15545
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], handle)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 15545, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_handle);
  __Pyx_GIVEREF((PyObject *)__pyx_v_handle);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_handle)) != (0)) __PYX_ERR(0, 15545, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15500
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcGetMemHandle(devPtr):
 *     """ Gets an interprocess memory handle for an existing device memory allocation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcGetMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_handle);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15547
 *     return (_dict_cudaError_t[err], handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flags):
 *     """ Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaIpcOpenMemHandle(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_7runtime_26cudaIpcOpenMemHandle, "cudaIpcOpenMemHandle(cudaIpcMemHandle_t handle: cudaIpcMemHandle_t, unsigned int flags)\n\nOpens an interprocess memory handle exported from another process and returns a device pointer usable in the local process.\n\nMaps memory exported from another process with\n:py:obj:`~.cudaIpcGetMemHandle` into the current device address space.\nFor contexts on different devices :py:obj:`~.cudaIpcOpenMemHandle` can\nattempt to enable peer access between the devices as if the user called\n:py:obj:`~.cudaDeviceEnablePeerAccess`. This behavior is controlled by\nthe :py:obj:`~.cudaIpcMemLazyEnablePeerAccess` flag.\n:py:obj:`~.cudaDeviceCanAccessPeer` can determine if a mapping is\npossible.\n\n:py:obj:`~.cudaIpcOpenMemHandle` can open handles to devices that may\nnot be visible in the process calling the API.\n\nContexts that may open :py:obj:`~.cudaIpcMemHandles` are restricted in\nthe following way. :py:obj:`~.cudaIpcMemHandles` from each device in a\ngiven process may only be opened by one context per device per other\nprocess.\n\nIf the memory handle has already been opened by the current context,\nthe reference count on the handle is incremented by 1 and the existing\ndevice pointer is returned.\n\nMemory returned from :py:obj:`~.cudaIpcOpenMemHandle` must be freed\nwith :py:obj:`~.cudaIpcCloseMemHandle`.\n\nCalling :py:obj:`~.cudaFree` on an exported memory region before\ncalling :py:obj:`~.cudaIpcCloseMemHandle` in the importing context will\nresult in undefined behavior.\n\nIPC functionality is restricted to devices with support for unified\naddressing on Linux and Windows operating systems. IPC functionality on\nWindows is supported for compatibility purposes but not recommended as\nit comes with performance cost. Users can test their device for IPC\nfunctionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n:py:obj:`~.cudaDevAttrIpcEventSupport`\n\nParameters\n----------\nhandle : :py:obj:`~.cudaIpcMemHandle_t`\n    :py:obj:`~.cudaIpcMemHandle` to open\nflags : u""nsigned int\n    Flags for this operation. Must be specified as\n    :py:obj:`~.cudaIpcMemLazyEnablePeerAccess`\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorDeviceUninitialized`, :py:obj:`~.cudaErrorTooManyPeers`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\ndevPtr : Any\n    Returned device pointer\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcCloseMemHandle`, :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cuIpcOpenMemHandle`\n\nNotes\n-----\nNo guarantees are made about the address returned in `*devPtr`. \n In particular, multiple processes may not receive the same address for the same `handle`.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_27cudaIpcOpenMemHandle = {"cudaIpcOpenMemHandle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27cudaIpcOpenMemHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaIpcOpenMemHandle};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_27cudaIpcOpenMemHandle(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t *__pyx_v_handle = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaIpcOpenMemHandle (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_handle_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 15547, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15547, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 15547, __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, "cudaIpcOpenMemHandle", 0) < (0)) __PYX_ERR(0, 15547, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaIpcOpenMemHandle", 1, 2, 2, i); __PYX_ERR(0, 15547, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 15547, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15547, __pyx_L3_error)
    }
    __pyx_v_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t *)values[0]);
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15548, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaIpcOpenMemHandle", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 15547, __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.runtime.cudaIpcOpenMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handle), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t, 0, "handle", 0))) __PYX_ERR(0, 15548, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26cudaIpcOpenMemHandle(__pyx_self, __pyx_v_handle, __pyx_v_flags);

  /* 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_7runtime_26cudaIpcOpenMemHandle(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t *__pyx_v_handle, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_devPtr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaIpcOpenMemHandle", 0);

  /* "cuda/bindings/runtime.pyx":15610
 *      In particular, multiple processes may not receive the same address for the same `handle`.
 *     """
 *     cdef void_ptr devPtr = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaIpcOpenMemHandle(<void**>&devPtr, handle._pvt_ptr[0], flags)
*/
  __pyx_v_devPtr = 0;

  /* "cuda/bindings/runtime.pyx":15611
 *     """
 *     cdef void_ptr devPtr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcOpenMemHandle(<void**>&devPtr, handle._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15612
 *     cdef void_ptr devPtr = 0
 *     with nogil:
 *         err = cyruntime.cudaIpcOpenMemHandle(<void**>&devPtr, handle._pvt_ptr[0], flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaIpcOpenMemHandle(((void **)(&__pyx_v_devPtr)), (__pyx_v_handle->__pyx_base._pvt_ptr[0]), __pyx_v_flags); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15612, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":15611
 *     """
 *     cdef void_ptr devPtr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcOpenMemHandle(<void**>&devPtr, handle._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15613
 *     with nogil:
 *         err = cyruntime.cudaIpcOpenMemHandle(<void**>&devPtr, handle._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":15614
 *         err = cyruntime.cudaIpcOpenMemHandle(<void**>&devPtr, handle._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], devPtr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 15614, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 15614, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15613
 *     with nogil:
 *         err = cyruntime.cudaIpcOpenMemHandle(<void**>&devPtr, handle._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  }

  /* "cuda/bindings/runtime.pyx":15615
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 15615, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 15615, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15547
 *     return (_dict_cudaError_t[err], handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flags):
 *     """ Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcOpenMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15617
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcCloseMemHandle(devPtr):
 *     """ Attempts to close memory mapped with cudaIpcOpenMemHandle.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaIpcCloseMemHandle(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_7runtime_28cudaIpcCloseMemHandle, "cudaIpcCloseMemHandle(devPtr)\n\nAttempts to close memory mapped with cudaIpcOpenMemHandle.\n\nDecrements the reference count of the memory returnd by\n:py:obj:`~.cudaIpcOpenMemHandle` by 1. When the reference count reaches\n0, this API unmaps the memory. The original allocation in the exporting\nprocess as well as imported mappings in other processes will be\nunaffected.\n\nAny resources used to enable peer access will be freed if this is the\nlast mapping using them.\n\nIPC functionality is restricted to devices with support for unified\naddressing on Linux and Windows operating systems. IPC functionality on\nWindows is supported for compatibility purposes but not recommended as\nit comes with performance cost. Users can test their device for IPC\nfunctionality by calling :py:obj:`~.cudaDeviceGetAttribute` with\n:py:obj:`~.cudaDevAttrIpcEventSupport`\n\nParameters\n----------\ndevPtr : Any\n    Device pointer returned by :py:obj:`~.cudaIpcOpenMemHandle`\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMapBufferObjectFailed`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cuIpcCloseMemHandle`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_29cudaIpcCloseMemHandle = {"cudaIpcCloseMemHandle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaIpcCloseMemHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaIpcCloseMemHandle};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_29cudaIpcCloseMemHandle(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_devPtr = 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("cudaIpcCloseMemHandle (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_devPtr_2,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, 15617, __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, 15617, __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, "cudaIpcCloseMemHandle", 0) < (0)) __PYX_ERR(0, 15617, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaIpcCloseMemHandle", 1, 1, 1, i); __PYX_ERR(0, 15617, __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, 15617, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaIpcCloseMemHandle", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15617, __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.runtime.cudaIpcCloseMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_28cudaIpcCloseMemHandle(__pyx_self, __pyx_v_devPtr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_28cudaIpcCloseMemHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaIpcCloseMemHandle", 0);

  /* "cuda/bindings/runtime.pyx":15651
 *     :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaIpcGetEventHandle`, :py:obj:`~.cudaIpcOpenEventHandle`, :py:obj:`~.cudaIpcGetMemHandle`, :py:obj:`~.cudaIpcOpenMemHandle`, :py:obj:`~.cuIpcCloseMemHandle`
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15651, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":15652
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaIpcCloseMemHandle(cydevPtr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15652, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":15653
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcCloseMemHandle(cydevPtr_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15654
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaIpcCloseMemHandle(cydevPtr_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaIpcCloseMemHandle(__pyx_v_cydevPtr_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15654, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":15653
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaIpcCloseMemHandle(cydevPtr_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15655
 *     with nogil:
 *         err = cyruntime.cudaIpcCloseMemHandle(cydevPtr_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 15655, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15617
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcCloseMemHandle(devPtr):
 *     """ Attempts to close memory mapped with cudaIpcOpenMemHandle.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaIpcCloseMemHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15657
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceFlushGPUDirectRDMAWrites(target not None : cudaFlushGPUDirectRDMAWritesTarget, scope not None : cudaFlushGPUDirectRDMAWritesScope):
 *     """ Blocks until remote writes are visible to the specified scope.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDeviceFlushGPUDirectRDMAWrites(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_7runtime_30cudaDeviceFlushGPUDirectRDMAWrites, "cudaDeviceFlushGPUDirectRDMAWrites(target: cudaFlushGPUDirectRDMAWritesTarget, scope: cudaFlushGPUDirectRDMAWritesScope)\n\nBlocks until remote writes are visible to the specified scope.\n\nBlocks until remote writes to the target context via mappings created\nthrough GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see\nhttps://docs.nvidia.com/cuda/gpudirect-rdma for more information), are\nvisible to the specified scope.\n\nIf the scope equals or lies within the scope indicated by\n:py:obj:`~.cudaDevAttrGPUDirectRDMAWritesOrdering`, the call will be a\nno-op and can be safely omitted for performance. This can be determined\nby comparing the numerical values between the two enums, with smaller\nscopes having smaller values.\n\nUsers may query support for this API via\n:py:obj:`~.cudaDevAttrGPUDirectRDMAFlushWritesOptions`.\n\nParameters\n----------\ntarget : :py:obj:`~.cudaFlushGPUDirectRDMAWritesTarget`\n    The target of the operation, see cudaFlushGPUDirectRDMAWritesTarget\nscope : :py:obj:`~.cudaFlushGPUDirectRDMAWritesScope`\n    The scope of the operation, see cudaFlushGPUDirectRDMAWritesScope\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotSupported`,\n\nSee Also\n--------\n:py:obj:`~.cuFlushGPUDirectRDMAWrites`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_31cudaDeviceFlushGPUDirectRDMAWrites = {"cudaDeviceFlushGPUDirectRDMAWrites", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaDeviceFlushGPUDirectRDMAWrites, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_30cudaDeviceFlushGPUDirectRDMAWrites};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_31cudaDeviceFlushGPUDirectRDMAWrites(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_target = 0;
  PyObject *__pyx_v_scope = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceFlushGPUDirectRDMAWrites (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_target,&__pyx_mstate_global->__pyx_n_u_scope,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, 15657, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15657, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 15657, __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, "cudaDeviceFlushGPUDirectRDMAWrites", 0) < (0)) __PYX_ERR(0, 15657, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceFlushGPUDirectRDMAWrites", 1, 2, 2, i); __PYX_ERR(0, 15657, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 15657, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15657, __pyx_L3_error)
    }
    __pyx_v_target = values[0];
    __pyx_v_scope = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceFlushGPUDirectRDMAWrites", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 15657, __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.runtime.cudaDeviceFlushGPUDirectRDMAWrites", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_target) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "target"); __PYX_ERR(0, 15658, __pyx_L1_error)
  }
  if (unlikely(((PyObject *)__pyx_v_scope) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "scope"); __PYX_ERR(0, 15658, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_30cudaDeviceFlushGPUDirectRDMAWrites(__pyx_self, __pyx_v_target, __pyx_v_scope);

  /* 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_7runtime_30cudaDeviceFlushGPUDirectRDMAWrites(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_target, PyObject *__pyx_v_scope) {
  enum cudaFlushGPUDirectRDMAWritesTarget __pyx_v_cytarget;
  enum cudaFlushGPUDirectRDMAWritesScope __pyx_v_cyscope;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaFlushGPUDirectRDMAWritesTarget __pyx_t_2;
  enum cudaFlushGPUDirectRDMAWritesScope __pyx_t_3;
  cudaError_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceFlushGPUDirectRDMAWrites", 0);

  /* "cuda/bindings/runtime.pyx":15691
 *     :py:obj:`~.cuFlushGPUDirectRDMAWrites`
 *     """
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesTarget cytarget = target.value             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesScope cyscope = scope.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_target, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaFlushGPUDirectRDMAWritesTarget)__Pyx_PyLong_As_enum__cudaFlushGPUDirectRDMAWritesTarget(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15691, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cytarget = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":15692
 *     """
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesTarget cytarget = target.value
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesScope cyscope = scope.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceFlushGPUDirectRDMAWrites(cytarget, cyscope)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_scope, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = ((enum cudaFlushGPUDirectRDMAWritesScope)__Pyx_PyLong_As_enum__cudaFlushGPUDirectRDMAWritesScope(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15692, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyscope = __pyx_t_3;

  /* "cuda/bindings/runtime.pyx":15693
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesTarget cytarget = target.value
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesScope cyscope = scope.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceFlushGPUDirectRDMAWrites(cytarget, cyscope)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15694
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesScope cyscope = scope.value
 *     with nogil:
 *         err = cyruntime.cudaDeviceFlushGPUDirectRDMAWrites(cytarget, cyscope)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceFlushGPUDirectRDMAWrites(__pyx_v_cytarget, __pyx_v_cyscope); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15694, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":15693
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesTarget cytarget = target.value
 *     cdef cyruntime.cudaFlushGPUDirectRDMAWritesScope cyscope = scope.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceFlushGPUDirectRDMAWrites(cytarget, cyscope)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15695
 *     with nogil:
 *         err = cyruntime.cudaDeviceFlushGPUDirectRDMAWrites(cytarget, cyscope)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * ctypedef struct cudaAsyncCallbackData_st:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 15695, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15657
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceFlushGPUDirectRDMAWrites(target not None : cudaFlushGPUDirectRDMAWritesTarget, scope not None : cudaFlushGPUDirectRDMAWritesScope):
 *     """ Blocks until remote writes are visible to the specified scope.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceFlushGPUDirectRDMAWrites", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15703
 * ctypedef cudaAsyncCallbackData_st cudaAsyncCallbackData
 * 
 * @cython.show_performance_hints(False)             # <<<<<<<<<<<<<<
 * cdef void cudaAsyncNotificationCallbackWrapper(cyruntime.cudaAsyncNotificationInfo_t *info, void *data, cyruntime.cudaAsyncCallbackHandle_t handle) nogil:
 *     cdef cudaAsyncCallbackData *cbData = <cudaAsyncCallbackData *>data
*/

static void __pyx_f_4cuda_8bindings_7runtime_cudaAsyncNotificationCallbackWrapper(cudaAsyncNotificationInfo_t *__pyx_v_info, void *__pyx_v_data, cudaAsyncCallbackHandle_t __pyx_v_handle) {
  __pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData *__pyx_v_cbData;

  /* "cuda/bindings/runtime.pyx":15705
 * @cython.show_performance_hints(False)
 * cdef void cudaAsyncNotificationCallbackWrapper(cyruntime.cudaAsyncNotificationInfo_t *info, void *data, cyruntime.cudaAsyncCallbackHandle_t handle) nogil:
 *     cdef cudaAsyncCallbackData *cbData = <cudaAsyncCallbackData *>data             # <<<<<<<<<<<<<<
 *     with gil:
 *         cbData.callback(info, cbData.userData, handle)
*/
  __pyx_v_cbData = ((__pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData *)__pyx_v_data);

  /* "cuda/bindings/runtime.pyx":15706
 * cdef void cudaAsyncNotificationCallbackWrapper(cyruntime.cudaAsyncNotificationInfo_t *info, void *data, cyruntime.cudaAsyncCallbackHandle_t handle) nogil:
 *     cdef cudaAsyncCallbackData *cbData = <cudaAsyncCallbackData *>data
 *     with gil:             # <<<<<<<<<<<<<<
 *         cbData.callback(info, cbData.userData, handle)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15707
 *     cdef cudaAsyncCallbackData *cbData = <cudaAsyncCallbackData *>data
 *     with gil:
 *         cbData.callback(info, cbData.userData, handle)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
        __pyx_v_cbData->callback(__pyx_v_info, __pyx_v_cbData->userData, __pyx_v_handle);
      }

      /* "cuda/bindings/runtime.pyx":15706
 * cdef void cudaAsyncNotificationCallbackWrapper(cyruntime.cudaAsyncNotificationInfo_t *info, void *data, cyruntime.cudaAsyncCallbackHandle_t handle) nogil:
 *     cdef cudaAsyncCallbackData *cbData = <cudaAsyncCallbackData *>data
 *     with gil:             # <<<<<<<<<<<<<<
 *         cbData.callback(info, cbData.userData, handle)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15703
 * ctypedef cudaAsyncCallbackData_st cudaAsyncCallbackData
 * 
 * @cython.show_performance_hints(False)             # <<<<<<<<<<<<<<
 * cdef void cudaAsyncNotificationCallbackWrapper(cyruntime.cudaAsyncNotificationInfo_t *info, void *data, cyruntime.cudaAsyncCallbackHandle_t handle) nogil:
 *     cdef cudaAsyncCallbackData *cbData = <cudaAsyncCallbackData *>data
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":15709
 *         cbData.callback(info, cbData.userData, handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData):
 *     """ Registers a callback function to receive async notifications.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaDeviceRegisterAsyncNotification(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_7runtime_32cudaDeviceRegisterAsyncNotification, "cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData)\n\nRegisters a callback function to receive async notifications.\n\nRegisters `callbackFunc` to receive async notifications.\n\nThe `userData` parameter is passed to the callback function at async\nnotification time. Likewise, `callback` is also passed to the callback\nfunction to distinguish between multiple registered callbacks.\n\nThe callback function being registered should be designed to return\nquickly (~10ms). Any long running tasks should be queued for execution\non an application thread.\n\nCallbacks may not call cudaDeviceRegisterAsyncNotification or\ncudaDeviceUnregisterAsyncNotification. Doing so will result in\n:py:obj:`~.cudaErrorNotPermitted`. Async notification callbacks execute\nin an undefined order and may be serialized.\n\nReturns in `*callback` a handle representing the registered callback\ninstance.\n\nParameters\n----------\ndevice : int\n    The device on which to register the callback\ncallbackFunc : :py:obj:`~.cudaAsyncCallback`\n    The function to register as a callback\nuserData : Any\n    A generic pointer to user data. This is passed into the callback\n    function.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorNotSupported` :py:obj:`~.cudaErrorInvalidDevice` :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorNotPermitted` :py:obj:`~.cudaErrorUnknown`\ncallback : :py:obj:`~.cudaAsyncCallbackHandle_t`\n    A handle representing the registered callback instance\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceUnregisterAsyncNotification`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_33cudaDeviceRegisterAsyncNotification = {"cudaDeviceRegisterAsyncNotification", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_33cudaDeviceRegisterAsyncNotification, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32cudaDeviceRegisterAsyncNotification};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_33cudaDeviceRegisterAsyncNotification(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
) {
  int __pyx_v_device;
  PyObject *__pyx_v_callbackFunc = 0;
  PyObject *__pyx_v_userData = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceRegisterAsyncNotification (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_device_2,&__pyx_mstate_global->__pyx_n_u_callbackFunc,&__pyx_mstate_global->__pyx_n_u_userData_2,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, 15709, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 15709, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15709, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 15709, __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, "cudaDeviceRegisterAsyncNotification", 0) < (0)) __PYX_ERR(0, 15709, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceRegisterAsyncNotification", 1, 3, 3, i); __PYX_ERR(0, 15709, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 15709, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15709, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 15709, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15710, __pyx_L3_error)
    __pyx_v_callbackFunc = values[1];
    __pyx_v_userData = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceRegisterAsyncNotification", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 15709, __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.runtime.cudaDeviceRegisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_32cudaDeviceRegisterAsyncNotification(__pyx_self, __pyx_v_device, __pyx_v_callbackFunc, __pyx_v_userData);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_32cudaDeviceRegisterAsyncNotification(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_callbackFunc, PyObject *__pyx_v_userData) {
  cudaAsyncCallback __pyx_v_cycallbackFunc;
  PyObject *__pyx_v_pcallbackFunc = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyuserData = NULL;
  void *__pyx_v_cyuserData_ptr;
  __pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData *__pyx_v_cbData;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_callback = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceRegisterAsyncNotification", 0);

  /* "cuda/bindings/runtime.pyx":15753
 *     """
 *     cdef cyruntime.cudaAsyncCallback cycallbackFunc
 *     if callbackFunc is None:             # <<<<<<<<<<<<<<
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaAsyncCallback,)):
*/
  __pyx_t_1 = (__pyx_v_callbackFunc == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15754
 *     cdef cyruntime.cudaAsyncCallback cycallbackFunc
 *     if callbackFunc is None:
 *         pcallbackFunc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(callbackFunc, (cudaAsyncCallback,)):
 *         pcallbackFunc = int(callbackFunc)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pcallbackFunc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":15753
 *     """
 *     cdef cyruntime.cudaAsyncCallback cycallbackFunc
 *     if callbackFunc is None:             # <<<<<<<<<<<<<<
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaAsyncCallback,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":15755
 *     if callbackFunc is None:
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaAsyncCallback,)):             # <<<<<<<<<<<<<<
 *         pcallbackFunc = int(callbackFunc)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_callbackFunc, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15756
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaAsyncCallback,)):
 *         pcallbackFunc = int(callbackFunc)             # <<<<<<<<<<<<<<
 *     else:
 *         pcallbackFunc = int(cudaAsyncCallback(callbackFunc))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_callbackFunc); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pcallbackFunc = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":15755
 *     if callbackFunc is None:
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaAsyncCallback,)):             # <<<<<<<<<<<<<<
 *         pcallbackFunc = int(callbackFunc)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":15758
 *         pcallbackFunc = int(callbackFunc)
 *     else:
 *         pcallbackFunc = int(cudaAsyncCallback(callbackFunc))             # <<<<<<<<<<<<<<
 *     cycallbackFunc = <cyruntime.cudaAsyncCallback><void_ptr>pcallbackFunc
 *     cyuserData = _HelperInputVoidPtr(userData)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_callbackFunc};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15758, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pcallbackFunc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":15759
 *     else:
 *         pcallbackFunc = int(cudaAsyncCallback(callbackFunc))
 *     cycallbackFunc = <cyruntime.cudaAsyncCallback><void_ptr>pcallbackFunc             # <<<<<<<<<<<<<<
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pcallbackFunc); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15759, __pyx_L1_error)
  __pyx_v_cycallbackFunc = ((cudaAsyncCallback)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":15760
 *         pcallbackFunc = int(cudaAsyncCallback(callbackFunc))
 *     cycallbackFunc = <cyruntime.cudaAsyncCallback><void_ptr>pcallbackFunc
 *     cyuserData = _HelperInputVoidPtr(userData)             # <<<<<<<<<<<<<<
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_userData};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15760, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cyuserData = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":15761
 *     cycallbackFunc = <cyruntime.cudaAsyncCallback><void_ptr>pcallbackFunc
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr             # <<<<<<<<<<<<<<
 * 
 *     cdef cudaAsyncCallbackData *cbData = NULL
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyuserData), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15761, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cyuserData_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":15763
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 * 
 *     cdef cudaAsyncCallbackData *cbData = NULL             # <<<<<<<<<<<<<<
 *     cbData = <cudaAsyncCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:
*/
  __pyx_v_cbData = NULL;

  /* "cuda/bindings/runtime.pyx":15764
 * 
 *     cdef cudaAsyncCallbackData *cbData = NULL
 *     cbData = <cudaAsyncCallbackData *>malloc(sizeof(cbData[0]))             # <<<<<<<<<<<<<<
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation, None)
*/
  __pyx_v_cbData = ((__pyx_t_4cuda_8bindings_7runtime_cudaAsyncCallbackData *)malloc((sizeof((__pyx_v_cbData[0])))));

  /* "cuda/bindings/runtime.pyx":15765
 *     cdef cudaAsyncCallbackData *cbData = NULL
 *     cbData = <cudaAsyncCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:             # <<<<<<<<<<<<<<
 *         return (cudaError_t.cudaErrorMemoryAllocation, None)
 *     cbData.callback = cycallbackFunc
*/
  __pyx_t_1 = (__pyx_v_cbData == NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15766
 *     cbData = <cudaAsyncCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation, None)             # <<<<<<<<<<<<<<
 *     cbData.callback = cycallbackFunc
 *     cbData.userData = cyuserData_ptr
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaErrorMemoryAllocation); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 15766, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 15766, __pyx_L1_error);
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15765
 *     cdef cudaAsyncCallbackData *cbData = NULL
 *     cbData = <cudaAsyncCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:             # <<<<<<<<<<<<<<
 *         return (cudaError_t.cudaErrorMemoryAllocation, None)
 *     cbData.callback = cycallbackFunc
*/
  }

  /* "cuda/bindings/runtime.pyx":15767
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation, None)
 *     cbData.callback = cycallbackFunc             # <<<<<<<<<<<<<<
 *     cbData.userData = cyuserData_ptr
 * 
*/
  __pyx_v_cbData->callback = __pyx_v_cycallbackFunc;

  /* "cuda/bindings/runtime.pyx":15768
 *         return (cudaError_t.cudaErrorMemoryAllocation, None)
 *     cbData.callback = cycallbackFunc
 *     cbData.userData = cyuserData_ptr             # <<<<<<<<<<<<<<
 * 
 *     cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t()
*/
  __pyx_v_cbData->userData = __pyx_v_cyuserData_ptr;

  /* "cuda/bindings/runtime.pyx":15770
 *     cbData.userData = cyuserData_ptr
 * 
 *     cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceRegisterAsyncNotification(device, <cyruntime.cudaAsyncCallback>cudaAsyncNotificationCallbackWrapper, <void *>cbData, <cyruntime.cudaAsyncCallbackHandle_t*>callback._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15770, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_callback = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":15771
 * 
 *     cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceRegisterAsyncNotification(device, <cyruntime.cudaAsyncCallback>cudaAsyncNotificationCallbackWrapper, <void *>cbData, <cyruntime.cudaAsyncCallbackHandle_t*>callback._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15772
 *     cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t()
 *     with nogil:
 *         err = cyruntime.cudaDeviceRegisterAsyncNotification(device, <cyruntime.cudaAsyncCallback>cudaAsyncNotificationCallbackWrapper, <void *>cbData, <cyruntime.cudaAsyncCallbackHandle_t*>callback._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         free(cbData)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceRegisterAsyncNotification(__pyx_v_device, ((cudaAsyncCallback)__pyx_f_4cuda_8bindings_7runtime_cudaAsyncNotificationCallbackWrapper), ((void *)__pyx_v_cbData), ((cudaAsyncCallbackHandle_t *)__pyx_v_callback->_pvt_ptr)); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15772, __pyx_L6_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":15771
 * 
 *     cdef cudaAsyncCallbackHandle_t callback = cudaAsyncCallbackHandle_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceRegisterAsyncNotification(device, <cyruntime.cudaAsyncCallback>cudaAsyncNotificationCallbackWrapper, <void *>cbData, <cyruntime.cudaAsyncCallbackHandle_t*>callback._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L7;
        }
        __pyx_L6_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L7:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15773
 *     with nogil:
 *         err = cyruntime.cudaDeviceRegisterAsyncNotification(device, <cyruntime.cudaAsyncCallback>cudaAsyncNotificationCallbackWrapper, <void *>cbData, <cyruntime.cudaAsyncCallbackHandle_t*>callback._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         free(cbData)
 *     else:
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15774
 *         err = cyruntime.cudaDeviceRegisterAsyncNotification(device, <cyruntime.cudaAsyncCallback>cudaAsyncNotificationCallbackWrapper, <void *>cbData, <cyruntime.cudaAsyncCallbackHandle_t*>callback._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         free(cbData)             # <<<<<<<<<<<<<<
 *     else:
 *         m_global._allocated[int(callback)] = cbData
*/
    free(__pyx_v_cbData);

    /* "cuda/bindings/runtime.pyx":15773
 *     with nogil:
 *         err = cyruntime.cudaDeviceRegisterAsyncNotification(device, <cyruntime.cudaAsyncCallback>cudaAsyncNotificationCallbackWrapper, <void *>cbData, <cyruntime.cudaAsyncCallbackHandle_t*>callback._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         free(cbData)
 *     else:
*/
    goto __pyx_L8;
  }

  /* "cuda/bindings/runtime.pyx":15776
 *         free(cbData)
 *     else:
 *         m_global._allocated[int(callback)] = cbData             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
  /*else*/ {
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_v_callback)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15776, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15776, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    (__pyx_v_4cuda_8bindings_7runtime_m_global->_allocated[__pyx_t_5]) = __pyx_v_cbData;
  }
  __pyx_L8:;

  /* "cuda/bindings/runtime.pyx":15777
 *     else:
 *         m_global._allocated[int(callback)] = cbData
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], callback)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15778
 *         m_global._allocated[int(callback)] = cbData
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], callback)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 15778, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 15778, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15777
 *     else:
 *         m_global._allocated[int(callback)] = cbData
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], callback)
*/
  }

  /* "cuda/bindings/runtime.pyx":15779
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], callback)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 15779, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_callback);
  __Pyx_GIVEREF((PyObject *)__pyx_v_callback);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_callback)) != (0)) __PYX_ERR(0, 15779, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15709
 *         cbData.callback(info, cbData.userData, handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData):
 *     """ Registers a callback function to receive async notifications.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceRegisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pcallbackFunc);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyuserData);
  __Pyx_XDECREF((PyObject *)__pyx_v_callback);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15781
 *     return (_dict_cudaError_t[err], callback)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceUnregisterAsyncNotification(int device, callback):
 *     """ Unregisters an async notification callback.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaDeviceUnregisterAsyncNotification(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_7runtime_34cudaDeviceUnregisterAsyncNotification, "cudaDeviceUnregisterAsyncNotification(int device, callback)\n\nUnregisters an async notification callback.\n\nUnregisters `callback` so that the corresponding callback function will\nstop receiving async notifications.\n\nParameters\n----------\ndevice : int\n    The device from which to remove `callback`.\ncallback : :py:obj:`~.cudaAsyncCallbackHandle_t`\n    The callback instance to unregister from receiving async\n    notifications.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorNotSupported` :py:obj:`~.cudaErrorInvalidDevice` :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorNotPermitted` :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceRegisterAsyncNotification`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_35cudaDeviceUnregisterAsyncNotification = {"cudaDeviceUnregisterAsyncNotification", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_35cudaDeviceUnregisterAsyncNotification, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_34cudaDeviceUnregisterAsyncNotification};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_35cudaDeviceUnregisterAsyncNotification(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
) {
  int __pyx_v_device;
  PyObject *__pyx_v_callback = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceUnregisterAsyncNotification (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_device_2,&__pyx_mstate_global->__pyx_n_u_callback,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, 15781, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15781, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 15781, __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, "cudaDeviceUnregisterAsyncNotification", 0) < (0)) __PYX_ERR(0, 15781, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceUnregisterAsyncNotification", 1, 2, 2, i); __PYX_ERR(0, 15781, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 15781, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 15781, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 15782, __pyx_L3_error)
    __pyx_v_callback = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceUnregisterAsyncNotification", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 15781, __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.runtime.cudaDeviceUnregisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_34cudaDeviceUnregisterAsyncNotification(__pyx_self, __pyx_v_device, __pyx_v_callback);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_34cudaDeviceUnregisterAsyncNotification(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_callback) {
  cudaAsyncCallbackHandle_t __pyx_v_cycallback;
  PyObject *__pyx_v_pcallback = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceUnregisterAsyncNotification", 0);

  /* "cuda/bindings/runtime.pyx":15806
 *     """
 *     cdef cyruntime.cudaAsyncCallbackHandle_t cycallback
 *     if callback is None:             # <<<<<<<<<<<<<<
 *         pcallback = 0
 *     elif isinstance(callback, (cudaAsyncCallbackHandle_t,)):
*/
  __pyx_t_1 = (__pyx_v_callback == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15807
 *     cdef cyruntime.cudaAsyncCallbackHandle_t cycallback
 *     if callback is None:
 *         pcallback = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(callback, (cudaAsyncCallbackHandle_t,)):
 *         pcallback = int(callback)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pcallback = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":15806
 *     """
 *     cdef cyruntime.cudaAsyncCallbackHandle_t cycallback
 *     if callback is None:             # <<<<<<<<<<<<<<
 *         pcallback = 0
 *     elif isinstance(callback, (cudaAsyncCallbackHandle_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":15808
 *     if callback is None:
 *         pcallback = 0
 *     elif isinstance(callback, (cudaAsyncCallbackHandle_t,)):             # <<<<<<<<<<<<<<
 *         pcallback = int(callback)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_callback, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15809
 *         pcallback = 0
 *     elif isinstance(callback, (cudaAsyncCallbackHandle_t,)):
 *         pcallback = int(callback)             # <<<<<<<<<<<<<<
 *     else:
 *         pcallback = int(cudaAsyncCallbackHandle_t(callback))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15809, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pcallback = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":15808
 *     if callback is None:
 *         pcallback = 0
 *     elif isinstance(callback, (cudaAsyncCallbackHandle_t,)):             # <<<<<<<<<<<<<<
 *         pcallback = int(callback)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":15811
 *         pcallback = int(callback)
 *     else:
 *         pcallback = int(cudaAsyncCallbackHandle_t(callback))             # <<<<<<<<<<<<<<
 *     cycallback = <cyruntime.cudaAsyncCallbackHandle_t><void_ptr>pcallback
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_callback};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15811, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pcallback = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":15812
 *     else:
 *         pcallback = int(cudaAsyncCallbackHandle_t(callback))
 *     cycallback = <cyruntime.cudaAsyncCallbackHandle_t><void_ptr>pcallback             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceUnregisterAsyncNotification(device, cycallback)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15812, __pyx_L1_error)
  __pyx_v_cycallback = ((cudaAsyncCallbackHandle_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":15813
 *         pcallback = int(cudaAsyncCallbackHandle_t(callback))
 *     cycallback = <cyruntime.cudaAsyncCallbackHandle_t><void_ptr>pcallback
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceUnregisterAsyncNotification(device, cycallback)
 *     if err == cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15814
 *     cycallback = <cyruntime.cudaAsyncCallbackHandle_t><void_ptr>pcallback
 *     with nogil:
 *         err = cyruntime.cudaDeviceUnregisterAsyncNotification(device, cycallback)             # <<<<<<<<<<<<<<
 *     if err == cyruntime.cudaSuccess:
 *         free(m_global._allocated[pcallback])
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceUnregisterAsyncNotification(__pyx_v_device, __pyx_v_cycallback); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15814, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":15813
 *         pcallback = int(cudaAsyncCallbackHandle_t(callback))
 *     cycallback = <cyruntime.cudaAsyncCallbackHandle_t><void_ptr>pcallback
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceUnregisterAsyncNotification(device, cycallback)
 *     if err == cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15815
 *     with nogil:
 *         err = cyruntime.cudaDeviceUnregisterAsyncNotification(device, cycallback)
 *     if err == cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         free(m_global._allocated[pcallback])
 *         m_global._allocated.erase(<void_ptr>pcallback)
*/
  __pyx_t_1 = (__pyx_v_err == cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":15816
 *         err = cyruntime.cudaDeviceUnregisterAsyncNotification(device, cycallback)
 *     if err == cyruntime.cudaSuccess:
 *         free(m_global._allocated[pcallback])             # <<<<<<<<<<<<<<
 *         m_global._allocated.erase(<void_ptr>pcallback)
 *     return (_dict_cudaError_t[err],)
*/
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15816, __pyx_L1_error)
    free((__pyx_v_4cuda_8bindings_7runtime_m_global->_allocated[__pyx_t_5]));

    /* "cuda/bindings/runtime.pyx":15817
 *     if err == cyruntime.cudaSuccess:
 *         free(m_global._allocated[pcallback])
 *         m_global._allocated.erase(<void_ptr>pcallback)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 15817, __pyx_L1_error)
    (void)(__pyx_v_4cuda_8bindings_7runtime_m_global->_allocated.erase(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5)));

    /* "cuda/bindings/runtime.pyx":15815
 *     with nogil:
 *         err = cyruntime.cudaDeviceUnregisterAsyncNotification(device, cycallback)
 *     if err == cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         free(m_global._allocated[pcallback])
 *         m_global._allocated.erase(<void_ptr>pcallback)
*/
  }

  /* "cuda/bindings/runtime.pyx":15818
 *         free(m_global._allocated[pcallback])
 *         m_global._allocated.erase(<void_ptr>pcallback)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 15818, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15781
 *     return (_dict_cudaError_t[err], callback)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceUnregisterAsyncNotification(int device, callback):
 *     """ Unregisters an async notification callback.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceUnregisterAsyncNotification", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pcallback);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15820
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetSharedMemConfig():
 *     """ Returns the shared memory configuration for the current device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaDeviceGetSharedMemConfig(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_36cudaDeviceGetSharedMemConfig, "cudaDeviceGetSharedMemConfig()\n\nReturns the shared memory configuration for the current device.\n\n[Deprecated]\n\nThis function will return in `pConfig` the current size of shared\nmemory banks on the current device. On devices with configurable shared\nmemory banks, :py:obj:`~.cudaDeviceSetSharedMemConfig` can be used to\nchange this setting, so that all subsequent kernel launches will by\ndefault use the new bank size. When\n:py:obj:`~.cudaDeviceGetSharedMemConfig` is called on devices without\nconfigurable shared memory, it will return the fixed bank size of the\nhardware.\n\nThe returned bank configurations can be either:\n\n- :py:obj:`~.cudaSharedMemBankSizeFourByte` - shared memory bank width\n  is four bytes.\n\n- :py:obj:`~.cudaSharedMemBankSizeEightByte` - shared memory bank width\n  is eight bytes.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npConfig : :py:obj:`~.cudaSharedMemConfig`\n    Returned cache configuration\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaDeviceSetSharedMemConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuCtxGetSharedMemConfig`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_37cudaDeviceGetSharedMemConfig = {"cudaDeviceGetSharedMemConfig", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_37cudaDeviceGetSharedMemConfig, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_36cudaDeviceGetSharedMemConfig};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_37cudaDeviceGetSharedMemConfig(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetSharedMemConfig (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_36cudaDeviceGetSharedMemConfig(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_36cudaDeviceGetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self) {
  enum cudaSharedMemConfig __pyx_v_pConfig;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetSharedMemConfig", 0);

  /* "cuda/bindings/runtime.pyx":15855
 *     """
 *     cdef cyruntime.cudaSharedMemConfig pConfig
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetSharedMemConfig(&pConfig)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15856
 *     cdef cyruntime.cudaSharedMemConfig pConfig
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetSharedMemConfig(&pConfig)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetSharedMemConfig((&__pyx_v_pConfig)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15856, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":15855
 *     """
 *     cdef cyruntime.cudaSharedMemConfig pConfig
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetSharedMemConfig(&pConfig)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15857
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetSharedMemConfig(&pConfig)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaSharedMemConfig(pConfig))
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":15858
 *         err = cyruntime.cudaDeviceGetSharedMemConfig(&pConfig)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cudaSharedMemConfig(pConfig))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15858, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15858, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15858, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15858, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 15858, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 15858, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":15857
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetSharedMemConfig(&pConfig)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaSharedMemConfig(pConfig))
*/
  }

  /* "cuda/bindings/runtime.pyx":15859
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaSharedMemConfig(pConfig))             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cudaSharedMemConfig); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaSharedMemConfig(__pyx_v_pConfig); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 15859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15859, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 15859, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 15859, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15820
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetSharedMemConfig():
 *     """ Returns the shared memory configuration for the current device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15861
 *     return (_dict_cudaError_t[err], cudaSharedMemConfig(pConfig))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetSharedMemConfig(config not None : cudaSharedMemConfig):
 *     """ Sets the shared memory configuration for the current device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaDeviceSetSharedMemConfig(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_7runtime_38cudaDeviceSetSharedMemConfig, "cudaDeviceSetSharedMemConfig(config: cudaSharedMemConfig)\n\nSets the shared memory configuration for the current device.\n\n[Deprecated]\n\nOn devices with configurable shared memory banks, this function will\nset the shared memory bank size which is used for all subsequent kernel\nlaunches. Any per-function setting of shared memory set via\n:py:obj:`~.cudaFuncSetSharedMemConfig` will override the device wide\nsetting.\n\nChanging the shared memory configuration between launches may introduce\na device side synchronization point.\n\nChanging the shared memory bank size will not increase shared memory\nusage or affect occupancy of kernels, but may have major effects on\nperformance. Larger bank sizes will allow for greater potential\nbandwidth to shared memory, but will change what kinds of accesses to\nshared memory will result in bank conflicts.\n\nThis function will do nothing on devices with fixed shared memory bank\nsize.\n\nThe supported bank configurations are:\n\n- :py:obj:`~.cudaSharedMemBankSizeDefault`: set bank width the device\n  default (currently, four bytes)\n\n- :py:obj:`~.cudaSharedMemBankSizeFourByte`: set shared memory bank\n  width to be four bytes natively.\n\n- :py:obj:`~.cudaSharedMemBankSizeEightByte`: set shared memory bank\n  width to be eight bytes natively.\n\nParameters\n----------\nconfig : :py:obj:`~.cudaSharedMemConfig`\n    Requested cache configuration\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaDeviceGetSharedMemConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuCtxSetSharedMemConfig`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_39cudaDeviceSetSharedMemConfig = {"cudaDeviceSetSharedMemConfig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_39cudaDeviceSetSharedMemConfig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_38cudaDeviceSetSharedMemConfig};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_39cudaDeviceSetSharedMemConfig(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_config = 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("cudaDeviceSetSharedMemConfig (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_config,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, 15861, __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, 15861, __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, "cudaDeviceSetSharedMemConfig", 0) < (0)) __PYX_ERR(0, 15861, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetSharedMemConfig", 1, 1, 1, i); __PYX_ERR(0, 15861, __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, 15861, __pyx_L3_error)
    }
    __pyx_v_config = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceSetSharedMemConfig", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15861, __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.runtime.cudaDeviceSetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_config) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "config"); __PYX_ERR(0, 15862, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_38cudaDeviceSetSharedMemConfig(__pyx_self, __pyx_v_config);

  /* 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_7runtime_38cudaDeviceSetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_config) {
  enum cudaSharedMemConfig __pyx_v_cyconfig;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaSharedMemConfig __pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceSetSharedMemConfig", 0);

  /* "cuda/bindings/runtime.pyx":15910
 *     :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaDeviceGetSharedMemConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuCtxSetSharedMemConfig`
 *     """
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetSharedMemConfig(cyconfig)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaSharedMemConfig)__Pyx_PyLong_As_enum__cudaSharedMemConfig(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15910, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyconfig = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":15911
 *     """
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetSharedMemConfig(cyconfig)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15912
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetSharedMemConfig(cyconfig)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetSharedMemConfig(__pyx_v_cyconfig); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15912, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":15911
 *     """
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetSharedMemConfig(cyconfig)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15913
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetSharedMemConfig(cyconfig)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 15913, __pyx_L1_error);
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15861
 *     return (_dict_cudaError_t[err], cudaSharedMemConfig(pConfig))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetSharedMemConfig(config not None : cudaSharedMemConfig):
 *     """ Sets the shared memory configuration for the current device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceSetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15915
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetLastError():
 *     """ Returns the last error from a runtime call.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_41cudaGetLastError(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_40cudaGetLastError, "cudaGetLastError()\n\nReturns the last error from a runtime call.\n\nReturns the last error that has been produced by any of the runtime\ncalls in the same instance of the CUDA Runtime library in the host\nthread and resets it to :py:obj:`~.cudaSuccess`.\n\nNote: Multiple instances of the CUDA Runtime library can be present in\nan application when using a library that statically links the CUDA\nRuntime.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMissingConfiguration`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorLaunchTimeout`, :py:obj:`~.cudaErrorLaunchOutOfResources`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidConfiguration`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidSymbol`, :py:obj:`~.cudaErrorUnmapBufferObjectFailed`, :py:obj:`~.cudaErrorInvalidDevicePointer`, :py:obj:`~.cudaErrorInvalidTexture`, :py:obj:`~.cudaErrorInvalidTextureBinding`, :py:obj:`~.cudaErrorInvalidChannelDescriptor`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`, :py:obj:`~.cudaErrorInvalidFilterSetting`, :py:obj:`~.cudaErrorInvalidNormSetting`, :py:obj:`~.cudaErrorUnknown`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorInsufficientDriver`, :py:obj:`~.cudaErrorNoDevice`, :py:obj:`~.cudaErrorSetOnActiveProcess`, :py:obj:`~.cudaErrorStartupFailure`, :py:obj:`~.cudaErrorInvalidPtx`, :py:obj:`~.cudaErrorUnsupportedPtxVersion`, :py:obj:`~.cudaErrorNoKernelImageForDevice`, :py:obj:`~.cudaErrorJitCompilerNotFound`, :py:obj:`~.cudaErrorJitCompilationDisabled`\n\nSee Also\n--------\n:py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_41cudaGetLastError = {"cudaGetLastError", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_41cudaGetLastError, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_40cudaGetLastError};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_41cudaGetLastError(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGetLastError (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_40cudaGetLastError(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_40cudaGetLastError(CYTHON_UNUSED PyObject *__pyx_self) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetLastError", 0);

  /* "cuda/bindings/runtime.pyx":15936
 *     :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetLastError()
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15937
 *     """
 *     with nogil:
 *         err = cyruntime.cudaGetLastError()             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetLastError(); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15937, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":15936
 *     :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetLastError()
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15938
 *     with nogil:
 *         err = cyruntime.cudaGetLastError()
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 15938, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15915
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetLastError():
 *     """ Returns the last error from a runtime call.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetLastError", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15940
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaPeekAtLastError():
 *     """ Returns the last error from a runtime call.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_43cudaPeekAtLastError(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_42cudaPeekAtLastError, "cudaPeekAtLastError()\n\nReturns the last error from a runtime call.\n\nReturns the last error that has been produced by any of the runtime\ncalls in the same instance of the CUDA Runtime library in the host\nthread. This call does not reset the error to :py:obj:`~.cudaSuccess`\nlike :py:obj:`~.cudaGetLastError()`.\n\nNote: Multiple instances of the CUDA Runtime library can be present in\nan application when using a library that statically links the CUDA\nRuntime.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMissingConfiguration`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorLaunchTimeout`, :py:obj:`~.cudaErrorLaunchOutOfResources`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidConfiguration`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidSymbol`, :py:obj:`~.cudaErrorUnmapBufferObjectFailed`, :py:obj:`~.cudaErrorInvalidDevicePointer`, :py:obj:`~.cudaErrorInvalidTexture`, :py:obj:`~.cudaErrorInvalidTextureBinding`, :py:obj:`~.cudaErrorInvalidChannelDescriptor`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`, :py:obj:`~.cudaErrorInvalidFilterSetting`, :py:obj:`~.cudaErrorInvalidNormSetting`, :py:obj:`~.cudaErrorUnknown`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorInsufficientDriver`, :py:obj:`~.cudaErrorNoDevice`, :py:obj:`~.cudaErrorSetOnActiveProcess`, :py:obj:`~.cudaErrorStartupFailure`, :py:obj:`~.cudaErrorInvalidPtx`, :py:obj:`~.cudaErrorUnsupportedPtxVersion`, :py:obj:`~.cudaErrorNoKernelImageForDevice`, :py:obj:`~.cudaErrorJitCompilerNotFound`, :py:obj:`~.cudaErrorJitCompilationDisabled`\n\nSee Also\n--------\n:py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_43cudaPeekAtLastError = {"cudaPeekAtLastError", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_43cudaPeekAtLastError, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_42cudaPeekAtLastError};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_43cudaPeekAtLastError(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaPeekAtLastError (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_42cudaPeekAtLastError(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_42cudaPeekAtLastError(CYTHON_UNUSED PyObject *__pyx_self) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaPeekAtLastError", 0);

  /* "cuda/bindings/runtime.pyx":15962
 *     :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaPeekAtLastError()
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15963
 *     """
 *     with nogil:
 *         err = cyruntime.cudaPeekAtLastError()             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaPeekAtLastError(); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15963, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":15962
 *     :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaError`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaPeekAtLastError()
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15964
 *     with nogil:
 *         err = cyruntime.cudaPeekAtLastError()
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 15964, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15940
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaPeekAtLastError():
 *     """ Returns the last error from a runtime call.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPeekAtLastError", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15966
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetErrorName(error not None : cudaError_t):
 *     """ Returns the string representation of an error code enum name.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_45cudaGetErrorName(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_7runtime_44cudaGetErrorName, "cudaGetErrorName(error: cudaError_t)\n\nReturns the string representation of an error code enum name.\n\nReturns a string containing the name of an error code in the enum. If\nthe error code is not recognized, \"unrecognized error code\" is\nreturned.\n\nParameters\n----------\nerror : :py:obj:`~.cudaError_t`\n    Error code to convert to string\n\nReturns\n-------\ncudaError_t.cudaSuccess\n    cudaError_t.cudaSuccess\nbytes\n    `char*` pointer to a NULL-terminated string\n\nSee Also\n--------\n:py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaError`, :py:obj:`~.cuGetErrorName`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_45cudaGetErrorName = {"cudaGetErrorName", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_45cudaGetErrorName, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_44cudaGetErrorName};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_45cudaGetErrorName(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_error = 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("cudaGetErrorName (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_error,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, 15966, __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, 15966, __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, "cudaGetErrorName", 0) < (0)) __PYX_ERR(0, 15966, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetErrorName", 1, 1, 1, i); __PYX_ERR(0, 15966, __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, 15966, __pyx_L3_error)
    }
    __pyx_v_error = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetErrorName", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15966, __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.runtime.cudaGetErrorName", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_error) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "error"); __PYX_ERR(0, 15967, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_44cudaGetErrorName(__pyx_self, __pyx_v_error);

  /* 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_7runtime_44cudaGetErrorName(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_error) {
  cudaError_t __pyx_v_cyerror;
  char const *__pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  cudaError_t __pyx_t_2;
  char const *__pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetErrorName", 0);

  /* "cuda/bindings/runtime.pyx":15990
 *     :py:obj:`~.cudaGetErrorString`, :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaError`, :py:obj:`~.cuGetErrorName`
 *     """
 *     cdef cyruntime.cudaError_t cyerror = error.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetErrorName(cyerror)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15990, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaError)__Pyx_PyLong_As_enum__cudaError(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 15990, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyerror = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":15991
 *     """
 *     cdef cyruntime.cudaError_t cyerror = error.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetErrorName(cyerror)
 *     return (cudaError_t.cudaSuccess, err)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":15992
 *     cdef cyruntime.cudaError_t cyerror = error.value
 *     with nogil:
 *         err = cyruntime.cudaGetErrorName(cyerror)             # <<<<<<<<<<<<<<
 *     return (cudaError_t.cudaSuccess, err)
 * 
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetErrorName(__pyx_v_cyerror); if (unlikely(__pyx_t_3 == ((void *)NULL) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 15992, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":15991
 *     """
 *     cdef cyruntime.cudaError_t cyerror = error.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetErrorName(cyerror)
 *     return (cudaError_t.cudaSuccess, err)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":15993
 *     with nogil:
 *         err = cyruntime.cudaGetErrorName(cyerror)
 *     return (cudaError_t.cudaSuccess, err)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_cudaSuccess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 15993, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 15993, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15966
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetErrorName(error not None : cudaError_t):
 *     """ Returns the string representation of an error code enum name.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetErrorName", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":15995
 *     return (cudaError_t.cudaSuccess, err)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetErrorString(error not None : cudaError_t):
 *     """ Returns the description string for an error code.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_47cudaGetErrorString(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_7runtime_46cudaGetErrorString, "cudaGetErrorString(error: cudaError_t)\n\nReturns the description string for an error code.\n\nReturns the description string for an error code. If the error code is\nnot recognized, \"unrecognized error code\" is returned.\n\nParameters\n----------\nerror : :py:obj:`~.cudaError_t`\n    Error code to convert to string\n\nReturns\n-------\ncudaError_t.cudaSuccess\n    cudaError_t.cudaSuccess\nbytes\n    `char*` pointer to a NULL-terminated string\n\nSee Also\n--------\n:py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaError`, :py:obj:`~.cuGetErrorString`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_47cudaGetErrorString = {"cudaGetErrorString", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_47cudaGetErrorString, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_46cudaGetErrorString};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_47cudaGetErrorString(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_error = 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("cudaGetErrorString (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_error,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, 15995, __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, 15995, __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, "cudaGetErrorString", 0) < (0)) __PYX_ERR(0, 15995, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetErrorString", 1, 1, 1, i); __PYX_ERR(0, 15995, __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, 15995, __pyx_L3_error)
    }
    __pyx_v_error = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetErrorString", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 15995, __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.runtime.cudaGetErrorString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_error) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "error"); __PYX_ERR(0, 15996, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_46cudaGetErrorString(__pyx_self, __pyx_v_error);

  /* 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_7runtime_46cudaGetErrorString(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_error) {
  cudaError_t __pyx_v_cyerror;
  char const *__pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  cudaError_t __pyx_t_2;
  char const *__pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetErrorString", 0);

  /* "cuda/bindings/runtime.pyx":16018
 *     :py:obj:`~.cudaGetErrorName`, :py:obj:`~.cudaGetLastError`, :py:obj:`~.cudaPeekAtLastError`, :py:obj:`~.cudaError`, :py:obj:`~.cuGetErrorString`
 *     """
 *     cdef cyruntime.cudaError_t cyerror = error.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetErrorString(cyerror)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaError)__Pyx_PyLong_As_enum__cudaError(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyerror = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":16019
 *     """
 *     cdef cyruntime.cudaError_t cyerror = error.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetErrorString(cyerror)
 *     return (cudaError_t.cudaSuccess, err)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16020
 *     cdef cyruntime.cudaError_t cyerror = error.value
 *     with nogil:
 *         err = cyruntime.cudaGetErrorString(cyerror)             # <<<<<<<<<<<<<<
 *     return (cudaError_t.cudaSuccess, err)
 * 
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetErrorString(__pyx_v_cyerror); if (unlikely(__pyx_t_3 == ((void *)NULL) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16020, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":16019
 *     """
 *     cdef cyruntime.cudaError_t cyerror = error.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetErrorString(cyerror)
 *     return (cudaError_t.cudaSuccess, err)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16021
 *     with nogil:
 *         err = cyruntime.cudaGetErrorString(cyerror)
 *     return (cudaError_t.cudaSuccess, err)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_cudaSuccess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 16021, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 16021, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":15995
 *     return (cudaError_t.cudaSuccess, err)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetErrorString(error not None : cudaError_t):
 *     """ Returns the description string for an error code.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetErrorString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16023
 *     return (cudaError_t.cudaSuccess, err)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceCount():
 *     """ Returns the number of compute-capable devices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_49cudaGetDeviceCount(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_48cudaGetDeviceCount, "cudaGetDeviceCount()\n\nReturns the number of compute-capable devices.\n\nReturns in `*count` the number of devices with compute capability\ngreater or equal to 2.0 that are available for execution.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\ncount : int\n    Returns the number of devices with compute capability greater or\n    equal to 2.0\n\nSee Also\n--------\n:py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetCount`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_49cudaGetDeviceCount = {"cudaGetDeviceCount", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_49cudaGetDeviceCount, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_48cudaGetDeviceCount};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_49cudaGetDeviceCount(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGetDeviceCount (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_48cudaGetDeviceCount(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_48cudaGetDeviceCount(CYTHON_UNUSED PyObject *__pyx_self) {
  int __pyx_v_count;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetDeviceCount", 0);

  /* "cuda/bindings/runtime.pyx":16042
 *     :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetCount`
 *     """
 *     cdef int count = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceCount(&count)
*/
  __pyx_v_count = 0;

  /* "cuda/bindings/runtime.pyx":16043
 *     """
 *     cdef int count = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDeviceCount(&count)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16044
 *     cdef int count = 0
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceCount(&count)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceCount((&__pyx_v_count)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16044, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":16043
 *     """
 *     cdef int count = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDeviceCount(&count)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16045
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceCount(&count)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], count)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":16046
 *         err = cyruntime.cudaGetDeviceCount(&count)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], count)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 16046, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 16046, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16045
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceCount(&count)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], count)
*/
  }

  /* "cuda/bindings/runtime.pyx":16047
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], count)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 16047, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 16047, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16023
 *     return (cudaError_t.cudaSuccess, err)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceCount():
 *     """ Returns the number of compute-capable devices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetDeviceCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16049
 *     return (_dict_cudaError_t[err], count)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceProperties(int device):
 *     """ Returns information about the compute-device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_51cudaGetDeviceProperties(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_7runtime_50cudaGetDeviceProperties, "cudaGetDeviceProperties(int device)\n\nReturns information about the compute-device.\n\nReturns in `*prop` the properties of device `dev`.\n\nParameters\n----------\ndevice : int\n    Device number to get properties for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\nprop : :py:obj:`~.cudaDeviceProp`\n    Properties for the specified device\n\nSee Also\n--------\n:py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaDeviceGetAttribute`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetAttribute`, :py:obj:`~.cuDeviceGetName`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_51cudaGetDeviceProperties = {"cudaGetDeviceProperties", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_51cudaGetDeviceProperties, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_50cudaGetDeviceProperties};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_51cudaGetDeviceProperties(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
) {
  int __pyx_v_device;
  #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("cudaGetDeviceProperties (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_device_2,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, 16049, __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, 16049, __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, "cudaGetDeviceProperties", 0) < (0)) __PYX_ERR(0, 16049, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetDeviceProperties", 1, 1, 1, i); __PYX_ERR(0, 16049, __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, 16049, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16050, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetDeviceProperties", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16049, __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.runtime.cudaGetDeviceProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_50cudaGetDeviceProperties(__pyx_self, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_50cudaGetDeviceProperties(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_prop = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetDeviceProperties", 0);

  /* "cuda/bindings/runtime.pyx":16071
 *     :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaDeviceGetAttribute`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetAttribute`, :py:obj:`~.cuDeviceGetName`
 *     """
 *     cdef cudaDeviceProp prop = cudaDeviceProp()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceProperties(<cyruntime.cudaDeviceProp*>prop._pvt_ptr, device)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16071, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_prop = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16072
 *     """
 *     cdef cudaDeviceProp prop = cudaDeviceProp()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDeviceProperties(<cyruntime.cudaDeviceProp*>prop._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16073
 *     cdef cudaDeviceProp prop = cudaDeviceProp()
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceProperties(<cyruntime.cudaDeviceProp*>prop._pvt_ptr, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceProperties(((struct cudaDeviceProp *)__pyx_v_prop->_pvt_ptr), __pyx_v_device); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16073, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":16072
 *     """
 *     cdef cudaDeviceProp prop = cudaDeviceProp()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDeviceProperties(<cyruntime.cudaDeviceProp*>prop._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16074
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceProperties(<cyruntime.cudaDeviceProp*>prop._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], prop)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":16075
 *         err = cyruntime.cudaGetDeviceProperties(<cyruntime.cudaDeviceProp*>prop._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], prop)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16075, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16075, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16075, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16075, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16075, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 16075, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16074
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceProperties(<cyruntime.cudaDeviceProp*>prop._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], prop)
*/
  }

  /* "cuda/bindings/runtime.pyx":16076
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], prop)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16076, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_prop);
  __Pyx_GIVEREF((PyObject *)__pyx_v_prop);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_prop)) != (0)) __PYX_ERR(0, 16076, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16049
 *     return (_dict_cudaError_t[err], count)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceProperties(int device):
 *     """ Returns information about the compute-device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetDeviceProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_prop);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16078
 *     return (_dict_cudaError_t[err], prop)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device):
 *     """ Returns information about the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_53cudaDeviceGetAttribute(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_7runtime_52cudaDeviceGetAttribute, "cudaDeviceGetAttribute(attr: cudaDeviceAttr, int device)\n\nReturns information about the device.\n\nReturns in `*value` the integer value of the attribute `attr` on device\n`device`.\n\nParameters\n----------\nattr : :py:obj:`~.cudaDeviceAttr`\n    Device attribute to query\ndevice : int\n    Device number to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`\nvalue : int\n    Returned device attribute value\n\nSee Also\n--------\n:py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetAttribute`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_53cudaDeviceGetAttribute = {"cudaDeviceGetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_53cudaDeviceGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_52cudaDeviceGetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_53cudaDeviceGetAttribute(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_attr = 0;
  int __pyx_v_device;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetAttribute (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_attr,&__pyx_mstate_global->__pyx_n_u_device_2,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, 16078, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16078, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 16078, __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, "cudaDeviceGetAttribute", 0) < (0)) __PYX_ERR(0, 16078, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetAttribute", 1, 2, 2, i); __PYX_ERR(0, 16078, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 16078, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16078, __pyx_L3_error)
    }
    __pyx_v_attr = values[0];
    __pyx_v_device = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16079, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetAttribute", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 16078, __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.runtime.cudaDeviceGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 16079, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_52cudaDeviceGetAttribute(__pyx_self, __pyx_v_attr, __pyx_v_device);

  /* 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_7runtime_52cudaDeviceGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_attr, int __pyx_v_device) {
  int __pyx_v_value;
  enum cudaDeviceAttr __pyx_v_cyattr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaDeviceAttr __pyx_t_2;
  cudaError_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":16103
 *     :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuDeviceGetAttribute`
 *     """
 *     cdef int value = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDeviceAttr cyattr = attr.value
 *     with nogil:
*/
  __pyx_v_value = 0;

  /* "cuda/bindings/runtime.pyx":16104
 *     """
 *     cdef int value = 0
 *     cdef cyruntime.cudaDeviceAttr cyattr = attr.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetAttribute(&value, cyattr, device)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaDeviceAttr)__Pyx_PyLong_As_enum__cudaDeviceAttr(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyattr = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":16105
 *     cdef int value = 0
 *     cdef cyruntime.cudaDeviceAttr cyattr = attr.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetAttribute(&value, cyattr, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16106
 *     cdef cyruntime.cudaDeviceAttr cyattr = attr.value
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetAttribute(&value, cyattr, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetAttribute((&__pyx_v_value), __pyx_v_cyattr, __pyx_v_device); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16106, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":16105
 *     cdef int value = 0
 *     cdef cyruntime.cudaDeviceAttr cyattr = attr.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetAttribute(&value, cyattr, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16107
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetAttribute(&value, cyattr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16108
 *         err = cyruntime.cudaDeviceGetAttribute(&value, cyattr, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], value)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16108, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 16108, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16107
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetAttribute(&value, cyattr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value)
*/
  }

  /* "cuda/bindings/runtime.pyx":16109
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_value); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16109, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 16109, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16078
 *     return (_dict_cudaError_t[err], prop)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device):
 *     """ Returns information about the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16111
 *     return (_dict_cudaError_t[err], value)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetHostAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int device):
 *     """ Queries details about atomic operations supported between the device and host.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_55cudaDeviceGetHostAtomicCapabilities(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_7runtime_54cudaDeviceGetHostAtomicCapabilities, "cudaDeviceGetHostAtomicCapabilities(operations: Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int device)\n\nQueries details about atomic operations supported between the device and host.\n\nReturns in `*capabilities` the details about requested atomic\n`*operations` over the the link between `dev` and the host. The\nallocated size of `*operations` and `*capabilities` must be `count`.\n\nFor each :py:obj:`~.cudaAtomicOperation` in `*operations`, the\ncorresponding result in `*capabilities` will be a bitmask indicating\nwhich of :py:obj:`~.cudaAtomicOperationCapability` the link supports\nnatively.\n\nReturns :py:obj:`~.cudaErrorInvalidDevice` if `dev` is not valid.\n\nReturns :py:obj:`~.cudaErrorInvalidValue` if `*capabilities` or\n`*operations` is NULL, if `count` is 0, or if any of `*operations` is\nnot valid.\n\nParameters\n----------\noperations : list[:py:obj:`~.cudaAtomicOperation`]\n    Requested operations\ncount : unsigned int\n    Count of requested operations and size of capabilities\ndev : int\n    Device handle\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`\ncapabilities : list[unsigned int]\n    Returned capability details of each requested operation\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetAttribute`, :py:obj:`~.cudaDeviceGetP2PAtomicCapabilities`, :py:obj:`~.cuDeviceGeHostAtomicCapabilities`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_55cudaDeviceGetHostAtomicCapabilities = {"cudaDeviceGetHostAtomicCapabilities", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_55cudaDeviceGetHostAtomicCapabilities, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_54cudaDeviceGetHostAtomicCapabilities};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_55cudaDeviceGetHostAtomicCapabilities(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_operations = 0;
  unsigned int __pyx_v_count;
  int __pyx_v_device;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetHostAtomicCapabilities (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_operations,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_device_2,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, 16111, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16111, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16111, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 16111, __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, "cudaDeviceGetHostAtomicCapabilities", 0) < (0)) __PYX_ERR(0, 16111, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetHostAtomicCapabilities", 1, 3, 3, i); __PYX_ERR(0, 16111, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 16111, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16111, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16111, __pyx_L3_error)
    }
    __pyx_v_operations = values[0];
    __pyx_v_count = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16112, __pyx_L3_error)
    __pyx_v_device = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16112, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetHostAtomicCapabilities", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 16111, __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.runtime.cudaDeviceGetHostAtomicCapabilities", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_54cudaDeviceGetHostAtomicCapabilities(__pyx_self, __pyx_v_operations, __pyx_v_count, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaDeviceGetHostAtomicCapabilities_2generator88(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":16151
 *     """
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaDeviceGetHostAtomicCapabilities_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 16151, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_35cudaDeviceGetHostAtomicCapabilities_2generator88, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[88]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetHostAtomicCapabilit, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 16151, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetHostAtomicCapabilities.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaDeviceGetHostAtomicCapabilities_2generator88(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 16151, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 16151, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16151, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16151, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16151, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16151, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16151, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 16151, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperation); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16151, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v__x, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 16151, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16111
 *     return (_dict_cudaError_t[err], value)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetHostAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int device):
 *     """ Queries details about atomic operations supported between the device and host.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_54cudaDeviceGetHostAtomicCapabilities(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_operations, unsigned int __pyx_v_count, int __pyx_v_device) {
  unsigned int *__pyx_v_cycapabilities;
  PyObject *__pyx_v_pycapabilities = NULL;
  std::vector<enum cudaAtomicOperation>  __pyx_v_cyoperations;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaDeviceGetHostAtomicCapabilities_2generator88 = 0;
  PyObject *__pyx_10genexpr206__pyx_v_pyoperations = NULL;
  unsigned int __pyx_10genexpr207__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  PyObject *(*__pyx_t_10)(PyObject *);
  std::vector<enum cudaAtomicOperation>  __pyx_t_11;
  cudaError_t __pyx_t_12;
  unsigned int __pyx_t_13;
  unsigned int __pyx_t_14;
  unsigned int __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetHostAtomicCapabilities", 0);
  __Pyx_INCREF(__pyx_v_operations);

  /* "cuda/bindings/runtime.pyx":16150
 *     :py:obj:`~.cudaDeviceGetAttribute`, :py:obj:`~.cudaDeviceGetP2PAtomicCapabilities`, :py:obj:`~.cuDeviceGeHostAtomicCapabilities`
 *     """
 *     operations = [] if operations is None else operations             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
*/
  __pyx_t_2 = (__pyx_v_operations == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_operations);
    __pyx_t_1 = __pyx_v_operations;
  }
  __Pyx_DECREF_SET(__pyx_v_operations, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16151
 *     """
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_35cudaDeviceGetHostAtomicCapabilities_genexpr(NULL, __pyx_v_operations); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 16151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":16152
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")             # <<<<<<<<<<<<<<
 *     cdef unsigned int* cycapabilities = NULL
 *     pycapabilities = []
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_operations_is_not_insta};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16152, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 16152, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":16151
 *     """
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
*/
  }

  /* "cuda/bindings/runtime.pyx":16153
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL             # <<<<<<<<<<<<<<
 *     pycapabilities = []
 *     if count != 0:
*/
  __pyx_v_cycapabilities = NULL;

  /* "cuda/bindings/runtime.pyx":16154
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
 *     pycapabilities = []             # <<<<<<<<<<<<<<
 *     if count != 0:
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
*/
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_pycapabilities = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":16155
 *     cdef unsigned int* cycapabilities = NULL
 *     pycapabilities = []
 *     if count != 0:             # <<<<<<<<<<<<<<
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:
*/
  __pyx_t_4 = (__pyx_v_count != 0);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16156
 *     pycapabilities = []
 *     if count != 0:
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))             # <<<<<<<<<<<<<<
 *         if cycapabilities is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
*/
    __pyx_v_cycapabilities = ((unsigned int *)calloc(__pyx_v_count, (sizeof(unsigned int))));

    /* "cuda/bindings/runtime.pyx":16157
 *     if count != 0:
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
*/
    __pyx_t_4 = (__pyx_v_cycapabilities == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":16158
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))             # <<<<<<<<<<<<<<
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
*/
      __pyx_t_1 = NULL;
      __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(__pyx_v_count); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyLong_FromSize_t((sizeof(unsigned int))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16158, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_6};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16158, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 16158, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":16157
 *     if count != 0:
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
*/
    }

    /* "cuda/bindings/runtime.pyx":16155
 *     cdef unsigned int* cycapabilities = NULL
 *     pycapabilities = []
 *     if count != 0:             # <<<<<<<<<<<<<<
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":16159
 *         if cycapabilities is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]             # <<<<<<<<<<<<<<
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
 *     with nogil:
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16159, __pyx_L8_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(PyList_CheckExact(__pyx_v_operations)) || PyTuple_CheckExact(__pyx_v_operations)) {
      __pyx_t_6 = __pyx_v_operations; __Pyx_INCREF(__pyx_t_6);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_operations); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16159, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 16159, __pyx_L8_error)
    }
    for (;;) {
      if (likely(!__pyx_t_10)) {
        if (likely(PyList_CheckExact(__pyx_t_6))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16159, __pyx_L8_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16159, __pyx_L8_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_9));
          #else
          __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16159, __pyx_L8_error)
      } else {
        __pyx_t_1 = __pyx_t_10(__pyx_t_6);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 16159, __pyx_L8_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_10genexpr206__pyx_v_pyoperations, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr206__pyx_v_pyoperations, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16159, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_1))) __PYX_ERR(0, 16159, __pyx_L8_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_10genexpr206__pyx_v_pyoperations); __pyx_10genexpr206__pyx_v_pyoperations = 0;
    goto __pyx_L12_exit_scope;
    __pyx_L8_error:;
    __Pyx_XDECREF(__pyx_10genexpr206__pyx_v_pyoperations); __pyx_10genexpr206__pyx_v_pyoperations = 0;
    goto __pyx_L1_error;
    __pyx_L12_exit_scope:;
  } /* exit inner scope */
  __pyx_t_11 = __pyx_convert_vector_from_py_enum__cudaAtomicOperation(__pyx_t_3); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cyoperations = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":16160
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetHostAtomicCapabilities(cycapabilities, cyoperations.data(), count, device)
*/
  __pyx_t_9 = PyObject_Length(__pyx_v_operations); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16160, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_count > __pyx_t_9);
  if (unlikely(__pyx_t_4)) {
    __pyx_t_6 = NULL;
    __pyx_t_9 = PyObject_Length(__pyx_v_operations); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16160, __pyx_L1_error)
    __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(__pyx_v_count); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_1};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16160, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 16160, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":16161
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetHostAtomicCapabilities(cycapabilities, cyoperations.data(), count, device)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16162
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetHostAtomicCapabilities(cycapabilities, cyoperations.data(), count, device)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
*/
        __pyx_t_12 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetHostAtomicCapabilities(__pyx_v_cycapabilities, __pyx_v_cyoperations.data(), __pyx_v_count, __pyx_v_device); if (unlikely(__pyx_t_12 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16162, __pyx_L15_error)
        __pyx_v_err = __pyx_t_12;
      }

      /* "cuda/bindings/runtime.pyx":16161
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetHostAtomicCapabilities(cycapabilities, cyoperations.data(), count, device)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L16;
        }
        __pyx_L15_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L16:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16163
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetHostAtomicCapabilities(cycapabilities, cyoperations.data(), count, device)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_7};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16163, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1);
    assert(__pyx_t_7);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16163, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16163, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 16163, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16164
 *         err = cyruntime.cudaDeviceGetHostAtomicCapabilities(cycapabilities, cyoperations.data(), count, device)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]             # <<<<<<<<<<<<<<
 *     if cycapabilities is not NULL:
 *         free(cycapabilities)
*/
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16164, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_13 = __pyx_v_count;
      __pyx_t_14 = __pyx_t_13;
      for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) {
        __pyx_10genexpr207__pyx_v_idx = __pyx_t_15;
        __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(((unsigned int)(__pyx_v_cycapabilities[__pyx_10genexpr207__pyx_v_idx]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16164, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 16164, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pycapabilities, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":16163
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetHostAtomicCapabilities(cycapabilities, cyoperations.data(), count, device)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":16165
 *     if cudaError_t(err) == cudaError_t(0):
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:             # <<<<<<<<<<<<<<
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_4 = (__pyx_v_cycapabilities != NULL);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16166
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:
 *         free(cycapabilities)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cycapabilities);

    /* "cuda/bindings/runtime.pyx":16165
 *     if cudaError_t(err) == cudaError_t(0):
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:             # <<<<<<<<<<<<<<
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":16167
 *     if cycapabilities is not NULL:
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pycapabilities)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16168
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pycapabilities)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 16168, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, Py_None) != (0)) __PYX_ERR(0, 16168, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16167
 *     if cycapabilities is not NULL:
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pycapabilities)
*/
  }

  /* "cuda/bindings/runtime.pyx":16169
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pycapabilities)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16169, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pycapabilities);
  __Pyx_GIVEREF(__pyx_v_pycapabilities);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pycapabilities) != (0)) __PYX_ERR(0, 16169, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16111
 *     return (_dict_cudaError_t[err], value)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetHostAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int device):
 *     """ Queries details about atomic operations supported between the device and host.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetHostAtomicCapabilities", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pycapabilities);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_35cudaDeviceGetHostAtomicCapabilities_2generator88);
  __Pyx_XDECREF(__pyx_10genexpr206__pyx_v_pyoperations);
  __Pyx_XDECREF(__pyx_v_operations);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16171
 *     return (_dict_cudaError_t[err], pycapabilities)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetDefaultMemPool(int device):
 *     """ Returns the default mempool of a device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_57cudaDeviceGetDefaultMemPool(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_7runtime_56cudaDeviceGetDefaultMemPool, "cudaDeviceGetDefaultMemPool(int device)\n\nReturns the default mempool of a device.\n\nThe default mempool of a device contains device memory from that\ndevice.\n\nParameters\n----------\ndevice : int\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorNotSupported`\nmemPool : :py:obj:`~.cudaMemPool_t`\n    None\n\nSee Also\n--------\n:py:obj:`~.cuDeviceGetDefaultMemPool`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaMemPoolTrimTo`, :py:obj:`~.cudaMemPoolGetAttribute`, :py:obj:`~.cudaDeviceSetMemPool`, :py:obj:`~.cudaMemPoolSetAttribute`, :py:obj:`~.cudaMemPoolSetAccess`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_57cudaDeviceGetDefaultMemPool = {"cudaDeviceGetDefaultMemPool", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_57cudaDeviceGetDefaultMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_56cudaDeviceGetDefaultMemPool};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_57cudaDeviceGetDefaultMemPool(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
) {
  int __pyx_v_device;
  #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("cudaDeviceGetDefaultMemPool (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_device_2,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, 16171, __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, 16171, __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, "cudaDeviceGetDefaultMemPool", 0) < (0)) __PYX_ERR(0, 16171, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetDefaultMemPool", 1, 1, 1, i); __PYX_ERR(0, 16171, __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, 16171, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16172, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetDefaultMemPool", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16171, __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.runtime.cudaDeviceGetDefaultMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_56cudaDeviceGetDefaultMemPool(__pyx_self, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_56cudaDeviceGetDefaultMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_memPool = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetDefaultMemPool", 0);

  /* "cuda/bindings/runtime.pyx":16194
 *     :py:obj:`~.cuDeviceGetDefaultMemPool`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaMemPoolTrimTo`, :py:obj:`~.cudaMemPoolGetAttribute`, :py:obj:`~.cudaDeviceSetMemPool`, :py:obj:`~.cudaMemPoolSetAttribute`, :py:obj:`~.cudaMemPoolSetAccess`
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16194, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_memPool = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16195
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16196
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetDefaultMemPool(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._pvt_ptr), __pyx_v_device); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16196, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":16195
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16197
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":16198
 *         err = cyruntime.cudaDeviceGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], memPool)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16198, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 16198, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16197
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  }

  /* "cuda/bindings/runtime.pyx":16199
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16199, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_memPool);
  __Pyx_GIVEREF((PyObject *)__pyx_v_memPool);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_memPool)) != (0)) __PYX_ERR(0, 16199, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16171
 *     return (_dict_cudaError_t[err], pycapabilities)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetDefaultMemPool(int device):
 *     """ Returns the default mempool of a device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetDefaultMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_memPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16201
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetMemPool(int device, memPool):
 *     """ Sets the current memory pool of a device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_59cudaDeviceSetMemPool(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_7runtime_58cudaDeviceSetMemPool, "cudaDeviceSetMemPool(int device, memPool)\n\nSets the current memory pool of a device.\n\nThe memory pool must be local to the specified device. Unless a mempool\nis specified in the :py:obj:`~.cudaMallocAsync` call,\n:py:obj:`~.cudaMallocAsync` allocates from the current mempool of the\nprovided stream's device. By default, a device's current memory pool is\nits default memory pool.\n\nParameters\n----------\ndevice : int\n    None\nmemPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorInvalidDevice` :py:obj:`~.cudaErrorNotSupported`\n\nSee Also\n--------\n:py:obj:`~.cuDeviceSetMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaMemPoolCreate`, :py:obj:`~.cudaMemPoolDestroy`, :py:obj:`~.cudaMallocFromPoolAsync`\n\nNotes\n-----\nUse :py:obj:`~.cudaMallocFromPoolAsync` to specify asynchronous allocations from a device different than the one the stream runs on.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_59cudaDeviceSetMemPool = {"cudaDeviceSetMemPool", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_59cudaDeviceSetMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_58cudaDeviceSetMemPool};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_59cudaDeviceSetMemPool(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
) {
  int __pyx_v_device;
  PyObject *__pyx_v_memPool = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceSetMemPool (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_device_2,&__pyx_mstate_global->__pyx_n_u_memPool,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, 16201, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16201, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 16201, __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, "cudaDeviceSetMemPool", 0) < (0)) __PYX_ERR(0, 16201, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetMemPool", 1, 2, 2, i); __PYX_ERR(0, 16201, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 16201, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16201, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16202, __pyx_L3_error)
    __pyx_v_memPool = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceSetMemPool", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 16201, __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.runtime.cudaDeviceSetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_58cudaDeviceSetMemPool(__pyx_self, __pyx_v_device, __pyx_v_memPool);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_58cudaDeviceSetMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_memPool) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceSetMemPool", 0);

  /* "cuda/bindings/runtime.pyx":16232
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":16233
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":16232
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":16234
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":16235
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":16234
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":16237
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16237, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":16238
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetMemPool(device, cymemPool)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16238, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":16239
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetMemPool(device, cymemPool)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16240
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetMemPool(device, cymemPool)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetMemPool(__pyx_v_device, __pyx_v_cymemPool); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16240, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":16239
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetMemPool(device, cymemPool)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16241
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetMemPool(device, cymemPool)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 16241, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16201
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetMemPool(int device, memPool):
 *     """ Sets the current memory pool of a device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceSetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16243
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetMemPool(int device):
 *     """ Gets the current mempool for a device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_61cudaDeviceGetMemPool(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_7runtime_60cudaDeviceGetMemPool, "cudaDeviceGetMemPool(int device)\n\nGets the current mempool for a device.\n\nReturns the last pool provided to :py:obj:`~.cudaDeviceSetMemPool` for\nthis device or the device's default memory pool if\n:py:obj:`~.cudaDeviceSetMemPool` has never been called. By default the\ncurrent mempool is the default mempool for a device, otherwise the\nreturned pool must have been set with :py:obj:`~.cuDeviceSetMemPool` or\n:py:obj:`~.cudaDeviceSetMemPool`.\n\nParameters\n----------\ndevice : int\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorNotSupported`\nmemPool : :py:obj:`~.cudaMemPool_t`\n    None\n\nSee Also\n--------\n:py:obj:`~.cuDeviceGetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceSetMemPool`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_61cudaDeviceGetMemPool = {"cudaDeviceGetMemPool", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_61cudaDeviceGetMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_60cudaDeviceGetMemPool};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_61cudaDeviceGetMemPool(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
) {
  int __pyx_v_device;
  #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("cudaDeviceGetMemPool (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_device_2,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, 16243, __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, 16243, __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, "cudaDeviceGetMemPool", 0) < (0)) __PYX_ERR(0, 16243, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetMemPool", 1, 1, 1, i); __PYX_ERR(0, 16243, __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, 16243, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16244, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetMemPool", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16243, __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.runtime.cudaDeviceGetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_60cudaDeviceGetMemPool(__pyx_self, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_60cudaDeviceGetMemPool(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_memPool = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetMemPool", 0);

  /* "cuda/bindings/runtime.pyx":16270
 *     :py:obj:`~.cuDeviceGetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceSetMemPool`
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16270, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_memPool = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16271
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16272
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetMemPool(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._pvt_ptr), __pyx_v_device); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16272, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":16271
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16273
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":16274
 *         err = cyruntime.cudaDeviceGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], memPool)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16274, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 16274, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16273
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  }

  /* "cuda/bindings/runtime.pyx":16275
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16275, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_memPool);
  __Pyx_GIVEREF((PyObject *)__pyx_v_memPool);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_memPool)) != (0)) __PYX_ERR(0, 16275, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16243
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetMemPool(int device):
 *     """ Gets the current mempool for a device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_memPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16277
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags):
 *     """ Return NvSciSync attributes that this device can support.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_63cudaDeviceGetNvSciSyncAttributes(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_7runtime_62cudaDeviceGetNvSciSyncAttributes, "cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags)\n\nReturn NvSciSync attributes that this device can support.\n\nReturns in `nvSciSyncAttrList`, the properties of NvSciSync that this\nCUDA device, `dev` can support. The returned `nvSciSyncAttrList` can be\nused to create an NvSciSync that matches this device's capabilities.\n\nIf NvSciSyncAttrKey_RequiredPerm field in `nvSciSyncAttrList` is\nalready set this API will return :py:obj:`~.cudaErrorInvalidValue`.\n\nThe applications should set `nvSciSyncAttrList` to a valid\nNvSciSyncAttrList failing which this API will return\n:py:obj:`~.cudaErrorInvalidHandle`.\n\nThe `flags` controls how applications intends to use the NvSciSync\ncreated from the `nvSciSyncAttrList`. The valid flags are:\n\n- :py:obj:`~.cudaNvSciSyncAttrSignal`, specifies that the applications\n  intends to signal an NvSciSync on this CUDA device.\n\n- :py:obj:`~.cudaNvSciSyncAttrWait`, specifies that the applications\n  intends to wait on an NvSciSync on this CUDA device.\n\nAt least one of these flags must be set, failing which the API returns\n:py:obj:`~.cudaErrorInvalidValue`. Both the flags are orthogonal to one\nanother: a developer may set both these flags that allows to set both\nwait and signal specific attributes in the same `nvSciSyncAttrList`.\n\nNote that this API updates the input `nvSciSyncAttrList` with values\nequivalent to the following public attribute key-values:\nNvSciSyncAttrKey_RequiredPerm is set to\n\n- NvSciSyncAccessPerm_SignalOnly if :py:obj:`~.cudaNvSciSyncAttrSignal`\n  is set in `flags`.\n\n- NvSciSyncAccessPerm_WaitOnly if :py:obj:`~.cudaNvSciSyncAttrWait` is\n  set in `flags`.\n\n- NvSciSyncAccessPerm_WaitSignal if both\n  :py:obj:`~.cudaNvSciSyncAttrWait` and\n  :py:obj:`~.cudaNvSciSyncAttrSignal` are set in `flags`.\n  NvSciSyncAttrKey_PrimitiveInfo is set to\n\n- NvSciSyncAttrValPrimitiveType_SysmemSemaphore on any valid `device`.\n\n- NvSciSyncAttrValPrimitiveType_Syncpoint if `device` is ""a Tegra\n  device.\n\n- NvSciSyncAttrValPrimitiveType_SysmemSemaphorePayload64b if `device`\n  is GA10X+. NvSciSyncAttrKey_GpuId is set to the same UUID that is\n  returned in `None` from :py:obj:`~.cudaDeviceGetProperties` for this\n  `device`.\n\n:py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorDeviceUninitialized`,\n:py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidHandle`,\n:py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorNotSupported`,\n:py:obj:`~.cudaErrorMemoryAllocation`\n\nParameters\n----------\nnvSciSyncAttrList : Any\n    Return NvSciSync attributes supported.\ndevice : int\n    Valid Cuda Device to get NvSciSync attributes for.\nflags : int\n    flags describing NvSciSync usage.\n\nReturns\n-------\ncudaError_t\n\n\nSee Also\n--------\n:py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_63cudaDeviceGetNvSciSyncAttributes = {"cudaDeviceGetNvSciSyncAttributes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_63cudaDeviceGetNvSciSyncAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_62cudaDeviceGetNvSciSyncAttributes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_63cudaDeviceGetNvSciSyncAttributes(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_nvSciSyncAttrList = 0;
  int __pyx_v_device;
  int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetNvSciSyncAttributes (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_nvSciSyncAttrList,&__pyx_mstate_global->__pyx_n_u_device_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 16277, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16277, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16277, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 16277, __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, "cudaDeviceGetNvSciSyncAttributes", 0) < (0)) __PYX_ERR(0, 16277, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetNvSciSyncAttributes", 1, 3, 3, i); __PYX_ERR(0, 16277, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 16277, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16277, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16277, __pyx_L3_error)
    }
    __pyx_v_nvSciSyncAttrList = values[0];
    __pyx_v_device = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16278, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_flags == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16278, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetNvSciSyncAttributes", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 16277, __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.runtime.cudaDeviceGetNvSciSyncAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_62cudaDeviceGetNvSciSyncAttributes(__pyx_self, __pyx_v_nvSciSyncAttrList, __pyx_v_device, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_62cudaDeviceGetNvSciSyncAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_nvSciSyncAttrList, int __pyx_v_device, int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cynvSciSyncAttrList = NULL;
  void *__pyx_v_cynvSciSyncAttrList_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetNvSciSyncAttributes", 0);

  /* "cuda/bindings/runtime.pyx":16354
 *     :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`
 *     """
 *     cynvSciSyncAttrList = _HelperInputVoidPtr(nvSciSyncAttrList)             # <<<<<<<<<<<<<<
 *     cdef void* cynvSciSyncAttrList_ptr = <void*><void_ptr>cynvSciSyncAttrList.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_nvSciSyncAttrList};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16354, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cynvSciSyncAttrList = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16355
 *     """
 *     cynvSciSyncAttrList = _HelperInputVoidPtr(nvSciSyncAttrList)
 *     cdef void* cynvSciSyncAttrList_ptr = <void*><void_ptr>cynvSciSyncAttrList.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetNvSciSyncAttributes(cynvSciSyncAttrList_ptr, device, flags)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cynvSciSyncAttrList), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16355, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cynvSciSyncAttrList_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":16356
 *     cynvSciSyncAttrList = _HelperInputVoidPtr(nvSciSyncAttrList)
 *     cdef void* cynvSciSyncAttrList_ptr = <void*><void_ptr>cynvSciSyncAttrList.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetNvSciSyncAttributes(cynvSciSyncAttrList_ptr, device, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16357
 *     cdef void* cynvSciSyncAttrList_ptr = <void*><void_ptr>cynvSciSyncAttrList.cptr
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetNvSciSyncAttributes(cynvSciSyncAttrList_ptr, device, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetNvSciSyncAttributes(__pyx_v_cynvSciSyncAttrList_ptr, __pyx_v_device, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16357, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":16356
 *     cynvSciSyncAttrList = _HelperInputVoidPtr(nvSciSyncAttrList)
 *     cdef void* cynvSciSyncAttrList_ptr = <void*><void_ptr>cynvSciSyncAttrList.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetNvSciSyncAttributes(cynvSciSyncAttrList_ptr, device, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16358
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetNvSciSyncAttributes(cynvSciSyncAttrList_ptr, device, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16358, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16277
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags):
 *     """ Return NvSciSync attributes that this device can support.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetNvSciSyncAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cynvSciSyncAttrList);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16360
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetP2PAttribute(attr not None : cudaDeviceP2PAttr, int srcDevice, int dstDevice):
 *     """ Queries attributes of the link between two devices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_65cudaDeviceGetP2PAttribute(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_7runtime_64cudaDeviceGetP2PAttribute, "cudaDeviceGetP2PAttribute(attr: cudaDeviceP2PAttr, int srcDevice, int dstDevice)\n\nQueries attributes of the link between two devices.\n\nReturns in `*value` the value of the requested attribute `attrib` of\nthe link between `srcDevice` and `dstDevice`. The supported attributes\nare:\n\n- :py:obj:`~.cudaDevP2PAttrPerformanceRank`: A relative value\n  indicating the performance of the link between two devices. Lower\n  value means better performance (0 being the value used for most\n  performant link).\n\n- :py:obj:`~.cudaDevP2PAttrAccessSupported`: 1 if peer access is\n  enabled.\n\n- :py:obj:`~.cudaDevP2PAttrNativeAtomicSupported`: 1 if all native\n  atomic operations over the link are supported.\n\n- :py:obj:`~.cudaDevP2PAttrCudaArrayAccessSupported`: 1 if accessing\n  CUDA arrays over the link is supported.\n\n- :py:obj:`~.cudaDevP2PAttrOnlyPartialNativeAtomicSupported`: 1 if some\n  CUDA-valid atomic operations over the link are supported. Information\n  about specific operations can be retrieved with\n  :py:obj:`~.cudaDeviceGetP2PAtomicCapabilities`.\n\nReturns :py:obj:`~.cudaErrorInvalidDevice` if `srcDevice` or\n`dstDevice` are not valid or if they represent the same device.\n\nReturns :py:obj:`~.cudaErrorInvalidValue` if `attrib` is not valid or\nif `value` is a null pointer.\n\nParameters\n----------\nattrib : :py:obj:`~.cudaDeviceP2PAttr`\n    The requested attribute of the link between `srcDevice` and\n    `dstDevice`.\nsrcDevice : int\n    The source device of the target link.\ndstDevice : int\n    The destination device of the target link.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`\nvalue : int\n    Returned value of the requested attribute\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cuDeviceGetP2PAttribute` :py:obj:`~.cudaDeviceGetP2PAtomicCapabilities`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_65cudaDeviceGetP2PAttribute = {"cudaDeviceGetP2PAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_65cudaDeviceGetP2PAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_64cudaDeviceGetP2PAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_65cudaDeviceGetP2PAttribute(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_attr = 0;
  int __pyx_v_srcDevice;
  int __pyx_v_dstDevice;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetP2PAttribute (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_attr,&__pyx_mstate_global->__pyx_n_u_srcDevice_2,&__pyx_mstate_global->__pyx_n_u_dstDevice_2,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, 16360, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16360, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16360, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 16360, __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, "cudaDeviceGetP2PAttribute", 0) < (0)) __PYX_ERR(0, 16360, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetP2PAttribute", 1, 3, 3, i); __PYX_ERR(0, 16360, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 16360, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16360, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16360, __pyx_L3_error)
    }
    __pyx_v_attr = values[0];
    __pyx_v_srcDevice = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16361, __pyx_L3_error)
    __pyx_v_dstDevice = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16361, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetP2PAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 16360, __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.runtime.cudaDeviceGetP2PAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 16361, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_64cudaDeviceGetP2PAttribute(__pyx_self, __pyx_v_attr, __pyx_v_srcDevice, __pyx_v_dstDevice);

  /* 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_7runtime_64cudaDeviceGetP2PAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_attr, int __pyx_v_srcDevice, int __pyx_v_dstDevice) {
  int __pyx_v_value;
  enum cudaDeviceP2PAttr __pyx_v_cyattr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaDeviceP2PAttr __pyx_t_2;
  cudaError_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetP2PAttribute", 0);

  /* "cuda/bindings/runtime.pyx":16414
 *     :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cuDeviceGetP2PAttribute` :py:obj:`~.cudaDeviceGetP2PAtomicCapabilities`
 *     """
 *     cdef int value = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDeviceP2PAttr cyattr = attr.value
 *     with nogil:
*/
  __pyx_v_value = 0;

  /* "cuda/bindings/runtime.pyx":16415
 *     """
 *     cdef int value = 0
 *     cdef cyruntime.cudaDeviceP2PAttr cyattr = attr.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetP2PAttribute(&value, cyattr, srcDevice, dstDevice)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaDeviceP2PAttr)__Pyx_PyLong_As_enum__cudaDeviceP2PAttr(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16415, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyattr = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":16416
 *     cdef int value = 0
 *     cdef cyruntime.cudaDeviceP2PAttr cyattr = attr.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetP2PAttribute(&value, cyattr, srcDevice, dstDevice)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16417
 *     cdef cyruntime.cudaDeviceP2PAttr cyattr = attr.value
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetP2PAttribute(&value, cyattr, srcDevice, dstDevice)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetP2PAttribute((&__pyx_v_value), __pyx_v_cyattr, __pyx_v_srcDevice, __pyx_v_dstDevice); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16417, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":16416
 *     cdef int value = 0
 *     cdef cyruntime.cudaDeviceP2PAttr cyattr = attr.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetP2PAttribute(&value, cyattr, srcDevice, dstDevice)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16418
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetP2PAttribute(&value, cyattr, srcDevice, dstDevice)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16419
 *         err = cyruntime.cudaDeviceGetP2PAttribute(&value, cyattr, srcDevice, dstDevice)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], value)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16419, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 16419, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16418
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetP2PAttribute(&value, cyattr, srcDevice, dstDevice)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value)
*/
  }

  /* "cuda/bindings/runtime.pyx":16420
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_value); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16420, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 16420, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16360
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetP2PAttribute(attr not None : cudaDeviceP2PAttr, int srcDevice, int dstDevice):
 *     """ Queries attributes of the link between two devices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetP2PAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16422
 *     return (_dict_cudaError_t[err], value)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int srcDevice, int dstDevice):
 *     """ Queries details about atomic operations supported between two devices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_67cudaDeviceGetP2PAtomicCapabilities(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_7runtime_66cudaDeviceGetP2PAtomicCapabilities, "cudaDeviceGetP2PAtomicCapabilities(operations: Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int srcDevice, int dstDevice)\n\nQueries details about atomic operations supported between two devices.\n\nReturns in `*capabilities` the details about requested atomic\n`*operations` over the the link between `srcDevice` and `dstDevice`.\nThe allocated size of `*operations` and `*capabilities` must be\n`count`.\n\nFor each :py:obj:`~.cudaAtomicOperation` in `*operations`, the\ncorresponding result in `*capabilities` will be a bitmask indicating\nwhich of :py:obj:`~.cudaAtomicOperationCapability` the link supports\nnatively.\n\nReturns :py:obj:`~.cudaErrorInvalidDevice` if `srcDevice` or\n`dstDevice` are not valid or if they represent the same device.\n\nReturns :py:obj:`~.cudaErrorInvalidValue` if `*capabilities` or\n`*operations` is NULL, if `count` is 0, or if any of `*operations` is\nnot valid.\n\nParameters\n----------\noperations : list[:py:obj:`~.cudaAtomicOperation`]\n    Requested operations\ncount : unsigned int\n    Count of requested operations and size of capabilities\nsrcDevice : int\n    The source device of the target link\ndstDevice : int\n    The destination device of the target link\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`\ncapabilities : list[unsigned int]\n    Returned capability details of each requested operation\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetP2PAttribute`, :py:obj:`~.cuDeviceGetP2PAttribute`, :py:obj:`~.cuDeviceGetP2PAtomicCapabilities`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_67cudaDeviceGetP2PAtomicCapabilities = {"cudaDeviceGetP2PAtomicCapabilities", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_67cudaDeviceGetP2PAtomicCapabilities, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_66cudaDeviceGetP2PAtomicCapabilities};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_67cudaDeviceGetP2PAtomicCapabilities(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_operations = 0;
  unsigned int __pyx_v_count;
  int __pyx_v_srcDevice;
  int __pyx_v_dstDevice;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetP2PAtomicCapabilities (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_operations,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_srcDevice_2,&__pyx_mstate_global->__pyx_n_u_dstDevice_2,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, 16422, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 16422, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16422, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16422, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 16422, __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, "cudaDeviceGetP2PAtomicCapabilities", 0) < (0)) __PYX_ERR(0, 16422, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetP2PAtomicCapabilities", 1, 4, 4, i); __PYX_ERR(0, 16422, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 16422, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16422, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16422, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 16422, __pyx_L3_error)
    }
    __pyx_v_operations = values[0];
    __pyx_v_count = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16423, __pyx_L3_error)
    __pyx_v_srcDevice = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16423, __pyx_L3_error)
    __pyx_v_dstDevice = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16423, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetP2PAtomicCapabilities", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 16422, __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.runtime.cudaDeviceGetP2PAtomicCapabilities", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_66cudaDeviceGetP2PAtomicCapabilities(__pyx_self, __pyx_v_operations, __pyx_v_count, __pyx_v_srcDevice, __pyx_v_dstDevice);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_34cudaDeviceGetP2PAtomicCapabilities_2generator89(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":16466
 *     """
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_34cudaDeviceGetP2PAtomicCapabilities_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 16466, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_34cudaDeviceGetP2PAtomicCapabilities_2generator89, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[89]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetP2PAtomicCapabiliti, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 16466, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetP2PAtomicCapabilities.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_34cudaDeviceGetP2PAtomicCapabilities_2generator89(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 16466, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 16466, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16466, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16466, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16466, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16466, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 16466, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperation); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v__x, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 16466, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16422
 *     return (_dict_cudaError_t[err], value)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int srcDevice, int dstDevice):
 *     """ Queries details about atomic operations supported between two devices.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_66cudaDeviceGetP2PAtomicCapabilities(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_operations, unsigned int __pyx_v_count, int __pyx_v_srcDevice, int __pyx_v_dstDevice) {
  unsigned int *__pyx_v_cycapabilities;
  PyObject *__pyx_v_pycapabilities = NULL;
  std::vector<enum cudaAtomicOperation>  __pyx_v_cyoperations;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_34cudaDeviceGetP2PAtomicCapabilities_2generator89 = 0;
  PyObject *__pyx_10genexpr209__pyx_v_pyoperations = NULL;
  unsigned int __pyx_10genexpr210__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  PyObject *(*__pyx_t_10)(PyObject *);
  std::vector<enum cudaAtomicOperation>  __pyx_t_11;
  cudaError_t __pyx_t_12;
  unsigned int __pyx_t_13;
  unsigned int __pyx_t_14;
  unsigned int __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetP2PAtomicCapabilities", 0);
  __Pyx_INCREF(__pyx_v_operations);

  /* "cuda/bindings/runtime.pyx":16465
 *     :py:obj:`~.cudaDeviceGetP2PAttribute`, :py:obj:`~.cuDeviceGetP2PAttribute`, :py:obj:`~.cuDeviceGetP2PAtomicCapabilities`
 *     """
 *     operations = [] if operations is None else operations             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
*/
  __pyx_t_2 = (__pyx_v_operations == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16465, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_operations);
    __pyx_t_1 = __pyx_v_operations;
  }
  __Pyx_DECREF_SET(__pyx_v_operations, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16466
 *     """
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_34cudaDeviceGetP2PAtomicCapabilities_genexpr(NULL, __pyx_v_operations); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 16466, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":16467
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")             # <<<<<<<<<<<<<<
 *     cdef unsigned int* cycapabilities = NULL
 *     pycapabilities = []
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_operations_is_not_insta};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16467, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 16467, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":16466
 *     """
 *     operations = [] if operations is None else operations
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
*/
  }

  /* "cuda/bindings/runtime.pyx":16468
 *     if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations):
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL             # <<<<<<<<<<<<<<
 *     pycapabilities = []
 *     if count != 0:
*/
  __pyx_v_cycapabilities = NULL;

  /* "cuda/bindings/runtime.pyx":16469
 *         raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]")
 *     cdef unsigned int* cycapabilities = NULL
 *     pycapabilities = []             # <<<<<<<<<<<<<<
 *     if count != 0:
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
*/
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_pycapabilities = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":16470
 *     cdef unsigned int* cycapabilities = NULL
 *     pycapabilities = []
 *     if count != 0:             # <<<<<<<<<<<<<<
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:
*/
  __pyx_t_4 = (__pyx_v_count != 0);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16471
 *     pycapabilities = []
 *     if count != 0:
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))             # <<<<<<<<<<<<<<
 *         if cycapabilities is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
*/
    __pyx_v_cycapabilities = ((unsigned int *)calloc(__pyx_v_count, (sizeof(unsigned int))));

    /* "cuda/bindings/runtime.pyx":16472
 *     if count != 0:
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
*/
    __pyx_t_4 = (__pyx_v_cycapabilities == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":16473
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))             # <<<<<<<<<<<<<<
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
*/
      __pyx_t_1 = NULL;
      __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(__pyx_v_count); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyLong_FromSize_t((sizeof(unsigned int))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16473, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_6};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16473, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 16473, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":16472
 *     if count != 0:
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
*/
    }

    /* "cuda/bindings/runtime.pyx":16470
 *     cdef unsigned int* cycapabilities = NULL
 *     pycapabilities = []
 *     if count != 0:             # <<<<<<<<<<<<<<
 *         cycapabilities = <unsigned int*>calloc(count, sizeof(unsigned int))
 *         if cycapabilities is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":16474
 *         if cycapabilities is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]             # <<<<<<<<<<<<<<
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
 *     with nogil:
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16474, __pyx_L8_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(PyList_CheckExact(__pyx_v_operations)) || PyTuple_CheckExact(__pyx_v_operations)) {
      __pyx_t_6 = __pyx_v_operations; __Pyx_INCREF(__pyx_t_6);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_operations); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16474, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 16474, __pyx_L8_error)
    }
    for (;;) {
      if (likely(!__pyx_t_10)) {
        if (likely(PyList_CheckExact(__pyx_t_6))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16474, __pyx_L8_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 16474, __pyx_L8_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_9));
          #else
          __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16474, __pyx_L8_error)
      } else {
        __pyx_t_1 = __pyx_t_10(__pyx_t_6);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 16474, __pyx_L8_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_10genexpr209__pyx_v_pyoperations, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr209__pyx_v_pyoperations, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16474, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_1))) __PYX_ERR(0, 16474, __pyx_L8_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_10genexpr209__pyx_v_pyoperations); __pyx_10genexpr209__pyx_v_pyoperations = 0;
    goto __pyx_L12_exit_scope;
    __pyx_L8_error:;
    __Pyx_XDECREF(__pyx_10genexpr209__pyx_v_pyoperations); __pyx_10genexpr209__pyx_v_pyoperations = 0;
    goto __pyx_L1_error;
    __pyx_L12_exit_scope:;
  } /* exit inner scope */
  __pyx_t_11 = __pyx_convert_vector_from_py_enum__cudaAtomicOperation(__pyx_t_3); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 16474, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cyoperations = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":16475
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(count) + 'x' + str(sizeof(unsigned int)))
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetP2PAtomicCapabilities(cycapabilities, cyoperations.data(), count, srcDevice, dstDevice)
*/
  __pyx_t_9 = PyObject_Length(__pyx_v_operations); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16475, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_count > __pyx_t_9);
  if (unlikely(__pyx_t_4)) {
    __pyx_t_6 = NULL;
    __pyx_t_9 = PyObject_Length(__pyx_v_operations); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 16475, __pyx_L1_error)
    __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(__pyx_v_count); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_1};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16475, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 16475, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":16476
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetP2PAtomicCapabilities(cycapabilities, cyoperations.data(), count, srcDevice, dstDevice)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16477
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetP2PAtomicCapabilities(cycapabilities, cyoperations.data(), count, srcDevice, dstDevice)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
*/
        __pyx_t_12 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetP2PAtomicCapabilities(__pyx_v_cycapabilities, __pyx_v_cyoperations.data(), __pyx_v_count, __pyx_v_srcDevice, __pyx_v_dstDevice); if (unlikely(__pyx_t_12 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16477, __pyx_L15_error)
        __pyx_v_err = __pyx_t_12;
      }

      /* "cuda/bindings/runtime.pyx":16476
 *     cdef vector[cyruntime.cudaAtomicOperation] cyoperations = [pyoperations.value for pyoperations in (operations)]
 *     if count > len(operations): raise RuntimeError("List is too small: " + str(len(operations)) + " < " + str(count))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetP2PAtomicCapabilities(cycapabilities, cyoperations.data(), count, srcDevice, dstDevice)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L16;
        }
        __pyx_L15_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L16:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16478
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetP2PAtomicCapabilities(cycapabilities, cyoperations.data(), count, srcDevice, dstDevice)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 16478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_7};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1);
    assert(__pyx_t_7);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16478, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 16478, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16479
 *         err = cyruntime.cudaDeviceGetP2PAtomicCapabilities(cycapabilities, cyoperations.data(), count, srcDevice, dstDevice)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]             # <<<<<<<<<<<<<<
 *     if cycapabilities is not NULL:
 *         free(cycapabilities)
*/
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16479, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_13 = __pyx_v_count;
      __pyx_t_14 = __pyx_t_13;
      for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) {
        __pyx_10genexpr210__pyx_v_idx = __pyx_t_15;
        __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(((unsigned int)(__pyx_v_cycapabilities[__pyx_10genexpr210__pyx_v_idx]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16479, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 16479, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pycapabilities, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":16478
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetP2PAtomicCapabilities(cycapabilities, cyoperations.data(), count, srcDevice, dstDevice)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":16480
 *     if cudaError_t(err) == cudaError_t(0):
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:             # <<<<<<<<<<<<<<
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_4 = (__pyx_v_cycapabilities != NULL);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16481
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:
 *         free(cycapabilities)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cycapabilities);

    /* "cuda/bindings/runtime.pyx":16480
 *     if cudaError_t(err) == cudaError_t(0):
 *         pycapabilities = [<unsigned int>cycapabilities[idx] for idx in range(count)]
 *     if cycapabilities is not NULL:             # <<<<<<<<<<<<<<
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":16482
 *     if cycapabilities is not NULL:
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pycapabilities)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":16483
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pycapabilities)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16483, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16483, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16483, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16483, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 16483, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, Py_None) != (0)) __PYX_ERR(0, 16483, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16482
 *     if cycapabilities is not NULL:
 *         free(cycapabilities)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pycapabilities)
*/
  }

  /* "cuda/bindings/runtime.pyx":16484
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pycapabilities)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16484, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pycapabilities);
  __Pyx_GIVEREF(__pyx_v_pycapabilities);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pycapabilities) != (0)) __PYX_ERR(0, 16484, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16422
 *     return (_dict_cudaError_t[err], value)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int srcDevice, int dstDevice):
 *     """ Queries details about atomic operations supported between two devices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetP2PAtomicCapabilities", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pycapabilities);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_34cudaDeviceGetP2PAtomicCapabilities_2generator89);
  __Pyx_XDECREF(__pyx_10genexpr209__pyx_v_pyoperations);
  __Pyx_XDECREF(__pyx_v_operations);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16486
 *     return (_dict_cudaError_t[err], pycapabilities)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaChooseDevice(prop : Optional[cudaDeviceProp]):
 *     """ Select compute-device which best matches criteria.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_69cudaChooseDevice(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_7runtime_68cudaChooseDevice, "cudaChooseDevice(cudaDeviceProp prop: Optional[cudaDeviceProp])\n\nSelect compute-device which best matches criteria.\n\nReturns in `*device` the device which has properties that best match\n`*prop`.\n\nParameters\n----------\nprop : :py:obj:`~.cudaDeviceProp`\n    Desired device properties\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ndevice : int\n    Device with best match\n\nSee Also\n--------\n:py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaInitDevice`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_69cudaChooseDevice = {"cudaChooseDevice", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_69cudaChooseDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_68cudaChooseDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_69cudaChooseDevice(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_prop = 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("cudaChooseDevice (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_prop,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, 16486, __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, 16486, __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, "cudaChooseDevice", 0) < (0)) __PYX_ERR(0, 16486, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaChooseDevice", 1, 1, 1, i); __PYX_ERR(0, 16486, __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, 16486, __pyx_L3_error)
    }
    __pyx_v_prop = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaChooseDevice", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16486, __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.runtime.cudaChooseDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_prop), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp, 1, "prop", 0))) __PYX_ERR(0, 16487, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_68cudaChooseDevice(__pyx_self, __pyx_v_prop);

  /* 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_7runtime_68cudaChooseDevice(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *__pyx_v_prop) {
  int __pyx_v_device;
  struct cudaDeviceProp *__pyx_v_cyprop_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct cudaDeviceProp *__pyx_t_1;
  int __pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaChooseDevice", 0);

  /* "cuda/bindings/runtime.pyx":16509
 *     :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaInitDevice`
 *     """
 *     cdef int device = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDeviceProp* cyprop_ptr = prop._pvt_ptr if prop is not None else NULL
 *     with nogil:
*/
  __pyx_v_device = 0;

  /* "cuda/bindings/runtime.pyx":16510
 *     """
 *     cdef int device = 0
 *     cdef cyruntime.cudaDeviceProp* cyprop_ptr = prop._pvt_ptr if prop is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaChooseDevice(&device, cyprop_ptr)
*/
  __pyx_t_2 = (((PyObject *)__pyx_v_prop) != Py_None);
  if (__pyx_t_2) {
    __pyx_t_1 = __pyx_v_prop->_pvt_ptr;
  } else {
    __pyx_t_1 = NULL;
  }
  __pyx_v_cyprop_ptr = __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":16511
 *     cdef int device = 0
 *     cdef cyruntime.cudaDeviceProp* cyprop_ptr = prop._pvt_ptr if prop is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaChooseDevice(&device, cyprop_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16512
 *     cdef cyruntime.cudaDeviceProp* cyprop_ptr = prop._pvt_ptr if prop is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaChooseDevice(&device, cyprop_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaChooseDevice((&__pyx_v_device), __pyx_v_cyprop_ptr); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16512, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":16511
 *     cdef int device = 0
 *     cdef cyruntime.cudaDeviceProp* cyprop_ptr = prop._pvt_ptr if prop is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaChooseDevice(&device, cyprop_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16513
 *     with nogil:
 *         err = cyruntime.cudaChooseDevice(&device, cyprop_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":16514
 *         err = cyruntime.cudaChooseDevice(&device, cyprop_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], device)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16514, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 16514, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16513
 *     with nogil:
 *         err = cyruntime.cudaChooseDevice(&device, cyprop_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  }

  /* "cuda/bindings/runtime.pyx":16515
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_device); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 16515, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 16515, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16486
 *     return (_dict_cudaError_t[err], pycapabilities)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaChooseDevice(prop : Optional[cudaDeviceProp]):
 *     """ Select compute-device which best matches criteria.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaChooseDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16517
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags):
 *     """ Initialize device to be used for GPU executions.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_71cudaInitDevice(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_7runtime_70cudaInitDevice, "cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags)\n\nInitialize device to be used for GPU executions.\n\nThis function will initialize the CUDA Runtime structures and primary\ncontext on `device` when called, but the context will not be made\ncurrent to `device`.\n\nWhen :py:obj:`~.cudaInitDeviceFlagsAreValid` is set in `flags`,\ndeviceFlags are applied to the requested device. The values of\ndeviceFlags match those of the flags parameters in\n:py:obj:`~.cudaSetDeviceFlags`. The effect may be verified by\n:py:obj:`~.cudaGetDeviceFlags`.\n\nThis function will return an error if the device is in\n:py:obj:`~.cudaComputeModeExclusiveProcess` and is occupied by another\nprocess or if the device is in :py:obj:`~.cudaComputeModeProhibited`.\n\nParameters\n----------\ndevice : int\n    Device on which the runtime will initialize itself.\ndeviceFlags : unsigned int\n    Parameters for device operation.\nflags : unsigned int\n    Flags for controlling the device initialization.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`,\n\nSee Also\n--------\n:py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaSetDevice` :py:obj:`~.cuCtxSetCurrent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_71cudaInitDevice = {"cudaInitDevice", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_71cudaInitDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_70cudaInitDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_71cudaInitDevice(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
) {
  int __pyx_v_device;
  unsigned int __pyx_v_deviceFlags;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaInitDevice (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_device_2,&__pyx_mstate_global->__pyx_n_u_deviceFlags,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 16517, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16517, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16517, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 16517, __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, "cudaInitDevice", 0) < (0)) __PYX_ERR(0, 16517, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaInitDevice", 1, 3, 3, i); __PYX_ERR(0, 16517, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 16517, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16517, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 16517, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16518, __pyx_L3_error)
    __pyx_v_deviceFlags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_deviceFlags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16518, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16518, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaInitDevice", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 16517, __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.runtime.cudaInitDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_70cudaInitDevice(__pyx_self, __pyx_v_device, __pyx_v_deviceFlags, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_70cudaInitDevice(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, unsigned int __pyx_v_deviceFlags, unsigned int __pyx_v_flags) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaInitDevice", 0);

  /* "cuda/bindings/runtime.pyx":16553
 *     :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaSetDevice` :py:obj:`~.cuCtxSetCurrent`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaInitDevice(device, deviceFlags, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16554
 *     """
 *     with nogil:
 *         err = cyruntime.cudaInitDevice(device, deviceFlags, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaInitDevice(__pyx_v_device, __pyx_v_deviceFlags, __pyx_v_flags); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16554, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":16553
 *     :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaSetDevice` :py:obj:`~.cuCtxSetCurrent`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaInitDevice(device, deviceFlags, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16555
 *     with nogil:
 *         err = cyruntime.cudaInitDevice(device, deviceFlags, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 16555, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16517
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags):
 *     """ Initialize device to be used for GPU executions.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaInitDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16557
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSetDevice(int device):
 *     """ Set device to be used for GPU executions.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_73cudaSetDevice(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_7runtime_72cudaSetDevice, "cudaSetDevice(int device)\n\nSet device to be used for GPU executions.\n\nSets `device` as the current device for the calling host thread. Valid\ndevice id's are 0 to (:py:obj:`~.cudaGetDeviceCount()` - 1).\n\nAny device memory subsequently allocated from this host thread using\n:py:obj:`~.cudaMalloc()`, :py:obj:`~.cudaMallocPitch()` or\n:py:obj:`~.cudaMallocArray()` will be physically resident on `device`.\nAny host memory allocated from this host thread using\n:py:obj:`~.cudaMallocHost()` or :py:obj:`~.cudaHostAlloc()` or\n:py:obj:`~.cudaHostRegister()` will have its lifetime associated with\n`device`. Any streams or events created from this host thread will be\nassociated with `device`. Any kernels launched from this host thread\nusing the <<<>>> operator or :py:obj:`~.cudaLaunchKernel()` will be\nexecuted on `device`.\n\nThis call may be made from any host thread, to any device, and at any\ntime. This function will do no synchronization with the previous or new\ndevice, and should only take significant time when it initializes the\nruntime's context state. This call will bind the primary context of the\nspecified device to the calling thread and all the subsequent memory\nallocations, stream and event creations, and kernel launches will be\nassociated with the primary context. This function will also\nimmediately initialize the runtime state on the primary context, and\nthe context will be current on `device` immediately. This function will\nreturn an error if the device is in\n:py:obj:`~.cudaComputeModeExclusiveProcess` and is occupied by another\nprocess or if the device is in :py:obj:`~.cudaComputeModeProhibited`.\n\nIt is not required to call :py:obj:`~.cudaInitDevice` before using this\nfunction.\n\nParameters\n----------\ndevice : int\n    Device on which the active host thread should execute the device\n    code.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorDeviceUnavailable`,\n""\nSee Also\n--------\n:py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuCtxSetCurrent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_73cudaSetDevice = {"cudaSetDevice", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_73cudaSetDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_72cudaSetDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_73cudaSetDevice(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
) {
  int __pyx_v_device;
  #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("cudaSetDevice (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_device_2,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, 16557, __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, 16557, __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, "cudaSetDevice", 0) < (0)) __PYX_ERR(0, 16557, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaSetDevice", 1, 1, 1, i); __PYX_ERR(0, 16557, __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, 16557, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16558, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaSetDevice", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16557, __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.runtime.cudaSetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_72cudaSetDevice(__pyx_self, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_72cudaSetDevice(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaSetDevice", 0);

  /* "cuda/bindings/runtime.pyx":16606
 *     :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuCtxSetCurrent`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaSetDevice(device)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16607
 *     """
 *     with nogil:
 *         err = cyruntime.cudaSetDevice(device)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaSetDevice(__pyx_v_device); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16607, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":16606
 *     :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuCtxSetCurrent`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaSetDevice(device)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16608
 *     with nogil:
 *         err = cyruntime.cudaSetDevice(device)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 16608, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16557
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSetDevice(int device):
 *     """ Set device to be used for GPU executions.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16610
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDevice():
 *     """ Returns which device is currently being used.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_75cudaGetDevice(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_74cudaGetDevice, "cudaGetDevice()\n\nReturns which device is currently being used.\n\nReturns in `*device` the current device for the calling host thread.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorDeviceUnavailable`,\ndevice : int\n    Returns the device on which the active host thread executes the\n    device code.\n\nSee Also\n--------\n:py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cuCtxGetCurrent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_75cudaGetDevice = {"cudaGetDevice", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_75cudaGetDevice, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_74cudaGetDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_75cudaGetDevice(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGetDevice (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_74cudaGetDevice(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_74cudaGetDevice(CYTHON_UNUSED PyObject *__pyx_self) {
  int __pyx_v_device;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetDevice", 0);

  /* "cuda/bindings/runtime.pyx":16628
 *     :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cuCtxGetCurrent`
 *     """
 *     cdef int device = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetDevice(&device)
*/
  __pyx_v_device = 0;

  /* "cuda/bindings/runtime.pyx":16629
 *     """
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDevice(&device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16630
 *     cdef int device = 0
 *     with nogil:
 *         err = cyruntime.cudaGetDevice(&device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetDevice((&__pyx_v_device)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16630, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":16629
 *     """
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDevice(&device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16631
 *     with nogil:
 *         err = cyruntime.cudaGetDevice(&device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":16632
 *         err = cyruntime.cudaGetDevice(&device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], device)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 16632, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 16632, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16631
 *     with nogil:
 *         err = cyruntime.cudaGetDevice(&device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  }

  /* "cuda/bindings/runtime.pyx":16633
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_device); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 16633, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 16633, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16610
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDevice():
 *     """ Returns which device is currently being used.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16635
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSetDeviceFlags(unsigned int flags):
 *     """ Sets flags to be used for device executions.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_77cudaSetDeviceFlags(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_7runtime_76cudaSetDeviceFlags, "cudaSetDeviceFlags(unsigned int flags)\n\nSets flags to be used for device executions.\n\nRecords `flags` as the flags for the current device. If the current\ndevice has been set and that device has already been initialized, the\nprevious flags are overwritten. If the current device has not been\ninitialized, it is initialized with the provided flags. If no device\nhas been made current to the calling thread, a default device is\nselected and initialized with the provided flags.\n\nThe three LSBs of the `flags` parameter can be used to control how the\nCPU thread interacts with the OS scheduler when waiting for results\nfrom the device.\n\n- :py:obj:`~.cudaDeviceScheduleAuto`: The default value if the `flags`\n  parameter is zero, uses a heuristic based on the number of active\n  CUDA contexts in the process `C` and the number of logical processors\n  in the system `P`. If `C` > `P`, then CUDA will yield to other OS\n  threads when waiting for the device, otherwise CUDA will not yield\n  while waiting for results and actively spin on the processor.\n  Additionally, on Tegra devices, :py:obj:`~.cudaDeviceScheduleAuto`\n  uses a heuristic based on the power profile of the platform and may\n  choose :py:obj:`~.cudaDeviceScheduleBlockingSync` for low-powered\n  devices.\n\n- :py:obj:`~.cudaDeviceScheduleSpin`: Instruct CUDA to actively spin\n  when waiting for results from the device. This can decrease latency\n  when waiting for the device, but may lower the performance of CPU\n  threads if they are performing work in parallel with the CUDA thread.\n\n- :py:obj:`~.cudaDeviceScheduleYield`: Instruct CUDA to yield its\n  thread when waiting for results from the device. This can increase\n  latency when waiting for the device, but can increase the performance\n  of CPU threads performing work in parallel with the device.\n\n- :py:obj:`~.cudaDeviceScheduleBlockingSync`: Instruct CUDA to block\n  the CPU thread on a synchronization primitive when waiting for the\n  device t""o finish work.\n\n- :py:obj:`~.cudaDeviceBlockingSync`: Instruct CUDA to block the CPU\n  thread on a synchronization primitive when waiting for the device to\n  finish work.   :py:obj:`~.Deprecated:` This flag was deprecated as of\n  CUDA 4.0 and replaced with\n  :py:obj:`~.cudaDeviceScheduleBlockingSync`.\n\n- :py:obj:`~.cudaDeviceMapHost`: This flag enables allocating pinned\n  host memory that is accessible to the device. It is implicit for the\n  runtime but may be absent if a context is created using the driver\n  API. If this flag is not set, :py:obj:`~.cudaHostGetDevicePointer()`\n  will always return a failure code.\n\n- :py:obj:`~.cudaDeviceLmemResizeToMax`: Instruct CUDA to not reduce\n  local memory after resizing local memory for a kernel. This can\n  prevent thrashing by local memory allocations when launching many\n  kernels with high local memory usage at the cost of potentially\n  increased memory usage.   :py:obj:`~.Deprecated:` This flag is\n  deprecated and the behavior enabled by this flag is now the default\n  and cannot be disabled.\n\n- :py:obj:`~.cudaDeviceSyncMemops`: Ensures that synchronous memory\n  operations initiated on this context will always synchronize. See\n  further documentation in the section titled \"API Synchronization\n  behavior\" to learn more about cases when synchronous memory\n  operations can exhibit asynchronous behavior.\n\nParameters\n----------\nflags : unsigned int\n    Parameters for device operation\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGetDeviceFlags`, :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaSetValidDevices`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cuDevicePrimaryCtxSetFlags`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_77cudaSetDeviceFlags = {"cudaSetDeviceFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_77cudaSetDeviceFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_76cudaSetDeviceFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_77cudaSetDeviceFlags(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
) {
  unsigned int __pyx_v_flags;
  #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("cudaSetDeviceFlags (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_flags_2,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, 16635, __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, 16635, __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, "cudaSetDeviceFlags", 0) < (0)) __PYX_ERR(0, 16635, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaSetDeviceFlags", 1, 1, 1, i); __PYX_ERR(0, 16635, __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, 16635, __pyx_L3_error)
    }
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16636, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaSetDeviceFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16635, __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.runtime.cudaSetDeviceFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_76cudaSetDeviceFlags(__pyx_self, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_76cudaSetDeviceFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaSetDeviceFlags", 0);

  /* "cuda/bindings/runtime.pyx":16715
 *     :py:obj:`~.cudaGetDeviceFlags`, :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaSetValidDevices`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cuDevicePrimaryCtxSetFlags`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaSetDeviceFlags(flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16716
 *     """
 *     with nogil:
 *         err = cyruntime.cudaSetDeviceFlags(flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaSetDeviceFlags(__pyx_v_flags); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16716, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":16715
 *     :py:obj:`~.cudaGetDeviceFlags`, :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaSetValidDevices`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cuDevicePrimaryCtxSetFlags`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaSetDeviceFlags(flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16717
 *     with nogil:
 *         err = cyruntime.cudaSetDeviceFlags(flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 16717, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16635
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSetDeviceFlags(unsigned int flags):
 *     """ Sets flags to be used for device executions.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSetDeviceFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16719
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceFlags():
 *     """ Gets the flags for the current device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_79cudaGetDeviceFlags(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_78cudaGetDeviceFlags, "cudaGetDeviceFlags()\n\nGets the flags for the current device.\n\nReturns in `flags` the flags for the current device. If there is a\ncurrent device for the calling thread, the flags for the device are\nreturned. If there is no current device, the flags for the first device\nare returned, which may be the default flags. Compare to the behavior\nof :py:obj:`~.cudaSetDeviceFlags`.\n\nTypically, the flags returned should match the behavior that will be\nseen if the calling thread uses a device after this call, without any\nchange to the flags or current device inbetween by this or another\nthread. Note that if the device is not initialized, it is possible for\nanother thread to change the flags for the current device before it is\ninitialized. Additionally, when using exclusive mode, if this thread\nhas not requested a specific device, it may use a device other than the\nfirst device, contrary to the assumption made by this function.\n\nIf a context has been created via the driver API and is current to the\ncalling thread, the flags for that context are always returned.\n\nFlags returned by this function may specifically include\n:py:obj:`~.cudaDeviceMapHost` even though it is not accepted by\n:py:obj:`~.cudaSetDeviceFlags` because it is implicit in runtime API\nflags. The reason for this is that the current context may have been\ncreated via the driver API in which case the flag is not implicit and\nmay be unset.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\nflags : unsigned int\n    Pointer to store the device flags\n\nSee Also\n--------\n:py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuCtxGetFlags`, :py:obj:`~.cuDevicePrimaryCtxGetState`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_79cudaGetDeviceFlags = {"cudaGetDeviceFlags", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_79cudaGetDeviceFlags, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_78cudaGetDeviceFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_79cudaGetDeviceFlags(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGetDeviceFlags (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_78cudaGetDeviceFlags(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_78cudaGetDeviceFlags(CYTHON_UNUSED PyObject *__pyx_self) {
  unsigned int __pyx_v_flags;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetDeviceFlags", 0);

  /* "cuda/bindings/runtime.pyx":16759
 *     :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuCtxGetFlags`, :py:obj:`~.cuDevicePrimaryCtxGetState`
 *     """
 *     cdef unsigned int flags = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceFlags(&flags)
*/
  __pyx_v_flags = 0;

  /* "cuda/bindings/runtime.pyx":16760
 *     """
 *     cdef unsigned int flags = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDeviceFlags(&flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16761
 *     cdef unsigned int flags = 0
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceFlags(&flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceFlags((&__pyx_v_flags)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16761, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":16760
 *     """
 *     cdef unsigned int flags = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDeviceFlags(&flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16762
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceFlags(&flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":16763
 *         err = cyruntime.cudaGetDeviceFlags(&flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], flags)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 16763, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 16763, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16762
 *     with nogil:
 *         err = cyruntime.cudaGetDeviceFlags(&flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)
*/
  }

  /* "cuda/bindings/runtime.pyx":16764
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_int(__pyx_v_flags); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 16764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 16764, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 16764, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16719
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceFlags():
 *     """ Gets the flags for the current device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetDeviceFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16766
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreate():
 *     """ Create an asynchronous stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_81cudaStreamCreate(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_80cudaStreamCreate, "cudaStreamCreate()\n\nCreate an asynchronous stream.\n\nCreates a new asynchronous stream on the context that is current to the\ncalling host thread. If no context is current to the calling host\nthread, then the primary context for a device is selected, made current\nto the calling thread, and initialized before creating a stream on it.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npStream : :py:obj:`~.cudaStream_t`\n    Pointer to new stream identifier\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cudaStreamGetDevice`, :py:obj:`~.cudaStreamGetDevResource`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_81cudaStreamCreate = {"cudaStreamCreate", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_81cudaStreamCreate, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_80cudaStreamCreate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_81cudaStreamCreate(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamCreate (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_80cudaStreamCreate(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_80cudaStreamCreate(CYTHON_UNUSED PyObject *__pyx_self) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *__pyx_v_pStream = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamCreate", 0);

  /* "cuda/bindings/runtime.pyx":16786
 *     :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cudaStreamGetDevice`, :py:obj:`~.cudaStreamGetDevResource`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamCreate`
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamCreate(<cyruntime.cudaStream_t*>pStream._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16786, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pStream = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16787
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamCreate(<cyruntime.cudaStream_t*>pStream._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16788
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:
 *         err = cyruntime.cudaStreamCreate(<cyruntime.cudaStream_t*>pStream._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreate(((cudaStream_t *)__pyx_v_pStream->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16788, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":16787
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamCreate(<cyruntime.cudaStream_t*>pStream._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16789
 *     with nogil:
 *         err = cyruntime.cudaStreamCreate(<cyruntime.cudaStream_t*>pStream._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":16790
 *         err = cyruntime.cudaStreamCreate(<cyruntime.cudaStream_t*>pStream._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pStream)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16790, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 16790, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16789
 *     with nogil:
 *         err = cyruntime.cudaStreamCreate(<cyruntime.cudaStream_t*>pStream._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)
*/
  }

  /* "cuda/bindings/runtime.pyx":16791
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16791, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pStream);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pStream);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_pStream)) != (0)) __PYX_ERR(0, 16791, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16766
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreate():
 *     """ Create an asynchronous stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16793
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreateWithFlags(unsigned int flags):
 *     """ Create an asynchronous stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_83cudaStreamCreateWithFlags(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_7runtime_82cudaStreamCreateWithFlags, "cudaStreamCreateWithFlags(unsigned int flags)\n\nCreate an asynchronous stream.\n\nCreates a new asynchronous stream on the context that is current to the\ncalling host thread. If no context is current to the calling host\nthread, then the primary context for a device is selected, made current\nto the calling thread, and initialized before creating a stream on it.\nThe `flags` argument determines the behaviors of the stream. Valid\nvalues for `flags` are\n\n- :py:obj:`~.cudaStreamDefault`: Default stream creation flag.\n\n- :py:obj:`~.cudaStreamNonBlocking`: Specifies that work running in the\n  created stream may run concurrently with work in stream 0 (the NULL\n  stream), and that the created stream should perform no implicit\n  synchronization with stream 0.\n\nParameters\n----------\nflags : unsigned int\n    Parameters for stream creation\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npStream : :py:obj:`~.cudaStream_t`\n    Pointer to new stream identifier\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cudaStreamGetDevice`, :py:obj:`~.cudaStreamGetDevResource`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_83cudaStreamCreateWithFlags = {"cudaStreamCreateWithFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_83cudaStreamCreateWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_82cudaStreamCreateWithFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_83cudaStreamCreateWithFlags(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
) {
  unsigned int __pyx_v_flags;
  #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("cudaStreamCreateWithFlags (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_flags_2,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, 16793, __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, 16793, __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, "cudaStreamCreateWithFlags", 0) < (0)) __PYX_ERR(0, 16793, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamCreateWithFlags", 1, 1, 1, i); __PYX_ERR(0, 16793, __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, 16793, __pyx_L3_error)
    }
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16794, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamCreateWithFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16793, __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.runtime.cudaStreamCreateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_82cudaStreamCreateWithFlags(__pyx_self, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_82cudaStreamCreateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *__pyx_v_pStream = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamCreateWithFlags", 0);

  /* "cuda/bindings/runtime.pyx":16827
 *     :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cudaStreamGetDevice`, :py:obj:`~.cudaStreamGetDevResource`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamCreate`
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamCreateWithFlags(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16827, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pStream = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16828
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamCreateWithFlags(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16829
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:
 *         err = cyruntime.cudaStreamCreateWithFlags(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreateWithFlags(((cudaStream_t *)__pyx_v_pStream->__pyx_base._pvt_ptr), __pyx_v_flags); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16829, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":16828
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamCreateWithFlags(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16830
 *     with nogil:
 *         err = cyruntime.cudaStreamCreateWithFlags(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":16831
 *         err = cyruntime.cudaStreamCreateWithFlags(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pStream)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16831, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16831, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16831, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16831, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16831, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 16831, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16830
 *     with nogil:
 *         err = cyruntime.cudaStreamCreateWithFlags(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)
*/
  }

  /* "cuda/bindings/runtime.pyx":16832
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16832, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pStream);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pStream);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_pStream)) != (0)) __PYX_ERR(0, 16832, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16793
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreateWithFlags(unsigned int flags):
 *     """ Create an asynchronous stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCreateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16834
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreateWithPriority(unsigned int flags, int priority):
 *     """ Create an asynchronous stream with the specified priority.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_85cudaStreamCreateWithPriority(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_7runtime_84cudaStreamCreateWithPriority, "cudaStreamCreateWithPriority(unsigned int flags, int priority)\n\nCreate an asynchronous stream with the specified priority.\n\nCreates a stream with the specified priority and returns a handle in\n`pStream`. The stream is created on the context that is current to the\ncalling host thread. If no context is current to the calling host\nthread, then the primary context for a device is selected, made current\nto the calling thread, and initialized before creating a stream on it.\nThis affects the scheduling priority of work in the stream. Priorities\nprovide a hint to preferentially run work with higher priority when\npossible, but do not preempt already-running work or provide any other\nfunctional guarantee on execution order.\n\n`priority` follows a convention where lower numbers represent higher\npriorities. '0' represents default priority. The range of meaningful\nnumerical priorities can be queried using\n:py:obj:`~.cudaDeviceGetStreamPriorityRange`. If the specified priority\nis outside the numerical range returned by\n:py:obj:`~.cudaDeviceGetStreamPriorityRange`, it will automatically be\nclamped to the lowest or the highest number in the range.\n\nParameters\n----------\nflags : unsigned int\n    Flags for stream creation. See\n    :py:obj:`~.cudaStreamCreateWithFlags` for a list of valid flags\n    that can be passed\npriority : int\n    Priority of the stream. Lower numbers represent higher priorities.\n    See :py:obj:`~.cudaDeviceGetStreamPriorityRange` for more\n    information about the meaningful stream priorities that can be\n    passed.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npStream : :py:obj:`~.cudaStream_t`\n    Pointer to new stream identifier\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaDeviceGetStreamPriorityRange`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaS""treamAddCallback`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamCreateWithPriority`\n\nNotes\n-----\nStream priorities are supported only on GPUs with compute capability 3.5 or higher.\n\nIn the current implementation, only compute kernels launched in priority streams are affected by the stream's priority. Stream priorities have no effect on host-to-device and device-to-host memory operations.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_85cudaStreamCreateWithPriority = {"cudaStreamCreateWithPriority", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_85cudaStreamCreateWithPriority, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_84cudaStreamCreateWithPriority};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_85cudaStreamCreateWithPriority(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
) {
  unsigned int __pyx_v_flags;
  int __pyx_v_priority;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamCreateWithPriority (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_flags_2,&__pyx_mstate_global->__pyx_n_u_priority_2,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, 16834, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16834, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 16834, __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, "cudaStreamCreateWithPriority", 0) < (0)) __PYX_ERR(0, 16834, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamCreateWithPriority", 1, 2, 2, i); __PYX_ERR(0, 16834, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 16834, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 16834, __pyx_L3_error)
    }
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16835, __pyx_L3_error)
    __pyx_v_priority = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_priority == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 16835, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamCreateWithPriority", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 16834, __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.runtime.cudaStreamCreateWithPriority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_84cudaStreamCreateWithPriority(__pyx_self, __pyx_v_flags, __pyx_v_priority);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_84cudaStreamCreateWithPriority(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags, int __pyx_v_priority) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *__pyx_v_pStream = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamCreateWithPriority", 0);

  /* "cuda/bindings/runtime.pyx":16885
 *     In the current implementation, only compute kernels launched in priority streams are affected by the stream's priority. Stream priorities have no effect on host-to-device and device-to-host memory operations.
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamCreateWithPriority(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags, priority)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16885, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pStream = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":16886
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamCreateWithPriority(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags, priority)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16887
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:
 *         err = cyruntime.cudaStreamCreateWithPriority(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags, priority)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreateWithPriority(((cudaStream_t *)__pyx_v_pStream->__pyx_base._pvt_ptr), __pyx_v_flags, __pyx_v_priority); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16887, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":16886
 *     """
 *     cdef cudaStream_t pStream = cudaStream_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamCreateWithPriority(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags, priority)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16888
 *     with nogil:
 *         err = cyruntime.cudaStreamCreateWithPriority(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags, priority)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":16889
 *         err = cyruntime.cudaStreamCreateWithPriority(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags, priority)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pStream)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 16889, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 16889, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16888
 *     with nogil:
 *         err = cyruntime.cudaStreamCreateWithPriority(<cyruntime.cudaStream_t*>pStream._pvt_ptr, flags, priority)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)
*/
  }

  /* "cuda/bindings/runtime.pyx":16890
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pStream)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 16890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 16890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 16890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 16890, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pStream);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pStream);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_pStream)) != (0)) __PYX_ERR(0, 16890, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16834
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreateWithPriority(unsigned int flags, int priority):
 *     """ Create an asynchronous stream with the specified priority.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCreateWithPriority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16892
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetPriority(hStream):
 *     """ Query the priority of a stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_87cudaStreamGetPriority(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_7runtime_86cudaStreamGetPriority, "cudaStreamGetPriority(hStream)\n\nQuery the priority of a stream.\n\nQuery the priority of a stream. The priority is returned in in\n`priority`. Note that if the stream was created with a priority outside\nthe meaningful numerical range returned by\n:py:obj:`~.cudaDeviceGetStreamPriorityRange`, this function returns the\nclamped priority. See :py:obj:`~.cudaStreamCreateWithPriority` for\ndetails about priority clamping.\n\nParameters\n----------\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Handle to the stream to be queried\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\npriority : int\n    Pointer to a signed integer in which the stream's priority is\n    returned\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaDeviceGetStreamPriorityRange`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cudaStreamGetDevice`, :py:obj:`~.cudaStreamGetDevResource`, :py:obj:`~.cuStreamGetPriority`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_87cudaStreamGetPriority = {"cudaStreamGetPriority", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_87cudaStreamGetPriority, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_86cudaStreamGetPriority};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_87cudaStreamGetPriority(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_hStream = 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("cudaStreamGetPriority (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_hStream,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, 16892, __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, 16892, __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, "cudaStreamGetPriority", 0) < (0)) __PYX_ERR(0, 16892, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamGetPriority", 1, 1, 1, i); __PYX_ERR(0, 16892, __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, 16892, __pyx_L3_error)
    }
    __pyx_v_hStream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamGetPriority", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16892, __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.runtime.cudaStreamGetPriority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_86cudaStreamGetPriority(__pyx_self, __pyx_v_hStream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_86cudaStreamGetPriority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  int __pyx_v_priority;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamGetPriority", 0);

  /* "cuda/bindings/runtime.pyx":16921
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":16922
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":16921
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":16923
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":16924
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16924, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":16923
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":16926
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef int priority = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16926, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16926, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":16927
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cdef int priority = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16927, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":16928
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef int priority = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamGetPriority(cyhStream, &priority)
*/
  __pyx_v_priority = 0;

  /* "cuda/bindings/runtime.pyx":16929
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef int priority = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetPriority(cyhStream, &priority)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16930
 *     cdef int priority = 0
 *     with nogil:
 *         err = cyruntime.cudaStreamGetPriority(cyhStream, &priority)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetPriority(__pyx_v_cyhStream, (&__pyx_v_priority)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16930, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":16929
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef int priority = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetPriority(cyhStream, &priority)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16931
 *     with nogil:
 *         err = cyruntime.cudaStreamGetPriority(cyhStream, &priority)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], priority)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":16932
 *         err = cyruntime.cudaStreamGetPriority(cyhStream, &priority)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], priority)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 16932, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 16932, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16931
 *     with nogil:
 *         err = cyruntime.cudaStreamGetPriority(cyhStream, &priority)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], priority)
*/
  }

  /* "cuda/bindings/runtime.pyx":16933
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], priority)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_v_priority); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 16933, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 16933, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16892
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetPriority(hStream):
 *     """ Query the priority of a stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamGetPriority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16935
 *     return (_dict_cudaError_t[err], priority)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetFlags(hStream):
 *     """ Query the flags of a stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_89cudaStreamGetFlags(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_7runtime_88cudaStreamGetFlags, "cudaStreamGetFlags(hStream)\n\nQuery the flags of a stream.\n\nQuery the flags of a stream. The flags are returned in `flags`. See\n:py:obj:`~.cudaStreamCreateWithFlags` for a list of valid flags.\n\nParameters\n----------\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Handle to the stream to be queried\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\nflags : unsigned int\n    Pointer to an unsigned integer in which the stream's flags are\n    returned\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetDevice`, :py:obj:`~.cuStreamGetFlags`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_89cudaStreamGetFlags = {"cudaStreamGetFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_89cudaStreamGetFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_88cudaStreamGetFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_89cudaStreamGetFlags(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_hStream = 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("cudaStreamGetFlags (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_hStream,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, 16935, __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, 16935, __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, "cudaStreamGetFlags", 0) < (0)) __PYX_ERR(0, 16935, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamGetFlags", 1, 1, 1, i); __PYX_ERR(0, 16935, __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, 16935, __pyx_L3_error)
    }
    __pyx_v_hStream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamGetFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16935, __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.runtime.cudaStreamGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_88cudaStreamGetFlags(__pyx_self, __pyx_v_hStream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_88cudaStreamGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  unsigned int __pyx_v_flags;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamGetFlags", 0);

  /* "cuda/bindings/runtime.pyx":16960
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":16961
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":16960
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":16962
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":16963
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16963, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":16962
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":16965
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef unsigned int flags = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16965, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":16966
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cdef unsigned int flags = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 16966, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":16967
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef unsigned int flags = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamGetFlags(cyhStream, &flags)
*/
  __pyx_v_flags = 0;

  /* "cuda/bindings/runtime.pyx":16968
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef unsigned int flags = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetFlags(cyhStream, &flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":16969
 *     cdef unsigned int flags = 0
 *     with nogil:
 *         err = cyruntime.cudaStreamGetFlags(cyhStream, &flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetFlags(__pyx_v_cyhStream, (&__pyx_v_flags)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 16969, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":16968
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef unsigned int flags = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetFlags(cyhStream, &flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":16970
 *     with nogil:
 *         err = cyruntime.cudaStreamGetFlags(cyhStream, &flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":16971
 *         err = cyruntime.cudaStreamGetFlags(cyhStream, &flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], flags)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16971, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16971, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16971, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16971, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 16971, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 16971, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":16970
 *     with nogil:
 *         err = cyruntime.cudaStreamGetFlags(cyhStream, &flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)
*/
  }

  /* "cuda/bindings/runtime.pyx":16972
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_flags); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 16972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 16972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 16972, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 16972, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16935
 *     return (_dict_cudaError_t[err], priority)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetFlags(hStream):
 *     """ Query the flags of a stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":16974
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetId(hStream):
 *     """ Query the Id of a stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_91cudaStreamGetId(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_7runtime_90cudaStreamGetId, "cudaStreamGetId(hStream)\n\nQuery the Id of a stream.\n\nQuery the Id of a stream. The Id is returned in `streamId`. The Id is\nunique for the life of the program.\n\nThe stream handle `hStream` can refer to any of the following:\n\n- a stream created via any of the CUDA runtime APIs such as\n  :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`\n  and :py:obj:`~.cudaStreamCreateWithPriority`, or their driver API\n  equivalents such as :py:obj:`~.cuStreamCreate` or\n  :py:obj:`~.cuStreamCreateWithPriority`. Passing an invalid handle\n  will result in undefined behavior.\n\n- any of the special streams such as the NULL stream,\n  :py:obj:`~.cudaStreamLegacy` and :py:obj:`~.cudaStreamPerThread`\n  respectively. The driver API equivalents of these are also accepted\n  which are NULL, :py:obj:`~.CU_STREAM_LEGACY` and\n  :py:obj:`~.CU_STREAM_PER_THREAD`.\n\nParameters\n----------\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Handle to the stream to be queried\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\nstreamId : unsigned long long\n    Pointer to an unsigned long long in which the stream Id is returned\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreateWithPriority`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cuStreamGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_91cudaStreamGetId = {"cudaStreamGetId", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_91cudaStreamGetId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_90cudaStreamGetId};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_91cudaStreamGetId(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_hStream = 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("cudaStreamGetId (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_hStream,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, 16974, __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, 16974, __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, "cudaStreamGetId", 0) < (0)) __PYX_ERR(0, 16974, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamGetId", 1, 1, 1, i); __PYX_ERR(0, 16974, __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, 16974, __pyx_L3_error)
    }
    __pyx_v_hStream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamGetId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 16974, __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.runtime.cudaStreamGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_90cudaStreamGetId(__pyx_self, __pyx_v_hStream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_90cudaStreamGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  unsigned PY_LONG_LONG __pyx_v_streamId;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamGetId", 0);

  /* "cuda/bindings/runtime.pyx":17013
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17014
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17013
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17015
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17016
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17015
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17018
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef unsigned long long streamId = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17018, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17018, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17019
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cdef unsigned long long streamId = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17019, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17020
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef unsigned long long streamId = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamGetId(cyhStream, &streamId)
*/
  __pyx_v_streamId = 0;

  /* "cuda/bindings/runtime.pyx":17021
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef unsigned long long streamId = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetId(cyhStream, &streamId)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17022
 *     cdef unsigned long long streamId = 0
 *     with nogil:
 *         err = cyruntime.cudaStreamGetId(cyhStream, &streamId)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetId(__pyx_v_cyhStream, (&__pyx_v_streamId)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17022, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17021
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef unsigned long long streamId = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetId(cyhStream, &streamId)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17023
 *     with nogil:
 *         err = cyruntime.cudaStreamGetId(cyhStream, &streamId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], streamId)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17024
 *         err = cyruntime.cudaStreamGetId(cyhStream, &streamId)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], streamId)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17024, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 17024, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":17023
 *     with nogil:
 *         err = cyruntime.cudaStreamGetId(cyhStream, &streamId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], streamId)
*/
  }

  /* "cuda/bindings/runtime.pyx":17025
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], streamId)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_streamId); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 17025, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 17025, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":16974
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetId(hStream):
 *     """ Query the Id of a stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17027
 *     return (_dict_cudaError_t[err], streamId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetDevice(hStream):
 *     """ Query the device of a stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_93cudaStreamGetDevice(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_7runtime_92cudaStreamGetDevice, "cudaStreamGetDevice(hStream)\n\nQuery the device of a stream.\n\nReturns in `*device` the device of the stream.\n\nParameters\n----------\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Handle to the stream to be queried\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorDeviceUnavailable`,\ndevice : int\n    Returns the device to which the stream belongs\n\nSee Also\n--------\n:py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cuStreamGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_93cudaStreamGetDevice = {"cudaStreamGetDevice", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_93cudaStreamGetDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_92cudaStreamGetDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_93cudaStreamGetDevice(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_hStream = 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("cudaStreamGetDevice (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_hStream,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, 17027, __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, 17027, __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, "cudaStreamGetDevice", 0) < (0)) __PYX_ERR(0, 17027, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamGetDevice", 1, 1, 1, i); __PYX_ERR(0, 17027, __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, 17027, __pyx_L3_error)
    }
    __pyx_v_hStream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamGetDevice", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17027, __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.runtime.cudaStreamGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_92cudaStreamGetDevice(__pyx_self, __pyx_v_hStream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_92cudaStreamGetDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  int __pyx_v_device;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamGetDevice", 0);

  /* "cuda/bindings/runtime.pyx":17050
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17051
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17050
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17052
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17053
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17053, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17052
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17055
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef int device = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17055, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17055, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17056
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cdef int device = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17056, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17057
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef int device = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamGetDevice(cyhStream, &device)
*/
  __pyx_v_device = 0;

  /* "cuda/bindings/runtime.pyx":17058
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetDevice(cyhStream, &device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17059
 *     cdef int device = 0
 *     with nogil:
 *         err = cyruntime.cudaStreamGetDevice(cyhStream, &device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetDevice(__pyx_v_cyhStream, (&__pyx_v_device)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17059, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17058
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetDevice(cyhStream, &device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17060
 *     with nogil:
 *         err = cyruntime.cudaStreamGetDevice(cyhStream, &device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17061
 *         err = cyruntime.cudaStreamGetDevice(cyhStream, &device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], device)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17061, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 17061, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":17060
 *     with nogil:
 *         err = cyruntime.cudaStreamGetDevice(cyhStream, &device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  }

  /* "cuda/bindings/runtime.pyx":17062
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_v_device); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 17062, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 17062, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17027
 *     return (_dict_cudaError_t[err], streamId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetDevice(hStream):
 *     """ Query the device of a stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17064
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCtxResetPersistingL2Cache():
 *     """ Resets all persisting lines in cache to normal status.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_95cudaCtxResetPersistingL2Cache(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_94cudaCtxResetPersistingL2Cache, "cudaCtxResetPersistingL2Cache()\n\nResets all persisting lines in cache to normal status.\n\nResets all persisting lines in cache to normal status. Takes effect on\nfunction return.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`,\n\nSee Also\n--------\n:py:obj:`~.cudaAccessPolicyWindow`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_95cudaCtxResetPersistingL2Cache = {"cudaCtxResetPersistingL2Cache", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_95cudaCtxResetPersistingL2Cache, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_94cudaCtxResetPersistingL2Cache};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_95cudaCtxResetPersistingL2Cache(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaCtxResetPersistingL2Cache (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_94cudaCtxResetPersistingL2Cache(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_94cudaCtxResetPersistingL2Cache(CYTHON_UNUSED PyObject *__pyx_self) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaCtxResetPersistingL2Cache", 0);

  /* "cuda/bindings/runtime.pyx":17080
 *     :py:obj:`~.cudaAccessPolicyWindow`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaCtxResetPersistingL2Cache()
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17081
 *     """
 *     with nogil:
 *         err = cyruntime.cudaCtxResetPersistingL2Cache()             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaCtxResetPersistingL2Cache(); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17081, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":17080
 *     :py:obj:`~.cudaAccessPolicyWindow`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaCtxResetPersistingL2Cache()
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17082
 *     with nogil:
 *         err = cyruntime.cudaCtxResetPersistingL2Cache()
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 17082, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17064
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCtxResetPersistingL2Cache():
 *     """ Resets all persisting lines in cache to normal status.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaCtxResetPersistingL2Cache", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17084
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCopyAttributes(dst, src):
 *     """ Copies attributes from source stream to destination stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_97cudaStreamCopyAttributes(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_7runtime_96cudaStreamCopyAttributes, "cudaStreamCopyAttributes(dst, src)\n\nCopies attributes from source stream to destination stream.\n\nCopies attributes from source stream `src` to destination stream `dst`.\nBoth streams must have the same context.\n\nParameters\n----------\ndst : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Destination stream\nsrc : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Source stream For attributes see :py:obj:`~.cudaStreamAttrID`\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotSupported`\n\nSee Also\n--------\n:py:obj:`~.cudaAccessPolicyWindow`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_97cudaStreamCopyAttributes = {"cudaStreamCopyAttributes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_97cudaStreamCopyAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_96cudaStreamCopyAttributes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_97cudaStreamCopyAttributes(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_dst = 0;
  PyObject *__pyx_v_src = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamCopyAttributes (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_dst_2,&__pyx_mstate_global->__pyx_n_u_src_2,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, 17084, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17084, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 17084, __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, "cudaStreamCopyAttributes", 0) < (0)) __PYX_ERR(0, 17084, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamCopyAttributes", 1, 2, 2, i); __PYX_ERR(0, 17084, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 17084, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17084, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_src = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamCopyAttributes", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 17084, __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.runtime.cudaStreamCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_96cudaStreamCopyAttributes(__pyx_self, __pyx_v_dst, __pyx_v_src);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_96cudaStreamCopyAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src) {
  cudaStream_t __pyx_v_cysrc;
  PyObject *__pyx_v_psrc = NULL;
  cudaStream_t __pyx_v_cydst;
  PyObject *__pyx_v_pdst = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamCopyAttributes", 0);

  /* "cuda/bindings/runtime.pyx":17108
 *     """
 *     cdef cyruntime.cudaStream_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_src == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17109
 *     cdef cyruntime.cudaStream_t cysrc
 *     if src is None:
 *         psrc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(src, (cudaStream_t,driver.CUstream)):
 *         psrc = int(src)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psrc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17108
 *     """
 *     cdef cyruntime.cudaStream_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17110
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_src, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_src, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17111
 *         psrc = 0
 *     elif isinstance(src, (cudaStream_t,driver.CUstream)):
 *         psrc = int(src)             # <<<<<<<<<<<<<<
 *     else:
 *         psrc = int(cudaStream_t(src))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_psrc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17110
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17113
 *         psrc = int(src)
 *     else:
 *         psrc = int(cudaStream_t(src))             # <<<<<<<<<<<<<<
 *     cysrc = <cyruntime.cudaStream_t><void_ptr>psrc
 *     cdef cyruntime.cudaStream_t cydst
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_src};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17113, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17113, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_psrc = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17114
 *     else:
 *         psrc = int(cudaStream_t(src))
 *     cysrc = <cyruntime.cudaStream_t><void_ptr>psrc             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStream_t cydst
 *     if dst is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17114, __pyx_L1_error)
  __pyx_v_cysrc = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17116
 *     cysrc = <cyruntime.cudaStream_t><void_ptr>psrc
 *     cdef cyruntime.cudaStream_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_dst == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17117
 *     cdef cyruntime.cudaStream_t cydst
 *     if dst is None:
 *         pdst = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(dst, (cudaStream_t,driver.CUstream)):
 *         pdst = int(dst)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdst = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17116
 *     cysrc = <cyruntime.cudaStream_t><void_ptr>psrc
 *     cdef cyruntime.cudaStream_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":17118
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17119
 *         pdst = 0
 *     elif isinstance(dst, (cudaStream_t,driver.CUstream)):
 *         pdst = int(dst)             # <<<<<<<<<<<<<<
 *     else:
 *         pdst = int(cudaStream_t(dst))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pdst = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":17118
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":17121
 *         pdst = int(dst)
 *     else:
 *         pdst = int(cudaStream_t(dst))             # <<<<<<<<<<<<<<
 *     cydst = <cyruntime.cudaStream_t><void_ptr>pdst
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17121, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pdst = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":17122
 *     else:
 *         pdst = int(cudaStream_t(dst))
 *     cydst = <cyruntime.cudaStream_t><void_ptr>pdst             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamCopyAttributes(cydst, cysrc)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17122, __pyx_L1_error)
  __pyx_v_cydst = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17123
 *         pdst = int(cudaStream_t(dst))
 *     cydst = <cyruntime.cudaStream_t><void_ptr>pdst
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamCopyAttributes(cydst, cysrc)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17124
 *     cydst = <cyruntime.cudaStream_t><void_ptr>pdst
 *     with nogil:
 *         err = cyruntime.cudaStreamCopyAttributes(cydst, cysrc)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCopyAttributes(__pyx_v_cydst, __pyx_v_cysrc); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17124, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17123
 *         pdst = int(cudaStream_t(dst))
 *     cydst = <cyruntime.cudaStream_t><void_ptr>pdst
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamCopyAttributes(cydst, cysrc)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17125
 *     with nogil:
 *         err = cyruntime.cudaStreamCopyAttributes(cydst, cysrc)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17125, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17084
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCopyAttributes(dst, src):
 *     """ Copies attributes from source stream to destination stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psrc);
  __Pyx_XDECREF(__pyx_v_pdst);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17127
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID):
 *     """ Queries stream attribute.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_99cudaStreamGetAttribute(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_7runtime_98cudaStreamGetAttribute, "cudaStreamGetAttribute(hStream, attr: cudaStreamAttrID)\n\nQueries stream attribute.\n\nQueries attribute `attr` from `hStream` and stores it in corresponding\nmember of `value_out`.\n\nParameters\n----------\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n\nattr : :py:obj:`~.cudaStreamAttrID`\n\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\nvalue_out : :py:obj:`~.cudaStreamAttrValue`\n\n\nSee Also\n--------\n:py:obj:`~.cudaAccessPolicyWindow`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_99cudaStreamGetAttribute = {"cudaStreamGetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_99cudaStreamGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_98cudaStreamGetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_99cudaStreamGetAttribute(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_hStream = 0;
  PyObject *__pyx_v_attr = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamGetAttribute (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_hStream,&__pyx_mstate_global->__pyx_n_u_attr,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, 17127, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17127, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 17127, __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, "cudaStreamGetAttribute", 0) < (0)) __PYX_ERR(0, 17127, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamGetAttribute", 1, 2, 2, i); __PYX_ERR(0, 17127, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 17127, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17127, __pyx_L3_error)
    }
    __pyx_v_hStream = values[0];
    __pyx_v_attr = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamGetAttribute", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 17127, __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.runtime.cudaStreamGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 17128, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_98cudaStreamGetAttribute(__pyx_self, __pyx_v_hStream, __pyx_v_attr);

  /* 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_7runtime_98cudaStreamGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream, PyObject *__pyx_v_attr) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID __pyx_v_cyattr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue *__pyx_v_value_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamGetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":17153
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17154
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17153
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17155
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17156
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17156, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17155
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17158
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17158, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17159
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
 *     cdef cudaStreamAttrValue value_out = cudaStreamAttrValue()
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17159, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17160
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value             # <<<<<<<<<<<<<<
 *     cdef cudaStreamAttrValue value_out = cudaStreamAttrValue()
 *     with nogil:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaLaunchAttributeID)__Pyx_PyLong_As_enum__cudaLaunchAttributeID(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyattr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":17161
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
 *     cdef cudaStreamAttrValue value_out = cudaStreamAttrValue()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamGetAttribute(cyhStream, cyattr, <cyruntime.cudaStreamAttrValue*>value_out._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17161, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_value_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":17162
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
 *     cdef cudaStreamAttrValue value_out = cudaStreamAttrValue()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetAttribute(cyhStream, cyattr, <cyruntime.cudaStreamAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17163
 *     cdef cudaStreamAttrValue value_out = cudaStreamAttrValue()
 *     with nogil:
 *         err = cyruntime.cudaStreamGetAttribute(cyhStream, cyattr, <cyruntime.cudaStreamAttrValue*>value_out._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetAttribute(__pyx_v_cyhStream, __pyx_v_cyattr, ((__pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrValue *)__pyx_v_value_out->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17163, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":17162
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
 *     cdef cudaStreamAttrValue value_out = cudaStreamAttrValue()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetAttribute(cyhStream, cyattr, <cyruntime.cudaStreamAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17164
 *     with nogil:
 *         err = cyruntime.cudaStreamGetAttribute(cyhStream, cyattr, <cyruntime.cudaStreamAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17165
 *         err = cyruntime.cudaStreamGetAttribute(cyhStream, cyattr, <cyruntime.cudaStreamAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], value_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 17165, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 17165, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":17164
 *     with nogil:
 *         err = cyruntime.cudaStreamGetAttribute(cyhStream, cyattr, <cyruntime.cudaStreamAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":17166
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 17166, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_value_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_value_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_v_value_out)) != (0)) __PYX_ERR(0, 17166, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17127
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID):
 *     """ Queries stream attribute.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XDECREF((PyObject *)__pyx_v_value_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17168
 *     return (_dict_cudaError_t[err], value_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Optional[cudaStreamAttrValue]):
 *     """ Sets stream attribute.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_101cudaStreamSetAttribute(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_7runtime_100cudaStreamSetAttribute, "cudaStreamSetAttribute(hStream, attr: cudaStreamAttrID, cudaStreamAttrValue value: Optional[cudaStreamAttrValue])\n\nSets stream attribute.\n\nSets attribute `attr` on `hStream` from corresponding attribute of\n`value`. The updated attribute will be applied to subsequent work\nsubmitted to the stream. It will not affect previously submitted work.\n\nParameters\n----------\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n\nattr : :py:obj:`~.cudaStreamAttrID`\n\nvalue : :py:obj:`~.cudaStreamAttrValue`\n\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaAccessPolicyWindow`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_101cudaStreamSetAttribute = {"cudaStreamSetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_101cudaStreamSetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_100cudaStreamSetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_101cudaStreamSetAttribute(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_hStream = 0;
  PyObject *__pyx_v_attr = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamSetAttribute (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_hStream,&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_value,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, 17168, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17168, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17168, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 17168, __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, "cudaStreamSetAttribute", 0) < (0)) __PYX_ERR(0, 17168, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamSetAttribute", 1, 3, 3, i); __PYX_ERR(0, 17168, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 17168, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17168, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17168, __pyx_L3_error)
    }
    __pyx_v_hStream = values[0];
    __pyx_v_attr = values[1];
    __pyx_v_value = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamSetAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 17168, __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.runtime.cudaStreamSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 17169, __pyx_L1_error)
  }
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue, 1, "value", 0))) __PYX_ERR(0, 17169, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_100cudaStreamSetAttribute(__pyx_self, __pyx_v_hStream, __pyx_v_attr, __pyx_v_value);

  /* 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_7runtime_100cudaStreamSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream, PyObject *__pyx_v_attr, struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue *__pyx_v_value) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID __pyx_v_cyattr;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrValue *__pyx_v_cyvalue_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID __pyx_t_7;
  union cudaLaunchAttributeValue *__pyx_t_8;
  cudaError_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamSetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":17195
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17196
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17195
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17197
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17198
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17197
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17200
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17200, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17201
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
 *     cdef cyruntime.cudaStreamAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17201, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17202
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStreamAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
 *     with nogil:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaLaunchAttributeID)__Pyx_PyLong_As_enum__cudaLaunchAttributeID(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17202, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyattr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":17203
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
 *     cdef cyruntime.cudaStreamAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamSetAttribute(cyhStream, cyattr, cyvalue_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_value) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_8 = __pyx_v_value->__pyx_base._pvt_ptr;
  } else {
    __pyx_t_8 = NULL;
  }
  __pyx_v_cyvalue_ptr = __pyx_t_8;

  /* "cuda/bindings/runtime.pyx":17204
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
 *     cdef cyruntime.cudaStreamAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamSetAttribute(cyhStream, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17205
 *     cdef cyruntime.cudaStreamAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaStreamSetAttribute(cyhStream, cyattr, cyvalue_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamSetAttribute(__pyx_v_cyhStream, __pyx_v_cyattr, __pyx_v_cyvalue_ptr); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17205, __pyx_L7_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":17204
 *     cdef cyruntime.cudaStreamAttrID cyattr = attr.value
 *     cdef cyruntime.cudaStreamAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamSetAttribute(cyhStream, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17206
 *     with nogil:
 *         err = cyruntime.cudaStreamSetAttribute(cyhStream, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 17206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_10);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_10) != (0)) __PYX_ERR(0, 17206, __pyx_L1_error);
  __pyx_t_10 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17168
 *     return (_dict_cudaError_t[err], value_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Optional[cudaStreamAttrValue]):
 *     """ Sets stream attribute.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17208
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamDestroy(stream):
 *     """ Destroys and cleans up an asynchronous stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_103cudaStreamDestroy(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_7runtime_102cudaStreamDestroy, "cudaStreamDestroy(stream)\n\nDestroys and cleans up an asynchronous stream.\n\nDestroys and cleans up the asynchronous stream specified by `stream`.\n\nIn case the device is still doing work in the stream `stream` when\n:py:obj:`~.cudaStreamDestroy()` is called, the function will return\nimmediately and the resources associated with `stream` will be released\nautomatically once the device has completed all work in `stream`.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cuStreamDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_103cudaStreamDestroy = {"cudaStreamDestroy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_103cudaStreamDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_102cudaStreamDestroy};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_103cudaStreamDestroy(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_stream = 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("cudaStreamDestroy (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_stream,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, 17208, __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, 17208, __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, "cudaStreamDestroy", 0) < (0)) __PYX_ERR(0, 17208, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamDestroy", 1, 1, 1, i); __PYX_ERR(0, 17208, __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, 17208, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17208, __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.runtime.cudaStreamDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_102cudaStreamDestroy(__pyx_self, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_102cudaStreamDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamDestroy", 0);

  /* "cuda/bindings/runtime.pyx":17234
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17235
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17234
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17236
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17237
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17236
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17239
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17239, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17240
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamDestroy(cystream)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17240, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17241
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamDestroy(cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17242
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
 *         err = cyruntime.cudaStreamDestroy(cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamDestroy(__pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17242, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17241
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamDestroy(cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17243
 *     with nogil:
 *         err = cyruntime.cudaStreamDestroy(cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17243, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17208
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamDestroy(stream):
 *     """ Destroys and cleans up an asynchronous stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17245
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamWaitEvent(stream, event, unsigned int flags):
 *     """ Make a compute stream wait on an event.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_105cudaStreamWaitEvent(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_7runtime_104cudaStreamWaitEvent, "cudaStreamWaitEvent(stream, event, unsigned int flags)\n\nMake a compute stream wait on an event.\n\nMakes all future work submitted to `stream` wait for all work captured\nin `event`. See :py:obj:`~.cudaEventRecord()` for details on what is\ncaptured by an event. The synchronization will be performed efficiently\non the device when applicable. `event` may be from a different device\nthan `stream`.\n\nflags include:\n\n- :py:obj:`~.cudaEventWaitDefault`: Default event creation flag.\n\n- :py:obj:`~.cudaEventWaitExternal`: Event is captured in the graph as\n  an external event node when performing stream capture.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to wait\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to wait on\nflags : unsigned int\n    Parameters for the operation(See above)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamWaitEvent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_105cudaStreamWaitEvent = {"cudaStreamWaitEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_105cudaStreamWaitEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_104cudaStreamWaitEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_105cudaStreamWaitEvent(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_stream = 0;
  PyObject *__pyx_v_event = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamWaitEvent (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_stream,&__pyx_mstate_global->__pyx_n_u_event_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 17245, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17245, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17245, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 17245, __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, "cudaStreamWaitEvent", 0) < (0)) __PYX_ERR(0, 17245, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamWaitEvent", 1, 3, 3, i); __PYX_ERR(0, 17245, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 17245, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17245, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17245, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
    __pyx_v_event = values[1];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17246, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamWaitEvent", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 17245, __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.runtime.cudaStreamWaitEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_104cudaStreamWaitEvent(__pyx_self, __pyx_v_stream, __pyx_v_event, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_104cudaStreamWaitEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_event, unsigned int __pyx_v_flags) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamWaitEvent", 0);

  /* "cuda/bindings/runtime.pyx":17281
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17282
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17281
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17283
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17284
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17283
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17286
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaStream_t cystream
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17286, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17286, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17287
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17287, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17289
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17290
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17289
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":17291
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17292
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17292, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":17291
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":17294
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_stream};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17294, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":17295
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamWaitEvent(cystream, cyevent, flags)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17295, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17296
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamWaitEvent(cystream, cyevent, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17297
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
 *         err = cyruntime.cudaStreamWaitEvent(cystream, cyevent, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamWaitEvent(__pyx_v_cystream, __pyx_v_cyevent, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17297, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17296
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamWaitEvent(cystream, cyevent, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17298
 *     with nogil:
 *         err = cyruntime.cudaStreamWaitEvent(cystream, cyevent, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * ctypedef struct cudaStreamCallbackData_st:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17298, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17245
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamWaitEvent(stream, event, unsigned int flags):
 *     """ Make a compute stream wait on an event.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamWaitEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17306
 * ctypedef cudaStreamCallbackData_st cudaStreamCallbackData
 * 
 * @cython.show_performance_hints(False)             # <<<<<<<<<<<<<<
 * cdef void cudaStreamRtCallbackWrapper(cyruntime.cudaStream_t stream, cyruntime.cudaError_t status, void *data) nogil:
 *     cdef cudaStreamCallbackData *cbData = <cudaStreamCallbackData *>data
*/

static void __pyx_f_4cuda_8bindings_7runtime_cudaStreamRtCallbackWrapper(cudaStream_t __pyx_v_stream, cudaError_t __pyx_v_status, void *__pyx_v_data) {
  __pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData *__pyx_v_cbData;

  /* "cuda/bindings/runtime.pyx":17308
 * @cython.show_performance_hints(False)
 * cdef void cudaStreamRtCallbackWrapper(cyruntime.cudaStream_t stream, cyruntime.cudaError_t status, void *data) nogil:
 *     cdef cudaStreamCallbackData *cbData = <cudaStreamCallbackData *>data             # <<<<<<<<<<<<<<
 *     with gil:
 *         cbData.callback(stream, status, cbData.userData)
*/
  __pyx_v_cbData = ((__pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData *)__pyx_v_data);

  /* "cuda/bindings/runtime.pyx":17309
 * cdef void cudaStreamRtCallbackWrapper(cyruntime.cudaStream_t stream, cyruntime.cudaError_t status, void *data) nogil:
 *     cdef cudaStreamCallbackData *cbData = <cudaStreamCallbackData *>data
 *     with gil:             # <<<<<<<<<<<<<<
 *         cbData.callback(stream, status, cbData.userData)
 *     free(cbData)
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17310
 *     cdef cudaStreamCallbackData *cbData = <cudaStreamCallbackData *>data
 *     with gil:
 *         cbData.callback(stream, status, cbData.userData)             # <<<<<<<<<<<<<<
 *     free(cbData)
 * 
*/
        __pyx_v_cbData->callback(__pyx_v_stream, __pyx_v_status, __pyx_v_cbData->userData);
      }

      /* "cuda/bindings/runtime.pyx":17309
 * cdef void cudaStreamRtCallbackWrapper(cyruntime.cudaStream_t stream, cyruntime.cudaError_t status, void *data) nogil:
 *     cdef cudaStreamCallbackData *cbData = <cudaStreamCallbackData *>data
 *     with gil:             # <<<<<<<<<<<<<<
 *         cbData.callback(stream, status, cbData.userData)
 *     free(cbData)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17311
 *     with gil:
 *         cbData.callback(stream, status, cbData.userData)
 *     free(cbData)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  free(__pyx_v_cbData);

  /* "cuda/bindings/runtime.pyx":17306
 * ctypedef cudaStreamCallbackData_st cudaStreamCallbackData
 * 
 * @cython.show_performance_hints(False)             # <<<<<<<<<<<<<<
 * cdef void cudaStreamRtCallbackWrapper(cyruntime.cudaStream_t stream, cyruntime.cudaError_t status, void *data) nogil:
 *     cdef cudaStreamCallbackData *cbData = <cudaStreamCallbackData *>data
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":17313
 *     free(cbData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamAddCallback(stream, callback, userData, unsigned int flags):
 *     """ Add a callback to a compute stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_107cudaStreamAddCallback(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_7runtime_106cudaStreamAddCallback, "cudaStreamAddCallback(stream, callback, userData, unsigned int flags)\n\nAdd a callback to a compute stream.\n\nAdds a callback to be called on the host after all currently enqueued\nitems in the stream have completed. For each cudaStreamAddCallback\ncall, a callback will be executed exactly once. The callback will block\nlater work in the stream until it is finished.\n\nThe callback may be passed :py:obj:`~.cudaSuccess` or an error code. In\nthe event of a device error, all subsequently executed callbacks will\nreceive an appropriate :py:obj:`~.cudaError_t`.\n\nCallbacks must not make any CUDA API calls. Attempting to use CUDA APIs\nmay result in :py:obj:`~.cudaErrorNotPermitted`. Callbacks must not\nperform any synchronization that may depend on outstanding device work\nor other callbacks that are not mandated to run earlier. Callbacks\nwithout a mandated order (in independent streams) execute in undefined\norder and may be serialized.\n\nFor the purposes of Unified Memory, callback execution makes a number\nof guarantees:\n\n- The callback stream is considered idle for the duration of the\n  callback. Thus, for example, a callback may always use memory\n  attached to the callback stream.\n\n- The start of execution of a callback has the same effect as\n  synchronizing an event recorded in the same stream immediately prior\n  to the callback. It thus synchronizes streams which have been\n  \"joined\" prior to the callback.\n\n- Adding device work to any stream does not have the effect of making\n  the stream active until all preceding callbacks have executed. Thus,\n  for example, a callback might use global attached memory even if work\n  has been added to another stream, if it has been properly ordered\n  with an event.\n\n- Completion of a callback does not cause a stream to become active\n  except as described above. The callback stream will remain idle if no\n  device work follows the callback, and will remain idle across\n  consecutive callbacks without devi""ce work in between. Thus, for\n  example, stream synchronization can be done by signaling from a\n  callback at the end of the stream.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to add callback to\ncallback : :py:obj:`~.cudaStreamCallback_t`\n    The function to call once preceding stream operations are complete\nuserData : Any\n    User specified data to be passed to the callback function\nflags : unsigned int\n    Reserved for future use, must be 0\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cudaMallocManaged`, :py:obj:`~.cudaStreamAttachMemAsync`, :py:obj:`~.cudaLaunchHostFunc`, :py:obj:`~.cuStreamAddCallback`\n\nNotes\n-----\nThis function is slated for eventual deprecation and removal. If you do not require the callback to execute in case of a device error, consider using :py:obj:`~.cudaLaunchHostFunc`. Additionally, this function is not supported with :py:obj:`~.cudaStreamBeginCapture` and :py:obj:`~.cudaStreamEndCapture`, unlike :py:obj:`~.cudaLaunchHostFunc`.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_107cudaStreamAddCallback = {"cudaStreamAddCallback", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_107cudaStreamAddCallback, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_106cudaStreamAddCallback};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_107cudaStreamAddCallback(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_stream = 0;
  PyObject *__pyx_v_callback = 0;
  PyObject *__pyx_v_userData = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamAddCallback (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_stream,&__pyx_mstate_global->__pyx_n_u_callback,&__pyx_mstate_global->__pyx_n_u_userData_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 17313, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 17313, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17313, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17313, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 17313, __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, "cudaStreamAddCallback", 0) < (0)) __PYX_ERR(0, 17313, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamAddCallback", 1, 4, 4, i); __PYX_ERR(0, 17313, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 17313, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17313, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17313, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 17313, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
    __pyx_v_callback = values[1];
    __pyx_v_userData = values[2];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17314, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamAddCallback", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 17313, __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.runtime.cudaStreamAddCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_106cudaStreamAddCallback(__pyx_self, __pyx_v_stream, __pyx_v_callback, __pyx_v_userData, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_106cudaStreamAddCallback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_callback, PyObject *__pyx_v_userData, unsigned int __pyx_v_flags) {
  cudaStreamCallback_t __pyx_v_cycallback;
  PyObject *__pyx_v_pcallback = NULL;
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyuserData = NULL;
  void *__pyx_v_cyuserData_ptr;
  __pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData *__pyx_v_cbData;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  int __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamAddCallback", 0);

  /* "cuda/bindings/runtime.pyx":17383
 *     """
 *     cdef cyruntime.cudaStreamCallback_t cycallback
 *     if callback is None:             # <<<<<<<<<<<<<<
 *         pcallback = 0
 *     elif isinstance(callback, (cudaStreamCallback_t,)):
*/
  __pyx_t_1 = (__pyx_v_callback == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17384
 *     cdef cyruntime.cudaStreamCallback_t cycallback
 *     if callback is None:
 *         pcallback = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(callback, (cudaStreamCallback_t,)):
 *         pcallback = int(callback)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pcallback = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17383
 *     """
 *     cdef cyruntime.cudaStreamCallback_t cycallback
 *     if callback is None:             # <<<<<<<<<<<<<<
 *         pcallback = 0
 *     elif isinstance(callback, (cudaStreamCallback_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17385
 *     if callback is None:
 *         pcallback = 0
 *     elif isinstance(callback, (cudaStreamCallback_t,)):             # <<<<<<<<<<<<<<
 *         pcallback = int(callback)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_callback, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17386
 *         pcallback = 0
 *     elif isinstance(callback, (cudaStreamCallback_t,)):
 *         pcallback = int(callback)             # <<<<<<<<<<<<<<
 *     else:
 *         pcallback = int(cudaStreamCallback_t(callback))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17386, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pcallback = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":17385
 *     if callback is None:
 *         pcallback = 0
 *     elif isinstance(callback, (cudaStreamCallback_t,)):             # <<<<<<<<<<<<<<
 *         pcallback = int(callback)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17388
 *         pcallback = int(callback)
 *     else:
 *         pcallback = int(cudaStreamCallback_t(callback))             # <<<<<<<<<<<<<<
 *     cycallback = <cyruntime.cudaStreamCallback_t><void_ptr>pcallback
 *     cdef cyruntime.cudaStream_t cystream
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_callback};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17388, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17388, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pcallback = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17389
 *     else:
 *         pcallback = int(cudaStreamCallback_t(callback))
 *     cycallback = <cyruntime.cudaStreamCallback_t><void_ptr>pcallback             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17389, __pyx_L1_error)
  __pyx_v_cycallback = ((cudaStreamCallback_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":17391
 *     cycallback = <cyruntime.cudaStreamCallback_t><void_ptr>pcallback
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17392
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17391
 *     cycallback = <cyruntime.cudaStreamCallback_t><void_ptr>pcallback
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":17393
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_6 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_6;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17394
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17393
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":17396
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cyuserData = _HelperInputVoidPtr(userData)
*/
  /*else*/ {
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17396, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_2 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":17397
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17397, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":17398
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cyuserData = _HelperInputVoidPtr(userData)             # <<<<<<<<<<<<<<
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 * 
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_userData};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17398, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_cyuserData = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":17399
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr             # <<<<<<<<<<<<<<
 * 
 *     cdef cudaStreamCallbackData *cbData = NULL
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyuserData), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_cyuserData_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":17401
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 * 
 *     cdef cudaStreamCallbackData *cbData = NULL             # <<<<<<<<<<<<<<
 *     cbData = <cudaStreamCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:
*/
  __pyx_v_cbData = NULL;

  /* "cuda/bindings/runtime.pyx":17402
 * 
 *     cdef cudaStreamCallbackData *cbData = NULL
 *     cbData = <cudaStreamCallbackData *>malloc(sizeof(cbData[0]))             # <<<<<<<<<<<<<<
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
*/
  __pyx_v_cbData = ((__pyx_t_4cuda_8bindings_7runtime_cudaStreamCallbackData *)malloc((sizeof((__pyx_v_cbData[0])))));

  /* "cuda/bindings/runtime.pyx":17403
 *     cdef cudaStreamCallbackData *cbData = NULL
 *     cbData = <cudaStreamCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:             # <<<<<<<<<<<<<<
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
 *     cbData.callback = cycallback
*/
  __pyx_t_1 = (__pyx_v_cbData == NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17404
 *     cbData = <cudaStreamCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation,)             # <<<<<<<<<<<<<<
 *     cbData.callback = cycallback
 *     cbData.userData = cyuserData_ptr
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_cudaErrorMemoryAllocation); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 17404, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":17403
 *     cdef cudaStreamCallbackData *cbData = NULL
 *     cbData = <cudaStreamCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:             # <<<<<<<<<<<<<<
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
 *     cbData.callback = cycallback
*/
  }

  /* "cuda/bindings/runtime.pyx":17405
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
 *     cbData.callback = cycallback             # <<<<<<<<<<<<<<
 *     cbData.userData = cyuserData_ptr
 * 
*/
  __pyx_v_cbData->callback = __pyx_v_cycallback;

  /* "cuda/bindings/runtime.pyx":17406
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
 *     cbData.callback = cycallback
 *     cbData.userData = cyuserData_ptr             # <<<<<<<<<<<<<<
 * 
 *     with nogil:
*/
  __pyx_v_cbData->userData = __pyx_v_cyuserData_ptr;

  /* "cuda/bindings/runtime.pyx":17408
 *     cbData.userData = cyuserData_ptr
 * 
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamAddCallback(cystream, <cyruntime.cudaStreamCallback_t>cudaStreamRtCallbackWrapper, <void *>cbData, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17409
 * 
 *     with nogil:
 *         err = cyruntime.cudaStreamAddCallback(cystream, <cyruntime.cudaStreamCallback_t>cudaStreamRtCallbackWrapper, <void *>cbData, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         free(cbData)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamAddCallback(__pyx_v_cystream, ((cudaStreamCallback_t)__pyx_f_4cuda_8bindings_7runtime_cudaStreamRtCallbackWrapper), ((void *)__pyx_v_cbData), __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17409, __pyx_L9_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17408
 *     cbData.userData = cyuserData_ptr
 * 
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamAddCallback(cystream, <cyruntime.cudaStreamCallback_t>cudaStreamRtCallbackWrapper, <void *>cbData, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L10;
        }
        __pyx_L9_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L10:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17410
 *     with nogil:
 *         err = cyruntime.cudaStreamAddCallback(cystream, <cyruntime.cudaStreamCallback_t>cudaStreamRtCallbackWrapper, <void *>cbData, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         free(cbData)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17411
 *         err = cyruntime.cudaStreamAddCallback(cystream, <cyruntime.cudaStreamCallback_t>cudaStreamRtCallbackWrapper, <void *>cbData, flags)
 *     if err != cyruntime.cudaSuccess:
 *         free(cbData)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cbData);

    /* "cuda/bindings/runtime.pyx":17410
 *     with nogil:
 *         err = cyruntime.cudaStreamAddCallback(cystream, <cyruntime.cudaStreamCallback_t>cudaStreamRtCallbackWrapper, <void *>cbData, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         free(cbData)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":17412
 *     if err != cyruntime.cudaSuccess:
 *         free(cbData)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17412, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17313
 *     free(cbData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamAddCallback(stream, callback, userData, unsigned int flags):
 *     """ Add a callback to a compute stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamAddCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pcallback);
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyuserData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17414
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamSynchronize(stream):
 *     """ Waits for stream tasks to complete.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_109cudaStreamSynchronize(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_7runtime_108cudaStreamSynchronize, "cudaStreamSynchronize(stream)\n\nWaits for stream tasks to complete.\n\nBlocks until `stream` has completed all operations. If the\n:py:obj:`~.cudaDeviceScheduleBlockingSync` flag was set for this\ndevice, the host thread will block until the stream is finished with\nall of its tasks.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamSynchronize`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_109cudaStreamSynchronize = {"cudaStreamSynchronize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_109cudaStreamSynchronize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_108cudaStreamSynchronize};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_109cudaStreamSynchronize(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_stream = 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("cudaStreamSynchronize (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_stream,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, 17414, __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, 17414, __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, "cudaStreamSynchronize", 0) < (0)) __PYX_ERR(0, 17414, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamSynchronize", 1, 1, 1, i); __PYX_ERR(0, 17414, __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, 17414, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamSynchronize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17414, __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.runtime.cudaStreamSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_108cudaStreamSynchronize(__pyx_self, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_108cudaStreamSynchronize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamSynchronize", 0);

  /* "cuda/bindings/runtime.pyx":17438
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17439
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17438
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17440
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17441
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17440
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17443
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17443, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17443, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17444
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamSynchronize(cystream)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17444, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17445
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamSynchronize(cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17446
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
 *         err = cyruntime.cudaStreamSynchronize(cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamSynchronize(__pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17446, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17445
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamSynchronize(cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17447
 *     with nogil:
 *         err = cyruntime.cudaStreamSynchronize(cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17447, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17414
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamSynchronize(stream):
 *     """ Waits for stream tasks to complete.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17449
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamQuery(stream):
 *     """ Queries an asynchronous stream for completion status.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_111cudaStreamQuery(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_7runtime_110cudaStreamQuery, "cudaStreamQuery(stream)\n\nQueries an asynchronous stream for completion status.\n\nReturns :py:obj:`~.cudaSuccess` if all operations in `stream` have\ncompleted, or :py:obj:`~.cudaErrorNotReady` if not.\n\nFor the purposes of Unified Memory, a return value of\n:py:obj:`~.cudaSuccess` is equivalent to having called\n:py:obj:`~.cudaStreamSynchronize()`.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotReady`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cuStreamQuery`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_111cudaStreamQuery = {"cudaStreamQuery", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_111cudaStreamQuery, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_110cudaStreamQuery};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_111cudaStreamQuery(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_stream = 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("cudaStreamQuery (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_stream,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, 17449, __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, 17449, __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, "cudaStreamQuery", 0) < (0)) __PYX_ERR(0, 17449, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamQuery", 1, 1, 1, i); __PYX_ERR(0, 17449, __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, 17449, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamQuery", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17449, __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.runtime.cudaStreamQuery", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_110cudaStreamQuery(__pyx_self, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_110cudaStreamQuery(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamQuery", 0);

  /* "cuda/bindings/runtime.pyx":17475
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17476
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17475
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17477
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17478
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17477
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17480
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17480, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17481
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamQuery(cystream)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17481, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17482
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamQuery(cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17483
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
 *         err = cyruntime.cudaStreamQuery(cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamQuery(__pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17483, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17482
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamQuery(cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17484
 *     with nogil:
 *         err = cyruntime.cudaStreamQuery(cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17484, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17449
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamQuery(stream):
 *     """ Queries an asynchronous stream for completion status.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamQuery", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17486
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags):
 *     """ Attach memory to a stream asynchronously.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_113cudaStreamAttachMemAsync(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_7runtime_112cudaStreamAttachMemAsync, "cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags)\n\nAttach memory to a stream asynchronously.\n\nEnqueues an operation in `stream` to specify stream association of\n`length` bytes of memory starting from `devPtr`. This function is a\nstream-ordered operation, meaning that it is dependent on, and will\nonly take effect when, previous work in stream has completed. Any\nprevious association is automatically replaced.\n\n`devPtr` must point to an one of the following types of memories:\n\n- managed memory declared using the managed keyword or allocated with\n  :py:obj:`~.cudaMallocManaged`.\n\n- a valid host-accessible region of system-allocated pageable memory.\n  This type of memory may only be specified if the device associated\n  with the stream reports a non-zero value for the device attribute\n  :py:obj:`~.cudaDevAttrPageableMemoryAccess`.\n\nFor managed allocations, `length` must be either zero or the entire\nallocation's size. Both indicate that the entire allocation's stream\nassociation is being changed. Currently, it is not possible to change\nstream association for a portion of a managed allocation.\n\nFor pageable allocations, `length` must be non-zero.\n\nThe stream association is specified using `flags` which must be one of\n:py:obj:`~.cudaMemAttachGlobal`, :py:obj:`~.cudaMemAttachHost` or\n:py:obj:`~.cudaMemAttachSingle`. The default value for `flags` is\n:py:obj:`~.cudaMemAttachSingle` If the :py:obj:`~.cudaMemAttachGlobal`\nflag is specified, the memory can be accessed by any stream on any\ndevice. If the :py:obj:`~.cudaMemAttachHost` flag is specified, the\nprogram makes a guarantee that it won't access the memory on the device\nfrom any stream on a device that has a zero value for the device\nattribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess`. If the\n:py:obj:`~.cudaMemAttachSingle` flag is specified and `stream` is\nassociated with a device that has a zero value for the device attribute\n:py:obj:`~.cudaDevAttrConcurr""entManagedAccess`, the program makes a\nguarantee that it will only access the memory on the device from\n`stream`. It is illegal to attach singly to the NULL stream, because\nthe NULL stream is a virtual global stream and not a specific stream.\nAn error will be returned in this case.\n\nWhen memory is associated with a single stream, the Unified Memory\nsystem will allow CPU access to this memory region so long as all\noperations in `stream` have completed, regardless of whether other\nstreams are active. In effect, this constrains exclusive ownership of\nthe managed memory region by an active GPU to per-stream activity\ninstead of whole-GPU activity.\n\nAccessing memory on the device from streams that are not associated\nwith it will produce undefined results. No error checking is performed\nby the Unified Memory system to ensure that kernels launched into other\nstreams do not access this region.\n\nIt is a program's responsibility to order calls to\n:py:obj:`~.cudaStreamAttachMemAsync` via events, synchronization or\nother means to ensure legal access to memory at all times. Data\nvisibility and coherency will be changed appropriately for all kernels\nwhich follow a stream-association change.\n\nIf `stream` is destroyed while data is associated with it, the\nassociation is removed and the association reverts to the default\nvisibility of the allocation as specified at\n:py:obj:`~.cudaMallocManaged`. For managed variables, the default\nassociation is always :py:obj:`~.cudaMemAttachGlobal`. Note that\ndestroying a stream is an asynchronous operation, and as a result, the\nchange to default association won't happen until all work in the stream\nhas completed.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream in which to enqueue the attach operation\ndevPtr : Any\n    Pointer to memory (must be a pointer to managed memory or to a\n    valid host-accessible region of system-allocated memory)\nlength : size_t\n    Length"" of memory (defaults to zero)\nflags : unsigned int\n    Must be one of :py:obj:`~.cudaMemAttachGlobal`,\n    :py:obj:`~.cudaMemAttachHost` or :py:obj:`~.cudaMemAttachSingle`\n    (defaults to :py:obj:`~.cudaMemAttachSingle`)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotReady`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamCreateWithFlags`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cudaMallocManaged`, :py:obj:`~.cuStreamAttachMemAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_113cudaStreamAttachMemAsync = {"cudaStreamAttachMemAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_113cudaStreamAttachMemAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_112cudaStreamAttachMemAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_113cudaStreamAttachMemAsync(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_stream = 0;
  PyObject *__pyx_v_devPtr = 0;
  size_t __pyx_v_length;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamAttachMemAsync (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_stream,&__pyx_mstate_global->__pyx_n_u_devPtr_2,&__pyx_mstate_global->__pyx_n_u_length,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 17486, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 17486, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17486, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17486, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 17486, __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, "cudaStreamAttachMemAsync", 0) < (0)) __PYX_ERR(0, 17486, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamAttachMemAsync", 1, 4, 4, i); __PYX_ERR(0, 17486, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 17486, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17486, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17486, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 17486, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
    __pyx_v_devPtr = values[1];
    __pyx_v_length = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_length == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17487, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 17487, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamAttachMemAsync", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 17486, __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.runtime.cudaStreamAttachMemAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_112cudaStreamAttachMemAsync(__pyx_self, __pyx_v_stream, __pyx_v_devPtr, __pyx_v_length, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_112cudaStreamAttachMemAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_devPtr, size_t __pyx_v_length, unsigned int __pyx_v_flags) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamAttachMemAsync", 0);

  /* "cuda/bindings/runtime.pyx":17581
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17582
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17581
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17583
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17584
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17583
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17586
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17586, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17587
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17587, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17588
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_devPtr};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17588, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":17589
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamAttachMemAsync(cystream, cydevPtr_ptr, length, flags)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17589, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17590
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamAttachMemAsync(cystream, cydevPtr_ptr, length, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17591
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaStreamAttachMemAsync(cystream, cydevPtr_ptr, length, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamAttachMemAsync(__pyx_v_cystream, __pyx_v_cydevPtr_ptr, __pyx_v_length, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17591, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17590
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamAttachMemAsync(cystream, cydevPtr_ptr, length, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17592
 *     with nogil:
 *         err = cyruntime.cudaStreamAttachMemAsync(cystream, cydevPtr_ptr, length, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17592, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17486
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags):
 *     """ Attach memory to a stream asynchronously.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamAttachMemAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17594
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode):
 *     """ Begins graph capture on a stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_115cudaStreamBeginCapture(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_7runtime_114cudaStreamBeginCapture, "cudaStreamBeginCapture(stream, mode: cudaStreamCaptureMode)\n\nBegins graph capture on a stream.\n\nBegin graph capture on `stream`. When a stream is in capture mode, all\noperations pushed into the stream will not be executed, but will\ninstead be captured into a graph, which will be returned via\n:py:obj:`~.cudaStreamEndCapture`. Capture may not be initiated if\n`stream` is :py:obj:`~.cudaStreamLegacy`. Capture must be ended on the\nsame stream in which it was initiated, and it may only be initiated if\nthe stream is not already in capture mode. The capture mode may be\nqueried via :py:obj:`~.cudaStreamIsCapturing`. A unique id representing\nthe capture sequence may be queried via\n:py:obj:`~.cudaStreamGetCaptureInfo`.\n\nIf `mode` is not :py:obj:`~.cudaStreamCaptureModeRelaxed`,\n:py:obj:`~.cudaStreamEndCapture` must be called on this stream from the\nsame thread.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream in which to initiate capture\nmode : :py:obj:`~.cudaStreamCaptureMode`\n    Controls the interaction of this capture sequence with other API\n    calls that are potentially unsafe. For more details see\n    :py:obj:`~.cudaThreadExchangeStreamCaptureMode`.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaStreamEndCapture`, :py:obj:`~.cudaThreadExchangeStreamCaptureMode`\n\nNotes\n-----\nKernels captured using this API must not use texture and surface references. Reading or writing through any texture or surface reference is undefined behavior. This restriction does not apply to texture and surface objects.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_115cudaStreamBeginCapture = {"cudaStreamBeginCapture", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_115cudaStreamBeginCapture, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_114cudaStreamBeginCapture};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_115cudaStreamBeginCapture(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_stream = 0;
  PyObject *__pyx_v_mode = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamBeginCapture (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_stream,&__pyx_mstate_global->__pyx_n_u_mode,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, 17594, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17594, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 17594, __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, "cudaStreamBeginCapture", 0) < (0)) __PYX_ERR(0, 17594, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCapture", 1, 2, 2, i); __PYX_ERR(0, 17594, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 17594, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17594, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
    __pyx_v_mode = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCapture", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 17594, __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.runtime.cudaStreamBeginCapture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_mode) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "mode"); __PYX_ERR(0, 17595, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_114cudaStreamBeginCapture(__pyx_self, __pyx_v_stream, __pyx_v_mode);

  /* 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_7runtime_114cudaStreamBeginCapture(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_mode) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  enum cudaStreamCaptureMode __pyx_v_cymode;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaStreamCaptureMode __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamBeginCapture", 0);

  /* "cuda/bindings/runtime.pyx":17636
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17637
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17636
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17638
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17639
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17638
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17641
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17641, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17641, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17642
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17642, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17643
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamBeginCapture(cystream, cymode)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaStreamCaptureMode)__Pyx_PyLong_As_enum__cudaStreamCaptureMode(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17643, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cymode = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":17644
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamBeginCapture(cystream, cymode)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17645
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:
 *         err = cyruntime.cudaStreamBeginCapture(cystream, cymode)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamBeginCapture(__pyx_v_cystream, __pyx_v_cymode); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17645, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":17644
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamBeginCapture(cystream, cymode)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17646
 *     with nogil:
 *         err = cyruntime.cudaStreamBeginCapture(cystream, cymode)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 17646, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17594
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode):
 *     """ Begins graph capture on a stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamBeginCapture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17648
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, mode not None : cudaStreamCaptureMode):
 *     """ Begins graph capture on a stream to an existing graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_117cudaStreamBeginCaptureToGraph(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_7runtime_116cudaStreamBeginCaptureToGraph, "cudaStreamBeginCaptureToGraph(stream, graph, dependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData: Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, mode: cudaStreamCaptureMode)\n\nBegins graph capture on a stream to an existing graph.\n\nBegin graph capture on `stream`. When a stream is in capture mode, all\noperations pushed into the stream will not be executed, but will\ninstead be captured into `graph`, which will be returned via\n:py:obj:`~.cudaStreamEndCapture`.\n\nCapture may not be initiated if `stream` is\n:py:obj:`~.cudaStreamLegacy`. Capture must be ended on the same stream\nin which it was initiated, and it may only be initiated if the stream\nis not already in capture mode. The capture mode may be queried via\n:py:obj:`~.cudaStreamIsCapturing`. A unique id representing the capture\nsequence may be queried via :py:obj:`~.cudaStreamGetCaptureInfo`.\n\nIf `mode` is not :py:obj:`~.cudaStreamCaptureModeRelaxed`,\n:py:obj:`~.cudaStreamEndCapture` must be called on this stream from the\nsame thread.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream in which to initiate capture.\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to capture into.\ndependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the first node captured in the stream. Can be NULL\n    if numDependencies is 0.\ndependencyData : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional array of data associated with each dependency.\nnumDependencies : size_t\n    Number of dependencies.\nmode : :py:obj:`~.cudaStreamCaptureMode`\n    Controls the interaction of this capture sequence with other API\n    calls that are potentially unsafe. For more details see\n    :py:obj:`~.cudaThreadExchangeStreamCaptureMode`.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`,"" :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaStreamEndCapture`, :py:obj:`~.cudaThreadExchangeStreamCaptureMode`\n\nNotes\n-----\nKernels captured using this API must not use texture and surface references. Reading or writing through any texture or surface reference is undefined behavior. This restriction does not apply to texture and surface objects.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_117cudaStreamBeginCaptureToGraph = {"cudaStreamBeginCaptureToGraph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_117cudaStreamBeginCaptureToGraph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_116cudaStreamBeginCaptureToGraph};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_117cudaStreamBeginCaptureToGraph(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_stream = 0;
  PyObject *__pyx_v_graph = 0;
  PyObject *__pyx_v_dependencies = 0;
  PyObject *__pyx_v_dependencyData = 0;
  size_t __pyx_v_numDependencies;
  PyObject *__pyx_v_mode = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamBeginCaptureToGraph (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_stream,&__pyx_mstate_global->__pyx_n_u_graph_2,&__pyx_mstate_global->__pyx_n_u_dependencies,&__pyx_mstate_global->__pyx_n_u_dependencyData,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_mode,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, 17648, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 17648, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 17648, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 17648, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17648, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17648, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 17648, __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, "cudaStreamBeginCaptureToGraph", 0) < (0)) __PYX_ERR(0, 17648, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCaptureToGraph", 1, 6, 6, i); __PYX_ERR(0, 17648, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      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, 17648, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 17648, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 17648, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 17648, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 17648, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 17648, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
    __pyx_v_graph = values[1];
    __pyx_v_dependencies = values[2];
    __pyx_v_dependencyData = values[3];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 17649, __pyx_L3_error)
    __pyx_v_mode = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamBeginCaptureToGraph", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 17648, __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.runtime.cudaStreamBeginCaptureToGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_mode) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "mode"); __PYX_ERR(0, 17649, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_116cudaStreamBeginCaptureToGraph(__pyx_self, __pyx_v_stream, __pyx_v_graph, __pyx_v_dependencies, __pyx_v_dependencyData, __pyx_v_numDependencies, __pyx_v_mode);

  /* 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_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_2generator90(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":17700
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 17700, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_2generator90, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[90]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaStreamBeginCaptureToGraph_lo, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 17700, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamBeginCaptureToGraph.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_2generator90(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 17700, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 17700, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17700, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17700, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17700, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17700, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 17700, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_5generator91(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":17703
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 17703, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_5generator91, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[91]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaStreamBeginCaptureToGraph_lo, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 17703, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamBeginCaptureToGraph.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_5generator91(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 17703, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 17703, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17703, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17703, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 17703, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17703, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 17703, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17648
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, mode not None : cudaStreamCaptureMode):
 *     """ Begins graph capture on a stream to an existing graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_116cudaStreamBeginCaptureToGraph(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_graph, PyObject *__pyx_v_dependencies, PyObject *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, PyObject *__pyx_v_mode) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaGraphNode_t *__pyx_v_cydependencies;
  Py_ssize_t __pyx_v_idx;
  cudaGraphEdgeData *__pyx_v_cydependencyData;
  enum cudaStreamCaptureMode __pyx_v_cymode;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_2generator90 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_5generator91 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaGraphEdgeData_st *__pyx_t_13;
  enum cudaStreamCaptureMode __pyx_t_14;
  cudaError_t __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamBeginCaptureToGraph", 0);
  __Pyx_INCREF(__pyx_v_dependencies);
  __Pyx_INCREF(__pyx_v_dependencyData);

  /* "cuda/bindings/runtime.pyx":17699
 *     Kernels captured using this API must not use texture and surface references. Reading or writing through any texture or surface reference is undefined behavior. This restriction does not apply to texture and surface objects.
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
*/
  __pyx_t_2 = (__pyx_v_dependencyData == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17699, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dependencyData);
    __pyx_t_1 = __pyx_v_dependencyData;
  }
  __Pyx_DECREF_SET(__pyx_v_dependencyData, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":17700
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_genexpr(NULL, __pyx_v_dependencyData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 17700, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":17701
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")             # <<<<<<<<<<<<<<
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_dependencyData_is_not_i};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17701, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 17701, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":17700
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
*/
  }

  /* "cuda/bindings/runtime.pyx":17702
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_4 = (__pyx_v_dependencies == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dependencies);
    __pyx_t_3 = __pyx_v_dependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_dependencies, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":17703
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_3genexpr(NULL, __pyx_v_dependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 17703, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":17704
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_dependencies_is_not_ins};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17704, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 17704, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":17703
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":17706
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_2 = (__pyx_v_graph == Py_None);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17707
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17706
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L5;
  }

  /* "cuda/bindings/runtime.pyx":17708
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_2 = __pyx_t_4;
  __pyx_L6_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17709
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":17708
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L5;
  }

  /* "cuda/bindings/runtime.pyx":17711
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaStream_t cystream
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_graph};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17711, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_1);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L5:;

  /* "cuda/bindings/runtime.pyx":17712
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17712, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17714
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_2 = (__pyx_v_stream == Py_None);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17715
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17714
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L8;
  }

  /* "cuda/bindings/runtime.pyx":17716
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L9_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_2 = __pyx_t_4;
  __pyx_L9_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17717
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17716
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L8;
  }

  /* "cuda/bindings/runtime.pyx":17719
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17719, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L8:;

  /* "cuda/bindings/runtime.pyx":17720
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
 *     if len(dependencies) > 1:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17720, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17721
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(dependencies) > 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cydependencies = NULL;

  /* "cuda/bindings/runtime.pyx":17722
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
 *     if len(dependencies) > 1:             # <<<<<<<<<<<<<<
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17722, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17723
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
 *     if len(dependencies) > 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cydependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17723, __pyx_L1_error)
    __pyx_v_cydependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":17724
 *     if len(dependencies) > 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_2 = (__pyx_v_cydependencies == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":17725
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(dependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17725, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17725, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17725, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17725, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17725, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17725, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 17725, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17725, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17725, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 17725, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":17724
 *     if len(dependencies) > 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":17727
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(dependencies)):             # <<<<<<<<<<<<<<
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]
 *     elif len(dependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17727, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":17728
 *         else:
 *             for idx in range(len(dependencies)):
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(dependencies) == 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17728, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cydependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":17722
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
 *     if len(dependencies) > 1:             # <<<<<<<<<<<<<<
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:
*/
    goto __pyx_L11;
  }

  /* "cuda/bindings/runtime.pyx":17729
 *             for idx in range(len(dependencies)):
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]
 *     elif len(dependencies) == 1:             # <<<<<<<<<<<<<<
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17729, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17730
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]
 *     elif len(dependencies) == 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17730, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cydependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":17729
 *             for idx in range(len(dependencies)):
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]
 *     elif len(dependencies) == 1:             # <<<<<<<<<<<<<<
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
*/
  }
  __pyx_L11:;

  /* "cuda/bindings/runtime.pyx":17731
 *     elif len(dependencies) == 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL             # <<<<<<<<<<<<<<
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
*/
  __pyx_v_cydependencyData = NULL;

  /* "cuda/bindings/runtime.pyx":17732
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17732, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17733
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17733, __pyx_L1_error)
    __pyx_v_cydependencyData = ((cudaGraphEdgeData *)calloc(__pyx_t_7, (sizeof(cudaGraphEdgeData))));

    /* "cuda/bindings/runtime.pyx":17734
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
*/
    __pyx_t_2 = (__pyx_v_cydependencyData == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":17735
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
*/
      __pyx_t_8 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17735, __pyx_L1_error)
      __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17735, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 17735, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17735, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 17735, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17735, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17735, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17735, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17735, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 17735, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":17734
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
*/
    }

    /* "cuda/bindings/runtime.pyx":17736
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17736, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":17737
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
*/
      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencyData, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17737, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      (void)(memcpy((&(__pyx_v_cydependencyData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._pvt_ptr, (sizeof(cudaGraphEdgeData))));
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "cuda/bindings/runtime.pyx":17732
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
*/
    goto __pyx_L15;
  }

  /* "cuda/bindings/runtime.pyx":17738
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     if numDependencies > <size_t>len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17738, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17739
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_dependencyData, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17739, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._pvt_ptr;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_cydependencyData = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":17738
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     if numDependencies > <size_t>len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L15:;

  /* "cuda/bindings/runtime.pyx":17740
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     if numDependencies > <size_t>len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17740, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_3 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17740, __pyx_L1_error)
    __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 17740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((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_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17740, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 17740, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":17741
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     if numDependencies > <size_t>len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamBeginCaptureToGraph(cystream, cygraph, cydependencies, cydependencyData, numDependencies, cymode)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_14 = ((enum cudaStreamCaptureMode)__Pyx_PyLong_As_enum__cudaStreamCaptureMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17741, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cymode = __pyx_t_14;

  /* "cuda/bindings/runtime.pyx":17742
 *     if numDependencies > <size_t>len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamBeginCaptureToGraph(cystream, cygraph, cydependencies, cydependencyData, numDependencies, cymode)
 *     if len(dependencies) > 1 and cydependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17743
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:
 *         err = cyruntime.cudaStreamBeginCaptureToGraph(cystream, cygraph, cydependencies, cydependencyData, numDependencies, cymode)             # <<<<<<<<<<<<<<
 *     if len(dependencies) > 1 and cydependencies is not NULL:
 *         free(cydependencies)
*/
        __pyx_t_15 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamBeginCaptureToGraph(__pyx_v_cystream, __pyx_v_cygraph, __pyx_v_cydependencies, __pyx_v_cydependencyData, __pyx_v_numDependencies, __pyx_v_cymode); if (unlikely(__pyx_t_15 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17743, __pyx_L21_error)
        __pyx_v_err = __pyx_t_15;
      }

      /* "cuda/bindings/runtime.pyx":17742
 *     if numDependencies > <size_t>len(dependencies): raise RuntimeError("List is too small: " + str(len(dependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamBeginCaptureToGraph(cystream, cygraph, cydependencies, cydependencyData, numDependencies, cymode)
 *     if len(dependencies) > 1 and cydependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L22;
        }
        __pyx_L21_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L22:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17744
 *     with nogil:
 *         err = cyruntime.cudaStreamBeginCaptureToGraph(cystream, cygraph, cydependencies, cydependencyData, numDependencies, cymode)
 *     if len(dependencies) > 1 and cydependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17744, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L24_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_cydependencies != NULL);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L24_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17745
 *         err = cyruntime.cudaStreamBeginCaptureToGraph(cystream, cygraph, cydependencies, cydependencyData, numDependencies, cymode)
 *     if len(dependencies) > 1 and cydependencies is not NULL:
 *         free(cydependencies)             # <<<<<<<<<<<<<<
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)
*/
    free(__pyx_v_cydependencies);

    /* "cuda/bindings/runtime.pyx":17744
 *     with nogil:
 *         err = cyruntime.cudaStreamBeginCaptureToGraph(cystream, cygraph, cydependencies, cydependencyData, numDependencies, cymode)
 *     if len(dependencies) > 1 and cydependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":17746
 *     if len(dependencies) > 1 and cydependencies is not NULL:
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencyData)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 17746, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L27_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_cydependencyData != NULL);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L27_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":17747
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cydependencyData);

    /* "cuda/bindings/runtime.pyx":17746
 *     if len(dependencies) > 1 and cydependencies is not NULL:
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencyData)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":17748
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 17748, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17648
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, mode not None : cudaStreamCaptureMode):
 *     """ Begins graph capture on a stream to an existing graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamBeginCaptureToGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_2generator90);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_29cudaStreamBeginCaptureToGraph_5generator91);
  __Pyx_XDECREF(__pyx_v_dependencies);
  __Pyx_XDECREF(__pyx_v_dependencyData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17750
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode):
 *     """ Swaps the stream capture interaction mode for a thread.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_119cudaThreadExchangeStreamCaptureMode(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_7runtime_118cudaThreadExchangeStreamCaptureMode, "cudaThreadExchangeStreamCaptureMode(mode: cudaStreamCaptureMode)\n\nSwaps the stream capture interaction mode for a thread.\n\nSets the calling thread's stream capture interaction mode to the value\ncontained in `*mode`, and overwrites `*mode` with the previous mode for\nthe thread. To facilitate deterministic behavior across function or\nmodule boundaries, callers are encouraged to use this API in a push-pop\nfashion:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nDuring stream capture (see :py:obj:`~.cudaStreamBeginCapture`), some\nactions, such as a call to :py:obj:`~.cudaMalloc`, may be unsafe. In\nthe case of :py:obj:`~.cudaMalloc`, the operation is not enqueued\nasynchronously to a stream, and is not observed by stream capture.\nTherefore, if the sequence of operations captured via\n:py:obj:`~.cudaStreamBeginCapture` depended on the allocation being\nreplayed whenever the graph is launched, the captured graph would be\ninvalid.\n\nTherefore, stream capture places restrictions on API calls that can be\nmade within or concurrently to a\n:py:obj:`~.cudaStreamBeginCapture`-:py:obj:`~.cudaStreamEndCapture`\nsequence. This behavior can be controlled via this API and flags to\n:py:obj:`~.cudaStreamBeginCapture`.\n\nA thread's mode is one of the following:\n\n- `cudaStreamCaptureModeGlobal:` This is the default mode. If the local\n  thread has an ongoing capture sequence that was not initiated with\n  `cudaStreamCaptureModeRelaxed` at `cuStreamBeginCapture`, or if any\n  other thread has a concurrent capture sequence initiated with\n  `cudaStreamCaptureModeGlobal`, this thread is prohibited from\n  potentially unsafe API calls.\n\n- `cudaStreamCaptureModeThreadLocal:` If the local thread has an\n  ongoing capture sequence not initiated with\n  `cudaStreamCaptureModeRelaxed`, it is prohibited from potentially\n  unsafe API calls. Concurrent capture sequences in other threads are\n  ignored.\n\n- `cudaStreamCaptureModeRelaxed:` The local thread is not ""prohibited\n  from potentially unsafe API calls. Note that the thread is still\n  prohibited from API calls which necessarily conflict with stream\n  capture, for example, attempting :py:obj:`~.cudaEventQuery` on an\n  event that was last recorded inside a capture sequence.\n\nParameters\n----------\nmode : :py:obj:`~.cudaStreamCaptureMode`\n    Pointer to mode value to swap with the current mode\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nmode : :py:obj:`~.cudaStreamCaptureMode`\n    Pointer to mode value to swap with the current mode\n\nSee Also\n--------\n:py:obj:`~.cudaStreamBeginCapture`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_119cudaThreadExchangeStreamCaptureMode = {"cudaThreadExchangeStreamCaptureMode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_119cudaThreadExchangeStreamCaptureMode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_118cudaThreadExchangeStreamCaptureMode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_119cudaThreadExchangeStreamCaptureMode(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_mode = 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("cudaThreadExchangeStreamCaptureMode (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_mode,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, 17750, __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, 17750, __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, "cudaThreadExchangeStreamCaptureMode", 0) < (0)) __PYX_ERR(0, 17750, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaThreadExchangeStreamCaptureMode", 1, 1, 1, i); __PYX_ERR(0, 17750, __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, 17750, __pyx_L3_error)
    }
    __pyx_v_mode = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaThreadExchangeStreamCaptureMode", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17750, __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.runtime.cudaThreadExchangeStreamCaptureMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_mode) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "mode"); __PYX_ERR(0, 17751, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_118cudaThreadExchangeStreamCaptureMode(__pyx_self, __pyx_v_mode);

  /* 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_7runtime_118cudaThreadExchangeStreamCaptureMode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mode) {
  enum cudaStreamCaptureMode __pyx_v_cymode;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaStreamCaptureMode __pyx_t_2;
  cudaError_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaThreadExchangeStreamCaptureMode", 0);

  /* "cuda/bindings/runtime.pyx":17814
 *     :py:obj:`~.cudaStreamBeginCapture`
 *     """
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaThreadExchangeStreamCaptureMode(&cymode)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_mode, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaStreamCaptureMode)__Pyx_PyLong_As_enum__cudaStreamCaptureMode(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 17814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cymode = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":17815
 *     """
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaThreadExchangeStreamCaptureMode(&cymode)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17816
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:
 *         err = cyruntime.cudaThreadExchangeStreamCaptureMode(&cymode)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaThreadExchangeStreamCaptureMode((&__pyx_v_cymode)); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17816, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":17815
 *     """
 *     cdef cyruntime.cudaStreamCaptureMode cymode = mode.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaThreadExchangeStreamCaptureMode(&cymode)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17817
 *     with nogil:
 *         err = cyruntime.cudaThreadExchangeStreamCaptureMode(&cymode)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureMode(cymode))
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":17818
 *         err = cyruntime.cudaThreadExchangeStreamCaptureMode(&cymode)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cudaStreamCaptureMode(cymode))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17818, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17818, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17818, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17818, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 17818, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 17818, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":17817
 *     with nogil:
 *         err = cyruntime.cudaThreadExchangeStreamCaptureMode(&cymode)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureMode(cymode))
*/
  }

  /* "cuda/bindings/runtime.pyx":17819
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureMode(cymode))             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 17819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaStreamCaptureMode(__pyx_v_cymode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_8};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 17819, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 17819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 17819, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 17819, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17750
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode):
 *     """ Swaps the stream capture interaction mode for a thread.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaThreadExchangeStreamCaptureMode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17821
 *     return (_dict_cudaError_t[err], cudaStreamCaptureMode(cymode))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamEndCapture(stream):
 *     """ Ends capture on a stream, returning the captured graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_121cudaStreamEndCapture(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_7runtime_120cudaStreamEndCapture, "cudaStreamEndCapture(stream)\n\nEnds capture on a stream, returning the captured graph.\n\nEnd capture on `stream`, returning the captured graph via `pGraph`.\nCapture must have been initiated on `stream` via a call to\n:py:obj:`~.cudaStreamBeginCapture`. If capture was invalidated, due to\na violation of the rules of stream capture, then a NULL graph will be\nreturned.\n\nIf the `mode` argument to :py:obj:`~.cudaStreamBeginCapture` was not\n:py:obj:`~.cudaStreamCaptureModeRelaxed`, this call must be from the\nsame thread as :py:obj:`~.cudaStreamBeginCapture`.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorStreamCaptureWrongThread`\npGraph : :py:obj:`~.cudaGraph_t`\n    The captured graph\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaGraphDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_121cudaStreamEndCapture = {"cudaStreamEndCapture", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_121cudaStreamEndCapture, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_120cudaStreamEndCapture};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_121cudaStreamEndCapture(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_stream = 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("cudaStreamEndCapture (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_stream,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, 17821, __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, 17821, __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, "cudaStreamEndCapture", 0) < (0)) __PYX_ERR(0, 17821, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamEndCapture", 1, 1, 1, i); __PYX_ERR(0, 17821, __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, 17821, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamEndCapture", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17821, __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.runtime.cudaStreamEndCapture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_120cudaStreamEndCapture(__pyx_self, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_120cudaStreamEndCapture(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_pGraph = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamEndCapture", 0);

  /* "cuda/bindings/runtime.pyx":17852
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17853
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17852
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17854
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17855
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17854
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17857
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17857, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17857, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17858
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17858, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17859
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cudaGraph_t pGraph = cudaGraph_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamEndCapture(cystream, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17859, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":17860
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamEndCapture(cystream, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17861
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:
 *         err = cyruntime.cudaStreamEndCapture(cystream, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamEndCapture(__pyx_v_cystream, ((cudaGraph_t *)__pyx_v_pGraph->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17861, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17860
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamEndCapture(cystream, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17862
 *     with nogil:
 *         err = cyruntime.cudaStreamEndCapture(cystream, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17863
 *         err = cyruntime.cudaStreamEndCapture(cystream, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraph)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17863, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 17863, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":17862
 *     with nogil:
 *         err = cyruntime.cudaStreamEndCapture(cystream, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)
*/
  }

  /* "cuda/bindings/runtime.pyx":17864
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 17864, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraph);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraph);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraph)) != (0)) __PYX_ERR(0, 17864, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17821
 *     return (_dict_cudaError_t[err], cudaStreamCaptureMode(cymode))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamEndCapture(stream):
 *     """ Ends capture on a stream, returning the captured graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamEndCapture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17866
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamIsCapturing(stream):
 *     """ Returns a stream's capture status.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_123cudaStreamIsCapturing(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_7runtime_122cudaStreamIsCapturing, "cudaStreamIsCapturing(stream)\n\nReturns a stream's capture status.\n\nReturn the capture status of `stream` via `pCaptureStatus`. After a\nsuccessful call, `*pCaptureStatus` will contain one of the following:\n\n- :py:obj:`~.cudaStreamCaptureStatusNone`: The stream is not capturing.\n\n- :py:obj:`~.cudaStreamCaptureStatusActive`: The stream is capturing.\n\n- :py:obj:`~.cudaStreamCaptureStatusInvalidated`: The stream was\n  capturing but an error has invalidated the capture sequence. The\n  capture sequence must be terminated with\n  :py:obj:`~.cudaStreamEndCapture` on the stream where it was initiated\n  in order to continue using `stream`.\n\nNote that, if this is called on :py:obj:`~.cudaStreamLegacy` (the \"null\nstream\") while a blocking stream on the same device is capturing, it\nwill return :py:obj:`~.cudaErrorStreamCaptureImplicit` and\n`*pCaptureStatus` is unspecified after the call. The blocking stream\ncapture is not invalidated.\n\nWhen a blocking stream is capturing, the legacy stream is in an\nunusable state until the blocking stream capture is terminated. The\nlegacy stream is not supported for stream capture, but attempted use\nwould have an implicit dependency on the capturing stream(s).\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorStreamCaptureImplicit`\npCaptureStatus : :py:obj:`~.cudaStreamCaptureStatus`\n    Returns the stream's capture status\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamEndCapture`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_123cudaStreamIsCapturing = {"cudaStreamIsCapturing", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_123cudaStreamIsCapturing, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_122cudaStreamIsCapturing};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_123cudaStreamIsCapturing(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_stream = 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("cudaStreamIsCapturing (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_stream,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, 17866, __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, 17866, __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, "cudaStreamIsCapturing", 0) < (0)) __PYX_ERR(0, 17866, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamIsCapturing", 1, 1, 1, i); __PYX_ERR(0, 17866, __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, 17866, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamIsCapturing", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17866, __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.runtime.cudaStreamIsCapturing", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_122cudaStreamIsCapturing(__pyx_self, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_122cudaStreamIsCapturing(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  enum cudaStreamCaptureStatus __pyx_v_pCaptureStatus;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamIsCapturing", 0);

  /* "cuda/bindings/runtime.pyx":17911
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17912
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17911
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17913
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17914
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17914, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17913
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17916
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureStatus pCaptureStatus
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17916, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17916, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":17917
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStreamCaptureStatus pCaptureStatus
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 17917, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":17919
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureStatus pCaptureStatus
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamIsCapturing(cystream, &pCaptureStatus)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":17920
 *     cdef cyruntime.cudaStreamCaptureStatus pCaptureStatus
 *     with nogil:
 *         err = cyruntime.cudaStreamIsCapturing(cystream, &pCaptureStatus)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamIsCapturing(__pyx_v_cystream, (&__pyx_v_pCaptureStatus)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 17920, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":17919
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureStatus pCaptureStatus
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamIsCapturing(cystream, &pCaptureStatus)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":17921
 *     with nogil:
 *         err = cyruntime.cudaStreamIsCapturing(cystream, &pCaptureStatus)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(pCaptureStatus))
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17922
 *         err = cyruntime.cudaStreamIsCapturing(cystream, &pCaptureStatus)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(pCaptureStatus))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 17922, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 17922, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":17921
 *     with nogil:
 *         err = cyruntime.cudaStreamIsCapturing(cystream, &pCaptureStatus)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(pCaptureStatus))
*/
  }

  /* "cuda/bindings/runtime.pyx":17923
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(pCaptureStatus))             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 17923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatus); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_enum__cudaStreamCaptureStatus(__pyx_v_pCaptureStatus); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 17923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_9))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_10};
    __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __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_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 17923, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 17923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 17923, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 17923, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17866
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamIsCapturing(stream):
 *     """ Returns a stream's capture status.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamIsCapturing", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":17925
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(pCaptureStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetCaptureInfo(stream):
 *     """ Query a stream's capture state.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_125cudaStreamGetCaptureInfo(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_7runtime_124cudaStreamGetCaptureInfo, "cudaStreamGetCaptureInfo(stream)\n\nQuery a stream's capture state.\n\nQuery stream state related to stream capture.\n\nIf called on :py:obj:`~.cudaStreamLegacy` (the \"null stream\") while a\nstream not created with :py:obj:`~.cudaStreamNonBlocking` is capturing,\nreturns :py:obj:`~.cudaErrorStreamCaptureImplicit`.\n\nValid data (other than capture status) is returned only if both of the\nfollowing are true:\n\n- the call returns cudaSuccess\n\n- the returned capture status is\n  :py:obj:`~.cudaStreamCaptureStatusActive`\n\nIf `edgeData_out` is non-NULL then `dependencies_out` must be as well.\nIf `dependencies_out` is non-NULL and `edgeData_out` is NULL, but there\nis non-zero edge data for one or more of the current stream\ndependencies, the call will return :py:obj:`~.cudaErrorLossyQuery`.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorStreamCaptureImplicit`, :py:obj:`~.cudaErrorLossyQuery`\ncaptureStatus_out : :py:obj:`~.cudaStreamCaptureStatus`\n    Location to return the capture status of the stream; required\nid_out : unsigned long long\n    Optional location to return an id for the capture sequence, which\n    is unique over the lifetime of the process\ngraph_out : :py:obj:`~.cudaGraph_t`\n    Optional location to return the graph being captured into. All\n    operations other than destroy and node removal are permitted on the\n    graph while the capture sequence is in progress. This API does not\n    transfer ownership of the graph, which is transferred or destroyed\n    at :py:obj:`~.cudaStreamEndCapture`. Note that the graph handle may\n    be invalidated before end of capture for certain errors. Nodes that\n    are or become unreachable from the original stream at\n    :py:obj:`~.cudaStreamEndCapture` due to direct actions on the graph\n    do not trigger :py:obj:`~.cudaErro""rStreamCaptureUnjoined`.\ndependencies_out : list[:py:obj:`~.cudaGraphNode_t`]\n    Optional location to store a pointer to an array of nodes. The next\n    node to be captured in the stream will depend on this set of nodes,\n    absent operations such as event wait which modify this set. The\n    array pointer is valid until the next API call which operates on\n    the stream or until the capture is terminated. The node handles may\n    be copied out and are valid until they or the graph is destroyed.\n    The driver-owned array may also be passed directly to APIs that\n    operate on the graph (not the stream) without copying.\nedgeData_out : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional location to store a pointer to an array of graph edge\n    data. This array parallels `dependencies_out`; the next node to be\n    added has an edge to `dependencies_out`[i] with annotation\n    `edgeData_out`[i] for each `i`. The array pointer is valid until\n    the next API call which operates on the stream or until the capture\n    is terminated.\nnumDependencies_out : int\n    Optional location to store the size of the array returned in\n    dependencies_out.\n\nSee Also\n--------\n:py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamIsCapturing`, :py:obj:`~.cudaStreamUpdateCaptureDependencies`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_125cudaStreamGetCaptureInfo = {"cudaStreamGetCaptureInfo", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_125cudaStreamGetCaptureInfo, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_124cudaStreamGetCaptureInfo};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_125cudaStreamGetCaptureInfo(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_stream = 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("cudaStreamGetCaptureInfo (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_stream,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, 17925, __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, 17925, __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, "cudaStreamGetCaptureInfo", 0) < (0)) __PYX_ERR(0, 17925, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamGetCaptureInfo", 1, 1, 1, i); __PYX_ERR(0, 17925, __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, 17925, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamGetCaptureInfo", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 17925, __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.runtime.cudaStreamGetCaptureInfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_124cudaStreamGetCaptureInfo(__pyx_self, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_124cudaStreamGetCaptureInfo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  enum cudaStreamCaptureStatus __pyx_v_captureStatus_out;
  unsigned PY_LONG_LONG __pyx_v_id_out;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_graph_out = 0;
  cudaGraphNode_t const *__pyx_v_cydependencies_out;
  PyObject *__pyx_v_pydependencies_out = NULL;
  cudaGraphEdgeData const *__pyx_v_cyedgeData_out;
  PyObject *__pyx_v_pyedgeData_out = NULL;
  size_t __pyx_v_numDependencies_out;
  cudaError_t __pyx_v_err;
  size_t __pyx_10genexpr213__pyx_v_idx;
  size_t __pyx_10genexpr214__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  size_t __pyx_t_11;
  size_t __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamGetCaptureInfo", 0);

  /* "cuda/bindings/runtime.pyx":17997
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":17998
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":17997
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":17999
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18000
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18000, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":17999
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18002
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureStatus captureStatus_out
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18002, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18002, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18003
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStreamCaptureStatus captureStatus_out
 *     cdef unsigned long long id_out = 0
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18003, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18005
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaStreamCaptureStatus captureStatus_out
 *     cdef unsigned long long id_out = 0             # <<<<<<<<<<<<<<
 *     cdef cudaGraph_t graph_out = cudaGraph_t()
 *     cdef const cyruntime.cudaGraphNode_t* cydependencies_out = NULL
*/
  __pyx_v_id_out = 0;

  /* "cuda/bindings/runtime.pyx":18006
 *     cdef cyruntime.cudaStreamCaptureStatus captureStatus_out
 *     cdef unsigned long long id_out = 0
 *     cdef cudaGraph_t graph_out = cudaGraph_t()             # <<<<<<<<<<<<<<
 *     cdef const cyruntime.cudaGraphNode_t* cydependencies_out = NULL
 *     pydependencies_out = []
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18006, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_graph_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":18007
 *     cdef unsigned long long id_out = 0
 *     cdef cudaGraph_t graph_out = cudaGraph_t()
 *     cdef const cyruntime.cudaGraphNode_t* cydependencies_out = NULL             # <<<<<<<<<<<<<<
 *     pydependencies_out = []
 *     cdef const cyruntime.cudaGraphEdgeData* cyedgeData_out = NULL
*/
  __pyx_v_cydependencies_out = NULL;

  /* "cuda/bindings/runtime.pyx":18008
 *     cdef cudaGraph_t graph_out = cudaGraph_t()
 *     cdef const cyruntime.cudaGraphNode_t* cydependencies_out = NULL
 *     pydependencies_out = []             # <<<<<<<<<<<<<<
 *     cdef const cyruntime.cudaGraphEdgeData* cyedgeData_out = NULL
 *     pyedgeData_out = []
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pydependencies_out = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":18009
 *     cdef const cyruntime.cudaGraphNode_t* cydependencies_out = NULL
 *     pydependencies_out = []
 *     cdef const cyruntime.cudaGraphEdgeData* cyedgeData_out = NULL             # <<<<<<<<<<<<<<
 *     pyedgeData_out = []
 *     cdef size_t numDependencies_out = 0
*/
  __pyx_v_cyedgeData_out = NULL;

  /* "cuda/bindings/runtime.pyx":18010
 *     pydependencies_out = []
 *     cdef const cyruntime.cudaGraphEdgeData* cyedgeData_out = NULL
 *     pyedgeData_out = []             # <<<<<<<<<<<<<<
 *     cdef size_t numDependencies_out = 0
 *     with nogil:
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pyedgeData_out = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":18011
 *     cdef const cyruntime.cudaGraphEdgeData* cyedgeData_out = NULL
 *     pyedgeData_out = []
 *     cdef size_t numDependencies_out = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamGetCaptureInfo(cystream, &captureStatus_out, &id_out, <cyruntime.cudaGraph_t*>graph_out._pvt_ptr, &cydependencies_out, &cyedgeData_out, &numDependencies_out)
*/
  __pyx_v_numDependencies_out = 0;

  /* "cuda/bindings/runtime.pyx":18012
 *     pyedgeData_out = []
 *     cdef size_t numDependencies_out = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetCaptureInfo(cystream, &captureStatus_out, &id_out, <cyruntime.cudaGraph_t*>graph_out._pvt_ptr, &cydependencies_out, &cyedgeData_out, &numDependencies_out)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18013
 *     cdef size_t numDependencies_out = 0
 *     with nogil:
 *         err = cyruntime.cudaStreamGetCaptureInfo(cystream, &captureStatus_out, &id_out, <cyruntime.cudaGraph_t*>graph_out._pvt_ptr, &cydependencies_out, &cyedgeData_out, &numDependencies_out)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pydependencies_out = [cudaGraphNode_t(init_value=<void_ptr>cydependencies_out[idx]) for idx in range(numDependencies_out)]
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetCaptureInfo(__pyx_v_cystream, (&__pyx_v_captureStatus_out), (&__pyx_v_id_out), ((cudaGraph_t *)__pyx_v_graph_out->__pyx_base._pvt_ptr), (&__pyx_v_cydependencies_out), (&__pyx_v_cyedgeData_out), (&__pyx_v_numDependencies_out)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18013, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18012
 *     pyedgeData_out = []
 *     cdef size_t numDependencies_out = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetCaptureInfo(cystream, &captureStatus_out, &id_out, <cyruntime.cudaGraph_t*>graph_out._pvt_ptr, &cydependencies_out, &cyedgeData_out, &numDependencies_out)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18014
 *     with nogil:
 *         err = cyruntime.cudaStreamGetCaptureInfo(cystream, &captureStatus_out, &id_out, <cyruntime.cudaGraph_t*>graph_out._pvt_ptr, &cydependencies_out, &cyedgeData_out, &numDependencies_out)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pydependencies_out = [cudaGraphNode_t(init_value=<void_ptr>cydependencies_out[idx]) for idx in range(numDependencies_out)]
 *     if cudaError_t(err) == cudaError_t(0):
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_9};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __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;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18014, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18014, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_8, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18014, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 18014, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18015
 *         err = cyruntime.cudaStreamGetCaptureInfo(cystream, &captureStatus_out, &id_out, <cyruntime.cudaGraph_t*>graph_out._pvt_ptr, &cydependencies_out, &cyedgeData_out, &numDependencies_out)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pydependencies_out = [cudaGraphNode_t(init_value=<void_ptr>cydependencies_out[idx]) for idx in range(numDependencies_out)]             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData_out = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData_out[idx]) for idx in range(numDependencies_out)]
*/
    { /* enter inner scope */
      __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18015, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __pyx_v_numDependencies_out;
      __pyx_t_10 = __pyx_t_5;
      for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
        __pyx_10genexpr213__pyx_v_idx = __pyx_t_11;
        __pyx_t_4 = NULL;
        __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cydependencies_out[__pyx_10genexpr213__pyx_v_idx]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18015, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_12 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, NULL};
          __pyx_t_13 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 18015, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_13);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_9, __pyx_t_13, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 18015, __pyx_L1_error)
          __pyx_t_8 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_12, (1-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_13);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18015, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_8);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 18015, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_8); __pyx_t_8 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pydependencies_out, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":18014
 *     with nogil:
 *         err = cyruntime.cudaStreamGetCaptureInfo(cystream, &captureStatus_out, &id_out, <cyruntime.cudaGraph_t*>graph_out._pvt_ptr, &cydependencies_out, &cyedgeData_out, &numDependencies_out)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pydependencies_out = [cudaGraphNode_t(init_value=<void_ptr>cydependencies_out[idx]) for idx in range(numDependencies_out)]
 *     if cudaError_t(err) == cudaError_t(0):
*/
  }

  /* "cuda/bindings/runtime.pyx":18016
 *     if cudaError_t(err) == cudaError_t(0):
 *         pydependencies_out = [cudaGraphNode_t(init_value=<void_ptr>cydependencies_out[idx]) for idx in range(numDependencies_out)]
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyedgeData_out = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData_out[idx]) for idx in range(numDependencies_out)]
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_8 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 18016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_13))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_13);
    assert(__pyx_t_8);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
    __Pyx_INCREF(__pyx_t_8);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_9};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_13 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 18016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
  }
  __pyx_t_8 = PyObject_RichCompare(__pyx_t_3, __pyx_t_13, Py_EQ); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18016, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 18016, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18017
 *         pydependencies_out = [cudaGraphNode_t(init_value=<void_ptr>cydependencies_out[idx]) for idx in range(numDependencies_out)]
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData_out = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData_out[idx]) for idx in range(numDependencies_out)]             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None, None, None, None)
*/
    { /* enter inner scope */
      __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18017, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_5 = __pyx_v_numDependencies_out;
      __pyx_t_10 = __pyx_t_5;
      for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
        __pyx_10genexpr214__pyx_v_idx = __pyx_t_11;
        __pyx_t_3 = NULL;
        __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_cyedgeData_out[__pyx_10genexpr214__pyx_v_idx])))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18017, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_12 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
          __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18017, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_9, __pyx_t_4, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 18017, __pyx_L1_error)
          __pyx_t_13 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData, __pyx_callargs+__pyx_t_12, (1-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 18017, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_13);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_13))) __PYX_ERR(0, 18017, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_13); __pyx_t_13 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pyedgeData_out, ((PyObject*)__pyx_t_8));
    __pyx_t_8 = 0;

    /* "cuda/bindings/runtime.pyx":18016
 *     if cudaError_t(err) == cudaError_t(0):
 *         pydependencies_out = [cudaGraphNode_t(init_value=<void_ptr>cydependencies_out[idx]) for idx in range(numDependencies_out)]
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyedgeData_out = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData_out[idx]) for idx in range(numDependencies_out)]
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":18018
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData_out = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData_out[idx]) for idx in range(numDependencies_out)]
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None, None, None, None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18019
 *         pyedgeData_out = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData_out[idx]) for idx in range(numDependencies_out)]
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None, None, None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_13 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 18019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_13); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_13 = PyTuple_New(7); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 18019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 18019, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 1, Py_None) != (0)) __PYX_ERR(0, 18019, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 2, Py_None) != (0)) __PYX_ERR(0, 18019, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 3, Py_None) != (0)) __PYX_ERR(0, 18019, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 4, Py_None) != (0)) __PYX_ERR(0, 18019, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 5, Py_None) != (0)) __PYX_ERR(0, 18019, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 6, Py_None) != (0)) __PYX_ERR(0, 18019, __pyx_L1_error);
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_13;
    __pyx_t_13 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":18018
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData_out = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData_out[idx]) for idx in range(numDependencies_out)]
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None, None, None, None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":18020
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None, None, None, None)
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 18020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_13, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_13 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatus); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaStreamCaptureStatus(__pyx_v_captureStatus_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_9))) {
    __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_9);
    assert(__pyx_t_13);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
    __Pyx_INCREF(__pyx_t_13);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_3};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18020, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_id_out); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies_out); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_13 = PyTuple_New(7); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 18020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18020, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_4) != (0)) __PYX_ERR(0, 18020, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_t_9) != (0)) __PYX_ERR(0, 18020, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_graph_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_graph_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 3, ((PyObject *)__pyx_v_graph_out)) != (0)) __PYX_ERR(0, 18020, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pydependencies_out);
  __Pyx_GIVEREF(__pyx_v_pydependencies_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 4, __pyx_v_pydependencies_out) != (0)) __PYX_ERR(0, 18020, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pyedgeData_out);
  __Pyx_GIVEREF(__pyx_v_pyedgeData_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 5, __pyx_v_pyedgeData_out) != (0)) __PYX_ERR(0, 18020, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 6, __pyx_t_3) != (0)) __PYX_ERR(0, 18020, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_t_4 = 0;
  __pyx_t_9 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_13;
  __pyx_t_13 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":17925
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(pCaptureStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetCaptureInfo(stream):
 *     """ Query a stream's capture state.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamGetCaptureInfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_graph_out);
  __Pyx_XDECREF(__pyx_v_pydependencies_out);
  __Pyx_XDECREF(__pyx_v_pyedgeData_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18022
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags):
 *     """ Update the set of dependencies in a capturing stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_127cudaStreamUpdateCaptureDependencies(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_7runtime_126cudaStreamUpdateCaptureDependencies, "cudaStreamUpdateCaptureDependencies(stream, dependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData: Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags)\n\nUpdate the set of dependencies in a capturing stream.\n\nModifies the dependency set of a capturing stream. The dependency set\nis the set of nodes that the next captured node in the stream will\ndepend on.\n\nValid flags are :py:obj:`~.cudaStreamAddCaptureDependencies` and\n:py:obj:`~.cudaStreamSetCaptureDependencies`. These control whether the\nset passed to the API is added to the existing set or replaces it. A\nflags value of 0 defaults to\n:py:obj:`~.cudaStreamAddCaptureDependencies`.\n\nNodes that are removed from the dependency set via this API do not\nresult in :py:obj:`~.cudaErrorStreamCaptureUnjoined` if they are\nunreachable from the stream at :py:obj:`~.cudaStreamEndCapture`.\n\nReturns :py:obj:`~.cudaErrorIllegalState` if the stream is not\ncapturing.\n\nParameters\n----------\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream to update\ndependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    The set of dependencies to add\ndependencyData : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional array of data associated with each dependency.\nnumDependencies : size_t\n    The size of the dependencies array\nflags : unsigned int\n    See above\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorIllegalState`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamGetCaptureInfo`,");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_127cudaStreamUpdateCaptureDependencies = {"cudaStreamUpdateCaptureDependencies", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_127cudaStreamUpdateCaptureDependencies, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_126cudaStreamUpdateCaptureDependencies};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_127cudaStreamUpdateCaptureDependencies(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_stream = 0;
  PyObject *__pyx_v_dependencies = 0;
  PyObject *__pyx_v_dependencyData = 0;
  size_t __pyx_v_numDependencies;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamUpdateCaptureDependencies (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_stream,&__pyx_mstate_global->__pyx_n_u_dependencies,&__pyx_mstate_global->__pyx_n_u_dependencyData,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 18022, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 18022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 18022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 18022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18022, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18022, __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, "cudaStreamUpdateCaptureDependencies", 0) < (0)) __PYX_ERR(0, 18022, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies", 1, 5, 5, i); __PYX_ERR(0, 18022, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 18022, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18022, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 18022, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 18022, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 18022, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
    __pyx_v_dependencies = values[1];
    __pyx_v_dependencyData = values[2];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 18023, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[4]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18023, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamUpdateCaptureDependencies", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 18022, __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.runtime.cudaStreamUpdateCaptureDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_126cudaStreamUpdateCaptureDependencies(__pyx_self, __pyx_v_stream, __pyx_v_dependencies, __pyx_v_dependencyData, __pyx_v_numDependencies, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_2generator92(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":18066
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 18066, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_2generator92, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[92]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 18066, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamUpdateCaptureDependencies.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_2generator92(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 18066, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 18066, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18066, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18066, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 18066, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 18066, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18066, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 18066, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_5generator93(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":18069
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaStream_t cystream
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 18069, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_5generator93, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[93]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 18069, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamUpdateCaptureDependencies.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_5generator93(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 18069, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 18069, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18069, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18069, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 18069, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 18069, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18069, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 18069, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18022
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags):
 *     """ Update the set of dependencies in a capturing stream.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_126cudaStreamUpdateCaptureDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_dependencies, PyObject *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, unsigned int __pyx_v_flags) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaGraphNode_t *__pyx_v_cydependencies;
  Py_ssize_t __pyx_v_idx;
  cudaGraphEdgeData *__pyx_v_cydependencyData;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_2generator92 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_5generator93 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaGraphEdgeData_st *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamUpdateCaptureDependencies", 0);
  __Pyx_INCREF(__pyx_v_dependencies);
  __Pyx_INCREF(__pyx_v_dependencyData);

  /* "cuda/bindings/runtime.pyx":18065
 *     :py:obj:`~.cudaStreamBeginCapture`, :py:obj:`~.cudaStreamGetCaptureInfo`,
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
*/
  __pyx_t_2 = (__pyx_v_dependencyData == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18065, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dependencyData);
    __pyx_t_1 = __pyx_v_dependencyData;
  }
  __Pyx_DECREF_SET(__pyx_v_dependencyData, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":18066
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_genexpr(NULL, __pyx_v_dependencyData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 18066, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":18067
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")             # <<<<<<<<<<<<<<
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_dependencyData_is_not_i};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18067, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 18067, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":18066
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
*/
  }

  /* "cuda/bindings/runtime.pyx":18068
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_4 = (__pyx_v_dependencies == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18068, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dependencies);
    __pyx_t_3 = __pyx_v_dependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_dependencies, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":18069
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaStream_t cystream
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_3genexpr(NULL, __pyx_v_dependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 18069, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":18070
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_dependencies_is_not_ins};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18070, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 18070, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":18069
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     dependencies = [] if dependencies is None else dependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaStream_t cystream
*/
  }

  /* "cuda/bindings/runtime.pyx":18072
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_2 = (__pyx_v_stream == Py_None);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":18073
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18072
 *         raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L5;
  }

  /* "cuda/bindings/runtime.pyx":18074
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_2 = __pyx_t_4;
  __pyx_L6_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":18075
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18075, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_pstream = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":18074
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L5;
  }

  /* "cuda/bindings/runtime.pyx":18077
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_stream};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18077, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_1);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18077, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L5:;

  /* "cuda/bindings/runtime.pyx":18078
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
 *     if len(dependencies) > 1:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18078, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18079
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(dependencies) > 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cydependencies = NULL;

  /* "cuda/bindings/runtime.pyx":18080
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
 *     if len(dependencies) > 1:             # <<<<<<<<<<<<<<
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18080, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":18081
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
 *     if len(dependencies) > 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cydependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18081, __pyx_L1_error)
    __pyx_v_cydependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":18082
 *     if len(dependencies) > 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_2 = (__pyx_v_cydependencies == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":18083
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(dependencies)):
*/
      __pyx_t_1 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18083, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 18083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18083, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_8};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18083, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 18083, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":18082
 *     if len(dependencies) > 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":18085
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(dependencies)):             # <<<<<<<<<<<<<<
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]
 *     elif len(dependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18085, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":18086
 *         else:
 *             for idx in range(len(dependencies)):
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(dependencies) == 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
*/
        __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_dependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18086, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        (__pyx_v_cydependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":18080
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphNode_t* cydependencies = NULL
 *     if len(dependencies) > 1:             # <<<<<<<<<<<<<<
 *         cydependencies = <cyruntime.cudaGraphNode_t*> calloc(len(dependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cydependencies is NULL:
*/
    goto __pyx_L8;
  }

  /* "cuda/bindings/runtime.pyx":18087
 *             for idx in range(len(dependencies)):
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]
 *     elif len(dependencies) == 1:             # <<<<<<<<<<<<<<
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18087, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":18088
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]
 *     elif len(dependencies) == 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_dependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18088, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_cydependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":18087
 *             for idx in range(len(dependencies)):
 *                 cydependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>dependencies[idx])._pvt_ptr[0]
 *     elif len(dependencies) == 1:             # <<<<<<<<<<<<<<
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
*/
  }
  __pyx_L8:;

  /* "cuda/bindings/runtime.pyx":18089
 *     elif len(dependencies) == 1:
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL             # <<<<<<<<<<<<<<
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
*/
  __pyx_v_cydependencyData = NULL;

  /* "cuda/bindings/runtime.pyx":18090
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18090, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":18091
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18091, __pyx_L1_error)
    __pyx_v_cydependencyData = ((cudaGraphEdgeData *)calloc(__pyx_t_7, (sizeof(cudaGraphEdgeData))));

    /* "cuda/bindings/runtime.pyx":18092
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
*/
    __pyx_t_2 = (__pyx_v_cydependencyData == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":18093
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
*/
      __pyx_t_8 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18093, __pyx_L1_error)
      __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18093, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 18093, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18093, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 18093, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18093, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 18093, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18093, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_1};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18093, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 18093, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":18092
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
*/
    }

    /* "cuda/bindings/runtime.pyx":18094
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18094, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":18095
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_dependencyData, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18095, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_cydependencyData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_3)->__pyx_base._pvt_ptr, (sizeof(cudaGraphEdgeData))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }

    /* "cuda/bindings/runtime.pyx":18090
 *         cydependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>dependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
*/
    goto __pyx_L12;
  }

  /* "cuda/bindings/runtime.pyx":18096
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18096, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":18097
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamUpdateCaptureDependencies(cystream, cydependencies, cydependencyData, numDependencies, flags)
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_dependencyData, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18097, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_3)->__pyx_base._pvt_ptr;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_cydependencyData = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":18096
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     with nogil:
*/
  }
  __pyx_L12:;

  /* "cuda/bindings/runtime.pyx":18098
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamUpdateCaptureDependencies(cystream, cydependencies, cydependencyData, numDependencies, flags)
 *     if len(dependencies) > 1 and cydependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18099
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     with nogil:
 *         err = cyruntime.cudaStreamUpdateCaptureDependencies(cystream, cydependencies, cydependencyData, numDependencies, flags)             # <<<<<<<<<<<<<<
 *     if len(dependencies) > 1 and cydependencies is not NULL:
 *         free(cydependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamUpdateCaptureDependencies(__pyx_v_cystream, __pyx_v_cydependencies, __pyx_v_cydependencyData, __pyx_v_numDependencies, __pyx_v_flags); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18099, __pyx_L17_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":18098
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamUpdateCaptureDependencies(cystream, cydependencies, cydependencyData, numDependencies, flags)
 *     if len(dependencies) > 1 and cydependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L18;
        }
        __pyx_L17_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L18:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18100
 *     with nogil:
 *         err = cyruntime.cudaStreamUpdateCaptureDependencies(cystream, cydependencies, cydependencyData, numDependencies, flags)
 *     if len(dependencies) > 1 and cydependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18100, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L20_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_cydependencies != NULL);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L20_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":18101
 *         err = cyruntime.cudaStreamUpdateCaptureDependencies(cystream, cydependencies, cydependencyData, numDependencies, flags)
 *     if len(dependencies) > 1 and cydependencies is not NULL:
 *         free(cydependencies)             # <<<<<<<<<<<<<<
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)
*/
    free(__pyx_v_cydependencies);

    /* "cuda/bindings/runtime.pyx":18100
 *     with nogil:
 *         err = cyruntime.cudaStreamUpdateCaptureDependencies(cystream, cydependencies, cydependencyData, numDependencies, flags)
 *     if len(dependencies) > 1 and cydependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":18102
 *     if len(dependencies) > 1 and cydependencies is not NULL:
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencyData)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 18102, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L23_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_cydependencyData != NULL);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L23_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":18103
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cydependencyData);

    /* "cuda/bindings/runtime.pyx":18102
 *     if len(dependencies) > 1 and cydependencies is not NULL:
 *         free(cydependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencyData)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":18104
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18104, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18022
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags):
 *     """ Update the set of dependencies in a capturing stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamUpdateCaptureDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_2generator92);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_35cudaStreamUpdateCaptureDependencies_5generator93);
  __Pyx_XDECREF(__pyx_v_dependencies);
  __Pyx_XDECREF(__pyx_v_dependencyData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18106
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreate():
 *     """ Creates an event object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_129cudaEventCreate(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_128cudaEventCreate, "cudaEventCreate()\n\nCreates an event object.\n\nCreates an event object for the current device using\n:py:obj:`~.cudaEventDefault`.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorMemoryAllocation`\nevent : :py:obj:`~.cudaEvent_t`\n    Newly created event\n\nSee Also\n--------\ncudaEventCreate (C++ API), :py:obj:`~.cudaEventCreateWithFlags`, :py:obj:`~.cudaEventRecord`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cuEventCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_129cudaEventCreate = {"cudaEventCreate", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_129cudaEventCreate, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_128cudaEventCreate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_129cudaEventCreate(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEventCreate (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_128cudaEventCreate(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_128cudaEventCreate(CYTHON_UNUSED PyObject *__pyx_self) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_event = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventCreate", 0);

  /* "cuda/bindings/runtime.pyx":18124
 *     cudaEventCreate (C++ API), :py:obj:`~.cudaEventCreateWithFlags`, :py:obj:`~.cudaEventRecord`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cuEventCreate`
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventCreate(<cyruntime.cudaEvent_t*>event._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18124, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":18125
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventCreate(<cyruntime.cudaEvent_t*>event._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18126
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:
 *         err = cyruntime.cudaEventCreate(<cyruntime.cudaEvent_t*>event._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreate(((cudaEvent_t *)__pyx_v_event->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18126, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":18125
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventCreate(<cyruntime.cudaEvent_t*>event._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18127
 *     with nogil:
 *         err = cyruntime.cudaEventCreate(<cyruntime.cudaEvent_t*>event._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":18128
 *         err = cyruntime.cudaEventCreate(<cyruntime.cudaEvent_t*>event._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], event)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 18128, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 18128, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":18127
 *     with nogil:
 *         err = cyruntime.cudaEventCreate(<cyruntime.cudaEvent_t*>event._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)
*/
  }

  /* "cuda/bindings/runtime.pyx":18129
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 18129, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_event);
  __Pyx_GIVEREF((PyObject *)__pyx_v_event);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_event)) != (0)) __PYX_ERR(0, 18129, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18106
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreate():
 *     """ Creates an event object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_event);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18131
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreateWithFlags(unsigned int flags):
 *     """ Creates an event object with the specified flags.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_131cudaEventCreateWithFlags(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_7runtime_130cudaEventCreateWithFlags, "cudaEventCreateWithFlags(unsigned int flags)\n\nCreates an event object with the specified flags.\n\nCreates an event object for the current device with the specified\nflags. Valid flags include:\n\n- :py:obj:`~.cudaEventDefault`: Default event creation flag.\n\n- :py:obj:`~.cudaEventBlockingSync`: Specifies that event should use\n  blocking synchronization. A host thread that uses\n  :py:obj:`~.cudaEventSynchronize()` to wait on an event created with\n  this flag will block until the event actually completes.\n\n- :py:obj:`~.cudaEventDisableTiming`: Specifies that the created event\n  does not need to record timing data. Events created with this flag\n  specified and the :py:obj:`~.cudaEventBlockingSync` flag not\n  specified will provide the best performance when used with\n  :py:obj:`~.cudaStreamWaitEvent()` and :py:obj:`~.cudaEventQuery()`.\n\n- :py:obj:`~.cudaEventInterprocess`: Specifies that the created event\n  may be used as an interprocess event by\n  :py:obj:`~.cudaIpcGetEventHandle()`.\n  :py:obj:`~.cudaEventInterprocess` must be specified along with\n  :py:obj:`~.cudaEventDisableTiming`.\n\nParameters\n----------\nflags : unsigned int\n    Flags for new event\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorMemoryAllocation`\nevent : :py:obj:`~.cudaEvent_t`\n    Newly created event\n\nSee Also\n--------\n:py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cuEventCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_131cudaEventCreateWithFlags = {"cudaEventCreateWithFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_131cudaEventCreateWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_130cudaEventCreateWithFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_131cudaEventCreateWithFlags(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
) {
  unsigned int __pyx_v_flags;
  #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("cudaEventCreateWithFlags (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_flags_2,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, 18131, __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, 18131, __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, "cudaEventCreateWithFlags", 0) < (0)) __PYX_ERR(0, 18131, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEventCreateWithFlags", 1, 1, 1, i); __PYX_ERR(0, 18131, __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, 18131, __pyx_L3_error)
    }
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18132, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEventCreateWithFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18131, __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.runtime.cudaEventCreateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_130cudaEventCreateWithFlags(__pyx_self, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_130cudaEventCreateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_event = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventCreateWithFlags", 0);

  /* "cuda/bindings/runtime.pyx":18173
 *     :py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cuEventCreate`
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventCreateWithFlags(<cyruntime.cudaEvent_t*>event._pvt_ptr, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18173, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":18174
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventCreateWithFlags(<cyruntime.cudaEvent_t*>event._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18175
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:
 *         err = cyruntime.cudaEventCreateWithFlags(<cyruntime.cudaEvent_t*>event._pvt_ptr, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreateWithFlags(((cudaEvent_t *)__pyx_v_event->__pyx_base._pvt_ptr), __pyx_v_flags); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18175, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":18174
 *     """
 *     cdef cudaEvent_t event = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventCreateWithFlags(<cyruntime.cudaEvent_t*>event._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18176
 *     with nogil:
 *         err = cyruntime.cudaEventCreateWithFlags(<cyruntime.cudaEvent_t*>event._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":18177
 *         err = cyruntime.cudaEventCreateWithFlags(<cyruntime.cudaEvent_t*>event._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], event)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 18177, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 18177, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":18176
 *     with nogil:
 *         err = cyruntime.cudaEventCreateWithFlags(<cyruntime.cudaEvent_t*>event._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)
*/
  }

  /* "cuda/bindings/runtime.pyx":18178
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 18178, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_event);
  __Pyx_GIVEREF((PyObject *)__pyx_v_event);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_event)) != (0)) __PYX_ERR(0, 18178, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18131
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreateWithFlags(unsigned int flags):
 *     """ Creates an event object with the specified flags.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventCreateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_event);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18180
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventRecord(event, stream):
 *     """ Records an event.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_133cudaEventRecord(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_7runtime_132cudaEventRecord, "cudaEventRecord(event, stream)\n\nRecords an event.\n\nCaptures in `event` the contents of `stream` at the time of this call.\n`event` and `stream` must be on the same CUDA context. Calls such as\n:py:obj:`~.cudaEventQuery()` or :py:obj:`~.cudaStreamWaitEvent()` will\nthen examine or wait for completion of the work that was captured. Uses\nof `stream` after this call do not modify `event`. See note on default\nstream behavior for what is captured in the default case.\n\n:py:obj:`~.cudaEventRecord()` can be called multiple times on the same\nevent and will overwrite the previously captured state. Other APIs such\nas :py:obj:`~.cudaStreamWaitEvent()` use the most recently captured\nstate at the time of the API call, and are not affected by later calls\nto :py:obj:`~.cudaEventRecord()`. Before the first call to\n:py:obj:`~.cudaEventRecord()`, an event represents an empty set of\nwork, so for example :py:obj:`~.cudaEventQuery()` would return\n:py:obj:`~.cudaSuccess`.\n\nParameters\n----------\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to record\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream in which to record event\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\nSee Also\n--------\n:py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventCreateWithFlags`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cuEventRecord`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_133cudaEventRecord = {"cudaEventRecord", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_133cudaEventRecord, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_132cudaEventRecord};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_133cudaEventRecord(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_event = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEventRecord (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_event_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 18180, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18180, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18180, __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, "cudaEventRecord", 0) < (0)) __PYX_ERR(0, 18180, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEventRecord", 1, 2, 2, i); __PYX_ERR(0, 18180, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 18180, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18180, __pyx_L3_error)
    }
    __pyx_v_event = values[0];
    __pyx_v_stream = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEventRecord", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 18180, __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.runtime.cudaEventRecord", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_132cudaEventRecord(__pyx_self, __pyx_v_event, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_132cudaEventRecord(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventRecord", 0);

  /* "cuda/bindings/runtime.pyx":18217
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18218
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18217
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18219
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18220
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":18219
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18222
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaEvent_t cyevent
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18222, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18223
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18223, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18225
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18226
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18225
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":18227
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18228
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":18227
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":18230
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_event};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18230, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":18231
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventRecord(cyevent, cystream)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18231, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18232
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventRecord(cyevent, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18233
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
 *         err = cyruntime.cudaEventRecord(cyevent, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventRecord(__pyx_v_cyevent, __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18233, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18232
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventRecord(cyevent, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18234
 *     with nogil:
 *         err = cyruntime.cudaEventRecord(cyevent, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18234, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18180
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventRecord(event, stream):
 *     """ Records an event.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecord", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18236
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventRecordWithFlags(event, stream, unsigned int flags):
 *     """ Records an event.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_135cudaEventRecordWithFlags(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_7runtime_134cudaEventRecordWithFlags, "cudaEventRecordWithFlags(event, stream, unsigned int flags)\n\nRecords an event.\n\nCaptures in `event` the contents of `stream` at the time of this call.\n`event` and `stream` must be on the same CUDA context. Calls such as\n:py:obj:`~.cudaEventQuery()` or :py:obj:`~.cudaStreamWaitEvent()` will\nthen examine or wait for completion of the work that was captured. Uses\nof `stream` after this call do not modify `event`. See note on default\nstream behavior for what is captured in the default case.\n\n:py:obj:`~.cudaEventRecordWithFlags()` can be called multiple times on\nthe same event and will overwrite the previously captured state. Other\nAPIs such as :py:obj:`~.cudaStreamWaitEvent()` use the most recently\ncaptured state at the time of the API call, and are not affected by\nlater calls to :py:obj:`~.cudaEventRecordWithFlags()`. Before the first\ncall to :py:obj:`~.cudaEventRecordWithFlags()`, an event represents an\nempty set of work, so for example :py:obj:`~.cudaEventQuery()` would\nreturn :py:obj:`~.cudaSuccess`.\n\nflags include:\n\n- :py:obj:`~.cudaEventRecordDefault`: Default event creation flag.\n\n- :py:obj:`~.cudaEventRecordExternal`: Event is captured in the graph\n  as an external event node when performing stream capture.\n\nParameters\n----------\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to record\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream in which to record event\nflags : unsigned int\n    Parameters for the operation(See above)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\nSee Also\n--------\n:py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventCreateWithFlags`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaEventRecord`, :py:obj:`~.cuEv""entRecord`,");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_135cudaEventRecordWithFlags = {"cudaEventRecordWithFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_135cudaEventRecordWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_134cudaEventRecordWithFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_135cudaEventRecordWithFlags(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_event = 0;
  PyObject *__pyx_v_stream = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEventRecordWithFlags (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_event_2,&__pyx_mstate_global->__pyx_n_u_stream,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 18236, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 18236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18236, __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, "cudaEventRecordWithFlags", 0) < (0)) __PYX_ERR(0, 18236, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEventRecordWithFlags", 1, 3, 3, i); __PYX_ERR(0, 18236, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 18236, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18236, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 18236, __pyx_L3_error)
    }
    __pyx_v_event = values[0];
    __pyx_v_stream = values[1];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18237, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEventRecordWithFlags", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 18236, __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.runtime.cudaEventRecordWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_134cudaEventRecordWithFlags(__pyx_self, __pyx_v_event, __pyx_v_stream, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_134cudaEventRecordWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event, PyObject *__pyx_v_stream, unsigned int __pyx_v_flags) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventRecordWithFlags", 0);

  /* "cuda/bindings/runtime.pyx":18282
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18283
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18282
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18284
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18285
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":18284
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18287
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaEvent_t cyevent
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18287, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18288
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18288, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18290
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18291
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18290
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":18292
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18293
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":18292
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":18295
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_event};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18295, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18295, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":18296
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventRecordWithFlags(cyevent, cystream, flags)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18296, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18297
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventRecordWithFlags(cyevent, cystream, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18298
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
 *         err = cyruntime.cudaEventRecordWithFlags(cyevent, cystream, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventRecordWithFlags(__pyx_v_cyevent, __pyx_v_cystream, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18298, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18297
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventRecordWithFlags(cyevent, cystream, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18299
 *     with nogil:
 *         err = cyruntime.cudaEventRecordWithFlags(cyevent, cystream, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18299, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18236
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventRecordWithFlags(event, stream, unsigned int flags):
 *     """ Records an event.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventRecordWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18301
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventQuery(event):
 *     """ Queries an event's status.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_137cudaEventQuery(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_7runtime_136cudaEventQuery, "cudaEventQuery(event)\n\nQueries an event's status.\n\nQueries the status of all work currently captured by `event`. See\n:py:obj:`~.cudaEventRecord()` for details on what is captured by an\nevent.\n\nReturns :py:obj:`~.cudaSuccess` if all captured work has been\ncompleted, or :py:obj:`~.cudaErrorNotReady` if any captured work is\nincomplete.\n\nFor the purposes of Unified Memory, a return value of\n:py:obj:`~.cudaSuccess` is equivalent to having called\n:py:obj:`~.cudaEventSynchronize()`.\n\nParameters\n----------\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotReady`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\nSee Also\n--------\n:py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventCreateWithFlags`, :py:obj:`~.cudaEventRecord`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cuEventQuery`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_137cudaEventQuery = {"cudaEventQuery", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_137cudaEventQuery, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_136cudaEventQuery};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_137cudaEventQuery(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_event = 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("cudaEventQuery (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_event_2,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, 18301, __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, 18301, __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, "cudaEventQuery", 0) < (0)) __PYX_ERR(0, 18301, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEventQuery", 1, 1, 1, i); __PYX_ERR(0, 18301, __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, 18301, __pyx_L3_error)
    }
    __pyx_v_event = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEventQuery", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18301, __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.runtime.cudaEventQuery", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_136cudaEventQuery(__pyx_self, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_136cudaEventQuery(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventQuery", 0);

  /* "cuda/bindings/runtime.pyx":18332
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18333
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18332
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18334
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18335
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18335, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":18334
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18337
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18337, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18338
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventQuery(cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18338, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18339
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventQuery(cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18340
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
 *         err = cyruntime.cudaEventQuery(cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventQuery(__pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18340, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18339
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventQuery(cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18341
 *     with nogil:
 *         err = cyruntime.cudaEventQuery(cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18341, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18301
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventQuery(event):
 *     """ Queries an event's status.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventQuery", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18343
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventSynchronize(event):
 *     """ Waits for an event to complete.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_139cudaEventSynchronize(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_7runtime_138cudaEventSynchronize, "cudaEventSynchronize(event)\n\nWaits for an event to complete.\n\nWaits until the completion of all work currently captured in `event`.\nSee :py:obj:`~.cudaEventRecord()` for details on what is captured by an\nevent.\n\nWaiting for an event that was created with the\n:py:obj:`~.cudaEventBlockingSync` flag will cause the calling CPU\nthread to block until the event has been completed by the device. If\nthe :py:obj:`~.cudaEventBlockingSync` flag has not been set, then the\nCPU thread will busy-wait until the event has been completed by the\ndevice.\n\nParameters\n----------\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to wait for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\nSee Also\n--------\n:py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventCreateWithFlags`, :py:obj:`~.cudaEventRecord`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cuEventSynchronize`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_139cudaEventSynchronize = {"cudaEventSynchronize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_139cudaEventSynchronize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_138cudaEventSynchronize};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_139cudaEventSynchronize(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_event = 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("cudaEventSynchronize (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_event_2,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, 18343, __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, 18343, __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, "cudaEventSynchronize", 0) < (0)) __PYX_ERR(0, 18343, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEventSynchronize", 1, 1, 1, i); __PYX_ERR(0, 18343, __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, 18343, __pyx_L3_error)
    }
    __pyx_v_event = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEventSynchronize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18343, __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.runtime.cudaEventSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_138cudaEventSynchronize(__pyx_self, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_138cudaEventSynchronize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventSynchronize", 0);

  /* "cuda/bindings/runtime.pyx":18373
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18374
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18373
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18375
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18376
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18376, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":18375
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18378
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18378, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18379
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventSynchronize(cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18379, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18380
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventSynchronize(cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18381
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
 *         err = cyruntime.cudaEventSynchronize(cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventSynchronize(__pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18381, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18380
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventSynchronize(cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18382
 *     with nogil:
 *         err = cyruntime.cudaEventSynchronize(cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18382, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18343
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventSynchronize(event):
 *     """ Waits for an event to complete.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18384
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventDestroy(event):
 *     """ Destroys an event object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_141cudaEventDestroy(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_7runtime_140cudaEventDestroy, "cudaEventDestroy(event)\n\nDestroys an event object.\n\nDestroys the event specified by `event`.\n\nAn event may be destroyed before it is complete (i.e., while\n:py:obj:`~.cudaEventQuery()` would return\n:py:obj:`~.cudaErrorNotReady`). In this case, the call does not block\non completion of the event, and any associated resources will\nautomatically be released asynchronously at completion.\n\nParameters\n----------\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to destroy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`\n\nSee Also\n--------\n:py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventCreateWithFlags`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventRecord`, :py:obj:`~.cudaEventElapsedTime`, :py:obj:`~.cuEventDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_141cudaEventDestroy = {"cudaEventDestroy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_141cudaEventDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_140cudaEventDestroy};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_141cudaEventDestroy(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_event = 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("cudaEventDestroy (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_event_2,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, 18384, __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, 18384, __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, "cudaEventDestroy", 0) < (0)) __PYX_ERR(0, 18384, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEventDestroy", 1, 1, 1, i); __PYX_ERR(0, 18384, __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, 18384, __pyx_L3_error)
    }
    __pyx_v_event = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEventDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18384, __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.runtime.cudaEventDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_140cudaEventDestroy(__pyx_self, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_140cudaEventDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventDestroy", 0);

  /* "cuda/bindings/runtime.pyx":18411
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18412
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18411
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18413
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18414
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18414, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":18413
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18416
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18416, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18417
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventDestroy(cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18417, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18418
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventDestroy(cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18419
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:
 *         err = cyruntime.cudaEventDestroy(cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventDestroy(__pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18419, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18418
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventDestroy(cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18420
 *     with nogil:
 *         err = cyruntime.cudaEventDestroy(cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18420, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18384
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventDestroy(event):
 *     """ Destroys an event object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18422
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventElapsedTime(start, end):
 *     """ Computes the elapsed time between events.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_143cudaEventElapsedTime(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_7runtime_142cudaEventElapsedTime, "cudaEventElapsedTime(start, end)\n\nComputes the elapsed time between events.\n\nComputes the elapsed time between two events (in milliseconds with a\nresolution of around 0.5 microseconds). Note this API is not guaranteed\nto return the latest errors for pending work. As such this API is\nintended to serve as a elapsed time calculation only and polling for\ncompletion on the events to be compared should be done with\n:py:obj:`~.cudaEventQuery` instead.\n\nIf either event was last recorded in a non-NULL stream, the resulting\ntime may be greater than expected (even if both used the same stream\nhandle). This happens because the :py:obj:`~.cudaEventRecord()`\noperation takes place asynchronously and there is no guarantee that the\nmeasured latency is actually just between the two events. Any number of\nother different stream operations could execute in between the two\nmeasured events, thus altering the timing in a significant way.\n\nIf :py:obj:`~.cudaEventRecord()` has not been called on either event,\nthen :py:obj:`~.cudaErrorInvalidResourceHandle` is returned. If\n:py:obj:`~.cudaEventRecord()` has been called on both events but one or\nboth of them has not yet been completed (that is,\n:py:obj:`~.cudaEventQuery()` would return :py:obj:`~.cudaErrorNotReady`\non at least one of the events), :py:obj:`~.cudaErrorNotReady` is\nreturned. If either event was created with the\n:py:obj:`~.cudaEventDisableTiming` flag, then this function will return\n:py:obj:`~.cudaErrorInvalidResourceHandle`.\n\nParameters\n----------\nstart : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Starting event\nend : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Ending event\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotReady`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorUnknown`\nms : float\n    Time between `start` and `end` in ms\n\nSee Also\n--------""\n:py:obj:`~.cudaEventCreate (C API)`, :py:obj:`~.cudaEventCreateWithFlags`, :py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`, :py:obj:`~.cudaEventRecord`, :py:obj:`~.cuEventElapsedTime`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_143cudaEventElapsedTime = {"cudaEventElapsedTime", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_143cudaEventElapsedTime, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_142cudaEventElapsedTime};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_143cudaEventElapsedTime(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_start = 0;
  PyObject *__pyx_v_end = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEventElapsedTime (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_start,&__pyx_mstate_global->__pyx_n_u_end,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, 18422, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18422, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18422, __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, "cudaEventElapsedTime", 0) < (0)) __PYX_ERR(0, 18422, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEventElapsedTime", 1, 2, 2, i); __PYX_ERR(0, 18422, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 18422, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18422, __pyx_L3_error)
    }
    __pyx_v_start = values[0];
    __pyx_v_end = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEventElapsedTime", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 18422, __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.runtime.cudaEventElapsedTime", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_142cudaEventElapsedTime(__pyx_self, __pyx_v_start, __pyx_v_end);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_142cudaEventElapsedTime(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_start, PyObject *__pyx_v_end) {
  cudaEvent_t __pyx_v_cyend;
  PyObject *__pyx_v_pend = NULL;
  cudaEvent_t __pyx_v_cystart;
  PyObject *__pyx_v_pstart = NULL;
  float __pyx_v_ms;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventElapsedTime", 0);

  /* "cuda/bindings/runtime.pyx":18470
 *     """
 *     cdef cyruntime.cudaEvent_t cyend
 *     if end is None:             # <<<<<<<<<<<<<<
 *         pend = 0
 *     elif isinstance(end, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_end == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18471
 *     cdef cyruntime.cudaEvent_t cyend
 *     if end is None:
 *         pend = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(end, (cudaEvent_t,driver.CUevent)):
 *         pend = int(end)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pend = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18470
 *     """
 *     cdef cyruntime.cudaEvent_t cyend
 *     if end is None:             # <<<<<<<<<<<<<<
 *         pend = 0
 *     elif isinstance(end, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18472
 *     if end is None:
 *         pend = 0
 *     elif isinstance(end, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pend = int(end)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_end, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_end, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18473
 *         pend = 0
 *     elif isinstance(end, (cudaEvent_t,driver.CUevent)):
 *         pend = int(end)             # <<<<<<<<<<<<<<
 *     else:
 *         pend = int(cudaEvent_t(end))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_end); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18473, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pend = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":18472
 *     if end is None:
 *         pend = 0
 *     elif isinstance(end, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pend = int(end)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18475
 *         pend = int(end)
 *     else:
 *         pend = int(cudaEvent_t(end))             # <<<<<<<<<<<<<<
 *     cyend = <cyruntime.cudaEvent_t><void_ptr>pend
 *     cdef cyruntime.cudaEvent_t cystart
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_end};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18475, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pend = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18476
 *     else:
 *         pend = int(cudaEvent_t(end))
 *     cyend = <cyruntime.cudaEvent_t><void_ptr>pend             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaEvent_t cystart
 *     if start is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pend); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18476, __pyx_L1_error)
  __pyx_v_cyend = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18478
 *     cyend = <cyruntime.cudaEvent_t><void_ptr>pend
 *     cdef cyruntime.cudaEvent_t cystart
 *     if start is None:             # <<<<<<<<<<<<<<
 *         pstart = 0
 *     elif isinstance(start, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_start == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18479
 *     cdef cyruntime.cudaEvent_t cystart
 *     if start is None:
 *         pstart = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(start, (cudaEvent_t,driver.CUevent)):
 *         pstart = int(start)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstart = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18478
 *     cyend = <cyruntime.cudaEvent_t><void_ptr>pend
 *     cdef cyruntime.cudaEvent_t cystart
 *     if start is None:             # <<<<<<<<<<<<<<
 *         pstart = 0
 *     elif isinstance(start, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":18480
 *     if start is None:
 *         pstart = 0
 *     elif isinstance(start, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pstart = int(start)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_start, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_start, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18481
 *         pstart = 0
 *     elif isinstance(start, (cudaEvent_t,driver.CUevent)):
 *         pstart = int(start)             # <<<<<<<<<<<<<<
 *     else:
 *         pstart = int(cudaEvent_t(start))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_start); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pstart = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":18480
 *     if start is None:
 *         pstart = 0
 *     elif isinstance(start, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pstart = int(start)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":18483
 *         pstart = int(start)
 *     else:
 *         pstart = int(cudaEvent_t(start))             # <<<<<<<<<<<<<<
 *     cystart = <cyruntime.cudaEvent_t><void_ptr>pstart
 *     cdef float ms = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_start};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18483, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18483, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pstart = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":18484
 *     else:
 *         pstart = int(cudaEvent_t(start))
 *     cystart = <cyruntime.cudaEvent_t><void_ptr>pstart             # <<<<<<<<<<<<<<
 *     cdef float ms = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstart); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18484, __pyx_L1_error)
  __pyx_v_cystart = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":18485
 *         pstart = int(cudaEvent_t(start))
 *     cystart = <cyruntime.cudaEvent_t><void_ptr>pstart
 *     cdef float ms = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventElapsedTime(&ms, cystart, cyend)
*/
  __pyx_v_ms = 0.0;

  /* "cuda/bindings/runtime.pyx":18486
 *     cystart = <cyruntime.cudaEvent_t><void_ptr>pstart
 *     cdef float ms = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventElapsedTime(&ms, cystart, cyend)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18487
 *     cdef float ms = 0
 *     with nogil:
 *         err = cyruntime.cudaEventElapsedTime(&ms, cystart, cyend)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventElapsedTime((&__pyx_v_ms), __pyx_v_cystart, __pyx_v_cyend); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18487, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18486
 *     cystart = <cyruntime.cudaEvent_t><void_ptr>pstart
 *     cdef float ms = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventElapsedTime(&ms, cystart, cyend)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18488
 *     with nogil:
 *         err = cyruntime.cudaEventElapsedTime(&ms, cystart, cyend)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ms)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18489
 *         err = cyruntime.cudaEventElapsedTime(&ms, cystart, cyend)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], ms)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18489, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 18489, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":18488
 *     with nogil:
 *         err = cyruntime.cudaEventElapsedTime(&ms, cystart, cyend)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ms)
*/
  }

  /* "cuda/bindings/runtime.pyx":18490
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ms)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyFloat_FromDouble(__pyx_v_ms); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 18490, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 18490, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18422
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventElapsedTime(start, end):
 *     """ Computes the elapsed time between events.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventElapsedTime", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pend);
  __Pyx_XDECREF(__pyx_v_pstart);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18492
 *     return (_dict_cudaError_t[err], ms)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDesc]):
 *     """ Imports an external memory object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_145cudaImportExternalMemory(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_7runtime_144cudaImportExternalMemory, "cudaImportExternalMemory(cudaExternalMemoryHandleDesc memHandleDesc: Optional[cudaExternalMemoryHandleDesc])\n\nImports an external memory object.\n\nImports an externally allocated memory object and returns a handle to\nthat in `extMem_out`.\n\nThe properties of the handle being imported must be described in\n`memHandleDesc`. The :py:obj:`~.cudaExternalMemoryHandleDesc` structure\nis defined as follows:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere :py:obj:`~.cudaExternalMemoryHandleDesc.type` specifies the type\nof handle being imported. :py:obj:`~.cudaExternalMemoryHandleType` is\ndefined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n:py:obj:`~.cudaExternalMemoryHandleTypeOpaqueFd`, then\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::fd must be a valid\nfile descriptor referencing a memory object. Ownership of the file\ndescriptor is transferred to the CUDA driver when the handle is\nimported successfully. Performing any operations on the file descriptor\nafter it is imported results in undefined behavior.\n\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n:py:obj:`~.cudaExternalMemoryHandleTypeOpaqueWin32`, then exactly one\nof :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle and\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must not\nbe NULL. If\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle is not\nNULL, then it must represent a valid shared NT handle that references a\nmemory object. Ownership of this handle is not transferred to CUDA\nafter the import operation, so the application must release the handle\nusing the appropriate system call. If\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name is not\nNULL, then it must point to a NULL-terminated array of UTF-16\ncharacters that refers to a memory object.\n\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n:py:obj:`~.cudaExternalMemoryH""andleTypeOpaqueWin32Kmt`, then\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle must be\nnon-NULL and\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must be\nNULL. The handle specified must be a globally shared KMT handle. This\nhandle does not hold a reference to the underlying object, and thus\nwill be invalid when all references to the memory object are destroyed.\n\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n:py:obj:`~.cudaExternalMemoryHandleTypeD3D12Heap`, then exactly one of\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle and\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must not\nbe NULL. If\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle is not\nNULL, then it must represent a valid shared NT handle that is returned\nby ID3D12Device::CreateSharedHandle when referring to a ID3D12Heap\nobject. This handle holds a reference to the underlying object. If\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name is not\nNULL, then it must point to a NULL-terminated array of UTF-16\ncharacters that refers to a ID3D12Heap object.\n\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n:py:obj:`~.cudaExternalMemoryHandleTypeD3D12Resource`, then exactly one\nof :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle and\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must not\nbe NULL. If\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle is not\nNULL, then it must represent a valid shared NT handle that is returned\nby ID3D12Device::CreateSharedHandle when referring to a ID3D12Resource\nobject. This handle holds a reference to the underlying object. If\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name is not\nNULL, then it must point to a NULL-terminated array of UTF-16\ncharacters that refers to a ID3D12Resource object.\n\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n:py:obj:`~.cudaExternalMemoryHandleTypeD3D11Re""source`,then exactly one\nof :py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle and\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must not\nbe NULL. If\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle is\nnot NULL, then it must represent a valid shared NT handle that is\nreturned by IDXGIResource1::CreateSharedHandle when referring to a\nID3D11Resource object. If\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name is not\nNULL, then it must point to a NULL-terminated array of UTF-16\ncharacters that refers to a ID3D11Resource object.\n\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n:py:obj:`~.cudaExternalMemoryHandleTypeD3D11ResourceKmt`, then\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::handle must be\nnon-NULL and\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::win32::name must be\nNULL. The handle specified must be a valid shared KMT handle that is\nreturned by IDXGIResource::GetSharedHandle when referring to a\nID3D11Resource object.\n\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is\n:py:obj:`~.cudaExternalMemoryHandleTypeNvSciBuf`, then\n:py:obj:`~.cudaExternalMemoryHandleDesc`::handle::nvSciBufObject must\nbe NON-NULL and reference a valid NvSciBuf object. If the NvSciBuf\nobject imported into CUDA is also mapped by other drivers, then the\napplication must use :py:obj:`~.cudaWaitExternalSemaphoresAsync` or\n:py:obj:`~.cudaSignalExternalSemaphoresAsync` as approprriate barriers\nto maintain coherence between CUDA and the other drivers. See\n:py:obj:`~.cudaExternalSemaphoreWaitSkipNvSciBufMemSync` and\n:py:obj:`~.cudaExternalSemaphoreSignalSkipNvSciBufMemSync` for memory\nsynchronization.\n\nThe size of the memory object must be specified in\n:py:obj:`~.cudaExternalMemoryHandleDesc.size`.\n\nSpecifying the flag :py:obj:`~.cudaExternalMemoryDedicated` in\n:py:obj:`~.cudaExternalMemoryHandleDesc.flags` indicates that the\nresource is a dedicated resource. The definition of what a"" dedicated\nresource is outside the scope of this extension. This flag must be set\nif :py:obj:`~.cudaExternalMemoryHandleDesc.type` is one of the\nfollowing: :py:obj:`~.cudaExternalMemoryHandleTypeD3D12Resource`\n:py:obj:`~.cudaExternalMemoryHandleTypeD3D11Resource`\n:py:obj:`~.cudaExternalMemoryHandleTypeD3D11ResourceKmt`\n\nParameters\n----------\nmemHandleDesc : :py:obj:`~.cudaExternalMemoryHandleDesc`\n    Memory import handle descriptor\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorOperatingSystem`\nextMem_out : :py:obj:`~.cudaExternalMemory_t`\n    Returned handle to an external memory object\n\nSee Also\n--------\n:py:obj:`~.cudaDestroyExternalMemory`, :py:obj:`~.cudaExternalMemoryGetMappedBuffer`, :py:obj:`~.cudaExternalMemoryGetMappedMipmappedArray`\n\nNotes\n-----\nIf the Vulkan memory imported into CUDA is mapped on the CPU then the application must use vkInvalidateMappedMemoryRanges/vkFlushMappedMemoryRanges as well as appropriate Vulkan pipeline barriers to maintain coherence between CPU and GPU. For more information on these APIs, please refer to \"Synchronization\nand Cache Control\" chapter from Vulkan specification.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_145cudaImportExternalMemory = {"cudaImportExternalMemory", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_145cudaImportExternalMemory, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_144cudaImportExternalMemory};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_145cudaImportExternalMemory(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_memHandleDesc = 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("cudaImportExternalMemory (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_memHandleDesc,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, 18492, __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, 18492, __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, "cudaImportExternalMemory", 0) < (0)) __PYX_ERR(0, 18492, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaImportExternalMemory", 1, 1, 1, i); __PYX_ERR(0, 18492, __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, 18492, __pyx_L3_error)
    }
    __pyx_v_memHandleDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaImportExternalMemory", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18492, __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.runtime.cudaImportExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_memHandleDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc, 1, "memHandleDesc", 0))) __PYX_ERR(0, 18493, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_144cudaImportExternalMemory(__pyx_self, __pyx_v_memHandleDesc);

  /* 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_7runtime_144cudaImportExternalMemory(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *__pyx_v_memHandleDesc) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_extMem_out = 0;
  struct cudaExternalMemoryHandleDesc *__pyx_v_cymemHandleDesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaExternalMemoryHandleDesc *__pyx_t_4;
  int __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaImportExternalMemory", 0);

  /* "cuda/bindings/runtime.pyx":18635
 *     and Cache Control" chapter from Vulkan specification.
 *     """
 *     cdef cudaExternalMemory_t extMem_out = cudaExternalMemory_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalMemoryHandleDesc* cymemHandleDesc_ptr = memHandleDesc._pvt_ptr if memHandleDesc is not None else NULL
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18635, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_extMem_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":18636
 *     """
 *     cdef cudaExternalMemory_t extMem_out = cudaExternalMemory_t()
 *     cdef cyruntime.cudaExternalMemoryHandleDesc* cymemHandleDesc_ptr = memHandleDesc._pvt_ptr if memHandleDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaImportExternalMemory(<cyruntime.cudaExternalMemory_t*>extMem_out._pvt_ptr, cymemHandleDesc_ptr)
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_memHandleDesc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_memHandleDesc->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cymemHandleDesc_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":18637
 *     cdef cudaExternalMemory_t extMem_out = cudaExternalMemory_t()
 *     cdef cyruntime.cudaExternalMemoryHandleDesc* cymemHandleDesc_ptr = memHandleDesc._pvt_ptr if memHandleDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaImportExternalMemory(<cyruntime.cudaExternalMemory_t*>extMem_out._pvt_ptr, cymemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18638
 *     cdef cyruntime.cudaExternalMemoryHandleDesc* cymemHandleDesc_ptr = memHandleDesc._pvt_ptr if memHandleDesc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaImportExternalMemory(<cyruntime.cudaExternalMemory_t*>extMem_out._pvt_ptr, cymemHandleDesc_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaImportExternalMemory(((cudaExternalMemory_t *)__pyx_v_extMem_out->_pvt_ptr), __pyx_v_cymemHandleDesc_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18638, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":18637
 *     cdef cudaExternalMemory_t extMem_out = cudaExternalMemory_t()
 *     cdef cyruntime.cudaExternalMemoryHandleDesc* cymemHandleDesc_ptr = memHandleDesc._pvt_ptr if memHandleDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaImportExternalMemory(<cyruntime.cudaExternalMemory_t*>extMem_out._pvt_ptr, cymemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18639
 *     with nogil:
 *         err = cyruntime.cudaImportExternalMemory(<cyruntime.cudaExternalMemory_t*>extMem_out._pvt_ptr, cymemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], extMem_out)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":18640
 *         err = cyruntime.cudaImportExternalMemory(<cyruntime.cudaExternalMemory_t*>extMem_out._pvt_ptr, cymemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], extMem_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 18640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 18640, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 18640, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":18639
 *     with nogil:
 *         err = cyruntime.cudaImportExternalMemory(<cyruntime.cudaExternalMemory_t*>extMem_out._pvt_ptr, cymemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], extMem_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":18641
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], extMem_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 18641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 18641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 18641, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_extMem_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_extMem_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_extMem_out)) != (0)) __PYX_ERR(0, 18641, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18492
 *     return (_dict_cudaError_t[err], ms)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDesc]):
 *     """ Imports an external memory object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaImportExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_extMem_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18643
 *     return (_dict_cudaError_t[err], extMem_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[cudaExternalMemoryBufferDesc]):
 *     """ Maps a buffer onto an imported memory object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_147cudaExternalMemoryGetMappedBuffer(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_7runtime_146cudaExternalMemoryGetMappedBuffer, "cudaExternalMemoryGetMappedBuffer(extMem, cudaExternalMemoryBufferDesc bufferDesc: Optional[cudaExternalMemoryBufferDesc])\n\nMaps a buffer onto an imported memory object.\n\nMaps a buffer onto an imported memory object and returns a device\npointer in `devPtr`.\n\nThe properties of the buffer being mapped must be described in\n`bufferDesc`. The :py:obj:`~.cudaExternalMemoryBufferDesc` structure is\ndefined as follows:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere :py:obj:`~.cudaExternalMemoryBufferDesc.offset` is the offset in\nthe memory object where the buffer's base address is.\n:py:obj:`~.cudaExternalMemoryBufferDesc.size` is the size of the\nbuffer. :py:obj:`~.cudaExternalMemoryBufferDesc.flags` must be zero.\n\nThe offset and size have to be suitably aligned to match the\nrequirements of the external API. Mapping two buffers whose ranges\noverlap may or may not result in the same virtual address being\nreturned for the overlapped portion. In such cases, the application\nmust ensure that all accesses to that region from the GPU are volatile.\nOtherwise writes made via one address are not guaranteed to be visible\nvia the other address, even if they're issued by the same thread. It is\nrecommended that applications map the combined range instead of mapping\nseparate buffers and then apply the appropriate offsets to the returned\npointer to derive the individual buffers.\n\nThe returned pointer `devPtr` must be freed using :py:obj:`~.cudaFree`.\n\nParameters\n----------\nextMem : :py:obj:`~.cudaExternalMemory_t`\n    Handle to external memory object\nbufferDesc : :py:obj:`~.cudaExternalMemoryBufferDesc`\n    Buffer descriptor\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\ndevPtr : Any\n    Returned device pointer to buffer\n\nSee Also\n--------\n:py:obj:`~.cudaImportExternalMemory`, :py:obj:`~.cudaDestroyExternalMemory`, :py:obj:`~.cudaExternal""MemoryGetMappedMipmappedArray`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_147cudaExternalMemoryGetMappedBuffer = {"cudaExternalMemoryGetMappedBuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_147cudaExternalMemoryGetMappedBuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_146cudaExternalMemoryGetMappedBuffer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_147cudaExternalMemoryGetMappedBuffer(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_extMem = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_bufferDesc = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaExternalMemoryGetMappedBuffer (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_extMem,&__pyx_mstate_global->__pyx_n_u_bufferDesc,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, 18643, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18643, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18643, __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, "cudaExternalMemoryGetMappedBuffer", 0) < (0)) __PYX_ERR(0, 18643, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExternalMemoryGetMappedBuffer", 1, 2, 2, i); __PYX_ERR(0, 18643, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 18643, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18643, __pyx_L3_error)
    }
    __pyx_v_extMem = values[0];
    __pyx_v_bufferDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExternalMemoryGetMappedBuffer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 18643, __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.runtime.cudaExternalMemoryGetMappedBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_bufferDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc, 1, "bufferDesc", 0))) __PYX_ERR(0, 18644, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_146cudaExternalMemoryGetMappedBuffer(__pyx_self, __pyx_v_extMem, __pyx_v_bufferDesc);

  /* 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_7runtime_146cudaExternalMemoryGetMappedBuffer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *__pyx_v_bufferDesc) {
  cudaExternalMemory_t __pyx_v_cyextMem;
  PyObject *__pyx_v_pextMem = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_devPtr;
  struct cudaExternalMemoryBufferDesc *__pyx_v_cybufferDesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  struct cudaExternalMemoryBufferDesc *__pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExternalMemoryGetMappedBuffer", 0);

  /* "cuda/bindings/runtime.pyx":18693
 *     """
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:             # <<<<<<<<<<<<<<
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
*/
  __pyx_t_1 = (__pyx_v_extMem == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18694
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:
 *         pextMem = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
 *         pextMem = int(extMem)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pextMem = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18693
 *     """
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:             # <<<<<<<<<<<<<<
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18695
 *     if extMem is None:
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):             # <<<<<<<<<<<<<<
 *         pextMem = int(extMem)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_extMem, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18696
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
 *         pextMem = int(extMem)             # <<<<<<<<<<<<<<
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pextMem = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":18695
 *     if extMem is None:
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):             # <<<<<<<<<<<<<<
 *         pextMem = int(extMem)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18698
 *         pextMem = int(extMem)
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))             # <<<<<<<<<<<<<<
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     cdef void_ptr devPtr = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_extMem};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18698, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18698, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pextMem = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18699
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem             # <<<<<<<<<<<<<<
 *     cdef void_ptr devPtr = 0
 *     cdef cyruntime.cudaExternalMemoryBufferDesc* cybufferDesc_ptr = bufferDesc._pvt_ptr if bufferDesc is not None else NULL
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18699, __pyx_L1_error)
  __pyx_v_cyextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":18700
 *         pextMem = int(cudaExternalMemory_t(extMem))
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     cdef void_ptr devPtr = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalMemoryBufferDesc* cybufferDesc_ptr = bufferDesc._pvt_ptr if bufferDesc is not None else NULL
 *     with nogil:
*/
  __pyx_v_devPtr = 0;

  /* "cuda/bindings/runtime.pyx":18701
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     cdef void_ptr devPtr = 0
 *     cdef cyruntime.cudaExternalMemoryBufferDesc* cybufferDesc_ptr = bufferDesc._pvt_ptr if bufferDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExternalMemoryGetMappedBuffer(<void**>&devPtr, cyextMem, cybufferDesc_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_bufferDesc) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_6 = __pyx_v_bufferDesc->_pvt_ptr;
  } else {
    __pyx_t_6 = NULL;
  }
  __pyx_v_cybufferDesc_ptr = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":18702
 *     cdef void_ptr devPtr = 0
 *     cdef cyruntime.cudaExternalMemoryBufferDesc* cybufferDesc_ptr = bufferDesc._pvt_ptr if bufferDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExternalMemoryGetMappedBuffer(<void**>&devPtr, cyextMem, cybufferDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18703
 *     cdef cyruntime.cudaExternalMemoryBufferDesc* cybufferDesc_ptr = bufferDesc._pvt_ptr if bufferDesc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaExternalMemoryGetMappedBuffer(<void**>&devPtr, cyextMem, cybufferDesc_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExternalMemoryGetMappedBuffer(((void **)(&__pyx_v_devPtr)), __pyx_v_cyextMem, __pyx_v_cybufferDesc_ptr); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18703, __pyx_L5_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18702
 *     cdef void_ptr devPtr = 0
 *     cdef cyruntime.cudaExternalMemoryBufferDesc* cybufferDesc_ptr = bufferDesc._pvt_ptr if bufferDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExternalMemoryGetMappedBuffer(<void**>&devPtr, cyextMem, cybufferDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18704
 *     with nogil:
 *         err = cyruntime.cudaExternalMemoryGetMappedBuffer(<void**>&devPtr, cyextMem, cybufferDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18705
 *         err = cyruntime.cudaExternalMemoryGetMappedBuffer(<void**>&devPtr, cyextMem, cybufferDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], devPtr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18705, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18705, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18705, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18705, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18705, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 18705, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":18704
 *     with nogil:
 *         err = cyruntime.cudaExternalMemoryGetMappedBuffer(<void**>&devPtr, cyextMem, cybufferDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  }

  /* "cuda/bindings/runtime.pyx":18706
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 18706, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 18706, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18643
 *     return (_dict_cudaError_t[err], extMem_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[cudaExternalMemoryBufferDesc]):
 *     """ Maps a buffer onto an imported memory object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryGetMappedBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pextMem);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18708
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[cudaExternalMemoryMipmappedArrayDesc]):
 *     """ Maps a CUDA mipmapped array onto an external memory object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_149cudaExternalMemoryGetMappedMipmappedArray(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_7runtime_148cudaExternalMemoryGetMappedMipmappedArray, "cudaExternalMemoryGetMappedMipmappedArray(extMem, cudaExternalMemoryMipmappedArrayDesc mipmapDesc: Optional[cudaExternalMemoryMipmappedArrayDesc])\n\nMaps a CUDA mipmapped array onto an external memory object.\n\nMaps a CUDA mipmapped array onto an external object and returns a\nhandle to it in `mipmap`.\n\nThe properties of the CUDA mipmapped array being mapped must be\ndescribed in `mipmapDesc`. The structure\n:py:obj:`~.cudaExternalMemoryMipmappedArrayDesc` is defined as follows:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.offset` is the\noffset in the memory object where the base level of the mipmap chain\nis. :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.formatDesc`\ndescribes the format of the data.\n:py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.extent` specifies the\ndimensions of the base level of the mipmap chain.\n:py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.flags` are flags\nassociated with CUDA mipmapped arrays. For further details, please\nrefer to the documentation for :py:obj:`~.cudaMalloc3DArray`. Note that\nif the mipmapped array is bound as a color target in the graphics API,\nthen the flag :py:obj:`~.cudaArrayColorAttachment` must be specified in\n:py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.flags`.\n:py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.numLevels` specifies\nthe total number of levels in the mipmap chain.\n\nThe returned CUDA mipmapped array must be freed using\n:py:obj:`~.cudaFreeMipmappedArray`.\n\nParameters\n----------\nextMem : :py:obj:`~.cudaExternalMemory_t`\n    Handle to external memory object\nmipmapDesc : :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc`\n    CUDA array descriptor\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\nmipmap : :py:obj:`~.cudaMipmappedArray_t`\n    Returned CUDA mipmapped array\n\nSee Also\n--------\n:py:obj:`~.cudaImportExte""rnalMemory`, :py:obj:`~.cudaDestroyExternalMemory`, :py:obj:`~.cudaExternalMemoryGetMappedBuffer`\n\nNotes\n-----\nIf :py:obj:`~.cudaExternalMemoryHandleDesc.type` is :py:obj:`~.cudaExternalMemoryHandleTypeNvSciBuf`, then :py:obj:`~.cudaExternalMemoryMipmappedArrayDesc.numLevels` must not be greater than 1.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_149cudaExternalMemoryGetMappedMipmappedArray = {"cudaExternalMemoryGetMappedMipmappedArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_149cudaExternalMemoryGetMappedMipmappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_148cudaExternalMemoryGetMappedMipmappedArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_149cudaExternalMemoryGetMappedMipmappedArray(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_extMem = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_mipmapDesc = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaExternalMemoryGetMappedMipmappedArray (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_extMem,&__pyx_mstate_global->__pyx_n_u_mipmapDesc,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, 18708, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18708, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18708, __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, "cudaExternalMemoryGetMappedMipmappedArray", 0) < (0)) __PYX_ERR(0, 18708, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExternalMemoryGetMappedMipmappedArray", 1, 2, 2, i); __PYX_ERR(0, 18708, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 18708, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18708, __pyx_L3_error)
    }
    __pyx_v_extMem = values[0];
    __pyx_v_mipmapDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExternalMemoryGetMappedMipmappedArray", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 18708, __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.runtime.cudaExternalMemoryGetMappedMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_mipmapDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc, 1, "mipmapDesc", 0))) __PYX_ERR(0, 18709, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_148cudaExternalMemoryGetMappedMipmappedArray(__pyx_self, __pyx_v_extMem, __pyx_v_mipmapDesc);

  /* 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_7runtime_148cudaExternalMemoryGetMappedMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *__pyx_v_mipmapDesc) {
  cudaExternalMemory_t __pyx_v_cyextMem;
  PyObject *__pyx_v_pextMem = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_mipmap = 0;
  struct cudaExternalMemoryMipmappedArrayDesc *__pyx_v_cymipmapDesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  struct cudaExternalMemoryMipmappedArrayDesc *__pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExternalMemoryGetMappedMipmappedArray", 0);

  /* "cuda/bindings/runtime.pyx":18762
 *     """
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:             # <<<<<<<<<<<<<<
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
*/
  __pyx_t_1 = (__pyx_v_extMem == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18763
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:
 *         pextMem = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
 *         pextMem = int(extMem)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pextMem = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18762
 *     """
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:             # <<<<<<<<<<<<<<
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18764
 *     if extMem is None:
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):             # <<<<<<<<<<<<<<
 *         pextMem = int(extMem)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_extMem, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18765
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
 *         pextMem = int(extMem)             # <<<<<<<<<<<<<<
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18765, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pextMem = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":18764
 *     if extMem is None:
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):             # <<<<<<<<<<<<<<
 *         pextMem = int(extMem)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18767
 *         pextMem = int(extMem)
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))             # <<<<<<<<<<<<<<
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_extMem};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18767, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18767, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pextMem = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18768
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem             # <<<<<<<<<<<<<<
 *     cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t()
 *     cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc* cymipmapDesc_ptr = mipmapDesc._pvt_ptr if mipmapDesc is not None else NULL
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18768, __pyx_L1_error)
  __pyx_v_cyextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":18769
 *         pextMem = int(cudaExternalMemory_t(extMem))
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc* cymipmapDesc_ptr = mipmapDesc._pvt_ptr if mipmapDesc is not None else NULL
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18769, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_mipmap = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":18770
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t()
 *     cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc* cymipmapDesc_ptr = mipmapDesc._pvt_ptr if mipmapDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExternalMemoryGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmap._pvt_ptr, cyextMem, cymipmapDesc_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_mipmapDesc) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_6 = __pyx_v_mipmapDesc->_pvt_ptr;
  } else {
    __pyx_t_6 = NULL;
  }
  __pyx_v_cymipmapDesc_ptr = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":18771
 *     cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t()
 *     cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc* cymipmapDesc_ptr = mipmapDesc._pvt_ptr if mipmapDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExternalMemoryGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmap._pvt_ptr, cyextMem, cymipmapDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18772
 *     cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc* cymipmapDesc_ptr = mipmapDesc._pvt_ptr if mipmapDesc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaExternalMemoryGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmap._pvt_ptr, cyextMem, cymipmapDesc_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExternalMemoryGetMappedMipmappedArray(((cudaMipmappedArray_t *)__pyx_v_mipmap->_pvt_ptr), __pyx_v_cyextMem, __pyx_v_cymipmapDesc_ptr); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18772, __pyx_L5_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":18771
 *     cdef cudaMipmappedArray_t mipmap = cudaMipmappedArray_t()
 *     cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc* cymipmapDesc_ptr = mipmapDesc._pvt_ptr if mipmapDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExternalMemoryGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmap._pvt_ptr, cyextMem, cymipmapDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18773
 *     with nogil:
 *         err = cyruntime.cudaExternalMemoryGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmap._pvt_ptr, cyextMem, cymipmapDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmap)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18774
 *         err = cyruntime.cudaExternalMemoryGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmap._pvt_ptr, cyextMem, cymipmapDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], mipmap)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 18774, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 18774, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":18773
 *     with nogil:
 *         err = cyruntime.cudaExternalMemoryGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmap._pvt_ptr, cyextMem, cymipmapDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmap)
*/
  }

  /* "cuda/bindings/runtime.pyx":18775
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmap)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 18775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 18775, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_mipmap);
  __Pyx_GIVEREF((PyObject *)__pyx_v_mipmap);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_mipmap)) != (0)) __PYX_ERR(0, 18775, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18708
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[cudaExternalMemoryMipmappedArrayDesc]):
 *     """ Maps a CUDA mipmapped array onto an external memory object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExternalMemoryGetMappedMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pextMem);
  __Pyx_XDECREF((PyObject *)__pyx_v_mipmap);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18777
 *     return (_dict_cudaError_t[err], mipmap)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyExternalMemory(extMem):
 *     """ Destroys an external memory object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_151cudaDestroyExternalMemory(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_7runtime_150cudaDestroyExternalMemory, "cudaDestroyExternalMemory(extMem)\n\nDestroys an external memory object.\n\nDestroys the specified external memory object. Any existing buffers and\nCUDA mipmapped arrays mapped onto this object must no longer be used\nand must be explicitly freed using :py:obj:`~.cudaFree` and\n:py:obj:`~.cudaFreeMipmappedArray` respectively.\n\nParameters\n----------\nextMem : :py:obj:`~.cudaExternalMemory_t`\n    External memory object to be destroyed\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaImportExternalMemory`, :py:obj:`~.cudaExternalMemoryGetMappedBuffer`, :py:obj:`~.cudaExternalMemoryGetMappedMipmappedArray`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_151cudaDestroyExternalMemory = {"cudaDestroyExternalMemory", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_151cudaDestroyExternalMemory, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_150cudaDestroyExternalMemory};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_151cudaDestroyExternalMemory(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_extMem = 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("cudaDestroyExternalMemory (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_extMem,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, 18777, __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, 18777, __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, "cudaDestroyExternalMemory", 0) < (0)) __PYX_ERR(0, 18777, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDestroyExternalMemory", 1, 1, 1, i); __PYX_ERR(0, 18777, __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, 18777, __pyx_L3_error)
    }
    __pyx_v_extMem = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDestroyExternalMemory", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18777, __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.runtime.cudaDestroyExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_150cudaDestroyExternalMemory(__pyx_self, __pyx_v_extMem);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_150cudaDestroyExternalMemory(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extMem) {
  cudaExternalMemory_t __pyx_v_cyextMem;
  PyObject *__pyx_v_pextMem = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDestroyExternalMemory", 0);

  /* "cuda/bindings/runtime.pyx":18801
 *     """
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:             # <<<<<<<<<<<<<<
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
*/
  __pyx_t_1 = (__pyx_v_extMem == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18802
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:
 *         pextMem = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
 *         pextMem = int(extMem)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pextMem = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":18801
 *     """
 *     cdef cyruntime.cudaExternalMemory_t cyextMem
 *     if extMem is None:             # <<<<<<<<<<<<<<
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18803
 *     if extMem is None:
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):             # <<<<<<<<<<<<<<
 *         pextMem = int(extMem)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_extMem, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":18804
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):
 *         pextMem = int(extMem)             # <<<<<<<<<<<<<<
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_extMem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18804, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pextMem = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":18803
 *     if extMem is None:
 *         pextMem = 0
 *     elif isinstance(extMem, (cudaExternalMemory_t,)):             # <<<<<<<<<<<<<<
 *         pextMem = int(extMem)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":18806
 *         pextMem = int(extMem)
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))             # <<<<<<<<<<<<<<
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_extMem};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18806, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18806, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pextMem = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":18807
 *     else:
 *         pextMem = int(cudaExternalMemory_t(extMem))
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDestroyExternalMemory(cyextMem)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pextMem); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 18807, __pyx_L1_error)
  __pyx_v_cyextMem = ((cudaExternalMemory_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":18808
 *         pextMem = int(cudaExternalMemory_t(extMem))
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDestroyExternalMemory(cyextMem)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18809
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     with nogil:
 *         err = cyruntime.cudaDestroyExternalMemory(cyextMem)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyExternalMemory(__pyx_v_cyextMem); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18809, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":18808
 *         pextMem = int(cudaExternalMemory_t(extMem))
 *     cyextMem = <cyruntime.cudaExternalMemory_t><void_ptr>pextMem
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDestroyExternalMemory(cyextMem)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18810
 *     with nogil:
 *         err = cyruntime.cudaDestroyExternalMemory(cyextMem)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 18810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 18810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 18810, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18777
 *     return (_dict_cudaError_t[err], mipmap)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyExternalMemory(extMem):
 *     """ Destroys an external memory object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDestroyExternalMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pextMem);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18812
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHandleDesc]):
 *     """ Imports an external semaphore.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_153cudaImportExternalSemaphore(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_7runtime_152cudaImportExternalSemaphore, "cudaImportExternalSemaphore(cudaExternalSemaphoreHandleDesc semHandleDesc: Optional[cudaExternalSemaphoreHandleDesc])\n\nImports an external semaphore.\n\nImports an externally allocated synchronization object and returns a\nhandle to that in `extSem_out`.\n\nThe properties of the handle being imported must be described in\n`semHandleDesc`. The :py:obj:`~.cudaExternalSemaphoreHandleDesc` is\ndefined as follows:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` specifies the\ntype of handle being imported.\n:py:obj:`~.cudaExternalSemaphoreHandleType` is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueFd`, then\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::fd must be a valid\nfile descriptor referencing a synchronization object. Ownership of the\nfile descriptor is transferred to the CUDA driver when the handle is\nimported successfully. Performing any operations on the file descriptor\nafter it is imported results in undefined behavior.\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32`, then exactly\none of\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle and\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name must\nnot be NULL. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\nnot NULL, then it must represent a valid shared NT handle that\nreferences a synchronization object. Ownership of this handle is not\ntransferred to CUDA after the import operation, so the application must\nrelease the handle using the appropriate system call. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name is not\nNULL, then it must name a valid synchronization object.\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExt""ernalSemaphoreHandleTypeOpaqueWin32Kmt`, then\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle must\nbe non-NULL and\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name must\nbe NULL. The handle specified must be a globally shared KMT handle.\nThis handle does not hold a reference to the underlying object, and\nthus will be invalid when all references to the synchronization object\nare destroyed.\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExternalSemaphoreHandleTypeD3D12Fence`, then exactly one\nof :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle\nand :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name\nmust not be NULL. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\nnot NULL, then it must represent a valid shared NT handle that is\nreturned by ID3D12Device::CreateSharedHandle when referring to a\nID3D12Fence object. This handle holds a reference to the underlying\nobject. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name is not\nNULL, then it must name a valid synchronization object that refers to a\nvalid ID3D12Fence object.\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExternalSemaphoreHandleTypeD3D11Fence`, then exactly one\nof :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle\nand :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name\nmust not be NULL. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\nnot NULL, then it must represent a valid shared NT handle that is\nreturned by ID3D11Fence::CreateSharedHandle. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name is not\nNULL, then it must name a valid synchronization object that refers to a\nvalid ID3D11Fence object.\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync`, then\n:py:obj:`~.cudaExternalSemaphoreHandleDesc""`::handle::nvSciSyncObj\nrepresents a valid NvSciSyncObj.\n\n:py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutex`, then exactly one\nof :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle\nand :py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name\nmust not be NULL. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\nnot NULL, then it represent a valid shared NT handle that is returned\nby IDXGIResource1::CreateSharedHandle when referring to a\nIDXGIKeyedMutex object.\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutexKmt`, then\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle must\nbe non-NULL and\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name must\nbe NULL. The handle specified must represent a valid KMT handle that is\nreturned by IDXGIResource::GetSharedHandle when referring to a\nIDXGIKeyedMutex object.\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd`, then\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::fd must be a valid\nfile descriptor referencing a synchronization object. Ownership of the\nfile descriptor is transferred to the CUDA driver when the handle is\nimported successfully. Performing any operations on the file descriptor\nafter it is imported results in undefined behavior.\n\nIf :py:obj:`~.cudaExternalSemaphoreHandleDesc.type` is\n:py:obj:`~.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32`, then\nexactly one of\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle and\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name must\nnot be NULL. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::handle is\nnot NULL, then it must represent a valid shared NT handle that\nreferences a synchronization object. Ownership of this handle is not\ntransferred to CUDA after the import operation, so ""the application must\nrelease the handle using the appropriate system call. If\n:py:obj:`~.cudaExternalSemaphoreHandleDesc`::handle::win32::name is not\nNULL, then it must name a valid synchronization object.\n\nParameters\n----------\nsemHandleDesc : :py:obj:`~.cudaExternalSemaphoreHandleDesc`\n    Semaphore import handle descriptor\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorOperatingSystem`\nextSem_out : :py:obj:`~.cudaExternalSemaphore_t`\n    Returned handle to an external semaphore\n\nSee Also\n--------\n:py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_153cudaImportExternalSemaphore = {"cudaImportExternalSemaphore", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_153cudaImportExternalSemaphore, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_152cudaImportExternalSemaphore};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_153cudaImportExternalSemaphore(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_semHandleDesc = 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("cudaImportExternalSemaphore (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_semHandleDesc,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, 18812, __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, 18812, __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, "cudaImportExternalSemaphore", 0) < (0)) __PYX_ERR(0, 18812, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaImportExternalSemaphore", 1, 1, 1, i); __PYX_ERR(0, 18812, __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, 18812, __pyx_L3_error)
    }
    __pyx_v_semHandleDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaImportExternalSemaphore", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 18812, __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.runtime.cudaImportExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_semHandleDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc, 1, "semHandleDesc", 0))) __PYX_ERR(0, 18813, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_152cudaImportExternalSemaphore(__pyx_self, __pyx_v_semHandleDesc);

  /* 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_7runtime_152cudaImportExternalSemaphore(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *__pyx_v_semHandleDesc) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_extSem_out = 0;
  struct cudaExternalSemaphoreHandleDesc *__pyx_v_cysemHandleDesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaExternalSemaphoreHandleDesc *__pyx_t_4;
  int __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaImportExternalSemaphore", 0);

  /* "cuda/bindings/runtime.pyx":18950
 *     :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`
 *     """
 *     cdef cudaExternalSemaphore_t extSem_out = cudaExternalSemaphore_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreHandleDesc* cysemHandleDesc_ptr = semHandleDesc._pvt_ptr if semHandleDesc is not None else NULL
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18950, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_extSem_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":18951
 *     """
 *     cdef cudaExternalSemaphore_t extSem_out = cudaExternalSemaphore_t()
 *     cdef cyruntime.cudaExternalSemaphoreHandleDesc* cysemHandleDesc_ptr = semHandleDesc._pvt_ptr if semHandleDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaImportExternalSemaphore(<cyruntime.cudaExternalSemaphore_t*>extSem_out._pvt_ptr, cysemHandleDesc_ptr)
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_semHandleDesc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_semHandleDesc->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cysemHandleDesc_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":18952
 *     cdef cudaExternalSemaphore_t extSem_out = cudaExternalSemaphore_t()
 *     cdef cyruntime.cudaExternalSemaphoreHandleDesc* cysemHandleDesc_ptr = semHandleDesc._pvt_ptr if semHandleDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaImportExternalSemaphore(<cyruntime.cudaExternalSemaphore_t*>extSem_out._pvt_ptr, cysemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":18953
 *     cdef cyruntime.cudaExternalSemaphoreHandleDesc* cysemHandleDesc_ptr = semHandleDesc._pvt_ptr if semHandleDesc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaImportExternalSemaphore(<cyruntime.cudaExternalSemaphore_t*>extSem_out._pvt_ptr, cysemHandleDesc_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaImportExternalSemaphore(((cudaExternalSemaphore_t *)__pyx_v_extSem_out->_pvt_ptr), __pyx_v_cysemHandleDesc_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 18953, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":18952
 *     cdef cudaExternalSemaphore_t extSem_out = cudaExternalSemaphore_t()
 *     cdef cyruntime.cudaExternalSemaphoreHandleDesc* cysemHandleDesc_ptr = semHandleDesc._pvt_ptr if semHandleDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaImportExternalSemaphore(<cyruntime.cudaExternalSemaphore_t*>extSem_out._pvt_ptr, cysemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":18954
 *     with nogil:
 *         err = cyruntime.cudaImportExternalSemaphore(<cyruntime.cudaExternalSemaphore_t*>extSem_out._pvt_ptr, cysemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], extSem_out)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":18955
 *         err = cyruntime.cudaImportExternalSemaphore(<cyruntime.cudaExternalSemaphore_t*>extSem_out._pvt_ptr, cysemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], extSem_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 18955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 18955, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 18955, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":18954
 *     with nogil:
 *         err = cyruntime.cudaImportExternalSemaphore(<cyruntime.cudaExternalSemaphore_t*>extSem_out._pvt_ptr, cysemHandleDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], extSem_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":18956
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], extSem_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 18956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 18956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 18956, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_extSem_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_extSem_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_extSem_out)) != (0)) __PYX_ERR(0, 18956, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18812
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHandleDesc]):
 *     """ Imports an external semaphore.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaImportExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_extSem_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18958
 *     return (_dict_cudaError_t[err], extSem_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreSignalParams] | list[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream):
 *     """ Signals a set of external semaphore objects.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_155cudaSignalExternalSemaphoresAsync(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_7runtime_154cudaSignalExternalSemaphoresAsync, "cudaSignalExternalSemaphoresAsync(extSemArray: Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray: Optional[tuple[cudaExternalSemaphoreSignalParams] | list[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream)\n\nSignals a set of external semaphore objects.\n\nEnqueues a signal operation on a set of externally allocated semaphore\nobject in the specified stream. The operations will be executed when\nall prior operations in the stream complete.\n\nThe exact semantics of signaling a semaphore depends on the type of the\nobject.\n\nIf the semaphore object is any one of the following types:\n:py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueFd`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt` then\nsignaling the semaphore will set it to the signaled state.\n\nIf the semaphore object is any one of the following types:\n:py:obj:`~.cudaExternalSemaphoreHandleTypeD3D12Fence`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeD3D11Fence`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32` then\nthe semaphore will be set to the value specified in\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::params::fence::value.\n\nIf the semaphore object is of the type\n:py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync` this API sets\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::params::nvSciSync::fence\nto a value that can be used by subsequent waiters of the same NvSciSync\nobject to order operations with those currently submitted in `stream`.\nSuch an update will overwrite previous contents of\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::params::nvSciSync::fence.\nBy default, signaling such an external semaphore object causes\nappropriate memory synchronization operations to be performed over all\nthe external memory objects that are imported as\n:py:obj:`~.cudaExternalMemoryHandleTypeNvSciB""uf`. This ensures that any\nsubsequent accesses made by other importers of the same set of NvSciBuf\nmemory object(s) are coherent. These operations can be skipped by\nspecifying the flag\n:py:obj:`~.cudaExternalSemaphoreSignalSkipNvSciBufMemSync`, which can\nbe used as a performance optimization when data coherency is not\nrequired. But specifying this flag in scenarios where data coherency is\nrequired results in undefined behavior. Also, for semaphore object of\nthe type :py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync`, if the\nNvSciSyncAttrList used to create the NvSciSyncObj had not set the flags\nin :py:obj:`~.cudaDeviceGetNvSciSyncAttributes` to\ncudaNvSciSyncAttrSignal, this API will return cudaErrorNotSupported.\n\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::params::nvSciSync::fence\nassociated with semaphore object of the type\n:py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync` can be\ndeterministic. For this the NvSciSyncAttrList used to create the\nsemaphore object must have value of\nNvSciSyncAttrKey_RequireDeterministicFences key set to true.\nDeterministic fences allow users to enqueue a wait over the semaphore\nobject even before corresponding signal is enqueued. For such a\nsemaphore object, CUDA guarantees that each signal operation will\nincrement the fence value by '1'. Users are expected to track count of\nsignals enqueued on the semaphore object and insert waits accordingly.\nWhen such a semaphore object is signaled from multiple streams, due to\nconcurrent stream execution, it is possible that the order in which the\nsemaphore gets signaled is indeterministic. This could lead to waiters\nof the semaphore getting unblocked incorrectly. Users are expected to\nhandle such situations, either by not using the same semaphore object\nwith deterministic fence support enabled in different streams or by\nadding explicit dependency amongst such streams so that the semaphore\nis signaled in order.\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::p""arams::nvSciSync::fence\nassociated with semaphore object of the type\n:py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync` can be timestamp\nenabled. For this the NvSciSyncAttrList used to create the object must\nhave the value of NvSciSyncAttrKey_WaiterRequireTimestamps key set to\ntrue. Timestamps are emitted asynchronously by the GPU and CUDA saves\nthe GPU timestamp in the corresponding NvSciSyncFence at the time of\nsignal on GPU. Users are expected to convert GPU clocks to CPU clocks\nusing appropriate scaling functions. Users are expected to wait for the\ncompletion of the fence before extracting timestamp using appropriate\nNvSciSync APIs. Users are expected to ensure that there is only one\noutstanding timestamp enabled fence per Cuda-NvSciSync object at any\npoint of time, failing which leads to undefined behavior. Extracting\nthe timestamp before the corresponding fence is signalled could lead to\nundefined behaviour. Timestamp extracted via appropriate NvSciSync API\nwould be in microseconds.\n\nIf the semaphore object is any one of the following types:\n:py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutex`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutexKmt`, then the\nkeyed mutex will be released with the key specified in\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::params::keyedmutex::key.\n\nParameters\n----------\nextSemArray : list[:py:obj:`~.cudaExternalSemaphore_t`]\n    Set of external semaphores to be signaled\nparamsArray : list[:py:obj:`~.cudaExternalSemaphoreSignalParams`]\n    Array of semaphore parameters\nnumExtSems : unsigned int\n    Number of semaphores to signal\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to enqueue the signal operations in\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_155cudaSignalExternalSemaphoresAsync = {"cudaSignalExternalSemaphoresAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_155cudaSignalExternalSemaphoresAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_154cudaSignalExternalSemaphoresAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_155cudaSignalExternalSemaphoresAsync(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_extSemArray = 0;
  PyObject *__pyx_v_paramsArray = 0;
  unsigned int __pyx_v_numExtSems;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaSignalExternalSemaphoresAsync (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_extSemArray_2,&__pyx_mstate_global->__pyx_n_u_paramsArray_2,&__pyx_mstate_global->__pyx_n_u_numExtSems_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 18958, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 18958, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 18958, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18958, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 18958, __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, "cudaSignalExternalSemaphoresAsync", 0) < (0)) __PYX_ERR(0, 18958, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaSignalExternalSemaphoresAsync", 1, 4, 4, i); __PYX_ERR(0, 18958, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 18958, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 18958, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 18958, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 18958, __pyx_L3_error)
    }
    __pyx_v_extSemArray = values[0];
    __pyx_v_paramsArray = values[1];
    __pyx_v_numExtSems = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 18959, __pyx_L3_error)
    __pyx_v_stream = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaSignalExternalSemaphoresAsync", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 18958, __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.runtime.cudaSignalExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_154cudaSignalExternalSemaphoresAsync(__pyx_self, __pyx_v_extSemArray, __pyx_v_paramsArray, __pyx_v_numExtSems, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_2generator94(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":19077
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 19077, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_2generator94, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[94]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaSignalExternalSemaphoresAsyn, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 19077, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSignalExternalSemaphoresAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_2generator94(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 19077, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 19077, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19077, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19077, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 19077, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 19077, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19077, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 19077, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_5generator95(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":19080
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 19080, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_5generator95, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[95]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaSignalExternalSemaphoresAsyn, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 19080, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSignalExternalSemaphoresAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_5generator95(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 19080, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 19080, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19080, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 19080, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 19080, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19080, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 19080, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":18958
 *     return (_dict_cudaError_t[err], extSem_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreSignalParams] | list[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream):
 *     """ Signals a set of external semaphore objects.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_154cudaSignalExternalSemaphoresAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extSemArray, PyObject *__pyx_v_paramsArray, unsigned int __pyx_v_numExtSems, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaExternalSemaphore_t *__pyx_v_cyextSemArray;
  Py_ssize_t __pyx_v_idx;
  struct cudaExternalSemaphoreSignalParams *__pyx_v_cyparamsArray;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_2generator94 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_5generator95 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaExternalSemaphoreSignalParams *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaSignalExternalSemaphoresAsync", 0);
  __Pyx_INCREF(__pyx_v_extSemArray);
  __Pyx_INCREF(__pyx_v_paramsArray);

  /* "cuda/bindings/runtime.pyx":19069
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19070
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":19069
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":19071
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19072
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19072, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":19071
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":19074
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19074, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19074, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":19075
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray):
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19075, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":19076
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray):
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
*/
  __pyx_t_1 = (__pyx_v_paramsArray == Py_None);
  if (__pyx_t_1) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19076, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_paramsArray);
    __pyx_t_4 = __pyx_v_paramsArray;
  }
  __Pyx_DECREF_SET(__pyx_v_paramsArray, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19077
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_genexpr(NULL, __pyx_v_paramsArray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 19077, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":19078
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray):
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")             # <<<<<<<<<<<<<<
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_paramsArray_is_not_inst};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19078, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 19078, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":19077
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
*/
  }

  /* "cuda/bindings/runtime.pyx":19079
 *     if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray):
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
*/
  __pyx_t_2 = (__pyx_v_extSemArray == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_extSemArray);
    __pyx_t_3 = __pyx_v_extSemArray;
  }
  __Pyx_DECREF_SET(__pyx_v_extSemArray, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":19080
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_3genexpr(NULL, __pyx_v_extSemArray); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 19080, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = (!__pyx_t_2);
  if (unlikely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":19081
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
 *     if len(extSemArray) > 1:
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_extSemArray_is_not_inst};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19081, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 19081, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":19080
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
*/
  }

  /* "cuda/bindings/runtime.pyx":19082
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL             # <<<<<<<<<<<<<<
 *     if len(extSemArray) > 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
  __pyx_v_cyextSemArray = NULL;

  /* "cuda/bindings/runtime.pyx":19083
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
 *     if len(extSemArray) > 1:             # <<<<<<<<<<<<<<
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19083, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19084
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
 *     if len(extSemArray) > 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))             # <<<<<<<<<<<<<<
 *         if cyextSemArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19084, __pyx_L1_error)
    __pyx_v_cyextSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_7, (sizeof(cudaExternalSemaphore_t))));

    /* "cuda/bindings/runtime.pyx":19085
 *     if len(extSemArray) > 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *         else:
*/
    __pyx_t_1 = (__pyx_v_cyextSemArray == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":19086
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(extSemArray)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19086, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19086, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19086, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19086, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19086, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19086, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19086, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19086, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19086, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 19086, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":19085
 *     if len(extSemArray) > 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":19088
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *         else:
 *             for idx in range(len(extSemArray)):             # <<<<<<<<<<<<<<
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]
 *     elif len(extSemArray) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19088, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":19089
 *         else:
 *             for idx in range(len(extSemArray)):
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(extSemArray) == 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
*/
        __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_extSemArray, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19089, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        (__pyx_v_cyextSemArray[__pyx_v_idx]) = ((cudaExternalSemaphore_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_4)->_pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":19083
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
 *     if len(extSemArray) > 1:             # <<<<<<<<<<<<<<
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:
*/
    goto __pyx_L8;
  }

  /* "cuda/bindings/runtime.pyx":19090
 *             for idx in range(len(extSemArray)):
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]
 *     elif len(extSemArray) == 1:             # <<<<<<<<<<<<<<
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* cyparamsArray = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19090, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 == 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19091
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]
 *     elif len(extSemArray) == 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* cyparamsArray = NULL
 *     if len(paramsArray) > 1:
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_extSemArray, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_cyextSemArray = ((cudaExternalSemaphore_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_4)->_pvt_ptr);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":19090
 *             for idx in range(len(extSemArray)):
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]
 *     elif len(extSemArray) == 1:             # <<<<<<<<<<<<<<
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* cyparamsArray = NULL
*/
  }
  __pyx_L8:;

  /* "cuda/bindings/runtime.pyx":19092
 *     elif len(extSemArray) == 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* cyparamsArray = NULL             # <<<<<<<<<<<<<<
 *     if len(paramsArray) > 1:
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
*/
  __pyx_v_cyparamsArray = NULL;

  /* "cuda/bindings/runtime.pyx":19093
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* cyparamsArray = NULL
 *     if len(paramsArray) > 1:             # <<<<<<<<<<<<<<
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *         if cyparamsArray is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19093, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19094
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* cyparamsArray = NULL
 *     if len(paramsArray) > 1:
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))             # <<<<<<<<<<<<<<
 *         if cyparamsArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19094, __pyx_L1_error)
    __pyx_v_cyparamsArray = ((struct cudaExternalSemaphoreSignalParams *)calloc(__pyx_t_7, (sizeof(struct cudaExternalSemaphoreSignalParams))));

    /* "cuda/bindings/runtime.pyx":19095
 *     if len(paramsArray) > 1:
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *         if cyparamsArray is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *         for idx in range(len(paramsArray)):
*/
    __pyx_t_1 = (__pyx_v_cyparamsArray == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":19096
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *         if cyparamsArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(paramsArray)):
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreSignalParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
*/
      __pyx_t_8 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19096, __pyx_L1_error)
      __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalParams))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19096, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19096, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 19096, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":19095
 *     if len(paramsArray) > 1:
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *         if cyparamsArray is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *         for idx in range(len(paramsArray)):
*/
    }

    /* "cuda/bindings/runtime.pyx":19097
 *         if cyparamsArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *         for idx in range(len(paramsArray)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreSignalParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *     elif len(paramsArray) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19097, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":19098
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreSignalParams)))
 *         for idx in range(len(paramsArray)):
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreSignalParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))             # <<<<<<<<<<<<<<
 *     elif len(paramsArray) == 1:
 *         cyparamsArray = (<cudaExternalSemaphoreSignalParams>paramsArray[0])._pvt_ptr
*/
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_paramsArray, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19098, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      (void)(memcpy((&(__pyx_v_cyparamsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_t_4)->_pvt_ptr, (sizeof(struct cudaExternalSemaphoreSignalParams))));
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }

    /* "cuda/bindings/runtime.pyx":19093
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreSignalParams* cyparamsArray = NULL
 *     if len(paramsArray) > 1:             # <<<<<<<<<<<<<<
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreSignalParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *         if cyparamsArray is NULL:
*/
    goto __pyx_L12;
  }

  /* "cuda/bindings/runtime.pyx":19099
 *         for idx in range(len(paramsArray)):
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreSignalParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *     elif len(paramsArray) == 1:             # <<<<<<<<<<<<<<
 *         cyparamsArray = (<cudaExternalSemaphoreSignalParams>paramsArray[0])._pvt_ptr
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19099, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 == 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19100
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreSignalParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *     elif len(paramsArray) == 1:
 *         cyparamsArray = (<cudaExternalSemaphoreSignalParams>paramsArray[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_paramsArray, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)__pyx_t_4)->_pvt_ptr;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_cyparamsArray = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":19099
 *         for idx in range(len(paramsArray)):
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreSignalParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams))
 *     elif len(paramsArray) == 1:             # <<<<<<<<<<<<<<
 *         cyparamsArray = (<cudaExternalSemaphoreSignalParams>paramsArray[0])._pvt_ptr
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
*/
  }
  __pyx_L12:;

  /* "cuda/bindings/runtime.pyx":19101
 *     elif len(paramsArray) == 1:
 *         cyparamsArray = (<cudaExternalSemaphoreSignalParams>paramsArray[0])._pvt_ptr
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))             # <<<<<<<<<<<<<<
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19101, __pyx_L1_error)
  __pyx_t_1 = (__pyx_v_numExtSems > __pyx_t_7);
  if (unlikely(__pyx_t_1)) {
    __pyx_t_3 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19101, __pyx_L1_error)
    __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numExtSems); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((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_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19101, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 19101, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":19102
 *         cyparamsArray = (<cudaExternalSemaphoreSignalParams>paramsArray[0])._pvt_ptr
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaSignalExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19102, __pyx_L1_error)
  __pyx_t_1 = (__pyx_v_numExtSems > __pyx_t_7);
  if (unlikely(__pyx_t_1)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19102, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numExtSems); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19102, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 19102, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":19103
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaSignalExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19104
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
 *     with nogil:
 *         err = cyruntime.cudaSignalExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)             # <<<<<<<<<<<<<<
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
 *         free(cyextSemArray)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaSignalExternalSemaphoresAsync(__pyx_v_cyextSemArray, __pyx_v_cyparamsArray, __pyx_v_numExtSems, __pyx_v_cystream); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19104, __pyx_L19_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":19103
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaSignalExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L20;
        }
        __pyx_L19_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L20:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19105
 *     with nogil:
 *         err = cyruntime.cudaSignalExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19105, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L22_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyextSemArray != NULL);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L22_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19106
 *         err = cyruntime.cudaSignalExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
 *         free(cyextSemArray)             # <<<<<<<<<<<<<<
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
 *         free(cyparamsArray)
*/
    free(__pyx_v_cyextSemArray);

    /* "cuda/bindings/runtime.pyx":19105
 *     with nogil:
 *         err = cyruntime.cudaSignalExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":19107
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyparamsArray)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19107, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L25_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyparamsArray != NULL);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L25_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19108
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
 *         free(cyparamsArray)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cyparamsArray);

    /* "cuda/bindings/runtime.pyx":19107
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyparamsArray)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":19109
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
 *         free(cyparamsArray)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 19109, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":18958
 *     return (_dict_cudaError_t[err], extSem_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreSignalParams] | list[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream):
 *     """ Signals a set of external semaphore objects.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaSignalExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_2generator94);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_33cudaSignalExternalSemaphoresAsync_5generator95);
  __Pyx_XDECREF(__pyx_v_extSemArray);
  __Pyx_XDECREF(__pyx_v_paramsArray);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19111
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreWaitParams] | list[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream):
 *     """ Waits on a set of external semaphore objects.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_157cudaWaitExternalSemaphoresAsync(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_7runtime_156cudaWaitExternalSemaphoresAsync, "cudaWaitExternalSemaphoresAsync(extSemArray: Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray: Optional[tuple[cudaExternalSemaphoreWaitParams] | list[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream)\n\nWaits on a set of external semaphore objects.\n\nEnqueues a wait operation on a set of externally allocated semaphore\nobject in the specified stream. The operations will be executed when\nall prior operations in the stream complete.\n\nThe exact semantics of waiting on a semaphore depends on the type of\nthe object.\n\nIf the semaphore object is any one of the following types:\n:py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueFd`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt` then waiting\non the semaphore will wait until the semaphore reaches the signaled\nstate. The semaphore will then be reset to the unsignaled state.\nTherefore for every signal operation, there can only be one wait\noperation.\n\nIf the semaphore object is any one of the following types:\n:py:obj:`~.cudaExternalSemaphoreHandleTypeD3D12Fence`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeD3D11Fence`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32` then\nwaiting on the semaphore will wait until the value of the semaphore is\ngreater than or equal to\n:py:obj:`~.cudaExternalSemaphoreWaitParams`::params::fence::value.\n\nIf the semaphore object is of the type\n:py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync` then, waiting on\nthe semaphore will wait until the\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::params::nvSciSync::fence\nis signaled by the signaler of the NvSciSyncObj that was associated\nwith this semaphore object. By default, waiting on such an external\nsemaphore object causes appropriate memory synchronization operations\nto be performed over all external memory objects that are"" imported as\n:py:obj:`~.cudaExternalMemoryHandleTypeNvSciBuf`. This ensures that any\nsubsequent accesses made by other importers of the same set of NvSciBuf\nmemory object(s) are coherent. These operations can be skipped by\nspecifying the flag\n:py:obj:`~.cudaExternalSemaphoreWaitSkipNvSciBufMemSync`, which can be\nused as a performance optimization when data coherency is not required.\nBut specifying this flag in scenarios where data coherency is required\nresults in undefined behavior. Also, for semaphore object of the type\n:py:obj:`~.cudaExternalSemaphoreHandleTypeNvSciSync`, if the\nNvSciSyncAttrList used to create the NvSciSyncObj had not set the flags\nin :py:obj:`~.cudaDeviceGetNvSciSyncAttributes` to\ncudaNvSciSyncAttrWait, this API will return cudaErrorNotSupported.\n\nIf the semaphore object is any one of the following types:\n:py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutex`,\n:py:obj:`~.cudaExternalSemaphoreHandleTypeKeyedMutexKmt`, then the\nkeyed mutex will be acquired when it is released with the key specified\nin\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::params::keyedmutex::key\nor until the timeout specified by\n:py:obj:`~.cudaExternalSemaphoreSignalParams`::params::keyedmutex::timeoutMs\nhas lapsed. The timeout interval can either be a finite value specified\nin milliseconds or an infinite value. In case an infinite value is\nspecified the timeout never elapses. The windows INFINITE macro must be\nused to specify infinite timeout\n\nParameters\n----------\nextSemArray : list[:py:obj:`~.cudaExternalSemaphore_t`]\n    External semaphores to be waited on\nparamsArray : list[:py:obj:`~.cudaExternalSemaphoreWaitParams`]\n    Array of semaphore parameters\nnumExtSems : unsigned int\n    Number of semaphores to wait on\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to enqueue the wait operations in\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle` :py:obj:`~.cuda""ErrorTimeout`\n\nSee Also\n--------\n:py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_157cudaWaitExternalSemaphoresAsync = {"cudaWaitExternalSemaphoresAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_157cudaWaitExternalSemaphoresAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_156cudaWaitExternalSemaphoresAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_157cudaWaitExternalSemaphoresAsync(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_extSemArray = 0;
  PyObject *__pyx_v_paramsArray = 0;
  unsigned int __pyx_v_numExtSems;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaWaitExternalSemaphoresAsync (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_extSemArray_2,&__pyx_mstate_global->__pyx_n_u_paramsArray_2,&__pyx_mstate_global->__pyx_n_u_numExtSems_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 19111, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 19111, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19111, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19111, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19111, __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, "cudaWaitExternalSemaphoresAsync", 0) < (0)) __PYX_ERR(0, 19111, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaWaitExternalSemaphoresAsync", 1, 4, 4, i); __PYX_ERR(0, 19111, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 19111, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19111, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19111, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 19111, __pyx_L3_error)
    }
    __pyx_v_extSemArray = values[0];
    __pyx_v_paramsArray = values[1];
    __pyx_v_numExtSems = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_numExtSems == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19112, __pyx_L3_error)
    __pyx_v_stream = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaWaitExternalSemaphoresAsync", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 19111, __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.runtime.cudaWaitExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_156cudaWaitExternalSemaphoresAsync(__pyx_self, __pyx_v_extSemArray, __pyx_v_paramsArray, __pyx_v_numExtSems, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_2generator96(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":19203
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 19203, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_2generator96, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[96]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaWaitExternalSemaphoresAsync, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 19203, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaWaitExternalSemaphoresAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_2generator96(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 19203, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 19203, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19203, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19203, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 19203, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 19203, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19203, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 19203, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_5generator97(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":19206
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 19206, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_5generator97, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[97]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaWaitExternalSemaphoresAsync, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 19206, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaWaitExternalSemaphoresAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_5generator97(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 19206, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 19206, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19206, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19206, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 19206, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 19206, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19206, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 19206, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19111
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreWaitParams] | list[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream):
 *     """ Waits on a set of external semaphore objects.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_156cudaWaitExternalSemaphoresAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extSemArray, PyObject *__pyx_v_paramsArray, unsigned int __pyx_v_numExtSems, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaExternalSemaphore_t *__pyx_v_cyextSemArray;
  Py_ssize_t __pyx_v_idx;
  struct cudaExternalSemaphoreWaitParams *__pyx_v_cyparamsArray;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_2generator96 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_5generator97 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaExternalSemaphoreWaitParams *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaWaitExternalSemaphoresAsync", 0);
  __Pyx_INCREF(__pyx_v_extSemArray);
  __Pyx_INCREF(__pyx_v_paramsArray);

  /* "cuda/bindings/runtime.pyx":19195
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19196
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":19195
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":19197
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19198
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":19197
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":19200
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19200, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":19201
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray):
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19201, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":19202
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray):
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
*/
  __pyx_t_1 = (__pyx_v_paramsArray == Py_None);
  if (__pyx_t_1) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19202, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_paramsArray);
    __pyx_t_4 = __pyx_v_paramsArray;
  }
  __Pyx_DECREF_SET(__pyx_v_paramsArray, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19203
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_genexpr(NULL, __pyx_v_paramsArray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 19203, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":19204
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray):
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")             # <<<<<<<<<<<<<<
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_paramsArray_is_not_inst_2};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19204, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 19204, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":19203
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     paramsArray = [] if paramsArray is None else paramsArray
 *     if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
*/
  }

  /* "cuda/bindings/runtime.pyx":19205
 *     if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray):
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
*/
  __pyx_t_2 = (__pyx_v_extSemArray == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_extSemArray);
    __pyx_t_3 = __pyx_v_extSemArray;
  }
  __Pyx_DECREF_SET(__pyx_v_extSemArray, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":19206
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_3genexpr(NULL, __pyx_v_extSemArray); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 19206, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = (!__pyx_t_2);
  if (unlikely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":19207
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
 *     if len(extSemArray) > 1:
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_extSemArray_is_not_inst};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19207, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 19207, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":19206
 *         raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]")
 *     extSemArray = [] if extSemArray is None else extSemArray
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
*/
  }

  /* "cuda/bindings/runtime.pyx":19208
 *     if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray):
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL             # <<<<<<<<<<<<<<
 *     if len(extSemArray) > 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
*/
  __pyx_v_cyextSemArray = NULL;

  /* "cuda/bindings/runtime.pyx":19209
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
 *     if len(extSemArray) > 1:             # <<<<<<<<<<<<<<
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19209, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19210
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
 *     if len(extSemArray) > 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))             # <<<<<<<<<<<<<<
 *         if cyextSemArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19210, __pyx_L1_error)
    __pyx_v_cyextSemArray = ((cudaExternalSemaphore_t *)calloc(__pyx_t_7, (sizeof(cudaExternalSemaphore_t))));

    /* "cuda/bindings/runtime.pyx":19211
 *     if len(extSemArray) > 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *         else:
*/
    __pyx_t_1 = (__pyx_v_cyextSemArray == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":19212
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(extSemArray)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19212, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19212, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 19212, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":19211
 *     if len(extSemArray) > 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":19214
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(extSemArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphore_t)))
 *         else:
 *             for idx in range(len(extSemArray)):             # <<<<<<<<<<<<<<
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]
 *     elif len(extSemArray) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19214, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":19215
 *         else:
 *             for idx in range(len(extSemArray)):
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(extSemArray) == 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
*/
        __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_extSemArray, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19215, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        (__pyx_v_cyextSemArray[__pyx_v_idx]) = ((cudaExternalSemaphore_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_4)->_pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":19209
 *         raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]")
 *     cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL
 *     if len(extSemArray) > 1:             # <<<<<<<<<<<<<<
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*> calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t))
 *         if cyextSemArray is NULL:
*/
    goto __pyx_L8;
  }

  /* "cuda/bindings/runtime.pyx":19216
 *             for idx in range(len(extSemArray)):
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]
 *     elif len(extSemArray) == 1:             # <<<<<<<<<<<<<<
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* cyparamsArray = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19216, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 == 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19217
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]
 *     elif len(extSemArray) == 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* cyparamsArray = NULL
 *     if len(paramsArray) > 1:
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_extSemArray, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_cyextSemArray = ((cudaExternalSemaphore_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)__pyx_t_4)->_pvt_ptr);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":19216
 *             for idx in range(len(extSemArray)):
 *                 cyextSemArray[idx] = <cyruntime.cudaExternalSemaphore_t>(<cudaExternalSemaphore_t>extSemArray[idx])._pvt_ptr[0]
 *     elif len(extSemArray) == 1:             # <<<<<<<<<<<<<<
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* cyparamsArray = NULL
*/
  }
  __pyx_L8:;

  /* "cuda/bindings/runtime.pyx":19218
 *     elif len(extSemArray) == 1:
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* cyparamsArray = NULL             # <<<<<<<<<<<<<<
 *     if len(paramsArray) > 1:
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
*/
  __pyx_v_cyparamsArray = NULL;

  /* "cuda/bindings/runtime.pyx":19219
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* cyparamsArray = NULL
 *     if len(paramsArray) > 1:             # <<<<<<<<<<<<<<
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *         if cyparamsArray is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19219, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19220
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* cyparamsArray = NULL
 *     if len(paramsArray) > 1:
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))             # <<<<<<<<<<<<<<
 *         if cyparamsArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19220, __pyx_L1_error)
    __pyx_v_cyparamsArray = ((struct cudaExternalSemaphoreWaitParams *)calloc(__pyx_t_7, (sizeof(struct cudaExternalSemaphoreWaitParams))));

    /* "cuda/bindings/runtime.pyx":19221
 *     if len(paramsArray) > 1:
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *         if cyparamsArray is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *         for idx in range(len(paramsArray)):
*/
    __pyx_t_1 = (__pyx_v_cyparamsArray == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":19222
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *         if cyparamsArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(paramsArray)):
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreWaitParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
*/
      __pyx_t_8 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19222, __pyx_L1_error)
      __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitParams))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19222, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 19222, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":19221
 *     if len(paramsArray) > 1:
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *         if cyparamsArray is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *         for idx in range(len(paramsArray)):
*/
    }

    /* "cuda/bindings/runtime.pyx":19223
 *         if cyparamsArray is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *         for idx in range(len(paramsArray)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreWaitParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *     elif len(paramsArray) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19223, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":19224
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(paramsArray)) + 'x' + str(sizeof(cyruntime.cudaExternalSemaphoreWaitParams)))
 *         for idx in range(len(paramsArray)):
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreWaitParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))             # <<<<<<<<<<<<<<
 *     elif len(paramsArray) == 1:
 *         cyparamsArray = (<cudaExternalSemaphoreWaitParams>paramsArray[0])._pvt_ptr
*/
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_paramsArray, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19224, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      (void)(memcpy((&(__pyx_v_cyparamsArray[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_t_4)->_pvt_ptr, (sizeof(struct cudaExternalSemaphoreWaitParams))));
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }

    /* "cuda/bindings/runtime.pyx":19219
 *         cyextSemArray = <cyruntime.cudaExternalSemaphore_t*>(<cudaExternalSemaphore_t>extSemArray[0])._pvt_ptr
 *     cdef cyruntime.cudaExternalSemaphoreWaitParams* cyparamsArray = NULL
 *     if len(paramsArray) > 1:             # <<<<<<<<<<<<<<
 *         cyparamsArray = <cyruntime.cudaExternalSemaphoreWaitParams*> calloc(len(paramsArray), sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *         if cyparamsArray is NULL:
*/
    goto __pyx_L12;
  }

  /* "cuda/bindings/runtime.pyx":19225
 *         for idx in range(len(paramsArray)):
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreWaitParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *     elif len(paramsArray) == 1:             # <<<<<<<<<<<<<<
 *         cyparamsArray = (<cudaExternalSemaphoreWaitParams>paramsArray[0])._pvt_ptr
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19225, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 == 1);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19226
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreWaitParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *     elif len(paramsArray) == 1:
 *         cyparamsArray = (<cudaExternalSemaphoreWaitParams>paramsArray[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_paramsArray, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)__pyx_t_4)->_pvt_ptr;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_cyparamsArray = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":19225
 *         for idx in range(len(paramsArray)):
 *             string.memcpy(&cyparamsArray[idx], (<cudaExternalSemaphoreWaitParams>paramsArray[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams))
 *     elif len(paramsArray) == 1:             # <<<<<<<<<<<<<<
 *         cyparamsArray = (<cudaExternalSemaphoreWaitParams>paramsArray[0])._pvt_ptr
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
*/
  }
  __pyx_L12:;

  /* "cuda/bindings/runtime.pyx":19227
 *     elif len(paramsArray) == 1:
 *         cyparamsArray = (<cudaExternalSemaphoreWaitParams>paramsArray[0])._pvt_ptr
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))             # <<<<<<<<<<<<<<
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19227, __pyx_L1_error)
  __pyx_t_1 = (__pyx_v_numExtSems > __pyx_t_7);
  if (unlikely(__pyx_t_1)) {
    __pyx_t_3 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19227, __pyx_L1_error)
    __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numExtSems); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((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_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19227, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 19227, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":19228
 *         cyparamsArray = (<cudaExternalSemaphoreWaitParams>paramsArray[0])._pvt_ptr
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaWaitExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19228, __pyx_L1_error)
  __pyx_t_1 = (__pyx_v_numExtSems > __pyx_t_7);
  if (unlikely(__pyx_t_1)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19228, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 19228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numExtSems); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 19228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19228, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 19228, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":19229
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaWaitExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19230
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
 *     with nogil:
 *         err = cyruntime.cudaWaitExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)             # <<<<<<<<<<<<<<
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
 *         free(cyextSemArray)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaWaitExternalSemaphoresAsync(__pyx_v_cyextSemArray, __pyx_v_cyparamsArray, __pyx_v_numExtSems, __pyx_v_cystream); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19230, __pyx_L19_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":19229
 *     if numExtSems > len(extSemArray): raise RuntimeError("List is too small: " + str(len(extSemArray)) + " < " + str(numExtSems))
 *     if numExtSems > len(paramsArray): raise RuntimeError("List is too small: " + str(len(paramsArray)) + " < " + str(numExtSems))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaWaitExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L20;
        }
        __pyx_L19_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L20:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19231
 *     with nogil:
 *         err = cyruntime.cudaWaitExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_extSemArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19231, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L22_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyextSemArray != NULL);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L22_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19232
 *         err = cyruntime.cudaWaitExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
 *         free(cyextSemArray)             # <<<<<<<<<<<<<<
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
 *         free(cyparamsArray)
*/
    free(__pyx_v_cyextSemArray);

    /* "cuda/bindings/runtime.pyx":19231
 *     with nogil:
 *         err = cyruntime.cudaWaitExternalSemaphoresAsync(cyextSemArray, cyparamsArray, numExtSems, cystream)
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":19233
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyparamsArray)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_paramsArray); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 19233, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L25_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyparamsArray != NULL);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L25_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19234
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
 *         free(cyparamsArray)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cyparamsArray);

    /* "cuda/bindings/runtime.pyx":19233
 *     if len(extSemArray) > 1 and cyextSemArray is not NULL:
 *         free(cyextSemArray)
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyparamsArray)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":19235
 *     if len(paramsArray) > 1 and cyparamsArray is not NULL:
 *         free(cyparamsArray)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 19235, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19111
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreWaitParams] | list[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream):
 *     """ Waits on a set of external semaphore objects.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaWaitExternalSemaphoresAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_2generator96);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_31cudaWaitExternalSemaphoresAsync_5generator97);
  __Pyx_XDECREF(__pyx_v_extSemArray);
  __Pyx_XDECREF(__pyx_v_paramsArray);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19237
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyExternalSemaphore(extSem):
 *     """ Destroys an external semaphore.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_159cudaDestroyExternalSemaphore(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_7runtime_158cudaDestroyExternalSemaphore, "cudaDestroyExternalSemaphore(extSem)\n\nDestroys an external semaphore.\n\nDestroys an external semaphore object and releases any references to\nthe underlying resource. Any outstanding signals or waits must have\ncompleted before the semaphore is destroyed.\n\nParameters\n----------\nextSem : :py:obj:`~.cudaExternalSemaphore_t`\n    External semaphore to be destroyed\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_159cudaDestroyExternalSemaphore = {"cudaDestroyExternalSemaphore", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_159cudaDestroyExternalSemaphore, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_158cudaDestroyExternalSemaphore};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_159cudaDestroyExternalSemaphore(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_extSem = 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("cudaDestroyExternalSemaphore (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_extSem,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, 19237, __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, 19237, __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, "cudaDestroyExternalSemaphore", 0) < (0)) __PYX_ERR(0, 19237, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDestroyExternalSemaphore", 1, 1, 1, i); __PYX_ERR(0, 19237, __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, 19237, __pyx_L3_error)
    }
    __pyx_v_extSem = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDestroyExternalSemaphore", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 19237, __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.runtime.cudaDestroyExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_158cudaDestroyExternalSemaphore(__pyx_self, __pyx_v_extSem);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_158cudaDestroyExternalSemaphore(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_extSem) {
  cudaExternalSemaphore_t __pyx_v_cyextSem;
  PyObject *__pyx_v_pextSem = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDestroyExternalSemaphore", 0);

  /* "cuda/bindings/runtime.pyx":19260
 *     """
 *     cdef cyruntime.cudaExternalSemaphore_t cyextSem
 *     if extSem is None:             # <<<<<<<<<<<<<<
 *         pextSem = 0
 *     elif isinstance(extSem, (cudaExternalSemaphore_t,)):
*/
  __pyx_t_1 = (__pyx_v_extSem == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19261
 *     cdef cyruntime.cudaExternalSemaphore_t cyextSem
 *     if extSem is None:
 *         pextSem = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(extSem, (cudaExternalSemaphore_t,)):
 *         pextSem = int(extSem)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pextSem = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":19260
 *     """
 *     cdef cyruntime.cudaExternalSemaphore_t cyextSem
 *     if extSem is None:             # <<<<<<<<<<<<<<
 *         pextSem = 0
 *     elif isinstance(extSem, (cudaExternalSemaphore_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":19262
 *     if extSem is None:
 *         pextSem = 0
 *     elif isinstance(extSem, (cudaExternalSemaphore_t,)):             # <<<<<<<<<<<<<<
 *         pextSem = int(extSem)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_extSem, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19263
 *         pextSem = 0
 *     elif isinstance(extSem, (cudaExternalSemaphore_t,)):
 *         pextSem = int(extSem)             # <<<<<<<<<<<<<<
 *     else:
 *         pextSem = int(cudaExternalSemaphore_t(extSem))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_extSem); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pextSem = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":19262
 *     if extSem is None:
 *         pextSem = 0
 *     elif isinstance(extSem, (cudaExternalSemaphore_t,)):             # <<<<<<<<<<<<<<
 *         pextSem = int(extSem)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":19265
 *         pextSem = int(extSem)
 *     else:
 *         pextSem = int(cudaExternalSemaphore_t(extSem))             # <<<<<<<<<<<<<<
 *     cyextSem = <cyruntime.cudaExternalSemaphore_t><void_ptr>pextSem
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_extSem};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19265, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pextSem = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":19266
 *     else:
 *         pextSem = int(cudaExternalSemaphore_t(extSem))
 *     cyextSem = <cyruntime.cudaExternalSemaphore_t><void_ptr>pextSem             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDestroyExternalSemaphore(cyextSem)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pextSem); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19266, __pyx_L1_error)
  __pyx_v_cyextSem = ((cudaExternalSemaphore_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":19267
 *         pextSem = int(cudaExternalSemaphore_t(extSem))
 *     cyextSem = <cyruntime.cudaExternalSemaphore_t><void_ptr>pextSem
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDestroyExternalSemaphore(cyextSem)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19268
 *     cyextSem = <cyruntime.cudaExternalSemaphore_t><void_ptr>pextSem
 *     with nogil:
 *         err = cyruntime.cudaDestroyExternalSemaphore(cyextSem)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyExternalSemaphore(__pyx_v_cyextSem); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19268, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":19267
 *         pextSem = int(cudaExternalSemaphore_t(extSem))
 *     cyextSem = <cyruntime.cudaExternalSemaphore_t><void_ptr>pextSem
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDestroyExternalSemaphore(cyextSem)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19269
 *     with nogil:
 *         err = cyruntime.cudaDestroyExternalSemaphore(cyextSem)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 19269, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19237
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyExternalSemaphore(extSem):
 *     """ Destroys an external semaphore.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDestroyExternalSemaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pextSem);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19271
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache):
 *     """ Sets the preferred cache configuration for a device function.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_161cudaFuncSetCacheConfig(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_7runtime_160cudaFuncSetCacheConfig, "cudaFuncSetCacheConfig(func, cacheConfig: cudaFuncCache)\n\nSets the preferred cache configuration for a device function.\n\nOn devices where the L1 cache and shared memory use the same hardware\nresources, this sets through `cacheConfig` the preferred cache\nconfiguration for the function specified via `func`. This is only a\npreference. The runtime will use the requested configuration if\npossible, but it is free to choose a different configuration if\nrequired to execute `func`.\n\n`func` is a device function symbol and must be declared as a `None`\nfunction. If the specified function does not exist, then\n:py:obj:`~.cudaErrorInvalidDeviceFunction` is returned. For templated\nfunctions, pass the function symbol as follows:\nfunc_name<template_arg_0,...,template_arg_N>\n\nThis setting does nothing on devices where the size of the L1 cache and\nshared memory are fixed.\n\nLaunching a kernel with a different preference than the most recent\npreference setting may insert a device-side synchronization point.\n\nThe supported cache configurations are:\n\n- :py:obj:`~.cudaFuncCachePreferNone`: no preference for shared memory\n  or L1 (default)\n\n- :py:obj:`~.cudaFuncCachePreferShared`: prefer larger shared memory\n  and smaller L1 cache\n\n- :py:obj:`~.cudaFuncCachePreferL1`: prefer larger L1 cache and smaller\n  shared memory\n\n- :py:obj:`~.cudaFuncCachePreferEqual`: prefer equal size L1 cache and\n  shared memory\n\nParameters\n----------\nfunc : Any\n    Device function symbol\ncacheConfig : :py:obj:`~.cudaFuncCache`\n    Requested cache configuration\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`2\n\nSee Also\n--------\ncudaFuncSetCacheConfig (C++ API), :py:obj:`~.cudaFuncGetAttributes (C API)`, :py:obj:`~.cudaLaunchKernel (C API)`, :py:obj:`~.cuFuncSetCacheConfig`\n\nNotes\n-----\nThis API does not accept a :py:obj:`~.cudaKernel_t` casted as void*. If cache config modification is required for a :py:obj:`~"".cudaKernel_t` (or a global function), it can be replaced with a call to :py:obj:`~.cudaFuncSetAttributes` with the attribute :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout` to specify a more granular L1 cache and shared memory split configuration.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_161cudaFuncSetCacheConfig = {"cudaFuncSetCacheConfig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_161cudaFuncSetCacheConfig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_160cudaFuncSetCacheConfig};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_161cudaFuncSetCacheConfig(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_func = 0;
  PyObject *__pyx_v_cacheConfig = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaFuncSetCacheConfig (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_func_2,&__pyx_mstate_global->__pyx_n_u_cacheConfig,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, 19271, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19271, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19271, __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, "cudaFuncSetCacheConfig", 0) < (0)) __PYX_ERR(0, 19271, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFuncSetCacheConfig", 1, 2, 2, i); __PYX_ERR(0, 19271, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 19271, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19271, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
    __pyx_v_cacheConfig = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFuncSetCacheConfig", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 19271, __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.runtime.cudaFuncSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_cacheConfig) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "cacheConfig"); __PYX_ERR(0, 19272, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_160cudaFuncSetCacheConfig(__pyx_self, __pyx_v_func, __pyx_v_cacheConfig);

  /* 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_7runtime_160cudaFuncSetCacheConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_cacheConfig) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyfunc = NULL;
  void *__pyx_v_cyfunc_ptr;
  enum cudaFuncCache __pyx_v_cycacheConfig;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  enum cudaFuncCache __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFuncSetCacheConfig", 0);

  /* "cuda/bindings/runtime.pyx":19328
 *     This API does not accept a :py:obj:`~.cudaKernel_t` casted as void*. If cache config modification is required for a :py:obj:`~.cudaKernel_t` (or a global function), it can be replaced with a call to :py:obj:`~.cudaFuncSetAttributes` with the attribute :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout` to specify a more granular L1 cache and shared memory split configuration.
 *     """
 *     cyfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19328, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":19329
 *     """
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19329, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyfunc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":19330
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFuncSetCacheConfig(cyfunc_ptr, cycacheConfig)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cacheConfig, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = ((enum cudaFuncCache)__Pyx_PyLong_As_enum__cudaFuncCache(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19330, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cycacheConfig = __pyx_t_5;

  /* "cuda/bindings/runtime.pyx":19331
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFuncSetCacheConfig(cyfunc_ptr, cycacheConfig)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19332
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value
 *     with nogil:
 *         err = cyruntime.cudaFuncSetCacheConfig(cyfunc_ptr, cycacheConfig)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetCacheConfig(__pyx_v_cyfunc_ptr, __pyx_v_cycacheConfig); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19332, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":19331
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaFuncCache cycacheConfig = cacheConfig.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFuncSetCacheConfig(cyfunc_ptr, cycacheConfig)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19333
 *     with nogil:
 *         err = cyruntime.cudaFuncSetCacheConfig(cyfunc_ptr, cycacheConfig)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 19333, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19271
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache):
 *     """ Sets the preferred cache configuration for a device function.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncSetCacheConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyfunc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19335
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncGetAttributes(func):
 *     """ Find out attributes for a given function.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_163cudaFuncGetAttributes(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_7runtime_162cudaFuncGetAttributes, "cudaFuncGetAttributes(func)\n\nFind out attributes for a given function.\n\nThis function obtains the attributes of a function specified via\n`func`. `func` is a device function symbol and must be declared as a\n`None` function. The fetched attributes are placed in `attr`. If the\nspecified function does not exist, then it is assumed to be a\n:py:obj:`~.cudaKernel_t` and used as is. For templated functions, pass\nthe function symbol as follows:\nfunc_name<template_arg_0,...,template_arg_N>\n\nNote that some function attributes such as\n:py:obj:`~.maxThreadsPerBlock` may vary based on the device that is\ncurrently being used.\n\nParameters\n----------\nfunc : Any\n    Device function symbol\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`2\nattr : :py:obj:`~.cudaFuncAttributes`\n    Return pointer to function's attributes\n\nSee Also\n--------\n:py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncGetAttributes (C++ API), :py:obj:`~.cudaLaunchKernel (C API)`, :py:obj:`~.cuFuncGetAttribute`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_163cudaFuncGetAttributes = {"cudaFuncGetAttributes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_163cudaFuncGetAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_162cudaFuncGetAttributes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_163cudaFuncGetAttributes(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_func = 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("cudaFuncGetAttributes (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_func_2,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, 19335, __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, 19335, __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, "cudaFuncGetAttributes", 0) < (0)) __PYX_ERR(0, 19335, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFuncGetAttributes", 1, 1, 1, i); __PYX_ERR(0, 19335, __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, 19335, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFuncGetAttributes", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 19335, __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.runtime.cudaFuncGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_162cudaFuncGetAttributes(__pyx_self, __pyx_v_func);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_162cudaFuncGetAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *__pyx_v_attr = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyfunc = NULL;
  void *__pyx_v_cyfunc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFuncGetAttributes", 0);

  /* "cuda/bindings/runtime.pyx":19367
 *     :py:obj:`~.cudaFuncSetCacheConfig (C API)`, cudaFuncGetAttributes (C++ API), :py:obj:`~.cudaLaunchKernel (C API)`, :py:obj:`~.cuFuncGetAttribute`
 *     """
 *     cdef cudaFuncAttributes attr = cudaFuncAttributes()             # <<<<<<<<<<<<<<
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19367, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_attr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":19368
 *     """
 *     cdef cudaFuncAttributes attr = cudaFuncAttributes()
 *     cyfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19368, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":19369
 *     cdef cudaFuncAttributes attr = cudaFuncAttributes()
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFuncGetAttributes(<cyruntime.cudaFuncAttributes*>attr._pvt_ptr, cyfunc_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19369, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyfunc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":19370
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFuncGetAttributes(<cyruntime.cudaFuncAttributes*>attr._pvt_ptr, cyfunc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19371
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:
 *         err = cyruntime.cudaFuncGetAttributes(<cyruntime.cudaFuncAttributes*>attr._pvt_ptr, cyfunc_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFuncGetAttributes(((struct cudaFuncAttributes *)__pyx_v_attr->_pvt_ptr), __pyx_v_cyfunc_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19371, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":19370
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFuncGetAttributes(<cyruntime.cudaFuncAttributes*>attr._pvt_ptr, cyfunc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19372
 *     with nogil:
 *         err = cyruntime.cudaFuncGetAttributes(<cyruntime.cudaFuncAttributes*>attr._pvt_ptr, cyfunc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], attr)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":19373
 *         err = cyruntime.cudaFuncGetAttributes(<cyruntime.cudaFuncAttributes*>attr._pvt_ptr, cyfunc_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], attr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 19373, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 19373, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":19372
 *     with nogil:
 *         err = cyruntime.cudaFuncGetAttributes(<cyruntime.cudaFuncAttributes*>attr._pvt_ptr, cyfunc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], attr)
*/
  }

  /* "cuda/bindings/runtime.pyx":19374
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], attr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 19374, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_attr);
  __Pyx_GIVEREF((PyObject *)__pyx_v_attr);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_attr)) != (0)) __PYX_ERR(0, 19374, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19335
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncGetAttributes(func):
 *     """ Find out attributes for a given function.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_attr);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyfunc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19376
 *     return (_dict_cudaError_t[err], attr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetAttribute(func, attr not None : cudaFuncAttribute, int value):
 *     """ Set attributes for a given function.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_165cudaFuncSetAttribute(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_7runtime_164cudaFuncSetAttribute, "cudaFuncSetAttribute(func, attr: cudaFuncAttribute, int value)\n\nSet attributes for a given function.\n\nThis function sets the attributes of a function specified via `func`.\nThe parameter `func` must be a pointer to a function that executes on\nthe device. The parameter specified by `func` must be declared as a\n`None` function. The enumeration defined by `attr` is set to the value\ndefined by `value`. If the specified function does not exist, then it\nis assumed to be a :py:obj:`~.cudaKernel_t` and used as is. If the\nspecified attribute cannot be written, or if the value is incorrect,\nthen :py:obj:`~.cudaErrorInvalidValue` is returned.\n\nValid values for `attr` are:\n\n- :py:obj:`~.cudaFuncAttributeMaxDynamicSharedMemorySize` - The\n  requested maximum size in bytes of dynamically-allocated shared\n  memory. The sum of this value and the function attribute\n  :py:obj:`~.sharedSizeBytes` cannot exceed the device attribute\n  :py:obj:`~.cudaDevAttrMaxSharedMemoryPerBlockOptin`. The maximal size\n  of requestable dynamic shared memory may differ by GPU architecture.\n\n- :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout` - On\n  devices where the L1 cache and shared memory use the same hardware\n  resources, this sets the shared memory carveout preference, in\n  percent of the total shared memory. See\n  :py:obj:`~.cudaDevAttrMaxSharedMemoryPerMultiprocessor`. This is only\n  a hint, and the driver can choose a different ratio if required to\n  execute the function.\n\n- :py:obj:`~.cudaFuncAttributeRequiredClusterWidth`: The required\n  cluster width in blocks. The width, height, and depth values must\n  either all be 0 or all be positive. The validity of the cluster\n  dimensions is checked at launch time. If the value is set during\n  compile time, it cannot be set at runtime. Setting it at runtime will\n  return cudaErrorNotPermitted.\n\n- :py:obj:`~.cudaFuncAttributeRequiredClusterHeight`: The required\n  cluster height in blocks. The width, height, ""and depth values must\n  either all be 0 or all be positive. The validity of the cluster\n  dimensions is checked at launch time. If the value is set during\n  compile time, it cannot be set at runtime. Setting it at runtime will\n  return cudaErrorNotPermitted.\n\n- :py:obj:`~.cudaFuncAttributeRequiredClusterDepth`: The required\n  cluster depth in blocks. The width, height, and depth values must\n  either all be 0 or all be positive. The validity of the cluster\n  dimensions is checked at launch time. If the value is set during\n  compile time, it cannot be set at runtime. Setting it at runtime will\n  return cudaErrorNotPermitted.\n\n- :py:obj:`~.cudaFuncAttributeNonPortableClusterSizeAllowed`: Indicates\n  whether the function can be launched with non-portable cluster size.\n  1 is allowed, 0 is disallowed.\n\n- :py:obj:`~.cudaFuncAttributeClusterSchedulingPolicyPreference`: The\n  block scheduling policy of a function. The value type is\n  cudaClusterSchedulingPolicy.\n\ncudaLaunchKernel (C++ API), cudaFuncSetCacheConfig (C++ API),\n:py:obj:`~.cudaFuncGetAttributes (C API)`,\n\nParameters\n----------\nfunc : Any\n    Function to get attributes of\nattr : :py:obj:`~.cudaFuncAttribute`\n    Attribute to set\nvalue : int\n    Value to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_165cudaFuncSetAttribute = {"cudaFuncSetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_165cudaFuncSetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_164cudaFuncSetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_165cudaFuncSetAttribute(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_func = 0;
  PyObject *__pyx_v_attr = 0;
  int __pyx_v_value;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaFuncSetAttribute (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_func_2,&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_value,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, 19376, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19376, __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, "cudaFuncSetAttribute", 0) < (0)) __PYX_ERR(0, 19376, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFuncSetAttribute", 1, 3, 3, i); __PYX_ERR(0, 19376, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 19376, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19376, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19376, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
    __pyx_v_attr = values[1];
    __pyx_v_value = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19377, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFuncSetAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 19376, __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.runtime.cudaFuncSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 19377, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_164cudaFuncSetAttribute(__pyx_self, __pyx_v_func, __pyx_v_attr, __pyx_v_value);

  /* 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_7runtime_164cudaFuncSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_attr, int __pyx_v_value) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyfunc = NULL;
  void *__pyx_v_cyfunc_ptr;
  enum cudaFuncAttribute __pyx_v_cyattr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  enum cudaFuncAttribute __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFuncSetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":19452
 *         :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`
 *     """
 *     cyfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19452, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":19453
 *     """
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyfunc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":19454
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFuncSetAttribute(cyfunc_ptr, cyattr, value)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = ((enum cudaFuncAttribute)__Pyx_PyLong_As_enum__cudaFuncAttribute(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19454, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyattr = __pyx_t_5;

  /* "cuda/bindings/runtime.pyx":19455
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFuncSetAttribute(cyfunc_ptr, cyattr, value)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19456
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
 *     with nogil:
 *         err = cyruntime.cudaFuncSetAttribute(cyfunc_ptr, cyattr, value)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetAttribute(__pyx_v_cyfunc_ptr, __pyx_v_cyattr, __pyx_v_value); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19456, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":19455
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFuncSetAttribute(cyfunc_ptr, cyattr, value)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19457
 *     with nogil:
 *         err = cyruntime.cudaFuncSetAttribute(cyfunc_ptr, cyattr, value)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * ctypedef struct cudaStreamHostCallbackData_st:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 19457, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19376
 *     return (_dict_cudaError_t[err], attr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetAttribute(func, attr not None : cudaFuncAttribute, int value):
 *     """ Set attributes for a given function.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyfunc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19465
 * ctypedef cudaStreamHostCallbackData_st cudaStreamHostCallbackData
 * 
 * @cython.show_performance_hints(False)             # <<<<<<<<<<<<<<
 * cdef void cudaStreamRtHostCallbackWrapper(void *data) nogil:
 *     cdef cudaStreamHostCallbackData *cbData = <cudaStreamHostCallbackData *>data
*/

static void __pyx_f_4cuda_8bindings_7runtime_cudaStreamRtHostCallbackWrapper(void *__pyx_v_data) {
  __pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData *__pyx_v_cbData;

  /* "cuda/bindings/runtime.pyx":19467
 * @cython.show_performance_hints(False)
 * cdef void cudaStreamRtHostCallbackWrapper(void *data) nogil:
 *     cdef cudaStreamHostCallbackData *cbData = <cudaStreamHostCallbackData *>data             # <<<<<<<<<<<<<<
 *     with gil:
 *         cbData.callback(cbData.userData)
*/
  __pyx_v_cbData = ((__pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData *)__pyx_v_data);

  /* "cuda/bindings/runtime.pyx":19468
 * cdef void cudaStreamRtHostCallbackWrapper(void *data) nogil:
 *     cdef cudaStreamHostCallbackData *cbData = <cudaStreamHostCallbackData *>data
 *     with gil:             # <<<<<<<<<<<<<<
 *         cbData.callback(cbData.userData)
 *     free(cbData)
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19469
 *     cdef cudaStreamHostCallbackData *cbData = <cudaStreamHostCallbackData *>data
 *     with gil:
 *         cbData.callback(cbData.userData)             # <<<<<<<<<<<<<<
 *     free(cbData)
 * 
*/
        __pyx_v_cbData->callback(__pyx_v_cbData->userData);
      }

      /* "cuda/bindings/runtime.pyx":19468
 * cdef void cudaStreamRtHostCallbackWrapper(void *data) nogil:
 *     cdef cudaStreamHostCallbackData *cbData = <cudaStreamHostCallbackData *>data
 *     with gil:             # <<<<<<<<<<<<<<
 *         cbData.callback(cbData.userData)
 *     free(cbData)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19470
 *     with gil:
 *         cbData.callback(cbData.userData)
 *     free(cbData)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  free(__pyx_v_cbData);

  /* "cuda/bindings/runtime.pyx":19465
 * ctypedef cudaStreamHostCallbackData_st cudaStreamHostCallbackData
 * 
 * @cython.show_performance_hints(False)             # <<<<<<<<<<<<<<
 * cdef void cudaStreamRtHostCallbackWrapper(void *data) nogil:
 *     cdef cudaStreamHostCallbackData *cbData = <cudaStreamHostCallbackData *>data
*/

  /* function exit code */
}

/* "cuda/bindings/runtime.pyx":19472
 *     free(cbData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLaunchHostFunc(stream, fn, userData):
 *     """ Enqueues a host function call in a stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_167cudaLaunchHostFunc(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_7runtime_166cudaLaunchHostFunc, "cudaLaunchHostFunc(stream, fn, userData)\n\nEnqueues a host function call in a stream.\n\nEnqueues a host function to run in a stream. The function will be\ncalled after currently enqueued work and will block work added after\nit.\n\nThe host function must not make any CUDA API calls. Attempting to use a\nCUDA API may result in :py:obj:`~.cudaErrorNotPermitted`, but this is\nnot required. The host function must not perform any synchronization\nthat may depend on outstanding CUDA work not mandated to run earlier.\nHost functions without a mandated order (such as in independent\nstreams) execute in undefined order and may be serialized.\n\nFor the purposes of Unified Memory, execution makes a number of\nguarantees:\n\n- The stream is considered idle for the duration of the function's\n  execution. Thus, for example, the function may always use memory\n  attached to the stream it was enqueued in.\n\n- The start of execution of the function has the same effect as\n  synchronizing an event recorded in the same stream immediately prior\n  to the function. It thus synchronizes streams which have been\n  \"joined\" prior to the function.\n\n- Adding device work to any stream does not have the effect of making\n  the stream active until all preceding host functions and stream\n  callbacks have executed. Thus, for example, a function might use\n  global attached memory even if work has been added to another stream,\n  if the work has been ordered behind the function call with an event.\n\n- Completion of the function does not cause a stream to become active\n  except as described above. The stream will remain idle if no device\n  work follows the function, and will remain idle across consecutive\n  host functions or stream callbacks without device work in between.\n  Thus, for example, stream synchronization can be done by signaling\n  from a host function at the end of the stream.\n\nNote that, in constrast to :py:obj:`~.cuStreamAddCallback`, the\nfunction will not be called"" in the event of an error in the CUDA\ncontext.\n\nParameters\n----------\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to enqueue function call in\nfn : :py:obj:`~.cudaHostFn_t`\n    The function to call once preceding stream operations are complete\nuserData : Any\n    User-specified data to be passed to the function\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n\nSee Also\n--------\n:py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cudaMallocManaged`, :py:obj:`~.cudaStreamAttachMemAsync`, :py:obj:`~.cudaStreamAddCallback`, :py:obj:`~.cuLaunchHostFunc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_167cudaLaunchHostFunc = {"cudaLaunchHostFunc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_167cudaLaunchHostFunc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_166cudaLaunchHostFunc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_167cudaLaunchHostFunc(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_stream = 0;
  PyObject *__pyx_v_fn = 0;
  PyObject *__pyx_v_userData = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLaunchHostFunc (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_stream,&__pyx_mstate_global->__pyx_n_u_fn_2,&__pyx_mstate_global->__pyx_n_u_userData_2,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, 19472, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19472, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19472, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19472, __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, "cudaLaunchHostFunc", 0) < (0)) __PYX_ERR(0, 19472, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLaunchHostFunc", 1, 3, 3, i); __PYX_ERR(0, 19472, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 19472, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19472, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19472, __pyx_L3_error)
    }
    __pyx_v_stream = values[0];
    __pyx_v_fn = values[1];
    __pyx_v_userData = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLaunchHostFunc", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 19472, __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.runtime.cudaLaunchHostFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_166cudaLaunchHostFunc(__pyx_self, __pyx_v_stream, __pyx_v_fn, __pyx_v_userData);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_166cudaLaunchHostFunc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_fn, PyObject *__pyx_v_userData) {
  cudaHostFn_t __pyx_v_cyfn;
  PyObject *__pyx_v_pfn = NULL;
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyuserData = NULL;
  void *__pyx_v_cyuserData_ptr;
  __pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData *__pyx_v_cbData;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  int __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLaunchHostFunc", 0);

  /* "cuda/bindings/runtime.pyx":19535
 *     """
 *     cdef cyruntime.cudaHostFn_t cyfn
 *     if fn is None:             # <<<<<<<<<<<<<<
 *         pfn = 0
 *     elif isinstance(fn, (cudaHostFn_t,)):
*/
  __pyx_t_1 = (__pyx_v_fn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19536
 *     cdef cyruntime.cudaHostFn_t cyfn
 *     if fn is None:
 *         pfn = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(fn, (cudaHostFn_t,)):
 *         pfn = int(fn)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pfn = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":19535
 *     """
 *     cdef cyruntime.cudaHostFn_t cyfn
 *     if fn is None:             # <<<<<<<<<<<<<<
 *         pfn = 0
 *     elif isinstance(fn, (cudaHostFn_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":19537
 *     if fn is None:
 *         pfn = 0
 *     elif isinstance(fn, (cudaHostFn_t,)):             # <<<<<<<<<<<<<<
 *         pfn = int(fn)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_fn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19538
 *         pfn = 0
 *     elif isinstance(fn, (cudaHostFn_t,)):
 *         pfn = int(fn)             # <<<<<<<<<<<<<<
 *     else:
 *         pfn = int(cudaHostFn_t(fn))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_fn); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pfn = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":19537
 *     if fn is None:
 *         pfn = 0
 *     elif isinstance(fn, (cudaHostFn_t,)):             # <<<<<<<<<<<<<<
 *         pfn = int(fn)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":19540
 *         pfn = int(fn)
 *     else:
 *         pfn = int(cudaHostFn_t(fn))             # <<<<<<<<<<<<<<
 *     cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *     cdef cyruntime.cudaStream_t cystream
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_fn};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19540, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pfn = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":19541
 *     else:
 *         pfn = int(cudaHostFn_t(fn))
 *     cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pfn); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19541, __pyx_L1_error)
  __pyx_v_cyfn = ((cudaHostFn_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":19543
 *     cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19544
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":19543
 *     cyfn = <cyruntime.cudaHostFn_t><void_ptr>pfn
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":19545
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_6 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_6;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19546
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19546, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":19545
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":19548
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cyuserData = _HelperInputVoidPtr(userData)
*/
  /*else*/ {
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19548, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_2 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":19549
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19549, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":19550
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cyuserData = _HelperInputVoidPtr(userData)             # <<<<<<<<<<<<<<
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 * 
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_userData};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19550, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_cyuserData = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":19551
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr             # <<<<<<<<<<<<<<
 * 
 *     cdef cudaStreamHostCallbackData *cbData = NULL
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyuserData), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_2); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19551, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_cyuserData_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":19553
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 * 
 *     cdef cudaStreamHostCallbackData *cbData = NULL             # <<<<<<<<<<<<<<
 *     cbData = <cudaStreamHostCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:
*/
  __pyx_v_cbData = NULL;

  /* "cuda/bindings/runtime.pyx":19554
 * 
 *     cdef cudaStreamHostCallbackData *cbData = NULL
 *     cbData = <cudaStreamHostCallbackData *>malloc(sizeof(cbData[0]))             # <<<<<<<<<<<<<<
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
*/
  __pyx_v_cbData = ((__pyx_t_4cuda_8bindings_7runtime_cudaStreamHostCallbackData *)malloc((sizeof((__pyx_v_cbData[0])))));

  /* "cuda/bindings/runtime.pyx":19555
 *     cdef cudaStreamHostCallbackData *cbData = NULL
 *     cbData = <cudaStreamHostCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:             # <<<<<<<<<<<<<<
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
 *     cbData.callback = cyfn
*/
  __pyx_t_1 = (__pyx_v_cbData == NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19556
 *     cbData = <cudaStreamHostCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation,)             # <<<<<<<<<<<<<<
 *     cbData.callback = cyfn
 *     cbData.userData = cyuserData_ptr
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_cudaErrorMemoryAllocation); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 19556, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":19555
 *     cdef cudaStreamHostCallbackData *cbData = NULL
 *     cbData = <cudaStreamHostCallbackData *>malloc(sizeof(cbData[0]))
 *     if cbData == NULL:             # <<<<<<<<<<<<<<
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
 *     cbData.callback = cyfn
*/
  }

  /* "cuda/bindings/runtime.pyx":19557
 *     if cbData == NULL:
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
 *     cbData.callback = cyfn             # <<<<<<<<<<<<<<
 *     cbData.userData = cyuserData_ptr
 * 
*/
  __pyx_v_cbData->callback = __pyx_v_cyfn;

  /* "cuda/bindings/runtime.pyx":19558
 *         return (cudaError_t.cudaErrorMemoryAllocation,)
 *     cbData.callback = cyfn
 *     cbData.userData = cyuserData_ptr             # <<<<<<<<<<<<<<
 * 
 *     with nogil:
*/
  __pyx_v_cbData->userData = __pyx_v_cyuserData_ptr;

  /* "cuda/bindings/runtime.pyx":19560
 *     cbData.userData = cyuserData_ptr
 * 
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLaunchHostFunc(cystream, <cyruntime.cudaHostFn_t>cudaStreamRtHostCallbackWrapper, <void *>cbData)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19561
 * 
 *     with nogil:
 *         err = cyruntime.cudaLaunchHostFunc(cystream, <cyruntime.cudaHostFn_t>cudaStreamRtHostCallbackWrapper, <void *>cbData)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         free(cbData)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLaunchHostFunc(__pyx_v_cystream, ((cudaHostFn_t)__pyx_f_4cuda_8bindings_7runtime_cudaStreamRtHostCallbackWrapper), ((void *)__pyx_v_cbData)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19561, __pyx_L9_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":19560
 *     cbData.userData = cyuserData_ptr
 * 
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLaunchHostFunc(cystream, <cyruntime.cudaHostFn_t>cudaStreamRtHostCallbackWrapper, <void *>cbData)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L10;
        }
        __pyx_L9_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L10:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19562
 *     with nogil:
 *         err = cyruntime.cudaLaunchHostFunc(cystream, <cyruntime.cudaHostFn_t>cudaStreamRtHostCallbackWrapper, <void *>cbData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         free(cbData)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":19563
 *         err = cyruntime.cudaLaunchHostFunc(cystream, <cyruntime.cudaHostFn_t>cudaStreamRtHostCallbackWrapper, <void *>cbData)
 *     if err != cyruntime.cudaSuccess:
 *         free(cbData)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cbData);

    /* "cuda/bindings/runtime.pyx":19562
 *     with nogil:
 *         err = cyruntime.cudaLaunchHostFunc(cystream, <cyruntime.cudaHostFn_t>cudaStreamRtHostCallbackWrapper, <void *>cbData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         free(cbData)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":19564
 *     if err != cyruntime.cudaSuccess:
 *         free(cbData)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 19564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 19564, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19472
 *     free(cbData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLaunchHostFunc(stream, fn, userData):
 *     """ Enqueues a host function call in a stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLaunchHostFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pfn);
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyuserData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19566
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig):
 *     """ Sets the shared memory configuration for a device function.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_169cudaFuncSetSharedMemConfig(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_7runtime_168cudaFuncSetSharedMemConfig, "cudaFuncSetSharedMemConfig(func, config: cudaSharedMemConfig)\n\nSets the shared memory configuration for a device function.\n\n[Deprecated]\n\nOn devices with configurable shared memory banks, this function will\nforce all subsequent launches of the specified device function to have\nthe given shared memory bank size configuration. On any given launch of\nthe function, the shared memory configuration of the device will be\ntemporarily changed if needed to suit the function's preferred\nconfiguration. Changes in shared memory configuration between\nsubsequent launches of functions, may introduce a device side\nsynchronization point.\n\nAny per-function setting of shared memory bank size set via\n:py:obj:`~.cudaFuncSetSharedMemConfig` will override the device wide\nsetting set by :py:obj:`~.cudaDeviceSetSharedMemConfig`.\n\nChanging the shared memory bank size will not increase shared memory\nusage or affect occupancy of kernels, but may have major effects on\nperformance. Larger bank sizes will allow for greater potential\nbandwidth to shared memory, but will change what kinds of accesses to\nshared memory will result in bank conflicts.\n\nThis function will do nothing on devices with fixed shared memory bank\nsize.\n\nFor templated functions, pass the function symbol as follows:\nfunc_name<template_arg_0,...,template_arg_N>\n\nThe supported bank configurations are:\n\n- :py:obj:`~.cudaSharedMemBankSizeDefault`: use the device's shared\n  memory configuration when launching this function.\n\n- :py:obj:`~.cudaSharedMemBankSizeFourByte`: set shared memory bank\n  width to be four bytes natively when launching this function.\n\n- :py:obj:`~.cudaSharedMemBankSizeEightByte`: set shared memory bank\n  width to be eight bytes natively when launching this function.\n\nParameters\n----------\nfunc : Any\n    Device function symbol\nconfig : :py:obj:`~.cudaSharedMemConfig`\n    Requested shared memory configuration\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`"", :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`,2\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceSetSharedMemConfig`, :py:obj:`~.cudaDeviceGetSharedMemConfig`, :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuFuncSetSharedMemConfig`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_169cudaFuncSetSharedMemConfig = {"cudaFuncSetSharedMemConfig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_169cudaFuncSetSharedMemConfig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_168cudaFuncSetSharedMemConfig};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_169cudaFuncSetSharedMemConfig(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_func = 0;
  PyObject *__pyx_v_config = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaFuncSetSharedMemConfig (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_func_2,&__pyx_mstate_global->__pyx_n_u_config,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, 19566, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19566, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19566, __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, "cudaFuncSetSharedMemConfig", 0) < (0)) __PYX_ERR(0, 19566, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFuncSetSharedMemConfig", 1, 2, 2, i); __PYX_ERR(0, 19566, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 19566, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19566, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
    __pyx_v_config = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFuncSetSharedMemConfig", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 19566, __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.runtime.cudaFuncSetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_config) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "config"); __PYX_ERR(0, 19567, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_168cudaFuncSetSharedMemConfig(__pyx_self, __pyx_v_func, __pyx_v_config);

  /* 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_7runtime_168cudaFuncSetSharedMemConfig(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, PyObject *__pyx_v_config) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyfunc = NULL;
  void *__pyx_v_cyfunc_ptr;
  enum cudaSharedMemConfig __pyx_v_cyconfig;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  enum cudaSharedMemConfig __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFuncSetSharedMemConfig", 0);

  /* "cuda/bindings/runtime.pyx":19624
 *     :py:obj:`~.cudaDeviceSetSharedMemConfig`, :py:obj:`~.cudaDeviceGetSharedMemConfig`, :py:obj:`~.cudaDeviceSetCacheConfig`, :py:obj:`~.cudaDeviceGetCacheConfig`, :py:obj:`~.cudaFuncSetCacheConfig`, :py:obj:`~.cuFuncSetSharedMemConfig`
 *     """
 *     cyfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19624, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":19625
 *     """
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19625, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyfunc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":19626
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFuncSetSharedMemConfig(cyfunc_ptr, cyconfig)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = ((enum cudaSharedMemConfig)__Pyx_PyLong_As_enum__cudaSharedMemConfig(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 19626, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyconfig = __pyx_t_5;

  /* "cuda/bindings/runtime.pyx":19627
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFuncSetSharedMemConfig(cyfunc_ptr, cyconfig)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19628
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value
 *     with nogil:
 *         err = cyruntime.cudaFuncSetSharedMemConfig(cyfunc_ptr, cyconfig)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetSharedMemConfig(__pyx_v_cyfunc_ptr, __pyx_v_cyconfig); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19628, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":19627
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     cdef cyruntime.cudaSharedMemConfig cyconfig = config.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFuncSetSharedMemConfig(cyfunc_ptr, cyconfig)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19629
 *     with nogil:
 *         err = cyruntime.cudaFuncSetSharedMemConfig(cyfunc_ptr, cyconfig)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 19629, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19566
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig):
 *     """ Sets the shared memory configuration for a device function.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFuncSetSharedMemConfig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyfunc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19631
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize):
 *     """ Returns occupancy for a device function.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_171cudaOccupancyMaxActiveBlocksPerMultiprocessor(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_7runtime_170cudaOccupancyMaxActiveBlocksPerMultiprocessor, "cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize)\n\nReturns occupancy for a device function.\n\nReturns in `*numBlocks` the maximum number of active blocks per\nstreaming multiprocessor for the device function.\n\nParameters\n----------\nfunc : Any\n    Kernel function for which occupancy is calculated\nblockSize : int\n    Block size the kernel is intended to be launched with\ndynamicSMemSize : size_t\n    Per-block dynamic shared memory usage intended, in bytes\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`,\nnumBlocks : int\n    Returned occupancy\n\nSee Also\n--------\n:py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), cudaOccupancyAvailableDynamicSMemPerBlock (C++ API), :py:obj:`~.cuOccupancyMaxActiveBlocksPerMultiprocessor`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_171cudaOccupancyMaxActiveBlocksPerMultiprocessor = {"cudaOccupancyMaxActiveBlocksPerMultiprocessor", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_171cudaOccupancyMaxActiveBlocksPerMultiprocessor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_170cudaOccupancyMaxActiveBlocksPerMultiprocessor};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_171cudaOccupancyMaxActiveBlocksPerMultiprocessor(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_func = 0;
  int __pyx_v_blockSize;
  size_t __pyx_v_dynamicSMemSize;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaOccupancyMaxActiveBlocksPerMultiprocessor (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_func_2,&__pyx_mstate_global->__pyx_n_u_blockSize,&__pyx_mstate_global->__pyx_n_u_dynamicSMemSize,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, 19631, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19631, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19631, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19631, __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, "cudaOccupancyMaxActiveBlocksPerMultiprocessor", 0) < (0)) __PYX_ERR(0, 19631, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessor", 1, 3, 3, i); __PYX_ERR(0, 19631, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 19631, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19631, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19631, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
    __pyx_v_blockSize = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_blockSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19632, __pyx_L3_error)
    __pyx_v_dynamicSMemSize = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_dynamicSMemSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19632, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessor", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 19631, __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.runtime.cudaOccupancyMaxActiveBlocksPerMultiprocessor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_170cudaOccupancyMaxActiveBlocksPerMultiprocessor(__pyx_self, __pyx_v_func, __pyx_v_blockSize, __pyx_v_dynamicSMemSize);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_170cudaOccupancyMaxActiveBlocksPerMultiprocessor(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, int __pyx_v_blockSize, size_t __pyx_v_dynamicSMemSize) {
  int __pyx_v_numBlocks;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyfunc = NULL;
  void *__pyx_v_cyfunc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaOccupancyMaxActiveBlocksPerMultiprocessor", 0);

  /* "cuda/bindings/runtime.pyx":19658
 *     :py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), cudaOccupancyAvailableDynamicSMemPerBlock (C++ API), :py:obj:`~.cuOccupancyMaxActiveBlocksPerMultiprocessor`
 *     """
 *     cdef int numBlocks = 0             # <<<<<<<<<<<<<<
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
*/
  __pyx_v_numBlocks = 0;

  /* "cuda/bindings/runtime.pyx":19659
 *     """
 *     cdef int numBlocks = 0
 *     cyfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19659, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":19660
 *     cdef int numBlocks = 0
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19660, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyfunc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":19661
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19662
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyMaxActiveBlocksPerMultiprocessor((&__pyx_v_numBlocks), __pyx_v_cyfunc_ptr, __pyx_v_blockSize, __pyx_v_dynamicSMemSize); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19662, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":19661
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19663
 *     with nogil:
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], numBlocks)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":19664
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], numBlocks)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 19664, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 19664, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":19663
 *     with nogil:
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], numBlocks)
*/
  }

  /* "cuda/bindings/runtime.pyx":19665
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], numBlocks)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_v_numBlocks); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 19665, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 19665, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19631
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize):
 *     """ Returns occupancy for a device function.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOccupancyMaxActiveBlocksPerMultiprocessor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyfunc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19667
 *     return (_dict_cudaError_t[err], numBlocks)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize):
 *     """ Returns dynamic shared memory available per block when launching `numBlocks` blocks on SM.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_173cudaOccupancyAvailableDynamicSMemPerBlock(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_7runtime_172cudaOccupancyAvailableDynamicSMemPerBlock, "cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize)\n\nReturns dynamic shared memory available per block when launching `numBlocks` blocks on SM.\n\nReturns in `*dynamicSmemSize` the maximum size of dynamic shared memory\nto allow `numBlocks` blocks per SM.\n\nParameters\n----------\nfunc : Any\n    Kernel function for which occupancy is calculated\nnumBlocks : int\n    Number of blocks to fit on SM\nblockSize : int\n    Size of the block\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`,\ndynamicSmemSize : int\n    Returned maximum dynamic shared memory\n\nSee Also\n--------\n:py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), :py:obj:`~.cudaOccupancyAvailableDynamicSMemPerBlock`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_173cudaOccupancyAvailableDynamicSMemPerBlock = {"cudaOccupancyAvailableDynamicSMemPerBlock", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_173cudaOccupancyAvailableDynamicSMemPerBlock, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_172cudaOccupancyAvailableDynamicSMemPerBlock};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_173cudaOccupancyAvailableDynamicSMemPerBlock(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_func = 0;
  int __pyx_v_numBlocks;
  int __pyx_v_blockSize;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaOccupancyAvailableDynamicSMemPerBlock (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_func_2,&__pyx_mstate_global->__pyx_n_u_numBlocks,&__pyx_mstate_global->__pyx_n_u_blockSize,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, 19667, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19667, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19667, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19667, __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, "cudaOccupancyAvailableDynamicSMemPerBlock", 0) < (0)) __PYX_ERR(0, 19667, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaOccupancyAvailableDynamicSMemPerBlock", 1, 3, 3, i); __PYX_ERR(0, 19667, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 19667, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19667, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19667, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
    __pyx_v_numBlocks = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_numBlocks == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19668, __pyx_L3_error)
    __pyx_v_blockSize = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_blockSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19668, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaOccupancyAvailableDynamicSMemPerBlock", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 19667, __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.runtime.cudaOccupancyAvailableDynamicSMemPerBlock", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_172cudaOccupancyAvailableDynamicSMemPerBlock(__pyx_self, __pyx_v_func, __pyx_v_numBlocks, __pyx_v_blockSize);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_172cudaOccupancyAvailableDynamicSMemPerBlock(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, int __pyx_v_numBlocks, int __pyx_v_blockSize) {
  size_t __pyx_v_dynamicSmemSize;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyfunc = NULL;
  void *__pyx_v_cyfunc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaOccupancyAvailableDynamicSMemPerBlock", 0);

  /* "cuda/bindings/runtime.pyx":19694
 *     :py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), :py:obj:`~.cudaOccupancyAvailableDynamicSMemPerBlock`
 *     """
 *     cdef size_t dynamicSmemSize = 0             # <<<<<<<<<<<<<<
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
*/
  __pyx_v_dynamicSmemSize = 0;

  /* "cuda/bindings/runtime.pyx":19695
 *     """
 *     cdef size_t dynamicSmemSize = 0
 *     cyfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19695, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":19696
 *     cdef size_t dynamicSmemSize = 0
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cyfunc_ptr, numBlocks, blockSize)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19696, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyfunc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":19697
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cyfunc_ptr, numBlocks, blockSize)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19698
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:
 *         err = cyruntime.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cyfunc_ptr, numBlocks, blockSize)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyAvailableDynamicSMemPerBlock((&__pyx_v_dynamicSmemSize), __pyx_v_cyfunc_ptr, __pyx_v_numBlocks, __pyx_v_blockSize); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19698, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":19697
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cyfunc_ptr, numBlocks, blockSize)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19699
 *     with nogil:
 *         err = cyruntime.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cyfunc_ptr, numBlocks, blockSize)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], dynamicSmemSize)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":19700
 *         err = cyruntime.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cyfunc_ptr, numBlocks, blockSize)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], dynamicSmemSize)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 19700, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 19700, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":19699
 *     with nogil:
 *         err = cyruntime.cudaOccupancyAvailableDynamicSMemPerBlock(&dynamicSmemSize, cyfunc_ptr, numBlocks, blockSize)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], dynamicSmemSize)
*/
  }

  /* "cuda/bindings/runtime.pyx":19701
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], dynamicSmemSize)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_FromSize_t(__pyx_v_dynamicSmemSize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 19701, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 19701, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19667
 *     return (_dict_cudaError_t[err], numBlocks)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize):
 *     """ Returns dynamic shared memory available per block when launching `numBlocks` blocks on SM.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOccupancyAvailableDynamicSMemPerBlock", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyfunc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19703
 *     return (_dict_cudaError_t[err], dynamicSmemSize)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, size_t dynamicSMemSize, unsigned int flags):
 *     """ Returns occupancy for a device function with the specified flags.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_175cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(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_7runtime_174cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, size_t dynamicSMemSize, unsigned int flags)\n\nReturns occupancy for a device function with the specified flags.\n\nReturns in `*numBlocks` the maximum number of active blocks per\nstreaming multiprocessor for the device function.\n\nThe `flags` parameter controls how special cases are handled. Valid\nflags include:\n\n- :py:obj:`~.cudaOccupancyDefault`: keeps the default behavior as\n  :py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessor`\n\n- :py:obj:`~.cudaOccupancyDisableCachingOverride`: This flag suppresses\n  the default behavior on platform where global caching affects\n  occupancy. On such platforms, if caching is enabled, but per-block SM\n  resource usage would result in zero occupancy, the occupancy\n  calculator will calculate the occupancy as if caching is disabled.\n  Setting this flag makes the occupancy calculator to return 0 in such\n  cases. More information can be found about this feature in the\n  \"Unified L1/Texture Cache\" section of the Maxwell tuning guide.\n\nParameters\n----------\nfunc : Any\n    Kernel function for which occupancy is calculated\nblockSize : int\n    Block size the kernel is intended to be launched with\ndynamicSMemSize : size_t\n    Per-block dynamic shared memory usage intended, in bytes\nflags : unsigned int\n    Requested behavior for the occupancy calculator\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`,\nnumBlocks : int\n    Returned occupancy\n\nSee Also\n--------\n:py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessor`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), cudaOccupancyAvailableDynamicSMem""PerBlock (C++ API), :py:obj:`~.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_175cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = {"cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_175cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_174cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_175cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(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_func = 0;
  int __pyx_v_blockSize;
  size_t __pyx_v_dynamicSMemSize;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags (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_func_2,&__pyx_mstate_global->__pyx_n_u_blockSize,&__pyx_mstate_global->__pyx_n_u_dynamicSMemSize,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 19703, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 19703, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19703, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19703, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19703, __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, "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 0) < (0)) __PYX_ERR(0, 19703, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 1, 4, 4, i); __PYX_ERR(0, 19703, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 19703, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19703, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 19703, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 19703, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
    __pyx_v_blockSize = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_blockSize == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19704, __pyx_L3_error)
    __pyx_v_dynamicSMemSize = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_dynamicSMemSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19704, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19704, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 19703, __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.runtime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_174cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(__pyx_self, __pyx_v_func, __pyx_v_blockSize, __pyx_v_dynamicSMemSize, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_174cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func, int __pyx_v_blockSize, size_t __pyx_v_dynamicSMemSize, unsigned int __pyx_v_flags) {
  int __pyx_v_numBlocks;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyfunc = NULL;
  void *__pyx_v_cyfunc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", 0);

  /* "cuda/bindings/runtime.pyx":19747
 *     :py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessor`, cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlockSizeWithFlags (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMem (C++ API), cudaOccupancyMaxPotentialBlockSizeVariableSMemWithFlags (C++ API), cudaOccupancyAvailableDynamicSMemPerBlock (C++ API), :py:obj:`~.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags`
 *     """
 *     cdef int numBlocks = 0             # <<<<<<<<<<<<<<
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
*/
  __pyx_v_numBlocks = 0;

  /* "cuda/bindings/runtime.pyx":19748
 *     """
 *     cdef int numBlocks = 0
 *     cyfunc = _HelperInputVoidPtr(func)             # <<<<<<<<<<<<<<
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19748, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyfunc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":19749
 *     cdef int numBlocks = 0
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize, flags)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyfunc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 19749, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyfunc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":19750
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19751
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags((&__pyx_v_numBlocks), __pyx_v_cyfunc_ptr, __pyx_v_blockSize, __pyx_v_dynamicSMemSize, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19751, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":19750
 *     cyfunc = _HelperInputVoidPtr(func)
 *     cdef void* cyfunc_ptr = <void*><void_ptr>cyfunc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19752
 *     with nogil:
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], numBlocks)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":19753
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], numBlocks)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19753, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19753, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19753, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19753, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 19753, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 19753, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":19752
 *     with nogil:
 *         err = cyruntime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(&numBlocks, cyfunc_ptr, blockSize, dynamicSMemSize, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], numBlocks)
*/
  }

  /* "cuda/bindings/runtime.pyx":19754
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], numBlocks)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_v_numBlocks); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 19754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 19754, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 19754, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19703
 *     return (_dict_cudaError_t[err], dynamicSmemSize)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, size_t dynamicSMemSize, unsigned int flags):
 *     """ Returns occupancy for a device function with the specified flags.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyfunc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19756
 *     return (_dict_cudaError_t[err], numBlocks)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocManaged(size_t size, unsigned int flags):
 *     """ Allocates memory that will be automatically managed by the Unified Memory system.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_177cudaMallocManaged(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_7runtime_176cudaMallocManaged, "cudaMallocManaged(size_t size, unsigned int flags)\n\nAllocates memory that will be automatically managed by the Unified Memory system.\n\nAllocates `size` bytes of managed memory on the device and returns in\n`*devPtr` a pointer to the allocated memory. If the device doesn't\nsupport allocating managed memory, :py:obj:`~.cudaErrorNotSupported` is\nreturned. Support for managed memory can be queried using the device\nattribute :py:obj:`~.cudaDevAttrManagedMemory`. The allocated memory is\nsuitably aligned for any kind of variable. The memory is not cleared.\nIf `size` is 0, :py:obj:`~.cudaMallocManaged` returns\n:py:obj:`~.cudaErrorInvalidValue`. The pointer is valid on the CPU and\non all GPUs in the system that support managed memory. All accesses to\nthis pointer must obey the Unified Memory programming model.\n\n`flags` specifies the default stream association for this allocation.\n`flags` must be one of :py:obj:`~.cudaMemAttachGlobal` or\n:py:obj:`~.cudaMemAttachHost`. The default value for `flags` is\n:py:obj:`~.cudaMemAttachGlobal`. If :py:obj:`~.cudaMemAttachGlobal` is\nspecified, then this memory is accessible from any stream on any\ndevice. If :py:obj:`~.cudaMemAttachHost` is specified, then the\nallocation should not be accessed from devices that have a zero value\nfor the device attribute\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess`; an explicit call to\n:py:obj:`~.cudaStreamAttachMemAsync` will be required to enable access\non such devices.\n\nIf the association is later changed via\n:py:obj:`~.cudaStreamAttachMemAsync` to a single stream, the default\nassociation, as specifed during :py:obj:`~.cudaMallocManaged`, is\nrestored when that stream is destroyed. For managed variables, the\ndefault association is always :py:obj:`~.cudaMemAttachGlobal`. Note\nthat destroying a stream is an asynchronous operation, and as a result,\nthe change to default association won't happen until all work in the\nstream has completed.\n\nMemory allocated with :py:obj:`~.""cudaMallocManaged` should be released\nwith :py:obj:`~.cudaFree`.\n\nDevice memory oversubscription is possible for GPUs that have a non-\nzero value for the device attribute\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess`. Managed memory on such\nGPUs may be evicted from device memory to host memory at any time by\nthe Unified Memory driver in order to make room for other allocations.\n\nIn a system where all GPUs have a non-zero value for the device\nattribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess`, managed\nmemory may not be populated when this API returns and instead may be\npopulated on access. In such systems, managed memory can migrate to any\nprocessor's memory at any time. The Unified Memory driver will employ\nheuristics to maintain data locality and prevent excessive page faults\nto the extent possible. The application can also guide the driver about\nmemory usage patterns via :py:obj:`~.cudaMemAdvise`. The application\ncan also explicitly migrate memory to a desired processor's memory via\n:py:obj:`~.cudaMemPrefetchAsync`.\n\nIn a multi-GPU system where all of the GPUs have a zero value for the\ndevice attribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess` and all\nthe GPUs have peer-to-peer support with each other, the physical\nstorage for managed memory is created on the GPU which is active at the\ntime :py:obj:`~.cudaMallocManaged` is called. All other GPUs will\nreference the data at reduced bandwidth via peer mappings over the PCIe\nbus. The Unified Memory driver does not migrate memory among such GPUs.\n\nIn a multi-GPU system where not all GPUs have peer-to-peer support with\neach other and where the value of the device attribute\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess` is zero for at least one\nof those GPUs, the location chosen for physical storage of managed\nmemory is system-dependent.\n\n- On Linux, the location chosen will be device memory as long as the\n  current set of active contexts are on devices that either have peer""-\n  to-peer support with each other or have a non-zero value for the\n  device attribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess`. If\n  there is an active context on a GPU that does not have a non-zero\n  value for that device attribute and it does not have peer-to-peer\n  support with the other devices that have active contexts on them,\n  then the location for physical storage will be 'zero-copy' or host\n  memory. Note that this means that managed memory that is located in\n  device memory is migrated to host memory if a new context is created\n  on a GPU that doesn't have a non-zero value for the device attribute\n  and does not support peer-to-peer with at least one of the other\n  devices that has an active context. This in turn implies that context\n  creation may fail if there is insufficient host memory to migrate all\n  managed allocations.\n\n- On Windows, the physical storage is always created in 'zero-copy' or\n  host memory. All GPUs will reference the data at reduced bandwidth\n  over the PCIe bus. In these circumstances, use of the environment\n  variable CUDA_VISIBLE_DEVICES is recommended to restrict CUDA to only\n  use those GPUs that have peer-to-peer support. Alternatively, users\n  can also set CUDA_MANAGED_FORCE_DEVICE_ALLOC to a non-zero value to\n  force the driver to always use device memory for physical storage.\n  When this environment variable is set to a non-zero value, all\n  devices used in that process that support managed memory have to be\n  peer-to-peer compatible with each other. The error\n  :py:obj:`~.cudaErrorInvalidDevice` will be returned if a device that\n  supports managed memory is used and it is not peer-to-peer compatible\n  with any of the other managed memory supporting devices that were\n  previously used in that process, even if :py:obj:`~.cudaDeviceReset`\n  has been called on those devices. These environment variables are\n  described in the CUDA programming guide under the \"CUDA environment\n  variables""\" section.\n\nParameters\n----------\nsize : size_t\n    Requested allocation size in bytes\nflags : unsigned int\n    Must be either :py:obj:`~.cudaMemAttachGlobal` or\n    :py:obj:`~.cudaMemAttachHost` (defaults to\n    :py:obj:`~.cudaMemAttachGlobal`)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\ndevPtr : Any\n    Pointer to allocated device memory\n\nSee Also\n--------\n:py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cudaDeviceGetAttribute`, :py:obj:`~.cudaStreamAttachMemAsync`, :py:obj:`~.cuMemAllocManaged`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_177cudaMallocManaged = {"cudaMallocManaged", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_177cudaMallocManaged, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_176cudaMallocManaged};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_177cudaMallocManaged(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
) {
  size_t __pyx_v_size;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMallocManaged (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_size_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 19756, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19756, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19756, __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, "cudaMallocManaged", 0) < (0)) __PYX_ERR(0, 19756, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMallocManaged", 1, 2, 2, i); __PYX_ERR(0, 19756, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 19756, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19756, __pyx_L3_error)
    }
    __pyx_v_size = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19757, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 19757, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMallocManaged", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 19756, __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.runtime.cudaMallocManaged", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_176cudaMallocManaged(__pyx_self, __pyx_v_size, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_176cudaMallocManaged(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_devPtr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMallocManaged", 0);

  /* "cuda/bindings/runtime.pyx":19880
 *     :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cudaDeviceGetAttribute`, :py:obj:`~.cudaStreamAttachMemAsync`, :py:obj:`~.cuMemAllocManaged`
 *     """
 *     cdef void_ptr devPtr = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMallocManaged(<void**>&devPtr, size, flags)
*/
  __pyx_v_devPtr = 0;

  /* "cuda/bindings/runtime.pyx":19881
 *     """
 *     cdef void_ptr devPtr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocManaged(<void**>&devPtr, size, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19882
 *     cdef void_ptr devPtr = 0
 *     with nogil:
 *         err = cyruntime.cudaMallocManaged(<void**>&devPtr, size, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMallocManaged(((void **)(&__pyx_v_devPtr)), __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19882, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":19881
 *     """
 *     cdef void_ptr devPtr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocManaged(<void**>&devPtr, size, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19883
 *     with nogil:
 *         err = cyruntime.cudaMallocManaged(<void**>&devPtr, size, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":19884
 *         err = cyruntime.cudaMallocManaged(<void**>&devPtr, size, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], devPtr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19884, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19884, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19884, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19884, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 19884, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 19884, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":19883
 *     with nogil:
 *         err = cyruntime.cudaMallocManaged(<void**>&devPtr, size, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  }

  /* "cuda/bindings/runtime.pyx":19885
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 19885, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 19885, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19756
 *     return (_dict_cudaError_t[err], numBlocks)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocManaged(size_t size, unsigned int flags):
 *     """ Allocates memory that will be automatically managed by the Unified Memory system.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMallocManaged", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19887
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc(size_t size):
 *     """ Allocate memory on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_179cudaMalloc(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_7runtime_178cudaMalloc, "cudaMalloc(size_t size)\n\nAllocate memory on the device.\n\nAllocates `size` bytes of linear memory on the device and returns in\n`*devPtr` a pointer to the allocated memory. The allocated memory is\nsuitably aligned for any kind of variable. The memory is not cleared.\n:py:obj:`~.cudaMalloc()` returns :py:obj:`~.cudaErrorMemoryAllocation`\nin case of failure.\n\nThe device version of :py:obj:`~.cudaFree` cannot be used with a\n`*devPtr` allocated using the host API, and vice versa.\n\nParameters\n----------\nsize : size_t\n    Requested allocation size in bytes\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\ndevPtr : Any\n    Pointer to allocated device memory\n\nSee Also\n--------\n:py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemAlloc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_179cudaMalloc = {"cudaMalloc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_179cudaMalloc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_178cudaMalloc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_179cudaMalloc(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
) {
  size_t __pyx_v_size;
  #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("cudaMalloc (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_size_2,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, 19887, __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, 19887, __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, "cudaMalloc", 0) < (0)) __PYX_ERR(0, 19887, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMalloc", 1, 1, 1, i); __PYX_ERR(0, 19887, __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, 19887, __pyx_L3_error)
    }
    __pyx_v_size = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19888, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMalloc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 19887, __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.runtime.cudaMalloc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_178cudaMalloc(__pyx_self, __pyx_v_size);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_178cudaMalloc(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_devPtr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMalloc", 0);

  /* "cuda/bindings/runtime.pyx":19916
 *     :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemAlloc`
 *     """
 *     cdef void_ptr devPtr = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMalloc(<void**>&devPtr, size)
*/
  __pyx_v_devPtr = 0;

  /* "cuda/bindings/runtime.pyx":19917
 *     """
 *     cdef void_ptr devPtr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMalloc(<void**>&devPtr, size)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19918
 *     cdef void_ptr devPtr = 0
 *     with nogil:
 *         err = cyruntime.cudaMalloc(<void**>&devPtr, size)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc(((void **)(&__pyx_v_devPtr)), __pyx_v_size); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19918, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":19917
 *     """
 *     cdef void_ptr devPtr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMalloc(<void**>&devPtr, size)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19919
 *     with nogil:
 *         err = cyruntime.cudaMalloc(<void**>&devPtr, size)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":19920
 *         err = cyruntime.cudaMalloc(<void**>&devPtr, size)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], devPtr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 19920, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 19920, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":19919
 *     with nogil:
 *         err = cyruntime.cudaMalloc(<void**>&devPtr, size)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  }

  /* "cuda/bindings/runtime.pyx":19921
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 19921, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 19921, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19887
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc(size_t size):
 *     """ Allocate memory on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMalloc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19923
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocHost(size_t size):
 *     """ Allocates page-locked memory on the host.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_181cudaMallocHost(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_7runtime_180cudaMallocHost, "cudaMallocHost(size_t size)\n\nAllocates page-locked memory on the host.\n\nAllocates `size` bytes of host memory that is page-locked and\naccessible to the device. The driver tracks the virtual memory ranges\nallocated with this function and automatically accelerates calls to\nfunctions such as :py:obj:`~.cudaMemcpy`*(). Since the memory can be\naccessed directly by the device, it can be read or written with much\nhigher bandwidth than pageable memory obtained with functions such as\n:py:obj:`~.malloc()`.\n\nOn systems where :py:obj:`~.pageableMemoryAccessUsesHostPageTables` is\ntrue, :py:obj:`~.cudaMallocHost` may not page-lock the allocated\nmemory.\n\nPage-locking excessive amounts of memory with\n:py:obj:`~.cudaMallocHost()` may degrade system performance, since it\nreduces the amount of memory available to the system for paging. As a\nresult, this function is best used sparingly to allocate staging areas\nfor data exchange between host and device.\n\nParameters\n----------\nsize : size_t\n    Requested allocation size in bytes\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\nptr : Any\n    Pointer to allocated host memory\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, cudaMallocHost (C++ API), :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemAllocHost`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_181cudaMallocHost = {"cudaMallocHost", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_181cudaMallocHost, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_180cudaMallocHost};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_181cudaMallocHost(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
) {
  size_t __pyx_v_size;
  #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("cudaMallocHost (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_size_2,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, 19923, __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, 19923, __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, "cudaMallocHost", 0) < (0)) __PYX_ERR(0, 19923, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMallocHost", 1, 1, 1, i); __PYX_ERR(0, 19923, __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, 19923, __pyx_L3_error)
    }
    __pyx_v_size = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19924, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMallocHost", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 19923, __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.runtime.cudaMallocHost", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_180cudaMallocHost(__pyx_self, __pyx_v_size);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_180cudaMallocHost(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMallocHost", 0);

  /* "cuda/bindings/runtime.pyx":19961
 *     :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, cudaMallocHost (C++ API), :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemAllocHost`
 *     """
 *     cdef void_ptr ptr = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMallocHost(<void**>&ptr, size)
*/
  __pyx_v_ptr = 0;

  /* "cuda/bindings/runtime.pyx":19962
 *     """
 *     cdef void_ptr ptr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocHost(<void**>&ptr, size)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":19963
 *     cdef void_ptr ptr = 0
 *     with nogil:
 *         err = cyruntime.cudaMallocHost(<void**>&ptr, size)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMallocHost(((void **)(&__pyx_v_ptr)), __pyx_v_size); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 19963, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":19962
 *     """
 *     cdef void_ptr ptr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocHost(<void**>&ptr, size)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":19964
 *     with nogil:
 *         err = cyruntime.cudaMallocHost(<void**>&ptr, size)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":19965
 *         err = cyruntime.cudaMallocHost(<void**>&ptr, size)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], ptr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 19965, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 19965, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":19964
 *     with nogil:
 *         err = cyruntime.cudaMallocHost(<void**>&ptr, size)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)
*/
  }

  /* "cuda/bindings/runtime.pyx":19966
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_ptr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 19966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 19966, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 19966, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19923
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocHost(size_t size):
 *     """ Allocates page-locked memory on the host.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMallocHost", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":19968
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocPitch(size_t width, size_t height):
 *     """ Allocates pitched memory on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_183cudaMallocPitch(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_7runtime_182cudaMallocPitch, "cudaMallocPitch(size_t width, size_t height)\n\nAllocates pitched memory on the device.\n\nAllocates at least `width` (in bytes) * `height` bytes of linear memory\non the device and returns in `*devPtr` a pointer to the allocated\nmemory. The function may pad the allocation to ensure that\ncorresponding pointers in any given row will continue to meet the\nalignment requirements for coalescing as the address is updated from\nrow to row. The pitch returned in `*pitch` by\n:py:obj:`~.cudaMallocPitch()` is the width in bytes of the allocation.\nThe intended usage of `pitch` is as a separate parameter of the\nallocation, used to compute addresses within the 2D array. Given the\nrow and column of an array element of type `T`, the address is computed\nas:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nFor allocations of 2D arrays, it is recommended that programmers\nconsider performing pitch allocations using\n:py:obj:`~.cudaMallocPitch()`. Due to pitch alignment restrictions in\nthe hardware, this is especially true if the application will be\nperforming 2D memory copies between different regions of device memory\n(whether linear memory or CUDA arrays).\n\nParameters\n----------\nwidth : size_t\n    Requested pitched allocation width (in bytes)\nheight : size_t\n    Requested pitched allocation height\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\ndevPtr : Any\n    Pointer to allocated pitched device memory\npitch : int\n    Pitch for allocation\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemAllocPitch`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_183cudaMallocPitch = {"cudaMallocPitch", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_183cudaMallocPitch, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_182cudaMallocPitch};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_183cudaMallocPitch(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
) {
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMallocPitch (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_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,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, 19968, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19968, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 19968, __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, "cudaMallocPitch", 0) < (0)) __PYX_ERR(0, 19968, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMallocPitch", 1, 2, 2, i); __PYX_ERR(0, 19968, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 19968, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 19968, __pyx_L3_error)
    }
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19969, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 19969, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMallocPitch", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 19968, __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.runtime.cudaMallocPitch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_182cudaMallocPitch(__pyx_self, __pyx_v_width, __pyx_v_height);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_182cudaMallocPitch(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_width, size_t __pyx_v_height) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_devPtr;
  size_t __pyx_v_pitch;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMallocPitch", 0);

  /* "cuda/bindings/runtime.pyx":20013
 *     :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemAllocPitch`
 *     """
 *     cdef void_ptr devPtr = 0             # <<<<<<<<<<<<<<
 *     cdef size_t pitch = 0
 *     with nogil:
*/
  __pyx_v_devPtr = 0;

  /* "cuda/bindings/runtime.pyx":20014
 *     """
 *     cdef void_ptr devPtr = 0
 *     cdef size_t pitch = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMallocPitch(<void**>&devPtr, &pitch, width, height)
*/
  __pyx_v_pitch = 0;

  /* "cuda/bindings/runtime.pyx":20015
 *     cdef void_ptr devPtr = 0
 *     cdef size_t pitch = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocPitch(<void**>&devPtr, &pitch, width, height)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20016
 *     cdef size_t pitch = 0
 *     with nogil:
 *         err = cyruntime.cudaMallocPitch(<void**>&devPtr, &pitch, width, height)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMallocPitch(((void **)(&__pyx_v_devPtr)), (&__pyx_v_pitch), __pyx_v_width, __pyx_v_height); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20016, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":20015
 *     cdef void_ptr devPtr = 0
 *     cdef size_t pitch = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocPitch(<void**>&devPtr, &pitch, width, height)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20017
 *     with nogil:
 *         err = cyruntime.cudaMallocPitch(<void**>&devPtr, &pitch, width, height)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], devPtr, pitch)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":20018
 *         err = cyruntime.cudaMallocPitch(<void**>&devPtr, &pitch, width, height)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], devPtr, pitch)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20018, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20018, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20018, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20018, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 20018, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 20018, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None) != (0)) __PYX_ERR(0, 20018, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20017
 *     with nogil:
 *         err = cyruntime.cudaMallocPitch(<void**>&devPtr, &pitch, width, height)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], devPtr, pitch)
*/
  }

  /* "cuda/bindings/runtime.pyx":20019
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], devPtr, pitch)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_pitch); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 20019, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 20019, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4) != (0)) __PYX_ERR(0, 20019, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":19968
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocPitch(size_t width, size_t height):
 *     """ Allocates pitched memory on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMallocPitch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20021
 *     return (_dict_cudaError_t[err], devPtr, pitch)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocArray(desc : Optional[cudaChannelFormatDesc], size_t width, size_t height, unsigned int flags):
 *     """ Allocate an array on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_185cudaMallocArray(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_7runtime_184cudaMallocArray, "cudaMallocArray(cudaChannelFormatDesc desc: Optional[cudaChannelFormatDesc], size_t width, size_t height, unsigned int flags)\n\nAllocate an array on the device.\n\nAllocates a CUDA array according to the\n:py:obj:`~.cudaChannelFormatDesc` structure `desc` and returns a handle\nto the new CUDA array in `*array`.\n\nThe :py:obj:`~.cudaChannelFormatDesc` is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere :py:obj:`~.cudaChannelFormatKind` is one of\n:py:obj:`~.cudaChannelFormatKindSigned`,\n:py:obj:`~.cudaChannelFormatKindUnsigned`, or\n:py:obj:`~.cudaChannelFormatKindFloat`.\n\nThe `flags` parameter enables different options to be specified that\naffect the allocation, as follows.\n\n- :py:obj:`~.cudaArrayDefault`: This flag's value is defined to be 0\n  and provides default array allocation\n\n- :py:obj:`~.cudaArraySurfaceLoadStore`: Allocates an array that can be\n  read from or written to using a surface reference\n\n- :py:obj:`~.cudaArrayTextureGather`: This flag indicates that texture\n  gather operations will be performed on the array.\n\n- :py:obj:`~.cudaArraySparse`: Allocates a CUDA array without physical\n  backing memory. The subregions within this sparse array can later be\n  mapped onto a physical memory allocation by calling\n  :py:obj:`~.cuMemMapArrayAsync`. The physical backing memory must be\n  allocated via :py:obj:`~.cuMemCreate`.\n\n- :py:obj:`~.cudaArrayDeferredMapping`: Allocates a CUDA array without\n  physical backing memory. The entire array can later be mapped onto a\n  physical memory allocation by calling :py:obj:`~.cuMemMapArrayAsync`.\n  The physical backing memory must be allocated via\n  :py:obj:`~.cuMemCreate`.\n\n`width` and `height` must meet certain size requirements. See\n:py:obj:`~.cudaMalloc3DArray()` for more details.\n\nParameters\n----------\ndesc : :py:obj:`~.cudaChannelFormatDesc`\n    Requested channel format\nwidth : size_t\n    Requested array allocation width\nheight : size_t\n    Reque""sted array allocation height\nflags : unsigned int\n    Requested properties of allocated array\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\narray : :py:obj:`~.cudaArray_t`\n    Pointer to allocated array in device memory\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuArrayCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_185cudaMallocArray = {"cudaMallocArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_185cudaMallocArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_184cudaMallocArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_185cudaMallocArray(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc = 0;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMallocArray (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_desc_2,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 20021, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 20021, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 20021, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20021, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20021, __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, "cudaMallocArray", 0) < (0)) __PYX_ERR(0, 20021, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMallocArray", 1, 4, 4, i); __PYX_ERR(0, 20021, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 20021, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20021, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 20021, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 20021, __pyx_L3_error)
    }
    __pyx_v_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)values[0]);
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20022, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20022, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20022, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMallocArray", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 20021, __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.runtime.cudaMallocArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_desc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, 1, "desc", 0))) __PYX_ERR(0, 20022, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_184cudaMallocArray(__pyx_self, __pyx_v_desc, __pyx_v_width, __pyx_v_height, __pyx_v_flags);

  /* 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_7runtime_184cudaMallocArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc, size_t __pyx_v_width, size_t __pyx_v_height, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_array = 0;
  struct cudaChannelFormatDesc *__pyx_v_cydesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaChannelFormatDesc *__pyx_t_4;
  int __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMallocArray", 0);

  /* "cuda/bindings/runtime.pyx":20087
 *     :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuArrayCreate`
 *     """
 *     cdef cudaArray_t array = cudaArray_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20087, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20088
 *     """
 *     cdef cudaArray_t array = cudaArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMallocArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, width, height, flags)
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_desc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_desc->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cydesc_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":20089
 *     cdef cudaArray_t array = cudaArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, width, height, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20090
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMallocArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, width, height, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMallocArray(((cudaArray_t *)__pyx_v_array->_pvt_ptr), __pyx_v_cydesc_ptr, __pyx_v_width, __pyx_v_height, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20090, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":20089
 *     cdef cudaArray_t array = cudaArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, width, height, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20091
 *     with nogil:
 *         err = cyruntime.cudaMallocArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, width, height, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":20092
 *         err = cyruntime.cudaMallocArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, width, height, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], array)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 20092, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 20092, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20091
 *     with nogil:
 *         err = cyruntime.cudaMallocArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, width, height, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)
*/
  }

  /* "cuda/bindings/runtime.pyx":20093
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 20093, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_array);
  __Pyx_GIVEREF((PyObject *)__pyx_v_array);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_array)) != (0)) __PYX_ERR(0, 20093, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20021
 *     return (_dict_cudaError_t[err], devPtr, pitch)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocArray(desc : Optional[cudaChannelFormatDesc], size_t width, size_t height, unsigned int flags):
 *     """ Allocate an array on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMallocArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_array);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20095
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFree(devPtr):
 *     """ Frees memory on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_187cudaFree(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_7runtime_186cudaFree, "cudaFree(devPtr)\n\nFrees memory on the device.\n\nFrees the memory space pointed to by `devPtr`, which must have been\nreturned by a previous call to one of the following memory allocation\nAPIs - :py:obj:`~.cudaMalloc()`, :py:obj:`~.cudaMallocPitch()`,\n:py:obj:`~.cudaMallocManaged()`, :py:obj:`~.cudaMallocAsync()`,\n:py:obj:`~.cudaMallocFromPoolAsync()`.\n\nNote - This API will not perform any implicit synchronization when the\npointer was allocated with :py:obj:`~.cudaMallocAsync` or\n:py:obj:`~.cudaMallocFromPoolAsync`. Callers must ensure that all\naccesses to these pointer have completed before invoking\n:py:obj:`~.cudaFree`. For best performance and memory reuse, users\nshould use :py:obj:`~.cudaFreeAsync` to free memory allocated via the\nstream ordered memory allocator. For all other pointers, this API may\nperform implicit synchronization.\n\nIf :py:obj:`~.cudaFree`(`devPtr`) has already been called before, an\nerror is returned. If `devPtr` is 0, no operation is performed.\n:py:obj:`~.cudaFree()` returns :py:obj:`~.cudaErrorValue` in case of\nfailure.\n\nThe device version of :py:obj:`~.cudaFree` cannot be used with a\n`*devPtr` allocated using the host API, and vice versa.\n\nParameters\n----------\ndevPtr : Any\n    Device pointer to memory to free\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaMallocManaged`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaMallocFromPoolAsync` :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaFreeAsync` :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemFree`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_187cudaFree = {"cudaFree", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_187cudaFree, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_186cudaFree};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_187cudaFree(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_devPtr = 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("cudaFree (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_devPtr_2,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, 20095, __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, 20095, __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, "cudaFree", 0) < (0)) __PYX_ERR(0, 20095, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFree", 1, 1, 1, i); __PYX_ERR(0, 20095, __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, 20095, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFree", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20095, __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.runtime.cudaFree", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_186cudaFree(__pyx_self, __pyx_v_devPtr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_186cudaFree(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFree", 0);

  /* "cuda/bindings/runtime.pyx":20136
 *     :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaMallocManaged`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaMallocFromPoolAsync` :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaFreeAsync` :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemFree`
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20136, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20137
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFree(cydevPtr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":20138
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFree(cydevPtr_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20139
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaFree(cydevPtr_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFree(__pyx_v_cydevPtr_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20139, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":20138
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFree(cydevPtr_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20140
 *     with nogil:
 *         err = cyruntime.cudaFree(cydevPtr_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 20140, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20095
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFree(devPtr):
 *     """ Frees memory on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFree", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20142
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeHost(ptr):
 *     """ Frees page-locked memory.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_189cudaFreeHost(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_7runtime_188cudaFreeHost, "cudaFreeHost(ptr)\n\nFrees page-locked memory.\n\nFrees the memory space pointed to by `hostPtr`, which must have been\nreturned by a previous call to :py:obj:`~.cudaMallocHost()` or\n:py:obj:`~.cudaHostAlloc()`.\n\nParameters\n----------\nptr : Any\n    Pointer to memory to free\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemFreeHost`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_189cudaFreeHost = {"cudaFreeHost", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_189cudaFreeHost, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_188cudaFreeHost};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_189cudaFreeHost(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_ptr = 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("cudaFreeHost (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_ptr,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, 20142, __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, 20142, __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, "cudaFreeHost", 0) < (0)) __PYX_ERR(0, 20142, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFreeHost", 1, 1, 1, i); __PYX_ERR(0, 20142, __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, 20142, __pyx_L3_error)
    }
    __pyx_v_ptr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFreeHost", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20142, __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.runtime.cudaFreeHost", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_188cudaFreeHost(__pyx_self, __pyx_v_ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_188cudaFreeHost(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyptr = NULL;
  void *__pyx_v_cyptr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFreeHost", 0);

  /* "cuda/bindings/runtime.pyx":20164
 *     :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemFreeHost`
 *     """
 *     cyptr = _HelperInputVoidPtr(ptr)             # <<<<<<<<<<<<<<
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20164, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20165
 *     """
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFreeHost(cyptr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20165, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyptr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":20166
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFreeHost(cyptr_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20167
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
 *         err = cyruntime.cudaFreeHost(cyptr_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFreeHost(__pyx_v_cyptr_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20167, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":20166
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFreeHost(cyptr_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20168
 *     with nogil:
 *         err = cyruntime.cudaFreeHost(cyptr_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 20168, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20142
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeHost(ptr):
 *     """ Frees page-locked memory.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFreeHost", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyptr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20170
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeArray(array):
 *     """ Frees an array on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_191cudaFreeArray(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_7runtime_190cudaFreeArray, "cudaFreeArray(array)\n\nFrees an array on the device.\n\nFrees the CUDA array `array`, which must have been returned by a\nprevious call to :py:obj:`~.cudaMallocArray()`. If `devPtr` is 0, no\noperation is performed.\n\nParameters\n----------\narray : :py:obj:`~.cudaArray_t`\n    Pointer to array to free\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuArrayDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_191cudaFreeArray = {"cudaFreeArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_191cudaFreeArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_190cudaFreeArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_191cudaFreeArray(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_array = 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("cudaFreeArray (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_array_2,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, 20170, __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, 20170, __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, "cudaFreeArray", 0) < (0)) __PYX_ERR(0, 20170, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFreeArray", 1, 1, 1, i); __PYX_ERR(0, 20170, __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, 20170, __pyx_L3_error)
    }
    __pyx_v_array = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFreeArray", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20170, __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.runtime.cudaFreeArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_190cudaFreeArray(__pyx_self, __pyx_v_array);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_190cudaFreeArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array) {
  cudaArray_t __pyx_v_cyarray;
  PyObject *__pyx_v_parray = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFreeArray", 0);

  /* "cuda/bindings/runtime.pyx":20193
 *     """
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_array == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":20194
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:
 *         parray = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(array, (cudaArray_t,)):
 *         parray = int(array)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_parray = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":20193
 *     """
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":20195
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":20196
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
 *         parray = int(array)             # <<<<<<<<<<<<<<
 *     else:
 *         parray = int(cudaArray_t(array))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_parray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":20195
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":20198
 *         parray = int(array)
 *     else:
 *         parray = int(cudaArray_t(array))             # <<<<<<<<<<<<<<
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_array};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20198, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_parray = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":20199
 *     else:
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFreeArray(cyarray)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20199, __pyx_L1_error)
  __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":20200
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFreeArray(cyarray)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20201
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     with nogil:
 *         err = cyruntime.cudaFreeArray(cyarray)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFreeArray(__pyx_v_cyarray); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20201, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":20200
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFreeArray(cyarray)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20202
 *     with nogil:
 *         err = cyruntime.cudaFreeArray(cyarray)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 20202, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20170
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeArray(array):
 *     """ Frees an array on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFreeArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parray);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20204
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeMipmappedArray(mipmappedArray):
 *     """ Frees a mipmapped array on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_193cudaFreeMipmappedArray(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_7runtime_192cudaFreeMipmappedArray, "cudaFreeMipmappedArray(mipmappedArray)\n\nFrees a mipmapped array on the device.\n\nFrees the CUDA mipmapped array `mipmappedArray`, which must have been\nreturned by a previous call to :py:obj:`~.cudaMallocMipmappedArray()`.\nIf `devPtr` is 0, no operation is performed.\n\nParameters\n----------\nmipmappedArray : :py:obj:`~.cudaMipmappedArray_t`\n    Pointer to mipmapped array to free\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMipmappedArrayDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_193cudaFreeMipmappedArray = {"cudaFreeMipmappedArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_193cudaFreeMipmappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_192cudaFreeMipmappedArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_193cudaFreeMipmappedArray(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_mipmappedArray = 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("cudaFreeMipmappedArray (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_mipmappedArray,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, 20204, __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, 20204, __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, "cudaFreeMipmappedArray", 0) < (0)) __PYX_ERR(0, 20204, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFreeMipmappedArray", 1, 1, 1, i); __PYX_ERR(0, 20204, __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, 20204, __pyx_L3_error)
    }
    __pyx_v_mipmappedArray = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFreeMipmappedArray", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20204, __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.runtime.cudaFreeMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_192cudaFreeMipmappedArray(__pyx_self, __pyx_v_mipmappedArray);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_192cudaFreeMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmappedArray) {
  cudaMipmappedArray_t __pyx_v_cymipmappedArray;
  PyObject *__pyx_v_pmipmappedArray = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFreeMipmappedArray", 0);

  /* "cuda/bindings/runtime.pyx":20227
 *     """
 *     cdef cyruntime.cudaMipmappedArray_t cymipmappedArray
 *     if mipmappedArray is None:             # <<<<<<<<<<<<<<
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_mipmappedArray == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":20228
 *     cdef cyruntime.cudaMipmappedArray_t cymipmappedArray
 *     if mipmappedArray is None:
 *         pmipmappedArray = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)):
 *         pmipmappedArray = int(mipmappedArray)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmipmappedArray = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":20227
 *     """
 *     cdef cyruntime.cudaMipmappedArray_t cymipmappedArray
 *     if mipmappedArray is None:             # <<<<<<<<<<<<<<
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":20229
 *     if mipmappedArray is None:
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)):             # <<<<<<<<<<<<<<
 *         pmipmappedArray = int(mipmappedArray)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmappedArray, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":20230
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)):
 *         pmipmappedArray = int(mipmappedArray)             # <<<<<<<<<<<<<<
 *     else:
 *         pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmappedArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pmipmappedArray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":20229
 *     if mipmappedArray is None:
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_t,)):             # <<<<<<<<<<<<<<
 *         pmipmappedArray = int(mipmappedArray)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":20232
 *         pmipmappedArray = int(mipmappedArray)
 *     else:
 *         pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray))             # <<<<<<<<<<<<<<
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmappedArray
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_mipmappedArray};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20232, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20232, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pmipmappedArray = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":20233
 *     else:
 *         pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray))
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmappedArray             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFreeMipmappedArray(cymipmappedArray)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmappedArray); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20233, __pyx_L1_error)
  __pyx_v_cymipmappedArray = ((cudaMipmappedArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":20234
 *         pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray))
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmappedArray
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFreeMipmappedArray(cymipmappedArray)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20235
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmappedArray
 *     with nogil:
 *         err = cyruntime.cudaFreeMipmappedArray(cymipmappedArray)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFreeMipmappedArray(__pyx_v_cymipmappedArray); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20235, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":20234
 *         pmipmappedArray = int(cudaMipmappedArray_t(mipmappedArray))
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmappedArray
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFreeMipmappedArray(cymipmappedArray)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20236
 *     with nogil:
 *         err = cyruntime.cudaFreeMipmappedArray(cymipmappedArray)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 20236, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20204
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeMipmappedArray(mipmappedArray):
 *     """ Frees a mipmapped array on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFreeMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmipmappedArray);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20238
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostAlloc(size_t size, unsigned int flags):
 *     """ Allocates page-locked memory on the host.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_195cudaHostAlloc(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_7runtime_194cudaHostAlloc, "cudaHostAlloc(size_t size, unsigned int flags)\n\nAllocates page-locked memory on the host.\n\nAllocates `size` bytes of host memory that is page-locked and\naccessible to the device. The driver tracks the virtual memory ranges\nallocated with this function and automatically accelerates calls to\nfunctions such as :py:obj:`~.cudaMemcpy()`. Since the memory can be\naccessed directly by the device, it can be read or written with much\nhigher bandwidth than pageable memory obtained with functions such as\n:py:obj:`~.malloc()`. Allocating excessive amounts of pinned memory may\ndegrade system performance, since it reduces the amount of memory\navailable to the system for paging. As a result, this function is best\nused sparingly to allocate staging areas for data exchange between host\nand device.\n\nThe `flags` parameter enables different options to be specified that\naffect the allocation, as follows.\n\n- :py:obj:`~.cudaHostAllocDefault`: This flag's value is defined to be\n  0 and causes :py:obj:`~.cudaHostAlloc()` to emulate\n  :py:obj:`~.cudaMallocHost()`.\n\n- :py:obj:`~.cudaHostAllocPortable`: The memory returned by this call\n  will be considered as pinned memory by all CUDA contexts, not just\n  the one that performed the allocation.\n\n- :py:obj:`~.cudaHostAllocMapped`: Maps the allocation into the CUDA\n  address space. The device pointer to the memory may be obtained by\n  calling :py:obj:`~.cudaHostGetDevicePointer()`.\n\n- :py:obj:`~.cudaHostAllocWriteCombined`: Allocates the memory as\n  write-combined (WC). WC memory can be transferred across the PCI\n  Express bus more quickly on some system configurations, but cannot be\n  read efficiently by most CPUs. WC memory is a good option for buffers\n  that will be written by the CPU and read by the device via mapped\n  pinned memory or host->device transfers.\n\nAll of these flags are orthogonal to one another: a developer may\nallocate memory that is portable, mapped and/or write-combined with no\nrestricti""ons.\n\nIn order for the :py:obj:`~.cudaHostAllocMapped` flag to have any\neffect, the CUDA context must support the :py:obj:`~.cudaDeviceMapHost`\nflag, which can be checked via :py:obj:`~.cudaGetDeviceFlags()`. The\n:py:obj:`~.cudaDeviceMapHost` flag is implicitly set for contexts\ncreated via the runtime API.\n\nThe :py:obj:`~.cudaHostAllocMapped` flag may be specified on CUDA\ncontexts for devices that do not support mapped pinned memory. The\nfailure is deferred to :py:obj:`~.cudaHostGetDevicePointer()` because\nthe memory may be mapped into other CUDA contexts via the\n:py:obj:`~.cudaHostAllocPortable` flag.\n\nMemory allocated by this function must be freed with\n:py:obj:`~.cudaFreeHost()`.\n\nParameters\n----------\nsize : size_t\n    Requested allocation size in bytes\nflags : unsigned int\n    Requested properties of allocated memory\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\npHost : Any\n    Device pointer to allocated memory\n\nSee Also\n--------\n:py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaGetDeviceFlags`, :py:obj:`~.cuMemHostAlloc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_195cudaHostAlloc = {"cudaHostAlloc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_195cudaHostAlloc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_194cudaHostAlloc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_195cudaHostAlloc(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
) {
  size_t __pyx_v_size;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaHostAlloc (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_size_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 20238, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20238, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20238, __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, "cudaHostAlloc", 0) < (0)) __PYX_ERR(0, 20238, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaHostAlloc", 1, 2, 2, i); __PYX_ERR(0, 20238, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 20238, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20238, __pyx_L3_error)
    }
    __pyx_v_size = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20239, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20239, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaHostAlloc", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 20238, __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.runtime.cudaHostAlloc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_194cudaHostAlloc(__pyx_self, __pyx_v_size, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_194cudaHostAlloc(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_pHost;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaHostAlloc", 0);

  /* "cuda/bindings/runtime.pyx":20313
 *     :py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaGetDeviceFlags`, :py:obj:`~.cuMemHostAlloc`
 *     """
 *     cdef void_ptr pHost = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaHostAlloc(<void**>&pHost, size, flags)
*/
  __pyx_v_pHost = 0;

  /* "cuda/bindings/runtime.pyx":20314
 *     """
 *     cdef void_ptr pHost = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostAlloc(<void**>&pHost, size, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20315
 *     cdef void_ptr pHost = 0
 *     with nogil:
 *         err = cyruntime.cudaHostAlloc(<void**>&pHost, size, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaHostAlloc(((void **)(&__pyx_v_pHost)), __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20315, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":20314
 *     """
 *     cdef void_ptr pHost = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostAlloc(<void**>&pHost, size, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20316
 *     with nogil:
 *         err = cyruntime.cudaHostAlloc(<void**>&pHost, size, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHost)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":20317
 *         err = cyruntime.cudaHostAlloc(<void**>&pHost, size, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pHost)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 20317, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 20317, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20316
 *     with nogil:
 *         err = cyruntime.cudaHostAlloc(<void**>&pHost, size, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHost)
*/
  }

  /* "cuda/bindings/runtime.pyx":20318
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHost)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_pHost); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 20318, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 20318, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20238
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostAlloc(size_t size, unsigned int flags):
 *     """ Allocates page-locked memory on the host.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostAlloc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20320
 *     return (_dict_cudaError_t[err], pHost)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostRegister(ptr, size_t size, unsigned int flags):
 *     """ Registers an existing host memory range for use by CUDA.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_197cudaHostRegister(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_7runtime_196cudaHostRegister, "cudaHostRegister(ptr, size_t size, unsigned int flags)\n\nRegisters an existing host memory range for use by CUDA.\n\nPage-locks the memory range specified by `ptr` and `size` and maps it\nfor the device(s) as specified by `flags`. This memory range also is\nadded to the same tracking mechanism as :py:obj:`~.cudaHostAlloc()` to\nautomatically accelerate calls to functions such as\n:py:obj:`~.cudaMemcpy()`. Since the memory can be accessed directly by\nthe device, it can be read or written with much higher bandwidth than\npageable memory that has not been registered. Page-locking excessive\namounts of memory may degrade system performance, since it reduces the\namount of memory available to the system for paging. As a result, this\nfunction is best used sparingly to register staging areas for data\nexchange between host and device.\n\nOn systems where :py:obj:`~.pageableMemoryAccessUsesHostPageTables` is\ntrue, :py:obj:`~.cudaHostRegister` will not page-lock the memory range\nspecified by `ptr` but only populate unpopulated pages.\n\n:py:obj:`~.cudaHostRegister` is supported only on I/O coherent devices\nthat have a non-zero value for the device attribute\n:py:obj:`~.cudaDevAttrHostRegisterSupported`.\n\nThe `flags` parameter enables different options to be specified that\naffect the allocation, as follows.\n\n- :py:obj:`~.cudaHostRegisterDefault`: On a system with unified virtual\n  addressing, the memory will be both mapped and portable. On a system\n  with no unified virtual addressing, the memory will be neither mapped\n  nor portable.\n\n- :py:obj:`~.cudaHostRegisterPortable`: The memory returned by this\n  call will be considered as pinned memory by all CUDA contexts, not\n  just the one that performed the allocation.\n\n- :py:obj:`~.cudaHostRegisterMapped`: Maps the allocation into the CUDA\n  address space. The device pointer to the memory may be obtained by\n  calling :py:obj:`~.cudaHostGetDevicePointer()`.\n\n- :py:obj:`~.cudaHostRegisterIoMemory`: The pass""ed memory pointer is\n  treated as pointing to some memory-mapped I/O space, e.g. belonging\n  to a third-party PCIe device, and it will marked as non cache-\n  coherent and contiguous.\n\n- :py:obj:`~.cudaHostRegisterReadOnly`: The passed memory pointer is\n  treated as pointing to memory that is considered read-only by the\n  device. On platforms without\n  :py:obj:`~.cudaDevAttrPageableMemoryAccessUsesHostPageTables`, this\n  flag is required in order to register memory mapped to the CPU as\n  read-only. Support for the use of this flag can be queried from the\n  device attribute\n  :py:obj:`~.cudaDevAttrHostRegisterReadOnlySupported`. Using this flag\n  with a current context associated with a device that does not have\n  this attribute set will cause :py:obj:`~.cudaHostRegister` to error\n  with cudaErrorNotSupported.\n\nAll of these flags are orthogonal to one another: a developer may page-\nlock memory that is portable or mapped with no restrictions.\n\nThe CUDA context must have been created with the\n:py:obj:`~.cudaMapHost` flag in order for the\n:py:obj:`~.cudaHostRegisterMapped` flag to have any effect.\n\nThe :py:obj:`~.cudaHostRegisterMapped` flag may be specified on CUDA\ncontexts for devices that do not support mapped pinned memory. The\nfailure is deferred to :py:obj:`~.cudaHostGetDevicePointer()` because\nthe memory may be mapped into other CUDA contexts via the\n:py:obj:`~.cudaHostRegisterPortable` flag.\n\nFor devices that have a non-zero value for the device attribute\n:py:obj:`~.cudaDevAttrCanUseHostPointerForRegisteredMem`, the memory\ncan also be accessed from the device using the host pointer `ptr`. The\ndevice pointer returned by :py:obj:`~.cudaHostGetDevicePointer()` may\nor may not match the original host pointer `ptr` and depends on the\ndevices visible to the application. If all devices visible to the\napplication have a non-zero value for the device attribute, the device\npointer returned by :py:obj:`~.cudaHostGetDevicePointer()` will m""atch\nthe original pointer `ptr`. If any device visible to the application\nhas a zero value for the device attribute, the device pointer returned\nby :py:obj:`~.cudaHostGetDevicePointer()` will not match the original\nhost pointer `ptr`, but it will be suitable for use on all devices\nprovided Unified Virtual Addressing is enabled. In such systems, it is\nvalid to access the memory using either pointer on devices that have a\nnon-zero value for the device attribute. Note however that such devices\nshould access the memory using only of the two pointers and not both.\n\nThe memory page-locked by this function must be unregistered with\n:py:obj:`~.cudaHostUnregister()`.\n\nParameters\n----------\nptr : Any\n    Host pointer to memory to page-lock\nsize : size_t\n    Size in bytes of the address range to page-lock in bytes\nflags : unsigned int\n    Flags for allocation request\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorHostMemoryAlreadyRegistered`, :py:obj:`~.cudaErrorNotSupported`\n\nSee Also\n--------\n:py:obj:`~.cudaHostUnregister`, :py:obj:`~.cudaHostGetFlags`, :py:obj:`~.cudaHostGetDevicePointer`, :py:obj:`~.cuMemHostRegister`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_197cudaHostRegister = {"cudaHostRegister", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_197cudaHostRegister, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_196cudaHostRegister};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_197cudaHostRegister(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_ptr = 0;
  size_t __pyx_v_size;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaHostRegister (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_ptr,&__pyx_mstate_global->__pyx_n_u_size_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 20320, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 20320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20320, __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, "cudaHostRegister", 0) < (0)) __PYX_ERR(0, 20320, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaHostRegister", 1, 3, 3, i); __PYX_ERR(0, 20320, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 20320, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20320, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 20320, __pyx_L3_error)
    }
    __pyx_v_ptr = values[0];
    __pyx_v_size = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 20321, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20321, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaHostRegister", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 20320, __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.runtime.cudaHostRegister", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_196cudaHostRegister(__pyx_self, __pyx_v_ptr, __pyx_v_size, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_196cudaHostRegister(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr, size_t __pyx_v_size, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyptr = NULL;
  void *__pyx_v_cyptr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaHostRegister", 0);

  /* "cuda/bindings/runtime.pyx":20428
 *     :py:obj:`~.cudaHostUnregister`, :py:obj:`~.cudaHostGetFlags`, :py:obj:`~.cudaHostGetDevicePointer`, :py:obj:`~.cuMemHostRegister`
 *     """
 *     cyptr = _HelperInputVoidPtr(ptr)             # <<<<<<<<<<<<<<
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20428, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20429
 *     """
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaHostRegister(cyptr_ptr, size, flags)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20429, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyptr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":20430
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostRegister(cyptr_ptr, size, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20431
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
 *         err = cyruntime.cudaHostRegister(cyptr_ptr, size, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaHostRegister(__pyx_v_cyptr_ptr, __pyx_v_size, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20431, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":20430
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostRegister(cyptr_ptr, size, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20432
 *     with nogil:
 *         err = cyruntime.cudaHostRegister(cyptr_ptr, size, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 20432, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20320
 *     return (_dict_cudaError_t[err], pHost)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostRegister(ptr, size_t size, unsigned int flags):
 *     """ Registers an existing host memory range for use by CUDA.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostRegister", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyptr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20434
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostUnregister(ptr):
 *     """ Unregisters a memory range that was registered with cudaHostRegister.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_199cudaHostUnregister(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_7runtime_198cudaHostUnregister, "cudaHostUnregister(ptr)\n\nUnregisters a memory range that was registered with cudaHostRegister.\n\nUnmaps the memory range whose base address is specified by `ptr`, and\nmakes it pageable again.\n\nThe base address must be the same one specified to\n:py:obj:`~.cudaHostRegister()`.\n\nParameters\n----------\nptr : Any\n    Host pointer to memory to unregister\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorHostMemoryNotRegistered`\n\nSee Also\n--------\n:py:obj:`~.cudaHostUnregister`, :py:obj:`~.cuMemHostUnregister`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_199cudaHostUnregister = {"cudaHostUnregister", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_199cudaHostUnregister, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_198cudaHostUnregister};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_199cudaHostUnregister(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_ptr = 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("cudaHostUnregister (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_ptr,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, 20434, __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, 20434, __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, "cudaHostUnregister", 0) < (0)) __PYX_ERR(0, 20434, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaHostUnregister", 1, 1, 1, i); __PYX_ERR(0, 20434, __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, 20434, __pyx_L3_error)
    }
    __pyx_v_ptr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaHostUnregister", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20434, __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.runtime.cudaHostUnregister", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_198cudaHostUnregister(__pyx_self, __pyx_v_ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_198cudaHostUnregister(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyptr = NULL;
  void *__pyx_v_cyptr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaHostUnregister", 0);

  /* "cuda/bindings/runtime.pyx":20458
 *     :py:obj:`~.cudaHostUnregister`, :py:obj:`~.cuMemHostUnregister`
 *     """
 *     cyptr = _HelperInputVoidPtr(ptr)             # <<<<<<<<<<<<<<
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20458, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20459
 *     """
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaHostUnregister(cyptr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20459, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyptr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":20460
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostUnregister(cyptr_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20461
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
 *         err = cyruntime.cudaHostUnregister(cyptr_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaHostUnregister(__pyx_v_cyptr_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20461, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":20460
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostUnregister(cyptr_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20462
 *     with nogil:
 *         err = cyruntime.cudaHostUnregister(cyptr_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 20462, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20434
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostUnregister(ptr):
 *     """ Unregisters a memory range that was registered with cudaHostRegister.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostUnregister", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyptr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20464
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostGetDevicePointer(pHost, unsigned int flags):
 *     """ Passes back device pointer of mapped host memory allocated by cudaHostAlloc or registered by cudaHostRegister.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_201cudaHostGetDevicePointer(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_7runtime_200cudaHostGetDevicePointer, "cudaHostGetDevicePointer(pHost, unsigned int flags)\n\nPasses back device pointer of mapped host memory allocated by cudaHostAlloc or registered by cudaHostRegister.\n\nPasses back the device pointer corresponding to the mapped, pinned host\nbuffer allocated by :py:obj:`~.cudaHostAlloc()` or registered by\n:py:obj:`~.cudaHostRegister()`.\n\n:py:obj:`~.cudaHostGetDevicePointer()` will fail if the\n:py:obj:`~.cudaDeviceMapHost` flag was not specified before deferred\ncontext creation occurred, or if called on a device that does not\nsupport mapped, pinned memory.\n\nFor devices that have a non-zero value for the device attribute\n:py:obj:`~.cudaDevAttrCanUseHostPointerForRegisteredMem`, the memory\ncan also be accessed from the device using the host pointer `pHost`.\nThe device pointer returned by :py:obj:`~.cudaHostGetDevicePointer()`\nmay or may not match the original host pointer `pHost` and depends on\nthe devices visible to the application. If all devices visible to the\napplication have a non-zero value for the device attribute, the device\npointer returned by :py:obj:`~.cudaHostGetDevicePointer()` will match\nthe original pointer `pHost`. If any device visible to the application\nhas a zero value for the device attribute, the device pointer returned\nby :py:obj:`~.cudaHostGetDevicePointer()` will not match the original\nhost pointer `pHost`, but it will be suitable for use on all devices\nprovided Unified Virtual Addressing is enabled. In such systems, it is\nvalid to access the memory using either pointer on devices that have a\nnon-zero value for the device attribute. Note however that such devices\nshould access the memory using only of the two pointers and not both.\n\n`flags` provides for future releases. For now, it must be set to 0.\n\nParameters\n----------\npHost : Any\n    Requested host pointer mapping\nflags : unsigned int\n    Flags for extensions (must be 0 for now)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErro""rInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\npDevice : Any\n    Returned device pointer for mapped memory\n\nSee Also\n--------\n:py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemHostGetDevicePointer`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_201cudaHostGetDevicePointer = {"cudaHostGetDevicePointer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_201cudaHostGetDevicePointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_200cudaHostGetDevicePointer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_201cudaHostGetDevicePointer(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_pHost = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaHostGetDevicePointer (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_pHost,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 20464, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20464, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20464, __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, "cudaHostGetDevicePointer", 0) < (0)) __PYX_ERR(0, 20464, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaHostGetDevicePointer", 1, 2, 2, i); __PYX_ERR(0, 20464, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 20464, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20464, __pyx_L3_error)
    }
    __pyx_v_pHost = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20465, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaHostGetDevicePointer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 20464, __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.runtime.cudaHostGetDevicePointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_200cudaHostGetDevicePointer(__pyx_self, __pyx_v_pHost, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_200cudaHostGetDevicePointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_pHost, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_pDevice;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cypHost = NULL;
  void *__pyx_v_cypHost_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaHostGetDevicePointer", 0);

  /* "cuda/bindings/runtime.pyx":20514
 *     :py:obj:`~.cudaSetDeviceFlags`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemHostGetDevicePointer`
 *     """
 *     cdef void_ptr pDevice = 0             # <<<<<<<<<<<<<<
 *     cypHost = _HelperInputVoidPtr(pHost)
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
*/
  __pyx_v_pDevice = 0;

  /* "cuda/bindings/runtime.pyx":20515
 *     """
 *     cdef void_ptr pDevice = 0
 *     cypHost = _HelperInputVoidPtr(pHost)             # <<<<<<<<<<<<<<
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_pHost};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20515, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cypHost = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20516
 *     cdef void_ptr pDevice = 0
 *     cypHost = _HelperInputVoidPtr(pHost)
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaHostGetDevicePointer(<void**>&pDevice, cypHost_ptr, flags)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cypHost), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20516, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cypHost_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":20517
 *     cypHost = _HelperInputVoidPtr(pHost)
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostGetDevicePointer(<void**>&pDevice, cypHost_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20518
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
 *     with nogil:
 *         err = cyruntime.cudaHostGetDevicePointer(<void**>&pDevice, cypHost_ptr, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaHostGetDevicePointer(((void **)(&__pyx_v_pDevice)), __pyx_v_cypHost_ptr, __pyx_v_flags); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20518, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":20517
 *     cypHost = _HelperInputVoidPtr(pHost)
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostGetDevicePointer(<void**>&pDevice, cypHost_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20519
 *     with nogil:
 *         err = cyruntime.cudaHostGetDevicePointer(<void**>&pDevice, cypHost_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pDevice)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":20520
 *         err = cyruntime.cudaHostGetDevicePointer(<void**>&pDevice, cypHost_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pDevice)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 20520, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 20520, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20519
 *     with nogil:
 *         err = cyruntime.cudaHostGetDevicePointer(<void**>&pDevice, cypHost_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pDevice)
*/
  }

  /* "cuda/bindings/runtime.pyx":20521
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pDevice)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_pDevice); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 20521, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 20521, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20464
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostGetDevicePointer(pHost, unsigned int flags):
 *     """ Passes back device pointer of mapped host memory allocated by cudaHostAlloc or registered by cudaHostRegister.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostGetDevicePointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cypHost);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20523
 *     return (_dict_cudaError_t[err], pDevice)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostGetFlags(pHost):
 *     """ Passes back flags used to allocate pinned host memory allocated by cudaHostAlloc.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_203cudaHostGetFlags(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_7runtime_202cudaHostGetFlags, "cudaHostGetFlags(pHost)\n\nPasses back flags used to allocate pinned host memory allocated by cudaHostAlloc.\n\n:py:obj:`~.cudaHostGetFlags()` will fail if the input pointer does not\nreside in an address range allocated by :py:obj:`~.cudaHostAlloc()`.\n\nParameters\n----------\npHost : Any\n    Host pointer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npFlags : unsigned int\n    Returned flags word\n\nSee Also\n--------\n:py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemHostGetFlags`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_203cudaHostGetFlags = {"cudaHostGetFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_203cudaHostGetFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_202cudaHostGetFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_203cudaHostGetFlags(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_pHost = 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("cudaHostGetFlags (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_pHost,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, 20523, __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, 20523, __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, "cudaHostGetFlags", 0) < (0)) __PYX_ERR(0, 20523, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaHostGetFlags", 1, 1, 1, i); __PYX_ERR(0, 20523, __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, 20523, __pyx_L3_error)
    }
    __pyx_v_pHost = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaHostGetFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20523, __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.runtime.cudaHostGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_202cudaHostGetFlags(__pyx_self, __pyx_v_pHost);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_202cudaHostGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_pHost) {
  unsigned int __pyx_v_pFlags;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cypHost = NULL;
  void *__pyx_v_cypHost_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaHostGetFlags", 0);

  /* "cuda/bindings/runtime.pyx":20546
 *     :py:obj:`~.cudaHostAlloc`, :py:obj:`~.cuMemHostGetFlags`
 *     """
 *     cdef unsigned int pFlags = 0             # <<<<<<<<<<<<<<
 *     cypHost = _HelperInputVoidPtr(pHost)
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
*/
  __pyx_v_pFlags = 0;

  /* "cuda/bindings/runtime.pyx":20547
 *     """
 *     cdef unsigned int pFlags = 0
 *     cypHost = _HelperInputVoidPtr(pHost)             # <<<<<<<<<<<<<<
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_pHost};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20547, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cypHost = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20548
 *     cdef unsigned int pFlags = 0
 *     cypHost = _HelperInputVoidPtr(pHost)
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaHostGetFlags(&pFlags, cypHost_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cypHost), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cypHost_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":20549
 *     cypHost = _HelperInputVoidPtr(pHost)
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostGetFlags(&pFlags, cypHost_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20550
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
 *     with nogil:
 *         err = cyruntime.cudaHostGetFlags(&pFlags, cypHost_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaHostGetFlags((&__pyx_v_pFlags), __pyx_v_cypHost_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20550, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":20549
 *     cypHost = _HelperInputVoidPtr(pHost)
 *     cdef void* cypHost_ptr = <void*><void_ptr>cypHost.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaHostGetFlags(&pFlags, cypHost_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20551
 *     with nogil:
 *         err = cyruntime.cudaHostGetFlags(&pFlags, cypHost_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pFlags)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":20552
 *         err = cyruntime.cudaHostGetFlags(&pFlags, cypHost_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pFlags)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 20552, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 20552, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20551
 *     with nogil:
 *         err = cyruntime.cudaHostGetFlags(&pFlags, cypHost_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pFlags)
*/
  }

  /* "cuda/bindings/runtime.pyx":20553
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pFlags)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_int(__pyx_v_pFlags); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 20553, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 20553, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20523
 *     return (_dict_cudaError_t[err], pDevice)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostGetFlags(pHost):
 *     """ Passes back flags used to allocate pinned host memory allocated by cudaHostAlloc.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaHostGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cypHost);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20555
 *     return (_dict_cudaError_t[err], pFlags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc3D(extent not None : cudaExtent):
 *     """ Allocates logical 1D, 2D, or 3D memory objects on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_205cudaMalloc3D(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_7runtime_204cudaMalloc3D, "cudaMalloc3D(cudaExtent extent: cudaExtent)\n\nAllocates logical 1D, 2D, or 3D memory objects on the device.\n\nAllocates at least `width` * `height` * `depth` bytes of linear memory\non the device and returns a :py:obj:`~.cudaPitchedPtr` in which `ptr`\nis a pointer to the allocated memory. The function may pad the\nallocation to ensure hardware alignment requirements are met. The pitch\nreturned in the `pitch` field of `pitchedDevPtr` is the width in bytes\nof the allocation.\n\nThe returned :py:obj:`~.cudaPitchedPtr` contains additional fields\n`xsize` and `ysize`, the logical width and height of the allocation,\nwhich are equivalent to the `width` and `height` `extent` parameters\nprovided by the programmer during allocation.\n\nFor allocations of 2D and 3D objects, it is highly recommended that\nprogrammers perform allocations using :py:obj:`~.cudaMalloc3D()` or\n:py:obj:`~.cudaMallocPitch()`. Due to alignment restrictions in the\nhardware, this is especially true if the application will be performing\nmemory copies involving 2D or 3D objects (whether linear memory or CUDA\narrays).\n\nParameters\n----------\nextent : :py:obj:`~.cudaExtent`\n    Requested allocation size (`width` field in bytes)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\npitchedDevPtr : :py:obj:`~.cudaPitchedPtr`\n    Pointer to allocated pitched device memory\n\nSee Also\n--------\n:py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.make_cudaPitchedPtr`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.cuMemAllocPitch`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_205cudaMalloc3D = {"cudaMalloc3D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_205cudaMalloc3D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_204cudaMalloc3D};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_205cudaMalloc3D(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent = 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("cudaMalloc3D (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_extent_2,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, 20555, __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, 20555, __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, "cudaMalloc3D", 0) < (0)) __PYX_ERR(0, 20555, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMalloc3D", 1, 1, 1, i); __PYX_ERR(0, 20555, __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, 20555, __pyx_L3_error)
    }
    __pyx_v_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMalloc3D", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20555, __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.runtime.cudaMalloc3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 20556, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_204cudaMalloc3D(__pyx_self, __pyx_v_extent);

  /* 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_7runtime_204cudaMalloc3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_pitchedDevPtr = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMalloc3D", 0);

  /* "cuda/bindings/runtime.pyx":20594
 *     :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMallocArray`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.make_cudaPitchedPtr`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.cuMemAllocPitch`
 *     """
 *     cdef cudaPitchedPtr pitchedDevPtr = cudaPitchedPtr()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMalloc3D(<cyruntime.cudaPitchedPtr*>pitchedDevPtr._pvt_ptr, extent._pvt_ptr[0])
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20594, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pitchedDevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20595
 *     """
 *     cdef cudaPitchedPtr pitchedDevPtr = cudaPitchedPtr()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMalloc3D(<cyruntime.cudaPitchedPtr*>pitchedDevPtr._pvt_ptr, extent._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20596
 *     cdef cudaPitchedPtr pitchedDevPtr = cudaPitchedPtr()
 *     with nogil:
 *         err = cyruntime.cudaMalloc3D(<cyruntime.cudaPitchedPtr*>pitchedDevPtr._pvt_ptr, extent._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc3D(((struct cudaPitchedPtr *)__pyx_v_pitchedDevPtr->_pvt_ptr), (__pyx_v_extent->_pvt_ptr[0])); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20596, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":20595
 *     """
 *     cdef cudaPitchedPtr pitchedDevPtr = cudaPitchedPtr()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMalloc3D(<cyruntime.cudaPitchedPtr*>pitchedDevPtr._pvt_ptr, extent._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20597
 *     with nogil:
 *         err = cyruntime.cudaMalloc3D(<cyruntime.cudaPitchedPtr*>pitchedDevPtr._pvt_ptr, extent._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pitchedDevPtr)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":20598
 *         err = cyruntime.cudaMalloc3D(<cyruntime.cudaPitchedPtr*>pitchedDevPtr._pvt_ptr, extent._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pitchedDevPtr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20598, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 20598, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 20598, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20597
 *     with nogil:
 *         err = cyruntime.cudaMalloc3D(<cyruntime.cudaPitchedPtr*>pitchedDevPtr._pvt_ptr, extent._pvt_ptr[0])
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pitchedDevPtr)
*/
  }

  /* "cuda/bindings/runtime.pyx":20599
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pitchedDevPtr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 20599, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pitchedDevPtr);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pitchedDevPtr);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_pitchedDevPtr)) != (0)) __PYX_ERR(0, 20599, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20555
 *     return (_dict_cudaError_t[err], pFlags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc3D(extent not None : cudaExtent):
 *     """ Allocates logical 1D, 2D, or 3D memory objects on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMalloc3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pitchedDevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20601
 *     return (_dict_cudaError_t[err], pitchedDevPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc3DArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int flags):
 *     """ Allocate an array on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_207cudaMalloc3DArray(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_7runtime_206cudaMalloc3DArray, "cudaMalloc3DArray(cudaChannelFormatDesc desc: Optional[cudaChannelFormatDesc], cudaExtent extent: cudaExtent, unsigned int flags)\n\nAllocate an array on the device.\n\nAllocates a CUDA array according to the\n:py:obj:`~.cudaChannelFormatDesc` structure `desc` and returns a handle\nto the new CUDA array in `*array`.\n\nThe :py:obj:`~.cudaChannelFormatDesc` is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere :py:obj:`~.cudaChannelFormatKind` is one of\n:py:obj:`~.cudaChannelFormatKindSigned`,\n:py:obj:`~.cudaChannelFormatKindUnsigned`, or\n:py:obj:`~.cudaChannelFormatKindFloat`.\n\n:py:obj:`~.cudaMalloc3DArray()` can allocate the following:\n\n- A 1D array is allocated if the height and depth extents are both\n  zero.\n\n- A 2D array is allocated if only the depth extent is zero.\n\n- A 3D array is allocated if all three extents are non-zero.\n\n- A 1D layered CUDA array is allocated if only the height extent is\n  zero and the cudaArrayLayered flag is set. Each layer is a 1D array.\n  The number of layers is determined by the depth extent.\n\n- A 2D layered CUDA array is allocated if all three extents are non-\n  zero and the cudaArrayLayered flag is set. Each layer is a 2D array.\n  The number of layers is determined by the depth extent.\n\n- A cubemap CUDA array is allocated if all three extents are non-zero\n  and the cudaArrayCubemap flag is set. Width must be equal to height,\n  and depth must be six. A cubemap is a special type of 2D layered CUDA\n  array, where the six layers represent the six faces of a cube. The\n  order of the six layers in memory is the same as that listed in\n  :py:obj:`~.cudaGraphicsCubeFace`.\n\n- A cubemap layered CUDA array is allocated if all three extents are\n  non-zero, and both, cudaArrayCubemap and cudaArrayLayered flags are\n  set. Width must be equal to height, and depth must be a multiple of\n  six. A cubemap layered CUDA array is a special type of 2D layered\n  CUDA array that consists of a"" collection of cubemaps. The first six\n  layers represent the first cubemap, the next six layers form the\n  second cubemap, and so on.\n\nThe `flags` parameter enables different options to be specified that\naffect the allocation, as follows.\n\n- :py:obj:`~.cudaArrayDefault`: This flag's value is defined to be 0\n  and provides default array allocation\n\n- :py:obj:`~.cudaArrayLayered`: Allocates a layered CUDA array, with\n  the depth extent indicating the number of layers\n\n- :py:obj:`~.cudaArrayCubemap`: Allocates a cubemap CUDA array. Width\n  must be equal to height, and depth must be six. If the\n  cudaArrayLayered flag is also set, depth must be a multiple of six.\n\n- :py:obj:`~.cudaArraySurfaceLoadStore`: Allocates a CUDA array that\n  could be read from or written to using a surface reference.\n\n- :py:obj:`~.cudaArrayTextureGather`: This flag indicates that texture\n  gather operations will be performed on the CUDA array. Texture gather\n  can only be performed on 2D CUDA arrays.\n\n- :py:obj:`~.cudaArraySparse`: Allocates a CUDA array without physical\n  backing memory. The subregions within this sparse array can later be\n  mapped onto a physical memory allocation by calling\n  :py:obj:`~.cuMemMapArrayAsync`. This flag can only be used for\n  creating 2D, 3D or 2D layered sparse CUDA arrays. The physical\n  backing memory must be allocated via :py:obj:`~.cuMemCreate`.\n\n- :py:obj:`~.cudaArrayDeferredMapping`: Allocates a CUDA array without\n  physical backing memory. The entire array can later be mapped onto a\n  physical memory allocation by calling :py:obj:`~.cuMemMapArrayAsync`.\n  The physical backing memory must be allocated via\n  :py:obj:`~.cuMemCreate`.\n\nThe width, height and depth extents must meet certain size requirements\nas listed in the following table. All values are specified in elements.\n\nNote that 2D CUDA arrays have different size requirements if the\n:py:obj:`~.cudaArrayTextureGather` flag is set. In that case, the valid""\nrange for (width, height, depth) is ((1,maxTexture2DGather[0]),\n(1,maxTexture2DGather[1]), 0).\n\n**View CUDA Toolkit Documentation for a table example**\n\nParameters\n----------\ndesc : :py:obj:`~.cudaChannelFormatDesc`\n    Requested channel format\nextent : :py:obj:`~.cudaExtent`\n    Requested allocation size (`width` field in elements)\nflags : unsigned int\n    Flags for extensions\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\narray : :py:obj:`~.cudaArray_t`\n    Pointer to allocated array in device memory\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.cuArray3DCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_207cudaMalloc3DArray = {"cudaMalloc3DArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_207cudaMalloc3DArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_206cudaMalloc3DArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_207cudaMalloc3DArray(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMalloc3DArray (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_desc_2,&__pyx_mstate_global->__pyx_n_u_extent_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 20601, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 20601, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20601, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20601, __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, "cudaMalloc3DArray", 0) < (0)) __PYX_ERR(0, 20601, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMalloc3DArray", 1, 3, 3, i); __PYX_ERR(0, 20601, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 20601, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20601, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 20601, __pyx_L3_error)
    }
    __pyx_v_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)values[0]);
    __pyx_v_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)values[1]);
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20602, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMalloc3DArray", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 20601, __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.runtime.cudaMalloc3DArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_desc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, 1, "desc", 0))) __PYX_ERR(0, 20602, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 20602, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_206cudaMalloc3DArray(__pyx_self, __pyx_v_desc, __pyx_v_extent, __pyx_v_flags);

  /* 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_7runtime_206cudaMalloc3DArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_array = 0;
  struct cudaChannelFormatDesc *__pyx_v_cydesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaChannelFormatDesc *__pyx_t_4;
  int __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMalloc3DArray", 0);

  /* "cuda/bindings/runtime.pyx":20713
 *     :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.cuArray3DCreate`
 *     """
 *     cdef cudaArray_t array = cudaArray_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20713, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20714
 *     """
 *     cdef cudaArray_t array = cudaArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMalloc3DArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], flags)
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_desc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_desc->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cydesc_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":20715
 *     cdef cudaArray_t array = cudaArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMalloc3DArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20716
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMalloc3DArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc3DArray(((cudaArray_t *)__pyx_v_array->_pvt_ptr), __pyx_v_cydesc_ptr, (__pyx_v_extent->_pvt_ptr[0]), __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20716, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":20715
 *     cdef cudaArray_t array = cudaArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMalloc3DArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20717
 *     with nogil:
 *         err = cyruntime.cudaMalloc3DArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":20718
 *         err = cyruntime.cudaMalloc3DArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], array)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 20718, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 20718, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20717
 *     with nogil:
 *         err = cyruntime.cudaMalloc3DArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)
*/
  }

  /* "cuda/bindings/runtime.pyx":20719
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 20719, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_array);
  __Pyx_GIVEREF((PyObject *)__pyx_v_array);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_array)) != (0)) __PYX_ERR(0, 20719, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20601
 *     return (_dict_cudaError_t[err], pitchedDevPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc3DArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int flags):
 *     """ Allocate an array on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMalloc3DArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_array);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20721
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocMipmappedArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int numLevels, unsigned int flags):
 *     """ Allocate a mipmapped array on the device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_209cudaMallocMipmappedArray(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_7runtime_208cudaMallocMipmappedArray, "cudaMallocMipmappedArray(cudaChannelFormatDesc desc: Optional[cudaChannelFormatDesc], cudaExtent extent: cudaExtent, unsigned int numLevels, unsigned int flags)\n\nAllocate a mipmapped array on the device.\n\nAllocates a CUDA mipmapped array according to the\n:py:obj:`~.cudaChannelFormatDesc` structure `desc` and returns a handle\nto the new CUDA mipmapped array in `*mipmappedArray`. `numLevels`\nspecifies the number of mipmap levels to be allocated. This value is\nclamped to the range [1, 1 + floor(log2(max(width, height, depth)))].\n\nThe :py:obj:`~.cudaChannelFormatDesc` is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere :py:obj:`~.cudaChannelFormatKind` is one of\n:py:obj:`~.cudaChannelFormatKindSigned`,\n:py:obj:`~.cudaChannelFormatKindUnsigned`, or\n:py:obj:`~.cudaChannelFormatKindFloat`.\n\n:py:obj:`~.cudaMallocMipmappedArray()` can allocate the following:\n\n- A 1D mipmapped array is allocated if the height and depth extents are\n  both zero.\n\n- A 2D mipmapped array is allocated if only the depth extent is zero.\n\n- A 3D mipmapped array is allocated if all three extents are non-zero.\n\n- A 1D layered CUDA mipmapped array is allocated if only the height\n  extent is zero and the cudaArrayLayered flag is set. Each layer is a\n  1D mipmapped array. The number of layers is determined by the depth\n  extent.\n\n- A 2D layered CUDA mipmapped array is allocated if all three extents\n  are non-zero and the cudaArrayLayered flag is set. Each layer is a 2D\n  mipmapped array. The number of layers is determined by the depth\n  extent.\n\n- A cubemap CUDA mipmapped array is allocated if all three extents are\n  non-zero and the cudaArrayCubemap flag is set. Width must be equal to\n  height, and depth must be six. The order of the six layers in memory\n  is the same as that listed in :py:obj:`~.cudaGraphicsCubeFace`.\n\n- A cubemap layered CUDA mipmapped array is allocated if all three\n  extents are non-zero, and both, cudaArrayCub""emap and cudaArrayLayered\n  flags are set. Width must be equal to height, and depth must be a\n  multiple of six. A cubemap layered CUDA mipmapped array is a special\n  type of 2D layered CUDA mipmapped array that consists of a collection\n  of cubemap mipmapped arrays. The first six layers represent the first\n  cubemap mipmapped array, the next six layers form the second cubemap\n  mipmapped array, and so on.\n\nThe `flags` parameter enables different options to be specified that\naffect the allocation, as follows.\n\n- :py:obj:`~.cudaArrayDefault`: This flag's value is defined to be 0\n  and provides default mipmapped array allocation\n\n- :py:obj:`~.cudaArrayLayered`: Allocates a layered CUDA mipmapped\n  array, with the depth extent indicating the number of layers\n\n- :py:obj:`~.cudaArrayCubemap`: Allocates a cubemap CUDA mipmapped\n  array. Width must be equal to height, and depth must be six. If the\n  cudaArrayLayered flag is also set, depth must be a multiple of six.\n\n- :py:obj:`~.cudaArraySurfaceLoadStore`: This flag indicates that\n  individual mipmap levels of the CUDA mipmapped array will be read\n  from or written to using a surface reference.\n\n- :py:obj:`~.cudaArrayTextureGather`: This flag indicates that texture\n  gather operations will be performed on the CUDA array. Texture gather\n  can only be performed on 2D CUDA mipmapped arrays, and the gather\n  operations are performed only on the most detailed mipmap level.\n\n- :py:obj:`~.cudaArraySparse`: Allocates a CUDA mipmapped array without\n  physical backing memory. The subregions within this sparse array can\n  later be mapped onto a physical memory allocation by calling\n  :py:obj:`~.cuMemMapArrayAsync`. This flag can only be used for\n  creating 2D, 3D or 2D layered sparse CUDA mipmapped arrays. The\n  physical backing memory must be allocated via\n  :py:obj:`~.cuMemCreate`.\n\n- :py:obj:`~.cudaArrayDeferredMapping`: Allocates a CUDA mipmapped\n  array without physical backing memory. The"" entire array can later be\n  mapped onto a physical memory allocation by calling\n  :py:obj:`~.cuMemMapArrayAsync`. The physical backing memory must be\n  allocated via :py:obj:`~.cuMemCreate`.\n\nThe width, height and depth extents must meet certain size requirements\nas listed in the following table. All values are specified in elements.\n\n**View CUDA Toolkit Documentation for a table example**\n\nParameters\n----------\ndesc : :py:obj:`~.cudaChannelFormatDesc`\n    Requested channel format\nextent : :py:obj:`~.cudaExtent`\n    Requested allocation size (`width` field in elements)\nnumLevels : unsigned int\n    Number of mipmap levels to allocate\nflags : unsigned int\n    Flags for extensions\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\nmipmappedArray : :py:obj:`~.cudaMipmappedArray_t`\n    Pointer to allocated mipmapped array in device memory\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.cuMipmappedArrayCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_209cudaMallocMipmappedArray = {"cudaMallocMipmappedArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_209cudaMallocMipmappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_208cudaMallocMipmappedArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_209cudaMallocMipmappedArray(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent = 0;
  unsigned int __pyx_v_numLevels;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMallocMipmappedArray (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_desc_2,&__pyx_mstate_global->__pyx_n_u_extent_2,&__pyx_mstate_global->__pyx_n_u_numLevels_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 20721, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 20721, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 20721, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20721, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20721, __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, "cudaMallocMipmappedArray", 0) < (0)) __PYX_ERR(0, 20721, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMallocMipmappedArray", 1, 4, 4, i); __PYX_ERR(0, 20721, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 20721, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20721, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 20721, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 20721, __pyx_L3_error)
    }
    __pyx_v_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)values[0]);
    __pyx_v_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)values[1]);
    __pyx_v_numLevels = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_numLevels == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20722, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20722, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMallocMipmappedArray", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 20721, __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.runtime.cudaMallocMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_desc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, 1, "desc", 0))) __PYX_ERR(0, 20722, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 20722, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_208cudaMallocMipmappedArray(__pyx_self, __pyx_v_desc, __pyx_v_extent, __pyx_v_numLevels, __pyx_v_flags);

  /* 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_7runtime_208cudaMallocMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent, unsigned int __pyx_v_numLevels, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_mipmappedArray = 0;
  struct cudaChannelFormatDesc *__pyx_v_cydesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaChannelFormatDesc *__pyx_t_4;
  int __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMallocMipmappedArray", 0);

  /* "cuda/bindings/runtime.pyx":20836
 *     :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.cuMipmappedArrayCreate`
 *     """
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20836, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_mipmappedArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":20837
 *     """
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMallocMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], numLevels, flags)
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_desc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_desc->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cydesc_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":20838
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], numLevels, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20839
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMallocMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], numLevels, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMallocMipmappedArray(((cudaMipmappedArray_t *)__pyx_v_mipmappedArray->_pvt_ptr), __pyx_v_cydesc_ptr, (__pyx_v_extent->_pvt_ptr[0]), __pyx_v_numLevels, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20839, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":20838
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()
 *     cdef cyruntime.cudaChannelFormatDesc* cydesc_ptr = desc._pvt_ptr if desc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], numLevels, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20840
 *     with nogil:
 *         err = cyruntime.cudaMallocMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], numLevels, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmappedArray)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":20841
 *         err = cyruntime.cudaMallocMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], numLevels, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], mipmappedArray)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20841, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20841, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20841, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20841, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 20841, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 20841, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20840
 *     with nogil:
 *         err = cyruntime.cudaMallocMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cydesc_ptr, extent._pvt_ptr[0], numLevels, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmappedArray)
*/
  }

  /* "cuda/bindings/runtime.pyx":20842
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmappedArray)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 20842, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_mipmappedArray);
  __Pyx_GIVEREF((PyObject *)__pyx_v_mipmappedArray);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_mipmappedArray)) != (0)) __PYX_ERR(0, 20842, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20721
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocMipmappedArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int numLevels, unsigned int flags):
 *     """ Allocate a mipmapped array on the device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMallocMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_mipmappedArray);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20844
 *     return (_dict_cudaError_t[err], mipmappedArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level):
 *     """ Gets a mipmap level of a CUDA mipmapped array.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_211cudaGetMipmappedArrayLevel(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_7runtime_210cudaGetMipmappedArrayLevel, "cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level)\n\nGets a mipmap level of a CUDA mipmapped array.\n\nReturns in `*levelArray` a CUDA array that represents a single mipmap\nlevel of the CUDA mipmapped array `mipmappedArray`.\n\nIf `level` is greater than the maximum number of levels in this\nmipmapped array, :py:obj:`~.cudaErrorInvalidValue` is returned.\n\nIf `mipmappedArray` is NULL, :py:obj:`~.cudaErrorInvalidResourceHandle`\nis returned.\n\nParameters\n----------\nmipmappedArray : :py:obj:`~.cudaMipmappedArray_const_t`\n    CUDA mipmapped array\nlevel : unsigned int\n    Mipmap level\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorInvalidResourceHandle`\nlevelArray : :py:obj:`~.cudaArray_t`\n    Returned mipmap level CUDA array\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc`, :py:obj:`~.cudaMallocPitch`, :py:obj:`~.cudaFree`, :py:obj:`~.cudaFreeArray`, :py:obj:`~.cudaMallocHost (C API)`, :py:obj:`~.cudaFreeHost`, :py:obj:`~.cudaHostAlloc`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.cuMipmappedArrayGetLevel`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_211cudaGetMipmappedArrayLevel = {"cudaGetMipmappedArrayLevel", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_211cudaGetMipmappedArrayLevel, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_210cudaGetMipmappedArrayLevel};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_211cudaGetMipmappedArrayLevel(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_mipmappedArray = 0;
  unsigned int __pyx_v_level;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGetMipmappedArrayLevel (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_mipmappedArray,&__pyx_mstate_global->__pyx_n_u_level,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, 20844, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20844, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 20844, __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, "cudaGetMipmappedArrayLevel", 0) < (0)) __PYX_ERR(0, 20844, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetMipmappedArrayLevel", 1, 2, 2, i); __PYX_ERR(0, 20844, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 20844, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 20844, __pyx_L3_error)
    }
    __pyx_v_mipmappedArray = values[0];
    __pyx_v_level = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_level == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 20845, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetMipmappedArrayLevel", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 20844, __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.runtime.cudaGetMipmappedArrayLevel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_210cudaGetMipmappedArrayLevel(__pyx_self, __pyx_v_mipmappedArray, __pyx_v_level);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_210cudaGetMipmappedArrayLevel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmappedArray, unsigned int __pyx_v_level) {
  cudaMipmappedArray_const_t __pyx_v_cymipmappedArray;
  PyObject *__pyx_v_pmipmappedArray = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_levelArray = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetMipmappedArrayLevel", 0);

  /* "cuda/bindings/runtime.pyx":20876
 *     """
 *     cdef cyruntime.cudaMipmappedArray_const_t cymipmappedArray
 *     if mipmappedArray is None:             # <<<<<<<<<<<<<<
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)):
*/
  __pyx_t_1 = (__pyx_v_mipmappedArray == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":20877
 *     cdef cyruntime.cudaMipmappedArray_const_t cymipmappedArray
 *     if mipmappedArray is None:
 *         pmipmappedArray = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)):
 *         pmipmappedArray = int(mipmappedArray)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmipmappedArray = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":20876
 *     """
 *     cdef cyruntime.cudaMipmappedArray_const_t cymipmappedArray
 *     if mipmappedArray is None:             # <<<<<<<<<<<<<<
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":20878
 *     if mipmappedArray is None:
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)):             # <<<<<<<<<<<<<<
 *         pmipmappedArray = int(mipmappedArray)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmappedArray, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":20879
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)):
 *         pmipmappedArray = int(mipmappedArray)             # <<<<<<<<<<<<<<
 *     else:
 *         pmipmappedArray = int(cudaMipmappedArray_const_t(mipmappedArray))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmappedArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pmipmappedArray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":20878
 *     if mipmappedArray is None:
 *         pmipmappedArray = 0
 *     elif isinstance(mipmappedArray, (cudaMipmappedArray_const_t,)):             # <<<<<<<<<<<<<<
 *         pmipmappedArray = int(mipmappedArray)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":20881
 *         pmipmappedArray = int(mipmappedArray)
 *     else:
 *         pmipmappedArray = int(cudaMipmappedArray_const_t(mipmappedArray))             # <<<<<<<<<<<<<<
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_const_t><void_ptr>pmipmappedArray
 *     cdef cudaArray_t levelArray = cudaArray_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_mipmappedArray};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20881, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pmipmappedArray = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":20882
 *     else:
 *         pmipmappedArray = int(cudaMipmappedArray_const_t(mipmappedArray))
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_const_t><void_ptr>pmipmappedArray             # <<<<<<<<<<<<<<
 *     cdef cudaArray_t levelArray = cudaArray_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmappedArray); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 20882, __pyx_L1_error)
  __pyx_v_cymipmappedArray = ((cudaMipmappedArray_const_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":20883
 *         pmipmappedArray = int(cudaMipmappedArray_const_t(mipmappedArray))
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_const_t><void_ptr>pmipmappedArray
 *     cdef cudaArray_t levelArray = cudaArray_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetMipmappedArrayLevel(<cyruntime.cudaArray_t*>levelArray._pvt_ptr, cymipmappedArray, level)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20883, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_levelArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":20884
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_const_t><void_ptr>pmipmappedArray
 *     cdef cudaArray_t levelArray = cudaArray_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetMipmappedArrayLevel(<cyruntime.cudaArray_t*>levelArray._pvt_ptr, cymipmappedArray, level)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20885
 *     cdef cudaArray_t levelArray = cudaArray_t()
 *     with nogil:
 *         err = cyruntime.cudaGetMipmappedArrayLevel(<cyruntime.cudaArray_t*>levelArray._pvt_ptr, cymipmappedArray, level)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetMipmappedArrayLevel(((cudaArray_t *)__pyx_v_levelArray->_pvt_ptr), __pyx_v_cymipmappedArray, __pyx_v_level); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20885, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":20884
 *     cymipmappedArray = <cyruntime.cudaMipmappedArray_const_t><void_ptr>pmipmappedArray
 *     cdef cudaArray_t levelArray = cudaArray_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetMipmappedArrayLevel(<cyruntime.cudaArray_t*>levelArray._pvt_ptr, cymipmappedArray, level)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20886
 *     with nogil:
 *         err = cyruntime.cudaGetMipmappedArrayLevel(<cyruntime.cudaArray_t*>levelArray._pvt_ptr, cymipmappedArray, level)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], levelArray)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":20887
 *         err = cyruntime.cudaGetMipmappedArrayLevel(<cyruntime.cudaArray_t*>levelArray._pvt_ptr, cymipmappedArray, level)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], levelArray)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20887, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20887, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20887, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20887, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 20887, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 20887, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":20886
 *     with nogil:
 *         err = cyruntime.cudaGetMipmappedArrayLevel(<cyruntime.cudaArray_t*>levelArray._pvt_ptr, cymipmappedArray, level)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], levelArray)
*/
  }

  /* "cuda/bindings/runtime.pyx":20888
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], levelArray)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 20888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 20888, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_levelArray);
  __Pyx_GIVEREF((PyObject *)__pyx_v_levelArray);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_levelArray)) != (0)) __PYX_ERR(0, 20888, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20844
 *     return (_dict_cudaError_t[err], mipmappedArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level):
 *     """ Gets a mipmap level of a CUDA mipmapped array.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetMipmappedArrayLevel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmipmappedArray);
  __Pyx_XDECREF((PyObject *)__pyx_v_levelArray);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20890
 *     return (_dict_cudaError_t[err], levelArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]):
 *     """ Copies data between 3D objects.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_213cudaMemcpy3D(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_7runtime_212cudaMemcpy3D, "cudaMemcpy3D(cudaMemcpy3DParms p: Optional[cudaMemcpy3DParms])\n\nCopies data between 3D objects.\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\n:py:obj:`~.cudaMemcpy3D()` copies data betwen two 3D objects. The\nsource and destination objects may be in either host memory, device\nmemory, or a CUDA array. The source, destination, extent, and kind of\ncopy performed is specified by the :py:obj:`~.cudaMemcpy3DParms` struct\nwhich should be initialized to zero before use:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nThe struct passed to :py:obj:`~.cudaMemcpy3D()` must specify one of\n`srcArray` or `srcPtr` and one of `dstArray` or `dstPtr`. Passing more\nthan one non-zero source or destination will cause\n:py:obj:`~.cudaMemcpy3D()` to return an error.\n\nThe `srcPos` and `dstPos` fields are optional offsets into the source\nand destination objects and are defined in units of each object's\nelements. The element for a host or device pointer is assumed to be\nunsigned char.\n\nThe `extent` field defines the dimensions of the transferred area in\nelements. If a CUDA array is participating in the copy, the extent is\ndefined in terms of that array's elements. If no CUDA array is\nparticipating in the copy then the extents are defined in elements of\nunsigned char.\n\nThe `kind` field defines the direction of the copy. It must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. For :py:obj:`~.cudaMemcpyHostToHost` or\n:py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:`~.cudaMemcpyDeviceToHost` passed as kind and cudaArray type\npassed as source or destination, if the kind"" implies cudaArray type to\nbe present on the host, :py:obj:`~.cudaMemcpy3D()` will disregard that\nimplication and silently correct the kind based on the fact that\ncudaArray type can only be present on the device.\n\nIf the source and destination are both arrays,\n:py:obj:`~.cudaMemcpy3D()` will return an error if they do not have the\nsame element size.\n\nThe source and destination object may not overlap. If overlapping\nsource and destination objects are specified, undefined behavior will\nresult.\n\nThe source object must entirely contain the region defined by `srcPos`\nand `extent`. The destination object must entirely contain the region\ndefined by `dstPos` and `extent`.\n\n:py:obj:`~.cudaMemcpy3D()` returns an error if the pitch of `srcPtr` or\n`dstPtr` exceeds the maximum allowed. The pitch of a\n:py:obj:`~.cudaPitchedPtr` allocated with :py:obj:`~.cudaMalloc3D()`\nwill always be valid.\n\nParameters\n----------\np : :py:obj:`~.cudaMemcpy3DParms`\n    3D memory copy parameters\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMemcpy3DAsync`, :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.make_cudaPos`, :py:obj:`~.cuMemcpy3D`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_213cudaMemcpy3D = {"cudaMemcpy3D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_213cudaMemcpy3D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_212cudaMemcpy3D};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_213cudaMemcpy3D(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_p = 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("cudaMemcpy3D (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_p,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, 20890, __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, 20890, __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, "cudaMemcpy3D", 0) < (0)) __PYX_ERR(0, 20890, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy3D", 1, 1, 1, i); __PYX_ERR(0, 20890, __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, 20890, __pyx_L3_error)
    }
    __pyx_v_p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy3D", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20890, __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.runtime.cudaMemcpy3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, 1, "p", 0))) __PYX_ERR(0, 20891, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_212cudaMemcpy3D(__pyx_self, __pyx_v_p);

  /* 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_7runtime_212cudaMemcpy3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_p) {
  struct cudaMemcpy3DParms *__pyx_v_cyp_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct cudaMemcpy3DParms *__pyx_t_1;
  int __pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy3D", 0);

  /* "cuda/bindings/runtime.pyx":20966
 *     :py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMemcpy3DAsync`, :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.make_cudaPos`, :py:obj:`~.cuMemcpy3D`
 *     """
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3D(cyp_ptr)
*/
  __pyx_t_2 = (((PyObject *)__pyx_v_p) != Py_None);
  if (__pyx_t_2) {
    __pyx_t_1 = __pyx_v_p->_pvt_ptr;
  } else {
    __pyx_t_1 = NULL;
  }
  __pyx_v_cyp_ptr = __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":20967
 *     """
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3D(cyp_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":20968
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3D(cyp_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3D(__pyx_v_cyp_ptr); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 20968, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":20967
 *     """
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3D(cyp_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":20969
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3D(cyp_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 20969, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20890
 *     return (_dict_cudaError_t[err], levelArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]):
 *     """ Copies data between 3D objects.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":20971
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]):
 *     """ Copies memory between devices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_215cudaMemcpy3DPeer(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_7runtime_214cudaMemcpy3DPeer, "cudaMemcpy3DPeer(cudaMemcpy3DPeerParms p: Optional[cudaMemcpy3DPeerParms])\n\nCopies memory between devices.\n\nPerform a 3D memory copy according to the parameters specified in `p`.\nSee the definition of the :py:obj:`~.cudaMemcpy3DPeerParms` structure\nfor documentation of its parameters.\n\nNote that this function is synchronous with respect to the host only if\nthe source or destination of the transfer is host memory. Note also\nthat this copy is serialized with respect to all pending and future\nasynchronous work in to the current device, the copy's source device,\nand the copy's destination device (use\n:py:obj:`~.cudaMemcpy3DPeerAsync` to avoid this synchronization).\n\nParameters\n----------\np : :py:obj:`~.cudaMemcpy3DPeerParms`\n    Parameters for the memory copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidPitchValue`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpy3DPeer`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_215cudaMemcpy3DPeer = {"cudaMemcpy3DPeer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_215cudaMemcpy3DPeer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_214cudaMemcpy3DPeer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_215cudaMemcpy3DPeer(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_p = 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("cudaMemcpy3DPeer (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_p,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, 20971, __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, 20971, __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, "cudaMemcpy3DPeer", 0) < (0)) __PYX_ERR(0, 20971, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DPeer", 1, 1, 1, i); __PYX_ERR(0, 20971, __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, 20971, __pyx_L3_error)
    }
    __pyx_v_p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DPeer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 20971, __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.runtime.cudaMemcpy3DPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, 1, "p", 0))) __PYX_ERR(0, 20972, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_214cudaMemcpy3DPeer(__pyx_self, __pyx_v_p);

  /* 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_7runtime_214cudaMemcpy3DPeer(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_p) {
  struct cudaMemcpy3DPeerParms *__pyx_v_cyp_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct cudaMemcpy3DPeerParms *__pyx_t_1;
  int __pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy3DPeer", 0);

  /* "cuda/bindings/runtime.pyx":21000
 *     :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpy3DPeer`
 *     """
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DPeer(cyp_ptr)
*/
  __pyx_t_2 = (((PyObject *)__pyx_v_p) != Py_None);
  if (__pyx_t_2) {
    __pyx_t_1 = __pyx_v_p->_pvt_ptr;
  } else {
    __pyx_t_1 = NULL;
  }
  __pyx_v_cyp_ptr = __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":21001
 *     """
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3DPeer(cyp_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21002
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DPeer(cyp_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DPeer(__pyx_v_cyp_ptr); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21002, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":21001
 *     """
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3DPeer(cyp_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21003
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DPeer(cyp_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 21003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 21003, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":20971
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]):
 *     """ Copies memory between devices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21005
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream):
 *     """ Copies data between 3D objects.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_217cudaMemcpy3DAsync(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_7runtime_216cudaMemcpy3DAsync, "cudaMemcpy3DAsync(cudaMemcpy3DParms p: Optional[cudaMemcpy3DParms], stream)\n\nCopies data between 3D objects.\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\n:py:obj:`~.cudaMemcpy3DAsync()` copies data betwen two 3D objects. The\nsource and destination objects may be in either host memory, device\nmemory, or a CUDA array. The source, destination, extent, and kind of\ncopy performed is specified by the :py:obj:`~.cudaMemcpy3DParms` struct\nwhich should be initialized to zero before use:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nThe struct passed to :py:obj:`~.cudaMemcpy3DAsync()` must specify one\nof `srcArray` or `srcPtr` and one of `dstArray` or `dstPtr`. Passing\nmore than one non-zero source or destination will cause\n:py:obj:`~.cudaMemcpy3DAsync()` to return an error.\n\nThe `srcPos` and `dstPos` fields are optional offsets into the source\nand destination objects and are defined in units of each object's\nelements. The element for a host or device pointer is assumed to be\nunsigned char. For CUDA arrays, positions must be in the range [0,\n2048) for any dimension.\n\nThe `extent` field defines the dimensions of the transferred area in\nelements. If a CUDA array is participating in the copy, the extent is\ndefined in terms of that array's elements. If no CUDA array is\nparticipating in the copy then the extents are defined in elements of\nunsigned char.\n\nThe `kind` field defines the direction of the copy. It must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. For :py:obj:`~.cudaMemcpyHostToHost` or\n:py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:""`~.cudaMemcpyDeviceToHost` passed as kind and cudaArray type\npassed as source or destination, if the kind implies cudaArray type to\nbe present on the host, :py:obj:`~.cudaMemcpy3DAsync()` will disregard\nthat implication and silently correct the kind based on the fact that\ncudaArray type can only be present on the device.\n\nIf the source and destination are both arrays,\n:py:obj:`~.cudaMemcpy3DAsync()` will return an error if they do not\nhave the same element size.\n\nThe source and destination object may not overlap. If overlapping\nsource and destination objects are specified, undefined behavior will\nresult.\n\nThe source object must lie entirely within the region defined by\n`srcPos` and `extent`. The destination object must lie entirely within\nthe region defined by `dstPos` and `extent`.\n\n:py:obj:`~.cudaMemcpy3DAsync()` returns an error if the pitch of\n`srcPtr` or `dstPtr` exceeds the maximum allowed. The pitch of a\n:py:obj:`~.cudaPitchedPtr` allocated with :py:obj:`~.cudaMalloc3D()`\nwill always be valid.\n\n:py:obj:`~.cudaMemcpy3DAsync()` is asynchronous with respect to the\nhost, so the call may return before the copy is complete. The copy can\noptionally be associated to a stream by passing a non-zero `stream`\nargument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\nmay overlap with operations in other streams.\n\nThe device version of this function only handles device to device\ncopies and cannot be given local or shared pointers.\n\nParameters\n----------\np : :py:obj:`~.cudaMemcpy3DParms`\n    3D memory copy parameters\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMalloc3D`, :py:obj:`~.cudaMalloc3DArray`, :py:obj:`~.c""udaMemset3D`, :py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, ::::py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.make_cudaExtent`, :py:obj:`~.make_cudaPos`, :py:obj:`~.cuMemcpy3DAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_217cudaMemcpy3DAsync = {"cudaMemcpy3DAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_217cudaMemcpy3DAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_216cudaMemcpy3DAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_217cudaMemcpy3DAsync(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_p = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy3DAsync (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_p,&__pyx_mstate_global->__pyx_n_u_stream,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, 21005, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21005, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21005, __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, "cudaMemcpy3DAsync", 0) < (0)) __PYX_ERR(0, 21005, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DAsync", 1, 2, 2, i); __PYX_ERR(0, 21005, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 21005, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21005, __pyx_L3_error)
    }
    __pyx_v_p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)values[0]);
    __pyx_v_stream = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DAsync", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 21005, __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.runtime.cudaMemcpy3DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, 1, "p", 0))) __PYX_ERR(0, 21006, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_216cudaMemcpy3DAsync(__pyx_self, __pyx_v_p, __pyx_v_stream);

  /* 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_7runtime_216cudaMemcpy3DAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_p, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct cudaMemcpy3DParms *__pyx_v_cyp_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemcpy3DParms *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy3DAsync", 0);

  /* "cuda/bindings/runtime.pyx":21095
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21096
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21095
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21097
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21098
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21098, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":21097
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21100
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21100, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21101
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21101, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":21102
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DAsync(cyp_ptr, cystream)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_p) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_p->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cyp_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":21103
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3DAsync(cyp_ptr, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21104
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DAsync(cyp_ptr, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DAsync(__pyx_v_cyp_ptr, __pyx_v_cystream); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21104, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":21103
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemcpy3DParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3DAsync(cyp_ptr, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21105
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DAsync(cyp_ptr, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 21105, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21005
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream):
 *     """ Copies data between 3D objects.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21107
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream):
 *     """ Copies memory between devices asynchronously.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_219cudaMemcpy3DPeerAsync(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_7runtime_218cudaMemcpy3DPeerAsync, "cudaMemcpy3DPeerAsync(cudaMemcpy3DPeerParms p: Optional[cudaMemcpy3DPeerParms], stream)\n\nCopies memory between devices asynchronously.\n\nPerform a 3D memory copy according to the parameters specified in `p`.\nSee the definition of the :py:obj:`~.cudaMemcpy3DPeerParms` structure\nfor documentation of its parameters.\n\nParameters\n----------\np : :py:obj:`~.cudaMemcpy3DPeerParms`\n    Parameters for the memory copy\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidPitchValue`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpy3DPeerAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_219cudaMemcpy3DPeerAsync = {"cudaMemcpy3DPeerAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_219cudaMemcpy3DPeerAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_218cudaMemcpy3DPeerAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_219cudaMemcpy3DPeerAsync(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_p = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy3DPeerAsync (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_p,&__pyx_mstate_global->__pyx_n_u_stream,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, 21107, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21107, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21107, __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, "cudaMemcpy3DPeerAsync", 0) < (0)) __PYX_ERR(0, 21107, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DPeerAsync", 1, 2, 2, i); __PYX_ERR(0, 21107, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 21107, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21107, __pyx_L3_error)
    }
    __pyx_v_p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)values[0]);
    __pyx_v_stream = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DPeerAsync", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 21107, __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.runtime.cudaMemcpy3DPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, 1, "p", 0))) __PYX_ERR(0, 21108, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_218cudaMemcpy3DPeerAsync(__pyx_self, __pyx_v_p, __pyx_v_stream);

  /* 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_7runtime_218cudaMemcpy3DPeerAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *__pyx_v_p, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct cudaMemcpy3DPeerParms *__pyx_v_cyp_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemcpy3DPeerParms *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy3DPeerAsync", 0);

  /* "cuda/bindings/runtime.pyx":21132
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21133
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21132
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21134
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21135
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":21134
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21137
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21137, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21138
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21138, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":21139
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DPeerAsync(cyp_ptr, cystream)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_p) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_p->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cyp_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":21140
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3DPeerAsync(cyp_ptr, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21141
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DPeerAsync(cyp_ptr, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DPeerAsync(__pyx_v_cyp_ptr, __pyx_v_cystream); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21141, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":21140
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemcpy3DPeerParms* cyp_ptr = p._pvt_ptr if p is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3DPeerAsync(cyp_ptr, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21142
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DPeerAsync(cyp_ptr, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 21142, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21107
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream):
 *     """ Copies memory between devices asynchronously.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21144
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetInfo():
 *     """ Gets free and total device memory.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_221cudaMemGetInfo(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_220cudaMemGetInfo, "cudaMemGetInfo()\n\nGets free and total device memory.\n\nReturns in `*total` the total amount of memory available to the the\ncurrent context. Returns in `*free` the amount of memory on the device\nthat is free according to the OS. CUDA is not guaranteed to be able to\nallocate all of the memory that the OS reports as free. In a multi-\ntenet situation, free estimate returned is prone to race condition\nwhere a new allocation/free done by a different process or a different\nthread in the same process between the time when free memory was\nestimated and reported, will result in deviation in free value reported\nand actual free memory.\n\nThe integrated GPU on Tegra shares memory with CPU and other component\nof the SoC. The free and total values returned by the API excludes the\nSWAP memory space maintained by the OS on some platforms. The OS may\nmove some of the memory pages into swap area as the GPU or CPU allocate\nor access memory. See Tegra app note on how to calculate total and free\nmemory on Tegra.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorLaunchFailure`\nfree : int\n    Returned free memory in bytes\ntotal : int\n    Returned total memory in bytes\n\nSee Also\n--------\n:py:obj:`~.cuMemGetInfo`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_221cudaMemGetInfo = {"cudaMemGetInfo", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_221cudaMemGetInfo, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_220cudaMemGetInfo};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_221cudaMemGetInfo(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemGetInfo (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_220cudaMemGetInfo(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_220cudaMemGetInfo(CYTHON_UNUSED PyObject *__pyx_self) {
  size_t __pyx_v_free;
  size_t __pyx_v_total;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemGetInfo", 0);

  /* "cuda/bindings/runtime.pyx":21178
 *     :py:obj:`~.cuMemGetInfo`
 *     """
 *     cdef size_t free = 0             # <<<<<<<<<<<<<<
 *     cdef size_t total = 0
 *     with nogil:
*/
  __pyx_v_free = 0;

  /* "cuda/bindings/runtime.pyx":21179
 *     """
 *     cdef size_t free = 0
 *     cdef size_t total = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemGetInfo(&free, &total)
*/
  __pyx_v_total = 0;

  /* "cuda/bindings/runtime.pyx":21180
 *     cdef size_t free = 0
 *     cdef size_t total = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemGetInfo(&free, &total)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21181
 *     cdef size_t total = 0
 *     with nogil:
 *         err = cyruntime.cudaMemGetInfo(&free, &total)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetInfo((&__pyx_v_free), (&__pyx_v_total)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21181, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":21180
 *     cdef size_t free = 0
 *     cdef size_t total = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemGetInfo(&free, &total)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21182
 *     with nogil:
 *         err = cyruntime.cudaMemGetInfo(&free, &total)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], free, total)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":21183
 *         err = cyruntime.cudaMemGetInfo(&free, &total)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], free, total)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 21183, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 21183, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None) != (0)) __PYX_ERR(0, 21183, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":21182
 *     with nogil:
 *         err = cyruntime.cudaMemGetInfo(&free, &total)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], free, total)
*/
  }

  /* "cuda/bindings/runtime.pyx":21184
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], free, total)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_FromSize_t(__pyx_v_free); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 21184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_total); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 21184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 21184, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 21184, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4) != (0)) __PYX_ERR(0, 21184, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21144
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetInfo():
 *     """ Gets free and total device memory.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemGetInfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21186
 *     return (_dict_cudaError_t[err], free, total)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetInfo(array):
 *     """ Gets info about the specified cudaArray.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_223cudaArrayGetInfo(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_7runtime_222cudaArrayGetInfo, "cudaArrayGetInfo(array)\n\nGets info about the specified cudaArray.\n\nReturns in `*desc`, `*extent` and `*flags` respectively, the type,\nshape and flags of `array`.\n\nAny of `*desc`, `*extent` and `*flags` may be specified as NULL.\n\nParameters\n----------\narray : :py:obj:`~.cudaArray_t`\n    The :py:obj:`~.cudaArray` to get info for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ndesc : :py:obj:`~.cudaChannelFormatDesc`\n    Returned array type\nextent : :py:obj:`~.cudaExtent`\n    Returned array shape. 2D arrays will have depth of zero\nflags : unsigned int\n    Returned array flags\n\nSee Also\n--------\n:py:obj:`~.cuArrayGetDescriptor`, :py:obj:`~.cuArray3DGetDescriptor`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_223cudaArrayGetInfo = {"cudaArrayGetInfo", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_223cudaArrayGetInfo, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_222cudaArrayGetInfo};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_223cudaArrayGetInfo(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_array = 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("cudaArrayGetInfo (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_array_2,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, 21186, __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, 21186, __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, "cudaArrayGetInfo", 0) < (0)) __PYX_ERR(0, 21186, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaArrayGetInfo", 1, 1, 1, i); __PYX_ERR(0, 21186, __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, 21186, __pyx_L3_error)
    }
    __pyx_v_array = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaArrayGetInfo", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 21186, __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.runtime.cudaArrayGetInfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_222cudaArrayGetInfo(__pyx_self, __pyx_v_array);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_222cudaArrayGetInfo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array) {
  cudaArray_t __pyx_v_cyarray;
  PyObject *__pyx_v_parray = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent = 0;
  unsigned int __pyx_v_flags;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaArrayGetInfo", 0);

  /* "cuda/bindings/runtime.pyx":21216
 *     """
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_array == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21217
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:
 *         parray = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(array, (cudaArray_t,)):
 *         parray = int(array)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_parray = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21216
 *     """
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21218
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21219
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
 *         parray = int(array)             # <<<<<<<<<<<<<<
 *     else:
 *         parray = int(cudaArray_t(array))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_parray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21218
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21221
 *         parray = int(array)
 *     else:
 *         parray = int(cudaArray_t(array))             # <<<<<<<<<<<<<<
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_array};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21221, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_parray = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21222
 *     else:
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
 *     cdef cudaExtent extent = cudaExtent()
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21222, __pyx_L1_error)
  __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21223
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()             # <<<<<<<<<<<<<<
 *     cdef cudaExtent extent = cudaExtent()
 *     cdef unsigned int flags = 0
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21223, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21224
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
 *     cdef cudaExtent extent = cudaExtent()             # <<<<<<<<<<<<<<
 *     cdef unsigned int flags = 0
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21224, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21225
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
 *     cdef cudaExtent extent = cudaExtent()
 *     cdef unsigned int flags = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaArrayGetInfo(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, <cyruntime.cudaExtent*>extent._pvt_ptr, &flags, cyarray)
*/
  __pyx_v_flags = 0;

  /* "cuda/bindings/runtime.pyx":21226
 *     cdef cudaExtent extent = cudaExtent()
 *     cdef unsigned int flags = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaArrayGetInfo(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, <cyruntime.cudaExtent*>extent._pvt_ptr, &flags, cyarray)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21227
 *     cdef unsigned int flags = 0
 *     with nogil:
 *         err = cyruntime.cudaArrayGetInfo(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, <cyruntime.cudaExtent*>extent._pvt_ptr, &flags, cyarray)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetInfo(((struct cudaChannelFormatDesc *)__pyx_v_desc->_pvt_ptr), ((struct cudaExtent *)__pyx_v_extent->_pvt_ptr), (&__pyx_v_flags), __pyx_v_cyarray); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21227, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":21226
 *     cdef cudaExtent extent = cudaExtent()
 *     cdef unsigned int flags = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaArrayGetInfo(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, <cyruntime.cudaExtent*>extent._pvt_ptr, &flags, cyarray)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21228
 *     with nogil:
 *         err = cyruntime.cudaArrayGetInfo(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, <cyruntime.cudaExtent*>extent._pvt_ptr, &flags, cyarray)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], desc, extent, flags)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21229
 *         err = cyruntime.cudaArrayGetInfo(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, <cyruntime.cudaExtent*>extent._pvt_ptr, &flags, cyarray)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], desc, extent, flags)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21229, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21229, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21229, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21229, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 21229, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 21229, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None) != (0)) __PYX_ERR(0, 21229, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, Py_None) != (0)) __PYX_ERR(0, 21229, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":21228
 *     with nogil:
 *         err = cyruntime.cudaArrayGetInfo(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, <cyruntime.cudaExtent*>extent._pvt_ptr, &flags, cyarray)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], desc, extent, flags)
*/
  }

  /* "cuda/bindings/runtime.pyx":21230
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], desc, extent, flags)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_int(__pyx_v_flags); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 21230, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_desc);
  __Pyx_GIVEREF((PyObject *)__pyx_v_desc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_desc)) != (0)) __PYX_ERR(0, 21230, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_extent);
  __Pyx_GIVEREF((PyObject *)__pyx_v_extent);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_extent)) != (0)) __PYX_ERR(0, 21230, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_7) != (0)) __PYX_ERR(0, 21230, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21186
 *     return (_dict_cudaError_t[err], free, total)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetInfo(array):
 *     """ Gets info about the specified cudaArray.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayGetInfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parray);
  __Pyx_XDECREF((PyObject *)__pyx_v_desc);
  __Pyx_XDECREF((PyObject *)__pyx_v_extent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21232
 *     return (_dict_cudaError_t[err], desc, extent, flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetPlane(hArray, unsigned int planeIdx):
 *     """ Gets a CUDA array plane from a CUDA array.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_225cudaArrayGetPlane(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_7runtime_224cudaArrayGetPlane, "cudaArrayGetPlane(hArray, unsigned int planeIdx)\n\nGets a CUDA array plane from a CUDA array.\n\nReturns in `pPlaneArray` a CUDA array that represents a single format\nplane of the CUDA array `hArray`.\n\nIf `planeIdx` is greater than the maximum number of planes in this\narray or if the array does not have a multi-planar format e.g:\n:py:obj:`~.cudaChannelFormatKindNV12`, then\n:py:obj:`~.cudaErrorInvalidValue` is returned.\n\nNote that if the `hArray` has format\n:py:obj:`~.cudaChannelFormatKindNV12`, then passing in 0 for `planeIdx`\nreturns a CUDA array of the same size as `hArray` but with one 8-bit\nchannel and :py:obj:`~.cudaChannelFormatKindUnsigned` as its format\nkind. If 1 is passed for `planeIdx`, then the returned CUDA array has\nhalf the height and width of `hArray` with two 8-bit channels and\n:py:obj:`~.cudaChannelFormatKindUnsigned` as its format kind.\n\nParameters\n----------\nhArray : :py:obj:`~.cudaArray_t`\n    CUDA array\nplaneIdx : unsigned int\n    Plane index\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` :py:obj:`~.cudaErrorInvalidResourceHandle`\npPlaneArray : :py:obj:`~.cudaArray_t`\n    Returned CUDA array referenced by the `planeIdx`\n\nSee Also\n--------\n:py:obj:`~.cuArrayGetPlane`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_225cudaArrayGetPlane = {"cudaArrayGetPlane", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_225cudaArrayGetPlane, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_224cudaArrayGetPlane};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_225cudaArrayGetPlane(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_hArray = 0;
  unsigned int __pyx_v_planeIdx;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaArrayGetPlane (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_hArray,&__pyx_mstate_global->__pyx_n_u_planeIdx,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, 21232, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21232, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21232, __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, "cudaArrayGetPlane", 0) < (0)) __PYX_ERR(0, 21232, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaArrayGetPlane", 1, 2, 2, i); __PYX_ERR(0, 21232, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 21232, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21232, __pyx_L3_error)
    }
    __pyx_v_hArray = values[0];
    __pyx_v_planeIdx = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_planeIdx == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 21233, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaArrayGetPlane", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 21232, __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.runtime.cudaArrayGetPlane", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_224cudaArrayGetPlane(__pyx_self, __pyx_v_hArray, __pyx_v_planeIdx);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_224cudaArrayGetPlane(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hArray, unsigned int __pyx_v_planeIdx) {
  cudaArray_t __pyx_v_cyhArray;
  PyObject *__pyx_v_phArray = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_pPlaneArray = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaArrayGetPlane", 0);

  /* "cuda/bindings/runtime.pyx":21271
 *     """
 *     cdef cyruntime.cudaArray_t cyhArray
 *     if hArray is None:             # <<<<<<<<<<<<<<
 *         phArray = 0
 *     elif isinstance(hArray, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_hArray == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21272
 *     cdef cyruntime.cudaArray_t cyhArray
 *     if hArray is None:
 *         phArray = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hArray, (cudaArray_t,)):
 *         phArray = int(hArray)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phArray = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21271
 *     """
 *     cdef cyruntime.cudaArray_t cyhArray
 *     if hArray is None:             # <<<<<<<<<<<<<<
 *         phArray = 0
 *     elif isinstance(hArray, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21273
 *     if hArray is None:
 *         phArray = 0
 *     elif isinstance(hArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         phArray = int(hArray)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_hArray, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21274
 *         phArray = 0
 *     elif isinstance(hArray, (cudaArray_t,)):
 *         phArray = int(hArray)             # <<<<<<<<<<<<<<
 *     else:
 *         phArray = int(cudaArray_t(hArray))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_hArray); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_phArray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21273
 *     if hArray is None:
 *         phArray = 0
 *     elif isinstance(hArray, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         phArray = int(hArray)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21276
 *         phArray = int(hArray)
 *     else:
 *         phArray = int(cudaArray_t(hArray))             # <<<<<<<<<<<<<<
 *     cyhArray = <cyruntime.cudaArray_t><void_ptr>phArray
 *     cdef cudaArray_t pPlaneArray = cudaArray_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hArray};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21276, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_phArray = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21277
 *     else:
 *         phArray = int(cudaArray_t(hArray))
 *     cyhArray = <cyruntime.cudaArray_t><void_ptr>phArray             # <<<<<<<<<<<<<<
 *     cdef cudaArray_t pPlaneArray = cudaArray_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phArray); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21277, __pyx_L1_error)
  __pyx_v_cyhArray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21278
 *         phArray = int(cudaArray_t(hArray))
 *     cyhArray = <cyruntime.cudaArray_t><void_ptr>phArray
 *     cdef cudaArray_t pPlaneArray = cudaArray_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaArrayGetPlane(<cyruntime.cudaArray_t*>pPlaneArray._pvt_ptr, cyhArray, planeIdx)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21278, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pPlaneArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21279
 *     cyhArray = <cyruntime.cudaArray_t><void_ptr>phArray
 *     cdef cudaArray_t pPlaneArray = cudaArray_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaArrayGetPlane(<cyruntime.cudaArray_t*>pPlaneArray._pvt_ptr, cyhArray, planeIdx)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21280
 *     cdef cudaArray_t pPlaneArray = cudaArray_t()
 *     with nogil:
 *         err = cyruntime.cudaArrayGetPlane(<cyruntime.cudaArray_t*>pPlaneArray._pvt_ptr, cyhArray, planeIdx)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetPlane(((cudaArray_t *)__pyx_v_pPlaneArray->_pvt_ptr), __pyx_v_cyhArray, __pyx_v_planeIdx); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21280, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":21279
 *     cyhArray = <cyruntime.cudaArray_t><void_ptr>phArray
 *     cdef cudaArray_t pPlaneArray = cudaArray_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaArrayGetPlane(<cyruntime.cudaArray_t*>pPlaneArray._pvt_ptr, cyhArray, planeIdx)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21281
 *     with nogil:
 *         err = cyruntime.cudaArrayGetPlane(<cyruntime.cudaArray_t*>pPlaneArray._pvt_ptr, cyhArray, planeIdx)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pPlaneArray)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21282
 *         err = cyruntime.cudaArrayGetPlane(<cyruntime.cudaArray_t*>pPlaneArray._pvt_ptr, cyhArray, planeIdx)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pPlaneArray)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 21282, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 21282, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":21281
 *     with nogil:
 *         err = cyruntime.cudaArrayGetPlane(<cyruntime.cudaArray_t*>pPlaneArray._pvt_ptr, cyhArray, planeIdx)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pPlaneArray)
*/
  }

  /* "cuda/bindings/runtime.pyx":21283
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pPlaneArray)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 21283, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pPlaneArray);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pPlaneArray);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pPlaneArray)) != (0)) __PYX_ERR(0, 21283, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21232
 *     return (_dict_cudaError_t[err], desc, extent, flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetPlane(hArray, unsigned int planeIdx):
 *     """ Gets a CUDA array plane from a CUDA array.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayGetPlane", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phArray);
  __Pyx_XDECREF((PyObject *)__pyx_v_pPlaneArray);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21285
 *     return (_dict_cudaError_t[err], pPlaneArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetMemoryRequirements(array, int device):
 *     """ Returns the memory requirements of a CUDA array.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_227cudaArrayGetMemoryRequirements(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_7runtime_226cudaArrayGetMemoryRequirements, "cudaArrayGetMemoryRequirements(array, int device)\n\nReturns the memory requirements of a CUDA array.\n\nReturns the memory requirements of a CUDA array in `memoryRequirements`\nIf the CUDA array is not allocated with flag\n:py:obj:`~.cudaArrayDeferredMapping` :py:obj:`~.cudaErrorInvalidValue`\nwill be returned.\n\nThe returned value in :py:obj:`~.cudaArrayMemoryRequirements.size`\nrepresents the total size of the CUDA array. The returned value in\n:py:obj:`~.cudaArrayMemoryRequirements.alignment` represents the\nalignment necessary for mapping the CUDA array.\n\nParameters\n----------\narray : :py:obj:`~.cudaArray_t`\n    CUDA array to get the memory requirements of\ndevice : int\n    Device to get the memory requirements for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\nmemoryRequirements : :py:obj:`~.cudaArrayMemoryRequirements`\n    Pointer to :py:obj:`~.cudaArrayMemoryRequirements`\n\nSee Also\n--------\n:py:obj:`~.cudaMipmappedArrayGetMemoryRequirements`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_227cudaArrayGetMemoryRequirements = {"cudaArrayGetMemoryRequirements", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_227cudaArrayGetMemoryRequirements, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_226cudaArrayGetMemoryRequirements};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_227cudaArrayGetMemoryRequirements(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_array = 0;
  int __pyx_v_device;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaArrayGetMemoryRequirements (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_array_2,&__pyx_mstate_global->__pyx_n_u_device_2,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, 21285, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21285, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21285, __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, "cudaArrayGetMemoryRequirements", 0) < (0)) __PYX_ERR(0, 21285, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaArrayGetMemoryRequirements", 1, 2, 2, i); __PYX_ERR(0, 21285, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 21285, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21285, __pyx_L3_error)
    }
    __pyx_v_array = values[0];
    __pyx_v_device = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 21286, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaArrayGetMemoryRequirements", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 21285, __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.runtime.cudaArrayGetMemoryRequirements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_226cudaArrayGetMemoryRequirements(__pyx_self, __pyx_v_array, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_226cudaArrayGetMemoryRequirements(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array, int __pyx_v_device) {
  cudaArray_t __pyx_v_cyarray;
  PyObject *__pyx_v_parray = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_memoryRequirements = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaArrayGetMemoryRequirements", 0);

  /* "cuda/bindings/runtime.pyx":21318
 *     """
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_array == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21319
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:
 *         parray = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(array, (cudaArray_t,)):
 *         parray = int(array)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_parray = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21318
 *     """
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21320
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21321
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
 *         parray = int(array)             # <<<<<<<<<<<<<<
 *     else:
 *         parray = int(cudaArray_t(array))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21321, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_parray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21320
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21323
 *         parray = int(array)
 *     else:
 *         parray = int(cudaArray_t(array))             # <<<<<<<<<<<<<<
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_array};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21323, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21323, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_parray = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21324
 *     else:
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21324, __pyx_L1_error)
  __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21325
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cyarray, device)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21325, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_memoryRequirements = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21326
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cyarray, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21327
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
 *     with nogil:
 *         err = cyruntime.cudaArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cyarray, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetMemoryRequirements(((struct cudaArrayMemoryRequirements *)__pyx_v_memoryRequirements->_pvt_ptr), __pyx_v_cyarray, __pyx_v_device); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21327, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":21326
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cyarray, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21328
 *     with nogil:
 *         err = cyruntime.cudaArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cyarray, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memoryRequirements)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21329
 *         err = cyruntime.cudaArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cyarray, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], memoryRequirements)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 21329, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 21329, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":21328
 *     with nogil:
 *         err = cyruntime.cudaArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cyarray, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memoryRequirements)
*/
  }

  /* "cuda/bindings/runtime.pyx":21330
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memoryRequirements)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 21330, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_memoryRequirements);
  __Pyx_GIVEREF((PyObject *)__pyx_v_memoryRequirements);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_memoryRequirements)) != (0)) __PYX_ERR(0, 21330, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21285
 *     return (_dict_cudaError_t[err], pPlaneArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetMemoryRequirements(array, int device):
 *     """ Returns the memory requirements of a CUDA array.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayGetMemoryRequirements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parray);
  __Pyx_XDECREF((PyObject *)__pyx_v_memoryRequirements);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21332
 *     return (_dict_cudaError_t[err], memoryRequirements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMipmappedArrayGetMemoryRequirements(mipmap, int device):
 *     """ Returns the memory requirements of a CUDA mipmapped array.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_229cudaMipmappedArrayGetMemoryRequirements(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_7runtime_228cudaMipmappedArrayGetMemoryRequirements, "cudaMipmappedArrayGetMemoryRequirements(mipmap, int device)\n\nReturns the memory requirements of a CUDA mipmapped array.\n\nReturns the memory requirements of a CUDA mipmapped array in\n`memoryRequirements` If the CUDA mipmapped array is not allocated with\nflag :py:obj:`~.cudaArrayDeferredMapping`\n:py:obj:`~.cudaErrorInvalidValue` will be returned.\n\nThe returned value in :py:obj:`~.cudaArrayMemoryRequirements.size`\nrepresents the total size of the CUDA mipmapped array. The returned\nvalue in :py:obj:`~.cudaArrayMemoryRequirements.alignment` represents\nthe alignment necessary for mapping the CUDA mipmapped array.\n\nParameters\n----------\nmipmap : :py:obj:`~.cudaMipmappedArray_t`\n    CUDA mipmapped array to get the memory requirements of\ndevice : int\n    Device to get the memory requirements for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\nmemoryRequirements : :py:obj:`~.cudaArrayMemoryRequirements`\n    Pointer to :py:obj:`~.cudaArrayMemoryRequirements`\n\nSee Also\n--------\n:py:obj:`~.cudaArrayGetMemoryRequirements`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_229cudaMipmappedArrayGetMemoryRequirements = {"cudaMipmappedArrayGetMemoryRequirements", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_229cudaMipmappedArrayGetMemoryRequirements, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_228cudaMipmappedArrayGetMemoryRequirements};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_229cudaMipmappedArrayGetMemoryRequirements(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_mipmap = 0;
  int __pyx_v_device;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMipmappedArrayGetMemoryRequirements (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_mipmap_2,&__pyx_mstate_global->__pyx_n_u_device_2,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, 21332, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21332, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21332, __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, "cudaMipmappedArrayGetMemoryRequirements", 0) < (0)) __PYX_ERR(0, 21332, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMipmappedArrayGetMemoryRequirements", 1, 2, 2, i); __PYX_ERR(0, 21332, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 21332, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21332, __pyx_L3_error)
    }
    __pyx_v_mipmap = values[0];
    __pyx_v_device = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 21333, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMipmappedArrayGetMemoryRequirements", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 21332, __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.runtime.cudaMipmappedArrayGetMemoryRequirements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_228cudaMipmappedArrayGetMemoryRequirements(__pyx_self, __pyx_v_mipmap, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_228cudaMipmappedArrayGetMemoryRequirements(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmap, int __pyx_v_device) {
  cudaMipmappedArray_t __pyx_v_cymipmap;
  PyObject *__pyx_v_pmipmap = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *__pyx_v_memoryRequirements = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMipmappedArrayGetMemoryRequirements", 0);

  /* "cuda/bindings/runtime.pyx":21365
 *     """
 *     cdef cyruntime.cudaMipmappedArray_t cymipmap
 *     if mipmap is None:             # <<<<<<<<<<<<<<
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_mipmap == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21366
 *     cdef cyruntime.cudaMipmappedArray_t cymipmap
 *     if mipmap is None:
 *         pmipmap = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):
 *         pmipmap = int(mipmap)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmipmap = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21365
 *     """
 *     cdef cyruntime.cudaMipmappedArray_t cymipmap
 *     if mipmap is None:             # <<<<<<<<<<<<<<
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21367
 *     if mipmap is None:
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):             # <<<<<<<<<<<<<<
 *         pmipmap = int(mipmap)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmap, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21368
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):
 *         pmipmap = int(mipmap)             # <<<<<<<<<<<<<<
 *     else:
 *         pmipmap = int(cudaMipmappedArray_t(mipmap))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21368, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pmipmap = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21367
 *     if mipmap is None:
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):             # <<<<<<<<<<<<<<
 *         pmipmap = int(mipmap)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21370
 *         pmipmap = int(mipmap)
 *     else:
 *         pmipmap = int(cudaMipmappedArray_t(mipmap))             # <<<<<<<<<<<<<<
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_mipmap};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21370, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pmipmap = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21371
 *     else:
 *         pmipmap = int(cudaMipmappedArray_t(mipmap))
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap             # <<<<<<<<<<<<<<
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21371, __pyx_L1_error)
  __pyx_v_cymipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21372
 *         pmipmap = int(cudaMipmappedArray_t(mipmap))
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMipmappedArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cymipmap, device)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21372, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_memoryRequirements = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21373
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMipmappedArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cymipmap, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21374
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
 *     with nogil:
 *         err = cyruntime.cudaMipmappedArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cymipmap, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMipmappedArrayGetMemoryRequirements(((struct cudaArrayMemoryRequirements *)__pyx_v_memoryRequirements->_pvt_ptr), __pyx_v_cymipmap, __pyx_v_device); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21374, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":21373
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *     cdef cudaArrayMemoryRequirements memoryRequirements = cudaArrayMemoryRequirements()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMipmappedArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cymipmap, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21375
 *     with nogil:
 *         err = cyruntime.cudaMipmappedArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cymipmap, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memoryRequirements)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21376
 *         err = cyruntime.cudaMipmappedArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cymipmap, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], memoryRequirements)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21376, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21376, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21376, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21376, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 21376, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 21376, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":21375
 *     with nogil:
 *         err = cyruntime.cudaMipmappedArrayGetMemoryRequirements(<cyruntime.cudaArrayMemoryRequirements*>memoryRequirements._pvt_ptr, cymipmap, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memoryRequirements)
*/
  }

  /* "cuda/bindings/runtime.pyx":21377
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memoryRequirements)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 21377, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_memoryRequirements);
  __Pyx_GIVEREF((PyObject *)__pyx_v_memoryRequirements);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_memoryRequirements)) != (0)) __PYX_ERR(0, 21377, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21332
 *     return (_dict_cudaError_t[err], memoryRequirements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMipmappedArrayGetMemoryRequirements(mipmap, int device):
 *     """ Returns the memory requirements of a CUDA mipmapped array.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArrayGetMemoryRequirements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmipmap);
  __Pyx_XDECREF((PyObject *)__pyx_v_memoryRequirements);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21379
 *     return (_dict_cudaError_t[err], memoryRequirements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetSparseProperties(array):
 *     """ Returns the layout properties of a sparse CUDA array.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_231cudaArrayGetSparseProperties(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_7runtime_230cudaArrayGetSparseProperties, "cudaArrayGetSparseProperties(array)\n\nReturns the layout properties of a sparse CUDA array.\n\nReturns the layout properties of a sparse CUDA array in\n`sparseProperties`. If the CUDA array is not allocated with flag\n:py:obj:`~.cudaArraySparse` :py:obj:`~.cudaErrorInvalidValue` will be\nreturned.\n\nIf the returned value in :py:obj:`~.cudaArraySparseProperties.flags`\ncontains :py:obj:`~.cudaArraySparsePropertiesSingleMipTail`, then\n:py:obj:`~.cudaArraySparseProperties.miptailSize` represents the total\nsize of the array. Otherwise, it will be zero. Also, the returned value\nin :py:obj:`~.cudaArraySparseProperties.miptailFirstLevel` is always\nzero. Note that the `array` must have been allocated using\n:py:obj:`~.cudaMallocArray` or :py:obj:`~.cudaMalloc3DArray`. For CUDA\narrays obtained using :py:obj:`~.cudaMipmappedArrayGetLevel`,\n:py:obj:`~.cudaErrorInvalidValue` will be returned. Instead,\n:py:obj:`~.cudaMipmappedArrayGetSparseProperties` must be used to\nobtain the sparse properties of the entire CUDA mipmapped array to\nwhich `array` belongs to.\n\nParameters\n----------\narray : :py:obj:`~.cudaArray_t`\n    The CUDA array to get the sparse properties of\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\nsparseProperties : :py:obj:`~.cudaArraySparseProperties`\n    Pointer to return the :py:obj:`~.cudaArraySparseProperties`\n\nSee Also\n--------\n:py:obj:`~.cudaMipmappedArrayGetSparseProperties`, :py:obj:`~.cuMemMapArrayAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_231cudaArrayGetSparseProperties = {"cudaArrayGetSparseProperties", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_231cudaArrayGetSparseProperties, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_230cudaArrayGetSparseProperties};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_231cudaArrayGetSparseProperties(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_array = 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("cudaArrayGetSparseProperties (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_array_2,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, 21379, __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, 21379, __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, "cudaArrayGetSparseProperties", 0) < (0)) __PYX_ERR(0, 21379, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaArrayGetSparseProperties", 1, 1, 1, i); __PYX_ERR(0, 21379, __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, 21379, __pyx_L3_error)
    }
    __pyx_v_array = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaArrayGetSparseProperties", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 21379, __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.runtime.cudaArrayGetSparseProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_230cudaArrayGetSparseProperties(__pyx_self, __pyx_v_array);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_230cudaArrayGetSparseProperties(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array) {
  cudaArray_t __pyx_v_cyarray;
  PyObject *__pyx_v_parray = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_sparseProperties = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaArrayGetSparseProperties", 0);

  /* "cuda/bindings/runtime.pyx":21418
 *     """
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_array == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21419
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:
 *         parray = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(array, (cudaArray_t,)):
 *         parray = int(array)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_parray = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21418
 *     """
 *     cdef cyruntime.cudaArray_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21420
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21421
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):
 *         parray = int(array)             # <<<<<<<<<<<<<<
 *     else:
 *         parray = int(cudaArray_t(array))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21421, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_parray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21420
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21423
 *         parray = int(array)
 *     else:
 *         parray = int(cudaArray_t(array))             # <<<<<<<<<<<<<<
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_array};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21423, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_parray = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21424
 *     else:
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21424, __pyx_L1_error)
  __pyx_v_cyarray = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21425
 *         parray = int(cudaArray_t(array))
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cyarray)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21425, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_sparseProperties = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21426
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21427
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
 *     with nogil:
 *         err = cyruntime.cudaArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cyarray)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetSparseProperties(((struct cudaArraySparseProperties *)__pyx_v_sparseProperties->_pvt_ptr), __pyx_v_cyarray); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21427, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":21426
 *     cyarray = <cyruntime.cudaArray_t><void_ptr>parray
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21428
 *     with nogil:
 *         err = cyruntime.cudaArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], sparseProperties)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21429
 *         err = cyruntime.cudaArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], sparseProperties)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21429, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21429, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21429, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21429, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 21429, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 21429, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":21428
 *     with nogil:
 *         err = cyruntime.cudaArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], sparseProperties)
*/
  }

  /* "cuda/bindings/runtime.pyx":21430
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], sparseProperties)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 21430, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_sparseProperties);
  __Pyx_GIVEREF((PyObject *)__pyx_v_sparseProperties);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_sparseProperties)) != (0)) __PYX_ERR(0, 21430, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21379
 *     return (_dict_cudaError_t[err], memoryRequirements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetSparseProperties(array):
 *     """ Returns the layout properties of a sparse CUDA array.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaArrayGetSparseProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parray);
  __Pyx_XDECREF((PyObject *)__pyx_v_sparseProperties);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21432
 *     return (_dict_cudaError_t[err], sparseProperties)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMipmappedArrayGetSparseProperties(mipmap):
 *     """ Returns the layout properties of a sparse CUDA mipmapped array.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_233cudaMipmappedArrayGetSparseProperties(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_7runtime_232cudaMipmappedArrayGetSparseProperties, "cudaMipmappedArrayGetSparseProperties(mipmap)\n\nReturns the layout properties of a sparse CUDA mipmapped array.\n\nReturns the sparse array layout properties in `sparseProperties`. If\nthe CUDA mipmapped array is not allocated with flag\n:py:obj:`~.cudaArraySparse` :py:obj:`~.cudaErrorInvalidValue` will be\nreturned.\n\nFor non-layered CUDA mipmapped arrays,\n:py:obj:`~.cudaArraySparseProperties.miptailSize` returns the size of\nthe mip tail region. The mip tail region includes all mip levels whose\nwidth, height or depth is less than that of the tile. For layered CUDA\nmipmapped arrays, if :py:obj:`~.cudaArraySparseProperties.flags`\ncontains :py:obj:`~.cudaArraySparsePropertiesSingleMipTail`, then\n:py:obj:`~.cudaArraySparseProperties.miptailSize` specifies the size of\nthe mip tail of all layers combined. Otherwise,\n:py:obj:`~.cudaArraySparseProperties.miptailSize` specifies mip tail\nsize per layer. The returned value of\n:py:obj:`~.cudaArraySparseProperties.miptailFirstLevel` is valid only\nif :py:obj:`~.cudaArraySparseProperties.miptailSize` is non-zero.\n\nParameters\n----------\nmipmap : :py:obj:`~.cudaMipmappedArray_t`\n    The CUDA mipmapped array to get the sparse properties of\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\nsparseProperties : :py:obj:`~.cudaArraySparseProperties`\n    Pointer to return :py:obj:`~.cudaArraySparseProperties`\n\nSee Also\n--------\n:py:obj:`~.cudaArrayGetSparseProperties`, :py:obj:`~.cuMemMapArrayAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_233cudaMipmappedArrayGetSparseProperties = {"cudaMipmappedArrayGetSparseProperties", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_233cudaMipmappedArrayGetSparseProperties, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_232cudaMipmappedArrayGetSparseProperties};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_233cudaMipmappedArrayGetSparseProperties(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_mipmap = 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("cudaMipmappedArrayGetSparseProperties (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_mipmap_2,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, 21432, __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, 21432, __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, "cudaMipmappedArrayGetSparseProperties", 0) < (0)) __PYX_ERR(0, 21432, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMipmappedArrayGetSparseProperties", 1, 1, 1, i); __PYX_ERR(0, 21432, __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, 21432, __pyx_L3_error)
    }
    __pyx_v_mipmap = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMipmappedArrayGetSparseProperties", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 21432, __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.runtime.cudaMipmappedArrayGetSparseProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_232cudaMipmappedArrayGetSparseProperties(__pyx_self, __pyx_v_mipmap);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_232cudaMipmappedArrayGetSparseProperties(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mipmap) {
  cudaMipmappedArray_t __pyx_v_cymipmap;
  PyObject *__pyx_v_pmipmap = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *__pyx_v_sparseProperties = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMipmappedArrayGetSparseProperties", 0);

  /* "cuda/bindings/runtime.pyx":21471
 *     """
 *     cdef cyruntime.cudaMipmappedArray_t cymipmap
 *     if mipmap is None:             # <<<<<<<<<<<<<<
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_mipmap == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21472
 *     cdef cyruntime.cudaMipmappedArray_t cymipmap
 *     if mipmap is None:
 *         pmipmap = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):
 *         pmipmap = int(mipmap)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmipmap = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21471
 *     """
 *     cdef cyruntime.cudaMipmappedArray_t cymipmap
 *     if mipmap is None:             # <<<<<<<<<<<<<<
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21473
 *     if mipmap is None:
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):             # <<<<<<<<<<<<<<
 *         pmipmap = int(mipmap)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_mipmap, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21474
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):
 *         pmipmap = int(mipmap)             # <<<<<<<<<<<<<<
 *     else:
 *         pmipmap = int(cudaMipmappedArray_t(mipmap))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_mipmap); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21474, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pmipmap = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21473
 *     if mipmap is None:
 *         pmipmap = 0
 *     elif isinstance(mipmap, (cudaMipmappedArray_t,)):             # <<<<<<<<<<<<<<
 *         pmipmap = int(mipmap)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21476
 *         pmipmap = int(mipmap)
 *     else:
 *         pmipmap = int(cudaMipmappedArray_t(mipmap))             # <<<<<<<<<<<<<<
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_mipmap};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21476, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21476, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pmipmap = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21477
 *     else:
 *         pmipmap = int(cudaMipmappedArray_t(mipmap))
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap             # <<<<<<<<<<<<<<
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmipmap); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21477, __pyx_L1_error)
  __pyx_v_cymipmap = ((cudaMipmappedArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21478
 *         pmipmap = int(cudaMipmappedArray_t(mipmap))
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMipmappedArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cymipmap)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21478, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_sparseProperties = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21479
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMipmappedArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cymipmap)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21480
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
 *     with nogil:
 *         err = cyruntime.cudaMipmappedArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cymipmap)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMipmappedArrayGetSparseProperties(((struct cudaArraySparseProperties *)__pyx_v_sparseProperties->_pvt_ptr), __pyx_v_cymipmap); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21480, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":21479
 *     cymipmap = <cyruntime.cudaMipmappedArray_t><void_ptr>pmipmap
 *     cdef cudaArraySparseProperties sparseProperties = cudaArraySparseProperties()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMipmappedArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cymipmap)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21481
 *     with nogil:
 *         err = cyruntime.cudaMipmappedArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cymipmap)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], sparseProperties)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21482
 *         err = cyruntime.cudaMipmappedArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cymipmap)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], sparseProperties)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 21482, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 21482, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":21481
 *     with nogil:
 *         err = cyruntime.cudaMipmappedArrayGetSparseProperties(<cyruntime.cudaArraySparseProperties*>sparseProperties._pvt_ptr, cymipmap)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], sparseProperties)
*/
  }

  /* "cuda/bindings/runtime.pyx":21483
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], sparseProperties)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 21483, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_sparseProperties);
  __Pyx_GIVEREF((PyObject *)__pyx_v_sparseProperties);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_sparseProperties)) != (0)) __PYX_ERR(0, 21483, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21432
 *     return (_dict_cudaError_t[err], sparseProperties)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMipmappedArrayGetSparseProperties(mipmap):
 *     """ Returns the layout properties of a sparse CUDA mipmapped array.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMipmappedArrayGetSparseProperties", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmipmap);
  __Pyx_XDECREF((PyObject *)__pyx_v_sparseProperties);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21485
 *     return (_dict_cudaError_t[err], sparseProperties)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy(dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_235cudaMemcpy(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_7runtime_234cudaMemcpy, "cudaMemcpy(dst, src, size_t count, kind: cudaMemcpyKind)\n\nCopies data between host and device.\n\n    Copies `count` bytes from the memory area pointed to by `src` to the\n    memory area pointed to by `dst`, where `kind` specifies the direction\n    of the copy, and must be one of :py:obj:`~.cudaMemcpyHostToHost`,\n    :py:obj:`~.cudaMemcpyHostToDevice`, :py:obj:`~.cudaMemcpyDeviceToHost`,\n    :py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\n    Passing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\n    type of transfer is inferred from the pointer values. However,\n    :py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\n    unified virtual addressing. Calling :py:obj:`~.cudaMemcpy()` with dst\n    and src pointers that do not match the direction of the copy results in\n    an undefined behavior.\n\n    \note_sync\n\n    Parameters\n    ----------\n    dst : Any\n        Destination memory address\n    src : Any\n        Source memory address\n    count : size_t\n        Size in bytes to copy\n    kind : :py:obj:`~.cudaMemcpyKind`\n        Type of transfer\n\n    Returns\n    -------\n    cudaError_t\n        :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\n    See Also\n    --------\n    :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpyDtoH`, :py:obj:`~.cuMemcpyHtoD`, :py:obj:`~.cuMemcpyDtoD`, :py:obj:`~.cuMemcpy`\n    ");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_235cudaMemcpy = {"cudaMemcpy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_235cudaMemcpy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_234cudaMemcpy};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_235cudaMemcpy(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_dst = 0;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy (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_dst_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 21485, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21485, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21485, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21485, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21485, __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, "cudaMemcpy", 0) < (0)) __PYX_ERR(0, 21485, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy", 1, 4, 4, i); __PYX_ERR(0, 21485, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 21485, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21485, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21485, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21485, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_src = values[1];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21486, __pyx_L3_error)
    __pyx_v_kind = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 21485, __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.runtime.cudaMemcpy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 21486, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_234cudaMemcpy(__pyx_self, __pyx_v_dst, __pyx_v_src, __pyx_v_count, __pyx_v_kind);

  /* 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_7runtime_234cudaMemcpy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  enum cudaMemcpyKind __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy", 0);

  /* "cuda/bindings/runtime.pyx":21523
 *     :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpyDtoH`, :py:obj:`~.cuMemcpyHtoD`, :py:obj:`~.cuMemcpyDtoD`, :py:obj:`~.cuMemcpy`
 *     """
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21523, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":21524
 *     """
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21524, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21524, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":21525
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_src};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21525, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":21526
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21526, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":21527
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy(cydst_ptr, cysrc_ptr, count, cykind)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21527, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cykind = __pyx_t_5;

  /* "cuda/bindings/runtime.pyx":21528
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy(cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21529
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpy(cydst_ptr, cysrc_ptr, count, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy(__pyx_v_cydst_ptr, __pyx_v_cysrc_ptr, __pyx_v_count, __pyx_v_cykind); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21529, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":21528
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy(cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21530
 *     with nogil:
 *         err = cyruntime.cudaMemcpy(cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 21530, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21485
 *     return (_dict_cudaError_t[err], sparseProperties)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy(dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21532
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count):
 *     """ Copies memory between two devices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_237cudaMemcpyPeer(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_7runtime_236cudaMemcpyPeer, "cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count)\n\nCopies memory between two devices.\n\nCopies memory from one device to memory on another device. `dst` is the\nbase device pointer of the destination memory and `dstDevice` is the\ndestination device. `src` is the base device pointer of the source\nmemory and `srcDevice` is the source device. `count` specifies the\nnumber of bytes to copy.\n\nNote that this function is asynchronous with respect to the host, but\nserialized with respect all pending and future asynchronous work in to\nthe current device, `srcDevice`, and `dstDevice` (use\n:py:obj:`~.cudaMemcpyPeerAsync` to avoid this synchronization).\n\nParameters\n----------\ndst : Any\n    Destination device pointer\ndstDevice : int\n    Destination device\nsrc : Any\n    Source device pointer\nsrcDevice : int\n    Source device\ncount : size_t\n    Size of memory copy in bytes\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpyPeer`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_237cudaMemcpyPeer = {"cudaMemcpyPeer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_237cudaMemcpyPeer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_236cudaMemcpyPeer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_237cudaMemcpyPeer(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_dst = 0;
  int __pyx_v_dstDevice;
  PyObject *__pyx_v_src = 0;
  int __pyx_v_srcDevice;
  size_t __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyPeer (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_dst_2,&__pyx_mstate_global->__pyx_n_u_dstDevice_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_srcDevice_2,&__pyx_mstate_global->__pyx_n_u_count,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, 21532, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21532, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21532, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21532, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21532, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21532, __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, "cudaMemcpyPeer", 0) < (0)) __PYX_ERR(0, 21532, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeer", 1, 5, 5, i); __PYX_ERR(0, 21532, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 21532, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21532, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21532, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21532, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21532, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_dstDevice = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 21533, __pyx_L3_error)
    __pyx_v_src = values[2];
    __pyx_v_srcDevice = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 21533, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21533, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeer", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 21532, __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.runtime.cudaMemcpyPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_236cudaMemcpyPeer(__pyx_self, __pyx_v_dst, __pyx_v_dstDevice, __pyx_v_src, __pyx_v_srcDevice, __pyx_v_count);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_236cudaMemcpyPeer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, int __pyx_v_dstDevice, PyObject *__pyx_v_src, int __pyx_v_srcDevice, size_t __pyx_v_count) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyPeer", 0);

  /* "cuda/bindings/runtime.pyx":21569
 *     :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpyPeerAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpyPeer`
 *     """
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21569, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":21570
 *     """
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21570, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":21571
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_src};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21571, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":21572
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyPeer(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21572, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":21573
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyPeer(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21574
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemcpyPeer(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyPeer(__pyx_v_cydst_ptr, __pyx_v_dstDevice, __pyx_v_cysrc_ptr, __pyx_v_srcDevice, __pyx_v_count); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21574, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":21573
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyPeer(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21575
 *     with nogil:
 *         err = cyruntime.cudaMemcpyPeer(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 21575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 21575, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21532
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count):
 *     """ Copies memory between two devices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21577
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_239cudaMemcpy2D(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_7runtime_238cudaMemcpy2D, "cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind: cudaMemcpyKind)\n\nCopies data between host and device.\n\nCopies a matrix (`height` rows of `width` bytes each) from the memory\narea pointed to by `src` to the memory area pointed to by `dst`, where\n`kind` specifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. `dpitch` and `spitch` are the widths in\nmemory in bytes of the 2D arrays pointed to by `dst` and `src`,\nincluding any padding added to the end of each row. The memory areas\nmay not overlap. `width` must not exceed either `dpitch` or `spitch`.\nCalling :py:obj:`~.cudaMemcpy2D()` with `dst` and `src` pointers that\ndo not match the direction of the copy results in an undefined\nbehavior. :py:obj:`~.cudaMemcpy2D()` returns an error if `dpitch` or\n`spitch` exceeds the maximum allowed.\n\nParameters\n----------\ndst : Any\n    Destination memory address\ndpitch : size_t\n    Pitch of destination memory\nsrc : Any\n    Source memory address\nspitch : size_t\n    Pitch of source memory\nwidth : size_t\n    Width of matrix transfer (columns in bytes)\nheight : size_t\n    Height of matrix transfer (rows)\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSy""mbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2D`, :py:obj:`~.cuMemcpy2DUnaligned`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_239cudaMemcpy2D = {"cudaMemcpy2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_239cudaMemcpy2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_238cudaMemcpy2D};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_239cudaMemcpy2D(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_dst = 0;
  size_t __pyx_v_dpitch;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_spitch;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy2D (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_dst_2,&__pyx_mstate_global->__pyx_n_u_dpitch,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_spitch,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 21577, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21577, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21577, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21577, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21577, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21577, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21577, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21577, __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, "cudaMemcpy2D", 0) < (0)) __PYX_ERR(0, 21577, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2D", 1, 7, 7, i); __PYX_ERR(0, 21577, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      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, 21577, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21577, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21577, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21577, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21577, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21577, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21577, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_dpitch = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_dpitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21578, __pyx_L3_error)
    __pyx_v_src = values[2];
    __pyx_v_spitch = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_spitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21578, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21578, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21578, __pyx_L3_error)
    __pyx_v_kind = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy2D", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 21577, __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.runtime.cudaMemcpy2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 21578, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_238cudaMemcpy2D(__pyx_self, __pyx_v_dst, __pyx_v_dpitch, __pyx_v_src, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_kind);

  /* 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_7runtime_238cudaMemcpy2D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_dpitch, PyObject *__pyx_v_src, size_t __pyx_v_spitch, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  enum cudaMemcpyKind __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy2D", 0);

  /* "cuda/bindings/runtime.pyx":21625
 *     :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2D`, :py:obj:`~.cuMemcpy2DUnaligned`
 *     """
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21625, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":21626
 *     """
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21626, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":21627
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_src};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21627, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":21628
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21628, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":21629
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2D(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21629, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cykind = __pyx_t_5;

  /* "cuda/bindings/runtime.pyx":21630
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2D(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21631
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2D(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2D(__pyx_v_cydst_ptr, __pyx_v_dpitch, __pyx_v_cysrc_ptr, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_cykind); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21631, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":21630
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2D(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21632
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2D(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 21632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 21632, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21577
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21634
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_241cudaMemcpy2DToArray(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_7runtime_240cudaMemcpy2DToArray, "cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind: cudaMemcpyKind)\n\nCopies data between host and device.\n\nCopies a matrix (`height` rows of `width` bytes each) from the memory\narea pointed to by `src` to the CUDA array `dst` starting at `hOffset`\nrows and `wOffset` bytes from the upper left corner, where `kind`\nspecifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. `spitch` is the width in memory in bytes of\nthe 2D array pointed to by `src`, including any padding added to the\nend of each row. `wOffset` + `width` must not exceed the width of the\nCUDA array `dst`. `width` must not exceed `spitch`.\n:py:obj:`~.cudaMemcpy2DToArray()` returns an error if `spitch` exceeds\nthe maximum allowed.\n\nParameters\n----------\ndst : :py:obj:`~.cudaArray_t`\n    Destination memory address\nwOffset : size_t\n    Destination starting X offset (columns in bytes)\nhOffset : size_t\n    Destination starting Y offset (rows)\nsrc : Any\n    Source memory address\nspitch : size_t\n    Pitch of source memory\nwidth : size_t\n    Width of matrix transfer (columns in bytes)\nheight : size_t\n    Height of matrix transfer (rows)\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:""obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2D`, :py:obj:`~.cuMemcpy2DUnaligned`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_241cudaMemcpy2DToArray = {"cudaMemcpy2DToArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_241cudaMemcpy2DToArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_240cudaMemcpy2DToArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_241cudaMemcpy2DToArray(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_dst = 0;
  size_t __pyx_v_wOffset;
  size_t __pyx_v_hOffset;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_spitch;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy2DToArray (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_dst_2,&__pyx_mstate_global->__pyx_n_u_wOffset,&__pyx_mstate_global->__pyx_n_u_hOffset,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_spitch,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 21634, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 21634, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21634, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21634, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21634, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21634, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21634, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21634, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21634, __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, "cudaMemcpy2DToArray", 0) < (0)) __PYX_ERR(0, 21634, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, i); __PYX_ERR(0, 21634, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      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, 21634, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21634, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21634, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21634, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21634, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21634, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21634, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 21634, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_wOffset = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21635, __pyx_L3_error)
    __pyx_v_hOffset = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21635, __pyx_L3_error)
    __pyx_v_src = values[3];
    __pyx_v_spitch = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_spitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21635, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21635, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[6]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21635, __pyx_L3_error)
    __pyx_v_kind = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArray", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 21634, __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.runtime.cudaMemcpy2DToArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 21635, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_240cudaMemcpy2DToArray(__pyx_self, __pyx_v_dst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_src, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_kind);

  /* 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_7runtime_240cudaMemcpy2DToArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, PyObject *__pyx_v_src, size_t __pyx_v_spitch, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind) {
  cudaArray_t __pyx_v_cydst;
  PyObject *__pyx_v_pdst = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaMemcpyKind __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy2DToArray", 0);

  /* "cuda/bindings/runtime.pyx":21684
 *     """
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_dst == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21685
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
 *         pdst = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdst = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21684
 *     """
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21686
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21687
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)             # <<<<<<<<<<<<<<
 *     else:
 *         pdst = int(cudaArray_t(dst))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21687, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pdst = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21686
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21689
 *         pdst = int(dst)
 *     else:
 *         pdst = int(cudaArray_t(dst))             # <<<<<<<<<<<<<<
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21689, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21689, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pdst = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21690
 *     else:
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21690, __pyx_L1_error)
  __pyx_v_cydst = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21691
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_src};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21691, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21692
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21692, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21693
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DToArray(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21693, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":21694
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DToArray(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21695
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DToArray(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DToArray(__pyx_v_cydst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_cysrc_ptr, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_cykind); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21695, __pyx_L5_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":21694
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DToArray(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21696
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DToArray(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 21696, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21634
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy2DToArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pdst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21698
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_243cudaMemcpy2DFromArray(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_7runtime_242cudaMemcpy2DFromArray, "cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind: cudaMemcpyKind)\n\nCopies data between host and device.\n\nCopies a matrix (`height` rows of `width` bytes each) from the CUDA\narray `src` starting at `hOffset` rows and `wOffset` bytes from the\nupper left corner to the memory area pointed to by `dst`, where `kind`\nspecifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. `dpitch` is the width in memory in bytes of\nthe 2D array pointed to by `dst`, including any padding added to the\nend of each row. `wOffset` + `width` must not exceed the width of the\nCUDA array `src`. `width` must not exceed `dpitch`.\n:py:obj:`~.cudaMemcpy2DFromArray()` returns an error if `dpitch`\nexceeds the maximum allowed.\n\nParameters\n----------\ndst : Any\n    Destination memory address\ndpitch : size_t\n    Pitch of destination memory\nsrc : :py:obj:`~.cudaArray_const_t`\n    Source memory address\nwOffset : size_t\n    Source starting X offset (columns in bytes)\nhOffset : size_t\n    Source starting Y offset (rows)\nwidth : size_t\n    Width of matrix transfer (columns in bytes)\nheight : size_t\n    Height of matrix transfer (rows)\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :""py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2D`, :py:obj:`~.cuMemcpy2DUnaligned`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_243cudaMemcpy2DFromArray = {"cudaMemcpy2DFromArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_243cudaMemcpy2DFromArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_242cudaMemcpy2DFromArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_243cudaMemcpy2DFromArray(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_dst = 0;
  size_t __pyx_v_dpitch;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_wOffset;
  size_t __pyx_v_hOffset;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy2DFromArray (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_dst_2,&__pyx_mstate_global->__pyx_n_u_dpitch,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_wOffset,&__pyx_mstate_global->__pyx_n_u_hOffset,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 21698, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 21698, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21698, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21698, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21698, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21698, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21698, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21698, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21698, __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, "cudaMemcpy2DFromArray", 0) < (0)) __PYX_ERR(0, 21698, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, i); __PYX_ERR(0, 21698, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      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, 21698, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21698, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21698, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21698, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21698, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21698, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21698, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 21698, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_dpitch = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_dpitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21699, __pyx_L3_error)
    __pyx_v_src = values[2];
    __pyx_v_wOffset = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21699, __pyx_L3_error)
    __pyx_v_hOffset = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21699, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21699, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[6]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21699, __pyx_L3_error)
    __pyx_v_kind = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArray", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 21698, __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.runtime.cudaMemcpy2DFromArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 21699, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_242cudaMemcpy2DFromArray(__pyx_self, __pyx_v_dst, __pyx_v_dpitch, __pyx_v_src, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_width, __pyx_v_height, __pyx_v_kind);

  /* 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_7runtime_242cudaMemcpy2DFromArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_dpitch, PyObject *__pyx_v_src, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind) {
  cudaArray_const_t __pyx_v_cysrc;
  PyObject *__pyx_v_psrc = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaMemcpyKind __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy2DFromArray", 0);

  /* "cuda/bindings/runtime.pyx":21748
 *     """
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
  __pyx_t_1 = (__pyx_v_src == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21749
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:
 *         psrc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psrc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21748
 *     """
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21750
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21751
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)             # <<<<<<<<<<<<<<
 *     else:
 *         psrc = int(cudaArray_const_t(src))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21751, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_psrc = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21750
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21753
 *         psrc = int(src)
 *     else:
 *         psrc = int(cudaArray_const_t(src))             # <<<<<<<<<<<<<<
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21753, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21753, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_psrc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21754
 *     else:
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21754, __pyx_L1_error)
  __pyx_v_cysrc = ((cudaArray_const_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21755
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21755, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":21756
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21756, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21757
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DFromArray(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21757, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":21758
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DFromArray(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21759
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DFromArray(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DFromArray(__pyx_v_cydst_ptr, __pyx_v_dpitch, __pyx_v_cysrc, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_width, __pyx_v_height, __pyx_v_cykind); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21759, __pyx_L5_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":21758
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DFromArray(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21760
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DFromArray(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 21760, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21698
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy2DFromArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psrc);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21762
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_245cudaMemcpy2DArrayToArray(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_7runtime_244cudaMemcpy2DArrayToArray, "cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, kind: cudaMemcpyKind)\n\nCopies data between host and device.\n\nCopies a matrix (`height` rows of `width` bytes each) from the CUDA\narray `src` starting at `hOffsetSrc` rows and `wOffsetSrc` bytes from\nthe upper left corner to the CUDA array `dst` starting at `hOffsetDst`\nrows and `wOffsetDst` bytes from the upper left corner, where `kind`\nspecifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. `wOffsetDst` + `width` must not exceed the\nwidth of the CUDA array `dst`. `wOffsetSrc` + `width` must not exceed\nthe width of the CUDA array `src`.\n\nParameters\n----------\ndst : :py:obj:`~.cudaArray_t`\n    Destination memory address\nwOffsetDst : size_t\n    Destination starting X offset (columns in bytes)\nhOffsetDst : size_t\n    Destination starting Y offset (rows)\nsrc : :py:obj:`~.cudaArray_const_t`\n    Source memory address\nwOffsetSrc : size_t\n    Source starting X offset (columns in bytes)\nhOffsetSrc : size_t\n    Source starting Y offset (rows)\nwidth : size_t\n    Width of matrix transfer (columns in bytes)\nheight : size_t\n    Height of matrix transfer (rows)\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~"".cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2D`, :py:obj:`~.cuMemcpy2DUnaligned`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_245cudaMemcpy2DArrayToArray = {"cudaMemcpy2DArrayToArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_245cudaMemcpy2DArrayToArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_244cudaMemcpy2DArrayToArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_245cudaMemcpy2DArrayToArray(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_dst = 0;
  size_t __pyx_v_wOffsetDst;
  size_t __pyx_v_hOffsetDst;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_wOffsetSrc;
  size_t __pyx_v_hOffsetSrc;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy2DArrayToArray (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_dst_2,&__pyx_mstate_global->__pyx_n_u_wOffsetDst,&__pyx_mstate_global->__pyx_n_u_hOffsetDst,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_wOffsetSrc,&__pyx_mstate_global->__pyx_n_u_hOffsetSrc,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 21762, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 21762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 21762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21762, __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, "cudaMemcpy2DArrayToArray", 0) < (0)) __PYX_ERR(0, 21762, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 9; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, i); __PYX_ERR(0, 21762, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 9)) {
      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, 21762, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21762, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21762, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21762, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21762, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21762, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21762, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 21762, __pyx_L3_error)
      values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 21762, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_wOffsetDst = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_wOffsetDst == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21763, __pyx_L3_error)
    __pyx_v_hOffsetDst = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_hOffsetDst == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21763, __pyx_L3_error)
    __pyx_v_src = values[3];
    __pyx_v_wOffsetSrc = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_wOffsetSrc == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21763, __pyx_L3_error)
    __pyx_v_hOffsetSrc = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_hOffsetSrc == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21763, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[6]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21763, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[7]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21763, __pyx_L3_error)
    __pyx_v_kind = values[8];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DArrayToArray", 1, 9, 9, __pyx_nargs); __PYX_ERR(0, 21762, __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.runtime.cudaMemcpy2DArrayToArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 21763, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_244cudaMemcpy2DArrayToArray(__pyx_self, __pyx_v_dst, __pyx_v_wOffsetDst, __pyx_v_hOffsetDst, __pyx_v_src, __pyx_v_wOffsetSrc, __pyx_v_hOffsetSrc, __pyx_v_width, __pyx_v_height, __pyx_v_kind);

  /* 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_7runtime_244cudaMemcpy2DArrayToArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffsetDst, size_t __pyx_v_hOffsetDst, PyObject *__pyx_v_src, size_t __pyx_v_wOffsetSrc, size_t __pyx_v_hOffsetSrc, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind) {
  cudaArray_const_t __pyx_v_cysrc;
  PyObject *__pyx_v_psrc = NULL;
  cudaArray_t __pyx_v_cydst;
  PyObject *__pyx_v_pdst = NULL;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaMemcpyKind __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy2DArrayToArray", 0);

  /* "cuda/bindings/runtime.pyx":21812
 *     """
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
  __pyx_t_1 = (__pyx_v_src == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21813
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:
 *         psrc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psrc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21812
 *     """
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21814
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21815
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)             # <<<<<<<<<<<<<<
 *     else:
 *         psrc = int(cudaArray_const_t(src))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21815, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_psrc = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":21814
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21817
 *         psrc = int(src)
 *     else:
 *         psrc = int(cudaArray_const_t(src))             # <<<<<<<<<<<<<<
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cdef cyruntime.cudaArray_t cydst
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21817, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21817, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_psrc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21818
 *     else:
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21818, __pyx_L1_error)
  __pyx_v_cysrc = ((cudaArray_const_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21820
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_dst == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21821
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
 *         pdst = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdst = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21820
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":21822
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21823
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)             # <<<<<<<<<<<<<<
 *     else:
 *         pdst = int(cudaArray_t(dst))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21823, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pdst = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":21822
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":21825
 *         pdst = int(dst)
 *     else:
 *         pdst = int(cudaArray_t(dst))             # <<<<<<<<<<<<<<
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  /*else*/ {
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21825, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_2 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pdst = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":21826
 *     else:
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21826, __pyx_L1_error)
  __pyx_v_cydst = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":21827
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, width, height, cykind)
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21827, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_cykind = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":21828
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, width, height, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21829
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, width, height, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DArrayToArray(__pyx_v_cydst, __pyx_v_wOffsetDst, __pyx_v_hOffsetDst, __pyx_v_cysrc, __pyx_v_wOffsetSrc, __pyx_v_hOffsetSrc, __pyx_v_width, __pyx_v_height, __pyx_v_cykind); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21829, __pyx_L6_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":21828
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, width, height, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L7;
        }
        __pyx_L6_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L7:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21830
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, width, height, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 21830, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21762
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy2DArrayToArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psrc);
  __Pyx_XDECREF(__pyx_v_pdst);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21832
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyAsync(dst, src, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_247cudaMemcpyAsync(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_7runtime_246cudaMemcpyAsync, "cudaMemcpyAsync(dst, src, size_t count, kind: cudaMemcpyKind, stream)\n\nCopies data between host and device.\n\nCopies `count` bytes from the memory area pointed to by `src` to the\nmemory area pointed to by `dst`, where `kind` specifies the direction\nof the copy, and must be one of :py:obj:`~.cudaMemcpyHostToHost`,\n:py:obj:`~.cudaMemcpyHostToDevice`, :py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing.\n\nThe memory areas may not overlap. Calling :py:obj:`~.cudaMemcpyAsync()`\nwith `dst` and `src` pointers that do not match the direction of the\ncopy results in an undefined behavior.\n\n:py:obj:`~.cudaMemcpyAsync()` is asynchronous with respect to the host,\nso the call may return before the copy is complete. The copy can\noptionally be associated to a stream by passing a non-zero `stream`\nargument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:`~.cudaMemcpyDeviceToHost` and the `stream` is non-zero, the\ncopy may overlap with operations in other streams.\n\nThe device version of this function only handles device to device\ncopies and cannot be given local or shared pointers.\n\nParameters\n----------\ndst : Any\n    Destination memory address\nsrc : Any\n    Source memory address\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2D""ArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpyAsync`, :py:obj:`~.cuMemcpyDtoHAsync`, :py:obj:`~.cuMemcpyHtoDAsync`, :py:obj:`~.cuMemcpyDtoDAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_247cudaMemcpyAsync = {"cudaMemcpyAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_247cudaMemcpyAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_246cudaMemcpyAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_247cudaMemcpyAsync(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_dst = 0;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyAsync (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_dst_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 21832, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21832, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21832, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21832, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21832, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21832, __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, "cudaMemcpyAsync", 0) < (0)) __PYX_ERR(0, 21832, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyAsync", 1, 5, 5, i); __PYX_ERR(0, 21832, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 21832, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21832, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21832, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21832, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21832, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_src = values[1];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21833, __pyx_L3_error)
    __pyx_v_kind = values[3];
    __pyx_v_stream = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyAsync", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 21832, __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.runtime.cudaMemcpyAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 21833, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_246cudaMemcpyAsync(__pyx_self, __pyx_v_dst, __pyx_v_src, __pyx_v_count, __pyx_v_kind, __pyx_v_stream);

  /* 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_7runtime_246cudaMemcpyAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemcpyKind __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyAsync", 0);

  /* "cuda/bindings/runtime.pyx":21883
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21884
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21883
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21885
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21886
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21886, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":21885
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21888
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21888, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21888, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21889
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21889, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":21890
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21890, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21891
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21891, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":21892
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21892, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21893
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21893, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":21894
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyAsync(cydst_ptr, cysrc_ptr, count, cykind, cystream)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21894, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 21894, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cykind = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":21895
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyAsync(cydst_ptr, cysrc_ptr, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21896
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpyAsync(cydst_ptr, cysrc_ptr, count, cykind, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyAsync(__pyx_v_cydst_ptr, __pyx_v_cysrc_ptr, __pyx_v_count, __pyx_v_cykind, __pyx_v_cystream); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21896, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":21895
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyAsync(cydst_ptr, cysrc_ptr, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21897
 *     with nogil:
 *         err = cyruntime.cudaMemcpyAsync(cydst_ptr, cysrc_ptr, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 21897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 21897, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21832
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyAsync(dst, src, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21899
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, stream):
 *     """ Copies memory between two devices asynchronously.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_249cudaMemcpyPeerAsync(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_7runtime_248cudaMemcpyPeerAsync, "cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, stream)\n\nCopies memory between two devices asynchronously.\n\nCopies memory from one device to memory on another device. `dst` is the\nbase device pointer of the destination memory and `dstDevice` is the\ndestination device. `src` is the base device pointer of the source\nmemory and `srcDevice` is the source device. `count` specifies the\nnumber of bytes to copy.\n\nNote that this function is asynchronous with respect to the host and\nall work on other devices.\n\nParameters\n----------\ndst : Any\n    Destination device pointer\ndstDevice : int\n    Destination device\nsrc : Any\n    Source device pointer\nsrcDevice : int\n    Source device\ncount : size_t\n    Size of memory copy in bytes\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cuMemcpyPeerAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_249cudaMemcpyPeerAsync = {"cudaMemcpyPeerAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_249cudaMemcpyPeerAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_248cudaMemcpyPeerAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_249cudaMemcpyPeerAsync(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_dst = 0;
  int __pyx_v_dstDevice;
  PyObject *__pyx_v_src = 0;
  int __pyx_v_srcDevice;
  size_t __pyx_v_count;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyPeerAsync (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_dst_2,&__pyx_mstate_global->__pyx_n_u_dstDevice_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_srcDevice_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_stream,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, 21899, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21899, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21899, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21899, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21899, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21899, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21899, __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, "cudaMemcpyPeerAsync", 0) < (0)) __PYX_ERR(0, 21899, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeerAsync", 1, 6, 6, i); __PYX_ERR(0, 21899, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      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, 21899, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21899, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21899, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21899, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21899, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21899, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_dstDevice = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_dstDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 21900, __pyx_L3_error)
    __pyx_v_src = values[2];
    __pyx_v_srcDevice = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_srcDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 21900, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21900, __pyx_L3_error)
    __pyx_v_stream = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyPeerAsync", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 21899, __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.runtime.cudaMemcpyPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_248cudaMemcpyPeerAsync(__pyx_self, __pyx_v_dst, __pyx_v_dstDevice, __pyx_v_src, __pyx_v_srcDevice, __pyx_v_count, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_248cudaMemcpyPeerAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, int __pyx_v_dstDevice, PyObject *__pyx_v_src, int __pyx_v_srcDevice, size_t __pyx_v_count, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyPeerAsync", 0);

  /* "cuda/bindings/runtime.pyx":21937
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21938
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":21937
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21939
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":21940
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":21939
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":21942
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21942, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21942, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":21943
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21943, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":21944
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21944, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21945
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21945, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":21946
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21946, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21947
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyPeerAsync(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count, cystream)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 21947, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":21948
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyPeerAsync(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":21949
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemcpyPeerAsync(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyPeerAsync(__pyx_v_cydst_ptr, __pyx_v_dstDevice, __pyx_v_cysrc_ptr, __pyx_v_srcDevice, __pyx_v_count, __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 21949, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":21948
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyPeerAsync(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":21950
 *     with nogil:
 *         err = cyruntime.cudaMemcpyPeerAsync(cydst_ptr, dstDevice, cysrc_ptr, srcDevice, count, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 21950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 21950, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21899
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, stream):
 *     """ Copies memory between two devices asynchronously.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyPeerAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21952
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, attrs : Optional[tuple[cudaMemcpyAttributes] | list[cudaMemcpyAttributes]], attrsIdxs : tuple[int] | list[int], size_t numAttrs, stream):
 *     """ Performs a batch of memory copies asynchronously.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_251cudaMemcpyBatchAsync(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_7runtime_250cudaMemcpyBatchAsync, "cudaMemcpyBatchAsync(dsts: Optional[tuple[Any] | list[Any]], srcs: Optional[tuple[Any] | list[Any]], sizes: tuple[int] | list[int], size_t count, attrs: Optional[tuple[cudaMemcpyAttributes] | list[cudaMemcpyAttributes]], attrsIdxs: tuple[int] | list[int], size_t numAttrs, stream)\n\nPerforms a batch of memory copies asynchronously.\n\nPerforms a batch of memory copies. The batch as a whole executes in\nstream order but copies within a batch are not guaranteed to execute in\nany specific order. This API only supports pointer-to-pointer copies.\nFor copies involving CUDA arrays, please see\n:py:obj:`~.cudaMemcpy3DBatchAsync`.\n\nPerforms memory copies from source buffers specified in `srcs` to\ndestination buffers specified in `dsts`. The size of each copy is\nspecified in `sizes`. All three arrays must be of the same length as\nspecified by `count`. Since there are no ordering guarantees for copies\nwithin a batch, specifying any dependent copies within a batch will\nresult in undefined behavior.\n\nEvery copy in the batch has to be associated with a set of attributes\nspecified in the `attrs` array. Each entry in this array can apply to\nmore than one copy. This can be done by specifying in the `attrsIdxs`\narray, the index of the first copy that the corresponding entry in the\n`attrs` array applies to. Both `attrs` and `attrsIdxs` must be of the\nsame length as specified by `numAttrs`. For example, if a batch has 10\ncopies listed in dst/src/sizes, the first 6 of which have one set of\nattributes and the remaining 4 another, then `numAttrs` will be 2,\n`attrsIdxs` will be {0, 6} and `attrs` will contains the two sets of\nattributes. Note that the first entry in `attrsIdxs` must always be 0.\nAlso, each entry must be greater than the previous entry and the last\nentry should be less than `count`. Furthermore, `numAttrs` must be\nlesser than or equal to `count`.\n\nThe :py:obj:`~.cudaMemcpyAttributes.srcAccessOrder` indicates the\nsource access ordering to be observe""d for copies associated with the\nattribute. If the source access order is set to\n:py:obj:`~.cudaMemcpySrcAccessOrderStream`, then the source will be\naccessed in stream order. If the source access order is set to\n:py:obj:`~.cudaMemcpySrcAccessOrderDuringApiCall` then it indicates\nthat access to the source pointer can be out of stream order and all\naccesses must be complete before the API call returns. This flag is\nsuited for ephemeral sources (ex., stack variables) when it's known\nthat no prior operations in the stream can be accessing the memory and\nalso that the lifetime of the memory is limited to the scope that the\nsource variable was declared in. Specifying this flag allows the driver\nto optimize the copy and removes the need for the user to synchronize\nthe stream after the API call. If the source access order is set to\n:py:obj:`~.cudaMemcpySrcAccessOrderAny` then it indicates that access\nto the source pointer can be out of stream order and the accesses can\nhappen even after the API call returns. This flag is suited for host\npointers allocated outside CUDA (ex., via malloc) when it's known that\nno prior operations in the stream can be accessing the memory.\nSpecifying this flag allows the driver to optimize the copy on certain\nplatforms. Each memcpy operation in the batch must have a valid\n:py:obj:`~.cudaMemcpyAttributes` corresponding to it including the\nappropriate srcAccessOrder setting, otherwise the API will return\n:py:obj:`~.cudaErrorInvalidValue`.\n\nThe :py:obj:`~.cudaMemcpyAttributes.srcLocHint` and\n:py:obj:`~.cudaMemcpyAttributes.dstLocHint` allows applications to\nspecify hint locations for operands of a copy when the operand doesn't\nhave a fixed location. That is, these hints are only applicable for\nmanaged memory pointers on devices where\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess` is true or system-\nallocated pageable memory on devices where\n:py:obj:`~.cudaDevAttrPageableMemoryAccess` is true. For other cases,\nthese h""ints are ignored.\n\nThe :py:obj:`~.cudaMemcpyAttributes.flags` field can be used to specify\ncertain flags for copies. Setting the\n:py:obj:`~.cudaMemcpyFlagPreferOverlapWithCompute` flag indicates that\nthe associated copies should preferably overlap with any compute work.\nNote that this flag is a hint and can be ignored depending on the\nplatform and other parameters of the copy.\n\nParameters\n----------\ndsts : list[Any]\n    Array of destination pointers.\nsrcs : list[Any]\n    Array of memcpy source pointers.\nsizes : list[int]\n    Array of sizes for memcpy operations.\ncount : size_t\n    Size of `dsts`, `srcs` and `sizes` arrays\nattrs : list[:py:obj:`~.cudaMemcpyAttributes`]\n    Array of memcpy attributes.\nattrsIdxs : list[int]\n    Array of indices to specify which copies each entry in the `attrs`\n    array applies to. The attributes specified in attrs[k] will be\n    applied to copies starting from attrsIdxs[k] through attrsIdxs[k+1]\n    - 1. Also attrs[numAttrs-1] will apply to copies starting from\n    attrsIdxs[numAttrs-1] through count - 1.\nnumAttrs : size_t\n    Size of `attrs` and `attrsIdxs` arrays.\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream to enqueue the operations in. Must not be legacy NULL\n    stream.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_251cudaMemcpyBatchAsync = {"cudaMemcpyBatchAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_251cudaMemcpyBatchAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_250cudaMemcpyBatchAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_251cudaMemcpyBatchAsync(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_dsts = 0;
  PyObject *__pyx_v_srcs = 0;
  PyObject *__pyx_v_sizes = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_attrs = 0;
  PyObject *__pyx_v_attrsIdxs = 0;
  size_t __pyx_v_numAttrs;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyBatchAsync (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_dsts,&__pyx_mstate_global->__pyx_n_u_srcs,&__pyx_mstate_global->__pyx_n_u_sizes,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_attrs,&__pyx_mstate_global->__pyx_n_u_attrsIdxs,&__pyx_mstate_global->__pyx_n_u_numAttrs,&__pyx_mstate_global->__pyx_n_u_stream,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, 21952, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 21952, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21952, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21952, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21952, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21952, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21952, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21952, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 21952, __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, "cudaMemcpyBatchAsync", 0) < (0)) __PYX_ERR(0, 21952, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyBatchAsync", 1, 8, 8, i); __PYX_ERR(0, 21952, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      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, 21952, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 21952, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 21952, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 21952, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 21952, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 21952, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 21952, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 21952, __pyx_L3_error)
    }
    __pyx_v_dsts = values[0];
    __pyx_v_srcs = values[1];
    __pyx_v_sizes = values[2];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21953, __pyx_L3_error)
    __pyx_v_attrs = values[4];
    __pyx_v_attrsIdxs = values[5];
    __pyx_v_numAttrs = __Pyx_PyLong_As_size_t(values[6]); if (unlikely((__pyx_v_numAttrs == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 21953, __pyx_L3_error)
    __pyx_v_stream = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyBatchAsync", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 21952, __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.runtime.cudaMemcpyBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_250cudaMemcpyBatchAsync(__pyx_self, __pyx_v_dsts, __pyx_v_srcs, __pyx_v_sizes, __pyx_v_count, __pyx_v_attrs, __pyx_v_attrsIdxs, __pyx_v_numAttrs, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_2generator98(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":22062
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in attrsIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 22062, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_2generator98, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[98]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemcpyBatchAsync_locals_gene, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 22062, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_2generator98(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 22062, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 22062, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22062, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22062, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22062, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22062, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22062, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22062, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyLong_Check(__pyx_cur_scope->__pyx_v__x); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_5generator99(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":22065
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 22065, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_5generator99, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[99]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemcpyBatchAsync_locals_gene, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 22065, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_5generator99(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 22065, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 22065, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22065, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22065, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22065, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22065, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22065, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22065, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_8generator100(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":22067
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     srcs = [] if srcs is None else srcs
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 22067, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_8generator100, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[100]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemcpyBatchAsync_locals_gene, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 22067, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_8generator100(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 22067, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 22067, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22067, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22067, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22067, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22067, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22067, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22067, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyLong_Check(__pyx_cur_scope->__pyx_v__x); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":21952
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, attrs : Optional[tuple[cudaMemcpyAttributes] | list[cudaMemcpyAttributes]], attrsIdxs : tuple[int] | list[int], size_t numAttrs, stream):
 *     """ Performs a batch of memory copies asynchronously.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_250cudaMemcpyBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dsts, PyObject *__pyx_v_srcs, PyObject *__pyx_v_sizes, size_t __pyx_v_count, PyObject *__pyx_v_attrs, PyObject *__pyx_v_attrsIdxs, size_t __pyx_v_numAttrs, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  PyObject *__pyx_v_pylist = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperdsts = 0;
  void const **__pyx_v_cydsts_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelpersrcs = 0;
  void const **__pyx_v_cysrcs_ptr;
  std::vector<size_t>  __pyx_v_cysizes;
  struct cudaMemcpyAttributes *__pyx_v_cyattrs;
  Py_ssize_t __pyx_v_idx;
  std::vector<size_t>  __pyx_v_cyattrsIdxs;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_2generator98 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_5generator99 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_8generator100 = 0;
  PyObject *__pyx_10genexpr224__pyx_v_pydsts = NULL;
  PyObject *__pyx_10genexpr225__pyx_v_pysrcs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  std::vector<size_t>  __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_ssize_t __pyx_t_14;
  struct cudaMemcpyAttributes *__pyx_t_15;
  cudaError_t __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyBatchAsync", 0);
  __Pyx_INCREF(__pyx_v_dsts);
  __Pyx_INCREF(__pyx_v_srcs);
  __Pyx_INCREF(__pyx_v_attrs);

  /* "cuda/bindings/runtime.pyx":22055
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22056
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22055
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22057
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22058
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22058, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22057
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22060
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in attrsIdxs):
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22060, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22061
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (int)) for _x in attrsIdxs):
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22061, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22062
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in attrsIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_genexpr(NULL, __pyx_v_attrsIdxs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 22062, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":22063
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in attrsIdxs):
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")             # <<<<<<<<<<<<<<
 *     attrs = [] if attrs is None else attrs
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_attrsIdxs_is_not_instan};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22063, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22063, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":22062
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in attrsIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs
*/
  }

  /* "cuda/bindings/runtime.pyx":22064
 *     if not all(isinstance(_x, (int)) for _x in attrsIdxs):
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
*/
  __pyx_t_2 = (__pyx_v_attrs == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22064, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_attrs);
    __pyx_t_3 = __pyx_v_attrs;
  }
  __Pyx_DECREF_SET(__pyx_v_attrs, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22065
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_3genexpr(NULL, __pyx_v_attrs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 22065, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = (!__pyx_t_2);
  if (unlikely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":22066
 *     attrs = [] if attrs is None else attrs
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_attrs_is_not_instance_o};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22066, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 22066, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":22065
 *         raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     attrs = [] if attrs is None else attrs
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
  }

  /* "cuda/bindings/runtime.pyx":22067
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     srcs = [] if srcs is None else srcs
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_6genexpr(NULL, __pyx_v_sizes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 22067, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":22068
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")             # <<<<<<<<<<<<<<
 *     srcs = [] if srcs is None else srcs
 *     dsts = [] if dsts is None else dsts
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_sizes_is_not_instance_o};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22068, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22068, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":22067
 *     if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs):
 *         raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     srcs = [] if srcs is None else srcs
*/
  }

  /* "cuda/bindings/runtime.pyx":22069
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     srcs = [] if srcs is None else srcs             # <<<<<<<<<<<<<<
 *     dsts = [] if dsts is None else dsts
 *     pylist = [_HelperInputVoidPtr(pydsts) for pydsts in dsts]
*/
  __pyx_t_2 = (__pyx_v_srcs == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22069, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_srcs);
    __pyx_t_3 = __pyx_v_srcs;
  }
  __Pyx_DECREF_SET(__pyx_v_srcs, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22070
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     srcs = [] if srcs is None else srcs
 *     dsts = [] if dsts is None else dsts             # <<<<<<<<<<<<<<
 *     pylist = [_HelperInputVoidPtr(pydsts) for pydsts in dsts]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdsts = _InputVoidPtrPtrHelper(pylist)
*/
  __pyx_t_2 = (__pyx_v_dsts == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22070, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dsts);
    __pyx_t_3 = __pyx_v_dsts;
  }
  __Pyx_DECREF_SET(__pyx_v_dsts, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22071
 *     srcs = [] if srcs is None else srcs
 *     dsts = [] if dsts is None else dsts
 *     pylist = [_HelperInputVoidPtr(pydsts) for pydsts in dsts]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdsts = _InputVoidPtrPtrHelper(pylist)
 *     cdef const void** cydsts_ptr = <const void**><void_ptr>voidStarHelperdsts.cptr
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22071, __pyx_L11_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(PyList_CheckExact(__pyx_v_dsts)) || PyTuple_CheckExact(__pyx_v_dsts)) {
      __pyx_t_4 = __pyx_v_dsts; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_dsts); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22071, __pyx_L11_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22071, __pyx_L11_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22071, __pyx_L11_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22071, __pyx_L11_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7));
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22071, __pyx_L11_error)
      } else {
        __pyx_t_9 = __pyx_t_8(__pyx_t_4);
        if (unlikely(!__pyx_t_9)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22071, __pyx_L11_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_10genexpr224__pyx_v_pydsts, __pyx_t_9);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_10genexpr224__pyx_v_pydsts};
        __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22071, __pyx_L11_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_9);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 22071, __pyx_L11_error)
      __Pyx_DECREF((PyObject *)__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_10genexpr224__pyx_v_pydsts); __pyx_10genexpr224__pyx_v_pydsts = 0;
    goto __pyx_L15_exit_scope;
    __pyx_L11_error:;
    __Pyx_XDECREF(__pyx_10genexpr224__pyx_v_pydsts); __pyx_10genexpr224__pyx_v_pydsts = 0;
    goto __pyx_L1_error;
    __pyx_L15_exit_scope:;
  } /* exit inner scope */
  __pyx_v_pylist = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22072
 *     dsts = [] if dsts is None else dsts
 *     pylist = [_HelperInputVoidPtr(pydsts) for pydsts in dsts]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdsts = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef const void** cydsts_ptr = <const void**><void_ptr>voidStarHelperdsts.cptr
 *     pylist = [_HelperInputVoidPtr(pysrcs) for pysrcs in srcs]
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_pylist};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22072, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_voidStarHelperdsts = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22073
 *     pylist = [_HelperInputVoidPtr(pydsts) for pydsts in dsts]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdsts = _InputVoidPtrPtrHelper(pylist)
 *     cdef const void** cydsts_ptr = <const void**><void_ptr>voidStarHelperdsts.cptr             # <<<<<<<<<<<<<<
 *     pylist = [_HelperInputVoidPtr(pysrcs) for pysrcs in srcs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelpersrcs = _InputVoidPtrPtrHelper(pylist)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperdsts), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22073, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydsts_ptr = ((void const **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22074
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdsts = _InputVoidPtrPtrHelper(pylist)
 *     cdef const void** cydsts_ptr = <const void**><void_ptr>voidStarHelperdsts.cptr
 *     pylist = [_HelperInputVoidPtr(pysrcs) for pysrcs in srcs]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelpersrcs = _InputVoidPtrPtrHelper(pylist)
 *     cdef const void** cysrcs_ptr = <const void**><void_ptr>voidStarHelpersrcs.cptr
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22074, __pyx_L18_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(PyList_CheckExact(__pyx_v_srcs)) || PyTuple_CheckExact(__pyx_v_srcs)) {
      __pyx_t_4 = __pyx_v_srcs; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_srcs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22074, __pyx_L18_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22074, __pyx_L18_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22074, __pyx_L18_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22074, __pyx_L18_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7));
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22074, __pyx_L18_error)
      } else {
        __pyx_t_9 = __pyx_t_8(__pyx_t_4);
        if (unlikely(!__pyx_t_9)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22074, __pyx_L18_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_10genexpr225__pyx_v_pysrcs, __pyx_t_9);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_10genexpr225__pyx_v_pysrcs};
        __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22074, __pyx_L18_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_9);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 22074, __pyx_L18_error)
      __Pyx_DECREF((PyObject *)__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_10genexpr225__pyx_v_pysrcs); __pyx_10genexpr225__pyx_v_pysrcs = 0;
    goto __pyx_L22_exit_scope;
    __pyx_L18_error:;
    __Pyx_XDECREF(__pyx_10genexpr225__pyx_v_pysrcs); __pyx_10genexpr225__pyx_v_pysrcs = 0;
    goto __pyx_L1_error;
    __pyx_L22_exit_scope:;
  } /* exit inner scope */
  __Pyx_DECREF_SET(__pyx_v_pylist, ((PyObject*)__pyx_t_3));
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22075
 *     cdef const void** cydsts_ptr = <const void**><void_ptr>voidStarHelperdsts.cptr
 *     pylist = [_HelperInputVoidPtr(pysrcs) for pysrcs in srcs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelpersrcs = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef const void** cysrcs_ptr = <const void**><void_ptr>voidStarHelpersrcs.cptr
 *     cdef vector[size_t] cysizes = sizes
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_pylist};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22075, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_voidStarHelpersrcs = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22076
 *     pylist = [_HelperInputVoidPtr(pysrcs) for pysrcs in srcs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelpersrcs = _InputVoidPtrPtrHelper(pylist)
 *     cdef const void** cysrcs_ptr = <const void**><void_ptr>voidStarHelpersrcs.cptr             # <<<<<<<<<<<<<<
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dsts): raise RuntimeError("List is too small: " + str(len(dsts)) + " < " + str(count))
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelpersrcs), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22076, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cysrcs_ptr = ((void const **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22077
 *     cdef _InputVoidPtrPtrHelper voidStarHelpersrcs = _InputVoidPtrPtrHelper(pylist)
 *     cdef const void** cysrcs_ptr = <const void**><void_ptr>voidStarHelpersrcs.cptr
 *     cdef vector[size_t] cysizes = sizes             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(dsts): raise RuntimeError("List is too small: " + str(len(dsts)) + " < " + str(count))
 *     if count > <size_t>len(srcs): raise RuntimeError("List is too small: " + str(len(srcs)) + " < " + str(count))
*/
  __pyx_t_11 = __pyx_convert_vector_from_py_size_t(__pyx_v_sizes); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22077, __pyx_L1_error)
  __pyx_v_cysizes = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":22078
 *     cdef const void** cysrcs_ptr = <const void**><void_ptr>voidStarHelpersrcs.cptr
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dsts): raise RuntimeError("List is too small: " + str(len(dsts)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(srcs): raise RuntimeError("List is too small: " + str(len(srcs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dsts); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22078, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_dsts); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22078, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22078, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22078, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22079
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dsts): raise RuntimeError("List is too small: " + str(len(dsts)) + " < " + str(count))
 *     if count > <size_t>len(srcs): raise RuntimeError("List is too small: " + str(len(srcs)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemcpyAttributes* cyattrs = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_srcs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22079, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_srcs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22079, __pyx_L1_error)
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_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_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22079, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22079, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22080
 *     if count > <size_t>len(dsts): raise RuntimeError("List is too small: " + str(len(dsts)) + " < " + str(count))
 *     if count > <size_t>len(srcs): raise RuntimeError("List is too small: " + str(len(srcs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyAttributes* cyattrs = NULL
 *     if len(attrs) > 1:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_sizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22080, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_sizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22080, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22080, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22080, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22081
 *     if count > <size_t>len(srcs): raise RuntimeError("List is too small: " + str(len(srcs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemcpyAttributes* cyattrs = NULL             # <<<<<<<<<<<<<<
 *     if len(attrs) > 1:
 *         cyattrs = <cyruntime.cudaMemcpyAttributes*> calloc(len(attrs), sizeof(cyruntime.cudaMemcpyAttributes))
*/
  __pyx_v_cyattrs = NULL;

  /* "cuda/bindings/runtime.pyx":22082
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemcpyAttributes* cyattrs = NULL
 *     if len(attrs) > 1:             # <<<<<<<<<<<<<<
 *         cyattrs = <cyruntime.cudaMemcpyAttributes*> calloc(len(attrs), sizeof(cyruntime.cudaMemcpyAttributes))
 *         if cyattrs is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_attrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22082, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22083
 *     cdef cyruntime.cudaMemcpyAttributes* cyattrs = NULL
 *     if len(attrs) > 1:
 *         cyattrs = <cyruntime.cudaMemcpyAttributes*> calloc(len(attrs), sizeof(cyruntime.cudaMemcpyAttributes))             # <<<<<<<<<<<<<<
 *         if cyattrs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(attrs)) + 'x' + str(sizeof(cyruntime.cudaMemcpyAttributes)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_attrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22083, __pyx_L1_error)
    __pyx_v_cyattrs = ((struct cudaMemcpyAttributes *)calloc(__pyx_t_7, (sizeof(struct cudaMemcpyAttributes))));

    /* "cuda/bindings/runtime.pyx":22084
 *     if len(attrs) > 1:
 *         cyattrs = <cyruntime.cudaMemcpyAttributes*> calloc(len(attrs), sizeof(cyruntime.cudaMemcpyAttributes))
 *         if cyattrs is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(attrs)) + 'x' + str(sizeof(cyruntime.cudaMemcpyAttributes)))
 *         for idx in range(len(attrs)):
*/
    __pyx_t_2 = (__pyx_v_cyattrs == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":22085
 *         cyattrs = <cyruntime.cudaMemcpyAttributes*> calloc(len(attrs), sizeof(cyruntime.cudaMemcpyAttributes))
 *         if cyattrs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(attrs)) + 'x' + str(sizeof(cyruntime.cudaMemcpyAttributes)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(attrs)):
 *             string.memcpy(&cyattrs[idx], (<cudaMemcpyAttributes>attrs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpyAttributes))
*/
      __pyx_t_9 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_attrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22085, __pyx_L1_error)
      __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemcpyAttributes))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22085, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_4};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22085, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 22085, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":22084
 *     if len(attrs) > 1:
 *         cyattrs = <cyruntime.cudaMemcpyAttributes*> calloc(len(attrs), sizeof(cyruntime.cudaMemcpyAttributes))
 *         if cyattrs is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(attrs)) + 'x' + str(sizeof(cyruntime.cudaMemcpyAttributes)))
 *         for idx in range(len(attrs)):
*/
    }

    /* "cuda/bindings/runtime.pyx":22086
 *         if cyattrs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(attrs)) + 'x' + str(sizeof(cyruntime.cudaMemcpyAttributes)))
 *         for idx in range(len(attrs)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyattrs[idx], (<cudaMemcpyAttributes>attrs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpyAttributes))
 *     elif len(attrs) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_attrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22086, __pyx_L1_error)
    __pyx_t_13 = __pyx_t_7;
    for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) {
      __pyx_v_idx = __pyx_t_14;

      /* "cuda/bindings/runtime.pyx":22087
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(attrs)) + 'x' + str(sizeof(cyruntime.cudaMemcpyAttributes)))
 *         for idx in range(len(attrs)):
 *             string.memcpy(&cyattrs[idx], (<cudaMemcpyAttributes>attrs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpyAttributes))             # <<<<<<<<<<<<<<
 *     elif len(attrs) == 1:
 *         cyattrs = (<cudaMemcpyAttributes>attrs[0])._pvt_ptr
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_attrs, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22087, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_cyattrs[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaMemcpyAttributes))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }

    /* "cuda/bindings/runtime.pyx":22082
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemcpyAttributes* cyattrs = NULL
 *     if len(attrs) > 1:             # <<<<<<<<<<<<<<
 *         cyattrs = <cyruntime.cudaMemcpyAttributes*> calloc(len(attrs), sizeof(cyruntime.cudaMemcpyAttributes))
 *         if cyattrs is NULL:
*/
    goto __pyx_L26;
  }

  /* "cuda/bindings/runtime.pyx":22088
 *         for idx in range(len(attrs)):
 *             string.memcpy(&cyattrs[idx], (<cudaMemcpyAttributes>attrs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpyAttributes))
 *     elif len(attrs) == 1:             # <<<<<<<<<<<<<<
 *         cyattrs = (<cudaMemcpyAttributes>attrs[0])._pvt_ptr
 *     cdef vector[size_t] cyattrsIdxs = attrsIdxs
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_attrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22088, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22089
 *             string.memcpy(&cyattrs[idx], (<cudaMemcpyAttributes>attrs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpyAttributes))
 *     elif len(attrs) == 1:
 *         cyattrs = (<cudaMemcpyAttributes>attrs[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef vector[size_t] cyattrsIdxs = attrsIdxs
 *     if numAttrs > <size_t>len(attrs): raise RuntimeError("List is too small: " + str(len(attrs)) + " < " + str(numAttrs))
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_attrs, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22089, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_15 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)__pyx_t_3)->_pvt_ptr;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_cyattrs = __pyx_t_15;

    /* "cuda/bindings/runtime.pyx":22088
 *         for idx in range(len(attrs)):
 *             string.memcpy(&cyattrs[idx], (<cudaMemcpyAttributes>attrs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpyAttributes))
 *     elif len(attrs) == 1:             # <<<<<<<<<<<<<<
 *         cyattrs = (<cudaMemcpyAttributes>attrs[0])._pvt_ptr
 *     cdef vector[size_t] cyattrsIdxs = attrsIdxs
*/
  }
  __pyx_L26:;

  /* "cuda/bindings/runtime.pyx":22090
 *     elif len(attrs) == 1:
 *         cyattrs = (<cudaMemcpyAttributes>attrs[0])._pvt_ptr
 *     cdef vector[size_t] cyattrsIdxs = attrsIdxs             # <<<<<<<<<<<<<<
 *     if numAttrs > <size_t>len(attrs): raise RuntimeError("List is too small: " + str(len(attrs)) + " < " + str(numAttrs))
 *     if numAttrs > <size_t>len(attrsIdxs): raise RuntimeError("List is too small: " + str(len(attrsIdxs)) + " < " + str(numAttrs))
*/
  __pyx_t_11 = __pyx_convert_vector_from_py_size_t(__pyx_v_attrsIdxs); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22090, __pyx_L1_error)
  __pyx_v_cyattrsIdxs = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":22091
 *         cyattrs = (<cudaMemcpyAttributes>attrs[0])._pvt_ptr
 *     cdef vector[size_t] cyattrsIdxs = attrsIdxs
 *     if numAttrs > <size_t>len(attrs): raise RuntimeError("List is too small: " + str(len(attrs)) + " < " + str(numAttrs))             # <<<<<<<<<<<<<<
 *     if numAttrs > <size_t>len(attrsIdxs): raise RuntimeError("List is too small: " + str(len(attrsIdxs)) + " < " + str(numAttrs))
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_attrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22091, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numAttrs > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_attrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22091, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_FromSize_t(__pyx_v_numAttrs); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22091, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22091, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22092
 *     cdef vector[size_t] cyattrsIdxs = attrsIdxs
 *     if numAttrs > <size_t>len(attrs): raise RuntimeError("List is too small: " + str(len(attrs)) + " < " + str(numAttrs))
 *     if numAttrs > <size_t>len(attrsIdxs): raise RuntimeError("List is too small: " + str(len(attrsIdxs)) + " < " + str(numAttrs))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyBatchAsync(cydsts_ptr, cysrcs_ptr, cysizes.data(), count, cyattrs, cyattrsIdxs.data(), numAttrs, cystream)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_attrsIdxs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22092, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numAttrs > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_attrsIdxs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22092, __pyx_L1_error)
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_numAttrs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_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_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22092, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22092, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22093
 *     if numAttrs > <size_t>len(attrs): raise RuntimeError("List is too small: " + str(len(attrs)) + " < " + str(numAttrs))
 *     if numAttrs > <size_t>len(attrsIdxs): raise RuntimeError("List is too small: " + str(len(attrsIdxs)) + " < " + str(numAttrs))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyBatchAsync(cydsts_ptr, cysrcs_ptr, cysizes.data(), count, cyattrs, cyattrsIdxs.data(), numAttrs, cystream)
 *     if len(attrs) > 1 and cyattrs is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22094
 *     if numAttrs > <size_t>len(attrsIdxs): raise RuntimeError("List is too small: " + str(len(attrsIdxs)) + " < " + str(numAttrs))
 *     with nogil:
 *         err = cyruntime.cudaMemcpyBatchAsync(cydsts_ptr, cysrcs_ptr, cysizes.data(), count, cyattrs, cyattrsIdxs.data(), numAttrs, cystream)             # <<<<<<<<<<<<<<
 *     if len(attrs) > 1 and cyattrs is not NULL:
 *         free(cyattrs)
*/
        __pyx_t_16 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyBatchAsync(__pyx_v_cydsts_ptr, __pyx_v_cysrcs_ptr, __pyx_v_cysizes.data(), __pyx_v_count, __pyx_v_cyattrs, __pyx_v_cyattrsIdxs.data(), __pyx_v_numAttrs, __pyx_v_cystream); if (unlikely(__pyx_t_16 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22094, __pyx_L33_error)
        __pyx_v_err = __pyx_t_16;
      }

      /* "cuda/bindings/runtime.pyx":22093
 *     if numAttrs > <size_t>len(attrs): raise RuntimeError("List is too small: " + str(len(attrs)) + " < " + str(numAttrs))
 *     if numAttrs > <size_t>len(attrsIdxs): raise RuntimeError("List is too small: " + str(len(attrsIdxs)) + " < " + str(numAttrs))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyBatchAsync(cydsts_ptr, cysrcs_ptr, cysizes.data(), count, cyattrs, cyattrsIdxs.data(), numAttrs, cystream)
 *     if len(attrs) > 1 and cyattrs is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L34;
        }
        __pyx_L33_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L34:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22095
 *     with nogil:
 *         err = cyruntime.cudaMemcpyBatchAsync(cydsts_ptr, cysrcs_ptr, cysizes.data(), count, cyattrs, cyattrsIdxs.data(), numAttrs, cystream)
 *     if len(attrs) > 1 and cyattrs is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyattrs)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_attrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22095, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L36_bool_binop_done;
  }
  __pyx_t_1 = (__pyx_v_cyattrs != NULL);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L36_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22096
 *         err = cyruntime.cudaMemcpyBatchAsync(cydsts_ptr, cysrcs_ptr, cysizes.data(), count, cyattrs, cyattrsIdxs.data(), numAttrs, cystream)
 *     if len(attrs) > 1 and cyattrs is not NULL:
 *         free(cyattrs)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cyattrs);

    /* "cuda/bindings/runtime.pyx":22095
 *     with nogil:
 *         err = cyruntime.cudaMemcpyBatchAsync(cydsts_ptr, cysrcs_ptr, cysizes.data(), count, cyattrs, cyattrsIdxs.data(), numAttrs, cystream)
 *     if len(attrs) > 1 and cyattrs is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyattrs)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":22097
 *     if len(attrs) > 1 and cyattrs is not NULL:
 *         free(cyattrs)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 22097, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":21952
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, attrs : Optional[tuple[cudaMemcpyAttributes] | list[cudaMemcpyAttributes]], attrsIdxs : tuple[int] | list[int], size_t numAttrs, stream):
 *     """ Performs a batch of memory copies asynchronously.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pylist);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperdsts);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelpersrcs);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_2generator98);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_5generator99);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_20cudaMemcpyBatchAsync_8generator100);
  __Pyx_XDECREF(__pyx_10genexpr224__pyx_v_pydsts);
  __Pyx_XDECREF(__pyx_10genexpr225__pyx_v_pysrcs);
  __Pyx_XDECREF(__pyx_v_dsts);
  __Pyx_XDECREF(__pyx_v_srcs);
  __Pyx_XDECREF(__pyx_v_attrs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22099
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]], unsigned long long flags, stream):
 *     """ Performs a batch of 3D memory copies asynchronously.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_253cudaMemcpy3DBatchAsync(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_7runtime_252cudaMemcpy3DBatchAsync, "cudaMemcpy3DBatchAsync(size_t numOps, opList: Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]], unsigned long long flags, stream)\n\nPerforms a batch of 3D memory copies asynchronously.\n\nPerforms a batch of memory copies. The batch as a whole executes in\nstream order but copies within a batch are not guaranteed to execute in\nany specific order. Note that this means specifying any dependent\ncopies within a batch will result in undefined behavior.\n\nPerforms memory copies as specified in the `opList` array. The length\nof this array is specified in `numOps`. Each entry in this array\ndescribes a copy operation. This includes among other things, the\nsource and destination operands for the copy as specified in\n:py:obj:`~.cudaMemcpy3DBatchOp.src` and\n:py:obj:`~.cudaMemcpy3DBatchOp.dst` respectively. The source and\ndestination operands of a copy can either be a pointer or a CUDA array.\nThe width, height and depth of a copy is specified in\n:py:obj:`~.cudaMemcpy3DBatchOp.extent`. The width, height and depth of\na copy are specified in elements and must not be zero. For pointer-to-\npointer copies, the element size is considered to be 1. For pointer to\nCUDA array or vice versa copies, the element size is determined by the\nCUDA array. For CUDA array to CUDA array copies, the element size of\nthe two CUDA arrays must match.\n\nFor a given operand, if :py:obj:`~.cudaMemcpy3DOperand`::type is\nspecified as :py:obj:`~.cudaMemcpyOperandTypePointer`, then\n:py:obj:`~.cudaMemcpy3DOperand`::op::ptr will be used. The\n:py:obj:`~.cudaMemcpy3DOperand`::op::ptr::ptr field must contain the\npointer where the copy should begin. The\n:py:obj:`~.cudaMemcpy3DOperand`::op::ptr::rowLength field specifies the\nlength of each row in elements and must either be zero or be greater\nthan or equal to the width of the copy specified in\n:py:obj:`~.cudaMemcpy3DBatchOp`::extent::width. The\n:py:obj:`~.cudaMemcpy3DOperand`::op::ptr::layerHeight field specifies\nthe height of"" each layer and must either be zero or be greater than or\nequal to the height of the copy specified in\n:py:obj:`~.cudaMemcpy3DBatchOp`::extent::height. When either of these\nvalues is zero, that aspect of the operand is considered to be tightly\npacked according to the copy extent. For managed memory pointers on\ndevices where :py:obj:`~.cudaDevAttrConcurrentManagedAccess` is true or\nsystem-allocated pageable memory on devices where\n:py:obj:`~.cudaDevAttrPageableMemoryAccess` is true, the\n:py:obj:`~.cudaMemcpy3DOperand`::op::ptr::locHint field can be used to\nhint the location of the operand.\n\nIf an operand's type is specified as\n:py:obj:`~.cudaMemcpyOperandTypeArray`, then\n:py:obj:`~.cudaMemcpy3DOperand`::op::array will be used. The\n:py:obj:`~.cudaMemcpy3DOperand`::op::array::array field specifies the\nCUDA array and :py:obj:`~.cudaMemcpy3DOperand`::op::array::offset\nspecifies the 3D offset into that array where the copy begins.\n\nThe :py:obj:`~.cudaMemcpyAttributes.srcAccessOrder` indicates the\nsource access ordering to be observed for copies associated with the\nattribute. If the source access order is set to\n:py:obj:`~.cudaMemcpySrcAccessOrderStream`, then the source will be\naccessed in stream order. If the source access order is set to\n:py:obj:`~.cudaMemcpySrcAccessOrderDuringApiCall` then it indicates\nthat access to the source pointer can be out of stream order and all\naccesses must be complete before the API call returns. This flag is\nsuited for ephemeral sources (ex., stack variables) when it's known\nthat no prior operations in the stream can be accessing the memory and\nalso that the lifetime of the memory is limited to the scope that the\nsource variable was declared in. Specifying this flag allows the driver\nto optimize the copy and removes the need for the user to synchronize\nthe stream after the API call. If the source access order is set to\n:py:obj:`~.cudaMemcpySrcAccessOrderAny` then it indicates that access\nto the source point""er can be out of stream order and the accesses can\nhappen even after the API call returns. This flag is suited for host\npointers allocated outside CUDA (ex., via malloc) when it's known that\nno prior operations in the stream can be accessing the memory.\nSpecifying this flag allows the driver to optimize the copy on certain\nplatforms. Each memcopy operation in `opList` must have a valid\nsrcAccessOrder setting, otherwise this API will return\n:py:obj:`~.cudaErrorInvalidValue`.\n\nThe :py:obj:`~.cudaMemcpyAttributes.flags` field can be used to specify\ncertain flags for copies. Setting the\n:py:obj:`~.cudaMemcpyFlagPreferOverlapWithCompute` flag indicates that\nthe associated copies should preferably overlap with any compute work.\nNote that this flag is a hint and can be ignored depending on the\nplatform and other parameters of the copy.\n\nParameters\n----------\nnumOps : size_t\n    Total number of memcpy operations.\nopList : list[:py:obj:`~.cudaMemcpy3DBatchOp`]\n    Array of size `numOps` containing the actual memcpy operations.\nflags : unsigned long long\n    Flags for future use, must be zero now.\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream to enqueue the operations in. Must not be default NULL\n    stream.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_253cudaMemcpy3DBatchAsync = {"cudaMemcpy3DBatchAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_253cudaMemcpy3DBatchAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_252cudaMemcpy3DBatchAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_253cudaMemcpy3DBatchAsync(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
) {
  size_t __pyx_v_numOps;
  PyObject *__pyx_v_opList = 0;
  unsigned PY_LONG_LONG __pyx_v_flags;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy3DBatchAsync (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_numOps,&__pyx_mstate_global->__pyx_n_u_opList,&__pyx_mstate_global->__pyx_n_u_flags_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22099, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22099, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22099, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22099, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22099, __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, "cudaMemcpy3DBatchAsync", 0) < (0)) __PYX_ERR(0, 22099, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DBatchAsync", 1, 4, 4, i); __PYX_ERR(0, 22099, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 22099, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22099, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22099, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22099, __pyx_L3_error)
    }
    __pyx_v_numOps = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_numOps == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22100, __pyx_L3_error)
    __pyx_v_opList = values[1];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[2]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22100, __pyx_L3_error)
    __pyx_v_stream = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy3DBatchAsync", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 22099, __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.runtime.cudaMemcpy3DBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_252cudaMemcpy3DBatchAsync(__pyx_self, __pyx_v_numOps, __pyx_v_opList, __pyx_v_flags, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaMemcpy3DBatchAsync_2generator101(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":22208
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     opList = [] if opList is None else opList
 *     if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]")
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaMemcpy3DBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 22208, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_22cudaMemcpy3DBatchAsync_2generator101, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[101]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DBatchAsync_locals_ge, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 22208, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaMemcpy3DBatchAsync_2generator101(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 22208, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 22208, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22208, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22208, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22208, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22208, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22208, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22099
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]], unsigned long long flags, stream):
 *     """ Performs a batch of 3D memory copies asynchronously.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_252cudaMemcpy3DBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_numOps, PyObject *__pyx_v_opList, unsigned PY_LONG_LONG __pyx_v_flags, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct cudaMemcpy3DBatchOp *__pyx_v_cyopList;
  Py_ssize_t __pyx_v_idx;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaMemcpy3DBatchAsync_2generator101 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaMemcpy3DBatchOp *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy3DBatchAsync", 0);
  __Pyx_INCREF(__pyx_v_opList);

  /* "cuda/bindings/runtime.pyx":22200
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22201
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22200
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22202
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22203
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22203, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22202
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22205
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     opList = [] if opList is None else opList
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22205, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22206
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     opList = [] if opList is None else opList
 *     if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList):
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22206, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22207
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     opList = [] if opList is None else opList             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList):
 *         raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]")
*/
  __pyx_t_1 = (__pyx_v_opList == Py_None);
  if (__pyx_t_1) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_opList);
    __pyx_t_4 = __pyx_v_opList;
  }
  __Pyx_DECREF_SET(__pyx_v_opList, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22208
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     opList = [] if opList is None else opList
 *     if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]")
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_22cudaMemcpy3DBatchAsync_genexpr(NULL, __pyx_v_opList); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 22208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":22209
 *     opList = [] if opList is None else opList
 *     if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList):
 *         raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]")             # <<<<<<<<<<<<<<
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))
 *     cdef cyruntime.cudaMemcpy3DBatchOp* cyopList = NULL
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_opList_is_not_instance};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22209, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22209, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":22208
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     opList = [] if opList is None else opList
 *     if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]")
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))
*/
  }

  /* "cuda/bindings/runtime.pyx":22210
 *     if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList):
 *         raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]")
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpy3DBatchOp* cyopList = NULL
 *     if len(opList) > 1:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_opList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22210, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numOps > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_opList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22210, __pyx_L1_error)
    __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyLong_FromSize_t(__pyx_v_numOps); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22210, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22211
 *         raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]")
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))
 *     cdef cyruntime.cudaMemcpy3DBatchOp* cyopList = NULL             # <<<<<<<<<<<<<<
 *     if len(opList) > 1:
 *         cyopList = <cyruntime.cudaMemcpy3DBatchOp*> calloc(len(opList), sizeof(cyruntime.cudaMemcpy3DBatchOp))
*/
  __pyx_v_cyopList = NULL;

  /* "cuda/bindings/runtime.pyx":22212
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))
 *     cdef cyruntime.cudaMemcpy3DBatchOp* cyopList = NULL
 *     if len(opList) > 1:             # <<<<<<<<<<<<<<
 *         cyopList = <cyruntime.cudaMemcpy3DBatchOp*> calloc(len(opList), sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *         if cyopList is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_opList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22212, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22213
 *     cdef cyruntime.cudaMemcpy3DBatchOp* cyopList = NULL
 *     if len(opList) > 1:
 *         cyopList = <cyruntime.cudaMemcpy3DBatchOp*> calloc(len(opList), sizeof(cyruntime.cudaMemcpy3DBatchOp))             # <<<<<<<<<<<<<<
 *         if cyopList is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(opList)) + 'x' + str(sizeof(cyruntime.cudaMemcpy3DBatchOp)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_opList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22213, __pyx_L1_error)
    __pyx_v_cyopList = ((struct cudaMemcpy3DBatchOp *)calloc(__pyx_t_7, (sizeof(struct cudaMemcpy3DBatchOp))));

    /* "cuda/bindings/runtime.pyx":22214
 *     if len(opList) > 1:
 *         cyopList = <cyruntime.cudaMemcpy3DBatchOp*> calloc(len(opList), sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *         if cyopList is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(opList)) + 'x' + str(sizeof(cyruntime.cudaMemcpy3DBatchOp)))
 *         for idx in range(len(opList)):
*/
    __pyx_t_2 = (__pyx_v_cyopList == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":22215
 *         cyopList = <cyruntime.cudaMemcpy3DBatchOp*> calloc(len(opList), sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *         if cyopList is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(opList)) + 'x' + str(sizeof(cyruntime.cudaMemcpy3DBatchOp)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(opList)):
 *             string.memcpy(&cyopList[idx], (<cudaMemcpy3DBatchOp>opList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpy3DBatchOp))
*/
      __pyx_t_8 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_opList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22215, __pyx_L1_error)
      __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemcpy3DBatchOp))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_4};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22215, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 22215, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":22214
 *     if len(opList) > 1:
 *         cyopList = <cyruntime.cudaMemcpy3DBatchOp*> calloc(len(opList), sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *         if cyopList is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(opList)) + 'x' + str(sizeof(cyruntime.cudaMemcpy3DBatchOp)))
 *         for idx in range(len(opList)):
*/
    }

    /* "cuda/bindings/runtime.pyx":22216
 *         if cyopList is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(opList)) + 'x' + str(sizeof(cyruntime.cudaMemcpy3DBatchOp)))
 *         for idx in range(len(opList)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyopList[idx], (<cudaMemcpy3DBatchOp>opList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *     elif len(opList) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_opList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22216, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":22217
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(opList)) + 'x' + str(sizeof(cyruntime.cudaMemcpy3DBatchOp)))
 *         for idx in range(len(opList)):
 *             string.memcpy(&cyopList[idx], (<cudaMemcpy3DBatchOp>opList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpy3DBatchOp))             # <<<<<<<<<<<<<<
 *     elif len(opList) == 1:
 *         cyopList = (<cudaMemcpy3DBatchOp>opList[0])._pvt_ptr
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_opList, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22217, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_cyopList[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaMemcpy3DBatchOp))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }

    /* "cuda/bindings/runtime.pyx":22212
 *     if numOps > <size_t>len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps))
 *     cdef cyruntime.cudaMemcpy3DBatchOp* cyopList = NULL
 *     if len(opList) > 1:             # <<<<<<<<<<<<<<
 *         cyopList = <cyruntime.cudaMemcpy3DBatchOp*> calloc(len(opList), sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *         if cyopList is NULL:
*/
    goto __pyx_L8;
  }

  /* "cuda/bindings/runtime.pyx":22218
 *         for idx in range(len(opList)):
 *             string.memcpy(&cyopList[idx], (<cudaMemcpy3DBatchOp>opList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *     elif len(opList) == 1:             # <<<<<<<<<<<<<<
 *         cyopList = (<cudaMemcpy3DBatchOp>opList[0])._pvt_ptr
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_opList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22218, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22219
 *             string.memcpy(&cyopList[idx], (<cudaMemcpy3DBatchOp>opList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *     elif len(opList) == 1:
 *         cyopList = (<cudaMemcpy3DBatchOp>opList[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DBatchAsync(numOps, cyopList, flags, cystream)
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_opList, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)__pyx_t_3)->_pvt_ptr;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_cyopList = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":22218
 *         for idx in range(len(opList)):
 *             string.memcpy(&cyopList[idx], (<cudaMemcpy3DBatchOp>opList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemcpy3DBatchOp))
 *     elif len(opList) == 1:             # <<<<<<<<<<<<<<
 *         cyopList = (<cudaMemcpy3DBatchOp>opList[0])._pvt_ptr
 *     with nogil:
*/
  }
  __pyx_L8:;

  /* "cuda/bindings/runtime.pyx":22220
 *     elif len(opList) == 1:
 *         cyopList = (<cudaMemcpy3DBatchOp>opList[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3DBatchAsync(numOps, cyopList, flags, cystream)
 *     if len(opList) > 1 and cyopList is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22221
 *         cyopList = (<cudaMemcpy3DBatchOp>opList[0])._pvt_ptr
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DBatchAsync(numOps, cyopList, flags, cystream)             # <<<<<<<<<<<<<<
 *     if len(opList) > 1 and cyopList is not NULL:
 *         free(cyopList)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DBatchAsync(__pyx_v_numOps, __pyx_v_cyopList, __pyx_v_flags, __pyx_v_cystream); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22221, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":22220
 *     elif len(opList) == 1:
 *         cyopList = (<cudaMemcpy3DBatchOp>opList[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy3DBatchAsync(numOps, cyopList, flags, cystream)
 *     if len(opList) > 1 and cyopList is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22222
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DBatchAsync(numOps, cyopList, flags, cystream)
 *     if len(opList) > 1 and cyopList is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyopList)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_opList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22222, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_1 = (__pyx_v_cyopList != NULL);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22223
 *         err = cyruntime.cudaMemcpy3DBatchAsync(numOps, cyopList, flags, cystream)
 *     if len(opList) > 1 and cyopList is not NULL:
 *         free(cyopList)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cyopList);

    /* "cuda/bindings/runtime.pyx":22222
 *     with nogil:
 *         err = cyruntime.cudaMemcpy3DBatchAsync(numOps, cyopList, flags, cystream)
 *     if len(opList) > 1 and cyopList is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyopList)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":22224
 *     if len(opList) > 1 and cyopList is not NULL:
 *         free(cyopList)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 22224, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22099
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]], unsigned long long flags, stream):
 *     """ Performs a batch of 3D memory copies asynchronously.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy3DBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_22cudaMemcpy3DBatchAsync_2generator101);
  __Pyx_XDECREF(__pyx_v_opList);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22226
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_255cudaMemcpy2DAsync(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_7runtime_254cudaMemcpy2DAsync, "cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind: cudaMemcpyKind, stream)\n\nCopies data between host and device.\n\nCopies a matrix (`height` rows of `width` bytes each) from the memory\narea pointed to by `src` to the memory area pointed to by `dst`, where\n`kind` specifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. `dpitch` and `spitch` are the widths in\nmemory in bytes of the 2D arrays pointed to by `dst` and `src`,\nincluding any padding added to the end of each row. The memory areas\nmay not overlap. `width` must not exceed either `dpitch` or `spitch`.\n\nCalling :py:obj:`~.cudaMemcpy2DAsync()` with `dst` and `src` pointers\nthat do not match the direction of the copy results in an undefined\nbehavior. :py:obj:`~.cudaMemcpy2DAsync()` returns an error if `dpitch`\nor `spitch` is greater than the maximum allowed.\n\n:py:obj:`~.cudaMemcpy2DAsync()` is asynchronous with respect to the\nhost, so the call may return before the copy is complete. The copy can\noptionally be associated to a stream by passing a non-zero `stream`\nargument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\nmay overlap with operations in other streams.\n\nThe device version of this function only handles device to device\ncopies and cannot be given local or shared pointers.\n\nParameters\n----------\ndst : Any\n    Destination memory address\ndpitch : size_t\n    Pitch of destination memory\nsrc : Any\n    Source memory address\nspitch : size_t\n    Pitch of sou""rce memory\nwidth : size_t\n    Width of matrix transfer (columns in bytes)\nheight : size_t\n    Height of matrix transfer (rows)\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2DAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_255cudaMemcpy2DAsync = {"cudaMemcpy2DAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_255cudaMemcpy2DAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_254cudaMemcpy2DAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_255cudaMemcpy2DAsync(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_dst = 0;
  size_t __pyx_v_dpitch;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_spitch;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  PyObject *__pyx_v_kind = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy2DAsync (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_dst_2,&__pyx_mstate_global->__pyx_n_u_dpitch,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_spitch,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_kind_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22226, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 22226, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 22226, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22226, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22226, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22226, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22226, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22226, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22226, __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, "cudaMemcpy2DAsync", 0) < (0)) __PYX_ERR(0, 22226, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, i); __PYX_ERR(0, 22226, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      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, 22226, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22226, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22226, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22226, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22226, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22226, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 22226, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 22226, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_dpitch = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_dpitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22227, __pyx_L3_error)
    __pyx_v_src = values[2];
    __pyx_v_spitch = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_spitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22227, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22227, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22227, __pyx_L3_error)
    __pyx_v_kind = values[6];
    __pyx_v_stream = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DAsync", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 22226, __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.runtime.cudaMemcpy2DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 22227, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_254cudaMemcpy2DAsync(__pyx_self, __pyx_v_dst, __pyx_v_dpitch, __pyx_v_src, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_kind, __pyx_v_stream);

  /* 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_7runtime_254cudaMemcpy2DAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_dpitch, PyObject *__pyx_v_src, size_t __pyx_v_spitch, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemcpyKind __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy2DAsync", 0);

  /* "cuda/bindings/runtime.pyx":22288
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22289
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22288
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22290
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22291
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22290
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22293
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22293, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22294
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22294, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22295
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22295, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22296
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22297
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22297, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22298
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22298, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22299
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DAsync(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind, cystream)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22299, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cykind = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":22300
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DAsync(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22301
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DAsync(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DAsync(__pyx_v_cydst_ptr, __pyx_v_dpitch, __pyx_v_cysrc_ptr, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_cykind, __pyx_v_cystream); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22301, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":22300
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DAsync(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22302
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DAsync(cydst_ptr, dpitch, cysrc_ptr, spitch, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 22302, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22226
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy2DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22304
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_257cudaMemcpy2DToArrayAsync(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_7runtime_256cudaMemcpy2DToArrayAsync, "cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind: cudaMemcpyKind, stream)\n\nCopies data between host and device.\n\nCopies a matrix (`height` rows of `width` bytes each) from the memory\narea pointed to by `src` to the CUDA array `dst` starting at `hOffset`\nrows and `wOffset` bytes from the upper left corner, where `kind`\nspecifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. `spitch` is the width in memory in bytes of\nthe 2D array pointed to by `src`, including any padding added to the\nend of each row. `wOffset` + `width` must not exceed the width of the\nCUDA array `dst`. `width` must not exceed `spitch`.\n:py:obj:`~.cudaMemcpy2DToArrayAsync()` returns an error if `spitch`\nexceeds the maximum allowed.\n\n:py:obj:`~.cudaMemcpy2DToArrayAsync()` is asynchronous with respect to\nthe host, so the call may return before the copy is complete. The copy\ncan optionally be associated to a stream by passing a non-zero `stream`\nargument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\nmay overlap with operations in other streams.\n\n:py:obj:`~.cudaMemcpy2DFromArrayAsync`,\n:py:obj:`~.cudaMemcpyToSymbolAsync`,\n:py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2DAsync`\n\nParameters\n----------\ndst : :py:obj:`~.cudaArray_t`\n    Destination memory address\nwOffset : size_t\n    Destination starting X offset (columns in bytes)\nhOffset : size_t\n    Destination starting Y offset (rows)\nsrc : Any\n    Source mem""ory address\nspitch : size_t\n    Pitch of source memory\nwidth : size_t\n    Width of matrix transfer (columns in bytes)\nheight : size_t\n    Height of matrix transfer (rows)\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`,");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_257cudaMemcpy2DToArrayAsync = {"cudaMemcpy2DToArrayAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_257cudaMemcpy2DToArrayAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_256cudaMemcpy2DToArrayAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_257cudaMemcpy2DToArrayAsync(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_dst = 0;
  size_t __pyx_v_wOffset;
  size_t __pyx_v_hOffset;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_spitch;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  PyObject *__pyx_v_kind = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy2DToArrayAsync (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_dst_2,&__pyx_mstate_global->__pyx_n_u_wOffset,&__pyx_mstate_global->__pyx_n_u_hOffset,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_spitch,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_kind_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22304, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 22304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 22304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 22304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22304, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22304, __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, "cudaMemcpy2DToArrayAsync", 0) < (0)) __PYX_ERR(0, 22304, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 9; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, i); __PYX_ERR(0, 22304, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 9)) {
      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, 22304, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22304, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22304, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22304, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22304, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22304, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 22304, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 22304, __pyx_L3_error)
      values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 22304, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_wOffset = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22305, __pyx_L3_error)
    __pyx_v_hOffset = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22305, __pyx_L3_error)
    __pyx_v_src = values[3];
    __pyx_v_spitch = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_spitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22305, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22305, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[6]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22305, __pyx_L3_error)
    __pyx_v_kind = values[7];
    __pyx_v_stream = values[8];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DToArrayAsync", 1, 9, 9, __pyx_nargs); __PYX_ERR(0, 22304, __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.runtime.cudaMemcpy2DToArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 22305, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_256cudaMemcpy2DToArrayAsync(__pyx_self, __pyx_v_dst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_src, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_kind, __pyx_v_stream);

  /* 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_7runtime_256cudaMemcpy2DToArrayAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, PyObject *__pyx_v_src, size_t __pyx_v_spitch, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaArray_t __pyx_v_cydst;
  PyObject *__pyx_v_pdst = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemcpyKind __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy2DToArrayAsync", 0);

  /* "cuda/bindings/runtime.pyx":22367
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22368
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22367
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22369
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22370
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22369
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22372
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_t cydst
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22372, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22372, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22373
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22373, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22375
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_dst == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22376
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
 *         pdst = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdst = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22375
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":22377
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22378
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)             # <<<<<<<<<<<<<<
 *     else:
 *         pdst = int(cudaArray_t(dst))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pdst = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":22377
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":22380
 *         pdst = int(dst)
 *     else:
 *         pdst = int(cudaArray_t(dst))             # <<<<<<<<<<<<<<
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22380, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22380, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pdst = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":22381
 *     else:
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22381, __pyx_L1_error)
  __pyx_v_cydst = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22382
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_src};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22382, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22383
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22383, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22384
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind, cystream)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":22385
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22386
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DToArrayAsync(__pyx_v_cydst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_cysrc_ptr, __pyx_v_spitch, __pyx_v_width, __pyx_v_height, __pyx_v_cykind, __pyx_v_cystream); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22386, __pyx_L8_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":22385
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22387
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, spitch, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 22387, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22304
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy2DToArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pdst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22389
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_259cudaMemcpy2DFromArrayAsync(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_7runtime_258cudaMemcpy2DFromArrayAsync, "cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind: cudaMemcpyKind, stream)\n\nCopies data between host and device.\n\nCopies a matrix (`height` rows of `width` bytes each) from the CUDA\narray `src` starting at `hOffset` rows and `wOffset` bytes from the\nupper left corner to the memory area pointed to by `dst`, where `kind`\nspecifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. `dpitch` is the width in memory in bytes of\nthe 2D array pointed to by `dst`, including any padding added to the\nend of each row. `wOffset` + `width` must not exceed the width of the\nCUDA array `src`. `width` must not exceed `dpitch`.\n:py:obj:`~.cudaMemcpy2DFromArrayAsync()` returns an error if `dpitch`\nexceeds the maximum allowed.\n\n:py:obj:`~.cudaMemcpy2DFromArrayAsync()` is asynchronous with respect\nto the host, so the call may return before the copy is complete. The\ncopy can optionally be associated to a stream by passing a non-zero\n`stream` argument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\nmay overlap with operations in other streams.\n\n:py:obj:`~.cudaMemcpyToSymbolAsync`,\n:py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpy2DAsync`\n\nParameters\n----------\ndst : Any\n    Destination memory address\ndpitch : size_t\n    Pitch of destination memory\nsrc : :py:obj:`~.cudaArray_const_t`\n    Source memory address\nwOffset : size_t\n    Source starting X offset (columns in bytes)\nhOffset : size_t\n    Source st""arting Y offset (rows)\nwidth : size_t\n    Width of matrix transfer (columns in bytes)\nheight : size_t\n    Height of matrix transfer (rows)\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidPitchValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`,");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_259cudaMemcpy2DFromArrayAsync = {"cudaMemcpy2DFromArrayAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_259cudaMemcpy2DFromArrayAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_258cudaMemcpy2DFromArrayAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_259cudaMemcpy2DFromArrayAsync(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_dst = 0;
  size_t __pyx_v_dpitch;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_wOffset;
  size_t __pyx_v_hOffset;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  PyObject *__pyx_v_kind = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpy2DFromArrayAsync (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_dst_2,&__pyx_mstate_global->__pyx_n_u_dpitch,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_wOffset,&__pyx_mstate_global->__pyx_n_u_hOffset,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_kind_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22389, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 22389, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 22389, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 22389, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22389, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22389, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22389, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22389, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22389, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22389, __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, "cudaMemcpy2DFromArrayAsync", 0) < (0)) __PYX_ERR(0, 22389, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 9; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, i); __PYX_ERR(0, 22389, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 9)) {
      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, 22389, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22389, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22389, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22389, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22389, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22389, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 22389, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 22389, __pyx_L3_error)
      values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 22389, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_dpitch = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_dpitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22390, __pyx_L3_error)
    __pyx_v_src = values[2];
    __pyx_v_wOffset = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22390, __pyx_L3_error)
    __pyx_v_hOffset = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22390, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22390, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[6]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22390, __pyx_L3_error)
    __pyx_v_kind = values[7];
    __pyx_v_stream = values[8];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpy2DFromArrayAsync", 1, 9, 9, __pyx_nargs); __PYX_ERR(0, 22389, __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.runtime.cudaMemcpy2DFromArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 22390, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_258cudaMemcpy2DFromArrayAsync(__pyx_self, __pyx_v_dst, __pyx_v_dpitch, __pyx_v_src, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_width, __pyx_v_height, __pyx_v_kind, __pyx_v_stream);

  /* 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_7runtime_258cudaMemcpy2DFromArrayAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_dpitch, PyObject *__pyx_v_src, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaArray_const_t __pyx_v_cysrc;
  PyObject *__pyx_v_psrc = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemcpyKind __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpy2DFromArrayAsync", 0);

  /* "cuda/bindings/runtime.pyx":22451
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22452
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22451
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22453
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22454
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22454, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22453
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22456
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_const_t cysrc
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22456, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22456, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22457
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22457, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22459
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
  __pyx_t_1 = (__pyx_v_src == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22460
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:
 *         psrc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psrc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22459
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":22461
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22462
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)             # <<<<<<<<<<<<<<
 *     else:
 *         psrc = int(cudaArray_const_t(src))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_psrc = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":22461
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":22464
 *         psrc = int(src)
 *     else:
 *         psrc = int(cudaArray_const_t(src))             # <<<<<<<<<<<<<<
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22464, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_psrc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":22465
 *     else:
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22465, __pyx_L1_error)
  __pyx_v_cysrc = ((cudaArray_const_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22466
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_dst};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22466, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22467
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22467, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22468
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DFromArrayAsync(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind, cystream)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22468, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":22469
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DFromArrayAsync(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22470
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DFromArrayAsync(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DFromArrayAsync(__pyx_v_cydst_ptr, __pyx_v_dpitch, __pyx_v_cysrc, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_width, __pyx_v_height, __pyx_v_cykind, __pyx_v_cystream); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22470, __pyx_L8_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":22469
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpy2DFromArrayAsync(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22471
 *     with nogil:
 *         err = cyruntime.cudaMemcpy2DFromArrayAsync(cydst_ptr, dpitch, cysrc, wOffset, hOffset, width, height, cykind, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 22471, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22389
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpy2DFromArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_psrc);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22473
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset(devPtr, int value, size_t count):
 *     """ Initializes or sets device memory to a value.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_261cudaMemset(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_7runtime_260cudaMemset, "cudaMemset(devPtr, int value, size_t count)\n\nInitializes or sets device memory to a value.\n\nFills the first `count` bytes of the memory area pointed to by `devPtr`\nwith the constant byte value `value`.\n\nNote that this function is asynchronous with respect to the host unless\n`devPtr` refers to pinned host memory.\n\nParameters\n----------\ndevPtr : Any\n    Pointer to device memory\nvalue : int\n    Value to set for each byte of specified memory\ncount : size_t\n    Size in bytes to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cuMemsetD8`, :py:obj:`~.cuMemsetD16`, :py:obj:`~.cuMemsetD32`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_261cudaMemset = {"cudaMemset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_261cudaMemset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_260cudaMemset};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_261cudaMemset(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_devPtr = 0;
  int __pyx_v_value;
  size_t __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemset (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_devPtr_2,&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_count,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, 22473, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22473, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22473, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22473, __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, "cudaMemset", 0) < (0)) __PYX_ERR(0, 22473, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemset", 1, 3, 3, i); __PYX_ERR(0, 22473, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 22473, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22473, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22473, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
    __pyx_v_value = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22474, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22474, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemset", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 22473, __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.runtime.cudaMemset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_260cudaMemset(__pyx_self, __pyx_v_devPtr, __pyx_v_value, __pyx_v_count);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_260cudaMemset(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, int __pyx_v_value, size_t __pyx_v_count) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemset", 0);

  /* "cuda/bindings/runtime.pyx":22501
 *     :py:obj:`~.cuMemsetD8`, :py:obj:`~.cuMemsetD16`, :py:obj:`~.cuMemsetD32`
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22501, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":22502
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemset(cydevPtr_ptr, value, count)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22502, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":22503
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset(cydevPtr_ptr, value, count)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22504
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemset(cydevPtr_ptr, value, count)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemset(__pyx_v_cydevPtr_ptr, __pyx_v_value, __pyx_v_count); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22504, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":22503
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset(cydevPtr_ptr, value, count)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22505
 *     with nogil:
 *         err = cyruntime.cudaMemset(cydevPtr_ptr, value, count)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 22505, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22473
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset(devPtr, int value, size_t count):
 *     """ Initializes or sets device memory to a value.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22507
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height):
 *     """ Initializes or sets device memory to a value.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_263cudaMemset2D(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_7runtime_262cudaMemset2D, "cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height)\n\nInitializes or sets device memory to a value.\n\nSets to the specified value `value` a matrix (`height` rows of `width`\nbytes each) pointed to by `dstPtr`. `pitch` is the width in bytes of\nthe 2D array pointed to by `dstPtr`, including any padding added to the\nend of each row. This function performs fastest when the pitch is one\nthat has been passed back by :py:obj:`~.cudaMallocPitch()`.\n\nNote that this function is asynchronous with respect to the host unless\n`devPtr` refers to pinned host memory.\n\nParameters\n----------\ndevPtr : Any\n    Pointer to 2D device memory\npitch : size_t\n    Pitch in bytes of 2D device memory(Unused if `height` is 1)\nvalue : int\n    Value to set for each byte of specified memory\nwidth : size_t\n    Width of matrix set (columns in bytes)\nheight : size_t\n    Height of matrix set (rows)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset2DAsync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cuMemsetD2D8`, :py:obj:`~.cuMemsetD2D16`, :py:obj:`~.cuMemsetD2D32`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_263cudaMemset2D = {"cudaMemset2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_263cudaMemset2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_262cudaMemset2D};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_263cudaMemset2D(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_devPtr = 0;
  size_t __pyx_v_pitch;
  int __pyx_v_value;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemset2D (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_devPtr_2,&__pyx_mstate_global->__pyx_n_u_pitch_2,&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,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, 22507, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22507, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22507, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22507, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22507, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22507, __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, "cudaMemset2D", 0) < (0)) __PYX_ERR(0, 22507, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemset2D", 1, 5, 5, i); __PYX_ERR(0, 22507, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 22507, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22507, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22507, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22507, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22507, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
    __pyx_v_pitch = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22508, __pyx_L3_error)
    __pyx_v_value = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22508, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22508, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22508, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemset2D", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 22507, __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.runtime.cudaMemset2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_262cudaMemset2D(__pyx_self, __pyx_v_devPtr, __pyx_v_pitch, __pyx_v_value, __pyx_v_width, __pyx_v_height);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_262cudaMemset2D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_pitch, int __pyx_v_value, size_t __pyx_v_width, size_t __pyx_v_height) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemset2D", 0);

  /* "cuda/bindings/runtime.pyx":22542
 *     :py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset2DAsync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cuMemsetD2D8`, :py:obj:`~.cuMemsetD2D16`, :py:obj:`~.cuMemsetD2D32`
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22542, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":22543
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemset2D(cydevPtr_ptr, pitch, value, width, height)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":22544
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset2D(cydevPtr_ptr, pitch, value, width, height)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22545
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemset2D(cydevPtr_ptr, pitch, value, width, height)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemset2D(__pyx_v_cydevPtr_ptr, __pyx_v_pitch, __pyx_v_value, __pyx_v_width, __pyx_v_height); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22545, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":22544
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset2D(cydevPtr_ptr, pitch, value, width, height)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22546
 *     with nogil:
 *         err = cyruntime.cudaMemset2D(cydevPtr_ptr, pitch, value, width, height)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 22546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 22546, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22507
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height):
 *     """ Initializes or sets device memory to a value.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemset2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22548
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset3D(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent):
 *     """ Initializes or sets device memory to a value.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_265cudaMemset3D(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_7runtime_264cudaMemset3D, "cudaMemset3D(cudaPitchedPtr pitchedDevPtr: cudaPitchedPtr, int value, cudaExtent extent: cudaExtent)\n\nInitializes or sets device memory to a value.\n\nInitializes each element of a 3D array to the specified value `value`.\nThe object to initialize is defined by `pitchedDevPtr`. The `pitch`\nfield of `pitchedDevPtr` is the width in memory in bytes of the 3D\narray pointed to by `pitchedDevPtr`, including any padding added to the\nend of each row. The `xsize` field specifies the logical width of each\nrow in bytes, while the `ysize` field specifies the height of each 2D\nslice in rows. The `pitch` field of `pitchedDevPtr` is ignored when\n`height` and `depth` are both equal to 1.\n\nThe extents of the initialized region are specified as a `width` in\nbytes, a `height` in rows, and a `depth` in slices.\n\nExtents with `width` greater than or equal to the `xsize` of\n`pitchedDevPtr` may perform significantly faster than extents narrower\nthan the `xsize`. Secondarily, extents with `height` equal to the\n`ysize` of `pitchedDevPtr` will perform faster than when the `height`\nis shorter than the `ysize`.\n\nThis function performs fastest when the `pitchedDevPtr` has been\nallocated by :py:obj:`~.cudaMalloc3D()`.\n\nNote that this function is asynchronous with respect to the host unless\n`pitchedDevPtr` refers to pinned host memory.\n\nParameters\n----------\npitchedDevPtr : :py:obj:`~.cudaPitchedPtr`\n    Pointer to pitched device memory\nvalue : int\n    Value to set for each byte of specified memory\nextent : :py:obj:`~.cudaExtent`\n    Size parameters for where to set device memory (`width` field in\n    bytes)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset2DAsync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.make_cudaPitchedPtr`, :py:obj:`~.make_cudaExtent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_265cudaMemset3D = {"cudaMemset3D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_265cudaMemset3D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_264cudaMemset3D};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_265cudaMemset3D(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_pitchedDevPtr = 0;
  int __pyx_v_value;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemset3D (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_pitchedDevPtr,&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_extent_2,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, 22548, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22548, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22548, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22548, __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, "cudaMemset3D", 0) < (0)) __PYX_ERR(0, 22548, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemset3D", 1, 3, 3, i); __PYX_ERR(0, 22548, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 22548, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22548, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22548, __pyx_L3_error)
    }
    __pyx_v_pitchedDevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)values[0]);
    __pyx_v_value = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22549, __pyx_L3_error)
    __pyx_v_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemset3D", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 22548, __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.runtime.cudaMemset3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pitchedDevPtr), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, 0, "pitchedDevPtr", 0))) __PYX_ERR(0, 22549, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 22549, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_264cudaMemset3D(__pyx_self, __pyx_v_pitchedDevPtr, __pyx_v_value, __pyx_v_extent);

  /* 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_7runtime_264cudaMemset3D(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_pitchedDevPtr, int __pyx_v_value, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemset3D", 0);

  /* "cuda/bindings/runtime.pyx":22595
 *     :py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset2DAsync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.make_cudaPitchedPtr`, :py:obj:`~.make_cudaExtent`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset3D(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0])
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22596
 *     """
 *     with nogil:
 *         err = cyruntime.cudaMemset3D(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemset3D((__pyx_v_pitchedDevPtr->_pvt_ptr[0]), __pyx_v_value, (__pyx_v_extent->_pvt_ptr[0])); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22596, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":22595
 *     :py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset2DAsync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.make_cudaPitchedPtr`, :py:obj:`~.make_cudaExtent`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset3D(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0])
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22597
 *     with nogil:
 *         err = cyruntime.cudaMemset3D(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0])
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 22597, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22548
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset3D(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent):
 *     """ Initializes or sets device memory to a value.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemset3D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22599
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemsetAsync(devPtr, int value, size_t count, stream):
 *     """ Initializes or sets device memory to a value.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_267cudaMemsetAsync(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_7runtime_266cudaMemsetAsync, "cudaMemsetAsync(devPtr, int value, size_t count, stream)\n\nInitializes or sets device memory to a value.\n\nFills the first `count` bytes of the memory area pointed to by `devPtr`\nwith the constant byte value `value`.\n\n:py:obj:`~.cudaMemsetAsync()` is asynchronous with respect to the host,\nso the call may return before the memset is complete. The operation can\noptionally be associated to a stream by passing a non-zero `stream`\nargument. If `stream` is non-zero, the operation may overlap with\noperations in other streams.\n\nThe device version of this function only handles device to device\ncopies and cannot be given local or shared pointers.\n\nParameters\n----------\ndevPtr : Any\n    Pointer to device memory\nvalue : int\n    Value to set for each byte of specified memory\ncount : size_t\n    Size in bytes to set\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMemset2DAsync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cuMemsetD8Async`, :py:obj:`~.cuMemsetD16Async`, :py:obj:`~.cuMemsetD32Async`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_267cudaMemsetAsync = {"cudaMemsetAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_267cudaMemsetAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_266cudaMemsetAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_267cudaMemsetAsync(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_devPtr = 0;
  int __pyx_v_value;
  size_t __pyx_v_count;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemsetAsync (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_devPtr_2,&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_stream,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, 22599, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22599, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22599, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22599, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22599, __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, "cudaMemsetAsync", 0) < (0)) __PYX_ERR(0, 22599, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemsetAsync", 1, 4, 4, i); __PYX_ERR(0, 22599, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 22599, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22599, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22599, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22599, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
    __pyx_v_value = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22600, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22600, __pyx_L3_error)
    __pyx_v_stream = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemsetAsync", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 22599, __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.runtime.cudaMemsetAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_266cudaMemsetAsync(__pyx_self, __pyx_v_devPtr, __pyx_v_value, __pyx_v_count, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_266cudaMemsetAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, int __pyx_v_value, size_t __pyx_v_count, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemsetAsync", 0);

  /* "cuda/bindings/runtime.pyx":22636
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22637
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22636
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22638
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22639
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22638
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22641
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22641, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22641, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22642
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22642, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22643
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_devPtr};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22643, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22644
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemsetAsync(cydevPtr_ptr, value, count, cystream)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22644, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22645
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemsetAsync(cydevPtr_ptr, value, count, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22646
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemsetAsync(cydevPtr_ptr, value, count, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemsetAsync(__pyx_v_cydevPtr_ptr, __pyx_v_value, __pyx_v_count, __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22646, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":22645
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemsetAsync(cydevPtr_ptr, value, count, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22647
 *     with nogil:
 *         err = cyruntime.cudaMemsetAsync(cydevPtr_ptr, value, count, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 22647, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22599
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemsetAsync(devPtr, int value, size_t count, stream):
 *     """ Initializes or sets device memory to a value.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemsetAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22649
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t height, stream):
 *     """ Initializes or sets device memory to a value.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_269cudaMemset2DAsync(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_7runtime_268cudaMemset2DAsync, "cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t height, stream)\n\nInitializes or sets device memory to a value.\n\nSets to the specified value `value` a matrix (`height` rows of `width`\nbytes each) pointed to by `dstPtr`. `pitch` is the width in bytes of\nthe 2D array pointed to by `dstPtr`, including any padding added to the\nend of each row. This function performs fastest when the pitch is one\nthat has been passed back by :py:obj:`~.cudaMallocPitch()`.\n\n:py:obj:`~.cudaMemset2DAsync()` is asynchronous with respect to the\nhost, so the call may return before the memset is complete. The\noperation can optionally be associated to a stream by passing a non-\nzero `stream` argument. If `stream` is non-zero, the operation may\noverlap with operations in other streams.\n\nThe device version of this function only handles device to device\ncopies and cannot be given local or shared pointers.\n\nParameters\n----------\ndevPtr : Any\n    Pointer to 2D device memory\npitch : size_t\n    Pitch in bytes of 2D device memory(Unused if `height` is 1)\nvalue : int\n    Value to set for each byte of specified memory\nwidth : size_t\n    Width of matrix set (columns in bytes)\nheight : size_t\n    Height of matrix set (rows)\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset3DAsync`, :py:obj:`~.cuMemsetD2D8Async`, :py:obj:`~.cuMemsetD2D16Async`, :py:obj:`~.cuMemsetD2D32Async`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_269cudaMemset2DAsync = {"cudaMemset2DAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_269cudaMemset2DAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_268cudaMemset2DAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_269cudaMemset2DAsync(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_devPtr = 0;
  size_t __pyx_v_pitch;
  int __pyx_v_value;
  size_t __pyx_v_width;
  size_t __pyx_v_height;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemset2DAsync (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_devPtr_2,&__pyx_mstate_global->__pyx_n_u_pitch_2,&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22649, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22649, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22649, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22649, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22649, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22649, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22649, __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, "cudaMemset2DAsync", 0) < (0)) __PYX_ERR(0, 22649, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemset2DAsync", 1, 6, 6, i); __PYX_ERR(0, 22649, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      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, 22649, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22649, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22649, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22649, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22649, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22649, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
    __pyx_v_pitch = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_pitch == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22650, __pyx_L3_error)
    __pyx_v_value = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22650, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_width == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22650, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_height == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22650, __pyx_L3_error)
    __pyx_v_stream = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemset2DAsync", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 22649, __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.runtime.cudaMemset2DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_268cudaMemset2DAsync(__pyx_self, __pyx_v_devPtr, __pyx_v_pitch, __pyx_v_value, __pyx_v_width, __pyx_v_height, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_268cudaMemset2DAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_pitch, int __pyx_v_value, size_t __pyx_v_width, size_t __pyx_v_height, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemset2DAsync", 0);

  /* "cuda/bindings/runtime.pyx":22693
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22694
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22693
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22695
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22696
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22695
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22698
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22698, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22698, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22699
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22699, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22700
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_devPtr};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22700, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22701
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemset2DAsync(cydevPtr_ptr, pitch, value, width, height, cystream)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22701, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22702
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset2DAsync(cydevPtr_ptr, pitch, value, width, height, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22703
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemset2DAsync(cydevPtr_ptr, pitch, value, width, height, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemset2DAsync(__pyx_v_cydevPtr_ptr, __pyx_v_pitch, __pyx_v_value, __pyx_v_width, __pyx_v_height, __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22703, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":22702
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset2DAsync(cydevPtr_ptr, pitch, value, width, height, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22704
 *     with nogil:
 *         err = cyruntime.cudaMemset2DAsync(cydevPtr_ptr, pitch, value, width, height, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 22704, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22649
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t height, stream):
 *     """ Initializes or sets device memory to a value.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemset2DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22706
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset3DAsync(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent, stream):
 *     """ Initializes or sets device memory to a value.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_271cudaMemset3DAsync(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_7runtime_270cudaMemset3DAsync, "cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr: cudaPitchedPtr, int value, cudaExtent extent: cudaExtent, stream)\n\nInitializes or sets device memory to a value.\n\nInitializes each element of a 3D array to the specified value `value`.\nThe object to initialize is defined by `pitchedDevPtr`. The `pitch`\nfield of `pitchedDevPtr` is the width in memory in bytes of the 3D\narray pointed to by `pitchedDevPtr`, including any padding added to the\nend of each row. The `xsize` field specifies the logical width of each\nrow in bytes, while the `ysize` field specifies the height of each 2D\nslice in rows. The `pitch` field of `pitchedDevPtr` is ignored when\n`height` and `depth` are both equal to 1.\n\nThe extents of the initialized region are specified as a `width` in\nbytes, a `height` in rows, and a `depth` in slices.\n\nExtents with `width` greater than or equal to the `xsize` of\n`pitchedDevPtr` may perform significantly faster than extents narrower\nthan the `xsize`. Secondarily, extents with `height` equal to the\n`ysize` of `pitchedDevPtr` will perform faster than when the `height`\nis shorter than the `ysize`.\n\nThis function performs fastest when the `pitchedDevPtr` has been\nallocated by :py:obj:`~.cudaMalloc3D()`.\n\n:py:obj:`~.cudaMemset3DAsync()` is asynchronous with respect to the\nhost, so the call may return before the memset is complete. The\noperation can optionally be associated to a stream by passing a non-\nzero `stream` argument. If `stream` is non-zero, the operation may\noverlap with operations in other streams.\n\nThe device version of this function only handles device to device\ncopies and cannot be given local or shared pointers.\n\nParameters\n----------\npitchedDevPtr : :py:obj:`~.cudaPitchedPtr`\n    Pointer to pitched device memory\nvalue : int\n    Value to set for each byte of specified memory\nextent : :py:obj:`~.cudaExtent`\n    Size parameters for where to set device memory (`width` field in\n    bytes)\nstream : :py:obj:`~.CUstream` o""r :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaMemset`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaMemset3D`, :py:obj:`~.cudaMemsetAsync`, :py:obj:`~.cudaMemset2DAsync`, :py:obj:`~.cudaMalloc3D`, :py:obj:`~.make_cudaPitchedPtr`, :py:obj:`~.make_cudaExtent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_271cudaMemset3DAsync = {"cudaMemset3DAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_271cudaMemset3DAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_270cudaMemset3DAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_271cudaMemset3DAsync(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_pitchedDevPtr = 0;
  int __pyx_v_value;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemset3DAsync (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_pitchedDevPtr,&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_extent_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22706, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22706, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22706, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22706, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22706, __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, "cudaMemset3DAsync", 0) < (0)) __PYX_ERR(0, 22706, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemset3DAsync", 1, 4, 4, i); __PYX_ERR(0, 22706, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 22706, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22706, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22706, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22706, __pyx_L3_error)
    }
    __pyx_v_pitchedDevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)values[0]);
    __pyx_v_value = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22707, __pyx_L3_error)
    __pyx_v_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)values[2]);
    __pyx_v_stream = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemset3DAsync", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 22706, __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.runtime.cudaMemset3DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pitchedDevPtr), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, 0, "pitchedDevPtr", 0))) __PYX_ERR(0, 22707, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_extent), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, 0, "extent", 0))) __PYX_ERR(0, 22707, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_270cudaMemset3DAsync(__pyx_self, __pyx_v_pitchedDevPtr, __pyx_v_value, __pyx_v_extent, __pyx_v_stream);

  /* 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_7runtime_270cudaMemset3DAsync(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_pitchedDevPtr, int __pyx_v_value, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_extent, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemset3DAsync", 0);

  /* "cuda/bindings/runtime.pyx":22762
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22763
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22762
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22764
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22765
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22765, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22764
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22767
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22767, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22767, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22768
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemset3DAsync(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0], cystream)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22768, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22769
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset3DAsync(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0], cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22770
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:
 *         err = cyruntime.cudaMemset3DAsync(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0], cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemset3DAsync((__pyx_v_pitchedDevPtr->_pvt_ptr[0]), __pyx_v_value, (__pyx_v_extent->_pvt_ptr[0]), __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22770, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":22769
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemset3DAsync(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0], cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22771
 *     with nogil:
 *         err = cyruntime.cudaMemset3DAsync(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0], cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 22771, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22706
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset3DAsync(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent, stream):
 *     """ Initializes or sets device memory to a value.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemset3DAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22773
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPrefetchAsync(devPtr, size_t count, location not None : cudaMemLocation, unsigned int flags, stream):
 *     """ Prefetches memory to the specified destination location.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_273cudaMemPrefetchAsync(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_7runtime_272cudaMemPrefetchAsync, "cudaMemPrefetchAsync(devPtr, size_t count, cudaMemLocation location: cudaMemLocation, unsigned int flags, stream)\n\nPrefetches memory to the specified destination location.\n\nPrefetches memory to the specified destination location. `devPtr` is\nthe base device pointer of the memory to be prefetched and `location`\nspecifies the destination location. `count` specifies the number of\nbytes to copy. `stream` is the stream in which the operation is\nenqueued. The memory range must refer to managed memory allocated via\n:py:obj:`~.cudaMallocManaged` or declared via managed variables, or it\nmay also refer to memory allocated from a managed memory pool, or it\nmay also refer to system-allocated memory on systems with non-zero\ncudaDevAttrPageableMemoryAccess.\n\nSpecifying :py:obj:`~.cudaMemLocationTypeDevice` for\n:py:obj:`~.cudaMemLocation.type` will prefetch memory to GPU specified\nby device ordinal :py:obj:`~.cudaMemLocation.id` which must have non-\nzero value for the device attribute\n:py:obj:`~.concurrentManagedAccess`. Additionally, `stream` must be\nassociated with a device that has a non-zero value for the device\nattribute :py:obj:`~.concurrentManagedAccess`. Specifying\n:py:obj:`~.cudaMemLocationTypeHost` as :py:obj:`~.cudaMemLocation.type`\nwill prefetch data to host memory. Applications can request prefetching\nmemory to a specific host NUMA node by specifying\n:py:obj:`~.cudaMemLocationTypeHostNuma` for\n:py:obj:`~.cudaMemLocation.type` and a valid host NUMA node id in\n:py:obj:`~.cudaMemLocation.id` Users can also request prefetching\nmemory to the host NUMA node closest to the current thread's CPU by\nspecifying :py:obj:`~.cudaMemLocationTypeHostNumaCurrent` for\n:py:obj:`~.cudaMemLocation.type`. Note when\n:py:obj:`~.cudaMemLocation.type` is etiher\n:py:obj:`~.cudaMemLocationTypeHost` OR\n:py:obj:`~.cudaMemLocationTypeHostNumaCurrent`,\n:py:obj:`~.cudaMemLocation.id` will be ignored.\n\nThe start address and end address of the memory range will be rou""nded\ndown and rounded up respectively to be aligned to CPU page size before\nthe prefetch operation is enqueued in the stream.\n\nIf no physical memory has been allocated for this region, then this\nmemory region will be populated and mapped on the destination device.\nIf there's insufficient memory to prefetch the desired region, the\nUnified Memory driver may evict pages from other\n:py:obj:`~.cudaMallocManaged` allocations to host memory in order to\nmake room. Device memory allocated using :py:obj:`~.cudaMalloc` or\n:py:obj:`~.cudaMallocArray` will not be evicted.\n\nBy default, any mappings to the previous location of the migrated pages\nare removed and mappings for the new location are only setup on the\ndestination location. The exact behavior however also depends on the\nsettings applied to this memory range via :py:obj:`~.cuMemAdvise` as\ndescribed below:\n\nIf :py:obj:`~.cudaMemAdviseSetReadMostly` was set on any subset of this\nmemory range, then that subset will create a read-only copy of the\npages on destination location. If however the destination location is a\nhost NUMA node, then any pages of that subset that are already in\nanother host NUMA node will be transferred to the destination.\n\nIf :py:obj:`~.cudaMemAdviseSetPreferredLocation` was called on any\nsubset of this memory range, then the pages will be migrated to\n`location` even if `location` is not the preferred location of any\npages in the memory range.\n\nIf :py:obj:`~.cudaMemAdviseSetAccessedBy` was called on any subset of\nthis memory range, then mappings to those pages from all the\nappropriate processors are updated to refer to the new location if\nestablishing such a mapping is possible. Otherwise, those mappings are\ncleared.\n\nNote that this API is not required for functionality and only serves to\nimprove performance by allowing the application to migrate data to a\nsuitable location before it is accessed. Memory accesses to this range\nare always coherent and are allowed even ""when the data is actively\nbeing migrated.\n\nNote that this function is asynchronous with respect to the host and\nall work on other devices.\n\nParameters\n----------\ndevPtr : Any\n    Pointer to be prefetched\ncount : size_t\n    Size in bytes\nlocation : :py:obj:`~.cudaMemLocation`\n    location to prefetch to\nflags : unsigned int\n    flags for future use, must be zero now.\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to enqueue prefetch operation\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cuMemPrefetchAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_273cudaMemPrefetchAsync = {"cudaMemPrefetchAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_273cudaMemPrefetchAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_272cudaMemPrefetchAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_273cudaMemPrefetchAsync(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_devPtr = 0;
  size_t __pyx_v_count;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location = 0;
  unsigned int __pyx_v_flags;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPrefetchAsync (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_devPtr_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_location_2,&__pyx_mstate_global->__pyx_n_u_flags_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22773, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22773, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22773, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22773, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22773, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22773, __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, "cudaMemPrefetchAsync", 0) < (0)) __PYX_ERR(0, 22773, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync", 1, 5, 5, i); __PYX_ERR(0, 22773, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 22773, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22773, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22773, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22773, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22773, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22774, __pyx_L3_error)
    __pyx_v_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)values[2]);
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 22774, __pyx_L3_error)
    __pyx_v_stream = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchAsync", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 22773, __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.runtime.cudaMemPrefetchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 0, "location", 0))) __PYX_ERR(0, 22774, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_272cudaMemPrefetchAsync(__pyx_self, __pyx_v_devPtr, __pyx_v_count, __pyx_v_location, __pyx_v_flags, __pyx_v_stream);

  /* 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_7runtime_272cudaMemPrefetchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_count, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location, unsigned int __pyx_v_flags, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPrefetchAsync", 0);

  /* "cuda/bindings/runtime.pyx":22875
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22876
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22875
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22877
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22878
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22878, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22877
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22880
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22880, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22880, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22881
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22881, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22882
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_devPtr};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22882, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22883
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPrefetchAsync(cydevPtr_ptr, count, location._pvt_ptr[0], flags, cystream)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22883, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22884
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPrefetchAsync(cydevPtr_ptr, count, location._pvt_ptr[0], flags, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22885
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemPrefetchAsync(cydevPtr_ptr, count, location._pvt_ptr[0], flags, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPrefetchAsync(__pyx_v_cydevPtr_ptr, __pyx_v_count, (__pyx_v_location->_pvt_ptr[0]), __pyx_v_flags, __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22885, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":22884
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPrefetchAsync(cydevPtr_ptr, count, location._pvt_ptr[0], flags, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22886
 *     with nogil:
 *         err = cyruntime.cudaMemPrefetchAsync(cydevPtr_ptr, count, location._pvt_ptr[0], flags, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 22886, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22773
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPrefetchAsync(devPtr, size_t count, location not None : cudaMemLocation, unsigned int flags, stream):
 *     """ Prefetches memory to the specified destination location.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPrefetchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22888
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream):
 *     """ Performs a batch of memory prefetches asynchronously.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_275cudaMemPrefetchBatchAsync(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_7runtime_274cudaMemPrefetchBatchAsync, "cudaMemPrefetchBatchAsync(dptrs: Optional[tuple[Any] | list[Any]], sizes: tuple[int] | list[int], size_t count, prefetchLocs: Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs: tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream)\n\nPerforms a batch of memory prefetches asynchronously.\n\nPerforms a batch of memory prefetches. The batch as a whole executes in\nstream order but operations within a batch are not guaranteed to\nexecute in any specific order. All devices in the system must have a\nnon-zero value for the device attribute\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess` otherwise the API will\nreturn an error.\n\nThe semantics of the individual prefetch operations are as described in\n:py:obj:`~.cudaMemPrefetchAsync`.\n\nPerforms memory prefetch on address ranges specified in `dptrs` and\n`sizes`. Both arrays must be of the same length as specified by\n`count`. Each memory range specified must refer to managed memory\nallocated via :py:obj:`~.cudaMallocManaged` or declared via managed\nvariables or it may also refer to system-allocated memory when all\ndevices have a non-zero value for\n:py:obj:`~.cudaDevAttrPageableMemoryAccess`. The prefetch location for\nevery operation in the batch is specified in the `prefetchLocs` array.\nEach entry in this array can apply to more than one operation. This can\nbe done by specifying in the `prefetchLocIdxs` array, the index of the\nfirst prefetch operation that the corresponding entry in the\n`prefetchLocs` array applies to. Both `prefetchLocs` and\n`prefetchLocIdxs` must be of the same length as specified by\n`numPrefetchLocs`. For example, if a batch has 10 prefetches listed in\ndptrs/sizes, the first 4 of which are to be prefetched to one location\nand the remaining 6 are to be prefetched to another, then\n`numPrefetchLocs` will be 2, `prefetchLocIdxs` will be {0, 4} and\n`prefetchLocs` will contain the two locations. Note the first entry in\n`prefetchLocIdxs` mu""st always be 0. Also, each entry must be greater\nthan the previous entry and the last entry should be less than `count`.\nFurthermore, `numPrefetchLocs` must be lesser than or equal to `count`.\n\nParameters\n----------\ndptrs : list[Any]\n    Array of pointers to be prefetched\nsizes : list[int]\n    Array of sizes for memory prefetch operations.\ncount : size_t\n    Size of `dptrs` and `sizes` arrays.\nprefetchLocs : list[:py:obj:`~.cudaMemLocation`]\n    Array of locations to prefetch to.\nprefetchLocIdxs : list[int]\n    Array of indices to specify which operands each entry in the\n    `prefetchLocs` array applies to. The locations specified in\n    prefetchLocs[k] will be applied to copies starting from\n    prefetchLocIdxs[k] through prefetchLocIdxs[k+1] - 1. Also\n    prefetchLocs[numPrefetchLocs - 1] will apply to prefetches starting\n    from prefetchLocIdxs[numPrefetchLocs - 1] through count - 1.\nnumPrefetchLocs : size_t\n    Size of `prefetchLocs` and `prefetchLocIdxs` arrays.\nflags : unsigned long long\n    Flags reserved for future use. Must be zero.\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream to enqueue the operations in. Must not be legacy NULL\n    stream.\n\nReturns\n-------\ncudaError_t");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_275cudaMemPrefetchBatchAsync = {"cudaMemPrefetchBatchAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_275cudaMemPrefetchBatchAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_274cudaMemPrefetchBatchAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_275cudaMemPrefetchBatchAsync(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_dptrs = 0;
  PyObject *__pyx_v_sizes = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_prefetchLocs = 0;
  PyObject *__pyx_v_prefetchLocIdxs = 0;
  size_t __pyx_v_numPrefetchLocs;
  unsigned PY_LONG_LONG __pyx_v_flags;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPrefetchBatchAsync (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_dptrs,&__pyx_mstate_global->__pyx_n_u_sizes,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_prefetchLocs,&__pyx_mstate_global->__pyx_n_u_prefetchLocIdxs,&__pyx_mstate_global->__pyx_n_u_numPrefetchLocs,&__pyx_mstate_global->__pyx_n_u_flags_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22888, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 22888, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 22888, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22888, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22888, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22888, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22888, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22888, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22888, __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, "cudaMemPrefetchBatchAsync", 0) < (0)) __PYX_ERR(0, 22888, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchBatchAsync", 1, 8, 8, i); __PYX_ERR(0, 22888, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      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, 22888, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22888, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22888, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22888, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22888, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 22888, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 22888, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 22888, __pyx_L3_error)
    }
    __pyx_v_dptrs = values[0];
    __pyx_v_sizes = values[1];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22889, __pyx_L3_error)
    __pyx_v_prefetchLocs = values[3];
    __pyx_v_prefetchLocIdxs = values[4];
    __pyx_v_numPrefetchLocs = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_numPrefetchLocs == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22889, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[6]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22889, __pyx_L3_error)
    __pyx_v_stream = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPrefetchBatchAsync", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 22888, __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.runtime.cudaMemPrefetchBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_274cudaMemPrefetchBatchAsync(__pyx_self, __pyx_v_dptrs, __pyx_v_sizes, __pyx_v_count, __pyx_v_prefetchLocs, __pyx_v_prefetchLocIdxs, __pyx_v_numPrefetchLocs, __pyx_v_flags, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_2generator102(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":22962
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 22962, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_2generator102, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[102]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemPrefetchBatchAsync_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 22962, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPrefetchBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_2generator102(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 22962, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 22962, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22962, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22962, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22962, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22962, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22962, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22962, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyLong_Check(__pyx_cur_scope->__pyx_v__x); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_5generator103(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":22965
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 22965, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_5generator103, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[103]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemPrefetchBatchAsync_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 22965, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPrefetchBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_5generator103(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 22965, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 22965, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22965, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22965, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22965, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22965, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22965, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_8generator104(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":22967
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 22967, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_8generator104, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[104]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemPrefetchBatchAsync_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 22967, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPrefetchBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_8generator104(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 22967, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 22967, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22967, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22967, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22967, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22967, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22967, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22967, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyLong_Check(__pyx_cur_scope->__pyx_v__x); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22888
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream):
 *     """ Performs a batch of memory prefetches asynchronously.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_274cudaMemPrefetchBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dptrs, PyObject *__pyx_v_sizes, size_t __pyx_v_count, PyObject *__pyx_v_prefetchLocs, PyObject *__pyx_v_prefetchLocIdxs, size_t __pyx_v_numPrefetchLocs, unsigned PY_LONG_LONG __pyx_v_flags, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  PyObject *__pyx_v_pylist = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperdptrs = 0;
  void **__pyx_v_cydptrs_ptr;
  std::vector<size_t>  __pyx_v_cysizes;
  struct cudaMemLocation *__pyx_v_cyprefetchLocs;
  Py_ssize_t __pyx_v_idx;
  std::vector<size_t>  __pyx_v_cyprefetchLocIdxs;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_2generator102 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_5generator103 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_8generator104 = 0;
  PyObject *__pyx_10genexpr230__pyx_v_pydptrs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  std::vector<size_t>  __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_ssize_t __pyx_t_14;
  struct cudaMemLocation *__pyx_t_15;
  cudaError_t __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPrefetchBatchAsync", 0);
  __Pyx_INCREF(__pyx_v_dptrs);
  __Pyx_INCREF(__pyx_v_prefetchLocs);

  /* "cuda/bindings/runtime.pyx":22955
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22956
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":22955
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22957
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":22958
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22958, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":22957
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":22960
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22960, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22960, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":22961
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22961, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22962
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_genexpr(NULL, __pyx_v_prefetchLocIdxs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 22962, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":22963
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")             # <<<<<<<<<<<<<<
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_prefetchLocIdxs_is_not};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22963, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22963, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":22962
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
*/
  }

  /* "cuda/bindings/runtime.pyx":22964
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
*/
  __pyx_t_2 = (__pyx_v_prefetchLocs == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22964, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_prefetchLocs);
    __pyx_t_3 = __pyx_v_prefetchLocs;
  }
  __Pyx_DECREF_SET(__pyx_v_prefetchLocs, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22965
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_3genexpr(NULL, __pyx_v_prefetchLocs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 22965, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = (!__pyx_t_2);
  if (unlikely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":22966
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_prefetchLocs_is_not_ins};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22966, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 22966, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":22965
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
  }

  /* "cuda/bindings/runtime.pyx":22967
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_6genexpr(NULL, __pyx_v_sizes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 22967, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":22968
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")             # <<<<<<<<<<<<<<
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_sizes_is_not_instance_o};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22968, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22968, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":22967
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
  }

  /* "cuda/bindings/runtime.pyx":22969
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs             # <<<<<<<<<<<<<<
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
*/
  __pyx_t_2 = (__pyx_v_dptrs == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dptrs);
    __pyx_t_3 = __pyx_v_dptrs;
  }
  __Pyx_DECREF_SET(__pyx_v_dptrs, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22970
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22970, __pyx_L11_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(PyList_CheckExact(__pyx_v_dptrs)) || PyTuple_CheckExact(__pyx_v_dptrs)) {
      __pyx_t_4 = __pyx_v_dptrs; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_dptrs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22970, __pyx_L11_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 22970, __pyx_L11_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22970, __pyx_L11_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 22970, __pyx_L11_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7));
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22970, __pyx_L11_error)
      } else {
        __pyx_t_9 = __pyx_t_8(__pyx_t_4);
        if (unlikely(!__pyx_t_9)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 22970, __pyx_L11_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_10genexpr230__pyx_v_pydptrs, __pyx_t_9);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_10genexpr230__pyx_v_pydptrs};
        __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22970, __pyx_L11_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_9);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 22970, __pyx_L11_error)
      __Pyx_DECREF((PyObject *)__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_10genexpr230__pyx_v_pydptrs); __pyx_10genexpr230__pyx_v_pydptrs = 0;
    goto __pyx_L15_exit_scope;
    __pyx_L11_error:;
    __Pyx_XDECREF(__pyx_10genexpr230__pyx_v_pydptrs); __pyx_10genexpr230__pyx_v_pydptrs = 0;
    goto __pyx_L1_error;
    __pyx_L15_exit_scope:;
  } /* exit inner scope */
  __pyx_v_pylist = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22971
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_pylist};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22971, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_voidStarHelperdptrs = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":22972
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr             # <<<<<<<<<<<<<<
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperdptrs), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22972, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydptrs_ptr = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":22973
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
*/
  __pyx_t_11 = __pyx_convert_vector_from_py_size_t(__pyx_v_sizes); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22973, __pyx_L1_error)
  __pyx_v_cysizes = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":22974
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dptrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22974, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_dptrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22974, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22974, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22974, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22975
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
 *     if len(prefetchLocs) > 1:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_sizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22975, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_sizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22975, __pyx_L1_error)
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_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_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22975, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22975, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22976
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL             # <<<<<<<<<<<<<<
 *     if len(prefetchLocs) > 1:
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
*/
  __pyx_v_cyprefetchLocs = NULL;

  /* "cuda/bindings/runtime.pyx":22977
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
 *     if len(prefetchLocs) > 1:             # <<<<<<<<<<<<<<
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22977, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22978
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
 *     if len(prefetchLocs) > 1:
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))             # <<<<<<<<<<<<<<
 *         if cyprefetchLocs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22978, __pyx_L1_error)
    __pyx_v_cyprefetchLocs = ((struct cudaMemLocation *)calloc(__pyx_t_7, (sizeof(struct cudaMemLocation))));

    /* "cuda/bindings/runtime.pyx":22979
 *     if len(prefetchLocs) > 1:
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
 *         for idx in range(len(prefetchLocs)):
*/
    __pyx_t_2 = (__pyx_v_cyprefetchLocs == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":22980
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(prefetchLocs)):
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
*/
      __pyx_t_4 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22980, __pyx_L1_error)
      __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22980, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22980, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22980, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22980, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemLocation))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22980, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22980, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22980, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22980, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 22980, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":22979
 *     if len(prefetchLocs) > 1:
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
 *         for idx in range(len(prefetchLocs)):
*/
    }

    /* "cuda/bindings/runtime.pyx":22981
 *         if cyprefetchLocs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
 *         for idx in range(len(prefetchLocs)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
 *     elif len(prefetchLocs) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22981, __pyx_L1_error)
    __pyx_t_13 = __pyx_t_7;
    for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) {
      __pyx_v_idx = __pyx_t_14;

      /* "cuda/bindings/runtime.pyx":22982
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
 *         for idx in range(len(prefetchLocs)):
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))             # <<<<<<<<<<<<<<
 *     elif len(prefetchLocs) == 1:
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_prefetchLocs, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22982, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_cyprefetchLocs[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaMemLocation))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }

    /* "cuda/bindings/runtime.pyx":22977
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
 *     if len(prefetchLocs) > 1:             # <<<<<<<<<<<<<<
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:
*/
    goto __pyx_L18;
  }

  /* "cuda/bindings/runtime.pyx":22983
 *         for idx in range(len(prefetchLocs)):
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
 *     elif len(prefetchLocs) == 1:             # <<<<<<<<<<<<<<
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22983, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22984
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
 *     elif len(prefetchLocs) == 1:
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_prefetchLocs, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22984, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_15 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_3)->_pvt_ptr;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_cyprefetchLocs = __pyx_t_15;

    /* "cuda/bindings/runtime.pyx":22983
 *         for idx in range(len(prefetchLocs)):
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
 *     elif len(prefetchLocs) == 1:             # <<<<<<<<<<<<<<
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
*/
  }
  __pyx_L18:;

  /* "cuda/bindings/runtime.pyx":22985
 *     elif len(prefetchLocs) == 1:
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs             # <<<<<<<<<<<<<<
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
*/
  __pyx_t_11 = __pyx_convert_vector_from_py_size_t(__pyx_v_prefetchLocIdxs); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 22985, __pyx_L1_error)
  __pyx_v_cyprefetchLocIdxs = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":22986
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))             # <<<<<<<<<<<<<<
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22986, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numPrefetchLocs > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22986, __pyx_L1_error)
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_numPrefetchLocs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_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_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22986, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22986, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22987
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocIdxs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22987, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numPrefetchLocs > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocIdxs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22987, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 22987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_FromSize_t(__pyx_v_numPrefetchLocs); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 22987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22987, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 22987, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":22988
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":22989
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
 *     with nogil:
 *         err = cyruntime.cudaMemPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)             # <<<<<<<<<<<<<<
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
 *         free(cyprefetchLocs)
*/
        __pyx_t_16 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPrefetchBatchAsync(__pyx_v_cydptrs_ptr, __pyx_v_cysizes.data(), __pyx_v_count, __pyx_v_cyprefetchLocs, __pyx_v_cyprefetchLocIdxs.data(), __pyx_v_numPrefetchLocs, __pyx_v_flags, __pyx_v_cystream); if (unlikely(__pyx_t_16 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 22989, __pyx_L25_error)
        __pyx_v_err = __pyx_t_16;
      }

      /* "cuda/bindings/runtime.pyx":22988
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L26;
        }
        __pyx_L25_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L26:;
      }
  }

  /* "cuda/bindings/runtime.pyx":22990
 *     with nogil:
 *         err = cyruntime.cudaMemPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyprefetchLocs)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 22990, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L28_bool_binop_done;
  }
  __pyx_t_1 = (__pyx_v_cyprefetchLocs != NULL);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L28_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":22991
 *         err = cyruntime.cudaMemPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
 *         free(cyprefetchLocs)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cyprefetchLocs);

    /* "cuda/bindings/runtime.pyx":22990
 *     with nogil:
 *         err = cyruntime.cudaMemPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyprefetchLocs)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":22992
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
 *         free(cyprefetchLocs)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 22992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 22992, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22888
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream):
 *     """ Performs a batch of memory prefetches asynchronously.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPrefetchBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pylist);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperdptrs);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_2generator102);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_5generator103);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_25cudaMemPrefetchBatchAsync_8generator104);
  __Pyx_XDECREF(__pyx_10genexpr230__pyx_v_pydptrs);
  __Pyx_XDECREF(__pyx_v_dptrs);
  __Pyx_XDECREF(__pyx_v_prefetchLocs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22994
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemDiscardBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, unsigned long long flags, stream):
 *     """ Performs a batch of memory discards asynchronously.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_277cudaMemDiscardBatchAsync(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_7runtime_276cudaMemDiscardBatchAsync, "cudaMemDiscardBatchAsync(dptrs: Optional[tuple[Any] | list[Any]], sizes: tuple[int] | list[int], size_t count, unsigned long long flags, stream)\n\nPerforms a batch of memory discards asynchronously.\n\nPerforms a batch of memory discards. The batch as a whole executes in\nstream order but operations within a batch are not guaranteed to\nexecute in any specific order. All devices in the system must have a\nnon-zero value for the device attribute\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess` otherwise the API will\nreturn an error.\n\nDiscarding a memory range informs the driver that the contents of that\nrange are no longer useful. Discarding memory ranges allows the driver\nto optimize certain data migrations and can also help reduce memory\npressure. This operation can be undone on any part of the range by\neither writing to it or prefetching it via\n:py:obj:`~.cudaMemPrefetchAsync` or\n:py:obj:`~.cudaMemPrefetchBatchAsync`. Reading from a discarded range,\nwithout a subsequent write or prefetch to that part of the range, will\nreturn an indeterminate value. Note that any reads, writes or\nprefetches to any part of the memory range that occur simultaneously\nwith the discard operation result in undefined behavior.\n\nPerforms memory discard on address ranges specified in `dptrs` and\n`sizes`. Both arrays must be of the same length as specified by\n`count`. Each memory range specified must refer to managed memory\nallocated via :py:obj:`~.cudaMallocManaged` or declared via managed\nvariables or it may also refer to system-allocated memory when all\ndevices have a non-zero value for\n:py:obj:`~.cudaDevAttrPageableMemoryAccess`.\n\nParameters\n----------\ndptrs : list[Any]\n    Array of pointers to be discarded\nsizes : list[int]\n    Array of sizes for memory discard operations.\ncount : size_t\n    Size of `dptrs` and `sizes` arrays.\nflags : unsigned long long\n    Flags reserved for future use. Must be zero.\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStr""eam_t`\n    The stream to enqueue the operations in. Must not be legacy NULL\n    stream.\n\nReturns\n-------\ncudaError_t");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_277cudaMemDiscardBatchAsync = {"cudaMemDiscardBatchAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_277cudaMemDiscardBatchAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_276cudaMemDiscardBatchAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_277cudaMemDiscardBatchAsync(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_dptrs = 0;
  PyObject *__pyx_v_sizes = 0;
  size_t __pyx_v_count;
  unsigned PY_LONG_LONG __pyx_v_flags;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemDiscardBatchAsync (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_dptrs,&__pyx_mstate_global->__pyx_n_u_sizes,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_flags_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 22994, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22994, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 22994, __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, "cudaMemDiscardBatchAsync", 0) < (0)) __PYX_ERR(0, 22994, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemDiscardBatchAsync", 1, 5, 5, i); __PYX_ERR(0, 22994, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 22994, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 22994, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 22994, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 22994, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 22994, __pyx_L3_error)
    }
    __pyx_v_dptrs = values[0];
    __pyx_v_sizes = values[1];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 22995, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[3]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 22995, __pyx_L3_error)
    __pyx_v_stream = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemDiscardBatchAsync", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 22994, __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.runtime.cudaMemDiscardBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_276cudaMemDiscardBatchAsync(__pyx_self, __pyx_v_dptrs, __pyx_v_sizes, __pyx_v_count, __pyx_v_flags, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaMemDiscardBatchAsync_2generator105(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":23052
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaMemDiscardBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 23052, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_24cudaMemDiscardBatchAsync_2generator105, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[105]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemDiscardBatchAsync_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 23052, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemDiscardBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaMemDiscardBatchAsync_2generator105(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23052, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23052, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23052, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23052, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23052, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23052, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23052, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23052, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyLong_Check(__pyx_cur_scope->__pyx_v__x); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":22994
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemDiscardBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, unsigned long long flags, stream):
 *     """ Performs a batch of memory discards asynchronously.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_276cudaMemDiscardBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dptrs, PyObject *__pyx_v_sizes, size_t __pyx_v_count, unsigned PY_LONG_LONG __pyx_v_flags, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  PyObject *__pyx_v_pylist = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperdptrs = 0;
  void **__pyx_v_cydptrs_ptr;
  std::vector<size_t>  __pyx_v_cysizes;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaMemDiscardBatchAsync_2generator105 = 0;
  PyObject *__pyx_10genexpr232__pyx_v_pydptrs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  std::vector<size_t>  __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  cudaError_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemDiscardBatchAsync", 0);
  __Pyx_INCREF(__pyx_v_dptrs);

  /* "cuda/bindings/runtime.pyx":23045
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23046
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23045
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23047
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23048
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":23047
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23050
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23050, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23050, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":23051
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23051, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23052
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_24cudaMemDiscardBatchAsync_genexpr(NULL, __pyx_v_sizes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 23052, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":23053
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")             # <<<<<<<<<<<<<<
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_sizes_is_not_instance_o};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23053, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23053, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":23052
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
  }

  /* "cuda/bindings/runtime.pyx":23054
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs             # <<<<<<<<<<<<<<
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
*/
  __pyx_t_2 = (__pyx_v_dptrs == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23054, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dptrs);
    __pyx_t_3 = __pyx_v_dptrs;
  }
  __Pyx_DECREF_SET(__pyx_v_dptrs, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23055
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23055, __pyx_L9_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(PyList_CheckExact(__pyx_v_dptrs)) || PyTuple_CheckExact(__pyx_v_dptrs)) {
      __pyx_t_4 = __pyx_v_dptrs; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_dptrs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23055, __pyx_L9_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23055, __pyx_L9_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23055, __pyx_L9_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23055, __pyx_L9_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7));
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23055, __pyx_L9_error)
      } else {
        __pyx_t_9 = __pyx_t_8(__pyx_t_4);
        if (unlikely(!__pyx_t_9)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23055, __pyx_L9_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_10genexpr232__pyx_v_pydptrs, __pyx_t_9);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_10genexpr232__pyx_v_pydptrs};
        __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23055, __pyx_L9_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_9);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 23055, __pyx_L9_error)
      __Pyx_DECREF((PyObject *)__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_10genexpr232__pyx_v_pydptrs); __pyx_10genexpr232__pyx_v_pydptrs = 0;
    goto __pyx_L13_exit_scope;
    __pyx_L9_error:;
    __Pyx_XDECREF(__pyx_10genexpr232__pyx_v_pydptrs); __pyx_10genexpr232__pyx_v_pydptrs = 0;
    goto __pyx_L1_error;
    __pyx_L13_exit_scope:;
  } /* exit inner scope */
  __pyx_v_pylist = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23056
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_pylist};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23056, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_voidStarHelperdptrs = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23057
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr             # <<<<<<<<<<<<<<
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperdptrs), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23057, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydptrs_ptr = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23058
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
*/
  __pyx_t_11 = __pyx_convert_vector_from_py_size_t(__pyx_v_sizes); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23058, __pyx_L1_error)
  __pyx_v_cysizes = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":23059
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dptrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23059, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_dptrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23059, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23059, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23059, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":23060
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemDiscardBatchAsync(cydptrs_ptr, cysizes.data(), count, flags, cystream)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_sizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23060, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_sizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23060, __pyx_L1_error)
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_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_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23060, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23060, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":23061
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemDiscardBatchAsync(cydptrs_ptr, cysizes.data(), count, flags, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23062
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     with nogil:
 *         err = cyruntime.cudaMemDiscardBatchAsync(cydptrs_ptr, cysizes.data(), count, flags, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_13 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemDiscardBatchAsync(__pyx_v_cydptrs_ptr, __pyx_v_cysizes.data(), __pyx_v_count, __pyx_v_flags, __pyx_v_cystream); if (unlikely(__pyx_t_13 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23062, __pyx_L17_error)
        __pyx_v_err = __pyx_t_13;
      }

      /* "cuda/bindings/runtime.pyx":23061
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemDiscardBatchAsync(cydptrs_ptr, cysizes.data(), count, flags, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L18;
        }
        __pyx_L17_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L18:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23063
 *     with nogil:
 *         err = cyruntime.cudaMemDiscardBatchAsync(cydptrs_ptr, cysizes.data(), count, flags, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 23063, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":22994
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemDiscardBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, unsigned long long flags, stream):
 *     """ Performs a batch of memory discards asynchronously.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemDiscardBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pylist);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperdptrs);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_24cudaMemDiscardBatchAsync_2generator105);
  __Pyx_XDECREF(__pyx_10genexpr232__pyx_v_pydptrs);
  __Pyx_XDECREF(__pyx_v_dptrs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23065
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream):
 *     """ Performs a batch of memory discards and prefetches asynchronously.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_279cudaMemDiscardAndPrefetchBatchAsync(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_7runtime_278cudaMemDiscardAndPrefetchBatchAsync, "cudaMemDiscardAndPrefetchBatchAsync(dptrs: Optional[tuple[Any] | list[Any]], sizes: tuple[int] | list[int], size_t count, prefetchLocs: Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs: tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream)\n\nPerforms a batch of memory discards and prefetches asynchronously.\n\nPerforms a batch of memory discards followed by prefetches. The batch\nas a whole executes in stream order but operations within a batch are\nnot guaranteed to execute in any specific order. All devices in the\nsystem must have a non-zero value for the device attribute\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess` otherwise the API will\nreturn an error.\n\nCalling :py:obj:`~.cudaMemDiscardAndPrefetchBatchAsync` is semantically\nequivalent to calling :py:obj:`~.cudaMemDiscardBatchAsync` followed by\n:py:obj:`~.cudaMemPrefetchBatchAsync`, but is more optimal. For more\ndetails on what discarding and prefetching imply, please refer to\n:py:obj:`~.cudaMemDiscardBatchAsync` and\n:py:obj:`~.cudaMemPrefetchBatchAsync` respectively. Note that any\nreads, writes or prefetches to any part of the memory range that occur\nsimultaneously with this combined discard+prefetch operation result in\nundefined behavior.\n\nPerforms memory discard and prefetch on address ranges specified in\n`dptrs` and `sizes`. Both arrays must be of the same length as\nspecified by `count`. Each memory range specified must refer to managed\nmemory allocated via :py:obj:`~.cudaMallocManaged` or declared via\nmanaged variables or it may also refer to system-allocated memory when\nall devices have a non-zero value for\n:py:obj:`~.cudaDevAttrPageableMemoryAccess`. Every operation in the\nbatch has to be associated with a valid location to prefetch the\naddress range to and specified in the `prefetchLocs` array. Each entry\nin this array can apply to more than one operation. This can be done by\nspecifying in the `prefetchLocIdxs` array, the in""dex of the first\noperation that the corresponding entry in the `prefetchLocs` array\napplies to. Both `prefetchLocs` and `prefetchLocIdxs` must be of the\nsame length as specified by `numPrefetchLocs`. For example, if a batch\nhas 10 operations listed in dptrs/sizes, the first 6 of which are to be\nprefetched to one location and the remaining 4 are to be prefetched to\nanother, then `numPrefetchLocs` will be 2, `prefetchLocIdxs` will be\n{0, 6} and `prefetchLocs` will contain the two set of locations. Note\nthe first entry in `prefetchLocIdxs` must always be 0. Also, each entry\nmust be greater than the previous entry and the last entry should be\nless than `count`. Furthermore, `numPrefetchLocs` must be lesser than\nor equal to `count`.\n\nParameters\n----------\ndptrs : list[Any]\n    Array of pointers to be discarded\nsizes : list[int]\n    Array of sizes for memory discard operations.\ncount : size_t\n    Size of `dptrs` and `sizes` arrays.\nprefetchLocs : list[:py:obj:`~.cudaMemLocation`]\n    Array of locations to prefetch to.\nprefetchLocIdxs : list[int]\n    Array of indices to specify which operands each entry in the\n    `prefetchLocs` array applies to. The locations specified in\n    prefetchLocs[k] will be applied to operations starting from\n    prefetchLocIdxs[k] through prefetchLocIdxs[k+1] - 1. Also\n    prefetchLocs[numPrefetchLocs - 1] will apply to copies starting\n    from prefetchLocIdxs[numPrefetchLocs - 1] through count - 1.\nnumPrefetchLocs : size_t\n    Size of `prefetchLocs` and `prefetchLocIdxs` arrays.\nflags : unsigned long long\n    Flags reserved for future use. Must be zero.\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream to enqueue the operations in. Must not be legacy NULL\n    stream.\n\nReturns\n-------\ncudaError_t");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_279cudaMemDiscardAndPrefetchBatchAsync = {"cudaMemDiscardAndPrefetchBatchAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_279cudaMemDiscardAndPrefetchBatchAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_278cudaMemDiscardAndPrefetchBatchAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_279cudaMemDiscardAndPrefetchBatchAsync(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_dptrs = 0;
  PyObject *__pyx_v_sizes = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_prefetchLocs = 0;
  PyObject *__pyx_v_prefetchLocIdxs = 0;
  size_t __pyx_v_numPrefetchLocs;
  unsigned PY_LONG_LONG __pyx_v_flags;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemDiscardAndPrefetchBatchAsync (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_dptrs,&__pyx_mstate_global->__pyx_n_u_sizes,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_prefetchLocs,&__pyx_mstate_global->__pyx_n_u_prefetchLocIdxs,&__pyx_mstate_global->__pyx_n_u_numPrefetchLocs,&__pyx_mstate_global->__pyx_n_u_flags_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 23065, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 23065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 23065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23065, __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, "cudaMemDiscardAndPrefetchBatchAsync", 0) < (0)) __PYX_ERR(0, 23065, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemDiscardAndPrefetchBatchAsync", 1, 8, 8, i); __PYX_ERR(0, 23065, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      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, 23065, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23065, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23065, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23065, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23065, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23065, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 23065, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 23065, __pyx_L3_error)
    }
    __pyx_v_dptrs = values[0];
    __pyx_v_sizes = values[1];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23066, __pyx_L3_error)
    __pyx_v_prefetchLocs = values[3];
    __pyx_v_prefetchLocIdxs = values[4];
    __pyx_v_numPrefetchLocs = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_numPrefetchLocs == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23066, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[6]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23066, __pyx_L3_error)
    __pyx_v_stream = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemDiscardAndPrefetchBatchAsync", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 23065, __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.runtime.cudaMemDiscardAndPrefetchBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_278cudaMemDiscardAndPrefetchBatchAsync(__pyx_self, __pyx_v_dptrs, __pyx_v_sizes, __pyx_v_count, __pyx_v_prefetchLocs, __pyx_v_prefetchLocIdxs, __pyx_v_numPrefetchLocs, __pyx_v_flags, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_2generator106(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":23147
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 23147, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_2generator106, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[106]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemDiscardAndPrefetchBatchAs, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 23147, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemDiscardAndPrefetchBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_2generator106(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23147, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23147, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23147, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23147, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23147, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23147, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23147, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23147, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyLong_Check(__pyx_cur_scope->__pyx_v__x); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_5generator107(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":23150
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 23150, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_5generator107, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[107]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemDiscardAndPrefetchBatchAs, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 23150, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemDiscardAndPrefetchBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_5generator107(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23150, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23150, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23150, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23150, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23150, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23150, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23150, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_8generator108(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":23152
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 23152, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_8generator108, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[108]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemDiscardAndPrefetchBatchAs, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 23152, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemDiscardAndPrefetchBatchAsync.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_8generator108(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23152, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23152, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23152, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23152, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23152, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23152, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23152, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23152, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyLong_Check(__pyx_cur_scope->__pyx_v__x); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23065
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream):
 *     """ Performs a batch of memory discards and prefetches asynchronously.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_278cudaMemDiscardAndPrefetchBatchAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dptrs, PyObject *__pyx_v_sizes, size_t __pyx_v_count, PyObject *__pyx_v_prefetchLocs, PyObject *__pyx_v_prefetchLocIdxs, size_t __pyx_v_numPrefetchLocs, unsigned PY_LONG_LONG __pyx_v_flags, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  PyObject *__pyx_v_pylist = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperdptrs = 0;
  void **__pyx_v_cydptrs_ptr;
  std::vector<size_t>  __pyx_v_cysizes;
  struct cudaMemLocation *__pyx_v_cyprefetchLocs;
  Py_ssize_t __pyx_v_idx;
  std::vector<size_t>  __pyx_v_cyprefetchLocIdxs;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_2generator106 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_5generator107 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_8generator108 = 0;
  PyObject *__pyx_10genexpr236__pyx_v_pydptrs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  std::vector<size_t>  __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  Py_ssize_t __pyx_t_14;
  struct cudaMemLocation *__pyx_t_15;
  cudaError_t __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemDiscardAndPrefetchBatchAsync", 0);
  __Pyx_INCREF(__pyx_v_dptrs);
  __Pyx_INCREF(__pyx_v_prefetchLocs);

  /* "cuda/bindings/runtime.pyx":23140
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23141
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23140
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23142
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23143
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23143, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":23142
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23145
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23145, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":23146
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23146, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23147
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_genexpr(NULL, __pyx_v_prefetchLocIdxs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 23147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":23148
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")             # <<<<<<<<<<<<<<
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_prefetchLocIdxs_is_not};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23148, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23148, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":23147
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
*/
  }

  /* "cuda/bindings/runtime.pyx":23149
 *     if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs):
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
*/
  __pyx_t_2 = (__pyx_v_prefetchLocs == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_prefetchLocs);
    __pyx_t_3 = __pyx_v_prefetchLocs;
  }
  __Pyx_DECREF_SET(__pyx_v_prefetchLocs, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23150
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_3genexpr(NULL, __pyx_v_prefetchLocs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 23150, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = (!__pyx_t_2);
  if (unlikely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":23151
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_prefetchLocs_is_not_ins};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23151, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 23151, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":23150
 *         raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]")
 *     prefetchLocs = [] if prefetchLocs is None else prefetchLocs
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
*/
  }

  /* "cuda/bindings/runtime.pyx":23152
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_6genexpr(NULL, __pyx_v_sizes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 23152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":23153
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")             # <<<<<<<<<<<<<<
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_sizes_is_not_instance_o};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23153, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23153, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":23152
 *     if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs):
 *         raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]")
 *     if not all(isinstance(_x, (int)) for _x in sizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
*/
  }

  /* "cuda/bindings/runtime.pyx":23154
 *     if not all(isinstance(_x, (int)) for _x in sizes):
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs             # <<<<<<<<<<<<<<
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
*/
  __pyx_t_2 = (__pyx_v_dptrs == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23154, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dptrs);
    __pyx_t_3 = __pyx_v_dptrs;
  }
  __Pyx_DECREF_SET(__pyx_v_dptrs, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23155
 *         raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]")
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23155, __pyx_L11_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(PyList_CheckExact(__pyx_v_dptrs)) || PyTuple_CheckExact(__pyx_v_dptrs)) {
      __pyx_t_4 = __pyx_v_dptrs; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_dptrs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23155, __pyx_L11_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23155, __pyx_L11_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23155, __pyx_L11_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23155, __pyx_L11_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7));
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23155, __pyx_L11_error)
      } else {
        __pyx_t_9 = __pyx_t_8(__pyx_t_4);
        if (unlikely(!__pyx_t_9)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23155, __pyx_L11_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_10genexpr236__pyx_v_pydptrs, __pyx_t_9);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_10genexpr236__pyx_v_pydptrs};
        __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23155, __pyx_L11_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_9);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 23155, __pyx_L11_error)
      __Pyx_DECREF((PyObject *)__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_10genexpr236__pyx_v_pydptrs); __pyx_10genexpr236__pyx_v_pydptrs = 0;
    goto __pyx_L15_exit_scope;
    __pyx_L11_error:;
    __Pyx_XDECREF(__pyx_10genexpr236__pyx_v_pydptrs); __pyx_10genexpr236__pyx_v_pydptrs = 0;
    goto __pyx_L1_error;
    __pyx_L15_exit_scope:;
  } /* exit inner scope */
  __pyx_v_pylist = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23156
 *     dptrs = [] if dptrs is None else dptrs
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_pylist};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23156, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_voidStarHelperdptrs = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23157
 *     pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr             # <<<<<<<<<<<<<<
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperdptrs), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydptrs_ptr = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23158
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
*/
  __pyx_t_11 = __pyx_convert_vector_from_py_size_t(__pyx_v_sizes); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23158, __pyx_L1_error)
  __pyx_v_cysizes = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":23159
 *     cdef void** cydptrs_ptr = <void**><void_ptr>voidStarHelperdptrs.cptr
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dptrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23159, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_dptrs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23159, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23159, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23159, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":23160
 *     cdef vector[size_t] cysizes = sizes
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
 *     if len(prefetchLocs) > 1:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_sizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23160, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_sizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23160, __pyx_L1_error)
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_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_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23160, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23160, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":23161
 *     if count > <size_t>len(dptrs): raise RuntimeError("List is too small: " + str(len(dptrs)) + " < " + str(count))
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL             # <<<<<<<<<<<<<<
 *     if len(prefetchLocs) > 1:
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
*/
  __pyx_v_cyprefetchLocs = NULL;

  /* "cuda/bindings/runtime.pyx":23162
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
 *     if len(prefetchLocs) > 1:             # <<<<<<<<<<<<<<
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23162, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":23163
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
 *     if len(prefetchLocs) > 1:
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))             # <<<<<<<<<<<<<<
 *         if cyprefetchLocs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23163, __pyx_L1_error)
    __pyx_v_cyprefetchLocs = ((struct cudaMemLocation *)calloc(__pyx_t_7, (sizeof(struct cudaMemLocation))));

    /* "cuda/bindings/runtime.pyx":23164
 *     if len(prefetchLocs) > 1:
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
 *         for idx in range(len(prefetchLocs)):
*/
    __pyx_t_2 = (__pyx_v_cyprefetchLocs == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":23165
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(prefetchLocs)):
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
*/
      __pyx_t_4 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23165, __pyx_L1_error)
      __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23165, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23165, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23165, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23165, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemLocation))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23165, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23165, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23165, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23165, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 23165, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":23164
 *     if len(prefetchLocs) > 1:
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
 *         for idx in range(len(prefetchLocs)):
*/
    }

    /* "cuda/bindings/runtime.pyx":23166
 *         if cyprefetchLocs is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
 *         for idx in range(len(prefetchLocs)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
 *     elif len(prefetchLocs) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23166, __pyx_L1_error)
    __pyx_t_13 = __pyx_t_7;
    for (__pyx_t_14 = 0; __pyx_t_14 < __pyx_t_13; __pyx_t_14+=1) {
      __pyx_v_idx = __pyx_t_14;

      /* "cuda/bindings/runtime.pyx":23167
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(prefetchLocs)) + 'x' + str(sizeof(cyruntime.cudaMemLocation)))
 *         for idx in range(len(prefetchLocs)):
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))             # <<<<<<<<<<<<<<
 *     elif len(prefetchLocs) == 1:
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_prefetchLocs, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23167, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_cyprefetchLocs[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_3)->_pvt_ptr, (sizeof(struct cudaMemLocation))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }

    /* "cuda/bindings/runtime.pyx":23162
 *     if count > <size_t>len(sizes): raise RuntimeError("List is too small: " + str(len(sizes)) + " < " + str(count))
 *     cdef cyruntime.cudaMemLocation* cyprefetchLocs = NULL
 *     if len(prefetchLocs) > 1:             # <<<<<<<<<<<<<<
 *         cyprefetchLocs = <cyruntime.cudaMemLocation*> calloc(len(prefetchLocs), sizeof(cyruntime.cudaMemLocation))
 *         if cyprefetchLocs is NULL:
*/
    goto __pyx_L18;
  }

  /* "cuda/bindings/runtime.pyx":23168
 *         for idx in range(len(prefetchLocs)):
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
 *     elif len(prefetchLocs) == 1:             # <<<<<<<<<<<<<<
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23168, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":23169
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
 *     elif len(prefetchLocs) == 1:
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_prefetchLocs, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23169, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_15 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)__pyx_t_3)->_pvt_ptr;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_cyprefetchLocs = __pyx_t_15;

    /* "cuda/bindings/runtime.pyx":23168
 *         for idx in range(len(prefetchLocs)):
 *             string.memcpy(&cyprefetchLocs[idx], (<cudaMemLocation>prefetchLocs[idx])._pvt_ptr, sizeof(cyruntime.cudaMemLocation))
 *     elif len(prefetchLocs) == 1:             # <<<<<<<<<<<<<<
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
*/
  }
  __pyx_L18:;

  /* "cuda/bindings/runtime.pyx":23170
 *     elif len(prefetchLocs) == 1:
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs             # <<<<<<<<<<<<<<
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
*/
  __pyx_t_11 = __pyx_convert_vector_from_py_size_t(__pyx_v_prefetchLocIdxs); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23170, __pyx_L1_error)
  __pyx_v_cyprefetchLocIdxs = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_11);

  /* "cuda/bindings/runtime.pyx":23171
 *         cyprefetchLocs = (<cudaMemLocation>prefetchLocs[0])._pvt_ptr
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))             # <<<<<<<<<<<<<<
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23171, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numPrefetchLocs > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23171, __pyx_L1_error)
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_numPrefetchLocs); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_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_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23171, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":23172
 *     cdef vector[size_t] cyprefetchLocIdxs = prefetchLocIdxs
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemDiscardAndPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocIdxs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23172, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numPrefetchLocs > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_4 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocIdxs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23172, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_FromSize_t(__pyx_v_numPrefetchLocs); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 23172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23172, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23172, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":23173
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemDiscardAndPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23174
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
 *     with nogil:
 *         err = cyruntime.cudaMemDiscardAndPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)             # <<<<<<<<<<<<<<
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
 *         free(cyprefetchLocs)
*/
        __pyx_t_16 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemDiscardAndPrefetchBatchAsync(__pyx_v_cydptrs_ptr, __pyx_v_cysizes.data(), __pyx_v_count, __pyx_v_cyprefetchLocs, __pyx_v_cyprefetchLocIdxs.data(), __pyx_v_numPrefetchLocs, __pyx_v_flags, __pyx_v_cystream); if (unlikely(__pyx_t_16 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23174, __pyx_L25_error)
        __pyx_v_err = __pyx_t_16;
      }

      /* "cuda/bindings/runtime.pyx":23173
 *     if numPrefetchLocs > <size_t>len(prefetchLocs): raise RuntimeError("List is too small: " + str(len(prefetchLocs)) + " < " + str(numPrefetchLocs))
 *     if numPrefetchLocs > <size_t>len(prefetchLocIdxs): raise RuntimeError("List is too small: " + str(len(prefetchLocIdxs)) + " < " + str(numPrefetchLocs))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemDiscardAndPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L26;
        }
        __pyx_L25_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L26:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23175
 *     with nogil:
 *         err = cyruntime.cudaMemDiscardAndPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyprefetchLocs)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_prefetchLocs); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23175, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L28_bool_binop_done;
  }
  __pyx_t_1 = (__pyx_v_cyprefetchLocs != NULL);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L28_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":23176
 *         err = cyruntime.cudaMemDiscardAndPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
 *         free(cyprefetchLocs)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cyprefetchLocs);

    /* "cuda/bindings/runtime.pyx":23175
 *     with nogil:
 *         err = cyruntime.cudaMemDiscardAndPrefetchBatchAsync(cydptrs_ptr, cysizes.data(), count, cyprefetchLocs, cyprefetchLocIdxs.data(), numPrefetchLocs, flags, cystream)
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyprefetchLocs)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":23177
 *     if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL:
 *         free(cyprefetchLocs)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 23177, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23065
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream):
 *     """ Performs a batch of memory discards and prefetches asynchronously.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemDiscardAndPrefetchBatchAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pylist);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperdptrs);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_2generator106);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_5generator107);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_35cudaMemDiscardAndPrefetchBatchAsync_8generator108);
  __Pyx_XDECREF(__pyx_10genexpr236__pyx_v_pydptrs);
  __Pyx_XDECREF(__pyx_v_dptrs);
  __Pyx_XDECREF(__pyx_v_prefetchLocs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23179
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, location not None : cudaMemLocation):
 *     """ Advise about the usage of a given memory range.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_281cudaMemAdvise(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_7runtime_280cudaMemAdvise, "cudaMemAdvise(devPtr, size_t count, advice: cudaMemoryAdvise, cudaMemLocation location: cudaMemLocation)\n\nAdvise about the usage of a given memory range.\n\nAdvise the Unified Memory subsystem about the usage pattern for the\nmemory range starting at `devPtr` with a size of `count` bytes. The\nstart address and end address of the memory range will be rounded down\nand rounded up respectively to be aligned to CPU page size before the\nadvice is applied. The memory range must refer to managed memory\nallocated via :py:obj:`~.cudaMallocManaged` or declared via managed\nvariables. The memory range could also refer to system-allocated\npageable memory provided it represents a valid, host-accessible region\nof memory and all additional constraints imposed by `advice` as\noutlined below are also satisfied. Specifying an invalid system-\nallocated pageable memory range results in an error being returned.\n\nThe `advice` parameter can take the following values:\n\n- :py:obj:`~.cudaMemAdviseSetReadMostly`: This implies that the data is\n  mostly going to be read from and only occasionally written to. Any\n  read accesses from any processor to this region will create a read-\n  only copy of at least the accessed pages in that processor's memory.\n  Additionally, if :py:obj:`~.cudaMemPrefetchAsync` or\n  :py:obj:`~.cudaMemPrefetchAsync` is called on this region, it will\n  create a read-only copy of the data on the destination processor. If\n  the target location for :py:obj:`~.cudaMemPrefetchAsync` is a host\n  NUMA node and a read-only copy already exists on another host NUMA\n  node, that copy will be migrated to the targeted host NUMA node. If\n  any processor writes to this region, all copies of the corresponding\n  page will be invalidated except for the one where the write occurred.\n  If the writing processor is the CPU and the preferred location of the\n  page is a host NUMA node, then the page will also be migrated to that\n  host NUMA node. The `location` argument ""is ignored for this advice.\n  Note that for a page to be read-duplicated, the accessing processor\n  must either be the CPU or a GPU that has a non-zero value for the\n  device attribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess`.\n  Also, if a context is created on a device that does not have the\n  device attribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess` set,\n  then read-duplication will not occur until all such contexts are\n  destroyed. If the memory region refers to valid system-allocated\n  pageable memory, then the accessing device must have a non-zero value\n  for the device attribute :py:obj:`~.cudaDevAttrPageableMemoryAccess`\n  for a read-only copy to be created on that device. Note however that\n  if the accessing device also has a non-zero value for the device\n  attribute\n  :py:obj:`~.cudaDevAttrPageableMemoryAccessUsesHostPageTables`, then\n  setting this advice will not create a read-only copy when that device\n  accesses this memory region.\n\n- :py:obj:`~.cudaMemAdviceUnsetReadMostly`: Undoes the effect of\n  :py:obj:`~.cudaMemAdviseSetReadMostly` and also prevents the Unified\n  Memory driver from attempting heuristic read-duplication on the\n  memory range. Any read-duplicated copies of the data will be\n  collapsed into a single copy. The location for the collapsed copy\n  will be the preferred location if the page has a preferred location\n  and one of the read-duplicated copies was resident at that location.\n  Otherwise, the location chosen is arbitrary. Note: The `location`\n  argument is ignored for this advice.\n\n- :py:obj:`~.cudaMemAdviseSetPreferredLocation`: This advice sets the\n  preferred location for the data to be the memory belonging to\n  `location`. When :py:obj:`~.cudaMemLocation.type` is\n  :py:obj:`~.cudaMemLocationTypeHost`, :py:obj:`~.cudaMemLocation.id`\n  is ignored and the preferred location is set to be host memory. To\n  set the preferred location to a specific host NUMA node, applications\n  must set :p""y:obj:`~.cudaMemLocation.type` to\n  :py:obj:`~.cudaMemLocationTypeHostNuma` and\n  :py:obj:`~.cudaMemLocation.id` must specify the NUMA ID of the host\n  NUMA node. If :py:obj:`~.cudaMemLocation.type` is set to\n  :py:obj:`~.cudaMemLocationTypeHostNumaCurrent`,\n  :py:obj:`~.cudaMemLocation.id` will be ignored and the host NUMA node\n  closest to the calling thread's CPU will be used as the preferred\n  location. If :py:obj:`~.cudaMemLocation.type` is a\n  :py:obj:`~.cudaMemLocationTypeDevice`, then\n  :py:obj:`~.cudaMemLocation.id` must be a valid device ordinal and the\n  device must have a non-zero value for the device attribute\n  :py:obj:`~.cudaDevAttrConcurrentManagedAccess`. Setting the preferred\n  location does not cause data to migrate to that location immediately.\n  Instead, it guides the migration policy when a fault occurs on that\n  memory region. If the data is already in its preferred location and\n  the faulting processor can establish a mapping without requiring the\n  data to be migrated, then data migration will be avoided. On the\n  other hand, if the data is not in its preferred location or if a\n  direct mapping cannot be established, then it will be migrated to the\n  processor accessing it. It is important to note that setting the\n  preferred location does not prevent data prefetching done using\n  :py:obj:`~.cudaMemPrefetchAsync`. Having a preferred location can\n  override the page thrash detection and resolution logic in the\n  Unified Memory driver. Normally, if a page is detected to be\n  constantly thrashing between for example host and device memory, the\n  page may eventually be pinned to host memory by the Unified Memory\n  driver. But if the preferred location is set as device memory, then\n  the page will continue to thrash indefinitely. If\n  :py:obj:`~.cudaMemAdviseSetReadMostly` is also set on this memory\n  region or any subset of it, then the policies associated with that\n  advice will override the policies of this advice"", unless read\n  accesses from `location` will not result in a read-only copy being\n  created on that procesor as outlined in description for the advice\n  :py:obj:`~.cudaMemAdviseSetReadMostly`. If the memory region refers\n  to valid system-allocated pageable memory, and\n  :py:obj:`~.cudaMemLocation.type` is\n  :py:obj:`~.cudaMemLocationTypeDevice` then\n  :py:obj:`~.cudaMemLocation.id` must be a valid device that has a non-\n  zero alue for the device attribute\n  :py:obj:`~.cudaDevAttrPageableMemoryAccess`.\n\n- :py:obj:`~.cudaMemAdviseUnsetPreferredLocation`: Undoes the effect of\n  :py:obj:`~.cudaMemAdviseSetPreferredLocation` and changes the\n  preferred location to none. The `location` argument is ignored for\n  this advice.\n\n- :py:obj:`~.cudaMemAdviseSetAccessedBy`: This advice implies that the\n  data will be accessed by processor `location`. The\n  :py:obj:`~.cudaMemLocation.type` must be either\n  :py:obj:`~.cudaMemLocationTypeDevice` with\n  :py:obj:`~.cudaMemLocation.id` representing a valid device ordinal or\n  :py:obj:`~.cudaMemLocationTypeHost` and\n  :py:obj:`~.cudaMemLocation.id` will be ignored. All other location\n  types are invalid. If :py:obj:`~.cudaMemLocation.id` is a GPU, then\n  the device attribute :py:obj:`~.cudaDevAttrConcurrentManagedAccess`\n  must be non-zero. This advice does not cause data migration and has\n  no impact on the location of the data per se. Instead, it causes the\n  data to always be mapped in the specified processor's page tables, as\n  long as the location of the data permits a mapping to be established.\n  If the data gets migrated for any reason, the mappings are updated\n  accordingly. This advice is recommended in scenarios where data\n  locality is not important, but avoiding faults is. Consider for\n  example a system containing multiple GPUs with peer-to-peer access\n  enabled, where the data located on one GPU is occasionally accessed\n  by peer GPUs. In such scenarios, migrating data over to the other""\n  GPUs is not as important because the accesses are infrequent and the\n  overhead of migration may be too high. But preventing faults can\n  still help improve performance, and so having a mapping set up in\n  advance is useful. Note that on CPU access of this data, the data may\n  be migrated to host memory because the CPU typically cannot access\n  device memory directly. Any GPU that had the\n  :py:obj:`~.cudaMemAdviseSetAccessedBy` flag set for this data will\n  now have its mapping updated to point to the page in host memory. If\n  :py:obj:`~.cudaMemAdviseSetReadMostly` is also set on this memory\n  region or any subset of it, then the policies associated with that\n  advice will override the policies of this advice. Additionally, if\n  the preferred location of this memory region or any subset of it is\n  also `location`, then the policies associated with\n  :py:obj:`~.CU_MEM_ADVISE_SET_PREFERRED_LOCATION` will override the\n  policies of this advice. If the memory region refers to valid system-\n  allocated pageable memory, and :py:obj:`~.cudaMemLocation.type` is\n  :py:obj:`~.cudaMemLocationTypeDevice` then device in\n  :py:obj:`~.cudaMemLocation.id` must have a non-zero value for the\n  device attribute :py:obj:`~.cudaDevAttrPageableMemoryAccess`.\n  Additionally, if :py:obj:`~.cudaMemLocation.id` has a non-zero value\n  for the device attribute\n  :py:obj:`~.cudaDevAttrPageableMemoryAccessUsesHostPageTables`, then\n  this call has no effect.\n\n- :py:obj:`~.CU_MEM_ADVISE_UNSET_ACCESSED_BY`: Undoes the effect of\n  :py:obj:`~.cudaMemAdviseSetAccessedBy`. Any mappings to the data from\n  `location` may be removed at any time causing accesses to result in\n  non-fatal page faults. If the memory region refers to valid system-\n  allocated pageable memory, and :py:obj:`~.cudaMemLocation.type` is\n  :py:obj:`~.cudaMemLocationTypeDevice` then device in\n  :py:obj:`~.cudaMemLocation.id` must have a non-zero value for the\n  device attribute :py:obj:`~.cudaDevAt""trPageableMemoryAccess`.\n  Additionally, if :py:obj:`~.cudaMemLocation.id` has a non-zero value\n  for the device attribute\n  :py:obj:`~.cudaDevAttrPageableMemoryAccessUsesHostPageTables`, then\n  this call has no effect.\n\nParameters\n----------\ndevPtr : Any\n    Pointer to memory to set the advice for\ncount : size_t\n    Size in bytes of the memory range\nadvice : :py:obj:`~.cudaMemoryAdvise`\n    Advice to be applied for the specified memory range\nlocation : :py:obj:`~.cudaMemLocation`\n    location to apply the advice for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cuMemAdvise`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_281cudaMemAdvise = {"cudaMemAdvise", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_281cudaMemAdvise, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_280cudaMemAdvise};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_281cudaMemAdvise(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_devPtr = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_advice = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemAdvise (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_devPtr_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_advice,&__pyx_mstate_global->__pyx_n_u_location_2,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, 23179, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23179, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23179, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23179, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23179, __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, "cudaMemAdvise", 0) < (0)) __PYX_ERR(0, 23179, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemAdvise", 1, 4, 4, i); __PYX_ERR(0, 23179, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 23179, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23179, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23179, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23179, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23180, __pyx_L3_error)
    __pyx_v_advice = values[2];
    __pyx_v_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemAdvise", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 23179, __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.runtime.cudaMemAdvise", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_advice) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "advice"); __PYX_ERR(0, 23180, __pyx_L1_error)
  }
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 0, "location", 0))) __PYX_ERR(0, 23180, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_280cudaMemAdvise(__pyx_self, __pyx_v_devPtr, __pyx_v_count, __pyx_v_advice, __pyx_v_location);

  /* 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_7runtime_280cudaMemAdvise(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, size_t __pyx_v_count, PyObject *__pyx_v_advice, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  enum cudaMemoryAdvise __pyx_v_cyadvice;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  enum cudaMemoryAdvise __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemAdvise", 0);

  /* "cuda/bindings/runtime.pyx":23366
 *     :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpyPeer`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy3DPeerAsync`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cuMemAdvise`
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     cdef cyruntime.cudaMemoryAdvise cyadvice = advice.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23366, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":23367
 *     """
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemoryAdvise cyadvice = advice.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23367, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":23368
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     cdef cyruntime.cudaMemoryAdvise cyadvice = advice.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemAdvise(cydevPtr_ptr, count, cyadvice, location._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_advice, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = ((enum cudaMemoryAdvise)__Pyx_PyLong_As_enum__cudaMemoryAdvise(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23368, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyadvice = __pyx_t_5;

  /* "cuda/bindings/runtime.pyx":23369
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     cdef cyruntime.cudaMemoryAdvise cyadvice = advice.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemAdvise(cydevPtr_ptr, count, cyadvice, location._pvt_ptr[0])
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23370
 *     cdef cyruntime.cudaMemoryAdvise cyadvice = advice.value
 *     with nogil:
 *         err = cyruntime.cudaMemAdvise(cydevPtr_ptr, count, cyadvice, location._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemAdvise(__pyx_v_cydevPtr_ptr, __pyx_v_count, __pyx_v_cyadvice, (__pyx_v_location->_pvt_ptr[0])); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23370, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":23369
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     cdef cyruntime.cudaMemoryAdvise cyadvice = advice.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemAdvise(cydevPtr_ptr, count, cyadvice, location._pvt_ptr[0])
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23371
 *     with nogil:
 *         err = cyruntime.cudaMemAdvise(cydevPtr_ptr, count, cyadvice, location._pvt_ptr[0])
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 23371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 23371, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23179
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, location not None : cudaMemLocation):
 *     """ Advise about the usage of a given memory range.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemAdvise", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23373
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemRangeGetAttribute(size_t dataSize, attribute not None : cudaMemRangeAttribute, devPtr, size_t count):
 *     """ Query an attribute of a given memory range.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_283cudaMemRangeGetAttribute(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_7runtime_282cudaMemRangeGetAttribute, "cudaMemRangeGetAttribute(size_t dataSize, attribute: cudaMemRangeAttribute, devPtr, size_t count)\n\nQuery an attribute of a given memory range.\n\nQuery an attribute about the memory range starting at `devPtr` with a\nsize of `count` bytes. The memory range must refer to managed memory\nallocated via :py:obj:`~.cudaMallocManaged` or declared via managed\nvariables.\n\nThe `attribute` parameter can take the following values:\n\n- :py:obj:`~.cudaMemRangeAttributeReadMostly`: If this attribute is\n  specified, `data` will be interpreted as a 32-bit integer, and\n  `dataSize` must be 4. The result returned will be 1 if all pages in\n  the given memory range have read-duplication enabled, or 0 otherwise.\n\n- :py:obj:`~.cudaMemRangeAttributePreferredLocation`: If this attribute\n  is specified, `data` will be interpreted as a 32-bit integer, and\n  `dataSize` must be 4. The result returned will be a GPU device id if\n  all pages in the memory range have that GPU as their preferred\n  location, or it will be cudaCpuDeviceId if all pages in the memory\n  range have the CPU as their preferred location, or it will be\n  cudaInvalidDeviceId if either all the pages don't have the same\n  preferred location or some of the pages don't have a preferred\n  location at all. Note that the actual location of the pages in the\n  memory range at the time of the query may be different from the\n  preferred location.\n\n- :py:obj:`~.cudaMemRangeAttributeAccessedBy`: If this attribute is\n  specified, `data` will be interpreted as an array of 32-bit integers,\n  and `dataSize` must be a non-zero multiple of 4. The result returned\n  will be a list of device ids that had\n  :py:obj:`~.cudaMemAdviceSetAccessedBy` set for that entire memory\n  range. If any device does not have that advice set for the entire\n  memory range, that device will not be included. If `data` is larger\n  than the number of devices that have that advice set for that memory\n  range, cudaInvalidDeviceId will be retu""rned in all the extra space\n  provided. For ex., if `dataSize` is 12 (i.e. `data` has 3 elements)\n  and only device 0 has the advice set, then the result returned will\n  be { 0, cudaInvalidDeviceId, cudaInvalidDeviceId }. If `data` is\n  smaller than the number of devices that have that advice set, then\n  only as many devices will be returned as can fit in the array. There\n  is no guarantee on which specific devices will be returned, however.\n\n- :py:obj:`~.cudaMemRangeAttributeLastPrefetchLocation`: If this\n  attribute is specified, `data` will be interpreted as a 32-bit\n  integer, and `dataSize` must be 4. The result returned will be the\n  last location to which all pages in the memory range were prefetched\n  explicitly via :py:obj:`~.cudaMemPrefetchAsync`. This will either be\n  a GPU id or cudaCpuDeviceId depending on whether the last location\n  for prefetch was a GPU or the CPU respectively. If any page in the\n  memory range was never explicitly prefetched or if all pages were not\n  prefetched to the same location, cudaInvalidDeviceId will be\n  returned. Note that this simply returns the last location that the\n  applicaton requested to prefetch the memory range to. It gives no\n  indication as to whether the prefetch operation to that location has\n  completed or even begun.\n\n- :py:obj:`~.cudaMemRangeAttributePreferredLocationType`: If this\n  attribute is specified, `data` will be interpreted as a\n  :py:obj:`~.cudaMemLocationType`, and `dataSize` must be\n  sizeof(cudaMemLocationType). The :py:obj:`~.cudaMemLocationType`\n  returned will be :py:obj:`~.cudaMemLocationTypeDevice` if all pages\n  in the memory range have the same GPU as their preferred location, or\n  :py:obj:`~.cudaMemLocationType` will be\n  :py:obj:`~.cudaMemLocationTypeHost` if all pages in the memory range\n  have the CPU as their preferred location, or or it will be\n  :py:obj:`~.cudaMemLocationTypeHostNuma` if all the pages in the\n  memory range have the same host NUMA n""ode ID as their preferred\n  location or it will be :py:obj:`~.cudaMemLocationTypeInvalid` if\n  either all the pages don't have the same preferred location or some\n  of the pages don't have a preferred location at all. Note that the\n  actual location type of the pages in the memory range at the time of\n  the query may be different from the preferred location type.\n\n  - :py:obj:`~.cudaMemRangeAttributePreferredLocationId`: If this\n    attribute is specified, `data` will be interpreted as a 32-bit\n    integer, and `dataSize` must be 4. If the\n    :py:obj:`~.cudaMemRangeAttributePreferredLocationType` query for\n    the same address range returns\n    :py:obj:`~.cudaMemLocationTypeDevice`, it will be a valid device\n    ordinal or if it returns :py:obj:`~.cudaMemLocationTypeHostNuma`,\n    it will be a valid host NUMA node ID or if it returns any other\n    location type, the id should be ignored.\n\n- :py:obj:`~.cudaMemRangeAttributeLastPrefetchLocationType`: If this\n  attribute is specified, `data` will be interpreted as a\n  :py:obj:`~.cudaMemLocationType`, and `dataSize` must be\n  sizeof(cudaMemLocationType). The result returned will be the last\n  location type to which all pages in the memory range were prefetched\n  explicitly via :py:obj:`~.cuMemPrefetchAsync`. The\n  :py:obj:`~.cudaMemLocationType` returned will be\n  :py:obj:`~.cudaMemLocationTypeDevice` if the last prefetch location\n  was the GPU or :py:obj:`~.cudaMemLocationTypeHost` if it was the CPU\n  or :py:obj:`~.cudaMemLocationTypeHostNuma` if the last prefetch\n  location was a specific host NUMA node. If any page in the memory\n  range was never explicitly prefetched or if all pages were not\n  prefetched to the same location, :py:obj:`~.CUmemLocationType` will\n  be :py:obj:`~.cudaMemLocationTypeInvalid`. Note that this simply\n  returns the last location type that the application requested to\n  prefetch the memory range to. It gives no indication as to whether\n  the prefetch operatio""n to that location has completed or even begun.\n\n  - :py:obj:`~.cudaMemRangeAttributeLastPrefetchLocationId`: If this\n    attribute is specified, `data` will be interpreted as a 32-bit\n    integer, and `dataSize` must be 4. If the\n    :py:obj:`~.cudaMemRangeAttributeLastPrefetchLocationType` query for\n    the same address range returns\n    :py:obj:`~.cudaMemLocationTypeDevice`, it will be a valid device\n    ordinal or if it returns :py:obj:`~.cudaMemLocationTypeHostNuma`,\n    it will be a valid host NUMA node ID or if it returns any other\n    location type, the id should be ignored.\n\nParameters\n----------\ndataSize : size_t\n    Array containing the size of data\nattribute : :py:obj:`~.cudaMemRangeAttribute`\n    The attribute to query\ndevPtr : Any\n    Start of the range to query\ncount : size_t\n    Size of the range to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ndata : Any\n    A pointers to a memory location where the result of each attribute\n    query will be written to.\n\nSee Also\n--------\n:py:obj:`~.cudaMemRangeGetAttributes`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cuMemRangeGetAttribute`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_283cudaMemRangeGetAttribute = {"cudaMemRangeGetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_283cudaMemRangeGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_282cudaMemRangeGetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_283cudaMemRangeGetAttribute(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
) {
  size_t __pyx_v_dataSize;
  PyObject *__pyx_v_attribute = 0;
  PyObject *__pyx_v_devPtr = 0;
  size_t __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemRangeGetAttribute (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_dataSize,&__pyx_mstate_global->__pyx_n_u_attribute,&__pyx_mstate_global->__pyx_n_u_devPtr_2,&__pyx_mstate_global->__pyx_n_u_count,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, 23373, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23373, __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, "cudaMemRangeGetAttribute", 0) < (0)) __PYX_ERR(0, 23373, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttribute", 1, 4, 4, i); __PYX_ERR(0, 23373, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 23373, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23373, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23373, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23373, __pyx_L3_error)
    }
    __pyx_v_dataSize = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_dataSize == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23374, __pyx_L3_error)
    __pyx_v_attribute = values[1];
    __pyx_v_devPtr = values[2];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23374, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttribute", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 23373, __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.runtime.cudaMemRangeGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attribute) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attribute"); __PYX_ERR(0, 23374, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_282cudaMemRangeGetAttribute(__pyx_self, __pyx_v_dataSize, __pyx_v_attribute, __pyx_v_devPtr, __pyx_v_count);

  /* 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_7runtime_282cudaMemRangeGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_dataSize, PyObject *__pyx_v_attribute, PyObject *__pyx_v_devPtr, size_t __pyx_v_count) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *__pyx_v_cydata = 0;
  void *__pyx_v_cydata_ptr;
  enum cudaMemRangeAttribute __pyx_v_cyattribute;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaMemRangeAttribute __pyx_t_6;
  cudaError_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemRangeGetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":23509
 *     :py:obj:`~.cudaMemRangeGetAttributes`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cuMemRangeGetAttribute`
 *     """
 *     cdef _HelperCUmem_range_attribute cydata = _HelperCUmem_range_attribute(attribute, dataSize)             # <<<<<<<<<<<<<<
 *     cdef void* cydata_ptr = <void*><void_ptr>cydata.cptr
 *     cdef cyruntime.cudaMemRangeAttribute cyattribute = attribute.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_dataSize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_attribute, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23509, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydata = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":23510
 *     """
 *     cdef _HelperCUmem_range_attribute cydata = _HelperCUmem_range_attribute(attribute, dataSize)
 *     cdef void* cydata_ptr = <void*><void_ptr>cydata.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemRangeAttribute cyattribute = attribute.value
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydata), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23510, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydata_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":23511
 *     cdef _HelperCUmem_range_attribute cydata = _HelperCUmem_range_attribute(attribute, dataSize)
 *     cdef void* cydata_ptr = <void*><void_ptr>cydata.cptr
 *     cdef cyruntime.cudaMemRangeAttribute cyattribute = attribute.value             # <<<<<<<<<<<<<<
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attribute, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = ((enum cudaMemRangeAttribute)__Pyx_PyLong_As_enum__cudaMemRangeAttribute(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23511, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyattribute = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":23512
 *     cdef void* cydata_ptr = <void*><void_ptr>cydata.cptr
 *     cdef cyruntime.cudaMemRangeAttribute cyattribute = attribute.value
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23512, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":23513
 *     cdef cyruntime.cudaMemRangeAttribute cyattribute = attribute.value
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemRangeGetAttribute(cydata_ptr, dataSize, cyattribute, cydevPtr_ptr, count)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":23514
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemRangeGetAttribute(cydata_ptr, dataSize, cyattribute, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23515
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemRangeGetAttribute(cydata_ptr, dataSize, cyattribute, cydevPtr_ptr, count)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemRangeGetAttribute(__pyx_v_cydata_ptr, __pyx_v_dataSize, __pyx_v_cyattribute, __pyx_v_cydevPtr_ptr, __pyx_v_count); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23515, __pyx_L4_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":23514
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemRangeGetAttribute(cydata_ptr, dataSize, cyattribute, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23516
 *     with nogil:
 *         err = cyruntime.cudaMemRangeGetAttribute(cydata_ptr, dataSize, cyattribute, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cydata.pyObj())
*/
  __pyx_t_8 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":23517
 *         err = cyruntime.cudaMemRangeGetAttribute(cydata_ptr, dataSize, cyattribute, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cydata.pyObj())
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 23517, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 23517, __pyx_L1_error);
    __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":23516
 *     with nogil:
 *         err = cyruntime.cudaMemRangeGetAttribute(cydata_ptr, dataSize, cyattribute, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cydata.pyObj())
*/
  }

  /* "cuda/bindings/runtime.pyx":23518
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cydata.pyObj())             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = ((PyObject *)__pyx_v_cydata);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_pyObj, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 23518, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2) != (0)) __PYX_ERR(0, 23518, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23373
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemRangeGetAttribute(size_t dataSize, attribute not None : cudaMemRangeAttribute, devPtr, size_t count):
 *     """ Query an attribute of a given memory range.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemRangeGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cydata);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23520
 *     return (_dict_cudaError_t[err], cydata.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Optional[tuple[cudaMemRangeAttribute] | list[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count):
 *     """ Query attributes of a given memory range.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_285cudaMemRangeGetAttributes(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_7runtime_284cudaMemRangeGetAttributes, "cudaMemRangeGetAttributes(dataSizes: tuple[int] | list[int], attributes: Optional[tuple[cudaMemRangeAttribute] | list[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count)\n\nQuery attributes of a given memory range.\n\nQuery attributes of the memory range starting at `devPtr` with a size\nof `count` bytes. The memory range must refer to managed memory\nallocated via :py:obj:`~.cudaMallocManaged` or declared via managed\nvariables. The `attributes` array will be interpreted to have\n`numAttributes` entries. The `dataSizes` array will also be interpreted\nto have `numAttributes` entries. The results of the query will be\nstored in `data`.\n\nThe list of supported attributes are given below. Please refer to\n:py:obj:`~.cudaMemRangeGetAttribute` for attribute descriptions and\nrestrictions.\n\n- :py:obj:`~.cudaMemRangeAttributeReadMostly`\n\n- :py:obj:`~.cudaMemRangeAttributePreferredLocation`\n\n- :py:obj:`~.cudaMemRangeAttributeAccessedBy`\n\n- :py:obj:`~.cudaMemRangeAttributeLastPrefetchLocation`\n\n- :: cudaMemRangeAttributePreferredLocationType\n\n- :: cudaMemRangeAttributePreferredLocationId\n\n- :: cudaMemRangeAttributeLastPrefetchLocationType\n\n- :: cudaMemRangeAttributeLastPrefetchLocationId\n\nParameters\n----------\ndataSizes : list[int]\n    Array containing the sizes of each result\nattributes : list[:py:obj:`~.cudaMemRangeAttribute`]\n    An array of attributes to query (numAttributes and the number of\n    attributes in this array should match)\nnumAttributes : size_t\n    Number of attributes to query\ndevPtr : Any\n    Start of the range to query\ncount : size_t\n    Size of the range to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ndata : list[Any]\n    A two-dimensional array containing pointers to memory locations\n    where the result of each attribute query will be written to.\n\nSee Also\n--------\n:py:obj:`~.cudaMemRangeGetAttribute`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.""cudaMemPrefetchAsync`, :py:obj:`~.cuMemRangeGetAttributes`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_285cudaMemRangeGetAttributes = {"cudaMemRangeGetAttributes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_285cudaMemRangeGetAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_284cudaMemRangeGetAttributes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_285cudaMemRangeGetAttributes(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_dataSizes = 0;
  PyObject *__pyx_v_attributes = 0;
  size_t __pyx_v_numAttributes;
  PyObject *__pyx_v_devPtr = 0;
  size_t __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemRangeGetAttributes (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_dataSizes,&__pyx_mstate_global->__pyx_n_u_attributes,&__pyx_mstate_global->__pyx_n_u_numAttributes,&__pyx_mstate_global->__pyx_n_u_devPtr_2,&__pyx_mstate_global->__pyx_n_u_count,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, 23520, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23520, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23520, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23520, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23520, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23520, __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, "cudaMemRangeGetAttributes", 0) < (0)) __PYX_ERR(0, 23520, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttributes", 1, 5, 5, i); __PYX_ERR(0, 23520, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 23520, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23520, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23520, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23520, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23520, __pyx_L3_error)
    }
    __pyx_v_dataSizes = values[0];
    __pyx_v_attributes = values[1];
    __pyx_v_numAttributes = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numAttributes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23521, __pyx_L3_error)
    __pyx_v_devPtr = values[3];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23521, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemRangeGetAttributes", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 23520, __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.runtime.cudaMemRangeGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_284cudaMemRangeGetAttributes(__pyx_self, __pyx_v_dataSizes, __pyx_v_attributes, __pyx_v_numAttributes, __pyx_v_devPtr, __pyx_v_count);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_2generator109(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":23579
 *     """
 *     attributes = [] if attributes is None else attributes
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 23579, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_2generator109, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[109]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemRangeGetAttributes_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 23579, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemRangeGetAttributes.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_2generator109(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23579, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23579, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23579, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23579, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23579, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23579, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23579, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttribute); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v__x, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 23579, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_5generator110(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":23581
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]")
 *     pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)]
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 23581, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_5generator110, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[110]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemRangeGetAttributes_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 23581, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemRangeGetAttributes.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_5generator110(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 23581, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 23581, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23581, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23581, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23581, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23581, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23581, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyLong_Check(__pyx_cur_scope->__pyx_v__x); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23520
 *     return (_dict_cudaError_t[err], cydata.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Optional[tuple[cudaMemRangeAttribute] | list[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count):
 *     """ Query attributes of a given memory range.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_284cudaMemRangeGetAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dataSizes, PyObject *__pyx_v_attributes, size_t __pyx_v_numAttributes, PyObject *__pyx_v_devPtr, size_t __pyx_v_count) {
  PyObject *__pyx_v_pylist = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperdata = 0;
  void **__pyx_v_cyvoidStarHelper_ptr;
  std::vector<size_t>  __pyx_v_cydataSizes;
  std::vector<enum cudaMemRangeAttribute>  __pyx_v_cyattributes;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_2generator109 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_5generator110 = 0;
  PyObject *__pyx_10genexpr239__pyx_v_pyattributes = NULL;
  PyObject *__pyx_10genexpr239__pyx_v_pydataSizes = NULL;
  PyObject *__pyx_10genexpr240__pyx_v_pyattributes = NULL;
  PyObject *__pyx_10genexpr241__pyx_v_obj = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *(*__pyx_t_12)(PyObject *);
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_13;
  std::vector<size_t>  __pyx_t_14;
  std::vector<enum cudaMemRangeAttribute>  __pyx_t_15;
  cudaError_t __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemRangeGetAttributes", 0);
  __Pyx_INCREF(__pyx_v_attributes);

  /* "cuda/bindings/runtime.pyx":23578
 *     :py:obj:`~.cudaMemRangeGetAttribute`, :py:obj:`~.cudaMemAdvise`, :py:obj:`~.cudaMemPrefetchAsync`, :py:obj:`~.cuMemRangeGetAttributes`
 *     """
 *     attributes = [] if attributes is None else attributes             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
*/
  __pyx_t_2 = (__pyx_v_attributes == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_attributes);
    __pyx_t_1 = __pyx_v_attributes;
  }
  __Pyx_DECREF_SET(__pyx_v_attributes, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":23579
 *     """
 *     attributes = [] if attributes is None else attributes
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_genexpr(NULL, __pyx_v_attributes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 23579, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":23580
 *     attributes = [] if attributes is None else attributes
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):
 *         raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]")
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_attributes_is_not_insta};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 23580, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":23579
 *     """
 *     attributes = [] if attributes is None else attributes
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):
*/
  }

  /* "cuda/bindings/runtime.pyx":23581
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]")
 *     pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)]
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_3genexpr(NULL, __pyx_v_dataSizes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 23581, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":23582
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):
 *         raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]")             # <<<<<<<<<<<<<<
 *     pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdata = _InputVoidPtrPtrHelper(pylist)
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_dataSizes_is_not_instan};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 23582, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":23581
 *     if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes):
 *         raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]")
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]")
 *     pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)]
*/
  }

  /* "cuda/bindings/runtime.pyx":23583
 *     if not all(isinstance(_x, (int)) for _x in dataSizes):
 *         raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]")
 *     pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdata = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyvoidStarHelper_ptr = <void**><void_ptr>voidStarHelperdata.cptr
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23583, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_v_attributes, __pyx_v_dataSizes};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_zip, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23583, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
      __pyx_t_6 = __pyx_t_3; __Pyx_INCREF(__pyx_t_6);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23583, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23583, __pyx_L7_error)
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_6))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23583, __pyx_L7_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23583, __pyx_L7_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23583, __pyx_L7_error)
      } else {
        __pyx_t_3 = __pyx_t_8(__pyx_t_6);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23583, __pyx_L7_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
        PyObject* sequence = __pyx_t_3;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 23583, __pyx_L7_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_9 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_9);
          __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_10);
        } else {
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23583, __pyx_L7_error)
          __Pyx_XGOTREF(__pyx_t_9);
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23583, __pyx_L7_error)
          __Pyx_XGOTREF(__pyx_t_10);
        }
        #else
        __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23583, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23583, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_10);
        #endif
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_11 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 23583, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_11);
        index = 0; __pyx_t_9 = __pyx_t_12(__pyx_t_11); if (unlikely(!__pyx_t_9)) goto __pyx_L10_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_9);
        index = 1; __pyx_t_10 = __pyx_t_12(__pyx_t_11); if (unlikely(!__pyx_t_10)) goto __pyx_L10_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_10);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_11), 2) < (0)) __PYX_ERR(0, 23583, __pyx_L7_error)
        __pyx_t_12 = NULL;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        goto __pyx_L11_unpacking_done;
        __pyx_L10_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_t_12 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 23583, __pyx_L7_error)
        __pyx_L11_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_10genexpr239__pyx_v_pyattributes, __pyx_t_9);
      __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_10genexpr239__pyx_v_pydataSizes, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_t_10 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_10, __pyx_10genexpr239__pyx_v_pyattributes, __pyx_10genexpr239__pyx_v_pydataSizes};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23583, __pyx_L7_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_3);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 23583, __pyx_L7_error)
      __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_10genexpr239__pyx_v_pyattributes); __pyx_10genexpr239__pyx_v_pyattributes = 0;
    __Pyx_XDECREF(__pyx_10genexpr239__pyx_v_pydataSizes); __pyx_10genexpr239__pyx_v_pydataSizes = 0;
    goto __pyx_L13_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr239__pyx_v_pyattributes); __pyx_10genexpr239__pyx_v_pyattributes = 0;
    __Pyx_XDECREF(__pyx_10genexpr239__pyx_v_pydataSizes); __pyx_10genexpr239__pyx_v_pydataSizes = 0;
    goto __pyx_L1_error;
    __pyx_L13_exit_scope:;
  } /* exit inner scope */
  __pyx_v_pylist = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":23584
 *         raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]")
 *     pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdata = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef void** cyvoidStarHelper_ptr = <void**><void_ptr>voidStarHelperdata.cptr
 *     cdef vector[size_t] cydataSizes = dataSizes
*/
  __pyx_t_6 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_pylist};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23584, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_voidStarHelperdata = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":23585
 *     pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdata = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyvoidStarHelper_ptr = <void**><void_ptr>voidStarHelperdata.cptr             # <<<<<<<<<<<<<<
 *     cdef vector[size_t] cydataSizes = dataSizes
 *     cdef vector[cyruntime.cudaMemRangeAttribute] cyattributes = [pyattributes.value for pyattributes in (attributes)]
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperdata), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_13 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_13 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyvoidStarHelper_ptr = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_13));

  /* "cuda/bindings/runtime.pyx":23586
 *     cdef _InputVoidPtrPtrHelper voidStarHelperdata = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyvoidStarHelper_ptr = <void**><void_ptr>voidStarHelperdata.cptr
 *     cdef vector[size_t] cydataSizes = dataSizes             # <<<<<<<<<<<<<<
 *     cdef vector[cyruntime.cudaMemRangeAttribute] cyattributes = [pyattributes.value for pyattributes in (attributes)]
 *     if numAttributes > <size_t>len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes))
*/
  __pyx_t_14 = __pyx_convert_vector_from_py_size_t(__pyx_v_dataSizes); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23586, __pyx_L1_error)
  __pyx_v_cydataSizes = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_14);

  /* "cuda/bindings/runtime.pyx":23587
 *     cdef void** cyvoidStarHelper_ptr = <void**><void_ptr>voidStarHelperdata.cptr
 *     cdef vector[size_t] cydataSizes = dataSizes
 *     cdef vector[cyruntime.cudaMemRangeAttribute] cyattributes = [pyattributes.value for pyattributes in (attributes)]             # <<<<<<<<<<<<<<
 *     if numAttributes > <size_t>len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes))
 *     if numAttributes > <size_t>len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes))
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23587, __pyx_L16_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_attributes)) || PyTuple_CheckExact(__pyx_v_attributes)) {
      __pyx_t_6 = __pyx_v_attributes; __Pyx_INCREF(__pyx_t_6);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_attributes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23587, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23587, __pyx_L16_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_6))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23587, __pyx_L16_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23587, __pyx_L16_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23587, __pyx_L16_error)
      } else {
        __pyx_t_3 = __pyx_t_8(__pyx_t_6);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 23587, __pyx_L16_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_10genexpr240__pyx_v_pyattributes, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr240__pyx_v_pyattributes, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23587, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 23587, __pyx_L16_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_10genexpr240__pyx_v_pyattributes); __pyx_10genexpr240__pyx_v_pyattributes = 0;
    goto __pyx_L20_exit_scope;
    __pyx_L16_error:;
    __Pyx_XDECREF(__pyx_10genexpr240__pyx_v_pyattributes); __pyx_10genexpr240__pyx_v_pyattributes = 0;
    goto __pyx_L1_error;
    __pyx_L20_exit_scope:;
  } /* exit inner scope */
  __pyx_t_15 = __pyx_convert_vector_from_py_enum__cudaMemRangeAttribute(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23587, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyattributes = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_15);

  /* "cuda/bindings/runtime.pyx":23588
 *     cdef vector[size_t] cydataSizes = dataSizes
 *     cdef vector[cyruntime.cudaMemRangeAttribute] cyattributes = [pyattributes.value for pyattributes in (attributes)]
 *     if numAttributes > <size_t>len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes))             # <<<<<<<<<<<<<<
 *     if numAttributes > <size_t>len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes))
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dataSizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23588, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numAttributes > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_6 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_dataSizes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23588, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numAttributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 23588, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":23589
 *     cdef vector[cyruntime.cudaMemRangeAttribute] cyattributes = [pyattributes.value for pyattributes in (attributes)]
 *     if numAttributes > <size_t>len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes))
 *     if numAttributes > <size_t>len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes))             # <<<<<<<<<<<<<<
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_attributes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23589, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numAttributes > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_3 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_attributes); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 23589, __pyx_L1_error)
    __pyx_t_6 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyLong_FromSize_t(__pyx_v_numAttributes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((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_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23589, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 23589, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":23590
 *     if numAttributes > <size_t>len(dataSizes): raise RuntimeError("List is too small: " + str(len(dataSizes)) + " < " + str(numAttributes))
 *     if numAttributes > <size_t>len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes))
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_6 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_devPtr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23590, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":23591
 *     if numAttributes > <size_t>len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes))
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemRangeGetAttributes(cyvoidStarHelper_ptr, cydataSizes.data(), cyattributes.data(), numAttributes, cydevPtr_ptr, count)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_13 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_13 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23591, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_13));

  /* "cuda/bindings/runtime.pyx":23592
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemRangeGetAttributes(cyvoidStarHelper_ptr, cydataSizes.data(), cyattributes.data(), numAttributes, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23593
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemRangeGetAttributes(cyvoidStarHelper_ptr, cydataSizes.data(), cyattributes.data(), numAttributes, cydevPtr_ptr, count)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_16 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemRangeGetAttributes(__pyx_v_cyvoidStarHelper_ptr, __pyx_v_cydataSizes.data(), __pyx_v_cyattributes.data(), __pyx_v_numAttributes, __pyx_v_cydevPtr_ptr, __pyx_v_count); if (unlikely(__pyx_t_16 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23593, __pyx_L24_error)
        __pyx_v_err = __pyx_t_16;
      }

      /* "cuda/bindings/runtime.pyx":23592
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemRangeGetAttributes(cyvoidStarHelper_ptr, cydataSizes.data(), cyattributes.data(), numAttributes, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L25;
        }
        __pyx_L24_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L25:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23594
 *     with nogil:
 *         err = cyruntime.cudaMemRangeGetAttributes(cyvoidStarHelper_ptr, cydataSizes.data(), cyattributes.data(), numAttributes, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], [obj.pyObj() for obj in pylist])
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":23595
 *         err = cyruntime.cudaMemRangeGetAttributes(cyvoidStarHelper_ptr, cydataSizes.data(), cyattributes.data(), numAttributes, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], [obj.pyObj() for obj in pylist])
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 23595, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, Py_None) != (0)) __PYX_ERR(0, 23595, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":23594
 *     with nogil:
 *         err = cyruntime.cudaMemRangeGetAttributes(cyvoidStarHelper_ptr, cydataSizes.data(), cyattributes.data(), numAttributes, cydevPtr_ptr, count)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], [obj.pyObj() for obj in pylist])
*/
  }

  /* "cuda/bindings/runtime.pyx":23596
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], [obj.pyObj() for obj in pylist])             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23596, __pyx_L29_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __pyx_v_pylist; __Pyx_INCREF(__pyx_t_6);
    __pyx_t_7 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 23596, __pyx_L29_error)
        #endif
        if (__pyx_t_7 >= __pyx_temp) break;
      }
      __pyx_t_10 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_7;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23596, __pyx_L29_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_10genexpr241__pyx_v_obj, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_t_9 = __pyx_10genexpr241__pyx_v_obj;
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL};
        __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_pyObj, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 23596, __pyx_L29_error)
        __Pyx_GOTREF(__pyx_t_10);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_10))) __PYX_ERR(0, 23596, __pyx_L29_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_10genexpr241__pyx_v_obj); __pyx_10genexpr241__pyx_v_obj = 0;
    goto __pyx_L33_exit_scope;
    __pyx_L29_error:;
    __Pyx_XDECREF(__pyx_10genexpr241__pyx_v_obj); __pyx_10genexpr241__pyx_v_obj = 0;
    goto __pyx_L1_error;
    __pyx_L33_exit_scope:;
  } /* exit inner scope */
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 23596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 23596, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3) != (0)) __PYX_ERR(0, 23596, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23520
 *     return (_dict_cudaError_t[err], cydata.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Optional[tuple[cudaMemRangeAttribute] | list[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count):
 *     """ Query attributes of a given memory range.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemRangeGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pylist);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperdata);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_2generator109);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_25cudaMemRangeGetAttributes_5generator110);
  __Pyx_XDECREF(__pyx_10genexpr239__pyx_v_pyattributes);
  __Pyx_XDECREF(__pyx_10genexpr239__pyx_v_pydataSizes);
  __Pyx_XDECREF(__pyx_10genexpr240__pyx_v_pyattributes);
  __Pyx_XDECREF(__pyx_10genexpr241__pyx_v_obj);
  __Pyx_XDECREF(__pyx_v_attributes);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23598
 *     return (_dict_cudaError_t[err], [obj.pyObj() for obj in pylist])
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_287cudaMemcpyToArray(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_7runtime_286cudaMemcpyToArray, "cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, kind: cudaMemcpyKind)\n\nCopies data between host and device.\n\n[Deprecated]\n\nCopies `count` bytes from the memory area pointed to by `src` to the\nCUDA array `dst` starting at `hOffset` rows and `wOffset` bytes from\nthe upper left corner, where `kind` specifies the direction of the\ncopy, and must be one of :py:obj:`~.cudaMemcpyHostToHost`,\n:py:obj:`~.cudaMemcpyHostToDevice`, :py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing.\n\nParameters\n----------\ndst : :py:obj:`~.cudaArray_t`\n    Destination memory address\nwOffset : size_t\n    Destination starting X offset (columns in bytes)\nhOffset : size_t\n    Destination starting Y offset (rows)\nsrc : Any\n    Source memory address\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpyFromArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpyArrayToArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpyToArrayAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpyFromArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpyHtoA`, :py:obj:`~.cuMemcpyDtoA`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_287cudaMemcpyToArray = {"cudaMemcpyToArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_287cudaMemcpyToArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_286cudaMemcpyToArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_287cudaMemcpyToArray(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_dst = 0;
  size_t __pyx_v_wOffset;
  size_t __pyx_v_hOffset;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyToArray (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_dst_2,&__pyx_mstate_global->__pyx_n_u_wOffset,&__pyx_mstate_global->__pyx_n_u_hOffset,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 23598, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23598, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23598, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23598, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23598, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23598, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23598, __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, "cudaMemcpyToArray", 0) < (0)) __PYX_ERR(0, 23598, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArray", 1, 6, 6, i); __PYX_ERR(0, 23598, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      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, 23598, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23598, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23598, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23598, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23598, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23598, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_wOffset = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23599, __pyx_L3_error)
    __pyx_v_hOffset = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23599, __pyx_L3_error)
    __pyx_v_src = values[3];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23599, __pyx_L3_error)
    __pyx_v_kind = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArray", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 23598, __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.runtime.cudaMemcpyToArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 23599, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_286cudaMemcpyToArray(__pyx_self, __pyx_v_dst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_src, __pyx_v_count, __pyx_v_kind);

  /* 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_7runtime_286cudaMemcpyToArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind) {
  cudaArray_t __pyx_v_cydst;
  PyObject *__pyx_v_pdst = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaMemcpyKind __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyToArray", 0);

  /* "cuda/bindings/runtime.pyx":23640
 *     """
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_dst == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23641
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
 *         pdst = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdst = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23640
 *     """
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23642
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23643
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)             # <<<<<<<<<<<<<<
 *     else:
 *         pdst = int(cudaArray_t(dst))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pdst = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":23642
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23645
 *         pdst = int(dst)
 *     else:
 *         pdst = int(cudaArray_t(dst))             # <<<<<<<<<<<<<<
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23645, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23645, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pdst = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":23646
 *     else:
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23646, __pyx_L1_error)
  __pyx_v_cydst = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":23647
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_src};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23647, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23648
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23648, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":23649
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyToArray(cydst, wOffset, hOffset, cysrc_ptr, count, cykind)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23649, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":23650
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyToArray(cydst, wOffset, hOffset, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23651
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpyToArray(cydst, wOffset, hOffset, cysrc_ptr, count, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyToArray(__pyx_v_cydst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_cysrc_ptr, __pyx_v_count, __pyx_v_cykind); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23651, __pyx_L5_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":23650
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyToArray(cydst, wOffset, hOffset, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23652
 *     with nogil:
 *         err = cyruntime.cudaMemcpyToArray(cydst, wOffset, hOffset, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 23652, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23598
 *     return (_dict_cudaError_t[err], [obj.pyObj() for obj in pylist])
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyToArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pdst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23654
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_289cudaMemcpyFromArray(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_7runtime_288cudaMemcpyFromArray, "cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, kind: cudaMemcpyKind)\n\nCopies data between host and device.\n\n[Deprecated]\n\nCopies `count` bytes from the CUDA array `src` starting at `hOffset`\nrows and `wOffset` bytes from the upper left corner to the memory area\npointed to by `dst`, where `kind` specifies the direction of the copy,\nand must be one of :py:obj:`~.cudaMemcpyHostToHost`,\n:py:obj:`~.cudaMemcpyHostToDevice`, :py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing.\n\nParameters\n----------\ndst : Any\n    Destination memory address\nsrc : :py:obj:`~.cudaArray_const_t`\n    Source memory address\nwOffset : size_t\n    Source starting X offset (columns in bytes)\nhOffset : size_t\n    Source starting Y offset (rows)\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpyToArray`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpyArrayToArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpyToArrayAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpyFromArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpyAtoH`, :py:obj:`~.cuMemcpyAtoD`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_289cudaMemcpyFromArray = {"cudaMemcpyFromArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_289cudaMemcpyFromArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_288cudaMemcpyFromArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_289cudaMemcpyFromArray(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_dst = 0;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_wOffset;
  size_t __pyx_v_hOffset;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyFromArray (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_dst_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_wOffset,&__pyx_mstate_global->__pyx_n_u_hOffset,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 23654, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23654, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23654, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23654, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23654, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23654, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23654, __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, "cudaMemcpyFromArray", 0) < (0)) __PYX_ERR(0, 23654, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArray", 1, 6, 6, i); __PYX_ERR(0, 23654, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      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, 23654, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23654, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23654, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23654, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23654, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23654, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_src = values[1];
    __pyx_v_wOffset = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23655, __pyx_L3_error)
    __pyx_v_hOffset = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23655, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23655, __pyx_L3_error)
    __pyx_v_kind = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArray", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 23654, __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.runtime.cudaMemcpyFromArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 23655, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_288cudaMemcpyFromArray(__pyx_self, __pyx_v_dst, __pyx_v_src, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_count, __pyx_v_kind);

  /* 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_7runtime_288cudaMemcpyFromArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, size_t __pyx_v_count, PyObject *__pyx_v_kind) {
  cudaArray_const_t __pyx_v_cysrc;
  PyObject *__pyx_v_psrc = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaMemcpyKind __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyFromArray", 0);

  /* "cuda/bindings/runtime.pyx":23696
 *     """
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
  __pyx_t_1 = (__pyx_v_src == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23697
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:
 *         psrc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psrc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23696
 *     """
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23698
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23699
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)             # <<<<<<<<<<<<<<
 *     else:
 *         psrc = int(cudaArray_const_t(src))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23699, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_psrc = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":23698
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23701
 *         psrc = int(src)
 *     else:
 *         psrc = int(cudaArray_const_t(src))             # <<<<<<<<<<<<<<
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23701, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_psrc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":23702
 *     else:
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23702, __pyx_L1_error)
  __pyx_v_cysrc = ((cudaArray_const_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":23703
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23703, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23704
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23704, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":23705
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyFromArray(cydst_ptr, cysrc, wOffset, hOffset, count, cykind)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":23706
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyFromArray(cydst_ptr, cysrc, wOffset, hOffset, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23707
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpyFromArray(cydst_ptr, cysrc, wOffset, hOffset, count, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyFromArray(__pyx_v_cydst_ptr, __pyx_v_cysrc, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_count, __pyx_v_cykind); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23707, __pyx_L5_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":23706
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyFromArray(cydst_ptr, cysrc, wOffset, hOffset, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23708
 *     with nogil:
 *         err = cyruntime.cudaMemcpyFromArray(cydst_ptr, cysrc, wOffset, hOffset, count, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 23708, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23654
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyFromArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psrc);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23710
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_291cudaMemcpyArrayToArray(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_7runtime_290cudaMemcpyArrayToArray, "cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, kind: cudaMemcpyKind)\n\nCopies data between host and device.\n\n[Deprecated]\n\nCopies `count` bytes from the CUDA array `src` starting at `hOffsetSrc`\nrows and `wOffsetSrc` bytes from the upper left corner to the CUDA\narray `dst` starting at `hOffsetDst` rows and `wOffsetDst` bytes from\nthe upper left corner, where `kind` specifies the direction of the\ncopy, and must be one of :py:obj:`~.cudaMemcpyHostToHost`,\n:py:obj:`~.cudaMemcpyHostToDevice`, :py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing.\n\nParameters\n----------\ndst : :py:obj:`~.cudaArray_t`\n    Destination memory address\nwOffsetDst : size_t\n    Destination starting X offset (columns in bytes)\nhOffsetDst : size_t\n    Destination starting Y offset (rows)\nsrc : :py:obj:`~.cudaArray_const_t`\n    Source memory address\nwOffsetSrc : size_t\n    Source starting X offset (columns in bytes)\nhOffsetSrc : size_t\n    Source starting Y offset (rows)\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpyToArray`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpyFromArray`, :py:obj:`~.cudaMemcpy2DFromArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpyToArrayAsync`, :py:obj:""`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpyFromArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpyAtoA`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_291cudaMemcpyArrayToArray = {"cudaMemcpyArrayToArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_291cudaMemcpyArrayToArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_290cudaMemcpyArrayToArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_291cudaMemcpyArrayToArray(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_dst = 0;
  size_t __pyx_v_wOffsetDst;
  size_t __pyx_v_hOffsetDst;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_wOffsetSrc;
  size_t __pyx_v_hOffsetSrc;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyArrayToArray (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_dst_2,&__pyx_mstate_global->__pyx_n_u_wOffsetDst,&__pyx_mstate_global->__pyx_n_u_hOffsetDst,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_wOffsetSrc,&__pyx_mstate_global->__pyx_n_u_hOffsetSrc,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 23710, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 23710, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 23710, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23710, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23710, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23710, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23710, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23710, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23710, __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, "cudaMemcpyArrayToArray", 0) < (0)) __PYX_ERR(0, 23710, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, i); __PYX_ERR(0, 23710, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      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, 23710, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23710, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23710, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23710, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23710, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23710, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 23710, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 23710, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_wOffsetDst = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_wOffsetDst == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23711, __pyx_L3_error)
    __pyx_v_hOffsetDst = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_hOffsetDst == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23711, __pyx_L3_error)
    __pyx_v_src = values[3];
    __pyx_v_wOffsetSrc = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_wOffsetSrc == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23711, __pyx_L3_error)
    __pyx_v_hOffsetSrc = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_hOffsetSrc == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23711, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[6]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23711, __pyx_L3_error)
    __pyx_v_kind = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyArrayToArray", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 23710, __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.runtime.cudaMemcpyArrayToArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 23711, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_290cudaMemcpyArrayToArray(__pyx_self, __pyx_v_dst, __pyx_v_wOffsetDst, __pyx_v_hOffsetDst, __pyx_v_src, __pyx_v_wOffsetSrc, __pyx_v_hOffsetSrc, __pyx_v_count, __pyx_v_kind);

  /* 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_7runtime_290cudaMemcpyArrayToArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffsetDst, size_t __pyx_v_hOffsetDst, PyObject *__pyx_v_src, size_t __pyx_v_wOffsetSrc, size_t __pyx_v_hOffsetSrc, size_t __pyx_v_count, PyObject *__pyx_v_kind) {
  cudaArray_const_t __pyx_v_cysrc;
  PyObject *__pyx_v_psrc = NULL;
  cudaArray_t __pyx_v_cydst;
  PyObject *__pyx_v_pdst = NULL;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaMemcpyKind __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyArrayToArray", 0);

  /* "cuda/bindings/runtime.pyx":23757
 *     """
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
  __pyx_t_1 = (__pyx_v_src == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23758
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:
 *         psrc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psrc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23757
 *     """
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23759
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23760
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)             # <<<<<<<<<<<<<<
 *     else:
 *         psrc = int(cudaArray_const_t(src))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_psrc = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":23759
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23762
 *         psrc = int(src)
 *     else:
 *         psrc = int(cudaArray_const_t(src))             # <<<<<<<<<<<<<<
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cdef cyruntime.cudaArray_t cydst
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23762, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_psrc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":23763
 *     else:
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23763, __pyx_L1_error)
  __pyx_v_cysrc = ((cudaArray_const_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":23765
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_dst == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23766
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
 *         pdst = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdst = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23765
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":23767
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23768
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)             # <<<<<<<<<<<<<<
 *     else:
 *         pdst = int(cudaArray_t(dst))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pdst = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":23767
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":23770
 *         pdst = int(dst)
 *     else:
 *         pdst = int(cudaArray_t(dst))             # <<<<<<<<<<<<<<
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  /*else*/ {
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_dst};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23770, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_2 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pdst = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":23771
 *     else:
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23771, __pyx_L1_error)
  __pyx_v_cydst = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":23772
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, count, cykind)
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23772, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_cykind = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":23773
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23774
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpyArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, count, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyArrayToArray(__pyx_v_cydst, __pyx_v_wOffsetDst, __pyx_v_hOffsetDst, __pyx_v_cysrc, __pyx_v_wOffsetSrc, __pyx_v_hOffsetSrc, __pyx_v_count, __pyx_v_cykind); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23774, __pyx_L6_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":23773
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L7;
        }
        __pyx_L6_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L7:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23775
 *     with nogil:
 *         err = cyruntime.cudaMemcpyArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, count, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 23775, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23710
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyArrayToArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psrc);
  __Pyx_XDECREF(__pyx_v_pdst);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23777
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_293cudaMemcpyToArrayAsync(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_7runtime_292cudaMemcpyToArrayAsync, "cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t count, kind: cudaMemcpyKind, stream)\n\nCopies data between host and device.\n\n[Deprecated]\n\nCopies `count` bytes from the memory area pointed to by `src` to the\nCUDA array `dst` starting at `hOffset` rows and `wOffset` bytes from\nthe upper left corner, where `kind` specifies the direction of the\ncopy, and must be one of :py:obj:`~.cudaMemcpyHostToHost`,\n:py:obj:`~.cudaMemcpyHostToDevice`, :py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing.\n\n:py:obj:`~.cudaMemcpyToArrayAsync()` is asynchronous with respect to\nthe host, so the call may return before the copy is complete. The copy\ncan optionally be associated to a stream by passing a non-zero `stream`\nargument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\nmay overlap with operations in other streams.\n\nParameters\n----------\ndst : :py:obj:`~.cudaArray_t`\n    Destination memory address\nwOffset : size_t\n    Destination starting X offset (columns in bytes)\nhOffset : size_t\n    Destination starting Y offset (rows)\nsrc : Any\n    Source memory address\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpyToArray`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpyFromArray`, :py:obj:`~.cudaMemcpy2DFromArray""`, :py:obj:`~.cudaMemcpyArrayToArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpyFromArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpyHtoAAsync`, :py:obj:`~.cuMemcpy2DAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_293cudaMemcpyToArrayAsync = {"cudaMemcpyToArrayAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_293cudaMemcpyToArrayAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_292cudaMemcpyToArrayAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_293cudaMemcpyToArrayAsync(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_dst = 0;
  size_t __pyx_v_wOffset;
  size_t __pyx_v_hOffset;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyToArrayAsync (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_dst_2,&__pyx_mstate_global->__pyx_n_u_wOffset,&__pyx_mstate_global->__pyx_n_u_hOffset,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 23777, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 23777, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23777, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23777, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23777, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23777, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23777, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23777, __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, "cudaMemcpyToArrayAsync", 0) < (0)) __PYX_ERR(0, 23777, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArrayAsync", 1, 7, 7, i); __PYX_ERR(0, 23777, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      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, 23777, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23777, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23777, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23777, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23777, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23777, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 23777, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_wOffset = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23778, __pyx_L3_error)
    __pyx_v_hOffset = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23778, __pyx_L3_error)
    __pyx_v_src = values[3];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23778, __pyx_L3_error)
    __pyx_v_kind = values[5];
    __pyx_v_stream = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyToArrayAsync", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 23777, __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.runtime.cudaMemcpyToArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 23778, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_292cudaMemcpyToArrayAsync(__pyx_self, __pyx_v_dst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_src, __pyx_v_count, __pyx_v_kind, __pyx_v_stream);

  /* 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_7runtime_292cudaMemcpyToArrayAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaArray_t __pyx_v_cydst;
  PyObject *__pyx_v_pdst = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemcpyKind __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyToArrayAsync", 0);

  /* "cuda/bindings/runtime.pyx":23828
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23829
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23828
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23830
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23831
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23831, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":23830
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23833
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_t cydst
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23833, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23833, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":23834
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23834, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23836
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
  __pyx_t_1 = (__pyx_v_dst == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23837
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:
 *         pdst = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdst = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23836
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_t cydst
 *     if dst is None:             # <<<<<<<<<<<<<<
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":23838
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_dst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23839
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):
 *         pdst = int(dst)             # <<<<<<<<<<<<<<
 *     else:
 *         pdst = int(cudaArray_t(dst))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_dst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pdst = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":23838
 *     if dst is None:
 *         pdst = 0
 *     elif isinstance(dst, (cudaArray_t,)):             # <<<<<<<<<<<<<<
 *         pdst = int(dst)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":23841
 *         pdst = int(dst)
 *     else:
 *         pdst = int(cudaArray_t(dst))             # <<<<<<<<<<<<<<
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23841, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23841, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pdst = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":23842
 *     else:
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdst); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23842, __pyx_L1_error)
  __pyx_v_cydst = ((cudaArray_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23843
 *         pdst = int(cudaArray_t(dst))
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_src};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23843, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23844
 *     cydst = <cyruntime.cudaArray_t><void_ptr>pdst
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23844, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23845
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, count, cykind, cystream)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23845, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":23846
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23847
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpyToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, count, cykind, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyToArrayAsync(__pyx_v_cydst, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_cysrc_ptr, __pyx_v_count, __pyx_v_cykind, __pyx_v_cystream); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23847, __pyx_L8_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":23846
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23848
 *     with nogil:
 *         err = cyruntime.cudaMemcpyToArrayAsync(cydst, wOffset, hOffset, cysrc_ptr, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 23848, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23777
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyToArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pdst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23850
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_295cudaMemcpyFromArrayAsync(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_7runtime_294cudaMemcpyFromArrayAsync, "cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t count, kind: cudaMemcpyKind, stream)\n\nCopies data between host and device.\n\n[Deprecated]\n\nCopies `count` bytes from the CUDA array `src` starting at `hOffset`\nrows and `wOffset` bytes from the upper left corner to the memory area\npointed to by `dst`, where `kind` specifies the direction of the copy,\nand must be one of :py:obj:`~.cudaMemcpyHostToHost`,\n:py:obj:`~.cudaMemcpyHostToDevice`, :py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing.\n\n:py:obj:`~.cudaMemcpyFromArrayAsync()` is asynchronous with respect to\nthe host, so the call may return before the copy is complete. The copy\ncan optionally be associated to a stream by passing a non-zero `stream`\nargument. If `kind` is :py:obj:`~.cudaMemcpyHostToDevice` or\n:py:obj:`~.cudaMemcpyDeviceToHost` and `stream` is non-zero, the copy\nmay overlap with operations in other streams.\n\nParameters\n----------\ndst : Any\n    Destination memory address\nsrc : :py:obj:`~.cudaArray_const_t`\n    Source memory address\nwOffset : size_t\n    Source starting X offset (columns in bytes)\nhOffset : size_t\n    Source starting Y offset (rows)\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream identifier\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidMemcpyDirection`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaMemcpy2D`, :py:obj:`~.cudaMemcpyToArray`, :py:obj:`~.cudaMemcpy2DToArray`, :py:obj:`~.cudaMemcpyFromArray`, :py:obj:`~.cudaMemcpy2DFromArray""`, :py:obj:`~.cudaMemcpyArrayToArray`, :py:obj:`~.cudaMemcpy2DArrayToArray`, :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`, :py:obj:`~.cudaMemcpyAsync`, :py:obj:`~.cudaMemcpy2DAsync`, :py:obj:`~.cudaMemcpyToArrayAsync`, :py:obj:`~.cudaMemcpy2DToArrayAsync`, :py:obj:`~.cudaMemcpy2DFromArrayAsync`, :py:obj:`~.cudaMemcpyToSymbolAsync`, :py:obj:`~.cudaMemcpyFromSymbolAsync`, :py:obj:`~.cuMemcpyAtoHAsync`, :py:obj:`~.cuMemcpy2DAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_295cudaMemcpyFromArrayAsync = {"cudaMemcpyFromArrayAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_295cudaMemcpyFromArrayAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_294cudaMemcpyFromArrayAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_295cudaMemcpyFromArrayAsync(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_dst = 0;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_wOffset;
  size_t __pyx_v_hOffset;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemcpyFromArrayAsync (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_dst_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_wOffset,&__pyx_mstate_global->__pyx_n_u_hOffset,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,&__pyx_mstate_global->__pyx_n_u_stream,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, 23850, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 23850, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23850, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23850, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23850, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23850, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23850, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23850, __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, "cudaMemcpyFromArrayAsync", 0) < (0)) __PYX_ERR(0, 23850, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArrayAsync", 1, 7, 7, i); __PYX_ERR(0, 23850, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      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, 23850, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23850, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 23850, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 23850, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 23850, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 23850, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 23850, __pyx_L3_error)
    }
    __pyx_v_dst = values[0];
    __pyx_v_src = values[1];
    __pyx_v_wOffset = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_wOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23851, __pyx_L3_error)
    __pyx_v_hOffset = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_hOffset == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23851, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23851, __pyx_L3_error)
    __pyx_v_kind = values[5];
    __pyx_v_stream = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemcpyFromArrayAsync", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 23850, __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.runtime.cudaMemcpyFromArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 23851, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_294cudaMemcpyFromArrayAsync(__pyx_self, __pyx_v_dst, __pyx_v_src, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_count, __pyx_v_kind, __pyx_v_stream);

  /* 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_7runtime_294cudaMemcpyFromArrayAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_wOffset, size_t __pyx_v_hOffset, size_t __pyx_v_count, PyObject *__pyx_v_kind, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaArray_const_t __pyx_v_cysrc;
  PyObject *__pyx_v_psrc = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemcpyKind __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemcpyFromArrayAsync", 0);

  /* "cuda/bindings/runtime.pyx":23901
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23902
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23901
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23903
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23904
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23904, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":23903
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23906
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_const_t cysrc
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23906, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23906, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":23907
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23907, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23909
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
  __pyx_t_1 = (__pyx_v_src == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23910
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:
 *         psrc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psrc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23909
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaArray_const_t cysrc
 *     if src is None:             # <<<<<<<<<<<<<<
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":23911
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_src, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23912
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):
 *         psrc = int(src)             # <<<<<<<<<<<<<<
 *     else:
 *         psrc = int(cudaArray_const_t(src))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_src); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23912, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_psrc = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":23911
 *     if src is None:
 *         psrc = 0
 *     elif isinstance(src, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         psrc = int(src)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":23914
 *         psrc = int(src)
 *     else:
 *         psrc = int(cudaArray_const_t(src))             # <<<<<<<<<<<<<<
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23914, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23914, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_psrc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":23915
 *     else:
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psrc); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23915, __pyx_L1_error)
  __pyx_v_cysrc = ((cudaArray_const_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23916
 *         psrc = int(cudaArray_const_t(src))
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_dst};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23916, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":23917
 *     cysrc = <cyruntime.cudaArray_const_t><void_ptr>psrc
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23917, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23918
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemcpyFromArrayAsync(cydst_ptr, cysrc, wOffset, hOffset, count, cykind, cystream)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 23918, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":23919
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyFromArrayAsync(cydst_ptr, cysrc, wOffset, hOffset, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23920
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaMemcpyFromArrayAsync(cydst_ptr, cysrc, wOffset, hOffset, count, cykind, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyFromArrayAsync(__pyx_v_cydst_ptr, __pyx_v_cysrc, __pyx_v_wOffset, __pyx_v_hOffset, __pyx_v_count, __pyx_v_cykind, __pyx_v_cystream); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23920, __pyx_L8_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":23919
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemcpyFromArrayAsync(cydst_ptr, cysrc, wOffset, hOffset, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23921
 *     with nogil:
 *         err = cyruntime.cudaMemcpyFromArrayAsync(cydst_ptr, cysrc, wOffset, hOffset, count, cykind, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 23921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 23921, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23850
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemcpyFromArrayAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_psrc);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23923
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocAsync(size_t size, hStream):
 *     """ Allocates memory with stream ordered semantics.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_297cudaMallocAsync(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_7runtime_296cudaMallocAsync, "cudaMallocAsync(size_t size, hStream)\n\nAllocates memory with stream ordered semantics.\n\nInserts an allocation operation into `hStream`. A pointer to the\nallocated memory is returned immediately in *dptr. The allocation must\nnot be accessed until the the allocation operation completes. The\nallocation comes from the memory pool associated with the stream's\ndevice.\n\nParameters\n----------\nsize : size_t\n    Number of bytes to allocate\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream establishing the stream ordering contract and the memory\n    pool to allocate from\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorOutOfMemory`,\ndevPtr : Any\n    Returned device pointer\n\nSee Also\n--------\n:py:obj:`~.cuMemAllocAsync`, cudaMallocAsync (C++ API), :py:obj:`~.cudaMallocFromPoolAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceSetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolSetAccess`, :py:obj:`~.cudaMemPoolSetAttribute`, :py:obj:`~.cudaMemPoolGetAttribute`\n\nNotes\n-----\nThe default memory pool of a device contains device memory from that device.\n\nBasic stream ordering allows future work submitted into the same stream to use the allocation. Stream query, stream synchronize, and CUDA events can be used to guarantee that the allocation operation completes before work submitted in a separate stream runs.\n\nDuring stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool's properties are used to set the node's creation parameters.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_297cudaMallocAsync = {"cudaMallocAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_297cudaMallocAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_296cudaMallocAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_297cudaMallocAsync(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
) {
  size_t __pyx_v_size;
  PyObject *__pyx_v_hStream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMallocAsync (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_size_2,&__pyx_mstate_global->__pyx_n_u_hStream,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, 23923, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23923, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23923, __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, "cudaMallocAsync", 0) < (0)) __PYX_ERR(0, 23923, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMallocAsync", 1, 2, 2, i); __PYX_ERR(0, 23923, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 23923, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23923, __pyx_L3_error)
    }
    __pyx_v_size = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 23924, __pyx_L3_error)
    __pyx_v_hStream = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMallocAsync", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 23923, __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.runtime.cudaMallocAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_296cudaMallocAsync(__pyx_self, __pyx_v_size, __pyx_v_hStream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_296cudaMallocAsync(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, PyObject *__pyx_v_hStream) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_devPtr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMallocAsync", 0);

  /* "cuda/bindings/runtime.pyx":23961
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23962
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":23961
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23963
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23964
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23964, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":23963
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":23966
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef void_ptr devPtr = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23966, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":23967
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cdef void_ptr devPtr = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 23967, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":23968
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef void_ptr devPtr = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMallocAsync(<void**>&devPtr, size, cyhStream)
*/
  __pyx_v_devPtr = 0;

  /* "cuda/bindings/runtime.pyx":23969
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef void_ptr devPtr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocAsync(<void**>&devPtr, size, cyhStream)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":23970
 *     cdef void_ptr devPtr = 0
 *     with nogil:
 *         err = cyruntime.cudaMallocAsync(<void**>&devPtr, size, cyhStream)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMallocAsync(((void **)(&__pyx_v_devPtr)), __pyx_v_size, __pyx_v_cyhStream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 23970, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":23969
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef void_ptr devPtr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocAsync(<void**>&devPtr, size, cyhStream)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":23971
 *     with nogil:
 *         err = cyruntime.cudaMallocAsync(<void**>&devPtr, size, cyhStream)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":23972
 *         err = cyruntime.cudaMallocAsync(<void**>&devPtr, size, cyhStream)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], devPtr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 23972, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 23972, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":23971
 *     with nogil:
 *         err = cyruntime.cudaMallocAsync(<void**>&devPtr, size, cyhStream)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)
*/
  }

  /* "cuda/bindings/runtime.pyx":23973
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], devPtr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 23973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 23973, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 23973, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23923
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocAsync(size_t size, hStream):
 *     """ Allocates memory with stream ordered semantics.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMallocAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":23975
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeAsync(devPtr, hStream):
 *     """ Frees memory with stream ordered semantics.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_299cudaFreeAsync(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_7runtime_298cudaFreeAsync, "cudaFreeAsync(devPtr, hStream)\n\nFrees memory with stream ordered semantics.\n\nInserts a free operation into `hStream`. The allocation must not be\naccessed after stream execution reaches the free. After this API\nreturns, accessing the memory from any subsequent work launched on the\nGPU or querying its pointer attributes results in undefined behavior.\n\nParameters\n----------\ndptr : Any\n    memory to free\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream establishing the stream ordering promise\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\n\nSee Also\n--------\n:py:obj:`~.cuMemFreeAsync`, :py:obj:`~.cudaMallocAsync`\n\nNotes\n-----\nDuring stream capture, this function results in the creation of a free node and must therefore be passed the address of a graph allocation.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_299cudaFreeAsync = {"cudaFreeAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_299cudaFreeAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_298cudaFreeAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_299cudaFreeAsync(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_devPtr = 0;
  PyObject *__pyx_v_hStream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaFreeAsync (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_devPtr_2,&__pyx_mstate_global->__pyx_n_u_hStream,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, 23975, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23975, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 23975, __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, "cudaFreeAsync", 0) < (0)) __PYX_ERR(0, 23975, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFreeAsync", 1, 2, 2, i); __PYX_ERR(0, 23975, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 23975, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 23975, __pyx_L3_error)
    }
    __pyx_v_devPtr = values[0];
    __pyx_v_hStream = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFreeAsync", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 23975, __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.runtime.cudaFreeAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_298cudaFreeAsync(__pyx_self, __pyx_v_devPtr, __pyx_v_hStream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_298cudaFreeAsync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_devPtr, PyObject *__pyx_v_hStream) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydevPtr = NULL;
  void *__pyx_v_cydevPtr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaFreeAsync", 0);

  /* "cuda/bindings/runtime.pyx":24005
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24006
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24005
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24007
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24008
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24007
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24010
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24010, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24011
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24011, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24012
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)             # <<<<<<<<<<<<<<
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_devPtr};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24012, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydevPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24013
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaFreeAsync(cydevPtr_ptr, cyhStream)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydevPtr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24013, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24013, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydevPtr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24014
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFreeAsync(cydevPtr_ptr, cyhStream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24015
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:
 *         err = cyruntime.cudaFreeAsync(cydevPtr_ptr, cyhStream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaFreeAsync(__pyx_v_cydevPtr_ptr, __pyx_v_cyhStream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24015, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":24014
 *     cydevPtr = _HelperInputVoidPtr(devPtr)
 *     cdef void* cydevPtr_ptr = <void*><void_ptr>cydevPtr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaFreeAsync(cydevPtr_ptr, cyhStream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24016
 *     with nogil:
 *         err = cyruntime.cudaFreeAsync(cydevPtr_ptr, cyhStream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 24016, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":23975
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeAsync(devPtr, hStream):
 *     """ Frees memory with stream ordered semantics.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaFreeAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydevPtr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24018
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep):
 *     """ Tries to release memory back to the OS.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_301cudaMemPoolTrimTo(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_7runtime_300cudaMemPoolTrimTo, "cudaMemPoolTrimTo(memPool, size_t minBytesToKeep)\n\nTries to release memory back to the OS.\n\nReleases memory back to the OS until the pool contains fewer than\nminBytesToKeep reserved bytes, or there is no more memory that the\nallocator can safely release. The allocator cannot release OS\nallocations that back outstanding asynchronous allocations. The OS\nallocations may happen at different granularity from the user\nallocations.\n\nParameters\n----------\npool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    The memory pool to trim\nminBytesToKeep : size_t\n    If the pool has less than minBytesToKeep reserved, the TrimTo\n    operation is a no-op. Otherwise the pool will be guaranteed to have\n    at least minBytesToKeep bytes reserved after the operation.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolTrimTo`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolCreate`\n\nNotes\n-----\n: Allocations that have not been freed count as outstanding.\n\n: Allocations that have been asynchronously freed but whose completion has not been observed on the host (eg. by a synchronize) can count as outstanding.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_301cudaMemPoolTrimTo = {"cudaMemPoolTrimTo", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_301cudaMemPoolTrimTo, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_300cudaMemPoolTrimTo};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_301cudaMemPoolTrimTo(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_memPool = 0;
  size_t __pyx_v_minBytesToKeep;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPoolTrimTo (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_memPool,&__pyx_mstate_global->__pyx_n_u_minBytesToKeep,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, 24018, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24018, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24018, __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, "cudaMemPoolTrimTo", 0) < (0)) __PYX_ERR(0, 24018, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolTrimTo", 1, 2, 2, i); __PYX_ERR(0, 24018, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 24018, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24018, __pyx_L3_error)
    }
    __pyx_v_memPool = values[0];
    __pyx_v_minBytesToKeep = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_minBytesToKeep == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24019, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolTrimTo", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24018, __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.runtime.cudaMemPoolTrimTo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_300cudaMemPoolTrimTo(__pyx_self, __pyx_v_memPool, __pyx_v_minBytesToKeep);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_300cudaMemPoolTrimTo(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, size_t __pyx_v_minBytesToKeep) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolTrimTo", 0);

  /* "cuda/bindings/runtime.pyx":24054
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24055
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24054
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24056
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24057
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24057, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24056
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24059
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24059, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24060
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolTrimTo(cymemPool, minBytesToKeep)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24060, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24061
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolTrimTo(cymemPool, minBytesToKeep)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24062
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:
 *         err = cyruntime.cudaMemPoolTrimTo(cymemPool, minBytesToKeep)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolTrimTo(__pyx_v_cymemPool, __pyx_v_minBytesToKeep); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24062, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":24061
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolTrimTo(cymemPool, minBytesToKeep)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24063
 *     with nogil:
 *         err = cyruntime.cudaMemPoolTrimTo(cymemPool, minBytesToKeep)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 24063, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24018
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep):
 *     """ Tries to release memory back to the OS.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolTrimTo", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24065
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value):
 *     """ Sets attributes of a memory pool.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_303cudaMemPoolSetAttribute(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_7runtime_302cudaMemPoolSetAttribute, "cudaMemPoolSetAttribute(memPool, attr: cudaMemPoolAttr, value)\n\nSets attributes of a memory pool.\n\nSupported attributes are:\n\n- :py:obj:`~.cudaMemPoolAttrReleaseThreshold`: (value type =\n  cuuint64_t) Amount of reserved memory in bytes to hold onto before\n  trying to release memory back to the OS. When more than the release\n  threshold bytes of memory are held by the memory pool, the allocator\n  will try to release memory back to the OS on the next call to stream,\n  event or context synchronize. (default 0)\n\n- :py:obj:`~.cudaMemPoolReuseFollowEventDependencies`: (value type =\n  int) Allow :py:obj:`~.cudaMallocAsync` to use memory asynchronously\n  freed in another stream as long as a stream ordering dependency of\n  the allocating stream on the free action exists. Cuda events and null\n  stream interactions can create the required stream ordered\n  dependencies. (default enabled)\n\n- :py:obj:`~.cudaMemPoolReuseAllowOpportunistic`: (value type = int)\n  Allow reuse of already completed frees when there is no dependency\n  between the free and allocation. (default enabled)\n\n- :py:obj:`~.cudaMemPoolReuseAllowInternalDependencies`: (value type =\n  int) Allow :py:obj:`~.cudaMallocAsync` to insert new stream\n  dependencies in order to establish the stream ordering required to\n  reuse a piece of memory released by :py:obj:`~.cudaFreeAsync`\n  (default enabled).\n\n- :py:obj:`~.cudaMemPoolAttrReservedMemHigh`: (value type = cuuint64_t)\n  Reset the high watermark that tracks the amount of backing memory\n  that was allocated for the memory pool. It is illegal to set this\n  attribute to a non-zero value.\n\n- :py:obj:`~.cudaMemPoolAttrUsedMemHigh`: (value type = cuuint64_t)\n  Reset the high watermark that tracks the amount of used memory that\n  was allocated for the memory pool. It is illegal to set this\n  attribute to a non-zero value.\n\nParameters\n----------\npool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    The memory pool to modi""fy\nattr : :py:obj:`~.cudaMemPoolAttr`\n    The attribute to modify\nvalue : Any\n    Pointer to the value to assign\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolSetAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_303cudaMemPoolSetAttribute = {"cudaMemPoolSetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_303cudaMemPoolSetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_302cudaMemPoolSetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_303cudaMemPoolSetAttribute(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_memPool = 0;
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPoolSetAttribute (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_memPool,&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_value,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, 24065, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24065, __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, "cudaMemPoolSetAttribute", 0) < (0)) __PYX_ERR(0, 24065, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAttribute", 1, 3, 3, i); __PYX_ERR(0, 24065, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 24065, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24065, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24065, __pyx_L3_error)
    }
    __pyx_v_memPool = values[0];
    __pyx_v_attr = values[1];
    __pyx_v_value = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 24065, __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.runtime.cudaMemPoolSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 24066, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_302cudaMemPoolSetAttribute(__pyx_self, __pyx_v_memPool, __pyx_v_attr, __pyx_v_value);

  /* 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_7runtime_302cudaMemPoolSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_attr, PyObject *__pyx_v_value) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  enum cudaMemPoolAttr __pyx_v_cyattr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_cyvalue = 0;
  void *__pyx_v_cyvalue_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemPoolAttr __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolSetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":24124
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24125
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24124
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24126
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24127
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24126
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24129
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24129, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24129, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24130
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, value, is_getter=False)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24130, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24131
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value             # <<<<<<<<<<<<<<
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, value, is_getter=False)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaMemPoolAttr)__Pyx_PyLong_As_enum__cudaMemPoolAttr(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24131, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyattr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":24132
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, value, is_getter=False)             # <<<<<<<<<<<<<<
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, __pyx_v_attr, __pyx_v_value};
    __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24132, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_is_getter, Py_False, __pyx_t_8, __pyx_callargs+3, 0) < (0)) __PYX_ERR(0, 24132, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24132, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cyvalue = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24133
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, value, is_getter=False)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolSetAttribute(cymemPool, cyattr, cyvalue_ptr)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyvalue), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24133, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyvalue_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24134
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, value, is_getter=False)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolSetAttribute(cymemPool, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24135
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemPoolSetAttribute(cymemPool, cyattr, cyvalue_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolSetAttribute(__pyx_v_cymemPool, __pyx_v_cyattr, __pyx_v_cyvalue_ptr); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24135, __pyx_L7_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":24134
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, value, is_getter=False)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolSetAttribute(cymemPool, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24136
 *     with nogil:
 *         err = cyruntime.cudaMemPoolSetAttribute(cymemPool, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 24136, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24065
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value):
 *     """ Sets attributes of a memory pool.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyvalue);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24138
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr):
 *     """ Gets attributes of a memory pool.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_305cudaMemPoolGetAttribute(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_7runtime_304cudaMemPoolGetAttribute, "cudaMemPoolGetAttribute(memPool, attr: cudaMemPoolAttr)\n\nGets attributes of a memory pool.\n\nSupported attributes are:\n\n- :py:obj:`~.cudaMemPoolAttrReleaseThreshold`: (value type =\n  cuuint64_t) Amount of reserved memory in bytes to hold onto before\n  trying to release memory back to the OS. When more than the release\n  threshold bytes of memory are held by the memory pool, the allocator\n  will try to release memory back to the OS on the next call to stream,\n  event or context synchronize. (default 0)\n\n- :py:obj:`~.cudaMemPoolReuseFollowEventDependencies`: (value type =\n  int) Allow :py:obj:`~.cudaMallocAsync` to use memory asynchronously\n  freed in another stream as long as a stream ordering dependency of\n  the allocating stream on the free action exists. Cuda events and null\n  stream interactions can create the required stream ordered\n  dependencies. (default enabled)\n\n- :py:obj:`~.cudaMemPoolReuseAllowOpportunistic`: (value type = int)\n  Allow reuse of already completed frees when there is no dependency\n  between the free and allocation. (default enabled)\n\n- :py:obj:`~.cudaMemPoolReuseAllowInternalDependencies`: (value type =\n  int) Allow :py:obj:`~.cudaMallocAsync` to insert new stream\n  dependencies in order to establish the stream ordering required to\n  reuse a piece of memory released by :py:obj:`~.cudaFreeAsync`\n  (default enabled).\n\n- :py:obj:`~.cudaMemPoolAttrReservedMemCurrent`: (value type =\n  cuuint64_t) Amount of backing memory currently allocated for the\n  mempool.\n\n- :py:obj:`~.cudaMemPoolAttrReservedMemHigh`: (value type = cuuint64_t)\n  High watermark of backing memory allocated for the mempool since the\n  last time it was reset.\n\n- :py:obj:`~.cudaMemPoolAttrUsedMemCurrent`: (value type = cuuint64_t)\n  Amount of memory from the pool that is currently in use by the\n  application.\n\n- :py:obj:`~.cudaMemPoolAttrUsedMemHigh`: (value type = cuuint64_t)\n  High watermark of the amount of memory from the pool that wa""s in use\n  by the application since the last time it was reset.\n\nParameters\n----------\npool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    The memory pool to get attributes of\nattr : :py:obj:`~.cudaMemPoolAttr`\n    The attribute to get\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nvalue : Any\n    Retrieved value\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolGetAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_305cudaMemPoolGetAttribute = {"cudaMemPoolGetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_305cudaMemPoolGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_304cudaMemPoolGetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_305cudaMemPoolGetAttribute(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_memPool = 0;
  PyObject *__pyx_v_attr = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPoolGetAttribute (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_memPool,&__pyx_mstate_global->__pyx_n_u_attr,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, 24138, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24138, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24138, __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, "cudaMemPoolGetAttribute", 0) < (0)) __PYX_ERR(0, 24138, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolGetAttribute", 1, 2, 2, i); __PYX_ERR(0, 24138, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 24138, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24138, __pyx_L3_error)
    }
    __pyx_v_memPool = values[0];
    __pyx_v_attr = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolGetAttribute", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24138, __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.runtime.cudaMemPoolGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 24139, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_304cudaMemPoolGetAttribute(__pyx_self, __pyx_v_memPool, __pyx_v_attr);

  /* 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_7runtime_304cudaMemPoolGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_attr) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  enum cudaMemPoolAttr __pyx_v_cyattr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *__pyx_v_cyvalue = 0;
  void *__pyx_v_cyvalue_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemPoolAttr __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolGetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":24203
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24204
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24203
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24205
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24206
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24206, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24205
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24208
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24208, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24209
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, 0, is_getter=True)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24209, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24210
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value             # <<<<<<<<<<<<<<
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, 0, is_getter=True)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaMemPoolAttr)__Pyx_PyLong_As_enum__cudaMemPoolAttr(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24210, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyattr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":24211
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, 0, is_getter=True)             # <<<<<<<<<<<<<<
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, __pyx_v_attr, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_is_getter, Py_True, __pyx_t_8, __pyx_callargs+3, 0) < (0)) __PYX_ERR(0, 24211, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24211, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cyvalue = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24212
 *     cdef cyruntime.cudaMemPoolAttr cyattr = attr.value
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, 0, is_getter=True)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolGetAttribute(cymemPool, cyattr, cyvalue_ptr)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyvalue), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24212, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyvalue_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24213
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, 0, is_getter=True)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolGetAttribute(cymemPool, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24214
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemPoolGetAttribute(cymemPool, cyattr, cyvalue_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolGetAttribute(__pyx_v_cymemPool, __pyx_v_cyattr, __pyx_v_cyvalue_ptr); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24214, __pyx_L7_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":24213
 *     cdef _HelperCUmemPool_attribute cyvalue = _HelperCUmemPool_attribute(attr, 0, is_getter=True)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolGetAttribute(cymemPool, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24215
 *     with nogil:
 *         err = cyruntime.cudaMemPoolGetAttribute(cymemPool, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24216
 *         err = cyruntime.cudaMemPoolGetAttribute(cymemPool, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 24216, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, Py_None) != (0)) __PYX_ERR(0, 24216, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24215
 *     with nogil:
 *         err = cyruntime.cudaMemPoolGetAttribute(cymemPool, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
*/
  }

  /* "cuda/bindings/runtime.pyx":24217
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_8 = ((PyObject *)__pyx_v_cyvalue);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_pyObj, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 24217, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_3) != (0)) __PYX_ERR(0, 24217, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24138
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr):
 *     """ Gets attributes of a memory pool.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyvalue);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24219
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]], size_t count):
 *     """ Controls visibility of pools between devices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_307cudaMemPoolSetAccess(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_7runtime_306cudaMemPoolSetAccess, "cudaMemPoolSetAccess(memPool, descList: Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]], size_t count)\n\nControls visibility of pools between devices.\n\nParameters\n----------\npool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    The pool being modified\nmap : list[:py:obj:`~.cudaMemAccessDesc`]\n    Array of access descriptors. Each descriptor instructs the access\n    to enable for a single gpu\ncount : size_t\n    Number of descriptors in the map array.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolSetAccess`, :py:obj:`~.cudaMemPoolGetAccess`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_307cudaMemPoolSetAccess = {"cudaMemPoolSetAccess", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_307cudaMemPoolSetAccess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_306cudaMemPoolSetAccess};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_307cudaMemPoolSetAccess(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_memPool = 0;
  PyObject *__pyx_v_descList = 0;
  size_t __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPoolSetAccess (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_memPool,&__pyx_mstate_global->__pyx_n_u_descList,&__pyx_mstate_global->__pyx_n_u_count,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, 24219, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24219, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24219, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24219, __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, "cudaMemPoolSetAccess", 0) < (0)) __PYX_ERR(0, 24219, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAccess", 1, 3, 3, i); __PYX_ERR(0, 24219, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 24219, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24219, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24219, __pyx_L3_error)
    }
    __pyx_v_memPool = values[0];
    __pyx_v_descList = values[1];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24220, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolSetAccess", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 24219, __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.runtime.cudaMemPoolSetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_306cudaMemPoolSetAccess(__pyx_self, __pyx_v_memPool, __pyx_v_descList, __pyx_v_count);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemPoolSetAccess_2generator111(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":24243
 *     """
 *     descList = [] if descList is None else descList
 *     if not all(isinstance(_x, (cudaMemAccessDesc,)) for _x in descList):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]")
 *     cdef cyruntime.cudaMemPool_t cymemPool
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaMemPoolSetAccess_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 24243, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_20cudaMemPoolSetAccess_2generator111, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[111]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaMemPoolSetAccess_locals_gene, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 24243, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolSetAccess.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemPoolSetAccess_2generator111(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 24243, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 24243, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24243, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24243, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 24243, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24243, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 24243, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24219
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]], size_t count):
 *     """ Controls visibility of pools between devices.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_306cudaMemPoolSetAccess(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_descList, size_t __pyx_v_count) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  struct cudaMemAccessDesc *__pyx_v_cydescList;
  Py_ssize_t __pyx_v_idx;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaMemPoolSetAccess_2generator111 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaMemAccessDesc *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolSetAccess", 0);
  __Pyx_INCREF(__pyx_v_descList);

  /* "cuda/bindings/runtime.pyx":24242
 *     :py:obj:`~.cuMemPoolSetAccess`, :py:obj:`~.cudaMemPoolGetAccess`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`
 *     """
 *     descList = [] if descList is None else descList             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaMemAccessDesc,)) for _x in descList):
 *         raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]")
*/
  __pyx_t_2 = (__pyx_v_descList == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_descList);
    __pyx_t_1 = __pyx_v_descList;
  }
  __Pyx_DECREF_SET(__pyx_v_descList, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24243
 *     """
 *     descList = [] if descList is None else descList
 *     if not all(isinstance(_x, (cudaMemAccessDesc,)) for _x in descList):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]")
 *     cdef cyruntime.cudaMemPool_t cymemPool
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_20cudaMemPoolSetAccess_genexpr(NULL, __pyx_v_descList); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 24243, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":24244
 *     descList = [] if descList is None else descList
 *     if not all(isinstance(_x, (cudaMemAccessDesc,)) for _x in descList):
 *         raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_descList_is_not_instanc};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24244, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 24244, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":24243
 *     """
 *     descList = [] if descList is None else descList
 *     if not all(isinstance(_x, (cudaMemAccessDesc,)) for _x in descList):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]")
 *     cdef cyruntime.cudaMemPool_t cymemPool
*/
  }

  /* "cuda/bindings/runtime.pyx":24246
 *         raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]")
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_4 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":24247
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24246
 *         raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]")
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":24248
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":24249
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24248
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":24251
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemAccessDesc* cydescList = NULL
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24251, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":24252
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemAccessDesc* cydescList = NULL
 *     if len(descList) > 1:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24252, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24253
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemAccessDesc* cydescList = NULL             # <<<<<<<<<<<<<<
 *     if len(descList) > 1:
 *         cydescList = <cyruntime.cudaMemAccessDesc*> calloc(len(descList), sizeof(cyruntime.cudaMemAccessDesc))
*/
  __pyx_v_cydescList = NULL;

  /* "cuda/bindings/runtime.pyx":24254
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemAccessDesc* cydescList = NULL
 *     if len(descList) > 1:             # <<<<<<<<<<<<<<
 *         cydescList = <cyruntime.cudaMemAccessDesc*> calloc(len(descList), sizeof(cyruntime.cudaMemAccessDesc))
 *         if cydescList is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24254, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":24255
 *     cdef cyruntime.cudaMemAccessDesc* cydescList = NULL
 *     if len(descList) > 1:
 *         cydescList = <cyruntime.cudaMemAccessDesc*> calloc(len(descList), sizeof(cyruntime.cudaMemAccessDesc))             # <<<<<<<<<<<<<<
 *         if cydescList is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24255, __pyx_L1_error)
    __pyx_v_cydescList = ((struct cudaMemAccessDesc *)calloc(__pyx_t_7, (sizeof(struct cudaMemAccessDesc))));

    /* "cuda/bindings/runtime.pyx":24256
 *     if len(descList) > 1:
 *         cydescList = <cyruntime.cudaMemAccessDesc*> calloc(len(descList), sizeof(cyruntime.cudaMemAccessDesc))
 *         if cydescList is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *         for idx in range(len(descList)):
*/
    __pyx_t_4 = (__pyx_v_cydescList == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":24257
 *         cydescList = <cyruntime.cudaMemAccessDesc*> calloc(len(descList), sizeof(cyruntime.cudaMemAccessDesc))
 *         if cydescList is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(descList)):
 *             string.memcpy(&cydescList[idx], (<cudaMemAccessDesc>descList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24257, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemAccessDesc))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 24257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24257, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 24257, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":24256
 *     if len(descList) > 1:
 *         cydescList = <cyruntime.cudaMemAccessDesc*> calloc(len(descList), sizeof(cyruntime.cudaMemAccessDesc))
 *         if cydescList is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *         for idx in range(len(descList)):
*/
    }

    /* "cuda/bindings/runtime.pyx":24258
 *         if cydescList is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *         for idx in range(len(descList)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cydescList[idx], (<cudaMemAccessDesc>descList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 *     elif len(descList) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24258, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":24259
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
 *         for idx in range(len(descList)):
 *             string.memcpy(&cydescList[idx], (<cudaMemAccessDesc>descList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))             # <<<<<<<<<<<<<<
 *     elif len(descList) == 1:
 *         cydescList = (<cudaMemAccessDesc>descList[0])._pvt_ptr
*/
      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_descList, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24259, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      (void)(memcpy((&(__pyx_v_cydescList[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_t_1)->_pvt_ptr, (sizeof(struct cudaMemAccessDesc))));
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "cuda/bindings/runtime.pyx":24254
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemAccessDesc* cydescList = NULL
 *     if len(descList) > 1:             # <<<<<<<<<<<<<<
 *         cydescList = <cyruntime.cudaMemAccessDesc*> calloc(len(descList), sizeof(cyruntime.cudaMemAccessDesc))
 *         if cydescList is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":24260
 *         for idx in range(len(descList)):
 *             string.memcpy(&cydescList[idx], (<cudaMemAccessDesc>descList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 *     elif len(descList) == 1:             # <<<<<<<<<<<<<<
 *         cydescList = (<cudaMemAccessDesc>descList[0])._pvt_ptr
 *     if count > <size_t>len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24260, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":24261
 *             string.memcpy(&cydescList[idx], (<cudaMemAccessDesc>descList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 *     elif len(descList) == 1:
 *         cydescList = (<cudaMemAccessDesc>descList[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if count > <size_t>len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count))
 *     with nogil:
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_descList, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)__pyx_t_1)->_pvt_ptr;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_cydescList = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":24260
 *         for idx in range(len(descList)):
 *             string.memcpy(&cydescList[idx], (<cudaMemAccessDesc>descList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
 *     elif len(descList) == 1:             # <<<<<<<<<<<<<<
 *         cydescList = (<cudaMemAccessDesc>descList[0])._pvt_ptr
 *     if count > <size_t>len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":24262
 *     elif len(descList) == 1:
 *         cydescList = (<cudaMemAccessDesc>descList[0])._pvt_ptr
 *     if count > <size_t>len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolSetAccess(cymemPool, cydescList, count)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24262, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_count > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24262, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 24262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 24262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_count); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24262, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 24262, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":24263
 *         cydescList = (<cudaMemAccessDesc>descList[0])._pvt_ptr
 *     if count > <size_t>len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolSetAccess(cymemPool, cydescList, count)
 *     if len(descList) > 1 and cydescList is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24264
 *     if count > <size_t>len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count))
 *     with nogil:
 *         err = cyruntime.cudaMemPoolSetAccess(cymemPool, cydescList, count)             # <<<<<<<<<<<<<<
 *     if len(descList) > 1 and cydescList is not NULL:
 *         free(cydescList)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolSetAccess(__pyx_v_cymemPool, __pyx_v_cydescList, __pyx_v_count); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24264, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":24263
 *         cydescList = (<cudaMemAccessDesc>descList[0])._pvt_ptr
 *     if count > <size_t>len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolSetAccess(cymemPool, cydescList, count)
 *     if len(descList) > 1 and cydescList is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24265
 *     with nogil:
 *         err = cyruntime.cudaMemPoolSetAccess(cymemPool, cydescList, count)
 *     if len(descList) > 1 and cydescList is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydescList)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_descList); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 24265, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cydescList != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":24266
 *         err = cyruntime.cudaMemPoolSetAccess(cymemPool, cydescList, count)
 *     if len(descList) > 1 and cydescList is not NULL:
 *         free(cydescList)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cydescList);

    /* "cuda/bindings/runtime.pyx":24265
 *     with nogil:
 *         err = cyruntime.cudaMemPoolSetAccess(cymemPool, cydescList, count)
 *     if len(descList) > 1 and cydescList is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydescList)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":24267
 *     if len(descList) > 1 and cydescList is not NULL:
 *         free(cydescList)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 24267, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24219
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]], size_t count):
 *     """ Controls visibility of pools between devices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolSetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_20cudaMemPoolSetAccess_2generator111);
  __Pyx_XDECREF(__pyx_v_descList);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24269
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolGetAccess(memPool, location : Optional[cudaMemLocation]):
 *     """ Returns the accessibility of a pool from a device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_309cudaMemPoolGetAccess(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_7runtime_308cudaMemPoolGetAccess, "cudaMemPoolGetAccess(memPool, cudaMemLocation location: Optional[cudaMemLocation])\n\nReturns the accessibility of a pool from a device.\n\nReturns the accessibility of the pool's memory from the specified\nlocation.\n\nParameters\n----------\nmemPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    the pool being queried\nlocation : :py:obj:`~.cudaMemLocation`\n    the location accessing the pool\n\nReturns\n-------\ncudaError_t\n\nflags : :py:obj:`~.cudaMemAccessFlags`\n    the accessibility of the pool from the specified location\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolGetAccess`, :py:obj:`~.cudaMemPoolSetAccess`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_309cudaMemPoolGetAccess = {"cudaMemPoolGetAccess", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_309cudaMemPoolGetAccess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_308cudaMemPoolGetAccess};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_309cudaMemPoolGetAccess(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_memPool = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPoolGetAccess (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_memPool,&__pyx_mstate_global->__pyx_n_u_location_2,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, 24269, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24269, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24269, __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, "cudaMemPoolGetAccess", 0) < (0)) __PYX_ERR(0, 24269, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolGetAccess", 1, 2, 2, i); __PYX_ERR(0, 24269, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 24269, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24269, __pyx_L3_error)
    }
    __pyx_v_memPool = values[0];
    __pyx_v_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolGetAccess", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24269, __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.runtime.cudaMemPoolGetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 1, "location", 0))) __PYX_ERR(0, 24270, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_308cudaMemPoolGetAccess(__pyx_self, __pyx_v_memPool, __pyx_v_location);

  /* 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_7runtime_308cudaMemPoolGetAccess(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  enum cudaMemAccessFlags __pyx_v_flags;
  struct cudaMemLocation *__pyx_v_cylocation_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemLocation *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolGetAccess", 0);

  /* "cuda/bindings/runtime.pyx":24295
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24296
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24295
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24297
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24298
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24297
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24300
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemAccessFlags flags
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24300, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24301
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemAccessFlags flags
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24301, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24303
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemAccessFlags flags
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolGetAccess(&flags, cymemPool, cylocation_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_location) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_location->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cylocation_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":24304
 *     cdef cyruntime.cudaMemAccessFlags flags
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolGetAccess(&flags, cymemPool, cylocation_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24305
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMemPoolGetAccess(&flags, cymemPool, cylocation_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolGetAccess((&__pyx_v_flags), __pyx_v_cymemPool, __pyx_v_cylocation_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24305, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":24304
 *     cdef cyruntime.cudaMemAccessFlags flags
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolGetAccess(&flags, cymemPool, cylocation_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24306
 *     with nogil:
 *         err = cyruntime.cudaMemPoolGetAccess(&flags, cymemPool, cylocation_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaMemAccessFlags(flags))
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24307
 *         err = cyruntime.cudaMemPoolGetAccess(&flags, cymemPool, cylocation_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cudaMemAccessFlags(flags))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 24307, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 24307, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24306
 *     with nogil:
 *         err = cyruntime.cudaMemPoolGetAccess(&flags, cymemPool, cylocation_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaMemAccessFlags(flags))
*/
  }

  /* "cuda/bindings/runtime.pyx":24308
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaMemAccessFlags(flags))             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlags); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 24308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyLong_From_enum__cudaMemAccessFlags(__pyx_v_flags); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 24308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_10))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_10);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_11};
    __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __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_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 24308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 24308, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_9) != (0)) __PYX_ERR(0, 24308, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_10;
  __pyx_t_10 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24269
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolGetAccess(memPool, location : Optional[cudaMemLocation]):
 *     """ Returns the accessibility of a pool from a device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolGetAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24310
 *     return (_dict_cudaError_t[err], cudaMemAccessFlags(flags))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]):
 *     """ Creates a memory pool.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_311cudaMemPoolCreate(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_7runtime_310cudaMemPoolCreate, "cudaMemPoolCreate(cudaMemPoolProps poolProps: Optional[cudaMemPoolProps])\n\nCreates a memory pool.\n\nCreates a CUDA memory pool and returns the handle in `pool`. The\n`poolProps` determines the properties of the pool such as the backing\ndevice and IPC capabilities.\n\nTo create a memory pool for host memory not targeting a specific NUMA\nnode, applications must set set\n:py:obj:`~.cudaMemPoolProps`::cudaMemLocation::type to\n:py:obj:`~.cudaMemLocationTypeHost`.\n:py:obj:`~.cudaMemPoolProps`::cudaMemLocation::id is ignored for such\npools. Pools created with the type :py:obj:`~.cudaMemLocationTypeHost`\nare not IPC capable and :py:obj:`~.cudaMemPoolProps.handleTypes` must\nbe 0, any other values will result in\n:py:obj:`~.cudaErrorInvalidValue`. To create a memory pool targeting a\nspecific host NUMA node, applications must set\n:py:obj:`~.cudaMemPoolProps`::cudaMemLocation::type to\n:py:obj:`~.cudaMemLocationTypeHostNuma` and\n:py:obj:`~.cudaMemPoolProps`::cudaMemLocation::id must specify the NUMA\nID of the host memory node. Specifying\n:py:obj:`~.cudaMemLocationTypeHostNumaCurrent` as the\n:py:obj:`~.cudaMemPoolProps`::cudaMemLocation::type will result in\n:py:obj:`~.cudaErrorInvalidValue`. By default, the pool's memory will\nbe accessible from the device it is allocated on. In the case of pools\ncreated with :py:obj:`~.cudaMemLocationTypeHostNuma` or\n:py:obj:`~.cudaMemLocationTypeHost`, their default accessibility will\nbe from the host CPU. Applications can control the maximum size of the\npool by specifying a non-zero value for\n:py:obj:`~.cudaMemPoolProps.maxSize`. If set to 0, the maximum size of\nthe pool will default to a system dependent value.\n\nApplications that intend to use :py:obj:`~.CU_MEM_HANDLE_TYPE_FABRIC`\nbased memory sharing must ensure: (1) `nvidia-caps-imex-channels`\ncharacter device is created by the driver and is listed under\n/proc/devices (2) have at least one IMEX channel file accessible by the\nuser launching the application.\n""\nWhen exporter and importer CUDA processes have been granted access to\nthe same IMEX channel, they can securely share memory.\n\nThe IMEX channel security model works on a per user basis. Which means\nall processes under a user can share memory if the user has access to a\nvalid IMEX channel. When multi-user isolation is desired, a separate\nIMEX channel is required for each user.\n\nThese channel files exist in /dev/nvidia-caps-imex-channels/channel*\nand can be created using standard OS native calls like mknod on Linux.\nFor example: To create channel0 with the major number from\n/proc/devices users can execute the following command: `mknod\n/dev/nvidia-caps-imex-channels/channel0 c <major number> 0`\n\nTo create a managed memory pool, applications must set\n:py:obj:`~.cudaMemPoolProps`:cudaMemAllocationType to\n:py:obj:`~.cudaMemAllocationTypeManaged`.\n:py:obj:`~.cudaMemPoolProps`::cudaMemAllocationHandleType must also be\nset to :py:obj:`~.cudaMemHandleTypeNone` since IPC is not supported.\nFor managed memory pools, :py:obj:`~.cudaMemPoolProps`::cudaMemLocation\nwill be treated as the preferred location for all allocations created\nfrom the pool. An application can also set\n:py:obj:`~.cudaMemLocationTypeNone` to indicate no preferred location.\n:py:obj:`~.cudaMemPoolProps.maxSize` must be set to zero for managed\nmemory pools. :py:obj:`~.cudaMemPoolProps.usage` should be zero as\ndecompress for managed memory is not supported. For managed memory\npools, all devices on the system must have non-zero\n:py:obj:`~.concurrentManagedAccess`. If not, this call returns\n:py:obj:`~.cudaErrorNotSupported`\n\nParameters\n----------\npoolProps : :py:obj:`~.cudaMemPoolProps`\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\nmemPool : :py:obj:`~.cudaMemPool_t`\n    None\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolCreate`, :py:obj:`~.cudaDeviceSetMemPool`, :py:obj:`~.cudaMallocFromPo""olAsync`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`\n\nNotes\n-----\nSpecifying :py:obj:`~.cudaMemHandleTypeNone` creates a memory pool that will not support IPC.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_311cudaMemPoolCreate = {"cudaMemPoolCreate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_311cudaMemPoolCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_310cudaMemPoolCreate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_311cudaMemPoolCreate(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_poolProps = 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("cudaMemPoolCreate (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_poolProps_2,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, 24310, __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, 24310, __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, "cudaMemPoolCreate", 0) < (0)) __PYX_ERR(0, 24310, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolCreate", 1, 1, 1, i); __PYX_ERR(0, 24310, __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, 24310, __pyx_L3_error)
    }
    __pyx_v_poolProps = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolCreate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24310, __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.runtime.cudaMemPoolCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_poolProps), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps, 1, "poolProps", 0))) __PYX_ERR(0, 24311, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_310cudaMemPoolCreate(__pyx_self, __pyx_v_poolProps);

  /* 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_7runtime_310cudaMemPoolCreate(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *__pyx_v_poolProps) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_memPool = 0;
  struct cudaMemPoolProps *__pyx_v_cypoolProps_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaMemPoolProps *__pyx_t_4;
  int __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolCreate", 0);

  /* "cuda/bindings/runtime.pyx":24399
 *     Specifying :py:obj:`~.cudaMemHandleTypeNone` creates a memory pool that will not support IPC.
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemPoolProps* cypoolProps_ptr = poolProps._pvt_ptr if poolProps is not None else NULL
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24399, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_memPool = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24400
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cdef cyruntime.cudaMemPoolProps* cypoolProps_ptr = poolProps._pvt_ptr if poolProps is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolCreate(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cypoolProps_ptr)
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_poolProps) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_poolProps->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cypoolProps_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":24401
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cdef cyruntime.cudaMemPoolProps* cypoolProps_ptr = poolProps._pvt_ptr if poolProps is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolCreate(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cypoolProps_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24402
 *     cdef cyruntime.cudaMemPoolProps* cypoolProps_ptr = poolProps._pvt_ptr if poolProps is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMemPoolCreate(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cypoolProps_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolCreate(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._pvt_ptr), __pyx_v_cypoolProps_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24402, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":24401
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cdef cyruntime.cudaMemPoolProps* cypoolProps_ptr = poolProps._pvt_ptr if poolProps is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolCreate(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cypoolProps_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24403
 *     with nogil:
 *         err = cyruntime.cudaMemPoolCreate(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cypoolProps_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":24404
 *         err = cyruntime.cudaMemPoolCreate(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cypoolProps_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], memPool)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 24404, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 24404, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24403
 *     with nogil:
 *         err = cyruntime.cudaMemPoolCreate(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cypoolProps_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  }

  /* "cuda/bindings/runtime.pyx":24405
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 24405, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_memPool);
  __Pyx_GIVEREF((PyObject *)__pyx_v_memPool);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_memPool)) != (0)) __PYX_ERR(0, 24405, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24310
 *     return (_dict_cudaError_t[err], cudaMemAccessFlags(flags))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]):
 *     """ Creates a memory pool.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_memPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24407
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolDestroy(memPool):
 *     """ Destroys the specified memory pool.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_313cudaMemPoolDestroy(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_7runtime_312cudaMemPoolDestroy, "cudaMemPoolDestroy(memPool)\n\nDestroys the specified memory pool.\n\nIf any pointers obtained from this pool haven't been freed or the pool\nhas free operations that haven't completed when\n:py:obj:`~.cudaMemPoolDestroy` is invoked, the function will return\nimmediately and the resources associated with the pool will be released\nautomatically once there are no more outstanding allocations.\n\nDestroying the current mempool of a device sets the default mempool of\nthat device as the current mempool for that device.\n\nParameters\n----------\nmemPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\ncuMemPoolDestroy, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceSetMemPool`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaDeviceGetMemPool`, :py:obj:`~.cudaMemPoolCreate`\n\nNotes\n-----\nA device's default memory pool cannot be destroyed.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_313cudaMemPoolDestroy = {"cudaMemPoolDestroy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_313cudaMemPoolDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_312cudaMemPoolDestroy};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_313cudaMemPoolDestroy(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_memPool = 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("cudaMemPoolDestroy (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_memPool,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, 24407, __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, 24407, __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, "cudaMemPoolDestroy", 0) < (0)) __PYX_ERR(0, 24407, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolDestroy", 1, 1, 1, i); __PYX_ERR(0, 24407, __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, 24407, __pyx_L3_error)
    }
    __pyx_v_memPool = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24407, __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.runtime.cudaMemPoolDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_312cudaMemPoolDestroy(__pyx_self, __pyx_v_memPool);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_312cudaMemPoolDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolDestroy", 0);

  /* "cuda/bindings/runtime.pyx":24439
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24440
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24439
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24441
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24442
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24442, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24441
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24444
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24444, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24445
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolDestroy(cymemPool)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24445, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24446
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolDestroy(cymemPool)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24447
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:
 *         err = cyruntime.cudaMemPoolDestroy(cymemPool)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolDestroy(__pyx_v_cymemPool); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24447, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":24446
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolDestroy(cymemPool)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24448
 *     with nogil:
 *         err = cyruntime.cudaMemPoolDestroy(cymemPool)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 24448, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24407
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolDestroy(memPool):
 *     """ Destroys the specified memory pool.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24450
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetDefaultMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType):
 *     """ Returns the default memory pool for a given location and allocation type.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_315cudaMemGetDefaultMemPool(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_7runtime_314cudaMemGetDefaultMemPool, "cudaMemGetDefaultMemPool(cudaMemLocation location: Optional[cudaMemLocation], typename: cudaMemAllocationType)\n\nReturns the default memory pool for a given location and allocation type.\n\nThe memory location can be of one of\n:py:obj:`~.cudaMemLocationTypeDevice`,\n:py:obj:`~.cudaMemLocationTypeHost` or\n:py:obj:`~.cudaMemLocationTypeHostNuma`. The allocation type can be one\nof :py:obj:`~.cudaMemAllocationTypePinned` or\n:py:obj:`~.cudaMemAllocationTypeManaged`. When the allocation type is\n:py:obj:`~.cudaMemAllocationTypeManaged`, the location type can also be\n:py:obj:`~.cudaMemLocationTypeNone` to indicate no preferred location\nfor the managed memory pool. In all other cases, the call return\n:py:obj:`~.cudaErrorInvalidValue`\n\nParameters\n----------\nlocation : :py:obj:`~.cudaMemLocation`\n    None\ntypename : :py:obj:`~.cudaMemAllocationType`\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`,\nmemPool : :py:obj:`~.cudaMemPool_t`\n    None\n\nSee Also\n--------\n:py:obj:`~.cuMemAllocAsync`, :py:obj:`~.cuMemPoolTrimTo`, :py:obj:`~.cuMemPoolGetAttribute`, :py:obj:`~.cuMemPoolSetAttribute`, cuMemPoolSetAccess, :py:obj:`~.cuMemGetMemPool`, :py:obj:`~.cuMemPoolCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_315cudaMemGetDefaultMemPool = {"cudaMemGetDefaultMemPool", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_315cudaMemGetDefaultMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_314cudaMemGetDefaultMemPool};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_315cudaMemGetDefaultMemPool(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location = 0;
  PyObject *__pyx_v_typename = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemGetDefaultMemPool (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_location_2,&__pyx_mstate_global->__pyx_n_u_typename,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, 24450, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24450, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24450, __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, "cudaMemGetDefaultMemPool", 0) < (0)) __PYX_ERR(0, 24450, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemGetDefaultMemPool", 1, 2, 2, i); __PYX_ERR(0, 24450, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 24450, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24450, __pyx_L3_error)
    }
    __pyx_v_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)values[0]);
    __pyx_v_typename = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemGetDefaultMemPool", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24450, __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.runtime.cudaMemGetDefaultMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 1, "location", 0))) __PYX_ERR(0, 24451, __pyx_L1_error)
  if (unlikely(((PyObject *)__pyx_v_typename) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "typename"); __PYX_ERR(0, 24451, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_314cudaMemGetDefaultMemPool(__pyx_self, __pyx_v_location, __pyx_v_typename);

  /* 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_7runtime_314cudaMemGetDefaultMemPool(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location, PyObject *__pyx_v_typename) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_memPool = 0;
  struct cudaMemLocation *__pyx_v_cylocation_ptr;
  enum cudaMemAllocationType __pyx_v_cytypename;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaMemLocation *__pyx_t_4;
  int __pyx_t_5;
  enum cudaMemAllocationType __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemGetDefaultMemPool", 0);

  /* "cuda/bindings/runtime.pyx":24483
 *     :py:obj:`~.cuMemAllocAsync`, :py:obj:`~.cuMemPoolTrimTo`, :py:obj:`~.cuMemPoolGetAttribute`, :py:obj:`~.cuMemPoolSetAttribute`, cuMemPoolSetAccess, :py:obj:`~.cuMemGetMemPool`, :py:obj:`~.cuMemPoolCreate`
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24483, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_memPool = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24484
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_location) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_location->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cylocation_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":24485
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_typename, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = ((enum cudaMemAllocationType)__Pyx_PyLong_As_enum__cudaMemAllocationType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24485, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cytypename = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":24486
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24487
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:
 *         err = cyruntime.cudaMemGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetDefaultMemPool(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._pvt_ptr), __pyx_v_cylocation_ptr, __pyx_v_cytypename); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24487, __pyx_L4_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":24486
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24488
 *     with nogil:
 *         err = cyruntime.cudaMemGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":24489
 *         err = cyruntime.cudaMemGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], memPool)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 24489, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 24489, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24488
 *     with nogil:
 *         err = cyruntime.cudaMemGetDefaultMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  }

  /* "cuda/bindings/runtime.pyx":24490
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 24490, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_memPool);
  __Pyx_GIVEREF((PyObject *)__pyx_v_memPool);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_memPool)) != (0)) __PYX_ERR(0, 24490, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24450
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetDefaultMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType):
 *     """ Returns the default memory pool for a given location and allocation type.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemGetDefaultMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_memPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24492
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType):
 *     """ Gets the current memory pool for a given memory location and allocation type.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_317cudaMemGetMemPool(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_7runtime_316cudaMemGetMemPool, "cudaMemGetMemPool(cudaMemLocation location: Optional[cudaMemLocation], typename: cudaMemAllocationType)\n\nGets the current memory pool for a given memory location and allocation type.\n\nThe memory location can be of one of\n:py:obj:`~.cudaMemLocationTypeDevice`,\n:py:obj:`~.cudaMemLocationTypeHost` or\n:py:obj:`~.cudaMemLocationTypeHostNuma`. The allocation type can be one\nof :py:obj:`~.cudaMemAllocationTypePinned` or\n:py:obj:`~.cudaMemAllocationTypeManaged`. When the allocation type is\n:py:obj:`~.cudaMemAllocationTypeManaged`, the location type can also be\n:py:obj:`~.cudaMemLocationTypeNone` to indicate no preferred location\nfor the managed memory pool. In all other cases, the call return\n:py:obj:`~.cudaErrorInvalidValue`\n\nReturns the last pool provided to :py:obj:`~.cudaMemSetMemPool` or\n:py:obj:`~.cudaDeviceSetMemPool` for this location and allocation type\nor the location's default memory pool if :py:obj:`~.cudaMemSetMemPool`\nor :py:obj:`~.cudaDeviceSetMemPool` for that allocType and location has\nnever been called. By default the current mempool of a location is the\ndefault mempool for a device that can be obtained via\ncudaMemGetDefaultMemPool Otherwise the returned pool must have been set\nwith :py:obj:`~.cudaDeviceSetMemPool`.\n\nParameters\n----------\nlocation : :py:obj:`~.cudaMemLocation`\n    None\ntypename : :py:obj:`~.cudaMemAllocationType`\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nmemPool : :py:obj:`~.cudaMemPool_t`\n    None\n\nSee Also\n--------\n:py:obj:`~.cuDeviceGetDefaultMemPool`, :py:obj:`~.cuMemPoolCreate`, :py:obj:`~.cuDeviceSetMemPool`, :py:obj:`~.cuMemSetMemPool`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_317cudaMemGetMemPool = {"cudaMemGetMemPool", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_317cudaMemGetMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_316cudaMemGetMemPool};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_317cudaMemGetMemPool(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location = 0;
  PyObject *__pyx_v_typename = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemGetMemPool (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_location_2,&__pyx_mstate_global->__pyx_n_u_typename,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, 24492, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24492, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24492, __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, "cudaMemGetMemPool", 0) < (0)) __PYX_ERR(0, 24492, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemGetMemPool", 1, 2, 2, i); __PYX_ERR(0, 24492, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 24492, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24492, __pyx_L3_error)
    }
    __pyx_v_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)values[0]);
    __pyx_v_typename = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemGetMemPool", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24492, __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.runtime.cudaMemGetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 1, "location", 0))) __PYX_ERR(0, 24493, __pyx_L1_error)
  if (unlikely(((PyObject *)__pyx_v_typename) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "typename"); __PYX_ERR(0, 24493, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_316cudaMemGetMemPool(__pyx_self, __pyx_v_location, __pyx_v_typename);

  /* 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_7runtime_316cudaMemGetMemPool(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location, PyObject *__pyx_v_typename) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_memPool = 0;
  struct cudaMemLocation *__pyx_v_cylocation_ptr;
  enum cudaMemAllocationType __pyx_v_cytypename;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaMemLocation *__pyx_t_4;
  int __pyx_t_5;
  enum cudaMemAllocationType __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemGetMemPool", 0);

  /* "cuda/bindings/runtime.pyx":24534
 *     :py:obj:`~.cuDeviceGetDefaultMemPool`, :py:obj:`~.cuMemPoolCreate`, :py:obj:`~.cuDeviceSetMemPool`, :py:obj:`~.cuMemSetMemPool`
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24534, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_memPool = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24535
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_location) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_location->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cylocation_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":24536
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_typename, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = ((enum cudaMemAllocationType)__Pyx_PyLong_As_enum__cudaMemAllocationType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cytypename = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":24537
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24538
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:
 *         err = cyruntime.cudaMemGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetMemPool(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._pvt_ptr), __pyx_v_cylocation_ptr, __pyx_v_cytypename); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24538, __pyx_L4_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":24537
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24539
 *     with nogil:
 *         err = cyruntime.cudaMemGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":24540
 *         err = cyruntime.cudaMemGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], memPool)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 24540, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 24540, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24539
 *     with nogil:
 *         err = cyruntime.cudaMemGetMemPool(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cylocation_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  }

  /* "cuda/bindings/runtime.pyx":24541
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 24541, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_memPool);
  __Pyx_GIVEREF((PyObject *)__pyx_v_memPool);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_memPool)) != (0)) __PYX_ERR(0, 24541, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24492
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType):
 *     """ Gets the current memory pool for a given memory location and allocation type.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemGetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_memPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24543
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemSetMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType, memPool):
 *     """ Sets the current memory pool for a memory location and allocation type.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_319cudaMemSetMemPool(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_7runtime_318cudaMemSetMemPool, "cudaMemSetMemPool(cudaMemLocation location: Optional[cudaMemLocation], typename: cudaMemAllocationType, memPool)\n\nSets the current memory pool for a memory location and allocation type.\n\nThe memory location can be of one of\n:py:obj:`~.cudaMemLocationTypeDevice`,\n:py:obj:`~.cudaMemLocationTypeHost` or\n:py:obj:`~.cudaMemLocationTypeHostNuma`. The allocation type can be one\nof :py:obj:`~.cudaMemAllocationTypePinned` or\n:py:obj:`~.cudaMemAllocationTypeManaged`. When the allocation type is\n:py:obj:`~.cudaMemAllocationTypeManaged`, the location type can also be\n:py:obj:`~.cudaMemLocationTypeNone` to indicate no preferred location\nfor the managed memory pool. In all other cases, the call return\n:py:obj:`~.cudaErrorInvalidValue`\n\nWhen a memory pool is set as the current memory pool, the location\nparameter should be the same as the location of the pool. If the\nlocation type or index don't match, the call returns\n:py:obj:`~.cudaErrorInvalidValue`. The type of memory pool should also\nmatch the parameter allocType. Else the call returns\n:py:obj:`~.cudaErrorInvalidValue`.   By default, a memory location's\ncurrent memory pool is its default memory pool. If the location type is\n:py:obj:`~.cudaMemLocationTypeDevice` and the allocation type is\n:py:obj:`~.cudaMemAllocationTypePinned`, then this API is the\nequivalent of calling :py:obj:`~.cudaDeviceSetMemPool` with the\nlocation id as the device. For further details on the implications,\nplease refer to the documentation for :py:obj:`~.cudaDeviceSetMemPool`.\n\nParameters\n----------\nlocation : :py:obj:`~.cudaMemLocation`\n    None\ntypename : :py:obj:`~.cudaMemAllocationType`\n    None\nmemPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    None\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cuDeviceGetDefaultMemPool`, :py:obj:`~.cuDeviceGetMemPool`, :py:obj:`~.cuMemGetMemPool`, :py:obj:`~.cuMemPoolCreate`, :py:o""bj:`~.cuMemPoolDestroy`, :py:obj:`~.cuMemAllocFromPoolAsync`\n\nNotes\n-----\nUse :py:obj:`~.cudaMallocFromPoolAsync` to specify asynchronous allocations from a device different than the one the stream runs on.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_319cudaMemSetMemPool = {"cudaMemSetMemPool", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_319cudaMemSetMemPool, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_318cudaMemSetMemPool};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_319cudaMemSetMemPool(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location = 0;
  PyObject *__pyx_v_typename = 0;
  PyObject *__pyx_v_memPool = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemSetMemPool (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_location_2,&__pyx_mstate_global->__pyx_n_u_typename,&__pyx_mstate_global->__pyx_n_u_memPool,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, 24543, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24543, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24543, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24543, __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, "cudaMemSetMemPool", 0) < (0)) __PYX_ERR(0, 24543, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemSetMemPool", 1, 3, 3, i); __PYX_ERR(0, 24543, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 24543, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24543, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24543, __pyx_L3_error)
    }
    __pyx_v_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)values[0]);
    __pyx_v_typename = values[1];
    __pyx_v_memPool = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemSetMemPool", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 24543, __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.runtime.cudaMemSetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_location), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, 1, "location", 0))) __PYX_ERR(0, 24544, __pyx_L1_error)
  if (unlikely(((PyObject *)__pyx_v_typename) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "typename"); __PYX_ERR(0, 24544, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_318cudaMemSetMemPool(__pyx_self, __pyx_v_location, __pyx_v_typename, __pyx_v_memPool);

  /* 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_7runtime_318cudaMemSetMemPool(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *__pyx_v_location, PyObject *__pyx_v_typename, PyObject *__pyx_v_memPool) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  struct cudaMemLocation *__pyx_v_cylocation_ptr;
  enum cudaMemAllocationType __pyx_v_cytypename;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemLocation *__pyx_t_7;
  enum cudaMemAllocationType __pyx_t_8;
  cudaError_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemSetMemPool", 0);

  /* "cuda/bindings/runtime.pyx":24594
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24595
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24594
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24596
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24597
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24596
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24599
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24599, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24599, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24600
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24600, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24601
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_location) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_location->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cylocation_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":24602
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemSetMemPool(cylocation_ptr, cytypename, cymemPool)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_typename, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = ((enum cudaMemAllocationType)__Pyx_PyLong_As_enum__cudaMemAllocationType(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24602, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cytypename = __pyx_t_8;

  /* "cuda/bindings/runtime.pyx":24603
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemSetMemPool(cylocation_ptr, cytypename, cymemPool)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24604
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:
 *         err = cyruntime.cudaMemSetMemPool(cylocation_ptr, cytypename, cymemPool)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemSetMemPool(__pyx_v_cylocation_ptr, __pyx_v_cytypename, __pyx_v_cymemPool); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24604, __pyx_L7_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":24603
 *     cdef cyruntime.cudaMemLocation* cylocation_ptr = location._pvt_ptr if location is not None else NULL
 *     cdef cyruntime.cudaMemAllocationType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemSetMemPool(cylocation_ptr, cytypename, cymemPool)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24605
 *     with nogil:
 *         err = cyruntime.cudaMemSetMemPool(cylocation_ptr, cytypename, cymemPool)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 24605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_10);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_10) != (0)) __PYX_ERR(0, 24605, __pyx_L1_error);
  __pyx_t_10 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24543
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemSetMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType, memPool):
 *     """ Sets the current memory pool for a memory location and allocation type.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemSetMemPool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24607
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocFromPoolAsync(size_t size, memPool, stream):
 *     """ Allocates memory from a specified pool with stream ordered semantics.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_321cudaMallocFromPoolAsync(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_7runtime_320cudaMallocFromPoolAsync, "cudaMallocFromPoolAsync(size_t size, memPool, stream)\n\nAllocates memory from a specified pool with stream ordered semantics.\n\nInserts an allocation operation into `hStream`. A pointer to the\nallocated memory is returned immediately in *dptr. The allocation must\nnot be accessed until the the allocation operation completes. The\nallocation comes from the specified memory pool.\n\nParameters\n----------\nbytesize : size_t\n    Number of bytes to allocate\nmemPool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    The pool to allocate from\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    The stream establishing the stream ordering semantic\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorOutOfMemory`\nptr : Any\n    Returned device pointer\n\nSee Also\n--------\n:py:obj:`~.cuMemAllocFromPoolAsync`, cudaMallocAsync (C++ API), :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaDeviceGetDefaultMemPool`, :py:obj:`~.cudaMemPoolCreate`, :py:obj:`~.cudaMemPoolSetAccess`, :py:obj:`~.cudaMemPoolSetAttribute`\n\nNotes\n-----\nDuring stream capture, this function results in the creation of an allocation node. In this case, the allocation is owned by the graph instead of the memory pool. The memory pool's properties are used to set the node's creation parameters.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_321cudaMallocFromPoolAsync = {"cudaMallocFromPoolAsync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_321cudaMallocFromPoolAsync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_320cudaMallocFromPoolAsync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_321cudaMallocFromPoolAsync(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
) {
  size_t __pyx_v_size;
  PyObject *__pyx_v_memPool = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMallocFromPoolAsync (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_size_2,&__pyx_mstate_global->__pyx_n_u_memPool,&__pyx_mstate_global->__pyx_n_u_stream,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, 24607, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24607, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24607, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24607, __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, "cudaMallocFromPoolAsync", 0) < (0)) __PYX_ERR(0, 24607, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMallocFromPoolAsync", 1, 3, 3, i); __PYX_ERR(0, 24607, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 24607, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24607, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24607, __pyx_L3_error)
    }
    __pyx_v_size = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 24608, __pyx_L3_error)
    __pyx_v_memPool = values[1];
    __pyx_v_stream = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMallocFromPoolAsync", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 24607, __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.runtime.cudaMallocFromPoolAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_320cudaMallocFromPoolAsync(__pyx_self, __pyx_v_size, __pyx_v_memPool, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_320cudaMallocFromPoolAsync(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_size, PyObject *__pyx_v_memPool, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMallocFromPoolAsync", 0);

  /* "cuda/bindings/runtime.pyx":24641
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24642
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24641
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24643
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24644
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24643
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24646
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemPool_t cymemPool
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24646, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24646, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24647
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24647, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24649
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24650
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24649
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":24651
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24652
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":24651
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":24654
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef void_ptr ptr = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_memPool};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24654, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24654, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":24655
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     cdef void_ptr ptr = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24655, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24656
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef void_ptr ptr = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMallocFromPoolAsync(<void**>&ptr, size, cymemPool, cystream)
*/
  __pyx_v_ptr = 0;

  /* "cuda/bindings/runtime.pyx":24657
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef void_ptr ptr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocFromPoolAsync(<void**>&ptr, size, cymemPool, cystream)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24658
 *     cdef void_ptr ptr = 0
 *     with nogil:
 *         err = cyruntime.cudaMallocFromPoolAsync(<void**>&ptr, size, cymemPool, cystream)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMallocFromPoolAsync(((void **)(&__pyx_v_ptr)), __pyx_v_size, __pyx_v_cymemPool, __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24658, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":24657
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef void_ptr ptr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMallocFromPoolAsync(<void**>&ptr, size, cymemPool, cystream)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24659
 *     with nogil:
 *         err = cyruntime.cudaMallocFromPoolAsync(<void**>&ptr, size, cymemPool, cystream)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24660
 *         err = cyruntime.cudaMallocFromPoolAsync(<void**>&ptr, size, cymemPool, cystream)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], ptr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 24660, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 24660, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24659
 *     with nogil:
 *         err = cyruntime.cudaMallocFromPoolAsync(<void**>&ptr, size, cymemPool, cystream)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)
*/
  }

  /* "cuda/bindings/runtime.pyx":24661
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_ptr); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 24661, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 24661, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24607
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocFromPoolAsync(size_t size, memPool, stream):
 *     """ Allocates memory from a specified pool with stream ordered semantics.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMallocFromPoolAsync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24663
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolExportToShareableHandle(memPool, handleType not None : cudaMemAllocationHandleType, unsigned int flags):
 *     """ Exports a memory pool to the requested handle type.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_323cudaMemPoolExportToShareableHandle(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_7runtime_322cudaMemPoolExportToShareableHandle, "cudaMemPoolExportToShareableHandle(memPool, handleType: cudaMemAllocationHandleType, unsigned int flags)\n\nExports a memory pool to the requested handle type.\n\nGiven an IPC capable mempool, create an OS handle to share the pool\nwith another process. A recipient process can convert the shareable\nhandle into a mempool with\n:py:obj:`~.cudaMemPoolImportFromShareableHandle`. Individual pointers\ncan then be shared with the :py:obj:`~.cudaMemPoolExportPointer` and\n:py:obj:`~.cudaMemPoolImportPointer` APIs. The implementation of what\nthe shareable handle is and how it can be transferred is defined by the\nrequested handle type.\n\nParameters\n----------\npool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    pool to export\nhandleType : :py:obj:`~.cudaMemAllocationHandleType`\n    the type of handle to create\nflags : unsigned int\n    must be 0\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\nhandle_out : Any\n    pointer to the location in which to store the requested handle\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolExportPointer`, :py:obj:`~.cudaMemPoolImportPointer`\n\nNotes\n-----\n: To create an IPC capable mempool, create a mempool with a CUmemAllocationHandleType other than cudaMemHandleTypeNone.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_323cudaMemPoolExportToShareableHandle = {"cudaMemPoolExportToShareableHandle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_323cudaMemPoolExportToShareableHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_322cudaMemPoolExportToShareableHandle};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_323cudaMemPoolExportToShareableHandle(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_memPool = 0;
  PyObject *__pyx_v_handleType = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPoolExportToShareableHandle (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_memPool,&__pyx_mstate_global->__pyx_n_u_handleType,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 24663, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24663, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24663, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24663, __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, "cudaMemPoolExportToShareableHandle", 0) < (0)) __PYX_ERR(0, 24663, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolExportToShareableHandle", 1, 3, 3, i); __PYX_ERR(0, 24663, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 24663, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24663, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24663, __pyx_L3_error)
    }
    __pyx_v_memPool = values[0];
    __pyx_v_handleType = values[1];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 24664, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolExportToShareableHandle", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 24663, __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.runtime.cudaMemPoolExportToShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_handleType) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "handleType"); __PYX_ERR(0, 24664, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_322cudaMemPoolExportToShareableHandle(__pyx_self, __pyx_v_memPool, __pyx_v_handleType, __pyx_v_flags);

  /* 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_7runtime_322cudaMemPoolExportToShareableHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, PyObject *__pyx_v_handleType, unsigned int __pyx_v_flags) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *__pyx_v_cyshareableHandle = 0;
  void *__pyx_v_cyshareableHandle_ptr;
  enum cudaMemAllocationHandleType __pyx_v_cyhandleType;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemAllocationHandleType __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolExportToShareableHandle", 0);

  /* "cuda/bindings/runtime.pyx":24701
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24702
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24701
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24703
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24704
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24703
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24706
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef _HelperCUmemAllocationHandleType cyshareableHandle = _HelperCUmemAllocationHandleType(handleType)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24706, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24707
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     cdef _HelperCUmemAllocationHandleType cyshareableHandle = _HelperCUmemAllocationHandleType(handleType)
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24707, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24708
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef _HelperCUmemAllocationHandleType cyshareableHandle = _HelperCUmemAllocationHandleType(handleType)             # <<<<<<<<<<<<<<
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_handleType};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24708, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cyshareableHandle = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24709
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef _HelperCUmemAllocationHandleType cyshareableHandle = _HelperCUmemAllocationHandleType(handleType)
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
 *     with nogil:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyshareableHandle), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24709, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyshareableHandle_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24710
 *     cdef _HelperCUmemAllocationHandleType cyshareableHandle = _HelperCUmemAllocationHandleType(handleType)
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolExportToShareableHandle(cyshareableHandle_ptr, cymemPool, cyhandleType, flags)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_handleType, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaMemAllocationHandleType)__Pyx_PyLong_As_enum__cudaMemAllocationHandleType(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyhandleType = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":24711
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolExportToShareableHandle(cyshareableHandle_ptr, cymemPool, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24712
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
 *     with nogil:
 *         err = cyruntime.cudaMemPoolExportToShareableHandle(cyshareableHandle_ptr, cymemPool, cyhandleType, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolExportToShareableHandle(__pyx_v_cyshareableHandle_ptr, __pyx_v_cymemPool, __pyx_v_cyhandleType, __pyx_v_flags); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24712, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":24711
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolExportToShareableHandle(cyshareableHandle_ptr, cymemPool, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24713
 *     with nogil:
 *         err = cyruntime.cudaMemPoolExportToShareableHandle(cyshareableHandle_ptr, cymemPool, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyshareableHandle.pyObj())
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24714
 *         err = cyruntime.cudaMemPoolExportToShareableHandle(cyshareableHandle_ptr, cymemPool, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cyshareableHandle.pyObj())
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 24714, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 24714, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24713
 *     with nogil:
 *         err = cyruntime.cudaMemPoolExportToShareableHandle(cyshareableHandle_ptr, cymemPool, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyshareableHandle.pyObj())
*/
  }

  /* "cuda/bindings/runtime.pyx":24715
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyshareableHandle.pyObj())             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_3 = ((PyObject *)__pyx_v_cyshareableHandle);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_pyObj, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24715, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 24715, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_9) != (0)) __PYX_ERR(0, 24715, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24663
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolExportToShareableHandle(memPool, handleType not None : cudaMemAllocationHandleType, unsigned int flags):
 *     """ Exports a memory pool to the requested handle type.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolExportToShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyshareableHandle);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24717
 *     return (_dict_cudaError_t[err], cyshareableHandle.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : cudaMemAllocationHandleType, unsigned int flags):
 *     """ imports a memory pool from a shared handle.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_325cudaMemPoolImportFromShareableHandle(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_7runtime_324cudaMemPoolImportFromShareableHandle, "cudaMemPoolImportFromShareableHandle(shareableHandle, handleType: cudaMemAllocationHandleType, unsigned int flags)\n\nimports a memory pool from a shared handle.\n\nSpecific allocations can be imported from the imported pool with\n:py:obj:`~.cudaMemPoolImportPointer`.\n\nParameters\n----------\nhandle : Any\n    OS handle of the pool to open\nhandleType : :py:obj:`~.cudaMemAllocationHandleType`\n    The type of handle being imported\nflags : unsigned int\n    must be 0\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\npool_out : :py:obj:`~.cudaMemPool_t`\n    Returned memory pool\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolExportPointer`, :py:obj:`~.cudaMemPoolImportPointer`\n\nNotes\n-----\nImported memory pools do not support creating new allocations. As such imported memory pools may not be used in :py:obj:`~.cudaDeviceSetMemPool` or :py:obj:`~.cudaMallocFromPoolAsync` calls.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_325cudaMemPoolImportFromShareableHandle = {"cudaMemPoolImportFromShareableHandle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_325cudaMemPoolImportFromShareableHandle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_324cudaMemPoolImportFromShareableHandle};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_325cudaMemPoolImportFromShareableHandle(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_shareableHandle = 0;
  PyObject *__pyx_v_handleType = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPoolImportFromShareableHandle (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_shareableHandle,&__pyx_mstate_global->__pyx_n_u_handleType,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 24717, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24717, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24717, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24717, __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, "cudaMemPoolImportFromShareableHandle", 0) < (0)) __PYX_ERR(0, 24717, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportFromShareableHandle", 1, 3, 3, i); __PYX_ERR(0, 24717, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 24717, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24717, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 24717, __pyx_L3_error)
    }
    __pyx_v_shareableHandle = values[0];
    __pyx_v_handleType = values[1];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 24718, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportFromShareableHandle", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 24717, __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.runtime.cudaMemPoolImportFromShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_handleType) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "handleType"); __PYX_ERR(0, 24718, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_324cudaMemPoolImportFromShareableHandle(__pyx_self, __pyx_v_shareableHandle, __pyx_v_handleType, __pyx_v_flags);

  /* 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_7runtime_324cudaMemPoolImportFromShareableHandle(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_shareableHandle, PyObject *__pyx_v_handleType, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_memPool = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyshareableHandle = NULL;
  void *__pyx_v_cyshareableHandle_ptr;
  enum cudaMemAllocationHandleType __pyx_v_cyhandleType;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  enum cudaMemAllocationHandleType __pyx_t_5;
  cudaError_t __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolImportFromShareableHandle", 0);

  /* "cuda/bindings/runtime.pyx":24748
 *     Imported memory pools do not support creating new allocations. As such imported memory pools may not be used in :py:obj:`~.cudaDeviceSetMemPool` or :py:obj:`~.cudaMallocFromPoolAsync` calls.
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()             # <<<<<<<<<<<<<<
 *     cyshareableHandle = _HelperInputVoidPtr(shareableHandle)
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24748, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_memPool = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24749
 *     """
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cyshareableHandle = _HelperInputVoidPtr(shareableHandle)             # <<<<<<<<<<<<<<
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_shareableHandle};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24749, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyshareableHandle = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24750
 *     cdef cudaMemPool_t memPool = cudaMemPool_t()
 *     cyshareableHandle = _HelperInputVoidPtr(shareableHandle)
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyshareableHandle), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24750, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24750, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyshareableHandle_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":24751
 *     cyshareableHandle = _HelperInputVoidPtr(shareableHandle)
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolImportFromShareableHandle(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cyshareableHandle_ptr, cyhandleType, flags)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_handleType, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24751, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = ((enum cudaMemAllocationHandleType)__Pyx_PyLong_As_enum__cudaMemAllocationHandleType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24751, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyhandleType = __pyx_t_5;

  /* "cuda/bindings/runtime.pyx":24752
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolImportFromShareableHandle(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cyshareableHandle_ptr, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24753
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
 *     with nogil:
 *         err = cyruntime.cudaMemPoolImportFromShareableHandle(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cyshareableHandle_ptr, cyhandleType, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolImportFromShareableHandle(((cudaMemPool_t *)__pyx_v_memPool->__pyx_base._pvt_ptr), __pyx_v_cyshareableHandle_ptr, __pyx_v_cyhandleType, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24753, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":24752
 *     cdef void* cyshareableHandle_ptr = <void*><void_ptr>cyshareableHandle.cptr
 *     cdef cyruntime.cudaMemAllocationHandleType cyhandleType = handleType.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolImportFromShareableHandle(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cyshareableHandle_ptr, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24754
 *     with nogil:
 *         err = cyruntime.cudaMemPoolImportFromShareableHandle(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cyshareableHandle_ptr, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  __pyx_t_7 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_7) {

    /* "cuda/bindings/runtime.pyx":24755
 *         err = cyruntime.cudaMemPoolImportFromShareableHandle(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cyshareableHandle_ptr, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], memPool)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 24755, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 24755, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24754
 *     with nogil:
 *         err = cyruntime.cudaMemPoolImportFromShareableHandle(<cyruntime.cudaMemPool_t*>memPool._pvt_ptr, cyshareableHandle_ptr, cyhandleType, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)
*/
  }

  /* "cuda/bindings/runtime.pyx":24756
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], memPool)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 24756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 24756, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_memPool);
  __Pyx_GIVEREF((PyObject *)__pyx_v_memPool);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_memPool)) != (0)) __PYX_ERR(0, 24756, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24717
 *     return (_dict_cudaError_t[err], cyshareableHandle.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : cudaMemAllocationHandleType, unsigned int flags):
 *     """ imports a memory pool from a shared handle.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolImportFromShareableHandle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_memPool);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyshareableHandle);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24758
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolExportPointer(ptr):
 *     """ Export data to share a memory pool allocation between processes.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_327cudaMemPoolExportPointer(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_7runtime_326cudaMemPoolExportPointer, "cudaMemPoolExportPointer(ptr)\n\nExport data to share a memory pool allocation between processes.\n\nConstructs `shareData_out` for sharing a specific allocation from an\nalready shared memory pool. The recipient process can import the\nallocation with the :py:obj:`~.cudaMemPoolImportPointer` api. The data\nis not a handle and may be shared through any IPC mechanism.\n\nParameters\n----------\nptr : Any\n    pointer to memory being exported\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\nshareData_out : :py:obj:`~.cudaMemPoolPtrExportData`\n    Returned export data\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolExportPointer`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolImportPointer`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_327cudaMemPoolExportPointer = {"cudaMemPoolExportPointer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_327cudaMemPoolExportPointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_326cudaMemPoolExportPointer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_327cudaMemPoolExportPointer(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_ptr = 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("cudaMemPoolExportPointer (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_ptr,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, 24758, __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, 24758, __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, "cudaMemPoolExportPointer", 0) < (0)) __PYX_ERR(0, 24758, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolExportPointer", 1, 1, 1, i); __PYX_ERR(0, 24758, __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, 24758, __pyx_L3_error)
    }
    __pyx_v_ptr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolExportPointer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24758, __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.runtime.cudaMemPoolExportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_326cudaMemPoolExportPointer(__pyx_self, __pyx_v_ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_326cudaMemPoolExportPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_exportData = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyptr = NULL;
  void *__pyx_v_cyptr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolExportPointer", 0);

  /* "cuda/bindings/runtime.pyx":24783
 *     :py:obj:`~.cuMemPoolExportPointer`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolImportPointer`
 *     """
 *     cdef cudaMemPoolPtrExportData exportData = cudaMemPoolPtrExportData()             # <<<<<<<<<<<<<<
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24783, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_exportData = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24784
 *     """
 *     cdef cudaMemPoolPtrExportData exportData = cudaMemPoolPtrExportData()
 *     cyptr = _HelperInputVoidPtr(ptr)             # <<<<<<<<<<<<<<
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24784, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24785
 *     cdef cudaMemPoolPtrExportData exportData = cudaMemPoolPtrExportData()
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolExportPointer(<cyruntime.cudaMemPoolPtrExportData*>exportData._pvt_ptr, cyptr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24785, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyptr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":24786
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolExportPointer(<cyruntime.cudaMemPoolPtrExportData*>exportData._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24787
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
 *         err = cyruntime.cudaMemPoolExportPointer(<cyruntime.cudaMemPoolPtrExportData*>exportData._pvt_ptr, cyptr_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolExportPointer(((struct cudaMemPoolPtrExportData *)__pyx_v_exportData->_pvt_ptr), __pyx_v_cyptr_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24787, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":24786
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolExportPointer(<cyruntime.cudaMemPoolPtrExportData*>exportData._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24788
 *     with nogil:
 *         err = cyruntime.cudaMemPoolExportPointer(<cyruntime.cudaMemPoolPtrExportData*>exportData._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], exportData)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":24789
 *         err = cyruntime.cudaMemPoolExportPointer(<cyruntime.cudaMemPoolPtrExportData*>exportData._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], exportData)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 24789, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 24789, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24788
 *     with nogil:
 *         err = cyruntime.cudaMemPoolExportPointer(<cyruntime.cudaMemPoolPtrExportData*>exportData._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], exportData)
*/
  }

  /* "cuda/bindings/runtime.pyx":24790
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], exportData)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 24790, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_exportData);
  __Pyx_GIVEREF((PyObject *)__pyx_v_exportData);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_exportData)) != (0)) __PYX_ERR(0, 24790, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24758
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolExportPointer(ptr):
 *     """ Export data to share a memory pool allocation between processes.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolExportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_exportData);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyptr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24792
 *     return (_dict_cudaError_t[err], exportData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExportData]):
 *     """ Import a memory pool allocation from another process.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_329cudaMemPoolImportPointer(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_7runtime_328cudaMemPoolImportPointer, "cudaMemPoolImportPointer(memPool, cudaMemPoolPtrExportData exportData: Optional[cudaMemPoolPtrExportData])\n\nImport a memory pool allocation from another process.\n\nReturns in `ptr_out` a pointer to the imported memory. The imported\nmemory must not be accessed before the allocation operation completes\nin the exporting process. The imported memory must be freed from all\nimporting processes before being freed in the exporting process. The\npointer may be freed with cudaFree or cudaFreeAsync. If\n:py:obj:`~.cudaFreeAsync` is used, the free must be completed on the\nimporting process before the free operation on the exporting process.\n\nParameters\n----------\npool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t`\n    pool from which to import\nshareData : :py:obj:`~.cudaMemPoolPtrExportData`\n    data specifying the memory to import\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_OUT_OF_MEMORY`\nptr_out : Any\n    pointer to imported memory\n\nSee Also\n--------\n:py:obj:`~.cuMemPoolImportPointer`, :py:obj:`~.cudaMemPoolExportToShareableHandle`, :py:obj:`~.cudaMemPoolImportFromShareableHandle`, :py:obj:`~.cudaMemPoolExportPointer`\n\nNotes\n-----\nThe :py:obj:`~.cudaFreeAsync` api may be used in the exporting process before the :py:obj:`~.cudaFreeAsync` operation completes in its stream as long as the :py:obj:`~.cudaFreeAsync` in the exporting process specifies a stream with a stream dependency on the importing process's :py:obj:`~.cudaFreeAsync`.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_329cudaMemPoolImportPointer = {"cudaMemPoolImportPointer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_329cudaMemPoolImportPointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_328cudaMemPoolImportPointer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_329cudaMemPoolImportPointer(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_memPool = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_exportData = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaMemPoolImportPointer (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_memPool,&__pyx_mstate_global->__pyx_n_u_exportData,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, 24792, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24792, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24792, __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, "cudaMemPoolImportPointer", 0) < (0)) __PYX_ERR(0, 24792, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportPointer", 1, 2, 2, i); __PYX_ERR(0, 24792, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 24792, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24792, __pyx_L3_error)
    }
    __pyx_v_memPool = values[0];
    __pyx_v_exportData = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPoolImportPointer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24792, __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.runtime.cudaMemPoolImportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_exportData), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData, 1, "exportData", 0))) __PYX_ERR(0, 24793, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_328cudaMemPoolImportPointer(__pyx_self, __pyx_v_memPool, __pyx_v_exportData);

  /* 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_7runtime_328cudaMemPoolImportPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_memPool, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *__pyx_v_exportData) {
  cudaMemPool_t __pyx_v_cymemPool;
  PyObject *__pyx_v_pmemPool = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_ptr;
  struct cudaMemPoolPtrExportData *__pyx_v_cyexportData_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemPoolPtrExportData *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaMemPoolImportPointer", 0);

  /* "cuda/bindings/runtime.pyx":24827
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
  __pyx_t_1 = (__pyx_v_memPool == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24828
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:
 *         pmemPool = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pmemPool = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":24827
 *     """
 *     cdef cyruntime.cudaMemPool_t cymemPool
 *     if memPool is None:             # <<<<<<<<<<<<<<
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24829
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_memPool, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24830
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):
 *         pmemPool = int(memPool)             # <<<<<<<<<<<<<<
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_memPool); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24830, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":24829
 *     if memPool is None:
 *         pmemPool = 0
 *     elif isinstance(memPool, (cudaMemPool_t,driver.CUmemoryPool)):             # <<<<<<<<<<<<<<
 *         pmemPool = int(memPool)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":24832
 *         pmemPool = int(memPool)
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))             # <<<<<<<<<<<<<<
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef void_ptr ptr = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_memPool};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24832, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24832, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pmemPool = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":24833
 *     else:
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool             # <<<<<<<<<<<<<<
 *     cdef void_ptr ptr = 0
 *     cdef cyruntime.cudaMemPoolPtrExportData* cyexportData_ptr = exportData._pvt_ptr if exportData is not None else NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pmemPool); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24833, __pyx_L1_error)
  __pyx_v_cymemPool = ((cudaMemPool_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":24834
 *         pmemPool = int(cudaMemPool_t(memPool))
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef void_ptr ptr = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemPoolPtrExportData* cyexportData_ptr = exportData._pvt_ptr if exportData is not None else NULL
 *     with nogil:
*/
  __pyx_v_ptr = 0;

  /* "cuda/bindings/runtime.pyx":24835
 *     cymemPool = <cyruntime.cudaMemPool_t><void_ptr>pmemPool
 *     cdef void_ptr ptr = 0
 *     cdef cyruntime.cudaMemPoolPtrExportData* cyexportData_ptr = exportData._pvt_ptr if exportData is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaMemPoolImportPointer(<void**>&ptr, cymemPool, cyexportData_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_exportData) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_exportData->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cyexportData_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":24836
 *     cdef void_ptr ptr = 0
 *     cdef cyruntime.cudaMemPoolPtrExportData* cyexportData_ptr = exportData._pvt_ptr if exportData is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolImportPointer(<void**>&ptr, cymemPool, cyexportData_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24837
 *     cdef cyruntime.cudaMemPoolPtrExportData* cyexportData_ptr = exportData._pvt_ptr if exportData is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaMemPoolImportPointer(<void**>&ptr, cymemPool, cyexportData_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolImportPointer(((void **)(&__pyx_v_ptr)), __pyx_v_cymemPool, __pyx_v_cyexportData_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24837, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":24836
 *     cdef void_ptr ptr = 0
 *     cdef cyruntime.cudaMemPoolPtrExportData* cyexportData_ptr = exportData._pvt_ptr if exportData is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaMemPoolImportPointer(<void**>&ptr, cymemPool, cyexportData_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24838
 *     with nogil:
 *         err = cyruntime.cudaMemPoolImportPointer(<void**>&ptr, cymemPool, cyexportData_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":24839
 *         err = cyruntime.cudaMemPoolImportPointer(<void**>&ptr, cymemPool, cyexportData_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], ptr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 24839, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 24839, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24838
 *     with nogil:
 *         err = cyruntime.cudaMemPoolImportPointer(<void**>&ptr, cymemPool, cyexportData_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)
*/
  }

  /* "cuda/bindings/runtime.pyx":24840
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ptr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_ptr); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 24840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 24840, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_9) != (0)) __PYX_ERR(0, 24840, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24792
 *     return (_dict_cudaError_t[err], exportData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExportData]):
 *     """ Import a memory pool allocation from another process.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaMemPoolImportPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pmemPool);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24842
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaPointerGetAttributes(ptr):
 *     """ Returns attributes about a specified pointer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_331cudaPointerGetAttributes(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_7runtime_330cudaPointerGetAttributes, "cudaPointerGetAttributes(ptr)\n\nReturns attributes about a specified pointer.\n\nReturns in `*attributes` the attributes of the pointer `ptr`. If\npointer was not allocated in, mapped by or registered with context\nsupporting unified addressing :py:obj:`~.cudaErrorInvalidValue` is\nreturned.\n\nThe :py:obj:`~.cudaPointerAttributes` structure is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nIn this structure, the individual fields mean\n\n- :py:obj:`~.cudaPointerAttributes.type` identifies type of memory. It\n  can be :py:obj:`~.cudaMemoryTypeUnregistered` for unregistered host\n  memory, :py:obj:`~.cudaMemoryTypeHost` for registered host memory,\n  :py:obj:`~.cudaMemoryTypeDevice` for device memory or\n  :py:obj:`~.cudaMemoryTypeManaged` for managed memory.\n\n- :py:obj:`~.device` is the device against which `ptr` was allocated.\n  If `ptr` has memory type :py:obj:`~.cudaMemoryTypeDevice` then this\n  identifies the device on which the memory referred to by `ptr`\n  physically resides. If `ptr` has memory type\n  :py:obj:`~.cudaMemoryTypeHost` then this identifies the device which\n  was current when the allocation was made (and if that device is\n  deinitialized then this allocation will vanish with that device's\n  state).\n\n- :py:obj:`~.devicePointer` is the device pointer alias through which\n  the memory referred to by `ptr` may be accessed on the current\n  device. If the memory referred to by `ptr` cannot be accessed\n  directly by the current device then this is NULL.\n\n- :py:obj:`~.hostPointer` is the host pointer alias through which the\n  memory referred to by `ptr` may be accessed on the host. If the\n  memory referred to by `ptr` cannot be accessed directly by the host\n  then this is NULL.\n\nParameters\n----------\nptr : Any\n    Pointer to get attributes for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`\nattributes : :py:obj:`~.cud""aPointerAttributes`\n    Attributes for the specified pointer\n\nSee Also\n--------\n:py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaSetDevice`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuPointerGetAttributes`\n\nNotes\n-----\nIn CUDA 11.0 forward passing host pointer will return :py:obj:`~.cudaMemoryTypeUnregistered` in :py:obj:`~.cudaPointerAttributes.type` and call will return :py:obj:`~.cudaSuccess`.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_331cudaPointerGetAttributes = {"cudaPointerGetAttributes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_331cudaPointerGetAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_330cudaPointerGetAttributes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_331cudaPointerGetAttributes(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_ptr = 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("cudaPointerGetAttributes (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_ptr,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, 24842, __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, 24842, __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, "cudaPointerGetAttributes", 0) < (0)) __PYX_ERR(0, 24842, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaPointerGetAttributes", 1, 1, 1, i); __PYX_ERR(0, 24842, __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, 24842, __pyx_L3_error)
    }
    __pyx_v_ptr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaPointerGetAttributes", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24842, __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.runtime.cudaPointerGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_330cudaPointerGetAttributes(__pyx_self, __pyx_v_ptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_330cudaPointerGetAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *__pyx_v_attributes = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyptr = NULL;
  void *__pyx_v_cyptr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaPointerGetAttributes", 0);

  /* "cuda/bindings/runtime.pyx":24902
 *     In CUDA 11.0 forward passing host pointer will return :py:obj:`~.cudaMemoryTypeUnregistered` in :py:obj:`~.cudaPointerAttributes.type` and call will return :py:obj:`~.cudaSuccess`.
 *     """
 *     cdef cudaPointerAttributes attributes = cudaPointerAttributes()             # <<<<<<<<<<<<<<
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24902, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_attributes = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24903
 *     """
 *     cdef cudaPointerAttributes attributes = cudaPointerAttributes()
 *     cyptr = _HelperInputVoidPtr(ptr)             # <<<<<<<<<<<<<<
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24903, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":24904
 *     cdef cudaPointerAttributes attributes = cudaPointerAttributes()
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaPointerGetAttributes(<cyruntime.cudaPointerAttributes*>attributes._pvt_ptr, cyptr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 24904, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyptr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":24905
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaPointerGetAttributes(<cyruntime.cudaPointerAttributes*>attributes._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24906
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
 *         err = cyruntime.cudaPointerGetAttributes(<cyruntime.cudaPointerAttributes*>attributes._pvt_ptr, cyptr_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaPointerGetAttributes(((struct cudaPointerAttributes *)__pyx_v_attributes->_pvt_ptr), __pyx_v_cyptr_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24906, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":24905
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaPointerGetAttributes(<cyruntime.cudaPointerAttributes*>attributes._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24907
 *     with nogil:
 *         err = cyruntime.cudaPointerGetAttributes(<cyruntime.cudaPointerAttributes*>attributes._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], attributes)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":24908
 *         err = cyruntime.cudaPointerGetAttributes(<cyruntime.cudaPointerAttributes*>attributes._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], attributes)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24908, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24908, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24908, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24908, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 24908, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 24908, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24907
 *     with nogil:
 *         err = cyruntime.cudaPointerGetAttributes(<cyruntime.cudaPointerAttributes*>attributes._pvt_ptr, cyptr_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], attributes)
*/
  }

  /* "cuda/bindings/runtime.pyx":24909
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], attributes)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 24909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 24909, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_attributes);
  __Pyx_GIVEREF((PyObject *)__pyx_v_attributes);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_attributes)) != (0)) __PYX_ERR(0, 24909, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24842
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaPointerGetAttributes(ptr):
 *     """ Returns attributes about a specified pointer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaPointerGetAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_attributes);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyptr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24911
 *     return (_dict_cudaError_t[err], attributes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceCanAccessPeer(int device, int peerDevice):
 *     """ Queries if a device may directly access a peer device's memory.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_333cudaDeviceCanAccessPeer(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_7runtime_332cudaDeviceCanAccessPeer, "cudaDeviceCanAccessPeer(int device, int peerDevice)\n\nQueries if a device may directly access a peer device's memory.\n\nReturns in `*canAccessPeer` a value of 1 if device `device` is capable\nof directly accessing memory from `peerDevice` and 0 otherwise. If\ndirect access of `peerDevice` from `device` is possible, then access\nmay be enabled by calling :py:obj:`~.cudaDeviceEnablePeerAccess()`.\n\nParameters\n----------\ndevice : int\n    Device from which allocations on `peerDevice` are to be directly\n    accessed.\npeerDevice : int\n    Device on which the allocations to be directly accessed by `device`\n    reside.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\ncanAccessPeer : int\n    Returned access capability\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuDeviceCanAccessPeer`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_333cudaDeviceCanAccessPeer = {"cudaDeviceCanAccessPeer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_333cudaDeviceCanAccessPeer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_332cudaDeviceCanAccessPeer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_333cudaDeviceCanAccessPeer(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
) {
  int __pyx_v_device;
  int __pyx_v_peerDevice;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceCanAccessPeer (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_device_2,&__pyx_mstate_global->__pyx_n_u_peerDevice,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, 24911, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24911, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24911, __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, "cudaDeviceCanAccessPeer", 0) < (0)) __PYX_ERR(0, 24911, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceCanAccessPeer", 1, 2, 2, i); __PYX_ERR(0, 24911, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 24911, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24911, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 24912, __pyx_L3_error)
    __pyx_v_peerDevice = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_peerDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 24912, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceCanAccessPeer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24911, __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.runtime.cudaDeviceCanAccessPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_332cudaDeviceCanAccessPeer(__pyx_self, __pyx_v_device, __pyx_v_peerDevice);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_332cudaDeviceCanAccessPeer(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, int __pyx_v_peerDevice) {
  int __pyx_v_canAccessPeer;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceCanAccessPeer", 0);

  /* "cuda/bindings/runtime.pyx":24940
 *     :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuDeviceCanAccessPeer`
 *     """
 *     cdef int canAccessPeer = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice)
*/
  __pyx_v_canAccessPeer = 0;

  /* "cuda/bindings/runtime.pyx":24941
 *     """
 *     cdef int canAccessPeer = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24942
 *     cdef int canAccessPeer = 0
 *     with nogil:
 *         err = cyruntime.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceCanAccessPeer((&__pyx_v_canAccessPeer), __pyx_v_device, __pyx_v_peerDevice); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24942, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":24941
 *     """
 *     cdef int canAccessPeer = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24943
 *     with nogil:
 *         err = cyruntime.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], canAccessPeer)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":24944
 *         err = cyruntime.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], canAccessPeer)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 24944, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 24944, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":24943
 *     with nogil:
 *         err = cyruntime.cudaDeviceCanAccessPeer(&canAccessPeer, device, peerDevice)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], canAccessPeer)
*/
  }

  /* "cuda/bindings/runtime.pyx":24945
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], canAccessPeer)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_canAccessPeer); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 24945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 24945, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 24945, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24911
 *     return (_dict_cudaError_t[err], attributes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceCanAccessPeer(int device, int peerDevice):
 *     """ Queries if a device may directly access a peer device's memory.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceCanAccessPeer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24947
 *     return (_dict_cudaError_t[err], canAccessPeer)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags):
 *     """ Enables direct access to memory allocations on a peer device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_335cudaDeviceEnablePeerAccess(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_7runtime_334cudaDeviceEnablePeerAccess, "cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags)\n\nEnables direct access to memory allocations on a peer device.\n\nOn success, all allocations from `peerDevice` will immediately be\naccessible by the current device. They will remain accessible until\naccess is explicitly disabled using\n:py:obj:`~.cudaDeviceDisablePeerAccess()` or either device is reset\nusing :py:obj:`~.cudaDeviceReset()`.\n\nNote that access granted by this call is unidirectional and that in\norder to access memory on the current device from `peerDevice`, a\nseparate symmetric call to :py:obj:`~.cudaDeviceEnablePeerAccess()` is\nrequired.\n\nNote that there are both device-wide and system-wide limitations per\nsystem configuration, as noted in the CUDA Programming Guide under the\nsection \"Peer-to-Peer Memory Access\".\n\nReturns :py:obj:`~.cudaErrorInvalidDevice` if\n:py:obj:`~.cudaDeviceCanAccessPeer()` indicates that the current device\ncannot directly access memory from `peerDevice`.\n\nReturns :py:obj:`~.cudaErrorPeerAccessAlreadyEnabled` if direct access\nof `peerDevice` from the current device has already been enabled.\n\nReturns :py:obj:`~.cudaErrorInvalidValue` if `flags` is not 0.\n\nParameters\n----------\npeerDevice : int\n    Peer device to enable direct access to from the current device\nflags : unsigned int\n    Reserved for future use and must be set to 0\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorPeerAccessAlreadyEnabled`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuCtxEnablePeerAccess`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_335cudaDeviceEnablePeerAccess = {"cudaDeviceEnablePeerAccess", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_335cudaDeviceEnablePeerAccess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_334cudaDeviceEnablePeerAccess};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_335cudaDeviceEnablePeerAccess(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
) {
  int __pyx_v_peerDevice;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceEnablePeerAccess (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_peerDevice,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 24947, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24947, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 24947, __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, "cudaDeviceEnablePeerAccess", 0) < (0)) __PYX_ERR(0, 24947, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceEnablePeerAccess", 1, 2, 2, i); __PYX_ERR(0, 24947, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 24947, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 24947, __pyx_L3_error)
    }
    __pyx_v_peerDevice = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_peerDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 24948, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 24948, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceEnablePeerAccess", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 24947, __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.runtime.cudaDeviceEnablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_334cudaDeviceEnablePeerAccess(__pyx_self, __pyx_v_peerDevice, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_334cudaDeviceEnablePeerAccess(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_peerDevice, unsigned int __pyx_v_flags) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceEnablePeerAccess", 0);

  /* "cuda/bindings/runtime.pyx":24991
 *     :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuCtxEnablePeerAccess`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceEnablePeerAccess(peerDevice, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":24992
 *     """
 *     with nogil:
 *         err = cyruntime.cudaDeviceEnablePeerAccess(peerDevice, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceEnablePeerAccess(__pyx_v_peerDevice, __pyx_v_flags); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 24992, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":24991
 *     :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceDisablePeerAccess`, :py:obj:`~.cuCtxEnablePeerAccess`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceEnablePeerAccess(peerDevice, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":24993
 *     with nogil:
 *         err = cyruntime.cudaDeviceEnablePeerAccess(peerDevice, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 24993, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24947
 *     return (_dict_cudaError_t[err], canAccessPeer)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags):
 *     """ Enables direct access to memory allocations on a peer device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceEnablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":24995
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceDisablePeerAccess(int peerDevice):
 *     """ Disables direct access to memory allocations on a peer device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_337cudaDeviceDisablePeerAccess(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_7runtime_336cudaDeviceDisablePeerAccess, "cudaDeviceDisablePeerAccess(int peerDevice)\n\nDisables direct access to memory allocations on a peer device.\n\nReturns :py:obj:`~.cudaErrorPeerAccessNotEnabled` if direct access to\nmemory on `peerDevice` has not yet been enabled from the current\ndevice.\n\nParameters\n----------\npeerDevice : int\n    Peer device to disable direct access to\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorPeerAccessNotEnabled`, :py:obj:`~.cudaErrorInvalidDevice`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cuCtxDisablePeerAccess`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_337cudaDeviceDisablePeerAccess = {"cudaDeviceDisablePeerAccess", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_337cudaDeviceDisablePeerAccess, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_336cudaDeviceDisablePeerAccess};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_337cudaDeviceDisablePeerAccess(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
) {
  int __pyx_v_peerDevice;
  #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("cudaDeviceDisablePeerAccess (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_peerDevice,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, 24995, __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, 24995, __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, "cudaDeviceDisablePeerAccess", 0) < (0)) __PYX_ERR(0, 24995, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceDisablePeerAccess", 1, 1, 1, i); __PYX_ERR(0, 24995, __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, 24995, __pyx_L3_error)
    }
    __pyx_v_peerDevice = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_peerDevice == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 24996, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceDisablePeerAccess", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 24995, __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.runtime.cudaDeviceDisablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_336cudaDeviceDisablePeerAccess(__pyx_self, __pyx_v_peerDevice);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_336cudaDeviceDisablePeerAccess(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_peerDevice) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceDisablePeerAccess", 0);

  /* "cuda/bindings/runtime.pyx":25017
 *     :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cuCtxDisablePeerAccess`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceDisablePeerAccess(peerDevice)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25018
 *     """
 *     with nogil:
 *         err = cyruntime.cudaDeviceDisablePeerAccess(peerDevice)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceDisablePeerAccess(__pyx_v_peerDevice); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25018, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":25017
 *     :py:obj:`~.cudaDeviceCanAccessPeer`, :py:obj:`~.cudaDeviceEnablePeerAccess`, :py:obj:`~.cuCtxDisablePeerAccess`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceDisablePeerAccess(peerDevice)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25019
 *     with nogil:
 *         err = cyruntime.cudaDeviceDisablePeerAccess(peerDevice)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 25019, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":24995
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceDisablePeerAccess(int peerDevice):
 *     """ Disables direct access to memory allocations on a peer device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceDisablePeerAccess", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25021
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsUnregisterResource(resource):
 *     """ Unregisters a graphics resource for access by CUDA.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_339cudaGraphicsUnregisterResource(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_7runtime_338cudaGraphicsUnregisterResource, "cudaGraphicsUnregisterResource(resource)\n\nUnregisters a graphics resource for access by CUDA.\n\nUnregisters the graphics resource `resource` so it is not accessible by\nCUDA unless registered again.\n\nIf `resource` is invalid then\n:py:obj:`~.cudaErrorInvalidResourceHandle` is returned.\n\nParameters\n----------\nresource : :py:obj:`~.cudaGraphicsResource_t`\n    Resource to unregister\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsD3D9RegisterResource`, :py:obj:`~.cudaGraphicsD3D10RegisterResource`, :py:obj:`~.cudaGraphicsD3D11RegisterResource`, :py:obj:`~.cudaGraphicsGLRegisterBuffer`, :py:obj:`~.cudaGraphicsGLRegisterImage`, :py:obj:`~.cuGraphicsUnregisterResource`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_339cudaGraphicsUnregisterResource = {"cudaGraphicsUnregisterResource", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_339cudaGraphicsUnregisterResource, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_338cudaGraphicsUnregisterResource};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_339cudaGraphicsUnregisterResource(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_resource = 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("cudaGraphicsUnregisterResource (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_resource,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, 25021, __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, 25021, __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, "cudaGraphicsUnregisterResource", 0) < (0)) __PYX_ERR(0, 25021, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsUnregisterResource", 1, 1, 1, i); __PYX_ERR(0, 25021, __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, 25021, __pyx_L3_error)
    }
    __pyx_v_resource = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsUnregisterResource", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25021, __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.runtime.cudaGraphicsUnregisterResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_338cudaGraphicsUnregisterResource(__pyx_self, __pyx_v_resource);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_338cudaGraphicsUnregisterResource(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource) {
  cudaGraphicsResource_t __pyx_v_cyresource;
  PyObject *__pyx_v_presource = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsUnregisterResource", 0);

  /* "cuda/bindings/runtime.pyx":25046
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_resource == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25047
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:
 *         presource = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_presource = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25046
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25048
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25049
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)             # <<<<<<<<<<<<<<
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25049, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_presource = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25048
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25051
 *         presource = int(resource)
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))             # <<<<<<<<<<<<<<
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_resource};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25051, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25051, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_presource = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25052
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsUnregisterResource(cyresource)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25052, __pyx_L1_error)
  __pyx_v_cyresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25053
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsUnregisterResource(cyresource)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25054
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     with nogil:
 *         err = cyruntime.cudaGraphicsUnregisterResource(cyresource)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsUnregisterResource(__pyx_v_cyresource); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25054, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25053
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsUnregisterResource(cyresource)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25055
 *     with nogil:
 *         err = cyruntime.cudaGraphicsUnregisterResource(cyresource)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25055, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25021
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsUnregisterResource(resource):
 *     """ Unregisters a graphics resource for access by CUDA.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsUnregisterResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_presource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25057
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags):
 *     """ Set usage flags for mapping a graphics resource.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_341cudaGraphicsResourceSetMapFlags(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_7runtime_340cudaGraphicsResourceSetMapFlags, "cudaGraphicsResourceSetMapFlags(resource, unsigned int flags)\n\nSet usage flags for mapping a graphics resource.\n\nSet `flags` for mapping the graphics resource `resource`.\n\nChanges to `flags` will take effect the next time `resource` is mapped.\nThe `flags` argument may be any of the following:\n\n- :py:obj:`~.cudaGraphicsMapFlagsNone`: Specifies no hints about how\n  `resource` will be used. It is therefore assumed that CUDA may read\n  from or write to `resource`.\n\n- :py:obj:`~.cudaGraphicsMapFlagsReadOnly`: Specifies that CUDA will\n  not write to `resource`.\n\n- :py:obj:`~.cudaGraphicsMapFlagsWriteDiscard`: Specifies CUDA will not\n  read from `resource` and will write over the entire contents of\n  `resource`, so none of the data previously stored in `resource` will\n  be preserved.\n\nIf `resource` is presently mapped for access by CUDA then\n:py:obj:`~.cudaErrorUnknown` is returned. If `flags` is not one of the\nabove values then :py:obj:`~.cudaErrorInvalidValue` is returned.\n\nParameters\n----------\nresource : :py:obj:`~.cudaGraphicsResource_t`\n    Registered resource to set flags for\nflags : unsigned int\n    Parameters for resource mapping\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cuGraphicsResourceSetMapFlags`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_341cudaGraphicsResourceSetMapFlags = {"cudaGraphicsResourceSetMapFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_341cudaGraphicsResourceSetMapFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_340cudaGraphicsResourceSetMapFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_341cudaGraphicsResourceSetMapFlags(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_resource = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsResourceSetMapFlags (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_resource,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 25057, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25057, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 25057, __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, "cudaGraphicsResourceSetMapFlags", 0) < (0)) __PYX_ERR(0, 25057, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceSetMapFlags", 1, 2, 2, i); __PYX_ERR(0, 25057, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 25057, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25057, __pyx_L3_error)
    }
    __pyx_v_resource = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25058, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceSetMapFlags", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 25057, __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.runtime.cudaGraphicsResourceSetMapFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_340cudaGraphicsResourceSetMapFlags(__pyx_self, __pyx_v_resource, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_340cudaGraphicsResourceSetMapFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_flags) {
  cudaGraphicsResource_t __pyx_v_cyresource;
  PyObject *__pyx_v_presource = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsResourceSetMapFlags", 0);

  /* "cuda/bindings/runtime.pyx":25099
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_resource == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25100
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:
 *         presource = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_presource = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25099
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25101
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25102
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)             # <<<<<<<<<<<<<<
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_presource = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25101
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25104
 *         presource = int(resource)
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))             # <<<<<<<<<<<<<<
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_resource};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25104, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25104, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_presource = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25105
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceSetMapFlags(cyresource, flags)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25105, __pyx_L1_error)
  __pyx_v_cyresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25106
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsResourceSetMapFlags(cyresource, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25107
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceSetMapFlags(cyresource, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceSetMapFlags(__pyx_v_cyresource, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25107, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25106
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsResourceSetMapFlags(cyresource, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25108
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceSetMapFlags(cyresource, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25108, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25057
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags):
 *     """ Set usage flags for mapping a graphics resource.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResourceSetMapFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_presource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25110
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsMapResources(int count, resources, stream):
 *     """ Map graphics resources for access by CUDA.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_343cudaGraphicsMapResources(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_7runtime_342cudaGraphicsMapResources, "cudaGraphicsMapResources(int count, resources, stream)\n\nMap graphics resources for access by CUDA.\n\nMaps the `count` graphics resources in `resources` for access by CUDA.\n\nThe resources in `resources` may be accessed by CUDA until they are\nunmapped. The graphics API from which `resources` were registered\nshould not access any resources while they are mapped by CUDA. If an\napplication does so, the results are undefined.\n\nThis function provides the synchronization guarantee that any graphics\ncalls issued before :py:obj:`~.cudaGraphicsMapResources()` will\ncomplete before any subsequent CUDA work issued in `stream` begins.\n\nIf `resources` contains any duplicate entries then\n:py:obj:`~.cudaErrorInvalidResourceHandle` is returned. If any of\n`resources` are presently mapped for access by CUDA then\n:py:obj:`~.cudaErrorUnknown` is returned.\n\nParameters\n----------\ncount : int\n    Number of resources to map\nresources : :py:obj:`~.cudaGraphicsResource_t`\n    Resources to map for CUDA\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream for synchronization\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cudaGraphicsUnmapResources`, :py:obj:`~.cuGraphicsMapResources`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_343cudaGraphicsMapResources = {"cudaGraphicsMapResources", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_343cudaGraphicsMapResources, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_342cudaGraphicsMapResources};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_343cudaGraphicsMapResources(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
) {
  int __pyx_v_count;
  PyObject *__pyx_v_resources = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsMapResources (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_count,&__pyx_mstate_global->__pyx_n_u_resources,&__pyx_mstate_global->__pyx_n_u_stream,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, 25110, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25110, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25110, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 25110, __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, "cudaGraphicsMapResources", 0) < (0)) __PYX_ERR(0, 25110, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsMapResources", 1, 3, 3, i); __PYX_ERR(0, 25110, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 25110, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25110, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25110, __pyx_L3_error)
    }
    __pyx_v_count = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25111, __pyx_L3_error)
    __pyx_v_resources = values[1];
    __pyx_v_stream = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsMapResources", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 25110, __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.runtime.cudaGraphicsMapResources", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_342cudaGraphicsMapResources(__pyx_self, __pyx_v_count, __pyx_v_resources, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_342cudaGraphicsMapResources(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_count, PyObject *__pyx_v_resources, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaGraphicsResource_t *__pyx_v_cyresources;
  PyObject *__pyx_v_presources = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsMapResources", 0);

  /* "cuda/bindings/runtime.pyx":25149
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25150
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25149
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25151
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25152
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25152, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":25151
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25154
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25154, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25154, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25155
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
 *     if resources is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25155, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":25157
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
 *     if resources is None:             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_resources == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25158
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
 *     if resources is None:
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
 *         presources = resources.getPtr()
*/
    __pyx_v_cyresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":25157
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
 *     if resources is None:             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":25159
 *     if resources is None:
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resources, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25160
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
 *         presources = resources.getPtr()             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
 *     elif isinstance(resources, (int)):
*/
    __pyx_t_3 = __pyx_v_resources;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25160, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_v_presources = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":25161
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources             # <<<<<<<<<<<<<<
 *     elif isinstance(resources, (int)):
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_presources); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25161, __pyx_L1_error)
    __pyx_v_cyresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":25159
 *     if resources is None:
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":25162
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
 *     elif isinstance(resources, (int)):             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_resources); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":25163
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
 *     elif isinstance(resources, (int)):
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_resources); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25163, __pyx_L1_error)
    __pyx_v_cyresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":25162
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
 *     elif isinstance(resources, (int)):             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":25165
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources
 *     else:
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsMapResources(count, cyresources, cystream)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_7 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_resources))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_resources_is_not_instan, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25165, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 25165, __pyx_L1_error)
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":25166
 *     else:
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsMapResources(count, cyresources, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25167
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))
 *     with nogil:
 *         err = cyruntime.cudaGraphicsMapResources(count, cyresources, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsMapResources(__pyx_v_count, __pyx_v_cyresources, __pyx_v_cystream); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25167, __pyx_L8_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":25166
 *     else:
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsMapResources(count, cyresources, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25168
 *     with nogil:
 *         err = cyruntime.cudaGraphicsMapResources(count, cyresources, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25168, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25110
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsMapResources(int count, resources, stream):
 *     """ Map graphics resources for access by CUDA.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsMapResources", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_presources);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25170
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsUnmapResources(int count, resources, stream):
 *     """ Unmap graphics resources.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_345cudaGraphicsUnmapResources(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_7runtime_344cudaGraphicsUnmapResources, "cudaGraphicsUnmapResources(int count, resources, stream)\n\nUnmap graphics resources.\n\nUnmaps the `count` graphics resources in `resources`.\n\nOnce unmapped, the resources in `resources` may not be accessed by CUDA\nuntil they are mapped again.\n\nThis function provides the synchronization guarantee that any CUDA work\nissued in `stream` before :py:obj:`~.cudaGraphicsUnmapResources()` will\ncomplete before any subsequently issued graphics work begins.\n\nIf `resources` contains any duplicate entries then\n:py:obj:`~.cudaErrorInvalidResourceHandle` is returned. If any of\n`resources` are not presently mapped for access by CUDA then\n:py:obj:`~.cudaErrorUnknown` is returned.\n\nParameters\n----------\ncount : int\n    Number of resources to unmap\nresources : :py:obj:`~.cudaGraphicsResource_t`\n    Resources to unmap\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream for synchronization\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cuGraphicsUnmapResources`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_345cudaGraphicsUnmapResources = {"cudaGraphicsUnmapResources", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_345cudaGraphicsUnmapResources, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_344cudaGraphicsUnmapResources};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_345cudaGraphicsUnmapResources(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
) {
  int __pyx_v_count;
  PyObject *__pyx_v_resources = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsUnmapResources (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_count,&__pyx_mstate_global->__pyx_n_u_resources,&__pyx_mstate_global->__pyx_n_u_stream,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, 25170, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25170, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25170, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 25170, __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, "cudaGraphicsUnmapResources", 0) < (0)) __PYX_ERR(0, 25170, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsUnmapResources", 1, 3, 3, i); __PYX_ERR(0, 25170, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 25170, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25170, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25170, __pyx_L3_error)
    }
    __pyx_v_count = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_count == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25171, __pyx_L3_error)
    __pyx_v_resources = values[1];
    __pyx_v_stream = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsUnmapResources", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 25170, __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.runtime.cudaGraphicsUnmapResources", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_344cudaGraphicsUnmapResources(__pyx_self, __pyx_v_count, __pyx_v_resources, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_344cudaGraphicsUnmapResources(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_count, PyObject *__pyx_v_resources, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaGraphicsResource_t *__pyx_v_cyresources;
  PyObject *__pyx_v_presources = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsUnmapResources", 0);

  /* "cuda/bindings/runtime.pyx":25207
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25208
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25207
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25209
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25210
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":25209
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25212
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25212, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25213
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
 *     if resources is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25213, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":25215
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
 *     if resources is None:             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_resources == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25216
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
 *     if resources is None:
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
 *         presources = resources.getPtr()
*/
    __pyx_v_cyresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":25215
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphicsResource_t *cyresources
 *     if resources is None:             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":25217
 *     if resources is None:
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resources, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25218
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
 *         presources = resources.getPtr()             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
 *     elif isinstance(resources, (int)):
*/
    __pyx_t_3 = __pyx_v_resources;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25218, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_v_presources = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":25219
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources             # <<<<<<<<<<<<<<
 *     elif isinstance(resources, (int)):
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_presources); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25219, __pyx_L1_error)
    __pyx_v_cyresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":25217
 *     if resources is None:
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(resources, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":25220
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
 *     elif isinstance(resources, (int)):             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_resources); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":25221
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
 *     elif isinstance(resources, (int)):
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_resources); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25221, __pyx_L1_error)
    __pyx_v_cyresources = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":25220
 *         presources = resources.getPtr()
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>presources
 *     elif isinstance(resources, (int)):             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":25223
 *         cyresources = <cyruntime.cudaGraphicsResource_t*><void_ptr>resources
 *     else:
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsUnmapResources(count, cyresources, cystream)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_7 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_resources))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_resources_is_not_instan, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25223, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 25223, __pyx_L1_error)
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":25224
 *     else:
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsUnmapResources(count, cyresources, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25225
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))
 *     with nogil:
 *         err = cyruntime.cudaGraphicsUnmapResources(count, cyresources, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsUnmapResources(__pyx_v_count, __pyx_v_cyresources, __pyx_v_cystream); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25225, __pyx_L8_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":25224
 *     else:
 *         raise TypeError("Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(resources)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsUnmapResources(count, cyresources, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25226
 *     with nogil:
 *         err = cyruntime.cudaGraphicsUnmapResources(count, cyresources, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25226, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25170
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsUnmapResources(int count, resources, stream):
 *     """ Unmap graphics resources.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsUnmapResources", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_presources);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25228
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedPointer(resource):
 *     """ Get an device pointer through which to access a mapped graphics resource.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_347cudaGraphicsResourceGetMappedPointer(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_7runtime_346cudaGraphicsResourceGetMappedPointer, "cudaGraphicsResourceGetMappedPointer(resource)\n\nGet an device pointer through which to access a mapped graphics resource.\n\nReturns in `*devPtr` a pointer through which the mapped graphics\nresource `resource` may be accessed. Returns in `*size` the size of the\nmemory in bytes which may be accessed from that pointer. The value set\nin `devPtr` may change every time that `resource` is mapped.\n\nIf `resource` is not a buffer then it cannot be accessed via a pointer\nand :py:obj:`~.cudaErrorUnknown` is returned. If `resource` is not\nmapped then :py:obj:`~.cudaErrorUnknown` is returned.\n\nParameters\n----------\nresource : :py:obj:`~.cudaGraphicsResource_t`\n    None\n\nReturns\n-------\ncudaError_t\n\ndevPtr : Any\n    None\nsize : int\n    None");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_347cudaGraphicsResourceGetMappedPointer = {"cudaGraphicsResourceGetMappedPointer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_347cudaGraphicsResourceGetMappedPointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_346cudaGraphicsResourceGetMappedPointer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_347cudaGraphicsResourceGetMappedPointer(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_resource = 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("cudaGraphicsResourceGetMappedPointer (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_resource,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, 25228, __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, 25228, __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, "cudaGraphicsResourceGetMappedPointer", 0) < (0)) __PYX_ERR(0, 25228, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedPointer", 1, 1, 1, i); __PYX_ERR(0, 25228, __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, 25228, __pyx_L3_error)
    }
    __pyx_v_resource = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedPointer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25228, __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.runtime.cudaGraphicsResourceGetMappedPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_346cudaGraphicsResourceGetMappedPointer(__pyx_self, __pyx_v_resource);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_346cudaGraphicsResourceGetMappedPointer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource) {
  cudaGraphicsResource_t __pyx_v_cyresource;
  PyObject *__pyx_v_presource = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_devPtr;
  size_t __pyx_v_size;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsResourceGetMappedPointer", 0);

  /* "cuda/bindings/runtime.pyx":25256
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_resource == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25257
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:
 *         presource = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_presource = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25256
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25258
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25259
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)             # <<<<<<<<<<<<<<
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_presource = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25258
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25261
 *         presource = int(resource)
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))             # <<<<<<<<<<<<<<
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef void_ptr devPtr = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_resource};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25261, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_presource = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25262
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource             # <<<<<<<<<<<<<<
 *     cdef void_ptr devPtr = 0
 *     cdef size_t size = 0
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25262, __pyx_L1_error)
  __pyx_v_cyresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25263
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef void_ptr devPtr = 0             # <<<<<<<<<<<<<<
 *     cdef size_t size = 0
 *     with nogil:
*/
  __pyx_v_devPtr = 0;

  /* "cuda/bindings/runtime.pyx":25264
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef void_ptr devPtr = 0
 *     cdef size_t size = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedPointer(<void**>&devPtr, &size, cyresource)
*/
  __pyx_v_size = 0;

  /* "cuda/bindings/runtime.pyx":25265
 *     cdef void_ptr devPtr = 0
 *     cdef size_t size = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsResourceGetMappedPointer(<void**>&devPtr, &size, cyresource)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25266
 *     cdef size_t size = 0
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedPointer(<void**>&devPtr, &size, cyresource)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedPointer(((void **)(&__pyx_v_devPtr)), (&__pyx_v_size), __pyx_v_cyresource); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25266, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25265
 *     cdef void_ptr devPtr = 0
 *     cdef size_t size = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsResourceGetMappedPointer(<void**>&devPtr, &size, cyresource)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25267
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedPointer(<void**>&devPtr, &size, cyresource)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], devPtr, size)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25268
 *         err = cyruntime.cudaGraphicsResourceGetMappedPointer(<void**>&devPtr, &size, cyresource)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], devPtr, size)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25268, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25268, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25268, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25268, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25268, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25268, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None) != (0)) __PYX_ERR(0, 25268, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25267
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedPointer(<void**>&devPtr, &size, cyresource)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], devPtr, size)
*/
  }

  /* "cuda/bindings/runtime.pyx":25269
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], devPtr, size)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_devPtr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_PyLong_FromSize_t(__pyx_v_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 25269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25269, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 25269, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_2) != (0)) __PYX_ERR(0, 25269, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_7 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25228
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedPointer(resource):
 *     """ Get an device pointer through which to access a mapped graphics resource.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResourceGetMappedPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_presource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25271
 *     return (_dict_cudaError_t[err], devPtr, size)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel):
 *     """ Get an array through which to access a subresource of a mapped graphics resource.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_349cudaGraphicsSubResourceGetMappedArray(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_7runtime_348cudaGraphicsSubResourceGetMappedArray, "cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel)\n\nGet an array through which to access a subresource of a mapped graphics resource.\n\nReturns in `*array` an array through which the subresource of the\nmapped graphics resource `resource` which corresponds to array index\n`arrayIndex` and mipmap level `mipLevel` may be accessed. The value set\nin `array` may change every time that `resource` is mapped.\n\nIf `resource` is not a texture then it cannot be accessed via an array\nand :py:obj:`~.cudaErrorUnknown` is returned. If `arrayIndex` is not a\nvalid array index for `resource` then :py:obj:`~.cudaErrorInvalidValue`\nis returned. If `mipLevel` is not a valid mipmap level for `resource`\nthen :py:obj:`~.cudaErrorInvalidValue` is returned. If `resource` is\nnot mapped then :py:obj:`~.cudaErrorUnknown` is returned.\n\nParameters\n----------\nresource : :py:obj:`~.cudaGraphicsResource_t`\n    Mapped resource to access\narrayIndex : unsigned int\n    Array index for array textures or cubemap face index as defined by\n    :py:obj:`~.cudaGraphicsCubeFace` for cubemap textures for the\n    subresource to access\nmipLevel : unsigned int\n    Mipmap level for the subresource to access\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\narray : :py:obj:`~.cudaArray_t`\n    Returned array through which a subresource of `resource` may be\n    accessed\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cuGraphicsSubResourceGetMappedArray`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_349cudaGraphicsSubResourceGetMappedArray = {"cudaGraphicsSubResourceGetMappedArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_349cudaGraphicsSubResourceGetMappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_348cudaGraphicsSubResourceGetMappedArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_349cudaGraphicsSubResourceGetMappedArray(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_resource = 0;
  unsigned int __pyx_v_arrayIndex;
  unsigned int __pyx_v_mipLevel;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsSubResourceGetMappedArray (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_resource,&__pyx_mstate_global->__pyx_n_u_arrayIndex,&__pyx_mstate_global->__pyx_n_u_mipLevel,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, 25271, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25271, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25271, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 25271, __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, "cudaGraphicsSubResourceGetMappedArray", 0) < (0)) __PYX_ERR(0, 25271, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsSubResourceGetMappedArray", 1, 3, 3, i); __PYX_ERR(0, 25271, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 25271, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25271, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25271, __pyx_L3_error)
    }
    __pyx_v_resource = values[0];
    __pyx_v_arrayIndex = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_arrayIndex == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25272, __pyx_L3_error)
    __pyx_v_mipLevel = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_mipLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25272, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsSubResourceGetMappedArray", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 25271, __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.runtime.cudaGraphicsSubResourceGetMappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_348cudaGraphicsSubResourceGetMappedArray(__pyx_self, __pyx_v_resource, __pyx_v_arrayIndex, __pyx_v_mipLevel);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_348cudaGraphicsSubResourceGetMappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_arrayIndex, unsigned int __pyx_v_mipLevel) {
  cudaGraphicsResource_t __pyx_v_cyresource;
  PyObject *__pyx_v_presource = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_array = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsSubResourceGetMappedArray", 0);

  /* "cuda/bindings/runtime.pyx":25311
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_resource == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25312
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:
 *         presource = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_presource = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25311
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25313
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25314
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)             # <<<<<<<<<<<<<<
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25314, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_presource = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25313
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25316
 *         presource = int(resource)
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))             # <<<<<<<<<<<<<<
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaArray_t array = cudaArray_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_resource};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25316, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_presource = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25317
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource             # <<<<<<<<<<<<<<
 *     cdef cudaArray_t array = cudaArray_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25317, __pyx_L1_error)
  __pyx_v_cyresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25318
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaArray_t array = cudaArray_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsSubResourceGetMappedArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cyresource, arrayIndex, mipLevel)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25318, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":25319
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaArray_t array = cudaArray_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsSubResourceGetMappedArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cyresource, arrayIndex, mipLevel)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25320
 *     cdef cudaArray_t array = cudaArray_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphicsSubResourceGetMappedArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cyresource, arrayIndex, mipLevel)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsSubResourceGetMappedArray(((cudaArray_t *)__pyx_v_array->_pvt_ptr), __pyx_v_cyresource, __pyx_v_arrayIndex, __pyx_v_mipLevel); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25320, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25319
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaArray_t array = cudaArray_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsSubResourceGetMappedArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cyresource, arrayIndex, mipLevel)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25321
 *     with nogil:
 *         err = cyruntime.cudaGraphicsSubResourceGetMappedArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cyresource, arrayIndex, mipLevel)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25322
 *         err = cyruntime.cudaGraphicsSubResourceGetMappedArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cyresource, arrayIndex, mipLevel)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], array)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25322, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25322, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25321
 *     with nogil:
 *         err = cyruntime.cudaGraphicsSubResourceGetMappedArray(<cyruntime.cudaArray_t*>array._pvt_ptr, cyresource, arrayIndex, mipLevel)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)
*/
  }

  /* "cuda/bindings/runtime.pyx":25323
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], array)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25323, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_array);
  __Pyx_GIVEREF((PyObject *)__pyx_v_array);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_array)) != (0)) __PYX_ERR(0, 25323, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25271
 *     return (_dict_cudaError_t[err], devPtr, size)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel):
 *     """ Get an array through which to access a subresource of a mapped graphics resource.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsSubResourceGetMappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_presource);
  __Pyx_XDECREF((PyObject *)__pyx_v_array);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25325
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedMipmappedArray(resource):
 *     """ Get a mipmapped array through which to access a mapped graphics resource.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_351cudaGraphicsResourceGetMappedMipmappedArray(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_7runtime_350cudaGraphicsResourceGetMappedMipmappedArray, "cudaGraphicsResourceGetMappedMipmappedArray(resource)\n\nGet a mipmapped array through which to access a mapped graphics resource.\n\nReturns in `*mipmappedArray` a mipmapped array through which the mapped\ngraphics resource `resource` may be accessed. The value set in\n`mipmappedArray` may change every time that `resource` is mapped.\n\nIf `resource` is not a texture then it cannot be accessed via an array\nand :py:obj:`~.cudaErrorUnknown` is returned. If `resource` is not\nmapped then :py:obj:`~.cudaErrorUnknown` is returned.\n\nParameters\n----------\nresource : :py:obj:`~.cudaGraphicsResource_t`\n    Mapped resource to access\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\nmipmappedArray : :py:obj:`~.cudaMipmappedArray_t`\n    Returned mipmapped array through which `resource` may be accessed\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cuGraphicsResourceGetMappedMipmappedArray`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_351cudaGraphicsResourceGetMappedMipmappedArray = {"cudaGraphicsResourceGetMappedMipmappedArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_351cudaGraphicsResourceGetMappedMipmappedArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_350cudaGraphicsResourceGetMappedMipmappedArray};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_351cudaGraphicsResourceGetMappedMipmappedArray(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_resource = 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("cudaGraphicsResourceGetMappedMipmappedArray (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_resource,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, 25325, __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, 25325, __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, "cudaGraphicsResourceGetMappedMipmappedArray", 0) < (0)) __PYX_ERR(0, 25325, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedMipmappedArray", 1, 1, 1, i); __PYX_ERR(0, 25325, __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, 25325, __pyx_L3_error)
    }
    __pyx_v_resource = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedMipmappedArray", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25325, __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.runtime.cudaGraphicsResourceGetMappedMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_350cudaGraphicsResourceGetMappedMipmappedArray(__pyx_self, __pyx_v_resource);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_350cudaGraphicsResourceGetMappedMipmappedArray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource) {
  cudaGraphicsResource_t __pyx_v_cyresource;
  PyObject *__pyx_v_presource = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_mipmappedArray = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsResourceGetMappedMipmappedArray", 0);

  /* "cuda/bindings/runtime.pyx":25354
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_resource == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25355
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:
 *         presource = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_presource = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25354
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25356
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25357
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)             # <<<<<<<<<<<<<<
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_presource = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25356
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25359
 *         presource = int(resource)
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))             # <<<<<<<<<<<<<<
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_resource};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25359, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25359, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_presource = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25360
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource             # <<<<<<<<<<<<<<
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25360, __pyx_L1_error)
  __pyx_v_cyresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25361
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cyresource)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25361, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_mipmappedArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":25362
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsResourceGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cyresource)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25363
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cyresource)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedMipmappedArray(((cudaMipmappedArray_t *)__pyx_v_mipmappedArray->_pvt_ptr), __pyx_v_cyresource); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25363, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25362
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaMipmappedArray_t mipmappedArray = cudaMipmappedArray_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsResourceGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cyresource)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25364
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cyresource)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmappedArray)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25365
 *         err = cyruntime.cudaGraphicsResourceGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cyresource)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], mipmappedArray)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25365, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25365, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25364
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedMipmappedArray(<cyruntime.cudaMipmappedArray_t*>mipmappedArray._pvt_ptr, cyresource)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmappedArray)
*/
  }

  /* "cuda/bindings/runtime.pyx":25366
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], mipmappedArray)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25366, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_mipmappedArray);
  __Pyx_GIVEREF((PyObject *)__pyx_v_mipmappedArray);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_mipmappedArray)) != (0)) __PYX_ERR(0, 25366, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25325
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedMipmappedArray(resource):
 *     """ Get a mipmapped array through which to access a mapped graphics resource.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResourceGetMappedMipmappedArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_presource);
  __Pyx_XDECREF((PyObject *)__pyx_v_mipmappedArray);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25368
 *     return (_dict_cudaError_t[err], mipmappedArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetChannelDesc(array):
 *     """ Get the channel descriptor of an array.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_353cudaGetChannelDesc(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_7runtime_352cudaGetChannelDesc, "cudaGetChannelDesc(array)\n\nGet the channel descriptor of an array.\n\nReturns in `*desc` the channel descriptor of the CUDA array `array`.\n\nParameters\n----------\narray : :py:obj:`~.cudaArray_const_t`\n    Memory array on device\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ndesc : :py:obj:`~.cudaChannelFormatDesc`\n    Channel format\n\nSee Also\n--------\n:py:obj:`~.cudaCreateChannelDesc (C API)`, :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cudaCreateSurfaceObject`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_353cudaGetChannelDesc = {"cudaGetChannelDesc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_353cudaGetChannelDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_352cudaGetChannelDesc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_353cudaGetChannelDesc(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_array = 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("cudaGetChannelDesc (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_array_2,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, 25368, __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, 25368, __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, "cudaGetChannelDesc", 0) < (0)) __PYX_ERR(0, 25368, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetChannelDesc", 1, 1, 1, i); __PYX_ERR(0, 25368, __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, 25368, __pyx_L3_error)
    }
    __pyx_v_array = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetChannelDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25368, __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.runtime.cudaGetChannelDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_352cudaGetChannelDesc(__pyx_self, __pyx_v_array);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_352cudaGetChannelDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_array) {
  cudaArray_const_t __pyx_v_cyarray;
  PyObject *__pyx_v_parray = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_desc = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetChannelDesc", 0);

  /* "cuda/bindings/runtime.pyx":25391
 *     """
 *     cdef cyruntime.cudaArray_const_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_const_t,)):
*/
  __pyx_t_1 = (__pyx_v_array == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25392
 *     cdef cyruntime.cudaArray_const_t cyarray
 *     if array is None:
 *         parray = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(array, (cudaArray_const_t,)):
 *         parray = int(array)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_parray = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25391
 *     """
 *     cdef cyruntime.cudaArray_const_t cyarray
 *     if array is None:             # <<<<<<<<<<<<<<
 *         parray = 0
 *     elif isinstance(array, (cudaArray_const_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25393
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_array, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25394
 *         parray = 0
 *     elif isinstance(array, (cudaArray_const_t,)):
 *         parray = int(array)             # <<<<<<<<<<<<<<
 *     else:
 *         parray = int(cudaArray_const_t(array))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_array); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_parray = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25393
 *     if array is None:
 *         parray = 0
 *     elif isinstance(array, (cudaArray_const_t,)):             # <<<<<<<<<<<<<<
 *         parray = int(array)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25396
 *         parray = int(array)
 *     else:
 *         parray = int(cudaArray_const_t(array))             # <<<<<<<<<<<<<<
 *     cyarray = <cyruntime.cudaArray_const_t><void_ptr>parray
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_array};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25396, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_parray = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25397
 *     else:
 *         parray = int(cudaArray_const_t(array))
 *     cyarray = <cyruntime.cudaArray_const_t><void_ptr>parray             # <<<<<<<<<<<<<<
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_parray); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25397, __pyx_L1_error)
  __pyx_v_cyarray = ((cudaArray_const_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25398
 *         parray = int(cudaArray_const_t(array))
 *     cyarray = <cyruntime.cudaArray_const_t><void_ptr>parray
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetChannelDesc(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, cyarray)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25398, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":25399
 *     cyarray = <cyruntime.cudaArray_const_t><void_ptr>parray
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetChannelDesc(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25400
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
 *     with nogil:
 *         err = cyruntime.cudaGetChannelDesc(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, cyarray)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetChannelDesc(((struct cudaChannelFormatDesc *)__pyx_v_desc->_pvt_ptr), __pyx_v_cyarray); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25400, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25399
 *     cyarray = <cyruntime.cudaArray_const_t><void_ptr>parray
 *     cdef cudaChannelFormatDesc desc = cudaChannelFormatDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetChannelDesc(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25401
 *     with nogil:
 *         err = cyruntime.cudaGetChannelDesc(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], desc)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25402
 *         err = cyruntime.cudaGetChannelDesc(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], desc)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25402, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25402, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25401
 *     with nogil:
 *         err = cyruntime.cudaGetChannelDesc(<cyruntime.cudaChannelFormatDesc*>desc._pvt_ptr, cyarray)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], desc)
*/
  }

  /* "cuda/bindings/runtime.pyx":25403
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], desc)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25403, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_desc);
  __Pyx_GIVEREF((PyObject *)__pyx_v_desc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_desc)) != (0)) __PYX_ERR(0, 25403, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25368
 *     return (_dict_cudaError_t[err], mipmappedArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetChannelDesc(array):
 *     """ Get the channel descriptor of an array.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetChannelDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parray);
  __Pyx_XDECREF((PyObject *)__pyx_v_desc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25405
 *     return (_dict_cudaError_t[err], desc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateChannelDesc(int x, int y, int z, int w, f not None : cudaChannelFormatKind):
 *     """ Returns a channel descriptor using the specified format.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_355cudaCreateChannelDesc(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_7runtime_354cudaCreateChannelDesc, "cudaCreateChannelDesc(int x, int y, int z, int w, f: cudaChannelFormatKind)\n\nReturns a channel descriptor using the specified format.\n\nReturns a channel descriptor with format `f` and number of bits of each\ncomponent `x`, `y`, `z`, and `w`. The :py:obj:`~.cudaChannelFormatDesc`\nis defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere :py:obj:`~.cudaChannelFormatKind` is one of\n:py:obj:`~.cudaChannelFormatKindSigned`,\n:py:obj:`~.cudaChannelFormatKindUnsigned`, or\n:py:obj:`~.cudaChannelFormatKindFloat`.\n\nParameters\n----------\nx : int\n    X component\ny : int\n    Y component\nz : int\n    Z component\nw : int\n    W component\nf : :py:obj:`~.cudaChannelFormatKind`\n    Channel format\n\nReturns\n-------\ncudaError_t.cudaSuccess\n    cudaError_t.cudaSuccess\n:py:obj:`~.cudaChannelFormatDesc`\n    Channel descriptor with format `f`\n\nSee Also\n--------\ncudaCreateChannelDesc (C++ API), :py:obj:`~.cudaGetChannelDesc`, :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cudaCreateSurfaceObject`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_355cudaCreateChannelDesc = {"cudaCreateChannelDesc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_355cudaCreateChannelDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_354cudaCreateChannelDesc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_355cudaCreateChannelDesc(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
) {
  int __pyx_v_x;
  int __pyx_v_y;
  int __pyx_v_z;
  int __pyx_v_w;
  PyObject *__pyx_v_f = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaCreateChannelDesc (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_x_2,&__pyx_mstate_global->__pyx_n_u_y_2,&__pyx_mstate_global->__pyx_n_u_z_2,&__pyx_mstate_global->__pyx_n_u_w_2,&__pyx_mstate_global->__pyx_n_u_f_2,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, 25405, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 25405, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 25405, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25405, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25405, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 25405, __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, "cudaCreateChannelDesc", 0) < (0)) __PYX_ERR(0, 25405, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaCreateChannelDesc", 1, 5, 5, i); __PYX_ERR(0, 25405, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 25405, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25405, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25405, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 25405, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 25405, __pyx_L3_error)
    }
    __pyx_v_x = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_x == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25406, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_y == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25406, __pyx_L3_error)
    __pyx_v_z = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_z == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25406, __pyx_L3_error)
    __pyx_v_w = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_w == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 25406, __pyx_L3_error)
    __pyx_v_f = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaCreateChannelDesc", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 25405, __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.runtime.cudaCreateChannelDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_f) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "f"); __PYX_ERR(0, 25406, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_354cudaCreateChannelDesc(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w, __pyx_v_f);

  /* 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_7runtime_354cudaCreateChannelDesc(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_x, int __pyx_v_y, int __pyx_v_z, int __pyx_v_w, PyObject *__pyx_v_f) {
  enum cudaChannelFormatKind __pyx_v_cyf;
  struct cudaChannelFormatDesc __pyx_v_err;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *__pyx_v_wrapper = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaChannelFormatKind __pyx_t_2;
  struct cudaChannelFormatDesc __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaCreateChannelDesc", 0);

  /* "cuda/bindings/runtime.pyx":25444
 *     cudaCreateChannelDesc (C++ API), :py:obj:`~.cudaGetChannelDesc`, :py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cudaCreateSurfaceObject`
 *     """
 *     cdef cyruntime.cudaChannelFormatKind cyf = f.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaCreateChannelDesc(x, y, z, w, cyf)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaChannelFormatKind)__Pyx_PyLong_As_enum__cudaChannelFormatKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 25444, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyf = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":25445
 *     """
 *     cdef cyruntime.cudaChannelFormatKind cyf = f.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaCreateChannelDesc(x, y, z, w, cyf)
 *     cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc()
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25446
 *     cdef cyruntime.cudaChannelFormatKind cyf = f.value
 *     with nogil:
 *         err = cyruntime.cudaCreateChannelDesc(x, y, z, w, cyf)             # <<<<<<<<<<<<<<
 *     cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc()
 *     wrapper._pvt_ptr[0] = err
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaCreateChannelDesc(__pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w, __pyx_v_cyf); if (unlikely(__Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25446, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":25445
 *     """
 *     cdef cyruntime.cudaChannelFormatKind cyf = f.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaCreateChannelDesc(x, y, z, w, cyf)
 *     cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc()
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25447
 *     with nogil:
 *         err = cyruntime.cudaCreateChannelDesc(x, y, z, w, cyf)
 *     cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc()             # <<<<<<<<<<<<<<
 *     wrapper._pvt_ptr[0] = err
 *     return (cudaError_t.cudaSuccess, wrapper)
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25447, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_wrapper = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":25448
 *         err = cyruntime.cudaCreateChannelDesc(x, y, z, w, cyf)
 *     cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc()
 *     wrapper._pvt_ptr[0] = err             # <<<<<<<<<<<<<<
 *     return (cudaError_t.cudaSuccess, wrapper)
 * 
*/
  (__pyx_v_wrapper->_pvt_ptr[0]) = __pyx_v_err;

  /* "cuda/bindings/runtime.pyx":25449
 *     cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc()
 *     wrapper._pvt_ptr[0] = err
 *     return (cudaError_t.cudaSuccess, wrapper)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_cudaSuccess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 25449, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __Pyx_GIVEREF((PyObject *)__pyx_v_wrapper);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_wrapper)) != (0)) __PYX_ERR(0, 25449, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25405
 *     return (_dict_cudaError_t[err], desc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateChannelDesc(int x, int y, int z, int w, f not None : cudaChannelFormatKind):
 *     """ Returns a channel descriptor using the specified format.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaCreateChannelDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25451
 *     return (cudaError_t.cudaSuccess, wrapper)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateTextureObject(pResDesc : Optional[cudaResourceDesc], pTexDesc : Optional[cudaTextureDesc], pResViewDesc : Optional[cudaResourceViewDesc]):
 *     """ Creates a texture object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_357cudaCreateTextureObject(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_7runtime_356cudaCreateTextureObject, "cudaCreateTextureObject(cudaResourceDesc pResDesc: Optional[cudaResourceDesc], cudaTextureDesc pTexDesc: Optional[cudaTextureDesc], cudaResourceViewDesc pResViewDesc: Optional[cudaResourceViewDesc])\n\nCreates a texture object.\n\nCreates a texture object and returns it in `pTexObject`. `pResDesc`\ndescribes the data to texture from. `pTexDesc` describes how the data\nshould be sampled. `pResViewDesc` is an optional argument that\nspecifies an alternate format for the data described by `pResDesc`, and\nalso describes the subresource region to restrict access to when\ntexturing. `pResViewDesc` can only be specified if the type of resource\nis a CUDA array or a CUDA mipmapped array not in a block compressed\nformat.\n\nTexture objects are only supported on devices of compute capability 3.0\nor higher. Additionally, a texture object is an opaque value, and, as\nsuch, should only be accessed through CUDA API calls.\n\nThe :py:obj:`~.cudaResourceDesc` structure is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere:\n\n- :py:obj:`~.cudaResourceDesc.resType` specifies the type of resource\n  to texture from. CUresourceType is defined as:\n\n- **View CUDA Toolkit Documentation for a C++ code example**\n\nIf :py:obj:`~.cudaResourceDesc.resType` is set to\n:py:obj:`~.cudaResourceTypeArray`,\n:py:obj:`~.cudaResourceDesc`::res::array::array must be set to a valid\nCUDA array handle.\n\nIf :py:obj:`~.cudaResourceDesc.resType` is set to\n:py:obj:`~.cudaResourceTypeMipmappedArray`,\n:py:obj:`~.cudaResourceDesc`::res::mipmap::mipmap must be set to a\nvalid CUDA mipmapped array handle and\n:py:obj:`~.cudaTextureDesc.normalizedCoords` must be set to true.\n\nIf :py:obj:`~.cudaResourceDesc.resType` is set to\n:py:obj:`~.cudaResourceTypeLinear`,\n:py:obj:`~.cudaResourceDesc`::res::linear::devPtr must be set to a\nvalid device pointer, that is aligned to\n:py:obj:`~.cudaDeviceProp.textureAlignment`.\n:py:obj:`~.cudaResourceDesc`::res::linear::desc describ""es the format\nand the number of components per array element.\n:py:obj:`~.cudaResourceDesc`::res::linear::sizeInBytes specifies the\nsize of the array in bytes. The total number of elements in the linear\naddress range cannot exceed\n:py:obj:`~.cudaDeviceGetTexture1DLinearMaxWidth()`. The number of\nelements is computed as (sizeInBytes / sizeof(desc)).\n\nIf :py:obj:`~.cudaResourceDesc.resType` is set to\n:py:obj:`~.cudaResourceTypePitch2D`,\n:py:obj:`~.cudaResourceDesc`::res::pitch2D::devPtr must be set to a\nvalid device pointer, that is aligned to\n:py:obj:`~.cudaDeviceProp.textureAlignment`.\n:py:obj:`~.cudaResourceDesc`::res::pitch2D::desc describes the format\nand the number of components per array element.\n:py:obj:`~.cudaResourceDesc`::res::pitch2D::width and\n:py:obj:`~.cudaResourceDesc`::res::pitch2D::height specify the width\nand height of the array in elements, and cannot exceed\n:py:obj:`~.cudaDeviceProp.maxTexture2DLinear`[0] and\n:py:obj:`~.cudaDeviceProp.maxTexture2DLinear`[1] respectively.\n:py:obj:`~.cudaResourceDesc`::res::pitch2D::pitchInBytes specifies the\npitch between two rows in bytes and has to be aligned to\n:py:obj:`~.cudaDeviceProp.texturePitchAlignment`. Pitch cannot exceed\n:py:obj:`~.cudaDeviceProp.maxTexture2DLinear`[2].\n\nThe :py:obj:`~.cudaTextureDesc` struct is defined as\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere\n\n- :py:obj:`~.cudaTextureDesc.addressMode` specifies the addressing mode\n  for each dimension of the texture data.\n  :py:obj:`~.cudaTextureAddressMode` is defined as:\n\n- **View CUDA Toolkit Documentation for a C++ code example**\n\n- This is ignored if :py:obj:`~.cudaResourceDesc.resType` is\n  :py:obj:`~.cudaResourceTypeLinear`. Also, if\n  :py:obj:`~.cudaTextureDesc.normalizedCoords` is set to zero,\n  :py:obj:`~.cudaAddressModeWrap` and :py:obj:`~.cudaAddressModeMirror`\n  won't be supported and will be switched to\n  :py:obj:`~.cudaAddressModeClamp`.\n\n- :py:obj:`~.cudaTextureDesc"".filterMode` specifies the filtering mode\n  to be used when fetching from the texture.\n  :py:obj:`~.cudaTextureFilterMode` is defined as:\n\n- **View CUDA Toolkit Documentation for a C++ code example**\n\n- This is ignored if :py:obj:`~.cudaResourceDesc.resType` is\n  :py:obj:`~.cudaResourceTypeLinear`.\n\n- :py:obj:`~.cudaTextureDesc.readMode` specifies whether integer data\n  should be converted to floating point or not.\n  :py:obj:`~.cudaTextureReadMode` is defined as:\n\n- **View CUDA Toolkit Documentation for a C++ code example**\n\n- Note that this applies only to 8-bit and 16-bit integer formats.\n  32-bit integer format would not be promoted, regardless of whether or\n  not this :py:obj:`~.cudaTextureDesc.readMode` is set\n  :py:obj:`~.cudaReadModeNormalizedFloat` is specified.\n\n- :py:obj:`~.cudaTextureDesc.sRGB` specifies whether sRGB to linear\n  conversion should be performed during texture fetch.\n\n- :py:obj:`~.cudaTextureDesc.borderColor` specifies the float values of\n  color. where: :py:obj:`~.cudaTextureDesc.borderColor`[0] contains\n  value of 'R', :py:obj:`~.cudaTextureDesc.borderColor`[1] contains\n  value of 'G', :py:obj:`~.cudaTextureDesc.borderColor`[2] contains\n  value of 'B', :py:obj:`~.cudaTextureDesc.borderColor`[3] contains\n  value of 'A' Note that application using integer border color values\n  will need to <reinterpret_cast> these values to float. The values are\n  set only when the addressing mode specified by\n  :py:obj:`~.cudaTextureDesc.addressMode` is cudaAddressModeBorder.\n\n- :py:obj:`~.cudaTextureDesc.normalizedCoords` specifies whether the\n  texture coordinates will be normalized or not.\n\n- :py:obj:`~.cudaTextureDesc.maxAnisotropy` specifies the maximum\n  anistropy ratio to be used when doing anisotropic filtering. This\n  value will be clamped to the range [1,16].\n\n- :py:obj:`~.cudaTextureDesc.mipmapFilterMode` specifies the filter\n  mode when the calculated mipmap level lies between two defined mipmap\n  levels"".\n\n- :py:obj:`~.cudaTextureDesc.mipmapLevelBias` specifies the offset to\n  be applied to the calculated mipmap level.\n\n- :py:obj:`~.cudaTextureDesc.minMipmapLevelClamp` specifies the lower\n  end of the mipmap level range to clamp access to.\n\n- :py:obj:`~.cudaTextureDesc.maxMipmapLevelClamp` specifies the upper\n  end of the mipmap level range to clamp access to.\n\n- :py:obj:`~.cudaTextureDesc.disableTrilinearOptimization` specifies\n  whether the trilinear filtering optimizations will be disabled.\n\n- :py:obj:`~.cudaTextureDesc.seamlessCubemap` specifies whether\n  seamless cube map filtering is enabled. This flag can only be\n  specified if the underlying resource is a CUDA array or a CUDA\n  mipmapped array that was created with the flag\n  :py:obj:`~.cudaArrayCubemap`. When seamless cube map filtering is\n  enabled, texture address modes specified by\n  :py:obj:`~.cudaTextureDesc.addressMode` are ignored. Instead, if the\n  :py:obj:`~.cudaTextureDesc.filterMode` is set to\n  :py:obj:`~.cudaFilterModePoint` the address mode\n  :py:obj:`~.cudaAddressModeClamp` will be applied for all dimensions.\n  If the :py:obj:`~.cudaTextureDesc.filterMode` is set to\n  :py:obj:`~.cudaFilterModeLinear` seamless cube map filtering will be\n  performed when sampling along the cube face borders.\n\nThe :py:obj:`~.cudaResourceViewDesc` struct is defined as\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nwhere:\n\n- :py:obj:`~.cudaResourceViewDesc.format` specifies how the data\n  contained in the CUDA array or CUDA mipmapped array should be\n  interpreted. Note that this can incur a change in size of the texture\n  data. If the resource view format is a block compressed format, then\n  the underlying CUDA array or CUDA mipmapped array has to have a\n  32-bit unsigned integer format with 2 or 4 channels, depending on the\n  block compressed format. For ex., BC1 and BC4 require the underlying\n  CUDA array to have a 32-bit unsigned int with 2 channels. The o""ther\n  BC formats require the underlying resource to have the same 32-bit\n  unsigned int format but with 4 channels.\n\n- :py:obj:`~.cudaResourceViewDesc.width` specifies the new width of the\n  texture data. If the resource view format is a block compressed\n  format, this value has to be 4 times the original width of the\n  resource. For non block compressed formats, this value has to be\n  equal to that of the original resource.\n\n- :py:obj:`~.cudaResourceViewDesc.height` specifies the new height of\n  the texture data. If the resource view format is a block compressed\n  format, this value has to be 4 times the original height of the\n  resource. For non block compressed formats, this value has to be\n  equal to that of the original resource.\n\n- :py:obj:`~.cudaResourceViewDesc.depth` specifies the new depth of the\n  texture data. This value has to be equal to that of the original\n  resource.\n\n- :py:obj:`~.cudaResourceViewDesc.firstMipmapLevel` specifies the most\n  detailed mipmap level. This will be the new mipmap level zero. For\n  non-mipmapped resources, this value has to be\n  zero.:py:obj:`~.cudaTextureDesc.minMipmapLevelClamp` and\n  :py:obj:`~.cudaTextureDesc.maxMipmapLevelClamp` will be relative to\n  this value. For ex., if the firstMipmapLevel is set to 2, and a\n  minMipmapLevelClamp of 1.2 is specified, then the actual minimum\n  mipmap level clamp will be 3.2.\n\n- :py:obj:`~.cudaResourceViewDesc.lastMipmapLevel` specifies the least\n  detailed mipmap level. For non-mipmapped resources, this value has to\n  be zero.\n\n- :py:obj:`~.cudaResourceViewDesc.firstLayer` specifies the first layer\n  index for layered textures. This will be the new layer zero. For non-\n  layered resources, this value has to be zero.\n\n- :py:obj:`~.cudaResourceViewDesc.lastLayer` specifies the last layer\n  index for layered textures. For non-layered resources, this value has\n  to be zero.\n\nParameters\n----------\npResDesc : :py:obj:`~.cudaResourceDesc`\n    R""esource descriptor\npTexDesc : :py:obj:`~.cudaTextureDesc`\n    Texture descriptor\npResViewDesc : :py:obj:`~.cudaResourceViewDesc`\n    Resource view descriptor\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npTexObject : :py:obj:`~.cudaTextureObject_t`\n    Texture object to create\n\nSee Also\n--------\n:py:obj:`~.cudaDestroyTextureObject`, :py:obj:`~.cuTexObjectCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_357cudaCreateTextureObject = {"cudaCreateTextureObject", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_357cudaCreateTextureObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_356cudaCreateTextureObject};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_357cudaCreateTextureObject(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_pResDesc = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_pTexDesc = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_pResViewDesc = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaCreateTextureObject (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_pResDesc,&__pyx_mstate_global->__pyx_n_u_pTexDesc,&__pyx_mstate_global->__pyx_n_u_pResViewDesc,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, 25451, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25451, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25451, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 25451, __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, "cudaCreateTextureObject", 0) < (0)) __PYX_ERR(0, 25451, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaCreateTextureObject", 1, 3, 3, i); __PYX_ERR(0, 25451, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 25451, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 25451, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 25451, __pyx_L3_error)
    }
    __pyx_v_pResDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)values[0]);
    __pyx_v_pTexDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)values[1]);
    __pyx_v_pResViewDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaCreateTextureObject", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 25451, __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.runtime.cudaCreateTextureObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pResDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc, 1, "pResDesc", 0))) __PYX_ERR(0, 25452, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pTexDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc, 1, "pTexDesc", 0))) __PYX_ERR(0, 25452, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pResViewDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc, 1, "pResViewDesc", 0))) __PYX_ERR(0, 25452, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_356cudaCreateTextureObject(__pyx_self, __pyx_v_pResDesc, __pyx_v_pTexDesc, __pyx_v_pResViewDesc);

  /* 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_7runtime_356cudaCreateTextureObject(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_pResDesc, struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_pTexDesc, struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_pResViewDesc) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *__pyx_v_pTexObject = 0;
  struct cudaResourceDesc *__pyx_v_cypResDesc_ptr;
  struct cudaTextureDesc *__pyx_v_cypTexDesc_ptr;
  struct cudaResourceViewDesc *__pyx_v_cypResViewDesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaResourceDesc *__pyx_t_4;
  int __pyx_t_5;
  struct cudaTextureDesc *__pyx_t_6;
  struct cudaResourceViewDesc *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaCreateTextureObject", 0);

  /* "cuda/bindings/runtime.pyx":25683
 *     :py:obj:`~.cudaDestroyTextureObject`, :py:obj:`~.cuTexObjectCreate`
 *     """
 *     cdef cudaTextureObject_t pTexObject = cudaTextureObject_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL
 *     cdef cyruntime.cudaTextureDesc* cypTexDesc_ptr = pTexDesc._pvt_ptr if pTexDesc is not None else NULL
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25683, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pTexObject = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":25684
 *     """
 *     cdef cudaTextureObject_t pTexObject = cudaTextureObject_t()
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaTextureDesc* cypTexDesc_ptr = pTexDesc._pvt_ptr if pTexDesc is not None else NULL
 *     cdef cyruntime.cudaResourceViewDesc* cypResViewDesc_ptr = pResViewDesc._pvt_ptr if pResViewDesc is not None else NULL
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_pResDesc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_pResDesc->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cypResDesc_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":25685
 *     cdef cudaTextureObject_t pTexObject = cudaTextureObject_t()
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL
 *     cdef cyruntime.cudaTextureDesc* cypTexDesc_ptr = pTexDesc._pvt_ptr if pTexDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaResourceViewDesc* cypResViewDesc_ptr = pResViewDesc._pvt_ptr if pResViewDesc is not None else NULL
 *     with nogil:
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_pTexDesc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_6 = __pyx_v_pTexDesc->_pvt_ptr;
  } else {
    __pyx_t_6 = NULL;
  }
  __pyx_v_cypTexDesc_ptr = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":25686
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL
 *     cdef cyruntime.cudaTextureDesc* cypTexDesc_ptr = pTexDesc._pvt_ptr if pTexDesc is not None else NULL
 *     cdef cyruntime.cudaResourceViewDesc* cypResViewDesc_ptr = pResViewDesc._pvt_ptr if pResViewDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaCreateTextureObject(<cyruntime.cudaTextureObject_t*>pTexObject._pvt_ptr, cypResDesc_ptr, cypTexDesc_ptr, cypResViewDesc_ptr)
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_pResViewDesc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_7 = __pyx_v_pResViewDesc->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypResViewDesc_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":25687
 *     cdef cyruntime.cudaTextureDesc* cypTexDesc_ptr = pTexDesc._pvt_ptr if pTexDesc is not None else NULL
 *     cdef cyruntime.cudaResourceViewDesc* cypResViewDesc_ptr = pResViewDesc._pvt_ptr if pResViewDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaCreateTextureObject(<cyruntime.cudaTextureObject_t*>pTexObject._pvt_ptr, cypResDesc_ptr, cypTexDesc_ptr, cypResViewDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25688
 *     cdef cyruntime.cudaResourceViewDesc* cypResViewDesc_ptr = pResViewDesc._pvt_ptr if pResViewDesc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaCreateTextureObject(<cyruntime.cudaTextureObject_t*>pTexObject._pvt_ptr, cypResDesc_ptr, cypTexDesc_ptr, cypResViewDesc_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaCreateTextureObject(((cudaTextureObject_t *)__pyx_v_pTexObject->_pvt_ptr), __pyx_v_cypResDesc_ptr, __pyx_v_cypTexDesc_ptr, __pyx_v_cypResViewDesc_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25688, __pyx_L4_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":25687
 *     cdef cyruntime.cudaTextureDesc* cypTexDesc_ptr = pTexDesc._pvt_ptr if pTexDesc is not None else NULL
 *     cdef cyruntime.cudaResourceViewDesc* cypResViewDesc_ptr = pResViewDesc._pvt_ptr if pResViewDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaCreateTextureObject(<cyruntime.cudaTextureObject_t*>pTexObject._pvt_ptr, cypResDesc_ptr, cypTexDesc_ptr, cypResViewDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25689
 *     with nogil:
 *         err = cyruntime.cudaCreateTextureObject(<cyruntime.cudaTextureObject_t*>pTexObject._pvt_ptr, cypResDesc_ptr, cypTexDesc_ptr, cypResViewDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pTexObject)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":25690
 *         err = cyruntime.cudaCreateTextureObject(<cyruntime.cudaTextureObject_t*>pTexObject._pvt_ptr, cypResDesc_ptr, cypTexDesc_ptr, cypResViewDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pTexObject)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 25690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 25690, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25690, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25689
 *     with nogil:
 *         err = cyruntime.cudaCreateTextureObject(<cyruntime.cudaTextureObject_t*>pTexObject._pvt_ptr, cypResDesc_ptr, cypTexDesc_ptr, cypResViewDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pTexObject)
*/
  }

  /* "cuda/bindings/runtime.pyx":25691
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pTexObject)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 25691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 25691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 25691, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pTexObject);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pTexObject);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_v_pTexObject)) != (0)) __PYX_ERR(0, 25691, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25451
 *     return (cudaError_t.cudaSuccess, wrapper)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateTextureObject(pResDesc : Optional[cudaResourceDesc], pTexDesc : Optional[cudaTextureDesc], pResViewDesc : Optional[cudaResourceViewDesc]):
 *     """ Creates a texture object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaCreateTextureObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pTexObject);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25693
 *     return (_dict_cudaError_t[err], pTexObject)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyTextureObject(texObject):
 *     """ Destroys a texture object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_359cudaDestroyTextureObject(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_7runtime_358cudaDestroyTextureObject, "cudaDestroyTextureObject(texObject)\n\nDestroys a texture object.\n\nDestroys the texture object specified by `texObject`.\n\nParameters\n----------\ntexObject : :py:obj:`~.cudaTextureObject_t`\n    Texture object to destroy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cuTexObjectDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_359cudaDestroyTextureObject = {"cudaDestroyTextureObject", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_359cudaDestroyTextureObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_358cudaDestroyTextureObject};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_359cudaDestroyTextureObject(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_texObject = 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("cudaDestroyTextureObject (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_texObject,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, 25693, __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, 25693, __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, "cudaDestroyTextureObject", 0) < (0)) __PYX_ERR(0, 25693, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDestroyTextureObject", 1, 1, 1, i); __PYX_ERR(0, 25693, __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, 25693, __pyx_L3_error)
    }
    __pyx_v_texObject = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDestroyTextureObject", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25693, __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.runtime.cudaDestroyTextureObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_358cudaDestroyTextureObject(__pyx_self, __pyx_v_texObject);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_358cudaDestroyTextureObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject) {
  cudaTextureObject_t __pyx_v_cytexObject;
  PyObject *__pyx_v_ptexObject = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDestroyTextureObject", 0);

  /* "cuda/bindings/runtime.pyx":25714
 *     """
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:             # <<<<<<<<<<<<<<
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
*/
  __pyx_t_1 = (__pyx_v_texObject == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25715
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:
 *         ptexObject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
 *         ptexObject = int(texObject)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_ptexObject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25714
 *     """
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:             # <<<<<<<<<<<<<<
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25716
 *     if texObject is None:
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):             # <<<<<<<<<<<<<<
 *         ptexObject = int(texObject)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_texObject, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25717
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
 *         ptexObject = int(texObject)             # <<<<<<<<<<<<<<
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_ptexObject = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25716
 *     if texObject is None:
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):             # <<<<<<<<<<<<<<
 *         ptexObject = int(texObject)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25719
 *         ptexObject = int(texObject)
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))             # <<<<<<<<<<<<<<
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_texObject};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25719, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_ptexObject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25720
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDestroyTextureObject(cytexObject)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25720, __pyx_L1_error)
  __pyx_v_cytexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25721
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDestroyTextureObject(cytexObject)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25722
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     with nogil:
 *         err = cyruntime.cudaDestroyTextureObject(cytexObject)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyTextureObject(__pyx_v_cytexObject); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25722, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25721
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDestroyTextureObject(cytexObject)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25723
 *     with nogil:
 *         err = cyruntime.cudaDestroyTextureObject(cytexObject)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25723, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25693
 *     return (_dict_cudaError_t[err], pTexObject)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyTextureObject(texObject):
 *     """ Destroys a texture object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDestroyTextureObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ptexObject);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25725
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectResourceDesc(texObject):
 *     """ Returns a texture object's resource descriptor.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_361cudaGetTextureObjectResourceDesc(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_7runtime_360cudaGetTextureObjectResourceDesc, "cudaGetTextureObjectResourceDesc(texObject)\n\nReturns a texture object's resource descriptor.\n\nReturns the resource descriptor for the texture object specified by\n`texObject`.\n\nParameters\n----------\ntexObject : :py:obj:`~.cudaTextureObject_t`\n    Texture object\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npResDesc : :py:obj:`~.cudaResourceDesc`\n    Resource descriptor\n\nSee Also\n--------\n:py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cuTexObjectGetResourceDesc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_361cudaGetTextureObjectResourceDesc = {"cudaGetTextureObjectResourceDesc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_361cudaGetTextureObjectResourceDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_360cudaGetTextureObjectResourceDesc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_361cudaGetTextureObjectResourceDesc(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_texObject = 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("cudaGetTextureObjectResourceDesc (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_texObject,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, 25725, __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, 25725, __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, "cudaGetTextureObjectResourceDesc", 0) < (0)) __PYX_ERR(0, 25725, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectResourceDesc", 1, 1, 1, i); __PYX_ERR(0, 25725, __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, 25725, __pyx_L3_error)
    }
    __pyx_v_texObject = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectResourceDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25725, __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.runtime.cudaGetTextureObjectResourceDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_360cudaGetTextureObjectResourceDesc(__pyx_self, __pyx_v_texObject);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_360cudaGetTextureObjectResourceDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject) {
  cudaTextureObject_t __pyx_v_cytexObject;
  PyObject *__pyx_v_ptexObject = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_pResDesc = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetTextureObjectResourceDesc", 0);

  /* "cuda/bindings/runtime.pyx":25749
 *     """
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:             # <<<<<<<<<<<<<<
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
*/
  __pyx_t_1 = (__pyx_v_texObject == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25750
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:
 *         ptexObject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
 *         ptexObject = int(texObject)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_ptexObject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25749
 *     """
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:             # <<<<<<<<<<<<<<
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25751
 *     if texObject is None:
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):             # <<<<<<<<<<<<<<
 *         ptexObject = int(texObject)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_texObject, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25752
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
 *         ptexObject = int(texObject)             # <<<<<<<<<<<<<<
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25752, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_ptexObject = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25751
 *     if texObject is None:
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):             # <<<<<<<<<<<<<<
 *         ptexObject = int(texObject)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25754
 *         ptexObject = int(texObject)
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))             # <<<<<<<<<<<<<<
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_texObject};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25754, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_ptexObject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25755
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject             # <<<<<<<<<<<<<<
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25755, __pyx_L1_error)
  __pyx_v_cytexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25756
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cytexObject)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25756, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pResDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":25757
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetTextureObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25758
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cytexObject)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectResourceDesc(((struct cudaResourceDesc *)__pyx_v_pResDesc->_pvt_ptr), __pyx_v_cytexObject); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25758, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25757
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetTextureObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25759
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResDesc)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25760
 *         err = cyruntime.cudaGetTextureObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pResDesc)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25760, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25760, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25759
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResDesc)
*/
  }

  /* "cuda/bindings/runtime.pyx":25761
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResDesc)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25761, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pResDesc);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pResDesc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pResDesc)) != (0)) __PYX_ERR(0, 25761, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25725
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectResourceDesc(texObject):
 *     """ Returns a texture object's resource descriptor.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetTextureObjectResourceDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ptexObject);
  __Pyx_XDECREF((PyObject *)__pyx_v_pResDesc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25763
 *     return (_dict_cudaError_t[err], pResDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectTextureDesc(texObject):
 *     """ Returns a texture object's texture descriptor.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_363cudaGetTextureObjectTextureDesc(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_7runtime_362cudaGetTextureObjectTextureDesc, "cudaGetTextureObjectTextureDesc(texObject)\n\nReturns a texture object's texture descriptor.\n\nReturns the texture descriptor for the texture object specified by\n`texObject`.\n\nParameters\n----------\ntexObject : :py:obj:`~.cudaTextureObject_t`\n    Texture object\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npTexDesc : :py:obj:`~.cudaTextureDesc`\n    Texture descriptor\n\nSee Also\n--------\n:py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cuTexObjectGetTextureDesc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_363cudaGetTextureObjectTextureDesc = {"cudaGetTextureObjectTextureDesc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_363cudaGetTextureObjectTextureDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_362cudaGetTextureObjectTextureDesc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_363cudaGetTextureObjectTextureDesc(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_texObject = 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("cudaGetTextureObjectTextureDesc (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_texObject,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, 25763, __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, 25763, __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, "cudaGetTextureObjectTextureDesc", 0) < (0)) __PYX_ERR(0, 25763, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectTextureDesc", 1, 1, 1, i); __PYX_ERR(0, 25763, __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, 25763, __pyx_L3_error)
    }
    __pyx_v_texObject = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectTextureDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25763, __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.runtime.cudaGetTextureObjectTextureDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_362cudaGetTextureObjectTextureDesc(__pyx_self, __pyx_v_texObject);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_362cudaGetTextureObjectTextureDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject) {
  cudaTextureObject_t __pyx_v_cytexObject;
  PyObject *__pyx_v_ptexObject = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *__pyx_v_pTexDesc = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetTextureObjectTextureDesc", 0);

  /* "cuda/bindings/runtime.pyx":25787
 *     """
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:             # <<<<<<<<<<<<<<
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
*/
  __pyx_t_1 = (__pyx_v_texObject == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25788
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:
 *         ptexObject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
 *         ptexObject = int(texObject)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_ptexObject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25787
 *     """
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:             # <<<<<<<<<<<<<<
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25789
 *     if texObject is None:
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):             # <<<<<<<<<<<<<<
 *         ptexObject = int(texObject)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_texObject, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25790
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
 *         ptexObject = int(texObject)             # <<<<<<<<<<<<<<
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_ptexObject = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25789
 *     if texObject is None:
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):             # <<<<<<<<<<<<<<
 *         ptexObject = int(texObject)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25792
 *         ptexObject = int(texObject)
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))             # <<<<<<<<<<<<<<
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaTextureDesc pTexDesc = cudaTextureDesc()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_texObject};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25792, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25792, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_ptexObject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25793
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject             # <<<<<<<<<<<<<<
 *     cdef cudaTextureDesc pTexDesc = cudaTextureDesc()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25793, __pyx_L1_error)
  __pyx_v_cytexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25794
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaTextureDesc pTexDesc = cudaTextureDesc()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectTextureDesc(<cyruntime.cudaTextureDesc*>pTexDesc._pvt_ptr, cytexObject)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25794, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pTexDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":25795
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaTextureDesc pTexDesc = cudaTextureDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetTextureObjectTextureDesc(<cyruntime.cudaTextureDesc*>pTexDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25796
 *     cdef cudaTextureDesc pTexDesc = cudaTextureDesc()
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectTextureDesc(<cyruntime.cudaTextureDesc*>pTexDesc._pvt_ptr, cytexObject)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectTextureDesc(((struct cudaTextureDesc *)__pyx_v_pTexDesc->_pvt_ptr), __pyx_v_cytexObject); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25796, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25795
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaTextureDesc pTexDesc = cudaTextureDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetTextureObjectTextureDesc(<cyruntime.cudaTextureDesc*>pTexDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25797
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectTextureDesc(<cyruntime.cudaTextureDesc*>pTexDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pTexDesc)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25798
 *         err = cyruntime.cudaGetTextureObjectTextureDesc(<cyruntime.cudaTextureDesc*>pTexDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pTexDesc)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25798, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25798, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25797
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectTextureDesc(<cyruntime.cudaTextureDesc*>pTexDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pTexDesc)
*/
  }

  /* "cuda/bindings/runtime.pyx":25799
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pTexDesc)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25799, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pTexDesc);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pTexDesc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pTexDesc)) != (0)) __PYX_ERR(0, 25799, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25763
 *     return (_dict_cudaError_t[err], pResDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectTextureDesc(texObject):
 *     """ Returns a texture object's texture descriptor.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetTextureObjectTextureDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ptexObject);
  __Pyx_XDECREF((PyObject *)__pyx_v_pTexDesc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25801
 *     return (_dict_cudaError_t[err], pTexDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectResourceViewDesc(texObject):
 *     """ Returns a texture object's resource view descriptor.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_365cudaGetTextureObjectResourceViewDesc(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_7runtime_364cudaGetTextureObjectResourceViewDesc, "cudaGetTextureObjectResourceViewDesc(texObject)\n\nReturns a texture object's resource view descriptor.\n\nReturns the resource view descriptor for the texture object specified\nby `texObject`. If no resource view was specified,\n:py:obj:`~.cudaErrorInvalidValue` is returned.\n\nParameters\n----------\ntexObject : :py:obj:`~.cudaTextureObject_t`\n    Texture object\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npResViewDesc : :py:obj:`~.cudaResourceViewDesc`\n    Resource view descriptor\n\nSee Also\n--------\n:py:obj:`~.cudaCreateTextureObject`, :py:obj:`~.cuTexObjectGetResourceViewDesc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_365cudaGetTextureObjectResourceViewDesc = {"cudaGetTextureObjectResourceViewDesc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_365cudaGetTextureObjectResourceViewDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_364cudaGetTextureObjectResourceViewDesc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_365cudaGetTextureObjectResourceViewDesc(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_texObject = 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("cudaGetTextureObjectResourceViewDesc (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_texObject,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, 25801, __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, 25801, __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, "cudaGetTextureObjectResourceViewDesc", 0) < (0)) __PYX_ERR(0, 25801, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectResourceViewDesc", 1, 1, 1, i); __PYX_ERR(0, 25801, __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, 25801, __pyx_L3_error)
    }
    __pyx_v_texObject = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetTextureObjectResourceViewDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25801, __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.runtime.cudaGetTextureObjectResourceViewDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_364cudaGetTextureObjectResourceViewDesc(__pyx_self, __pyx_v_texObject);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_364cudaGetTextureObjectResourceViewDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_texObject) {
  cudaTextureObject_t __pyx_v_cytexObject;
  PyObject *__pyx_v_ptexObject = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *__pyx_v_pResViewDesc = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetTextureObjectResourceViewDesc", 0);

  /* "cuda/bindings/runtime.pyx":25826
 *     """
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:             # <<<<<<<<<<<<<<
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
*/
  __pyx_t_1 = (__pyx_v_texObject == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25827
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:
 *         ptexObject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
 *         ptexObject = int(texObject)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_ptexObject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25826
 *     """
 *     cdef cyruntime.cudaTextureObject_t cytexObject
 *     if texObject is None:             # <<<<<<<<<<<<<<
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25828
 *     if texObject is None:
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):             # <<<<<<<<<<<<<<
 *         ptexObject = int(texObject)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_texObject, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25829
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):
 *         ptexObject = int(texObject)             # <<<<<<<<<<<<<<
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_texObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_ptexObject = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25828
 *     if texObject is None:
 *         ptexObject = 0
 *     elif isinstance(texObject, (cudaTextureObject_t,)):             # <<<<<<<<<<<<<<
 *         ptexObject = int(texObject)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25831
 *         ptexObject = int(texObject)
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))             # <<<<<<<<<<<<<<
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_texObject};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25831, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25831, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_ptexObject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25832
 *     else:
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject             # <<<<<<<<<<<<<<
 *     cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ptexObject); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25832, __pyx_L1_error)
  __pyx_v_cytexObject = ((cudaTextureObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25833
 *         ptexObject = int(cudaTextureObject_t(texObject))
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectResourceViewDesc(<cyruntime.cudaResourceViewDesc*>pResViewDesc._pvt_ptr, cytexObject)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25833, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pResViewDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":25834
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetTextureObjectResourceViewDesc(<cyruntime.cudaResourceViewDesc*>pResViewDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25835
 *     cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc()
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectResourceViewDesc(<cyruntime.cudaResourceViewDesc*>pResViewDesc._pvt_ptr, cytexObject)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectResourceViewDesc(((struct cudaResourceViewDesc *)__pyx_v_pResViewDesc->_pvt_ptr), __pyx_v_cytexObject); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25835, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25834
 *     cytexObject = <cyruntime.cudaTextureObject_t><void_ptr>ptexObject
 *     cdef cudaResourceViewDesc pResViewDesc = cudaResourceViewDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetTextureObjectResourceViewDesc(<cyruntime.cudaResourceViewDesc*>pResViewDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25836
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectResourceViewDesc(<cyruntime.cudaResourceViewDesc*>pResViewDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResViewDesc)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25837
 *         err = cyruntime.cudaGetTextureObjectResourceViewDesc(<cyruntime.cudaResourceViewDesc*>pResViewDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pResViewDesc)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25837, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25837, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25837, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25837, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25837, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25837, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25836
 *     with nogil:
 *         err = cyruntime.cudaGetTextureObjectResourceViewDesc(<cyruntime.cudaResourceViewDesc*>pResViewDesc._pvt_ptr, cytexObject)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResViewDesc)
*/
  }

  /* "cuda/bindings/runtime.pyx":25838
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResViewDesc)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25838, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pResViewDesc);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pResViewDesc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pResViewDesc)) != (0)) __PYX_ERR(0, 25838, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25801
 *     return (_dict_cudaError_t[err], pTexDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectResourceViewDesc(texObject):
 *     """ Returns a texture object's resource view descriptor.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetTextureObjectResourceViewDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ptexObject);
  __Pyx_XDECREF((PyObject *)__pyx_v_pResViewDesc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25840
 *     return (_dict_cudaError_t[err], pResViewDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]):
 *     """ Creates a surface object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_367cudaCreateSurfaceObject(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_7runtime_366cudaCreateSurfaceObject, "cudaCreateSurfaceObject(cudaResourceDesc pResDesc: Optional[cudaResourceDesc])\n\nCreates a surface object.\n\nCreates a surface object and returns it in `pSurfObject`. `pResDesc`\ndescribes the data to perform surface load/stores on.\n:py:obj:`~.cudaResourceDesc.resType` must be\n:py:obj:`~.cudaResourceTypeArray` and\n:py:obj:`~.cudaResourceDesc`::res::array::array must be set to a valid\nCUDA array handle.\n\nSurface objects are only supported on devices of compute capability 3.0\nor higher. Additionally, a surface object is an opaque value, and, as\nsuch, should only be accessed through CUDA API calls.\n\nParameters\n----------\npResDesc : :py:obj:`~.cudaResourceDesc`\n    Resource descriptor\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidChannelDescriptor`, :py:obj:`~.cudaErrorInvalidResourceHandle`\npSurfObject : :py:obj:`~.cudaSurfaceObject_t`\n    Surface object to create\n\nSee Also\n--------\n:py:obj:`~.cudaDestroySurfaceObject`, :py:obj:`~.cuSurfObjectCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_367cudaCreateSurfaceObject = {"cudaCreateSurfaceObject", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_367cudaCreateSurfaceObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_366cudaCreateSurfaceObject};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_367cudaCreateSurfaceObject(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_pResDesc = 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("cudaCreateSurfaceObject (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_pResDesc,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, 25840, __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, 25840, __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, "cudaCreateSurfaceObject", 0) < (0)) __PYX_ERR(0, 25840, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaCreateSurfaceObject", 1, 1, 1, i); __PYX_ERR(0, 25840, __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, 25840, __pyx_L3_error)
    }
    __pyx_v_pResDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaCreateSurfaceObject", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25840, __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.runtime.cudaCreateSurfaceObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pResDesc), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc, 1, "pResDesc", 0))) __PYX_ERR(0, 25841, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_366cudaCreateSurfaceObject(__pyx_self, __pyx_v_pResDesc);

  /* 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_7runtime_366cudaCreateSurfaceObject(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_pResDesc) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *__pyx_v_pSurfObject = 0;
  struct cudaResourceDesc *__pyx_v_cypResDesc_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  struct cudaResourceDesc *__pyx_t_4;
  int __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaCreateSurfaceObject", 0);

  /* "cuda/bindings/runtime.pyx":25871
 *     :py:obj:`~.cudaDestroySurfaceObject`, :py:obj:`~.cuSurfObjectCreate`
 *     """
 *     cdef cudaSurfaceObject_t pSurfObject = cudaSurfaceObject_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25871, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pSurfObject = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":25872
 *     """
 *     cdef cudaSurfaceObject_t pSurfObject = cudaSurfaceObject_t()
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaCreateSurfaceObject(<cyruntime.cudaSurfaceObject_t*>pSurfObject._pvt_ptr, cypResDesc_ptr)
*/
  __pyx_t_5 = (((PyObject *)__pyx_v_pResDesc) != Py_None);
  if (__pyx_t_5) {
    __pyx_t_4 = __pyx_v_pResDesc->_pvt_ptr;
  } else {
    __pyx_t_4 = NULL;
  }
  __pyx_v_cypResDesc_ptr = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":25873
 *     cdef cudaSurfaceObject_t pSurfObject = cudaSurfaceObject_t()
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaCreateSurfaceObject(<cyruntime.cudaSurfaceObject_t*>pSurfObject._pvt_ptr, cypResDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25874
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaCreateSurfaceObject(<cyruntime.cudaSurfaceObject_t*>pSurfObject._pvt_ptr, cypResDesc_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaCreateSurfaceObject(((cudaSurfaceObject_t *)__pyx_v_pSurfObject->_pvt_ptr), __pyx_v_cypResDesc_ptr); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25874, __pyx_L4_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25873
 *     cdef cudaSurfaceObject_t pSurfObject = cudaSurfaceObject_t()
 *     cdef cyruntime.cudaResourceDesc* cypResDesc_ptr = pResDesc._pvt_ptr if pResDesc is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaCreateSurfaceObject(<cyruntime.cudaSurfaceObject_t*>pSurfObject._pvt_ptr, cypResDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25875
 *     with nogil:
 *         err = cyruntime.cudaCreateSurfaceObject(<cyruntime.cudaSurfaceObject_t*>pSurfObject._pvt_ptr, cypResDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pSurfObject)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":25876
 *         err = cyruntime.cudaCreateSurfaceObject(<cyruntime.cudaSurfaceObject_t*>pSurfObject._pvt_ptr, cypResDesc_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pSurfObject)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25876, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25876, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25875
 *     with nogil:
 *         err = cyruntime.cudaCreateSurfaceObject(<cyruntime.cudaSurfaceObject_t*>pSurfObject._pvt_ptr, cypResDesc_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pSurfObject)
*/
  }

  /* "cuda/bindings/runtime.pyx":25877
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pSurfObject)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 25877, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pSurfObject);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pSurfObject);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pSurfObject)) != (0)) __PYX_ERR(0, 25877, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25840
 *     return (_dict_cudaError_t[err], pResViewDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]):
 *     """ Creates a surface object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaCreateSurfaceObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pSurfObject);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25879
 *     return (_dict_cudaError_t[err], pSurfObject)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroySurfaceObject(surfObject):
 *     """ Destroys a surface object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_369cudaDestroySurfaceObject(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_7runtime_368cudaDestroySurfaceObject, "cudaDestroySurfaceObject(surfObject)\n\nDestroys a surface object.\n\nDestroys the surface object specified by `surfObject`.\n\nParameters\n----------\nsurfObject : :py:obj:`~.cudaSurfaceObject_t`\n    Surface object to destroy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaCreateSurfaceObject`, :py:obj:`~.cuSurfObjectDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_369cudaDestroySurfaceObject = {"cudaDestroySurfaceObject", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_369cudaDestroySurfaceObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_368cudaDestroySurfaceObject};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_369cudaDestroySurfaceObject(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_surfObject = 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("cudaDestroySurfaceObject (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_surfObject,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, 25879, __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, 25879, __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, "cudaDestroySurfaceObject", 0) < (0)) __PYX_ERR(0, 25879, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDestroySurfaceObject", 1, 1, 1, i); __PYX_ERR(0, 25879, __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, 25879, __pyx_L3_error)
    }
    __pyx_v_surfObject = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDestroySurfaceObject", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25879, __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.runtime.cudaDestroySurfaceObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_368cudaDestroySurfaceObject(__pyx_self, __pyx_v_surfObject);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_368cudaDestroySurfaceObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_surfObject) {
  cudaSurfaceObject_t __pyx_v_cysurfObject;
  PyObject *__pyx_v_psurfObject = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDestroySurfaceObject", 0);

  /* "cuda/bindings/runtime.pyx":25900
 *     """
 *     cdef cyruntime.cudaSurfaceObject_t cysurfObject
 *     if surfObject is None:             # <<<<<<<<<<<<<<
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):
*/
  __pyx_t_1 = (__pyx_v_surfObject == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25901
 *     cdef cyruntime.cudaSurfaceObject_t cysurfObject
 *     if surfObject is None:
 *         psurfObject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):
 *         psurfObject = int(surfObject)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psurfObject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25900
 *     """
 *     cdef cyruntime.cudaSurfaceObject_t cysurfObject
 *     if surfObject is None:             # <<<<<<<<<<<<<<
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25902
 *     if surfObject is None:
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):             # <<<<<<<<<<<<<<
 *         psurfObject = int(surfObject)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_surfObject, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25903
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):
 *         psurfObject = int(surfObject)             # <<<<<<<<<<<<<<
 *     else:
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_surfObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25903, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_psurfObject = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25902
 *     if surfObject is None:
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):             # <<<<<<<<<<<<<<
 *         psurfObject = int(surfObject)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25905
 *         psurfObject = int(surfObject)
 *     else:
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))             # <<<<<<<<<<<<<<
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_surfObject};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25905, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25905, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_psurfObject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25906
 *     else:
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDestroySurfaceObject(cysurfObject)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psurfObject); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25906, __pyx_L1_error)
  __pyx_v_cysurfObject = ((cudaSurfaceObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25907
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDestroySurfaceObject(cysurfObject)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25908
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject
 *     with nogil:
 *         err = cyruntime.cudaDestroySurfaceObject(cysurfObject)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDestroySurfaceObject(__pyx_v_cysurfObject); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25908, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25907
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDestroySurfaceObject(cysurfObject)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25909
 *     with nogil:
 *         err = cyruntime.cudaDestroySurfaceObject(cysurfObject)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25909, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25879
 *     return (_dict_cudaError_t[err], pSurfObject)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroySurfaceObject(surfObject):
 *     """ Destroys a surface object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDestroySurfaceObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psurfObject);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25911
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetSurfaceObjectResourceDesc(surfObject):
 *     """ Returns a surface object's resource descriptor Returns the resource descriptor for the surface object specified by `surfObject`.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_371cudaGetSurfaceObjectResourceDesc(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_7runtime_370cudaGetSurfaceObjectResourceDesc, "cudaGetSurfaceObjectResourceDesc(surfObject)\n\nReturns a surface object's resource descriptor Returns the resource descriptor for the surface object specified by `surfObject`.\n\nParameters\n----------\nsurfObject : :py:obj:`~.cudaSurfaceObject_t`\n    Surface object\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npResDesc : :py:obj:`~.cudaResourceDesc`\n    Resource descriptor\n\nSee Also\n--------\n:py:obj:`~.cudaCreateSurfaceObject`, :py:obj:`~.cuSurfObjectGetResourceDesc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_371cudaGetSurfaceObjectResourceDesc = {"cudaGetSurfaceObjectResourceDesc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_371cudaGetSurfaceObjectResourceDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_370cudaGetSurfaceObjectResourceDesc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_371cudaGetSurfaceObjectResourceDesc(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_surfObject = 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("cudaGetSurfaceObjectResourceDesc (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_surfObject,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, 25911, __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, 25911, __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, "cudaGetSurfaceObjectResourceDesc", 0) < (0)) __PYX_ERR(0, 25911, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetSurfaceObjectResourceDesc", 1, 1, 1, i); __PYX_ERR(0, 25911, __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, 25911, __pyx_L3_error)
    }
    __pyx_v_surfObject = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetSurfaceObjectResourceDesc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 25911, __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.runtime.cudaGetSurfaceObjectResourceDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_370cudaGetSurfaceObjectResourceDesc(__pyx_self, __pyx_v_surfObject);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_370cudaGetSurfaceObjectResourceDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_surfObject) {
  cudaSurfaceObject_t __pyx_v_cysurfObject;
  PyObject *__pyx_v_psurfObject = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *__pyx_v_pResDesc = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetSurfaceObjectResourceDesc", 0);

  /* "cuda/bindings/runtime.pyx":25932
 *     """
 *     cdef cyruntime.cudaSurfaceObject_t cysurfObject
 *     if surfObject is None:             # <<<<<<<<<<<<<<
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):
*/
  __pyx_t_1 = (__pyx_v_surfObject == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25933
 *     cdef cyruntime.cudaSurfaceObject_t cysurfObject
 *     if surfObject is None:
 *         psurfObject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):
 *         psurfObject = int(surfObject)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_psurfObject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":25932
 *     """
 *     cdef cyruntime.cudaSurfaceObject_t cysurfObject
 *     if surfObject is None:             # <<<<<<<<<<<<<<
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25934
 *     if surfObject is None:
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):             # <<<<<<<<<<<<<<
 *         psurfObject = int(surfObject)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_surfObject, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25935
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):
 *         psurfObject = int(surfObject)             # <<<<<<<<<<<<<<
 *     else:
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_surfObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25935, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_psurfObject = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":25934
 *     if surfObject is None:
 *         psurfObject = 0
 *     elif isinstance(surfObject, (cudaSurfaceObject_t,)):             # <<<<<<<<<<<<<<
 *         psurfObject = int(surfObject)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":25937
 *         psurfObject = int(surfObject)
 *     else:
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))             # <<<<<<<<<<<<<<
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_surfObject};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25937, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25937, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_psurfObject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":25938
 *     else:
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject             # <<<<<<<<<<<<<<
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_psurfObject); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 25938, __pyx_L1_error)
  __pyx_v_cysurfObject = ((cudaSurfaceObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":25939
 *         psurfObject = int(cudaSurfaceObject_t(surfObject))
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetSurfaceObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cysurfObject)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25939, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pResDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":25940
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetSurfaceObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cysurfObject)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25941
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
 *     with nogil:
 *         err = cyruntime.cudaGetSurfaceObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cysurfObject)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetSurfaceObjectResourceDesc(((struct cudaResourceDesc *)__pyx_v_pResDesc->_pvt_ptr), __pyx_v_cysurfObject); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25941, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":25940
 *     cysurfObject = <cyruntime.cudaSurfaceObject_t><void_ptr>psurfObject
 *     cdef cudaResourceDesc pResDesc = cudaResourceDesc()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetSurfaceObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cysurfObject)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25942
 *     with nogil:
 *         err = cyruntime.cudaGetSurfaceObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cysurfObject)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResDesc)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":25943
 *         err = cyruntime.cudaGetSurfaceObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cysurfObject)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pResDesc)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 25943, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 25943, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25942
 *     with nogil:
 *         err = cyruntime.cudaGetSurfaceObjectResourceDesc(<cyruntime.cudaResourceDesc*>pResDesc._pvt_ptr, cysurfObject)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResDesc)
*/
  }

  /* "cuda/bindings/runtime.pyx":25944
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pResDesc)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 25944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25944, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pResDesc);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pResDesc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pResDesc)) != (0)) __PYX_ERR(0, 25944, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25911
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetSurfaceObjectResourceDesc(surfObject):
 *     """ Returns a surface object's resource descriptor Returns the resource descriptor for the surface object specified by `surfObject`.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetSurfaceObjectResourceDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_psurfObject);
  __Pyx_XDECREF((PyObject *)__pyx_v_pResDesc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25946
 *     return (_dict_cudaError_t[err], pResDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDriverGetVersion():
 *     """ Returns the latest version of CUDA supported by the driver.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_373cudaDriverGetVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_372cudaDriverGetVersion, "cudaDriverGetVersion()\n\nReturns the latest version of CUDA supported by the driver.\n\nReturns in `*driverVersion` the latest version of CUDA supported by the\ndriver. The version is returned as (1000 * major + 10 * minor). For\nexample, CUDA 9.2 would be represented by 9020. If no driver is\ninstalled, then 0 is returned as the driver version.\n\nThis function automatically returns :py:obj:`~.cudaErrorInvalidValue`\nif `driverVersion` is NULL.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ndriverVersion : int\n    Returns the CUDA driver version.\n\nSee Also\n--------\n:py:obj:`~.cudaRuntimeGetVersion`, :py:obj:`~.cuDriverGetVersion`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_373cudaDriverGetVersion = {"cudaDriverGetVersion", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_373cudaDriverGetVersion, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_372cudaDriverGetVersion};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_373cudaDriverGetVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDriverGetVersion (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_372cudaDriverGetVersion(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_372cudaDriverGetVersion(CYTHON_UNUSED PyObject *__pyx_self) {
  int __pyx_v_driverVersion;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDriverGetVersion", 0);

  /* "cuda/bindings/runtime.pyx":25969
 *     :py:obj:`~.cudaRuntimeGetVersion`, :py:obj:`~.cuDriverGetVersion`
 *     """
 *     cdef int driverVersion = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDriverGetVersion(&driverVersion)
*/
  __pyx_v_driverVersion = 0;

  /* "cuda/bindings/runtime.pyx":25970
 *     """
 *     cdef int driverVersion = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDriverGetVersion(&driverVersion)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":25971
 *     cdef int driverVersion = 0
 *     with nogil:
 *         err = cyruntime.cudaDriverGetVersion(&driverVersion)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDriverGetVersion((&__pyx_v_driverVersion)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 25971, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":25970
 *     """
 *     cdef int driverVersion = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDriverGetVersion(&driverVersion)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":25972
 *     with nogil:
 *         err = cyruntime.cudaDriverGetVersion(&driverVersion)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], driverVersion)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":25973
 *         err = cyruntime.cudaDriverGetVersion(&driverVersion)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], driverVersion)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25973, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25973, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25973, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25973, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 25973, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 25973, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":25972
 *     with nogil:
 *         err = cyruntime.cudaDriverGetVersion(&driverVersion)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], driverVersion)
*/
  }

  /* "cuda/bindings/runtime.pyx":25974
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], driverVersion)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_driverVersion); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 25974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 25974, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 25974, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25946
 *     return (_dict_cudaError_t[err], pResDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDriverGetVersion():
 *     """ Returns the latest version of CUDA supported by the driver.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDriverGetVersion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":25976
 *     return (_dict_cudaError_t[err], driverVersion)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaRuntimeGetVersion():
 *     """ Returns the CUDA Runtime version.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_375cudaRuntimeGetVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_374cudaRuntimeGetVersion, "cudaRuntimeGetVersion()\n\nReturns the CUDA Runtime version.\n\nReturns in `*runtimeVersion` the version number of the current CUDA\nRuntime instance. The version is returned as (1000 * major + 10 *\nminor). For example, CUDA 9.2 would be represented by 9020.\n\nAs of CUDA 12.0, this function no longer initializes CUDA. The purpose\nof this API is solely to return a compile-time constant stating the\nCUDA Toolkit version in the above format.\n\nThis function automatically returns :py:obj:`~.cudaErrorInvalidValue`\nif the `runtimeVersion` argument is NULL.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nruntimeVersion : int\n    Returns the CUDA Runtime version.\n\nSee Also\n--------\n:py:obj:`~.cudaDriverGetVersion`, :py:obj:`~.cuDriverGetVersion`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_375cudaRuntimeGetVersion = {"cudaRuntimeGetVersion", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_375cudaRuntimeGetVersion, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_374cudaRuntimeGetVersion};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_375cudaRuntimeGetVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaRuntimeGetVersion (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_374cudaRuntimeGetVersion(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_374cudaRuntimeGetVersion(CYTHON_UNUSED PyObject *__pyx_self) {
  int __pyx_v_runtimeVersion;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaRuntimeGetVersion", 0);

  /* "cuda/bindings/runtime.pyx":26002
 *     :py:obj:`~.cudaDriverGetVersion`, :py:obj:`~.cuDriverGetVersion`
 *     """
 *     cdef int runtimeVersion = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaRuntimeGetVersion(&runtimeVersion)
*/
  __pyx_v_runtimeVersion = 0;

  /* "cuda/bindings/runtime.pyx":26003
 *     """
 *     cdef int runtimeVersion = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaRuntimeGetVersion(&runtimeVersion)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26004
 *     cdef int runtimeVersion = 0
 *     with nogil:
 *         err = cyruntime.cudaRuntimeGetVersion(&runtimeVersion)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaRuntimeGetVersion((&__pyx_v_runtimeVersion)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26004, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":26003
 *     """
 *     cdef int runtimeVersion = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaRuntimeGetVersion(&runtimeVersion)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26005
 *     with nogil:
 *         err = cyruntime.cudaRuntimeGetVersion(&runtimeVersion)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], runtimeVersion)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":26006
 *         err = cyruntime.cudaRuntimeGetVersion(&runtimeVersion)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], runtimeVersion)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26006, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26006, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26006, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26006, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 26006, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 26006, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26005
 *     with nogil:
 *         err = cyruntime.cudaRuntimeGetVersion(&runtimeVersion)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], runtimeVersion)
*/
  }

  /* "cuda/bindings/runtime.pyx":26007
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], runtimeVersion)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_runtimeVersion); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 26007, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 26007, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":25976
 *     return (_dict_cudaError_t[err], driverVersion)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaRuntimeGetVersion():
 *     """ Returns the CUDA Runtime version.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaRuntimeGetVersion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26009
 *     return (_dict_cudaError_t[err], runtimeVersion)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsRegisterCallback(callbackFunc, userData):
 *     """ Register a callback function to receive error log messages.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_377cudaLogsRegisterCallback(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_7runtime_376cudaLogsRegisterCallback, "cudaLogsRegisterCallback(callbackFunc, userData)\n\nRegister a callback function to receive error log messages.\n\nParameters\n----------\ncallbackFunc : :py:obj:`~.cudaLogsCallback_t`\n    The function to register as a callback\nuserData : Any\n    A generic pointer to user data. This is passed into the callback\n    function.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\ncallback_out : :py:obj:`~.cudaLogsCallbackHandle`\n    Optional location to store the callback handle after it is\n    registered");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_377cudaLogsRegisterCallback = {"cudaLogsRegisterCallback", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_377cudaLogsRegisterCallback, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_376cudaLogsRegisterCallback};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_377cudaLogsRegisterCallback(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_callbackFunc = 0;
  PyObject *__pyx_v_userData = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLogsRegisterCallback (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_callbackFunc,&__pyx_mstate_global->__pyx_n_u_userData_2,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, 26009, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26009, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26009, __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, "cudaLogsRegisterCallback", 0) < (0)) __PYX_ERR(0, 26009, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLogsRegisterCallback", 1, 2, 2, i); __PYX_ERR(0, 26009, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 26009, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26009, __pyx_L3_error)
    }
    __pyx_v_callbackFunc = values[0];
    __pyx_v_userData = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLogsRegisterCallback", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26009, __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.runtime.cudaLogsRegisterCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_376cudaLogsRegisterCallback(__pyx_self, __pyx_v_callbackFunc, __pyx_v_userData);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_376cudaLogsRegisterCallback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_callbackFunc, PyObject *__pyx_v_userData) {
  cudaLogsCallback_t __pyx_v_cycallbackFunc;
  PyObject *__pyx_v_pcallbackFunc = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyuserData = NULL;
  void *__pyx_v_cyuserData_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_callback_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLogsRegisterCallback", 0);

  /* "cuda/bindings/runtime.pyx":26030
 *     """
 *     cdef cyruntime.cudaLogsCallback_t cycallbackFunc
 *     if callbackFunc is None:             # <<<<<<<<<<<<<<
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaLogsCallback_t,)):
*/
  __pyx_t_1 = (__pyx_v_callbackFunc == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26031
 *     cdef cyruntime.cudaLogsCallback_t cycallbackFunc
 *     if callbackFunc is None:
 *         pcallbackFunc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(callbackFunc, (cudaLogsCallback_t,)):
 *         pcallbackFunc = int(callbackFunc)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pcallbackFunc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26030
 *     """
 *     cdef cyruntime.cudaLogsCallback_t cycallbackFunc
 *     if callbackFunc is None:             # <<<<<<<<<<<<<<
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaLogsCallback_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26032
 *     if callbackFunc is None:
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaLogsCallback_t,)):             # <<<<<<<<<<<<<<
 *         pcallbackFunc = int(callbackFunc)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_callbackFunc, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26033
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaLogsCallback_t,)):
 *         pcallbackFunc = int(callbackFunc)             # <<<<<<<<<<<<<<
 *     else:
 *         pcallbackFunc = int(cudaLogsCallback_t(callbackFunc))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_callbackFunc); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pcallbackFunc = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":26032
 *     if callbackFunc is None:
 *         pcallbackFunc = 0
 *     elif isinstance(callbackFunc, (cudaLogsCallback_t,)):             # <<<<<<<<<<<<<<
 *         pcallbackFunc = int(callbackFunc)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26035
 *         pcallbackFunc = int(callbackFunc)
 *     else:
 *         pcallbackFunc = int(cudaLogsCallback_t(callbackFunc))             # <<<<<<<<<<<<<<
 *     cycallbackFunc = <cyruntime.cudaLogsCallback_t><void_ptr>pcallbackFunc
 *     cyuserData = _HelperInputVoidPtr(userData)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_callbackFunc};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26035, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26035, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pcallbackFunc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26036
 *     else:
 *         pcallbackFunc = int(cudaLogsCallback_t(callbackFunc))
 *     cycallbackFunc = <cyruntime.cudaLogsCallback_t><void_ptr>pcallbackFunc             # <<<<<<<<<<<<<<
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pcallbackFunc); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26036, __pyx_L1_error)
  __pyx_v_cycallbackFunc = ((cudaLogsCallback_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":26037
 *         pcallbackFunc = int(cudaLogsCallback_t(callbackFunc))
 *     cycallbackFunc = <cyruntime.cudaLogsCallback_t><void_ptr>pcallbackFunc
 *     cyuserData = _HelperInputVoidPtr(userData)             # <<<<<<<<<<<<<<
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 *     cdef cudaLogsCallbackHandle callback_out = cudaLogsCallbackHandle()
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_userData};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26037, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cyuserData = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":26038
 *     cycallbackFunc = <cyruntime.cudaLogsCallback_t><void_ptr>pcallbackFunc
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr             # <<<<<<<<<<<<<<
 *     cdef cudaLogsCallbackHandle callback_out = cudaLogsCallbackHandle()
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyuserData), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26038, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cyuserData_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":26039
 *     cyuserData = _HelperInputVoidPtr(userData)
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 *     cdef cudaLogsCallbackHandle callback_out = cudaLogsCallbackHandle()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLogsRegisterCallback(cycallbackFunc, cyuserData_ptr, <cyruntime.cudaLogsCallbackHandle*>callback_out._pvt_ptr)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26039, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_callback_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":26040
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 *     cdef cudaLogsCallbackHandle callback_out = cudaLogsCallbackHandle()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsRegisterCallback(cycallbackFunc, cyuserData_ptr, <cyruntime.cudaLogsCallbackHandle*>callback_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26041
 *     cdef cudaLogsCallbackHandle callback_out = cudaLogsCallbackHandle()
 *     with nogil:
 *         err = cyruntime.cudaLogsRegisterCallback(cycallbackFunc, cyuserData_ptr, <cyruntime.cudaLogsCallbackHandle*>callback_out._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLogsRegisterCallback(__pyx_v_cycallbackFunc, __pyx_v_cyuserData_ptr, ((cudaLogsCallbackHandle *)__pyx_v_callback_out->_pvt_ptr)); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26041, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":26040
 *     cdef void* cyuserData_ptr = <void*><void_ptr>cyuserData.cptr
 *     cdef cudaLogsCallbackHandle callback_out = cudaLogsCallbackHandle()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsRegisterCallback(cycallbackFunc, cyuserData_ptr, <cyruntime.cudaLogsCallbackHandle*>callback_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26042
 *     with nogil:
 *         err = cyruntime.cudaLogsRegisterCallback(cycallbackFunc, cyuserData_ptr, <cyruntime.cudaLogsCallbackHandle*>callback_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], callback_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26043
 *         err = cyruntime.cudaLogsRegisterCallback(cycallbackFunc, cyuserData_ptr, <cyruntime.cudaLogsCallbackHandle*>callback_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], callback_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 26043, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 26043, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26042
 *     with nogil:
 *         err = cyruntime.cudaLogsRegisterCallback(cycallbackFunc, cyuserData_ptr, <cyruntime.cudaLogsCallbackHandle*>callback_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], callback_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":26044
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], callback_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 26044, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_callback_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_callback_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_callback_out)) != (0)) __PYX_ERR(0, 26044, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26009
 *     return (_dict_cudaError_t[err], runtimeVersion)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsRegisterCallback(callbackFunc, userData):
 *     """ Register a callback function to receive error log messages.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsRegisterCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pcallbackFunc);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyuserData);
  __Pyx_XDECREF((PyObject *)__pyx_v_callback_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26046
 *     return (_dict_cudaError_t[err], callback_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsUnregisterCallback(callback):
 *     """ Unregister a log message callback.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_379cudaLogsUnregisterCallback(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_7runtime_378cudaLogsUnregisterCallback, "cudaLogsUnregisterCallback(callback)\n\nUnregister a log message callback.\n\nParameters\n----------\ncallback : :py:obj:`~.cudaLogsCallbackHandle`\n    The callback instance to unregister from receiving log messages\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_379cudaLogsUnregisterCallback = {"cudaLogsUnregisterCallback", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_379cudaLogsUnregisterCallback, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_378cudaLogsUnregisterCallback};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_379cudaLogsUnregisterCallback(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_callback = 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("cudaLogsUnregisterCallback (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_callback,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, 26046, __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, 26046, __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, "cudaLogsUnregisterCallback", 0) < (0)) __PYX_ERR(0, 26046, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLogsUnregisterCallback", 1, 1, 1, i); __PYX_ERR(0, 26046, __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, 26046, __pyx_L3_error)
    }
    __pyx_v_callback = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLogsUnregisterCallback", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 26046, __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.runtime.cudaLogsUnregisterCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_378cudaLogsUnregisterCallback(__pyx_self, __pyx_v_callback);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_378cudaLogsUnregisterCallback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_callback) {
  cudaLogsCallbackHandle __pyx_v_cycallback;
  PyObject *__pyx_v_pcallback = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLogsUnregisterCallback", 0);

  /* "cuda/bindings/runtime.pyx":26061
 *     """
 *     cdef cyruntime.cudaLogsCallbackHandle cycallback
 *     if callback is None:             # <<<<<<<<<<<<<<
 *         pcallback = 0
 *     elif isinstance(callback, (cudaLogsCallbackHandle,)):
*/
  __pyx_t_1 = (__pyx_v_callback == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26062
 *     cdef cyruntime.cudaLogsCallbackHandle cycallback
 *     if callback is None:
 *         pcallback = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(callback, (cudaLogsCallbackHandle,)):
 *         pcallback = int(callback)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pcallback = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26061
 *     """
 *     cdef cyruntime.cudaLogsCallbackHandle cycallback
 *     if callback is None:             # <<<<<<<<<<<<<<
 *         pcallback = 0
 *     elif isinstance(callback, (cudaLogsCallbackHandle,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26063
 *     if callback is None:
 *         pcallback = 0
 *     elif isinstance(callback, (cudaLogsCallbackHandle,)):             # <<<<<<<<<<<<<<
 *         pcallback = int(callback)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_callback, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26064
 *         pcallback = 0
 *     elif isinstance(callback, (cudaLogsCallbackHandle,)):
 *         pcallback = int(callback)             # <<<<<<<<<<<<<<
 *     else:
 *         pcallback = int(cudaLogsCallbackHandle(callback))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26064, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pcallback = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":26063
 *     if callback is None:
 *         pcallback = 0
 *     elif isinstance(callback, (cudaLogsCallbackHandle,)):             # <<<<<<<<<<<<<<
 *         pcallback = int(callback)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26066
 *         pcallback = int(callback)
 *     else:
 *         pcallback = int(cudaLogsCallbackHandle(callback))             # <<<<<<<<<<<<<<
 *     cycallback = <cyruntime.cudaLogsCallbackHandle><void_ptr>pcallback
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_callback};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26066, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26066, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pcallback = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26067
 *     else:
 *         pcallback = int(cudaLogsCallbackHandle(callback))
 *     cycallback = <cyruntime.cudaLogsCallbackHandle><void_ptr>pcallback             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLogsUnregisterCallback(cycallback)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pcallback); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26067, __pyx_L1_error)
  __pyx_v_cycallback = ((cudaLogsCallbackHandle)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":26068
 *         pcallback = int(cudaLogsCallbackHandle(callback))
 *     cycallback = <cyruntime.cudaLogsCallbackHandle><void_ptr>pcallback
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsUnregisterCallback(cycallback)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26069
 *     cycallback = <cyruntime.cudaLogsCallbackHandle><void_ptr>pcallback
 *     with nogil:
 *         err = cyruntime.cudaLogsUnregisterCallback(cycallback)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLogsUnregisterCallback(__pyx_v_cycallback); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26069, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":26068
 *         pcallback = int(cudaLogsCallbackHandle(callback))
 *     cycallback = <cyruntime.cudaLogsCallbackHandle><void_ptr>pcallback
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsUnregisterCallback(cycallback)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26070
 *     with nogil:
 *         err = cyruntime.cudaLogsUnregisterCallback(cycallback)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26070, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26070, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 26070, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26070, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 26070, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26046
 *     return (_dict_cudaError_t[err], callback_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsUnregisterCallback(callback):
 *     """ Unregister a log message callback.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsUnregisterCallback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pcallback);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26072
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsCurrent(unsigned int flags):
 *     """ Sets log iterator to point to the end of log buffer, where the next message would be written.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_381cudaLogsCurrent(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_7runtime_380cudaLogsCurrent, "cudaLogsCurrent(unsigned int flags)\n\nSets log iterator to point to the end of log buffer, where the next message would be written.\n\nParameters\n----------\nflags : unsigned int\n    Reserved for future use, must be 0\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\niterator_out : :py:obj:`~.cudaLogIterator`\n    Location to store an iterator to the current tail of the logs");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_381cudaLogsCurrent = {"cudaLogsCurrent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_381cudaLogsCurrent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_380cudaLogsCurrent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_381cudaLogsCurrent(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
) {
  unsigned int __pyx_v_flags;
  #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("cudaLogsCurrent (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_flags_2,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, 26072, __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, 26072, __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, "cudaLogsCurrent", 0) < (0)) __PYX_ERR(0, 26072, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLogsCurrent", 1, 1, 1, i); __PYX_ERR(0, 26072, __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, 26072, __pyx_L3_error)
    }
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 26073, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLogsCurrent", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 26072, __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.runtime.cudaLogsCurrent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_380cudaLogsCurrent(__pyx_self, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_380cudaLogsCurrent(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_iterator_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLogsCurrent", 0);

  /* "cuda/bindings/runtime.pyx":26088
 *         Location to store an iterator to the current tail of the logs
 *     """
 *     cdef cudaLogIterator iterator_out = cudaLogIterator()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLogsCurrent(<cyruntime.cudaLogIterator*>iterator_out._pvt_ptr, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26088, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_iterator_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26089
 *     """
 *     cdef cudaLogIterator iterator_out = cudaLogIterator()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsCurrent(<cyruntime.cudaLogIterator*>iterator_out._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26090
 *     cdef cudaLogIterator iterator_out = cudaLogIterator()
 *     with nogil:
 *         err = cyruntime.cudaLogsCurrent(<cyruntime.cudaLogIterator*>iterator_out._pvt_ptr, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLogsCurrent(((cudaLogIterator *)__pyx_v_iterator_out->_pvt_ptr), __pyx_v_flags); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26090, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":26089
 *     """
 *     cdef cudaLogIterator iterator_out = cudaLogIterator()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsCurrent(<cyruntime.cudaLogIterator*>iterator_out._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26091
 *     with nogil:
 *         err = cyruntime.cudaLogsCurrent(<cyruntime.cudaLogIterator*>iterator_out._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], iterator_out)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":26092
 *         err = cyruntime.cudaLogsCurrent(<cyruntime.cudaLogIterator*>iterator_out._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], iterator_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 26092, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 26092, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26091
 *     with nogil:
 *         err = cyruntime.cudaLogsCurrent(<cyruntime.cudaLogIterator*>iterator_out._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], iterator_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":26093
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], iterator_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 26093, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_iterator_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_iterator_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_iterator_out)) != (0)) __PYX_ERR(0, 26093, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26072
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsCurrent(unsigned int flags):
 *     """ Sets log iterator to point to the end of log buffer, where the next message would be written.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsCurrent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_iterator_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26095
 *     return (_dict_cudaError_t[err], iterator_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsDumpToFile(iterator : Optional[cudaLogIterator], char* pathToFile, unsigned int flags):
 *     """ Dump accumulated driver logs into a file.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_383cudaLogsDumpToFile(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_7runtime_382cudaLogsDumpToFile, "cudaLogsDumpToFile(cudaLogIterator iterator: Optional[cudaLogIterator], char *pathToFile, unsigned int flags)\n\nDump accumulated driver logs into a file.\n\nLogs generated by the driver are stored in an internal buffer and can\nbe copied out using this API. This API dumps all driver logs starting\nfrom `iterator` into `pathToFile` provided.\n\nParameters\n----------\niterator : :py:obj:`~.cudaLogIterator`\n    Optional auto-advancing iterator specifying the starting log to\n    read. NULL value dumps all logs.\npathToFile : bytes\n    Path to output file for dumping logs\nflags : unsigned int\n    Reserved for future use, must be 0\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\niterator : :py:obj:`~.cudaLogIterator`\n    Optional auto-advancing iterator specifying the starting log to\n    read. NULL value dumps all logs.\n\nNotes\n-----\n`iterator` is auto-advancing. Dumping logs will update the value of `iterator` to receive the next generated log.\n\nThe driver reserves limited memory for storing logs. The oldest logs may be overwritten and become unrecoverable. An indication will appear in the destination outupt if the logs have been truncated. Call dump after each failed API to mitigate this risk.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_383cudaLogsDumpToFile = {"cudaLogsDumpToFile", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_383cudaLogsDumpToFile, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_382cudaLogsDumpToFile};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_383cudaLogsDumpToFile(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_iterator = 0;
  char *__pyx_v_pathToFile;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLogsDumpToFile (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_iterator,&__pyx_mstate_global->__pyx_n_u_pathToFile,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 26095, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26095, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26095, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26095, __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, "cudaLogsDumpToFile", 0) < (0)) __PYX_ERR(0, 26095, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLogsDumpToFile", 1, 3, 3, i); __PYX_ERR(0, 26095, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 26095, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26095, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26095, __pyx_L3_error)
    }
    __pyx_v_iterator = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)values[0]);
    __pyx_v_pathToFile = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!__pyx_v_pathToFile) && PyErr_Occurred())) __PYX_ERR(0, 26096, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 26096, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLogsDumpToFile", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 26095, __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.runtime.cudaLogsDumpToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_iterator), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator, 1, "iterator", 0))) __PYX_ERR(0, 26096, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_382cudaLogsDumpToFile(__pyx_self, __pyx_v_iterator, __pyx_v_pathToFile, __pyx_v_flags);

  /* 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_7runtime_382cudaLogsDumpToFile(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_iterator, char *__pyx_v_pathToFile, unsigned int __pyx_v_flags) {
  cudaLogIterator *__pyx_v_cyiterator;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  cudaLogIterator *__pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLogsDumpToFile", 0);

  /* "cuda/bindings/runtime.pyx":26127
 *     The driver reserves limited memory for storing logs. The oldest logs may be overwritten and become unrecoverable. An indication will appear in the destination outupt if the logs have been truncated. Call dump after each failed API to mitigate this risk.
 *     """
 *     cdef cyruntime.cudaLogIterator* cyiterator = NULL             # <<<<<<<<<<<<<<
 *     if iterator is not None:
 *         cyiterator = iterator._pvt_ptr
*/
  __pyx_v_cyiterator = NULL;

  /* "cuda/bindings/runtime.pyx":26128
 *     """
 *     cdef cyruntime.cudaLogIterator* cyiterator = NULL
 *     if iterator is not None:             # <<<<<<<<<<<<<<
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_iterator) != Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26129
 *     cdef cyruntime.cudaLogIterator* cyiterator = NULL
 *     if iterator is not None:
 *         cyiterator = iterator._pvt_ptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLogsDumpToFile(cyiterator, pathToFile, flags)
*/
    __pyx_t_2 = __pyx_v_iterator->_pvt_ptr;
    __pyx_v_cyiterator = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":26128
 *     """
 *     cdef cyruntime.cudaLogIterator* cyiterator = NULL
 *     if iterator is not None:             # <<<<<<<<<<<<<<
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:
*/
  }

  /* "cuda/bindings/runtime.pyx":26130
 *     if iterator is not None:
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsDumpToFile(cyiterator, pathToFile, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26131
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:
 *         err = cyruntime.cudaLogsDumpToFile(cyiterator, pathToFile, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLogsDumpToFile(__pyx_v_cyiterator, __pyx_v_pathToFile, __pyx_v_flags); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26131, __pyx_L5_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":26130
 *     if iterator is not None:
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsDumpToFile(cyiterator, pathToFile, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26132
 *     with nogil:
 *         err = cyruntime.cudaLogsDumpToFile(cyiterator, pathToFile, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], iterator)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26133
 *         err = cyruntime.cudaLogsDumpToFile(cyiterator, pathToFile, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], iterator)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 26133, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 26133, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26132
 *     with nogil:
 *         err = cyruntime.cudaLogsDumpToFile(cyiterator, pathToFile, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], iterator)
*/
  }

  /* "cuda/bindings/runtime.pyx":26134
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], iterator)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 26134, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_iterator);
  __Pyx_GIVEREF((PyObject *)__pyx_v_iterator);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_iterator)) != (0)) __PYX_ERR(0, 26134, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26095
 *     return (_dict_cudaError_t[err], iterator_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsDumpToFile(iterator : Optional[cudaLogIterator], char* pathToFile, unsigned int flags):
 *     """ Dump accumulated driver logs into a file.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsDumpToFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26136
 *     return (_dict_cudaError_t[err], iterator)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsDumpToMemory(iterator : Optional[cudaLogIterator], char* buffer, size_t size, unsigned int flags):
 *     """ Dump accumulated driver logs into a buffer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_385cudaLogsDumpToMemory(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_7runtime_384cudaLogsDumpToMemory, "cudaLogsDumpToMemory(cudaLogIterator iterator: Optional[cudaLogIterator], char *buffer, size_t size, unsigned int flags)\n\nDump accumulated driver logs into a buffer.\n\n    Logs generated by the driver are stored in an internal buffer and can\n    be copied out using this API. This API dumps driver logs from\n    `iterator` into `buffer` up to the size specified in `*size`. The\n    driver will always null terminate the buffer but there will not be a\n    null character between log entries, only a newline \n. The driver will\n    then return the actual number of bytes written in `*size`, excluding\n    the null terminator. If there are no messages to dump, `*size` will be\n    set to 0 and the function will return :py:obj:`~.CUDA_SUCCESS`. If the\n    provided `buffer` is not large enough to hold any messages, `*size`\n    will be set to 0 and the function will return\n    :py:obj:`~.CUDA_ERROR_INVALID_VALUE`.\n\n    Parameters\n    ----------\n    iterator : :py:obj:`~.cudaLogIterator`\n        Optional auto-advancing iterator specifying the starting log to\n        read. NULL value dumps all logs.\n    buffer : bytes\n        Pointer to dump logs\n    size : int\n        See description\n    flags : unsigned int\n        Reserved for future use, must be 0\n\n    Returns\n    -------\n    cudaError_t\n        :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n    iterator : :py:obj:`~.cudaLogIterator`\n        Optional auto-advancing iterator specifying the starting log to\n        read. NULL value dumps all logs.\n    size : int\n        See description\n\n    Notes\n    -----\n    `iterator` is auto-advancing. Dumping logs will update the value of `iterator` to receive the next generated log.\n\n    The driver reserves limited memory for storing logs. The maximum size of the buffer is 25600 bytes. The oldest logs may be overwritten and become unrecoverable. An indication will appear in the destination outupt if the logs have been truncated. Call dump ""after each failed API to mitigate this risk.\n\n    If the provided value in `*size` is not large enough to hold all buffered messages, a message will be added at the head of the buffer indicating this. The driver then computes the number of messages it is able to store in `buffer` and writes it out. The final message in `buffer` will always be the most recent log message as of when the API is called.\n    ");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_385cudaLogsDumpToMemory = {"cudaLogsDumpToMemory", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_385cudaLogsDumpToMemory, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_384cudaLogsDumpToMemory};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_385cudaLogsDumpToMemory(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_iterator = 0;
  char *__pyx_v_buffer;
  size_t __pyx_v_size;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLogsDumpToMemory (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_iterator,&__pyx_mstate_global->__pyx_n_u_buffer,&__pyx_mstate_global->__pyx_n_u_size_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 26136, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26136, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26136, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26136, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26136, __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, "cudaLogsDumpToMemory", 0) < (0)) __PYX_ERR(0, 26136, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLogsDumpToMemory", 1, 4, 4, i); __PYX_ERR(0, 26136, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 26136, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26136, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26136, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26136, __pyx_L3_error)
    }
    __pyx_v_iterator = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *)values[0]);
    __pyx_v_buffer = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!__pyx_v_buffer) && PyErr_Occurred())) __PYX_ERR(0, 26137, __pyx_L3_error)
    __pyx_v_size = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_size == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26137, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 26137, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLogsDumpToMemory", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 26136, __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.runtime.cudaLogsDumpToMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_iterator), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator, 1, "iterator", 0))) __PYX_ERR(0, 26137, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_384cudaLogsDumpToMemory(__pyx_self, __pyx_v_iterator, __pyx_v_buffer, __pyx_v_size, __pyx_v_flags);

  /* 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_7runtime_384cudaLogsDumpToMemory(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator *__pyx_v_iterator, char *__pyx_v_buffer, size_t __pyx_v_size, unsigned int __pyx_v_flags) {
  cudaLogIterator *__pyx_v_cyiterator;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  cudaLogIterator *__pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLogsDumpToMemory", 0);

  /* "cuda/bindings/runtime.pyx":26182
 *     If the provided value in `*size` is not large enough to hold all buffered messages, a message will be added at the head of the buffer indicating this. The driver then computes the number of messages it is able to store in `buffer` and writes it out. The final message in `buffer` will always be the most recent log message as of when the API is called.
 *     """
 *     cdef cyruntime.cudaLogIterator* cyiterator = NULL             # <<<<<<<<<<<<<<
 *     if iterator is not None:
 *         cyiterator = iterator._pvt_ptr
*/
  __pyx_v_cyiterator = NULL;

  /* "cuda/bindings/runtime.pyx":26183
 *     """
 *     cdef cyruntime.cudaLogIterator* cyiterator = NULL
 *     if iterator is not None:             # <<<<<<<<<<<<<<
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_iterator) != Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26184
 *     cdef cyruntime.cudaLogIterator* cyiterator = NULL
 *     if iterator is not None:
 *         cyiterator = iterator._pvt_ptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLogsDumpToMemory(cyiterator, buffer, &size, flags)
*/
    __pyx_t_2 = __pyx_v_iterator->_pvt_ptr;
    __pyx_v_cyiterator = __pyx_t_2;

    /* "cuda/bindings/runtime.pyx":26183
 *     """
 *     cdef cyruntime.cudaLogIterator* cyiterator = NULL
 *     if iterator is not None:             # <<<<<<<<<<<<<<
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:
*/
  }

  /* "cuda/bindings/runtime.pyx":26185
 *     if iterator is not None:
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsDumpToMemory(cyiterator, buffer, &size, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26186
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:
 *         err = cyruntime.cudaLogsDumpToMemory(cyiterator, buffer, &size, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLogsDumpToMemory(__pyx_v_cyiterator, __pyx_v_buffer, (&__pyx_v_size), __pyx_v_flags); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26186, __pyx_L5_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":26185
 *     if iterator is not None:
 *         cyiterator = iterator._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLogsDumpToMemory(cyiterator, buffer, &size, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26187
 *     with nogil:
 *         err = cyruntime.cudaLogsDumpToMemory(cyiterator, buffer, &size, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], iterator, size)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26188
 *         err = cyruntime.cudaLogsDumpToMemory(cyiterator, buffer, &size, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], iterator, size)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 26188, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 26188, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None) != (0)) __PYX_ERR(0, 26188, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26187
 *     with nogil:
 *         err = cyruntime.cudaLogsDumpToMemory(cyiterator, buffer, &size, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], iterator, size)
*/
  }

  /* "cuda/bindings/runtime.pyx":26189
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], iterator, size)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyLong_FromSize_t(__pyx_v_size); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 26189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 26189, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_iterator);
  __Pyx_GIVEREF((PyObject *)__pyx_v_iterator);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_iterator)) != (0)) __PYX_ERR(0, 26189, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_6) != (0)) __PYX_ERR(0, 26189, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26136
 *     return (_dict_cudaError_t[err], iterator)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsDumpToMemory(iterator : Optional[cudaLogIterator], char* buffer, size_t size, unsigned int flags):
 *     """ Dump accumulated driver logs into a buffer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLogsDumpToMemory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26191
 *     return (_dict_cudaError_t[err], iterator, size)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphCreate(unsigned int flags):
 *     """ Creates a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_387cudaGraphCreate(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_7runtime_386cudaGraphCreate, "cudaGraphCreate(unsigned int flags)\n\nCreates a graph.\n\nCreates an empty graph, which is returned via `pGraph`.\n\nParameters\n----------\nflags : unsigned int\n    Graph creation flags, must be 0\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\npGraph : :py:obj:`~.cudaGraph_t`\n    Returns newly created graph\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`, :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphDestroy`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphClone`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_387cudaGraphCreate = {"cudaGraphCreate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_387cudaGraphCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_386cudaGraphCreate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_387cudaGraphCreate(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
) {
  unsigned int __pyx_v_flags;
  #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("cudaGraphCreate (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_flags_2,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, 26191, __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, 26191, __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, "cudaGraphCreate", 0) < (0)) __PYX_ERR(0, 26191, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphCreate", 1, 1, 1, i); __PYX_ERR(0, 26191, __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, 26191, __pyx_L3_error)
    }
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 26192, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphCreate", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 26191, __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.runtime.cudaGraphCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_386cudaGraphCreate(__pyx_self, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_386cudaGraphCreate(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_flags) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_pGraph = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphCreate", 0);

  /* "cuda/bindings/runtime.pyx":26213
 *     :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`, :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphDestroy`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphClone`
 *     """
 *     cdef cudaGraph_t pGraph = cudaGraph_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphCreate(<cyruntime.cudaGraph_t*>pGraph._pvt_ptr, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26213, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26214
 *     """
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphCreate(<cyruntime.cudaGraph_t*>pGraph._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26215
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphCreate(<cyruntime.cudaGraph_t*>pGraph._pvt_ptr, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphCreate(((cudaGraph_t *)__pyx_v_pGraph->__pyx_base._pvt_ptr), __pyx_v_flags); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26215, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":26214
 *     """
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphCreate(<cyruntime.cudaGraph_t*>pGraph._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26216
 *     with nogil:
 *         err = cyruntime.cudaGraphCreate(<cyruntime.cudaGraph_t*>pGraph._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":26217
 *         err = cyruntime.cudaGraphCreate(<cyruntime.cudaGraph_t*>pGraph._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraph)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 26217, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 26217, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26216
 *     with nogil:
 *         err = cyruntime.cudaGraphCreate(<cyruntime.cudaGraph_t*>pGraph._pvt_ptr, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)
*/
  }

  /* "cuda/bindings/runtime.pyx":26218
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 26218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 26218, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraph);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraph);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_pGraph)) != (0)) __PYX_ERR(0, 26218, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26191
 *     return (_dict_cudaError_t[err], iterator, size)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphCreate(unsigned int flags):
 *     """ Creates a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26220
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddKernelNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Creates a kernel execution node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_389cudaGraphAddKernelNode(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_7runtime_388cudaGraphAddKernelNode, "cudaGraphAddKernelNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, cudaKernelNodeParams pNodeParams: Optional[cudaKernelNodeParams])\n\nCreates a kernel execution node and adds it to a graph.\n\nCreates a new kernel execution node and adds it to `graph` with\n`numDependencies` dependencies specified via `pDependencies` and\narguments specified in `pNodeParams`. It is possible for\n`numDependencies` to be 0, in which case the node will be placed at the\nroot of the graph. `pDependencies` may not have any duplicate entries.\nA handle to the new node will be returned in `pGraphNode`.\n\nThe :py:obj:`~.cudaKernelNodeParams` structure is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nWhen the graph is launched, the node will invoke kernel `func` on a\n(`gridDim.x` x `gridDim.y` x `gridDim.z`) grid of blocks. Each block\ncontains (`blockDim.x` x `blockDim.y` x `blockDim.z`) threads.\n\n`sharedMem` sets the amount of dynamic shared memory that will be\navailable to each thread block.\n\nKernel parameters to `func` can be specified in one of two ways:\n\n1) Kernel parameters can be specified via `kernelParams`. If the kernel\nhas N parameters, then `kernelParams` needs to be an array of N\npointers. Each pointer, from `kernelParams`[0] to `kernelParams`[N-1],\npoints to the region of memory from which the actual parameter will be\ncopied. The number of kernel parameters and their offsets and sizes do\nnot need to be specified as that information is retrieved directly from\nthe kernel's image.\n\n2) Kernel parameters can also be packaged by the application into a\nsingle buffer that is passed in via `extra`. This places the burden on\nthe application of knowing each kernel parameter's size and\nalignment/padding within the buffer. The `extra` parameter exists to\nallow this function to take additional less commonly used arguments.\n`extra` specifies a list of names of extra settings and"" their\ncorresponding values. Each extra setting name is immediately followed\nby the corresponding value. The list must be terminated with either\nNULL or CU_LAUNCH_PARAM_END.\n\n- :py:obj:`~.CU_LAUNCH_PARAM_END`, which indicates the end of the\n  `extra` array;\n\n- :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_POINTER`, which specifies that the\n  next value in `extra` will be a pointer to a buffer containing all\n  the kernel parameters for launching kernel `func`;\n\n- :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_SIZE`, which specifies that the\n  next value in `extra` will be a pointer to a size_t containing the\n  size of the buffer specified with\n  :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_POINTER`;\n\nThe error :py:obj:`~.cudaErrorInvalidValue` will be returned if kernel\nparameters are specified with both `kernelParams` and `extra` (i.e.\nboth `kernelParams` and `extra` are non-NULL).\n\nThe `kernelParams` or `extra` array, as well as the argument values it\npoints to, are copied during this call.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\npNodeParams : :py:obj:`~.cudaKernelNodeParams`\n    Parameters for the GPU execution node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphKernelNodeGetParams`, :py:obj:`~.cudaGraphKernelNodeSetParams`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`\n\nNotes\n-----\nKernels launched usin""g graphs must not use texture and surface references. Reading or writing through any texture or surface reference is undefined behavior. This restriction does not apply to texture and surface objects.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_389cudaGraphAddKernelNode = {"cudaGraphAddKernelNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_389cudaGraphAddKernelNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_388cudaGraphAddKernelNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_389cudaGraphAddKernelNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddKernelNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 26220, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26220, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26220, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26220, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26220, __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, "cudaGraphAddKernelNode", 0) < (0)) __PYX_ERR(0, 26220, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddKernelNode", 1, 4, 4, i); __PYX_ERR(0, 26220, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 26220, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26220, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26220, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26220, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26221, __pyx_L3_error)
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddKernelNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 26220, __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.runtime.cudaGraphAddKernelNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 26221, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_388cudaGraphAddKernelNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_pNodeParams);

  /* 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_gb_4cuda_8bindings_7runtime_22cudaGraphAddKernelNode_2generator112(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":26308
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddKernelNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 26308, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddKernelNode_2generator112, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[112]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddKernelNode_locals_ge, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 26308, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddKernelNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddKernelNode_2generator112(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26308, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26308, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26308, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26308, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26308, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26308, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 26308, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26220
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddKernelNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Creates a kernel execution node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_388cudaGraphAddKernelNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct cudaKernelNodeParams *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddKernelNode_2generator112 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaKernelNodeParams *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddKernelNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":26307
 *     Kernels launched using graphs must not use texture and surface references. Reading or writing through any texture or surface reference is undefined behavior. This restriction does not apply to texture and surface objects.
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26308
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddKernelNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 26308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":26309
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26309, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 26309, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":26308
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":26311
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26312
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26311
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":26313
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26314
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26314, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26313
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":26316
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26316, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":26317
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26317, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26318
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26318, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26319
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":26320
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26320, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26321
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26321, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":26322
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":26323
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26323, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26323, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 26323, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":26322
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":26325
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26325, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":26326
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26326, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":26320
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":26327
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26327, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26328
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":26327
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":26329
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26329, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26329, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26329, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 26329, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":26330
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddKernelNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
*/
  __pyx_t_4 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_4) {
    __pyx_t_13 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_13 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_13;

  /* "cuda/bindings/runtime.pyx":26331
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddKernelNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26332
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphAddKernelNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddKernelNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26332, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":26331
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddKernelNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26333
 *     with nogil:
 *         err = cyruntime.cudaGraphAddKernelNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26333, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26334
 *         err = cyruntime.cudaGraphAddKernelNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":26333
 *     with nogil:
 *         err = cyruntime.cudaGraphAddKernelNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":26335
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26336
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 26336, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 26336, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26335
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":26337
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 26337, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 26337, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26220
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddKernelNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Creates a kernel execution node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddKernelNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddKernelNode_2generator112);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26339
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeGetParams(node):
 *     """ Returns a kernel node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_391cudaGraphKernelNodeGetParams(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_7runtime_390cudaGraphKernelNodeGetParams, "cudaGraphKernelNodeGetParams(node)\n\nReturns a kernel node's parameters.\n\nReturns the parameters of kernel node `node` in `pNodeParams`. The\n`kernelParams` or `extra` array returned in `pNodeParams`, as well as\nthe argument values it points to, are owned by the node. This memory\nremains valid until the node is destroyed or its parameters are\nmodified, and should not be modified directly. Use\n:py:obj:`~.cudaGraphKernelNodeSetParams` to update the parameters of\nthis node.\n\nThe params will contain either `kernelParams` or `extra`, according to\nwhich of these was most recently set on the node.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the parameters for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`\npNodeParams : :py:obj:`~.cudaKernelNodeParams`\n    Pointer to return the parameters\n\nSee Also\n--------\n:py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphKernelNodeSetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_391cudaGraphKernelNodeGetParams = {"cudaGraphKernelNodeGetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_391cudaGraphKernelNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_390cudaGraphKernelNodeGetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_391cudaGraphKernelNodeGetParams(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_node = 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("cudaGraphKernelNodeGetParams (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_node_2,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, 26339, __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, 26339, __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, "cudaGraphKernelNodeGetParams", 0) < (0)) __PYX_ERR(0, 26339, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeGetParams", 1, 1, 1, i); __PYX_ERR(0, 26339, __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, 26339, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 26339, __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.runtime.cudaGraphKernelNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_390cudaGraphKernelNodeGetParams(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_390cudaGraphKernelNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeGetParams", 0);

  /* "cuda/bindings/runtime.pyx":26371
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26372
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26371
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26373
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26374
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26373
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26376
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26376, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26376, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26377
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26377, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26378
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeGetParams(cynode, <cyruntime.cudaKernelNodeParams*>pNodeParams._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26378, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26379
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeGetParams(cynode, <cyruntime.cudaKernelNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26380
 *     cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams()
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeGetParams(cynode, <cyruntime.cudaKernelNodeParams*>pNodeParams._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeGetParams(__pyx_v_cynode, ((struct cudaKernelNodeParams *)__pyx_v_pNodeParams->_pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26380, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":26379
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaKernelNodeParams pNodeParams = cudaKernelNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeGetParams(cynode, <cyruntime.cudaKernelNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26381
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeGetParams(cynode, <cyruntime.cudaKernelNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26382
 *         err = cyruntime.cudaGraphKernelNodeGetParams(cynode, <cyruntime.cudaKernelNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 26382, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 26382, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26381
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeGetParams(cynode, <cyruntime.cudaKernelNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)
*/
  }

  /* "cuda/bindings/runtime.pyx":26383
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 26383, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pNodeParams);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pNodeParams);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pNodeParams)) != (0)) __PYX_ERR(0, 26383, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26339
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeGetParams(node):
 *     """ Returns a kernel node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_pNodeParams);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26385
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Sets a kernel node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_393cudaGraphKernelNodeSetParams(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_7runtime_392cudaGraphKernelNodeSetParams, "cudaGraphKernelNodeSetParams(node, cudaKernelNodeParams pNodeParams: Optional[cudaKernelNodeParams])\n\nSets a kernel node's parameters.\n\nSets the parameters of kernel node `node` to `pNodeParams`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the parameters for\npNodeParams : :py:obj:`~.cudaKernelNodeParams`\n    Parameters to copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorMemoryAllocation`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphKernelNodeGetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_393cudaGraphKernelNodeSetParams = {"cudaGraphKernelNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_393cudaGraphKernelNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_392cudaGraphKernelNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_393cudaGraphKernelNodeSetParams(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_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeSetParams (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_node_2,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 26385, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26385, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26385, __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, "cudaGraphKernelNodeSetParams", 0) < (0)) __PYX_ERR(0, 26385, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetParams", 1, 2, 2, i); __PYX_ERR(0, 26385, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 26385, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26385, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26385, __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.runtime.cudaGraphKernelNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 26386, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_392cudaGraphKernelNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_pNodeParams);

  /* 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_7runtime_392cudaGraphKernelNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct cudaKernelNodeParams *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaKernelNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":26408
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26409
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26408
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26410
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26411
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26410
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26413
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26413, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26414
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26414, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26415
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeSetParams(cynode, cypNodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":26416
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26417
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeSetParams(cynode, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeSetParams(__pyx_v_cynode, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26417, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":26416
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26418
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 26418, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26385
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Sets a kernel node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26420
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeCopyAttributes(hDst, hSrc):
 *     """ Copies attributes from source node to destination node.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_395cudaGraphKernelNodeCopyAttributes(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_7runtime_394cudaGraphKernelNodeCopyAttributes, "cudaGraphKernelNodeCopyAttributes(hDst, hSrc)\n\nCopies attributes from source node to destination node.\n\nCopies attributes from source node `hSrc` to destination node `hDst`.\nBoth node must have the same context.\n\nParameters\n----------\nhDst : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Destination node\nhSrc : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Source node For list of attributes see\n    :py:obj:`~.cudaKernelNodeAttrID`\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidContext`\n\nSee Also\n--------\n:py:obj:`~.cudaAccessPolicyWindow`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_395cudaGraphKernelNodeCopyAttributes = {"cudaGraphKernelNodeCopyAttributes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_395cudaGraphKernelNodeCopyAttributes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_394cudaGraphKernelNodeCopyAttributes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_395cudaGraphKernelNodeCopyAttributes(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_hDst = 0;
  PyObject *__pyx_v_hSrc = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeCopyAttributes (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_hDst,&__pyx_mstate_global->__pyx_n_u_hSrc,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, 26420, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26420, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26420, __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, "cudaGraphKernelNodeCopyAttributes", 0) < (0)) __PYX_ERR(0, 26420, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeCopyAttributes", 1, 2, 2, i); __PYX_ERR(0, 26420, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 26420, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26420, __pyx_L3_error)
    }
    __pyx_v_hDst = values[0];
    __pyx_v_hSrc = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeCopyAttributes", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26420, __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.runtime.cudaGraphKernelNodeCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_394cudaGraphKernelNodeCopyAttributes(__pyx_self, __pyx_v_hDst, __pyx_v_hSrc);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_394cudaGraphKernelNodeCopyAttributes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hDst, PyObject *__pyx_v_hSrc) {
  cudaGraphNode_t __pyx_v_cyhSrc;
  PyObject *__pyx_v_phSrc = NULL;
  cudaGraphNode_t __pyx_v_cyhDst;
  PyObject *__pyx_v_phDst = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeCopyAttributes", 0);

  /* "cuda/bindings/runtime.pyx":26445
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhSrc
 *     if hSrc is None:             # <<<<<<<<<<<<<<
 *         phSrc = 0
 *     elif isinstance(hSrc, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hSrc == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26446
 *     cdef cyruntime.cudaGraphNode_t cyhSrc
 *     if hSrc is None:
 *         phSrc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hSrc, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phSrc = int(hSrc)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phSrc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26445
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhSrc
 *     if hSrc is None:             # <<<<<<<<<<<<<<
 *         phSrc = 0
 *     elif isinstance(hSrc, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26447
 *     if hSrc is None:
 *         phSrc = 0
 *     elif isinstance(hSrc, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phSrc = int(hSrc)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hSrc, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hSrc, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26448
 *         phSrc = 0
 *     elif isinstance(hSrc, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phSrc = int(hSrc)             # <<<<<<<<<<<<<<
 *     else:
 *         phSrc = int(cudaGraphNode_t(hSrc))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hSrc); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26448, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phSrc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26447
 *     if hSrc is None:
 *         phSrc = 0
 *     elif isinstance(hSrc, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phSrc = int(hSrc)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26450
 *         phSrc = int(hSrc)
 *     else:
 *         phSrc = int(cudaGraphNode_t(hSrc))             # <<<<<<<<<<<<<<
 *     cyhSrc = <cyruntime.cudaGraphNode_t><void_ptr>phSrc
 *     cdef cyruntime.cudaGraphNode_t cyhDst
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hSrc};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26450, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phSrc = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26451
 *     else:
 *         phSrc = int(cudaGraphNode_t(hSrc))
 *     cyhSrc = <cyruntime.cudaGraphNode_t><void_ptr>phSrc             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cyhDst
 *     if hDst is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phSrc); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26451, __pyx_L1_error)
  __pyx_v_cyhSrc = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26453
 *     cyhSrc = <cyruntime.cudaGraphNode_t><void_ptr>phSrc
 *     cdef cyruntime.cudaGraphNode_t cyhDst
 *     if hDst is None:             # <<<<<<<<<<<<<<
 *         phDst = 0
 *     elif isinstance(hDst, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hDst == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26454
 *     cdef cyruntime.cudaGraphNode_t cyhDst
 *     if hDst is None:
 *         phDst = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hDst, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phDst = int(hDst)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phDst = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26453
 *     cyhSrc = <cyruntime.cudaGraphNode_t><void_ptr>phSrc
 *     cdef cyruntime.cudaGraphNode_t cyhDst
 *     if hDst is None:             # <<<<<<<<<<<<<<
 *         phDst = 0
 *     elif isinstance(hDst, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":26455
 *     if hDst is None:
 *         phDst = 0
 *     elif isinstance(hDst, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phDst = int(hDst)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hDst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hDst, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26456
 *         phDst = 0
 *     elif isinstance(hDst, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phDst = int(hDst)             # <<<<<<<<<<<<<<
 *     else:
 *         phDst = int(cudaGraphNode_t(hDst))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hDst); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26456, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phDst = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":26455
 *     if hDst is None:
 *         phDst = 0
 *     elif isinstance(hDst, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phDst = int(hDst)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":26458
 *         phDst = int(hDst)
 *     else:
 *         phDst = int(cudaGraphNode_t(hDst))             # <<<<<<<<<<<<<<
 *     cyhDst = <cyruntime.cudaGraphNode_t><void_ptr>phDst
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hDst};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26458, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26458, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phDst = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":26459
 *     else:
 *         phDst = int(cudaGraphNode_t(hDst))
 *     cyhDst = <cyruntime.cudaGraphNode_t><void_ptr>phDst             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeCopyAttributes(cyhDst, cyhSrc)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phDst); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26459, __pyx_L1_error)
  __pyx_v_cyhDst = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26460
 *         phDst = int(cudaGraphNode_t(hDst))
 *     cyhDst = <cyruntime.cudaGraphNode_t><void_ptr>phDst
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeCopyAttributes(cyhDst, cyhSrc)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26461
 *     cyhDst = <cyruntime.cudaGraphNode_t><void_ptr>phDst
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeCopyAttributes(cyhDst, cyhSrc)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeCopyAttributes(__pyx_v_cyhDst, __pyx_v_cyhSrc); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26461, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":26460
 *         phDst = int(cudaGraphNode_t(hDst))
 *     cyhDst = <cyruntime.cudaGraphNode_t><void_ptr>phDst
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeCopyAttributes(cyhDst, cyhSrc)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26462
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeCopyAttributes(cyhDst, cyhSrc)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 26462, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26420
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeCopyAttributes(hDst, hSrc):
 *     """ Copies attributes from source node to destination node.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeCopyAttributes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phSrc);
  __Pyx_XDECREF(__pyx_v_phDst);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26464
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID):
 *     """ Queries node attribute.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_397cudaGraphKernelNodeGetAttribute(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_7runtime_396cudaGraphKernelNodeGetAttribute, "cudaGraphKernelNodeGetAttribute(hNode, attr: cudaKernelNodeAttrID)\n\nQueries node attribute.\n\nQueries attribute `attr` from node `hNode` and stores it in\ncorresponding member of `value_out`.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n\nattr : :py:obj:`~.cudaKernelNodeAttrID`\n\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\nvalue_out : :py:obj:`~.cudaKernelNodeAttrValue`\n\n\nSee Also\n--------\n:py:obj:`~.cudaAccessPolicyWindow`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_397cudaGraphKernelNodeGetAttribute = {"cudaGraphKernelNodeGetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_397cudaGraphKernelNodeGetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_396cudaGraphKernelNodeGetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_397cudaGraphKernelNodeGetAttribute(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_hNode = 0;
  PyObject *__pyx_v_attr = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeGetAttribute (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_hNode,&__pyx_mstate_global->__pyx_n_u_attr,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, 26464, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26464, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26464, __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, "cudaGraphKernelNodeGetAttribute", 0) < (0)) __PYX_ERR(0, 26464, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeGetAttribute", 1, 2, 2, i); __PYX_ERR(0, 26464, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 26464, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26464, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
    __pyx_v_attr = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeGetAttribute", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26464, __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.runtime.cudaGraphKernelNodeGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 26465, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_396cudaGraphKernelNodeGetAttribute(__pyx_self, __pyx_v_hNode, __pyx_v_attr);

  /* 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_7runtime_396cudaGraphKernelNodeGetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, PyObject *__pyx_v_attr) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID __pyx_v_cyattr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue *__pyx_v_value_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeGetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":26490
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26491
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26490
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26492
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26493
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26492
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26495
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26495, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26496
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
 *     cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue()
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26496, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26497
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value             # <<<<<<<<<<<<<<
 *     cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue()
 *     with nogil:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaLaunchAttributeID)__Pyx_PyLong_As_enum__cudaLaunchAttributeID(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyattr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":26498
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
 *     cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeGetAttribute(cyhNode, cyattr, <cyruntime.cudaKernelNodeAttrValue*>value_out._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26498, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_value_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26499
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
 *     cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeGetAttribute(cyhNode, cyattr, <cyruntime.cudaKernelNodeAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26500
 *     cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue()
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeGetAttribute(cyhNode, cyattr, <cyruntime.cudaKernelNodeAttrValue*>value_out._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeGetAttribute(__pyx_v_cyhNode, __pyx_v_cyattr, ((__pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrValue *)__pyx_v_value_out->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26500, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":26499
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
 *     cdef cudaKernelNodeAttrValue value_out = cudaKernelNodeAttrValue()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeGetAttribute(cyhNode, cyattr, <cyruntime.cudaKernelNodeAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26501
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeGetAttribute(cyhNode, cyattr, <cyruntime.cudaKernelNodeAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26502
 *         err = cyruntime.cudaGraphKernelNodeGetAttribute(cyhNode, cyattr, <cyruntime.cudaKernelNodeAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], value_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26502, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26502, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26502, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26502, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 26502, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 26502, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26501
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeGetAttribute(cyhNode, cyattr, <cyruntime.cudaKernelNodeAttrValue*>value_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":26503
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], value_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 26503, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_value_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_value_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_v_value_out)) != (0)) __PYX_ERR(0, 26503, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26464
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID):
 *     """ Queries node attribute.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeGetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF((PyObject *)__pyx_v_value_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26505
 *     return (_dict_cudaError_t[err], value_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : Optional[cudaKernelNodeAttrValue]):
 *     """ Sets node attribute.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_399cudaGraphKernelNodeSetAttribute(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_7runtime_398cudaGraphKernelNodeSetAttribute, "cudaGraphKernelNodeSetAttribute(hNode, attr: cudaKernelNodeAttrID, cudaKernelNodeAttrValue value: Optional[cudaKernelNodeAttrValue])\n\nSets node attribute.\n\nSets attribute `attr` on node `hNode` from corresponding attribute of\n`value`.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n\nattr : :py:obj:`~.cudaKernelNodeAttrID`\n\nvalue : :py:obj:`~.cudaKernelNodeAttrValue`\n\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\n\nSee Also\n--------\n:py:obj:`~.cudaAccessPolicyWindow`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_399cudaGraphKernelNodeSetAttribute = {"cudaGraphKernelNodeSetAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_399cudaGraphKernelNodeSetAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_398cudaGraphKernelNodeSetAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_399cudaGraphKernelNodeSetAttribute(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_hNode = 0;
  PyObject *__pyx_v_attr = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeSetAttribute (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_hNode,&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_value,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, 26505, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26505, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26505, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26505, __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, "cudaGraphKernelNodeSetAttribute", 0) < (0)) __PYX_ERR(0, 26505, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetAttribute", 1, 3, 3, i); __PYX_ERR(0, 26505, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 26505, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26505, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26505, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
    __pyx_v_attr = values[1];
    __pyx_v_value = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphKernelNodeSetAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 26505, __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.runtime.cudaGraphKernelNodeSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 26506, __pyx_L1_error)
  }
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue, 1, "value", 0))) __PYX_ERR(0, 26506, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_398cudaGraphKernelNodeSetAttribute(__pyx_self, __pyx_v_hNode, __pyx_v_attr, __pyx_v_value);

  /* 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_7runtime_398cudaGraphKernelNodeSetAttribute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, PyObject *__pyx_v_attr, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue *__pyx_v_value) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID __pyx_v_cyattr;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrValue *__pyx_v_cyvalue_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID __pyx_t_7;
  union cudaLaunchAttributeValue *__pyx_t_8;
  cudaError_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphKernelNodeSetAttribute", 0);

  /* "cuda/bindings/runtime.pyx":26531
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26532
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26531
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26533
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26534
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26533
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26536
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26536, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26537
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
 *     cdef cyruntime.cudaKernelNodeAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26537, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26538
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaKernelNodeAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
 *     with nogil:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaLaunchAttributeID)__Pyx_PyLong_As_enum__cudaLaunchAttributeID(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26538, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cyattr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":26539
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
 *     cdef cyruntime.cudaKernelNodeAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeSetAttribute(cyhNode, cyattr, cyvalue_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_value) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_8 = __pyx_v_value->__pyx_base._pvt_ptr;
  } else {
    __pyx_t_8 = NULL;
  }
  __pyx_v_cyvalue_ptr = __pyx_t_8;

  /* "cuda/bindings/runtime.pyx":26540
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
 *     cdef cyruntime.cudaKernelNodeAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeSetAttribute(cyhNode, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26541
 *     cdef cyruntime.cudaKernelNodeAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeSetAttribute(cyhNode, cyattr, cyvalue_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeSetAttribute(__pyx_v_cyhNode, __pyx_v_cyattr, __pyx_v_cyvalue_ptr); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26541, __pyx_L7_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":26540
 *     cdef cyruntime.cudaKernelNodeAttrID cyattr = attr.value
 *     cdef cyruntime.cudaKernelNodeAttrValue* cyvalue_ptr = value._pvt_ptr if value is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphKernelNodeSetAttribute(cyhNode, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26542
 *     with nogil:
 *         err = cyruntime.cudaGraphKernelNodeSetAttribute(cyhNode, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_10);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_10) != (0)) __PYX_ERR(0, 26542, __pyx_L1_error);
  __pyx_t_10 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26505
 *     return (_dict_cudaError_t[err], value_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : Optional[cudaKernelNodeAttrValue]):
 *     """ Sets node attribute.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphKernelNodeSetAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26544
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pCopyParams : Optional[cudaMemcpy3DParms]):
 *     """ Creates a memcpy node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_401cudaGraphAddMemcpyNode(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_7runtime_400cudaGraphAddMemcpyNode, "cudaGraphAddMemcpyNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, cudaMemcpy3DParms pCopyParams: Optional[cudaMemcpy3DParms])\n\nCreates a memcpy node and adds it to a graph.\n\nCreates a new memcpy node and adds it to `graph` with `numDependencies`\ndependencies specified via `pDependencies`. It is possible for\n`numDependencies` to be 0, in which case the node will be placed at the\nroot of the graph. `pDependencies` may not have any duplicate entries.\nA handle to the new node will be returned in `pGraphNode`.\n\nWhen the graph is launched, the node will perform the memcpy described\nby `pCopyParams`. See :py:obj:`~.cudaMemcpy3D()` for a description of\nthe structure and its restrictions.\n\nMemcpy nodes have some additional restrictions with regards to managed\nmemory, if the system contains at least one device which has a zero\nvalue for the device attribute\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess`.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\npCopyParams : :py:obj:`~.cudaMemcpy3DParms`\n    Parameters for the memory copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaGraphAddMemcpyNodeToSymbol`, :py:obj:`~.cudaGraphAddMemcpyNodeFromSymbol`, :py:obj:`~.cudaGraphAddMemcpyNode1D`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~"".cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_401cudaGraphAddMemcpyNode = {"cudaGraphAddMemcpyNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_401cudaGraphAddMemcpyNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_400cudaGraphAddMemcpyNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_401cudaGraphAddMemcpyNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pCopyParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddMemcpyNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_pCopyParams,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, 26544, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26544, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26544, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26544, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26544, __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, "cudaGraphAddMemcpyNode", 0) < (0)) __PYX_ERR(0, 26544, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode", 1, 4, 4, i); __PYX_ERR(0, 26544, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 26544, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26544, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26544, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26544, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26545, __pyx_L3_error)
    __pyx_v_pCopyParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 26544, __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.runtime.cudaGraphAddMemcpyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pCopyParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, 1, "pCopyParams", 0))) __PYX_ERR(0, 26545, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_400cudaGraphAddMemcpyNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_pCopyParams);

  /* 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_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemcpyNode_2generator113(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":26586
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddMemcpyNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 26586, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemcpyNode_2generator113, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[113]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemcpyNode_locals_ge, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 26586, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemcpyNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemcpyNode_2generator113(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26586, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26586, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26586, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26586, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26586, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26586, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 26586, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26544
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pCopyParams : Optional[cudaMemcpy3DParms]):
 *     """ Creates a memcpy node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_400cudaGraphAddMemcpyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pCopyParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct cudaMemcpy3DParms *__pyx_v_cypCopyParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemcpyNode_2generator113 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaMemcpy3DParms *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddMemcpyNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":26585
 *     :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaGraphAddMemcpyNodeToSymbol`, :py:obj:`~.cudaGraphAddMemcpyNodeFromSymbol`, :py:obj:`~.cudaGraphAddMemcpyNode1D`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemsetNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26586
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddMemcpyNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 26586, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":26587
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26587, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 26587, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":26586
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":26589
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26590
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26589
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":26591
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26592
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26591
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":26594
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26594, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":26595
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26595, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26596
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26596, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26597
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":26598
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26598, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26599
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26599, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":26600
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":26601
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26601, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26601, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26601, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26601, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26601, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26601, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26601, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26601, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26601, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 26601, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":26600
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":26603
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26603, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":26604
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26604, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":26598
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":26605
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26605, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26606
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemcpy3DParms* cypCopyParams_ptr = pCopyParams._pvt_ptr if pCopyParams is not None else NULL
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":26605
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":26607
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpy3DParms* cypCopyParams_ptr = pCopyParams._pvt_ptr if pCopyParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26607, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26607, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26607, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 26607, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":26608
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemcpy3DParms* cypCopyParams_ptr = pCopyParams._pvt_ptr if pCopyParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemcpyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypCopyParams_ptr)
*/
  __pyx_t_4 = (((PyObject *)__pyx_v_pCopyParams) != Py_None);
  if (__pyx_t_4) {
    __pyx_t_13 = __pyx_v_pCopyParams->_pvt_ptr;
  } else {
    __pyx_t_13 = NULL;
  }
  __pyx_v_cypCopyParams_ptr = __pyx_t_13;

  /* "cuda/bindings/runtime.pyx":26609
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemcpy3DParms* cypCopyParams_ptr = pCopyParams._pvt_ptr if pCopyParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemcpyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypCopyParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26610
 *     cdef cyruntime.cudaMemcpy3DParms* cypCopyParams_ptr = pCopyParams._pvt_ptr if pCopyParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemcpyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypCopyParams_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemcpyNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cypCopyParams_ptr); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26610, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":26609
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemcpy3DParms* cypCopyParams_ptr = pCopyParams._pvt_ptr if pCopyParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemcpyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypCopyParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26611
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemcpyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypCopyParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26611, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26612
 *         err = cyruntime.cudaGraphAddMemcpyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypCopyParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":26611
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemcpyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypCopyParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":26613
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26614
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 26614, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 26614, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26613
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":26615
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 26615, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 26615, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26544
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pCopyParams : Optional[cudaMemcpy3DParms]):
 *     """ Creates a memcpy node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemcpyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemcpyNode_2generator113);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26617
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Creates a 1D memcpy node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_403cudaGraphAddMemcpyNode1D(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_7runtime_402cudaGraphAddMemcpyNode1D, "cudaGraphAddMemcpyNode1D(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind: cudaMemcpyKind)\n\nCreates a 1D memcpy node and adds it to a graph.\n\nCreates a new 1D memcpy node and adds it to `graph` with\n`numDependencies` dependencies specified via `pDependencies`. It is\npossible for `numDependencies` to be 0, in which case the node will be\nplaced at the root of the graph. `pDependencies` may not have any\nduplicate entries. A handle to the new node will be returned in\n`pGraphNode`.\n\nWhen the graph is launched, the node will copy `count` bytes from the\nmemory area pointed to by `src` to the memory area pointed to by `dst`,\nwhere `kind` specifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. Launching a memcpy node with dst and src\npointers that do not match the direction of the copy results in an\nundefined behavior.\n\nMemcpy nodes have some additional restrictions with regards to managed\nmemory, if the system contains at least one device which has a zero\nvalue for the device attribute\n:py:obj:`~.cudaDevAttrConcurrentManagedAccess`.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\ndst : Any\n    Destination memory address\nsrc : Any\n    Source memory address\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer""\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams1D`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_403cudaGraphAddMemcpyNode1D = {"cudaGraphAddMemcpyNode1D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_403cudaGraphAddMemcpyNode1D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_402cudaGraphAddMemcpyNode1D};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_403cudaGraphAddMemcpyNode1D(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  PyObject *__pyx_v_dst = 0;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddMemcpyNode1D (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_dst_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 26617, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 26617, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 26617, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 26617, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26617, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26617, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26617, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26617, __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, "cudaGraphAddMemcpyNode1D", 0) < (0)) __PYX_ERR(0, 26617, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode1D", 1, 7, 7, i); __PYX_ERR(0, 26617, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      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, 26617, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26617, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26617, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26617, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 26617, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 26617, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 26617, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26618, __pyx_L3_error)
    __pyx_v_dst = values[3];
    __pyx_v_src = values[4];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[5]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26618, __pyx_L3_error)
    __pyx_v_kind = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemcpyNode1D", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 26617, __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.runtime.cudaGraphAddMemcpyNode1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 26618, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_402cudaGraphAddMemcpyNode1D(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_dst, __pyx_v_src, __pyx_v_count, __pyx_v_kind);

  /* 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_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemcpyNode1D_2generator114(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":26675
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddMemcpyNode1D_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 26675, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemcpyNode1D_2generator114, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[114]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemcpyNode1D_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 26675, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemcpyNode1D.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemcpyNode1D_2generator114(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26675, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26675, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26675, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26675, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26675, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26675, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 26675, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26617
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Creates a 1D memcpy node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_402cudaGraphAddMemcpyNode1D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemcpyNode1D_2generator114 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  enum cudaMemcpyKind __pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddMemcpyNode1D", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":26674
 *     :py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams1D`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemsetNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26674, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26675
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddMemcpyNode1D_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 26675, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":26676
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26676, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 26676, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":26675
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":26678
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26679
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26678
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":26680
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26681
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26680
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":26683
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26683, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":26684
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26684, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26685
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26685, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26686
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":26687
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26687, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26688
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26688, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":26689
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":26690
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26690, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26690, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 26690, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":26689
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":26692
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26692, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":26693
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26693, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":26687
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":26694
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cydst = _HelperInputVoidPtr(dst)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26694, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26695
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26695, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":26694
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cydst = _HelperInputVoidPtr(dst)
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":26696
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_8 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_dst};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26696, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26697
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26697, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26698
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_8 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_src};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26698, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26699
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26699, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26700
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemcpyNode1D(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydst_ptr, cysrc_ptr, count, cykind)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_13 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26700, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cykind = __pyx_t_13;

  /* "cuda/bindings/runtime.pyx":26701
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemcpyNode1D(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydst_ptr, cysrc_ptr, count, cykind)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26702
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemcpyNode1D(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydst_ptr, cysrc_ptr, count, cykind)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemcpyNode1D(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cydst_ptr, __pyx_v_cysrc_ptr, __pyx_v_count, __pyx_v_cykind); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26702, __pyx_L12_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":26701
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemcpyNode1D(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydst_ptr, cysrc_ptr, count, cykind)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L13;
        }
        __pyx_L12_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L13:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26703
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemcpyNode1D(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydst_ptr, cysrc_ptr, count, cykind)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26703, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L15_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L15_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26704
 *         err = cyruntime.cudaGraphAddMemcpyNode1D(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydst_ptr, cysrc_ptr, count, cykind)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":26703
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemcpyNode1D(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydst_ptr, cysrc_ptr, count, cykind)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":26705
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26706
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 26706, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, Py_None) != (0)) __PYX_ERR(0, 26706, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26705
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":26707
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 26707, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 26707, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26617
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Creates a 1D memcpy node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemcpyNode1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemcpyNode1D_2generator114);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26709
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeGetParams(node):
 *     """ Returns a memcpy node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_405cudaGraphMemcpyNodeGetParams(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_7runtime_404cudaGraphMemcpyNodeGetParams, "cudaGraphMemcpyNodeGetParams(node)\n\nReturns a memcpy node's parameters.\n\nReturns the parameters of memcpy node `node` in `pNodeParams`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the parameters for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npNodeParams : :py:obj:`~.cudaMemcpy3DParms`\n    Pointer to return the parameters\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_405cudaGraphMemcpyNodeGetParams = {"cudaGraphMemcpyNodeGetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_405cudaGraphMemcpyNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_404cudaGraphMemcpyNodeGetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_405cudaGraphMemcpyNodeGetParams(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_node = 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("cudaGraphMemcpyNodeGetParams (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_node_2,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, 26709, __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, 26709, __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, "cudaGraphMemcpyNodeGetParams", 0) < (0)) __PYX_ERR(0, 26709, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeGetParams", 1, 1, 1, i); __PYX_ERR(0, 26709, __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, 26709, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 26709, __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.runtime.cudaGraphMemcpyNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_404cudaGraphMemcpyNodeGetParams(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_404cudaGraphMemcpyNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pNodeParams = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphMemcpyNodeGetParams", 0);

  /* "cuda/bindings/runtime.pyx":26732
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26733
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26732
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26734
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26735
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26735, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26734
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26737
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26737, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26737, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26738
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26738, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26739
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeGetParams(cynode, <cyruntime.cudaMemcpy3DParms*>pNodeParams._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26739, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26740
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemcpyNodeGetParams(cynode, <cyruntime.cudaMemcpy3DParms*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26741
 *     cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms()
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeGetParams(cynode, <cyruntime.cudaMemcpy3DParms*>pNodeParams._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeGetParams(__pyx_v_cynode, ((struct cudaMemcpy3DParms *)__pyx_v_pNodeParams->_pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26741, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":26740
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemcpy3DParms pNodeParams = cudaMemcpy3DParms()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemcpyNodeGetParams(cynode, <cyruntime.cudaMemcpy3DParms*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26742
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeGetParams(cynode, <cyruntime.cudaMemcpy3DParms*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26743
 *         err = cyruntime.cudaGraphMemcpyNodeGetParams(cynode, <cyruntime.cudaMemcpy3DParms*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 26743, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 26743, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26742
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeGetParams(cynode, <cyruntime.cudaMemcpy3DParms*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)
*/
  }

  /* "cuda/bindings/runtime.pyx":26744
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 26744, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pNodeParams);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pNodeParams);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pNodeParams)) != (0)) __PYX_ERR(0, 26744, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26709
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeGetParams(node):
 *     """ Returns a memcpy node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphMemcpyNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_pNodeParams);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26746
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms]):
 *     """ Sets a memcpy node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_407cudaGraphMemcpyNodeSetParams(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_7runtime_406cudaGraphMemcpyNodeSetParams, "cudaGraphMemcpyNodeSetParams(node, cudaMemcpy3DParms pNodeParams: Optional[cudaMemcpy3DParms])\n\nSets a memcpy node's parameters.\n\nSets the parameters of memcpy node `node` to `pNodeParams`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the parameters for\npNodeParams : :py:obj:`~.cudaMemcpy3DParms`\n    Parameters to copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaMemcpy3D`, :py:obj:`~.cudaGraphMemcpyNodeSetParamsToSymbol`, :py:obj:`~.cudaGraphMemcpyNodeSetParamsFromSymbol`, :py:obj:`~.cudaGraphMemcpyNodeSetParams1D`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_407cudaGraphMemcpyNodeSetParams = {"cudaGraphMemcpyNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_407cudaGraphMemcpyNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_406cudaGraphMemcpyNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_407cudaGraphMemcpyNodeSetParams(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_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphMemcpyNodeSetParams (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_node_2,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 26746, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26746, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26746, __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, "cudaGraphMemcpyNodeSetParams", 0) < (0)) __PYX_ERR(0, 26746, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams", 1, 2, 2, i); __PYX_ERR(0, 26746, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 26746, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26746, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26746, __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.runtime.cudaGraphMemcpyNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, 1, "pNodeParams", 0))) __PYX_ERR(0, 26747, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_406cudaGraphMemcpyNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_pNodeParams);

  /* 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_7runtime_406cudaGraphMemcpyNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pNodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct cudaMemcpy3DParms *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemcpy3DParms *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphMemcpyNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":26769
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26770
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26769
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26771
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26772
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26772, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26771
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26774
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26774, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26775
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26775, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26776
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams(cynode, cypNodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":26777
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26778
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams(cynode, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeSetParams(__pyx_v_cynode, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26778, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":26777
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26779
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 26779, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26746
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms]):
 *     """ Sets a memcpy node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphMemcpyNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26781
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Sets a memcpy node's parameters to perform a 1-dimensional copy.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_409cudaGraphMemcpyNodeSetParams1D(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_7runtime_408cudaGraphMemcpyNodeSetParams1D, "cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind: cudaMemcpyKind)\n\nSets a memcpy node's parameters to perform a 1-dimensional copy.\n\nSets the parameters of memcpy node `node` to the copy described by the\nprovided parameters.\n\nWhen the graph is launched, the node will copy `count` bytes from the\nmemory area pointed to by `src` to the memory area pointed to by `dst`,\nwhere `kind` specifies the direction of the copy, and must be one of\n:py:obj:`~.cudaMemcpyHostToHost`, :py:obj:`~.cudaMemcpyHostToDevice`,\n:py:obj:`~.cudaMemcpyDeviceToHost`,\n:py:obj:`~.cudaMemcpyDeviceToDevice`, or :py:obj:`~.cudaMemcpyDefault`.\nPassing :py:obj:`~.cudaMemcpyDefault` is recommended, in which case the\ntype of transfer is inferred from the pointer values. However,\n:py:obj:`~.cudaMemcpyDefault` is only allowed on systems that support\nunified virtual addressing. Launching a memcpy node with dst and src\npointers that do not match the direction of the copy results in an\nundefined behavior.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the parameters for\ndst : Any\n    Destination memory address\nsrc : Any\n    Source memory address\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaMemcpy`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_409cudaGraphMemcpyNodeSetParams1D = {"cudaGraphMemcpyNodeSetParams1D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_409cudaGraphMemcpyNodeSetParams1D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_408cudaGraphMemcpyNodeSetParams1D};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_409cudaGraphMemcpyNodeSetParams1D(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_node = 0;
  PyObject *__pyx_v_dst = 0;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphMemcpyNodeSetParams1D (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_node_2,&__pyx_mstate_global->__pyx_n_u_dst_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 26781, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 26781, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26781, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26781, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26781, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26781, __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, "cudaGraphMemcpyNodeSetParams1D", 0) < (0)) __PYX_ERR(0, 26781, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams1D", 1, 5, 5, i); __PYX_ERR(0, 26781, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 26781, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26781, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26781, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26781, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 26781, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
    __pyx_v_dst = values[1];
    __pyx_v_src = values[2];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26782, __pyx_L3_error)
    __pyx_v_kind = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphMemcpyNodeSetParams1D", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 26781, __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.runtime.cudaGraphMemcpyNodeSetParams1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 26782, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_408cudaGraphMemcpyNodeSetParams1D(__pyx_self, __pyx_v_node, __pyx_v_dst, __pyx_v_src, __pyx_v_count, __pyx_v_kind);

  /* 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_7runtime_408cudaGraphMemcpyNodeSetParams1D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemcpyKind __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphMemcpyNodeSetParams1D", 0);

  /* "cuda/bindings/runtime.pyx":26824
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26825
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26824
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26826
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26827
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26826
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26829
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26829, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26830
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26830, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26831
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dst};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26831, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26832
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26832, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26833
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_src};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26833, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26834
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26834, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26835
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams1D(cynode, cydst_ptr, cysrc_ptr, count, cykind)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 26835, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cykind = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":26836
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams1D(cynode, cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26837
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams1D(cynode, cydst_ptr, cysrc_ptr, count, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeSetParams1D(__pyx_v_cynode, __pyx_v_cydst_ptr, __pyx_v_cysrc_ptr, __pyx_v_count, __pyx_v_cykind); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26837, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":26836
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams1D(cynode, cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26838
 *     with nogil:
 *         err = cyruntime.cudaGraphMemcpyNodeSetParams1D(cynode, cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 26838, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26781
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Sets a memcpy node's parameters to perform a 1-dimensional copy.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphMemcpyNodeSetParams1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26840
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemsetNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pMemsetParams : Optional[cudaMemsetParams]):
 *     """ Creates a memset node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_411cudaGraphAddMemsetNode(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_7runtime_410cudaGraphAddMemsetNode, "cudaGraphAddMemsetNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, cudaMemsetParams pMemsetParams: Optional[cudaMemsetParams])\n\nCreates a memset node and adds it to a graph.\n\nCreates a new memset node and adds it to `graph` with `numDependencies`\ndependencies specified via `pDependencies`. It is possible for\n`numDependencies` to be 0, in which case the node will be placed at the\nroot of the graph. `pDependencies` may not have any duplicate entries.\nA handle to the new node will be returned in `pGraphNode`.\n\nThe element size must be 1, 2, or 4 bytes. When the graph is launched,\nthe node will perform the memset described by `pMemsetParams`.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\npMemsetParams : :py:obj:`~.cudaMemsetParams`\n    Parameters for the memory set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaGraphMemsetNodeGetParams`, :py:obj:`~.cudaGraphMemsetNodeSetParams`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_411cudaGraphAddMemsetNode = {"cudaGraphAddMemsetNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_411cudaGraphAddMemsetNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_410cudaGraphAddMemsetNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_411cudaGraphAddMemsetNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pMemsetParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddMemsetNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_pMemsetParams,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, 26840, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26840, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26840, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26840, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26840, __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, "cudaGraphAddMemsetNode", 0) < (0)) __PYX_ERR(0, 26840, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemsetNode", 1, 4, 4, i); __PYX_ERR(0, 26840, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 26840, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26840, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26840, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26840, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26841, __pyx_L3_error)
    __pyx_v_pMemsetParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemsetNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 26840, __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.runtime.cudaGraphAddMemsetNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pMemsetParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams, 1, "pMemsetParams", 0))) __PYX_ERR(0, 26841, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_410cudaGraphAddMemsetNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_pMemsetParams);

  /* 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_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemsetNode_2generator115(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":26876
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddMemsetNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 26876, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemsetNode_2generator115, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[115]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemsetNode_locals_ge, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 26876, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemsetNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemsetNode_2generator115(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 26876, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 26876, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26876, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26876, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 26876, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26876, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 26876, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26840
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemsetNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pMemsetParams : Optional[cudaMemsetParams]):
 *     """ Creates a memset node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_410cudaGraphAddMemsetNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pMemsetParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct cudaMemsetParams *__pyx_v_cypMemsetParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemsetNode_2generator115 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaMemsetParams *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddMemsetNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":26875
 *     :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaGraphMemsetNodeGetParams`, :py:obj:`~.cudaGraphMemsetNodeSetParams`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26875, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26876
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_22cudaGraphAddMemsetNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 26876, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":26877
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26877, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 26877, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":26876
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":26879
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26880
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26879
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":26881
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26882
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26882, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26881
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":26884
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26884, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26884, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":26885
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26885, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26886
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26886, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":26887
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":26888
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26888, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26889
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26889, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":26890
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":26891
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26891, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26891, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 26891, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":26890
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":26893
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26893, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":26894
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26894, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":26888
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":26895
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26895, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26896
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemsetParams* cypMemsetParams_ptr = pMemsetParams._pvt_ptr if pMemsetParams is not None else NULL
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26896, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":26895
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":26897
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemsetParams* cypMemsetParams_ptr = pMemsetParams._pvt_ptr if pMemsetParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26897, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26897, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 26897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26897, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 26897, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":26898
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemsetParams* cypMemsetParams_ptr = pMemsetParams._pvt_ptr if pMemsetParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemsetNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypMemsetParams_ptr)
*/
  __pyx_t_4 = (((PyObject *)__pyx_v_pMemsetParams) != Py_None);
  if (__pyx_t_4) {
    __pyx_t_13 = __pyx_v_pMemsetParams->_pvt_ptr;
  } else {
    __pyx_t_13 = NULL;
  }
  __pyx_v_cypMemsetParams_ptr = __pyx_t_13;

  /* "cuda/bindings/runtime.pyx":26899
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemsetParams* cypMemsetParams_ptr = pMemsetParams._pvt_ptr if pMemsetParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemsetNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypMemsetParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26900
 *     cdef cyruntime.cudaMemsetParams* cypMemsetParams_ptr = pMemsetParams._pvt_ptr if pMemsetParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemsetNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypMemsetParams_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemsetNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cypMemsetParams_ptr); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26900, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":26899
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemsetParams* cypMemsetParams_ptr = pMemsetParams._pvt_ptr if pMemsetParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemsetNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypMemsetParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26901
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemsetNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypMemsetParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 26901, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26902
 *         err = cyruntime.cudaGraphAddMemsetNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypMemsetParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":26901
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemsetNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypMemsetParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":26903
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":26904
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26904, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26904, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26904, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26904, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 26904, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 26904, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26903
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":26905
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 26905, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 26905, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26840
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemsetNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pMemsetParams : Optional[cudaMemsetParams]):
 *     """ Creates a memset node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemsetNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_22cudaGraphAddMemsetNode_2generator115);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26907
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemsetNodeGetParams(node):
 *     """ Returns a memset node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_413cudaGraphMemsetNodeGetParams(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_7runtime_412cudaGraphMemsetNodeGetParams, "cudaGraphMemsetNodeGetParams(node)\n\nReturns a memset node's parameters.\n\nReturns the parameters of memset node `node` in `pNodeParams`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the parameters for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npNodeParams : :py:obj:`~.cudaMemsetParams`\n    Pointer to return the parameters\n\nSee Also\n--------\n:py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaGraphAddMemsetNode`, :py:obj:`~.cudaGraphMemsetNodeSetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_413cudaGraphMemsetNodeGetParams = {"cudaGraphMemsetNodeGetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_413cudaGraphMemsetNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_412cudaGraphMemsetNodeGetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_413cudaGraphMemsetNodeGetParams(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_node = 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("cudaGraphMemsetNodeGetParams (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_node_2,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, 26907, __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, 26907, __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, "cudaGraphMemsetNodeGetParams", 0) < (0)) __PYX_ERR(0, 26907, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphMemsetNodeGetParams", 1, 1, 1, i); __PYX_ERR(0, 26907, __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, 26907, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphMemsetNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 26907, __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.runtime.cudaGraphMemsetNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_412cudaGraphMemsetNodeGetParams(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_412cudaGraphMemsetNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pNodeParams = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphMemsetNodeGetParams", 0);

  /* "cuda/bindings/runtime.pyx":26930
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26931
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26930
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26932
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26933
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26933, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26932
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26935
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemsetParams pNodeParams = cudaMemsetParams()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26935, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26935, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26936
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cudaMemsetParams pNodeParams = cudaMemsetParams()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26936, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26937
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemsetParams pNodeParams = cudaMemsetParams()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphMemsetNodeGetParams(cynode, <cyruntime.cudaMemsetParams*>pNodeParams._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26937, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26938
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemsetParams pNodeParams = cudaMemsetParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemsetNodeGetParams(cynode, <cyruntime.cudaMemsetParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26939
 *     cdef cudaMemsetParams pNodeParams = cudaMemsetParams()
 *     with nogil:
 *         err = cyruntime.cudaGraphMemsetNodeGetParams(cynode, <cyruntime.cudaMemsetParams*>pNodeParams._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemsetNodeGetParams(__pyx_v_cynode, ((struct cudaMemsetParams *)__pyx_v_pNodeParams->_pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26939, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":26938
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemsetParams pNodeParams = cudaMemsetParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemsetNodeGetParams(cynode, <cyruntime.cudaMemsetParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26940
 *     with nogil:
 *         err = cyruntime.cudaGraphMemsetNodeGetParams(cynode, <cyruntime.cudaMemsetParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26941
 *         err = cyruntime.cudaGraphMemsetNodeGetParams(cynode, <cyruntime.cudaMemsetParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 26941, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 26941, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":26940
 *     with nogil:
 *         err = cyruntime.cudaGraphMemsetNodeGetParams(cynode, <cyruntime.cudaMemsetParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)
*/
  }

  /* "cuda/bindings/runtime.pyx":26942
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26942, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26942, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26942, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 26942, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 26942, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pNodeParams);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pNodeParams);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pNodeParams)) != (0)) __PYX_ERR(0, 26942, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26907
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemsetNodeGetParams(node):
 *     """ Returns a memset node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphMemsetNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_pNodeParams);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26944
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]):
 *     """ Sets a memset node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_415cudaGraphMemsetNodeSetParams(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_7runtime_414cudaGraphMemsetNodeSetParams, "cudaGraphMemsetNodeSetParams(node, cudaMemsetParams pNodeParams: Optional[cudaMemsetParams])\n\nSets a memset node's parameters.\n\nSets the parameters of memset node `node` to `pNodeParams`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the parameters for\npNodeParams : :py:obj:`~.cudaMemsetParams`\n    Parameters to copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaMemset2D`, :py:obj:`~.cudaGraphAddMemsetNode`, :py:obj:`~.cudaGraphMemsetNodeGetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_415cudaGraphMemsetNodeSetParams = {"cudaGraphMemsetNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_415cudaGraphMemsetNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_414cudaGraphMemsetNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_415cudaGraphMemsetNodeSetParams(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_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphMemsetNodeSetParams (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_node_2,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 26944, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26944, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26944, __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, "cudaGraphMemsetNodeSetParams", 0) < (0)) __PYX_ERR(0, 26944, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphMemsetNodeSetParams", 1, 2, 2, i); __PYX_ERR(0, 26944, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 26944, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26944, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphMemsetNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 26944, __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.runtime.cudaGraphMemsetNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 26945, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_414cudaGraphMemsetNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_pNodeParams);

  /* 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_7runtime_414cudaGraphMemsetNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pNodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct cudaMemsetParams *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemsetParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphMemsetNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":26967
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26968
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":26967
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26969
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":26970
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26970, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":26969
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":26972
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26972, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":26973
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 26973, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":26974
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphMemsetNodeSetParams(cynode, cypNodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":26975
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemsetNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":26976
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphMemsetNodeSetParams(cynode, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemsetNodeSetParams(__pyx_v_cynode, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 26976, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":26975
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemsetNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":26977
 *     with nogil:
 *         err = cyruntime.cudaGraphMemsetNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 26977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 26977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 26977, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26944
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]):
 *     """ Sets a memset node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphMemsetNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26979
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddHostNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Creates a host execution node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_417cudaGraphAddHostNode(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_7runtime_416cudaGraphAddHostNode, "cudaGraphAddHostNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, cudaHostNodeParams pNodeParams: Optional[cudaHostNodeParams])\n\nCreates a host execution node and adds it to a graph.\n\nCreates a new CPU execution node and adds it to `graph` with\n`numDependencies` dependencies specified via `pDependencies` and\narguments specified in `pNodeParams`. It is possible for\n`numDependencies` to be 0, in which case the node will be placed at the\nroot of the graph. `pDependencies` may not have any duplicate entries.\nA handle to the new node will be returned in `pGraphNode`.\n\nWhen the graph is launched, the node will invoke the specified CPU\nfunction. Host nodes are not supported under MPS with pre-Volta GPUs.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\npNodeParams : :py:obj:`~.cudaHostNodeParams`\n    Parameters for the host node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaLaunchHostFunc`, :py:obj:`~.cudaGraphHostNodeGetParams`, :py:obj:`~.cudaGraphHostNodeSetParams`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_417cudaGraphAddHostNode = {"cudaGraphAddHostNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_417cudaGraphAddHostNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_416cudaGraphAddHostNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_417cudaGraphAddHostNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddHostNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 26979, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26979, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26979, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26979, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 26979, __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, "cudaGraphAddHostNode", 0) < (0)) __PYX_ERR(0, 26979, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddHostNode", 1, 4, 4, i); __PYX_ERR(0, 26979, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 26979, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 26979, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 26979, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 26979, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 26980, __pyx_L3_error)
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddHostNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 26979, __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.runtime.cudaGraphAddHostNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 26980, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_416cudaGraphAddHostNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_pNodeParams);

  /* 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_gb_4cuda_8bindings_7runtime_20cudaGraphAddHostNode_2generator116(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":27016
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_20cudaGraphAddHostNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 27016, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_20cudaGraphAddHostNode_2generator116, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[116]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddHostNode_locals_gene, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 27016, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddHostNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaGraphAddHostNode_2generator116(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 27016, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 27016, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27016, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27016, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27016, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27016, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 27016, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":26979
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddHostNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Creates a host execution node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_416cudaGraphAddHostNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct cudaHostNodeParams *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_20cudaGraphAddHostNode_2generator116 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaHostNodeParams *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddHostNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":27015
 *     :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaLaunchHostFunc`, :py:obj:`~.cudaGraphHostNodeGetParams`, :py:obj:`~.cudaGraphHostNodeSetParams`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27015, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27016
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_20cudaGraphAddHostNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 27016, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":27017
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27017, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 27017, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":27016
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":27019
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27020
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27019
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":27021
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27022
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27022, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27021
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":27024
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27024, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":27025
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27025, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27026
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27026, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27027
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":27028
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27028, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27029
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27029, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":27030
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":27031
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27031, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27031, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27031, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27031, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27031, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27031, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27031, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27031, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27031, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 27031, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":27030
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":27033
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27033, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":27034
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27034, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":27028
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27035
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27035, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27036
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27036, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":27035
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":27037
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27037, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27037, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27037, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 27037, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":27038
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddHostNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
*/
  __pyx_t_4 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_4) {
    __pyx_t_13 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_13 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_13;

  /* "cuda/bindings/runtime.pyx":27039
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddHostNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27040
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphAddHostNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddHostNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27040, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":27039
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddHostNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27041
 *     with nogil:
 *         err = cyruntime.cudaGraphAddHostNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27041, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27042
 *         err = cyruntime.cudaGraphAddHostNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":27041
 *     with nogil:
 *         err = cyruntime.cudaGraphAddHostNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cypNodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":27043
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27044
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27044, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27044, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27043
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":27045
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 27045, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 27045, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":26979
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddHostNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Creates a host execution node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddHostNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_20cudaGraphAddHostNode_2generator116);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27047
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphHostNodeGetParams(node):
 *     """ Returns a host node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_419cudaGraphHostNodeGetParams(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_7runtime_418cudaGraphHostNodeGetParams, "cudaGraphHostNodeGetParams(node)\n\nReturns a host node's parameters.\n\nReturns the parameters of host node `node` in `pNodeParams`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the parameters for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npNodeParams : :py:obj:`~.cudaHostNodeParams`\n    Pointer to return the parameters\n\nSee Also\n--------\n:py:obj:`~.cudaLaunchHostFunc`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphHostNodeSetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_419cudaGraphHostNodeGetParams = {"cudaGraphHostNodeGetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_419cudaGraphHostNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_418cudaGraphHostNodeGetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_419cudaGraphHostNodeGetParams(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_node = 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("cudaGraphHostNodeGetParams (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_node_2,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, 27047, __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, 27047, __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, "cudaGraphHostNodeGetParams", 0) < (0)) __PYX_ERR(0, 27047, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphHostNodeGetParams", 1, 1, 1, i); __PYX_ERR(0, 27047, __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, 27047, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphHostNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 27047, __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.runtime.cudaGraphHostNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_418cudaGraphHostNodeGetParams(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_418cudaGraphHostNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphHostNodeGetParams", 0);

  /* "cuda/bindings/runtime.pyx":27070
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27071
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27070
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27072
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27073
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27072
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27075
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27075, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27075, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27076
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27076, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27077
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphHostNodeGetParams(cynode, <cyruntime.cudaHostNodeParams*>pNodeParams._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27077, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27078
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphHostNodeGetParams(cynode, <cyruntime.cudaHostNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27079
 *     cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams()
 *     with nogil:
 *         err = cyruntime.cudaGraphHostNodeGetParams(cynode, <cyruntime.cudaHostNodeParams*>pNodeParams._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphHostNodeGetParams(__pyx_v_cynode, ((struct cudaHostNodeParams *)__pyx_v_pNodeParams->_pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27079, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":27078
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaHostNodeParams pNodeParams = cudaHostNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphHostNodeGetParams(cynode, <cyruntime.cudaHostNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27080
 *     with nogil:
 *         err = cyruntime.cudaGraphHostNodeGetParams(cynode, <cyruntime.cudaHostNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27081
 *         err = cyruntime.cudaGraphHostNodeGetParams(cynode, <cyruntime.cudaHostNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27081, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27081, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27080
 *     with nogil:
 *         err = cyruntime.cudaGraphHostNodeGetParams(cynode, <cyruntime.cudaHostNodeParams*>pNodeParams._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)
*/
  }

  /* "cuda/bindings/runtime.pyx":27082
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNodeParams)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27082, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pNodeParams);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pNodeParams);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pNodeParams)) != (0)) __PYX_ERR(0, 27082, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27047
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphHostNodeGetParams(node):
 *     """ Returns a host node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphHostNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_pNodeParams);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27084
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Sets a host node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_421cudaGraphHostNodeSetParams(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_7runtime_420cudaGraphHostNodeSetParams, "cudaGraphHostNodeSetParams(node, cudaHostNodeParams pNodeParams: Optional[cudaHostNodeParams])\n\nSets a host node's parameters.\n\nSets the parameters of host node `node` to `nodeParams`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the parameters for\npNodeParams : :py:obj:`~.cudaHostNodeParams`\n    Parameters to copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaLaunchHostFunc`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphHostNodeGetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_421cudaGraphHostNodeSetParams = {"cudaGraphHostNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_421cudaGraphHostNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_420cudaGraphHostNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_421cudaGraphHostNodeSetParams(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_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphHostNodeSetParams (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_node_2,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 27084, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27084, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27084, __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, "cudaGraphHostNodeSetParams", 0) < (0)) __PYX_ERR(0, 27084, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphHostNodeSetParams", 1, 2, 2, i); __PYX_ERR(0, 27084, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 27084, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27084, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphHostNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 27084, __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.runtime.cudaGraphHostNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 27085, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_420cudaGraphHostNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_pNodeParams);

  /* 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_7runtime_420cudaGraphHostNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct cudaHostNodeParams *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaHostNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphHostNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":27107
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27108
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27107
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27109
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27110
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27109
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27112
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27112, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27112, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27113
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27113, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27114
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphHostNodeSetParams(cynode, cypNodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":27115
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphHostNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27116
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphHostNodeSetParams(cynode, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphHostNodeSetParams(__pyx_v_cynode, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27116, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":27115
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphHostNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27117
 *     with nogil:
 *         err = cyruntime.cudaGraphHostNodeSetParams(cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 27117, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27084
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Sets a host node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphHostNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27119
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, childGraph):
 *     """ Creates a child graph node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_423cudaGraphAddChildGraphNode(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_7runtime_422cudaGraphAddChildGraphNode, "cudaGraphAddChildGraphNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, childGraph)\n\nCreates a child graph node and adds it to a graph.\n\nCreates a new node which executes an embedded graph, and adds it to\n`graph` with `numDependencies` dependencies specified via\n`pDependencies`. It is possible for `numDependencies` to be 0, in which\ncase the node will be placed at the root of the graph. `pDependencies`\nmay not have any duplicate entries. A handle to the new node will be\nreturned in `pGraphNode`.\n\nIf `childGraph` contains allocation nodes, free nodes, or conditional\nnodes, this call will return an error.\n\nThe node executes an embedded child graph. The child graph is cloned in\nthis call.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\nchildGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    The graph to clone into this node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphChildGraphNodeGetGraph`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`, :py:obj:`~.cudaGraphClone`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_423cudaGraphAddChildGraphNode = {"cudaGraphAddChildGraphNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_423cudaGraphAddChildGraphNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_422cudaGraphAddChildGraphNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_423cudaGraphAddChildGraphNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  PyObject *__pyx_v_childGraph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddChildGraphNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_childGraph,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, 27119, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27119, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27119, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27119, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27119, __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, "cudaGraphAddChildGraphNode", 0) < (0)) __PYX_ERR(0, 27119, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddChildGraphNode", 1, 4, 4, i); __PYX_ERR(0, 27119, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 27119, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27119, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27119, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27119, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 27120, __pyx_L3_error)
    __pyx_v_childGraph = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddChildGraphNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 27119, __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.runtime.cudaGraphAddChildGraphNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_422cudaGraphAddChildGraphNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_childGraph);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_26cudaGraphAddChildGraphNode_2generator117(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":27167
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_26cudaGraphAddChildGraphNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 27167, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_26cudaGraphAddChildGraphNode_2generator117, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[117]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddChildGraphNode_local, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 27167, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddChildGraphNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_26cudaGraphAddChildGraphNode_2generator117(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 27167, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 27167, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27167, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27167, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27167, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27167, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27167, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 27167, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27119
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, childGraph):
 *     """ Creates a child graph node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_422cudaGraphAddChildGraphNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_childGraph) {
  cudaGraph_t __pyx_v_cychildGraph;
  PyObject *__pyx_v_pchildGraph = NULL;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_26cudaGraphAddChildGraphNode_2generator117 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  cudaError_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddChildGraphNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":27159
 *     """
 *     cdef cyruntime.cudaGraph_t cychildGraph
 *     if childGraph is None:             # <<<<<<<<<<<<<<
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_childGraph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27160
 *     cdef cyruntime.cudaGraph_t cychildGraph
 *     if childGraph is None:
 *         pchildGraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):
 *         pchildGraph = int(childGraph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pchildGraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27159
 *     """
 *     cdef cyruntime.cudaGraph_t cychildGraph
 *     if childGraph is None:             # <<<<<<<<<<<<<<
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27161
 *     if childGraph is None:
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pchildGraph = int(childGraph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_childGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_childGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27162
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):
 *         pchildGraph = int(childGraph)             # <<<<<<<<<<<<<<
 *     else:
 *         pchildGraph = int(cudaGraph_t(childGraph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_childGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pchildGraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27161
 *     if childGraph is None:
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pchildGraph = int(childGraph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27164
 *         pchildGraph = int(childGraph)
 *     else:
 *         pchildGraph = int(cudaGraph_t(childGraph))             # <<<<<<<<<<<<<<
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     pDependencies = [] if pDependencies is None else pDependencies
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_childGraph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27164, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pchildGraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27165
 *     else:
 *         pchildGraph = int(cudaGraph_t(childGraph))
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph             # <<<<<<<<<<<<<<
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pchildGraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27165, __pyx_L1_error)
  __pyx_v_cychildGraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27166
 *         pchildGraph = int(cudaGraph_t(childGraph))
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_1 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_1) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27166, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_4 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27167
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_26cudaGraphAddChildGraphNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 27167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":27168
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27168, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 27168, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":27167
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":27170
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_2 = (__pyx_v_graph == Py_None);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27171
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27170
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27172
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_2 = __pyx_t_1;
  __pyx_L8_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27173
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27173, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27172
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27175
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27175, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27175, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":27176
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27176, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27177
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27177, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27178
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":27179
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27179, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27180
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27180, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":27181
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_2 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":27182
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27182, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27182, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 27182, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":27181
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":27184
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27184, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":27185
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27185, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":27179
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L10;
  }

  /* "cuda/bindings/runtime.pyx":27186
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27186, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27187
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27187, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":27186
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L10:;

  /* "cuda/bindings/runtime.pyx":27188
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddChildGraphNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cychildGraph)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27188, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27188, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27188, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 27188, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":27189
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddChildGraphNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cychildGraph)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27190
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:
 *         err = cyruntime.cudaGraphAddChildGraphNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cychildGraph)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_13 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddChildGraphNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cychildGraph); if (unlikely(__pyx_t_13 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27190, __pyx_L16_error)
        __pyx_v_err = __pyx_t_13;
      }

      /* "cuda/bindings/runtime.pyx":27189
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddChildGraphNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cychildGraph)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L17;
        }
        __pyx_L16_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L17:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27191
 *     with nogil:
 *         err = cyruntime.cudaGraphAddChildGraphNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cychildGraph)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27191, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L19_bool_binop_done;
  }
  __pyx_t_1 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L19_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27192
 *         err = cyruntime.cudaGraphAddChildGraphNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cychildGraph)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":27191
 *     with nogil:
 *         err = cyruntime.cudaGraphAddChildGraphNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cychildGraph)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":27193
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27194
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27194, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27194, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27193
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":27195
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27195, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 27195, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27119
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, childGraph):
 *     """ Creates a child graph node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddChildGraphNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pchildGraph);
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_26cudaGraphAddChildGraphNode_2generator117);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27197
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphChildGraphNodeGetGraph(node):
 *     """ Gets a handle to the embedded graph of a child graph node.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_425cudaGraphChildGraphNodeGetGraph(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_7runtime_424cudaGraphChildGraphNodeGetGraph, "cudaGraphChildGraphNodeGetGraph(node)\n\nGets a handle to the embedded graph of a child graph node.\n\nGets a handle to the embedded graph in a child graph node. This call\ndoes not clone the graph. Changes to the graph will be reflected in the\nnode, and the node retains ownership of the graph.\n\nAllocation and free nodes cannot be added to the returned graph.\nAttempting to do so will return an error.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the embedded graph for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraph : :py:obj:`~.cudaGraph_t`\n    Location to store a handle to the graph\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphNodeFindInClone`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_425cudaGraphChildGraphNodeGetGraph = {"cudaGraphChildGraphNodeGetGraph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_425cudaGraphChildGraphNodeGetGraph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_424cudaGraphChildGraphNodeGetGraph};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_425cudaGraphChildGraphNodeGetGraph(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_node = 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("cudaGraphChildGraphNodeGetGraph (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_node_2,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, 27197, __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, 27197, __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, "cudaGraphChildGraphNodeGetGraph", 0) < (0)) __PYX_ERR(0, 27197, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphChildGraphNodeGetGraph", 1, 1, 1, i); __PYX_ERR(0, 27197, __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, 27197, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphChildGraphNodeGetGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 27197, __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.runtime.cudaGraphChildGraphNodeGetGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_424cudaGraphChildGraphNodeGetGraph(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_424cudaGraphChildGraphNodeGetGraph(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_pGraph = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphChildGraphNodeGetGraph", 0);

  /* "cuda/bindings/runtime.pyx":27225
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27226
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27225
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27227
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27228
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27227
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27230
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27230, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27231
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27231, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27232
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaGraph_t pGraph = cudaGraph_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphChildGraphNodeGetGraph(cynode, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27232, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27233
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphChildGraphNodeGetGraph(cynode, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27234
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphChildGraphNodeGetGraph(cynode, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphChildGraphNodeGetGraph(__pyx_v_cynode, ((cudaGraph_t *)__pyx_v_pGraph->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27234, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":27233
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaGraph_t pGraph = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphChildGraphNodeGetGraph(cynode, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27235
 *     with nogil:
 *         err = cyruntime.cudaGraphChildGraphNodeGetGraph(cynode, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27236
 *         err = cyruntime.cudaGraphChildGraphNodeGetGraph(cynode, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraph)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27236, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27236, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27235
 *     with nogil:
 *         err = cyruntime.cudaGraphChildGraphNodeGetGraph(cynode, <cyruntime.cudaGraph_t*>pGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)
*/
  }

  /* "cuda/bindings/runtime.pyx":27237
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraph)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27237, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraph);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraph);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraph)) != (0)) __PYX_ERR(0, 27237, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27197
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphChildGraphNodeGetGraph(node):
 *     """ Gets a handle to the embedded graph of a child graph node.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphChildGraphNodeGetGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27239
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies):
 *     """ Creates an empty node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_427cudaGraphAddEmptyNode(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_7runtime_426cudaGraphAddEmptyNode, "cudaGraphAddEmptyNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies)\n\nCreates an empty node and adds it to a graph.\n\nCreates a new node which performs no operation, and adds it to `graph`\nwith `numDependencies` dependencies specified via `pDependencies`. It\nis possible for `numDependencies` to be 0, in which case the node will\nbe placed at the root of the graph. `pDependencies` may not have any\nduplicate entries. A handle to the new node will be returned in\n`pGraphNode`.\n\nAn empty node performs no operation during execution, but can be used\nfor transitive ordering. For example, a phased execution graph with 2\ngroups of n nodes with a barrier between them can be represented using\nan empty node and 2*n dependency edges, rather than no empty node and\nn^2 dependency edges.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_427cudaGraphAddEmptyNode = {"cudaGraphAddEmptyNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_427cudaGraphAddEmptyNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_426cudaGraphAddEmptyNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_427cudaGraphAddEmptyNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddEmptyNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,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, 27239, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27239, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27239, __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, "cudaGraphAddEmptyNode", 0) < (0)) __PYX_ERR(0, 27239, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEmptyNode", 1, 3, 3, i); __PYX_ERR(0, 27239, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 27239, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27239, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27239, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 27240, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddEmptyNode", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 27239, __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.runtime.cudaGraphAddEmptyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_426cudaGraphAddEmptyNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_21cudaGraphAddEmptyNode_2generator118(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":27277
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_21cudaGraphAddEmptyNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 27277, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_21cudaGraphAddEmptyNode_2generator118, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[118]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEmptyNode_locals_gen, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 27277, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddEmptyNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_21cudaGraphAddEmptyNode_2generator118(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 27277, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 27277, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27277, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27277, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27277, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27277, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 27277, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27239
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies):
 *     """ Creates an empty node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_426cudaGraphAddEmptyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_21cudaGraphAddEmptyNode_2generator118 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  cudaError_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddEmptyNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":27276
 *     :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27277
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_21cudaGraphAddEmptyNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 27277, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":27278
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27278, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 27278, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":27277
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":27280
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27281
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27280
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":27282
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27283
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27283, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27282
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":27285
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27285, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":27286
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27286, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27287
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27287, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27288
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":27289
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27289, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27290
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27290, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":27291
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":27292
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27292, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27292, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27292, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27292, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27292, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27292, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27292, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27292, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27292, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 27292, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":27291
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":27294
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27294, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":27295
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27295, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":27289
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27296
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27296, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27297
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":27296
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":27298
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEmptyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27298, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27298, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27298, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 27298, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":27299
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddEmptyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27300
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEmptyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_13 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEmptyNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies); if (unlikely(__pyx_t_13 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27300, __pyx_L13_error)
        __pyx_v_err = __pyx_t_13;
      }

      /* "cuda/bindings/runtime.pyx":27299
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddEmptyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27301
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEmptyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27301, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27302
 *         err = cyruntime.cudaGraphAddEmptyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":27301
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEmptyNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":27303
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27304
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27304, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27304, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27303
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":27305
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 27305, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 27305, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27239
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies):
 *     """ Creates an empty node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddEmptyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_21cudaGraphAddEmptyNode_2generator118);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27307
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event):
 *     """ Creates an event record node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_429cudaGraphAddEventRecordNode(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_7runtime_428cudaGraphAddEventRecordNode, "cudaGraphAddEventRecordNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event)\n\nCreates an event record node and adds it to a graph.\n\nCreates a new event record node and adds it to `hGraph` with\n`numDependencies` dependencies specified via `dependencies` and event\nspecified in `event`. It is possible for `numDependencies` to be 0, in\nwhich case the node will be placed at the root of the graph.\n`dependencies` may not have any duplicate entries. A handle to the new\nnode will be returned in `phGraphNode`.\n\nEach launch of the graph will record `event` to capture execution of\nthe node's dependencies.\n\nThese nodes may not be used in loops or conditionals.\n\nParameters\n----------\nhGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\ndependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event for the node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nphGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_429cudaGraphAddEventRecordNode = {"cudaGraphAddEventRecordNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_429cudaGraphAddEventRecordNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_428cudaGraphAddEventRecordNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_429cudaGraphAddEventRecordNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  PyObject *__pyx_v_event = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddEventRecordNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_event_2,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, 27307, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27307, __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, "cudaGraphAddEventRecordNode", 0) < (0)) __PYX_ERR(0, 27307, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventRecordNode", 1, 4, 4, i); __PYX_ERR(0, 27307, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 27307, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27307, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27307, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27307, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 27308, __pyx_L3_error)
    __pyx_v_event = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventRecordNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 27307, __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.runtime.cudaGraphAddEventRecordNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_428cudaGraphAddEventRecordNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphAddEventRecordNode_2generator119(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":27354
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaGraphAddEventRecordNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 27354, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_27cudaGraphAddEventRecordNode_2generator119, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[119]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEventRecordNode_loca, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 27354, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddEventRecordNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphAddEventRecordNode_2generator119(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 27354, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 27354, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27354, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27354, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27354, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27354, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27354, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 27354, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27307
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event):
 *     """ Creates an event record node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_428cudaGraphAddEventRecordNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphAddEventRecordNode_2generator119 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  cudaError_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddEventRecordNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":27346
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27347
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27346
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27348
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27349
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27348
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27351
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27351, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27352
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27352, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27353
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_1 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_1) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_4 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27354
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_27cudaGraphAddEventRecordNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 27354, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":27355
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27355, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 27355, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":27354
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":27357
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_2 = (__pyx_v_graph == Py_None);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27358
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27357
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27359
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_2 = __pyx_t_1;
  __pyx_L8_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27360
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27360, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27359
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27362
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27362, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27362, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":27363
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27363, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27364
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27364, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27365
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":27366
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27366, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27367
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27367, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":27368
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_2 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":27369
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27369, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27369, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 27369, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":27368
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":27371
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27371, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":27372
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27372, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":27366
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L10;
  }

  /* "cuda/bindings/runtime.pyx":27373
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27373, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27374
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":27373
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L10:;

  /* "cuda/bindings/runtime.pyx":27375
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEventRecordNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27375, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27375, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27375, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 27375, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":27376
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddEventRecordNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27377
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEventRecordNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_13 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEventRecordNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cyevent); if (unlikely(__pyx_t_13 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27377, __pyx_L16_error)
        __pyx_v_err = __pyx_t_13;
      }

      /* "cuda/bindings/runtime.pyx":27376
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddEventRecordNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L17;
        }
        __pyx_L16_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L17:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27378
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEventRecordNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27378, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L19_bool_binop_done;
  }
  __pyx_t_1 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L19_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27379
 *         err = cyruntime.cudaGraphAddEventRecordNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":27378
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEventRecordNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":27380
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27381
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27381, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27381, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27381, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27381, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27381, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27381, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27380
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":27382
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27382, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 27382, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27307
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event):
 *     """ Creates an event record node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddEventRecordNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphAddEventRecordNode_2generator119);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27384
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventRecordNodeGetEvent(node):
 *     """ Returns the event associated with an event record node.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_431cudaGraphEventRecordNodeGetEvent(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_7runtime_430cudaGraphEventRecordNodeGetEvent, "cudaGraphEventRecordNodeGetEvent(node)\n\nReturns the event associated with an event record node.\n\nReturns the event of event record node `hNode` in `event_out`.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the event for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nevent_out : :py:obj:`~.cudaEvent_t`\n    Pointer to return the event\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphEventWaitNodeGetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_431cudaGraphEventRecordNodeGetEvent = {"cudaGraphEventRecordNodeGetEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_431cudaGraphEventRecordNodeGetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_430cudaGraphEventRecordNodeGetEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_431cudaGraphEventRecordNodeGetEvent(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_node = 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("cudaGraphEventRecordNodeGetEvent (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_node_2,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, 27384, __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, 27384, __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, "cudaGraphEventRecordNodeGetEvent", 0) < (0)) __PYX_ERR(0, 27384, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphEventRecordNodeGetEvent", 1, 1, 1, i); __PYX_ERR(0, 27384, __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, 27384, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphEventRecordNodeGetEvent", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 27384, __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.runtime.cudaGraphEventRecordNodeGetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_430cudaGraphEventRecordNodeGetEvent(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_430cudaGraphEventRecordNodeGetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_event_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphEventRecordNodeGetEvent", 0);

  /* "cuda/bindings/runtime.pyx":27407
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27408
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27407
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27409
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27410
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27409
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27412
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaEvent_t event_out = cudaEvent_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27412, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27412, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27413
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cudaEvent_t event_out = cudaEvent_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27413, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27414
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaEvent_t event_out = cudaEvent_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphEventRecordNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27414, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_event_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27415
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaEvent_t event_out = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphEventRecordNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27416
 *     cdef cudaEvent_t event_out = cudaEvent_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphEventRecordNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventRecordNodeGetEvent(__pyx_v_cynode, ((cudaEvent_t *)__pyx_v_event_out->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27416, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":27415
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaEvent_t event_out = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphEventRecordNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27417
 *     with nogil:
 *         err = cyruntime.cudaGraphEventRecordNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27418
 *         err = cyruntime.cudaGraphEventRecordNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], event_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27418, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27418, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27418, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27418, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27418, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27418, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27417
 *     with nogil:
 *         err = cyruntime.cudaGraphEventRecordNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":27419
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27419, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_event_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_event_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_event_out)) != (0)) __PYX_ERR(0, 27419, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27384
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventRecordNodeGetEvent(node):
 *     """ Returns the event associated with an event record node.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEventRecordNodeGetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_event_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27421
 *     return (_dict_cudaError_t[err], event_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventRecordNodeSetEvent(node, event):
 *     """ Sets an event record node's event.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_433cudaGraphEventRecordNodeSetEvent(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_7runtime_432cudaGraphEventRecordNodeSetEvent, "cudaGraphEventRecordNodeSetEvent(node, event)\n\nSets an event record node's event.\n\nSets the event of event record node `hNode` to `event`.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the event for\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to use\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphEventRecordNodeGetEvent`, :py:obj:`~.cudaGraphEventWaitNodeSetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_433cudaGraphEventRecordNodeSetEvent = {"cudaGraphEventRecordNodeSetEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_433cudaGraphEventRecordNodeSetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_432cudaGraphEventRecordNodeSetEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_433cudaGraphEventRecordNodeSetEvent(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_node = 0;
  PyObject *__pyx_v_event = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphEventRecordNodeSetEvent (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_node_2,&__pyx_mstate_global->__pyx_n_u_event_2,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, 27421, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27421, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27421, __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, "cudaGraphEventRecordNodeSetEvent", 0) < (0)) __PYX_ERR(0, 27421, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphEventRecordNodeSetEvent", 1, 2, 2, i); __PYX_ERR(0, 27421, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 27421, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27421, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
    __pyx_v_event = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphEventRecordNodeSetEvent", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 27421, __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.runtime.cudaGraphEventRecordNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_432cudaGraphEventRecordNodeSetEvent(__pyx_self, __pyx_v_node, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_432cudaGraphEventRecordNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphEventRecordNodeSetEvent", 0);

  /* "cuda/bindings/runtime.pyx":27444
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27445
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27444
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27446
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27447
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27446
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27449
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cynode
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27449, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27449, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27450
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27450, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27452
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27453
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27452
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":27454
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27455
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27455, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":27454
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":27457
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_node};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27457, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27457, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":27458
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphEventRecordNodeSetEvent(cynode, cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27458, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27459
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphEventRecordNodeSetEvent(cynode, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27460
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:
 *         err = cyruntime.cudaGraphEventRecordNodeSetEvent(cynode, cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventRecordNodeSetEvent(__pyx_v_cynode, __pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27460, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":27459
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphEventRecordNodeSetEvent(cynode, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27461
 *     with nogil:
 *         err = cyruntime.cudaGraphEventRecordNodeSetEvent(cynode, cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27461, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27421
 *     return (_dict_cudaError_t[err], event_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventRecordNodeSetEvent(node, event):
 *     """ Sets an event record node's event.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEventRecordNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27463
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event):
 *     """ Creates an event wait node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_435cudaGraphAddEventWaitNode(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_7runtime_434cudaGraphAddEventWaitNode, "cudaGraphAddEventWaitNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event)\n\nCreates an event wait node and adds it to a graph.\n\nCreates a new event wait node and adds it to `hGraph` with\n`numDependencies` dependencies specified via `dependencies` and event\nspecified in `event`. It is possible for `numDependencies` to be 0, in\nwhich case the node will be placed at the root of the graph.\n`dependencies` may not have any duplicate entries. A handle to the new\nnode will be returned in `phGraphNode`.\n\nThe graph node will wait for all work captured in `event`. See\n:py:obj:`~.cuEventRecord()` for details on what is captured by an\nevent. The synchronization will be performed efficiently on the device\nwhen applicable. `event` may be from a different context or device than\nthe launch stream.\n\nThese nodes may not be used in loops or conditionals.\n\nParameters\n----------\nhGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\ndependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event for the node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nphGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_435cudaGraphAddEventWaitNode = {"cudaGraphAddEventWaitNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_435cudaGraphAddEventWaitNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_434cudaGraphAddEventWaitNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_435cudaGraphAddEventWaitNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  PyObject *__pyx_v_event = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddEventWaitNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_event_2,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, 27463, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27463, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27463, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27463, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27463, __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, "cudaGraphAddEventWaitNode", 0) < (0)) __PYX_ERR(0, 27463, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventWaitNode", 1, 4, 4, i); __PYX_ERR(0, 27463, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 27463, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27463, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27463, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27463, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 27464, __pyx_L3_error)
    __pyx_v_event = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddEventWaitNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 27463, __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.runtime.cudaGraphAddEventWaitNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_434cudaGraphAddEventWaitNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaGraphAddEventWaitNode_2generator120(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":27513
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaGraphAddEventWaitNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 27513, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_25cudaGraphAddEventWaitNode_2generator120, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[120]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEventWaitNode_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 27513, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddEventWaitNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaGraphAddEventWaitNode_2generator120(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 27513, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 27513, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27513, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27513, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27513, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27513, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27513, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 27513, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27463
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event):
 *     """ Creates an event wait node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_434cudaGraphAddEventWaitNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_25cudaGraphAddEventWaitNode_2generator120 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  cudaError_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddEventWaitNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":27505
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27506
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27505
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27507
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27508
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27508, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27507
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27510
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27510, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27510, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27511
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27511, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27512
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_1 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_1) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27512, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_4 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27513
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_25cudaGraphAddEventWaitNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 27513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":27514
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27514, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 27514, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":27513
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":27516
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_2 = (__pyx_v_graph == Py_None);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27517
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27516
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27518
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_2 = __pyx_t_1;
  __pyx_L8_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27519
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27518
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27521
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27521, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":27522
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27522, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27523
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27523, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27524
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":27525
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27525, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27526
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27526, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":27527
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_2 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":27528
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27528, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27528, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27528, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27528, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27528, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27528, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27528, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27528, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27528, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 27528, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":27527
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":27530
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27530, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":27531
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27531, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":27525
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L10;
  }

  /* "cuda/bindings/runtime.pyx":27532
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27532, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27533
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27533, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_4)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":27532
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L10:;

  /* "cuda/bindings/runtime.pyx":27534
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEventWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27534, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_2)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27534, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27534, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 27534, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":27535
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddEventWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27536
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEventWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_13 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEventWaitNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cyevent); if (unlikely(__pyx_t_13 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27536, __pyx_L16_error)
        __pyx_v_err = __pyx_t_13;
      }

      /* "cuda/bindings/runtime.pyx":27535
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddEventWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L17;
        }
        __pyx_L16_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L17:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27537
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEventWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27537, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_7 > 1);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L19_bool_binop_done;
  }
  __pyx_t_1 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L19_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27538
 *         err = cyruntime.cudaGraphAddEventWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":27537
 *     with nogil:
 *         err = cyruntime.cudaGraphAddEventWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cyevent)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":27539
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":27540
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27540, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27540, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27539
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":27541
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27541, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 27541, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27463
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event):
 *     """ Creates an event wait node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddEventWaitNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_25cudaGraphAddEventWaitNode_2generator120);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27543
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventWaitNodeGetEvent(node):
 *     """ Returns the event associated with an event wait node.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_437cudaGraphEventWaitNodeGetEvent(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_7runtime_436cudaGraphEventWaitNodeGetEvent, "cudaGraphEventWaitNodeGetEvent(node)\n\nReturns the event associated with an event wait node.\n\nReturns the event of event wait node `hNode` in `event_out`.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the event for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nevent_out : :py:obj:`~.cudaEvent_t`\n    Pointer to return the event\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphEventRecordNodeGetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_437cudaGraphEventWaitNodeGetEvent = {"cudaGraphEventWaitNodeGetEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_437cudaGraphEventWaitNodeGetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_436cudaGraphEventWaitNodeGetEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_437cudaGraphEventWaitNodeGetEvent(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_node = 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("cudaGraphEventWaitNodeGetEvent (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_node_2,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, 27543, __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, 27543, __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, "cudaGraphEventWaitNodeGetEvent", 0) < (0)) __PYX_ERR(0, 27543, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphEventWaitNodeGetEvent", 1, 1, 1, i); __PYX_ERR(0, 27543, __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, 27543, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphEventWaitNodeGetEvent", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 27543, __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.runtime.cudaGraphEventWaitNodeGetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_436cudaGraphEventWaitNodeGetEvent(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_436cudaGraphEventWaitNodeGetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_event_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphEventWaitNodeGetEvent", 0);

  /* "cuda/bindings/runtime.pyx":27566
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27567
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27566
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27568
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27569
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27568
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27571
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaEvent_t event_out = cudaEvent_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27571, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27572
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cudaEvent_t event_out = cudaEvent_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27572, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27573
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaEvent_t event_out = cudaEvent_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphEventWaitNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27573, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_event_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27574
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaEvent_t event_out = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphEventWaitNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27575
 *     cdef cudaEvent_t event_out = cudaEvent_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphEventWaitNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventWaitNodeGetEvent(__pyx_v_cynode, ((cudaEvent_t *)__pyx_v_event_out->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27575, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":27574
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaEvent_t event_out = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphEventWaitNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27576
 *     with nogil:
 *         err = cyruntime.cudaGraphEventWaitNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27577
 *         err = cyruntime.cudaGraphEventWaitNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], event_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27577, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27577, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27576
 *     with nogil:
 *         err = cyruntime.cudaGraphEventWaitNodeGetEvent(cynode, <cyruntime.cudaEvent_t*>event_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":27578
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], event_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27578, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_event_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_event_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_event_out)) != (0)) __PYX_ERR(0, 27578, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27543
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventWaitNodeGetEvent(node):
 *     """ Returns the event associated with an event wait node.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEventWaitNodeGetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_event_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27580
 *     return (_dict_cudaError_t[err], event_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventWaitNodeSetEvent(node, event):
 *     """ Sets an event wait node's event.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_439cudaGraphEventWaitNodeSetEvent(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_7runtime_438cudaGraphEventWaitNodeSetEvent, "cudaGraphEventWaitNodeSetEvent(node, event)\n\nSets an event wait node's event.\n\nSets the event of event wait node `hNode` to `event`.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the event for\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to use\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphEventWaitNodeGetEvent`, :py:obj:`~.cudaGraphEventRecordNodeSetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_439cudaGraphEventWaitNodeSetEvent = {"cudaGraphEventWaitNodeSetEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_439cudaGraphEventWaitNodeSetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_438cudaGraphEventWaitNodeSetEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_439cudaGraphEventWaitNodeSetEvent(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_node = 0;
  PyObject *__pyx_v_event = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphEventWaitNodeSetEvent (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_node_2,&__pyx_mstate_global->__pyx_n_u_event_2,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, 27580, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27580, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27580, __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, "cudaGraphEventWaitNodeSetEvent", 0) < (0)) __PYX_ERR(0, 27580, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphEventWaitNodeSetEvent", 1, 2, 2, i); __PYX_ERR(0, 27580, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 27580, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27580, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
    __pyx_v_event = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphEventWaitNodeSetEvent", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 27580, __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.runtime.cudaGraphEventWaitNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_438cudaGraphEventWaitNodeSetEvent(__pyx_self, __pyx_v_node, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_438cudaGraphEventWaitNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphEventWaitNodeSetEvent", 0);

  /* "cuda/bindings/runtime.pyx":27603
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27604
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27603
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27605
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27606
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27605
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27608
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cynode
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27608, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27608, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27609
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27609, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27611
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27612
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27611
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":27613
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27614
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":27613
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":27616
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_node};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27616, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27616, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":27617
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphEventWaitNodeSetEvent(cynode, cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27617, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27618
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphEventWaitNodeSetEvent(cynode, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27619
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:
 *         err = cyruntime.cudaGraphEventWaitNodeSetEvent(cynode, cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventWaitNodeSetEvent(__pyx_v_cynode, __pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27619, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":27618
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphEventWaitNodeSetEvent(cynode, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27620
 *     with nogil:
 *         err = cyruntime.cudaGraphEventWaitNodeSetEvent(cynode, cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27620, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27580
 *     return (_dict_cudaError_t[err], event_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventWaitNodeSetEvent(node, event):
 *     """ Sets an event wait node's event.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphEventWaitNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27622
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Creates an external semaphore signal node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_441cudaGraphAddExternalSemaphoresSignalNode(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_7runtime_440cudaGraphAddExternalSemaphoresSignalNode, "cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, cudaExternalSemaphoreSignalNodeParams nodeParams: Optional[cudaExternalSemaphoreSignalNodeParams])\n\nCreates an external semaphore signal node and adds it to a graph.\n\nCreates a new external semaphore signal node and adds it to `graph`\nwith `numDependencies` dependencies specified via `dependencies` and\narguments specified in `nodeParams`. It is possible for\n`numDependencies` to be 0, in which case the node will be placed at the\nroot of the graph. `dependencies` may not have any duplicate entries. A\nhandle to the new node will be returned in `pGraphNode`.\n\nPerforms a signal operation on a set of externally allocated semaphore\nobjects when the node is launched. The operation(s) will occur after\nall of the node's dependencies have completed.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\nnodeParams : :py:obj:`~.cudaExternalSemaphoreSignalNodeParams`\n    Parameters for the node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeGetParams`, :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.""cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_441cudaGraphAddExternalSemaphoresSignalNode = {"cudaGraphAddExternalSemaphoresSignalNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_441cudaGraphAddExternalSemaphoresSignalNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_440cudaGraphAddExternalSemaphoresSignalNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_441cudaGraphAddExternalSemaphoresSignalNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddExternalSemaphoresSignalNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 27622, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27622, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27622, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27622, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27622, __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, "cudaGraphAddExternalSemaphoresSignalNode", 0) < (0)) __PYX_ERR(0, 27622, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresSignalNode", 1, 4, 4, i); __PYX_ERR(0, 27622, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 27622, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27622, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27622, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27622, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 27623, __pyx_L3_error)
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresSignalNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 27622, __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.runtime.cudaGraphAddExternalSemaphoresSignalNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 27623, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_440cudaGraphAddExternalSemaphoresSignalNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_nodeParams);

  /* 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_gb_4cuda_8bindings_7runtime_40cudaGraphAddExternalSemaphoresSignalNode_2generator121(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":27660
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_40cudaGraphAddExternalSemaphoresSignalNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 27660, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_40cudaGraphAddExternalSemaphoresSignalNode_2generator121, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[121]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddExternalSemaphoresSi, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 27660, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddExternalSemaphoresSignalNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_40cudaGraphAddExternalSemaphoresSignalNode_2generator121(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 27660, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 27660, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27660, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27660, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27660, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27660, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27660, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 27660, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27622
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Creates an external semaphore signal node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_440cudaGraphAddExternalSemaphoresSignalNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct cudaExternalSemaphoreSignalNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_40cudaGraphAddExternalSemaphoresSignalNode_2generator121 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaExternalSemaphoreSignalNodeParams *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddExternalSemaphoresSignalNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":27659
 *     :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeGetParams`, :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27660
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_40cudaGraphAddExternalSemaphoresSignalNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 27660, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":27661
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27661, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 27661, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":27660
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":27663
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27664
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27663
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":27665
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27666
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27665
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":27668
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27668, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":27669
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27669, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27670
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27670, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27671
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":27672
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27672, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27673
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27673, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":27674
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":27675
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27675, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 27675, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":27674
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":27677
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27677, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":27678
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27678, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":27672
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27679
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27679, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27680
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27680, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":27679
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":27681
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27681, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27681, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27681, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 27681, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":27682
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddExternalSemaphoresSignalNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
*/
  __pyx_t_4 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_4) {
    __pyx_t_13 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_13 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_13;

  /* "cuda/bindings/runtime.pyx":27683
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddExternalSemaphoresSignalNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27684
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphAddExternalSemaphoresSignalNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddExternalSemaphoresSignalNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27684, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":27683
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddExternalSemaphoresSignalNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27685
 *     with nogil:
 *         err = cyruntime.cudaGraphAddExternalSemaphoresSignalNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27685, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27686
 *         err = cyruntime.cudaGraphAddExternalSemaphoresSignalNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":27685
 *     with nogil:
 *         err = cyruntime.cudaGraphAddExternalSemaphoresSignalNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":27687
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27688
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27688, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27688, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27687
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":27689
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 27689, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 27689, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27622
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Creates an external semaphore signal node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddExternalSemaphoresSignalNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_40cudaGraphAddExternalSemaphoresSignalNode_2generator121);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27691
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode):
 *     """ Returns an external semaphore signal node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_443cudaGraphExternalSemaphoresSignalNodeGetParams(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_7runtime_442cudaGraphExternalSemaphoresSignalNodeGetParams, "cudaGraphExternalSemaphoresSignalNodeGetParams(hNode)\n\nReturns an external semaphore signal node's parameters.\n\nReturns the parameters of an external semaphore signal node `hNode` in\n`params_out`. The `extSemArray` and `paramsArray` returned in\n`params_out`, are owned by the node. This memory remains valid until\nthe node is destroyed or its parameters are modified, and should not be\nmodified directly. Use\n:py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams` to update\nthe parameters of this node.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the parameters for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nparams_out : :py:obj:`~.cudaExternalSemaphoreSignalNodeParams`\n    Pointer to return the parameters\n\nSee Also\n--------\n:py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_443cudaGraphExternalSemaphoresSignalNodeGetParams = {"cudaGraphExternalSemaphoresSignalNodeGetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_443cudaGraphExternalSemaphoresSignalNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_442cudaGraphExternalSemaphoresSignalNodeGetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_443cudaGraphExternalSemaphoresSignalNodeGetParams(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_hNode = 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("cudaGraphExternalSemaphoresSignalNodeGetParams (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_hNode,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, 27691, __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, 27691, __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, "cudaGraphExternalSemaphoresSignalNodeGetParams", 0) < (0)) __PYX_ERR(0, 27691, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresSignalNodeGetParams", 1, 1, 1, i); __PYX_ERR(0, 27691, __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, 27691, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresSignalNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 27691, __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.runtime.cudaGraphExternalSemaphoresSignalNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_442cudaGraphExternalSemaphoresSignalNodeGetParams(__pyx_self, __pyx_v_hNode);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_442cudaGraphExternalSemaphoresSignalNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_params_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresSignalNodeGetParams", 0);

  /* "cuda/bindings/runtime.pyx":27720
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27721
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27720
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27722
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27723
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27722
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27725
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27725, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27726
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27726, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27727
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreSignalNodeParams*>params_out._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27727, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_params_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27728
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreSignalNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27729
 *     cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams()
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreSignalNodeParams*>params_out._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresSignalNodeGetParams(__pyx_v_cyhNode, ((struct cudaExternalSemaphoreSignalNodeParams *)__pyx_v_params_out->_pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27729, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":27728
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaExternalSemaphoreSignalNodeParams params_out = cudaExternalSemaphoreSignalNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreSignalNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27730
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreSignalNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27731
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreSignalNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], params_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27731, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27731, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27730
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreSignalNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":27732
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27732, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_params_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_params_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_params_out)) != (0)) __PYX_ERR(0, 27732, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27691
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode):
 *     """ Returns an external semaphore signal node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExternalSemaphoresSignalNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF((PyObject *)__pyx_v_params_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27734
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Sets an external semaphore signal node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_445cudaGraphExternalSemaphoresSignalNodeSetParams(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_7runtime_444cudaGraphExternalSemaphoresSignalNodeSetParams, "cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, cudaExternalSemaphoreSignalNodeParams nodeParams: Optional[cudaExternalSemaphoreSignalNodeParams])\n\nSets an external semaphore signal node's parameters.\n\nSets the parameters of an external semaphore signal node `hNode` to\n`nodeParams`.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the parameters for\nnodeParams : :py:obj:`~.cudaExternalSemaphoreSignalNodeParams`\n    Parameters to copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_445cudaGraphExternalSemaphoresSignalNodeSetParams = {"cudaGraphExternalSemaphoresSignalNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_445cudaGraphExternalSemaphoresSignalNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_444cudaGraphExternalSemaphoresSignalNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_445cudaGraphExternalSemaphoresSignalNodeSetParams(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_hNode = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresSignalNodeSetParams (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_hNode,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 27734, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27734, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27734, __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, "cudaGraphExternalSemaphoresSignalNodeSetParams", 0) < (0)) __PYX_ERR(0, 27734, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresSignalNodeSetParams", 1, 2, 2, i); __PYX_ERR(0, 27734, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 27734, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27734, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresSignalNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 27734, __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.runtime.cudaGraphExternalSemaphoresSignalNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 27735, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_444cudaGraphExternalSemaphoresSignalNodeSetParams(__pyx_self, __pyx_v_hNode, __pyx_v_nodeParams);

  /* 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_7runtime_444cudaGraphExternalSemaphoresSignalNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  struct cudaExternalSemaphoreSignalNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaExternalSemaphoreSignalNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresSignalNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":27758
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27759
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27758
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27760
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27761
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27760
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27763
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27763, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27764
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27764, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27765
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeSetParams(cyhNode, cynodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":27766
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeSetParams(cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27767
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeSetParams(cyhNode, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresSignalNodeSetParams(__pyx_v_cyhNode, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27767, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":27766
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeSetParams(cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27768
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresSignalNodeSetParams(cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 27768, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27734
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Sets an external semaphore signal node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExternalSemaphoresSignalNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27770
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Creates an external semaphore wait node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_447cudaGraphAddExternalSemaphoresWaitNode(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_7runtime_446cudaGraphAddExternalSemaphoresWaitNode, "cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, cudaExternalSemaphoreWaitNodeParams nodeParams: Optional[cudaExternalSemaphoreWaitNodeParams])\n\nCreates an external semaphore wait node and adds it to a graph.\n\nCreates a new external semaphore wait node and adds it to `graph` with\n`numDependencies` dependencies specified via `dependencies` and\narguments specified in `nodeParams`. It is possible for\n`numDependencies` to be 0, in which case the node will be placed at the\nroot of the graph. `dependencies` may not have any duplicate entries. A\nhandle to the new node will be returned in `pGraphNode`.\n\nPerforms a wait operation on a set of externally allocated semaphore\nobjects when the node is launched. The node's dependencies will not be\nlaunched until the wait operation has completed.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\nnodeParams : :py:obj:`~.cudaExternalSemaphoreWaitNodeParams`\n    Parameters for the node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphExternalSemaphoresWaitNodeGetParams`, :py:obj:`~.cudaGraphExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddCh""ildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_447cudaGraphAddExternalSemaphoresWaitNode = {"cudaGraphAddExternalSemaphoresWaitNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_447cudaGraphAddExternalSemaphoresWaitNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_446cudaGraphAddExternalSemaphoresWaitNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_447cudaGraphAddExternalSemaphoresWaitNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddExternalSemaphoresWaitNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 27770, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27770, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27770, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27770, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27770, __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, "cudaGraphAddExternalSemaphoresWaitNode", 0) < (0)) __PYX_ERR(0, 27770, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresWaitNode", 1, 4, 4, i); __PYX_ERR(0, 27770, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 27770, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27770, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27770, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27770, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 27771, __pyx_L3_error)
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddExternalSemaphoresWaitNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 27770, __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.runtime.cudaGraphAddExternalSemaphoresWaitNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 27771, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_446cudaGraphAddExternalSemaphoresWaitNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_nodeParams);

  /* 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_gb_4cuda_8bindings_7runtime_38cudaGraphAddExternalSemaphoresWaitNode_2generator122(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":27808
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_38cudaGraphAddExternalSemaphoresWaitNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 27808, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_38cudaGraphAddExternalSemaphoresWaitNode_2generator122, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[122]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddExternalSemaphoresWa, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 27808, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddExternalSemaphoresWaitNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_38cudaGraphAddExternalSemaphoresWaitNode_2generator122(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 27808, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 27808, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27808, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27808, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27808, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27808, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27808, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 27808, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27770
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Creates an external semaphore wait node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_446cudaGraphAddExternalSemaphoresWaitNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct cudaExternalSemaphoreWaitNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_38cudaGraphAddExternalSemaphoresWaitNode_2generator122 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaExternalSemaphoreWaitNodeParams *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddExternalSemaphoresWaitNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":27807
 *     :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphExternalSemaphoresWaitNodeGetParams`, :py:obj:`~.cudaGraphExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27807, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27808
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_38cudaGraphAddExternalSemaphoresWaitNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 27808, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":27809
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27809, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 27809, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":27808
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":27811
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27812
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27811
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":27813
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27814
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27814, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27813
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":27816
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27816, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":27817
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27817, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27818
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27818, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27819
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":27820
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27820, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27821
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27821, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":27822
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":27823
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27823, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27823, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27823, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 27823, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":27822
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":27825
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27825, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":27826
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27826, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":27820
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":27827
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27827, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27828
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":27827
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":27829
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27829, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27829, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 27829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27829, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 27829, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":27830
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddExternalSemaphoresWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
*/
  __pyx_t_4 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_4) {
    __pyx_t_13 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_13 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_13;

  /* "cuda/bindings/runtime.pyx":27831
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddExternalSemaphoresWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27832
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphAddExternalSemaphoresWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddExternalSemaphoresWaitNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27832, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":27831
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddExternalSemaphoresWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27833
 *     with nogil:
 *         err = cyruntime.cudaGraphAddExternalSemaphoresWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 27833, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27834
 *         err = cyruntime.cudaGraphAddExternalSemaphoresWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":27833
 *     with nogil:
 *         err = cyruntime.cudaGraphAddExternalSemaphoresWaitNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":27835
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27836
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27836, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27836, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27835
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":27837
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 27837, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 27837, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27770
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Creates an external semaphore wait node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddExternalSemaphoresWaitNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_38cudaGraphAddExternalSemaphoresWaitNode_2generator122);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27839
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode):
 *     """ Returns an external semaphore wait node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_449cudaGraphExternalSemaphoresWaitNodeGetParams(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_7runtime_448cudaGraphExternalSemaphoresWaitNodeGetParams, "cudaGraphExternalSemaphoresWaitNodeGetParams(hNode)\n\nReturns an external semaphore wait node's parameters.\n\nReturns the parameters of an external semaphore wait node `hNode` in\n`params_out`. The `extSemArray` and `paramsArray` returned in\n`params_out`, are owned by the node. This memory remains valid until\nthe node is destroyed or its parameters are modified, and should not be\nmodified directly. Use\n:py:obj:`~.cudaGraphExternalSemaphoresSignalNodeSetParams` to update\nthe parameters of this node.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the parameters for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nparams_out : :py:obj:`~.cudaExternalSemaphoreWaitNodeParams`\n    Pointer to return the parameters\n\nSee Also\n--------\n:py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaGraphExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_449cudaGraphExternalSemaphoresWaitNodeGetParams = {"cudaGraphExternalSemaphoresWaitNodeGetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_449cudaGraphExternalSemaphoresWaitNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_448cudaGraphExternalSemaphoresWaitNodeGetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_449cudaGraphExternalSemaphoresWaitNodeGetParams(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_hNode = 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("cudaGraphExternalSemaphoresWaitNodeGetParams (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_hNode,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, 27839, __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, 27839, __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, "cudaGraphExternalSemaphoresWaitNodeGetParams", 0) < (0)) __PYX_ERR(0, 27839, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresWaitNodeGetParams", 1, 1, 1, i); __PYX_ERR(0, 27839, __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, 27839, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresWaitNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 27839, __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.runtime.cudaGraphExternalSemaphoresWaitNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_448cudaGraphExternalSemaphoresWaitNodeGetParams(__pyx_self, __pyx_v_hNode);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_448cudaGraphExternalSemaphoresWaitNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_params_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresWaitNodeGetParams", 0);

  /* "cuda/bindings/runtime.pyx":27868
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27869
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27868
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27870
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27871
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27871, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27870
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27873
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27873, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27873, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27874
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27874, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27875
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreWaitNodeParams*>params_out._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27875, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_params_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27876
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreWaitNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27877
 *     cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams()
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreWaitNodeParams*>params_out._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresWaitNodeGetParams(__pyx_v_cyhNode, ((struct cudaExternalSemaphoreWaitNodeParams *)__pyx_v_params_out->_pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27877, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":27876
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaExternalSemaphoreWaitNodeParams params_out = cudaExternalSemaphoreWaitNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreWaitNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27878
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreWaitNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27879
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreWaitNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], params_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 27879, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 27879, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":27878
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeGetParams(cyhNode, <cyruntime.cudaExternalSemaphoreWaitNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":27880
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 27880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 27880, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_params_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_params_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_params_out)) != (0)) __PYX_ERR(0, 27880, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27839
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode):
 *     """ Returns an external semaphore wait node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExternalSemaphoresWaitNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF((PyObject *)__pyx_v_params_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27882
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Sets an external semaphore wait node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_451cudaGraphExternalSemaphoresWaitNodeSetParams(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_7runtime_450cudaGraphExternalSemaphoresWaitNodeSetParams, "cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, cudaExternalSemaphoreWaitNodeParams nodeParams: Optional[cudaExternalSemaphoreWaitNodeParams])\n\nSets an external semaphore wait node's parameters.\n\nSets the parameters of an external semaphore wait node `hNode` to\n`nodeParams`.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the parameters for\nnodeParams : :py:obj:`~.cudaExternalSemaphoreWaitNodeParams`\n    Parameters to copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaGraphExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_451cudaGraphExternalSemaphoresWaitNodeSetParams = {"cudaGraphExternalSemaphoresWaitNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_451cudaGraphExternalSemaphoresWaitNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_450cudaGraphExternalSemaphoresWaitNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_451cudaGraphExternalSemaphoresWaitNodeSetParams(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_hNode = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresWaitNodeSetParams (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_hNode,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 27882, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27882, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27882, __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, "cudaGraphExternalSemaphoresWaitNodeSetParams", 0) < (0)) __PYX_ERR(0, 27882, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresWaitNodeSetParams", 1, 2, 2, i); __PYX_ERR(0, 27882, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 27882, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27882, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExternalSemaphoresWaitNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 27882, __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.runtime.cudaGraphExternalSemaphoresWaitNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 27883, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_450cudaGraphExternalSemaphoresWaitNodeSetParams(__pyx_self, __pyx_v_hNode, __pyx_v_nodeParams);

  /* 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_7runtime_450cudaGraphExternalSemaphoresWaitNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  struct cudaExternalSemaphoreWaitNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaExternalSemaphoreWaitNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExternalSemaphoresWaitNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":27906
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27907
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27906
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27908
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":27909
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27909, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":27908
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":27911
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27911, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":27912
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 27912, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":27913
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeSetParams(cyhNode, cynodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":27914
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeSetParams(cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":27915
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeSetParams(cyhNode, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresWaitNodeSetParams(__pyx_v_cyhNode, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 27915, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":27914
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeSetParams(cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":27916
 *     with nogil:
 *         err = cyruntime.cudaGraphExternalSemaphoresWaitNodeSetParams(cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 27916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 27916, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27882
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Sets an external semaphore wait node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExternalSemaphoresWaitNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27918
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaMemAllocNodeParams]):
 *     """ Creates an allocation node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_453cudaGraphAddMemAllocNode(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_7runtime_452cudaGraphAddMemAllocNode, "cudaGraphAddMemAllocNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, cudaMemAllocNodeParams nodeParams: Optional[cudaMemAllocNodeParams])\n\nCreates an allocation node and adds it to a graph.\n\nCreates a new allocation node and adds it to `graph` with\n`numDependencies` dependencies specified via `pDependencies` and\narguments specified in `nodeParams`. It is possible for\n`numDependencies` to be 0, in which case the node will be placed at the\nroot of the graph. `pDependencies` may not have any duplicate entries.\nA handle to the new node will be returned in `pGraphNode`.\n\nWhen :py:obj:`~.cudaGraphAddMemAllocNode` creates an allocation node,\nit returns the address of the allocation in `nodeParams.dptr`. The\nallocation's address remains fixed across instantiations and launches.\n\nIf the allocation is freed in the same graph, by creating a free node\nusing :py:obj:`~.cudaGraphAddMemFreeNode`, the allocation can be\naccessed by nodes ordered after the allocation node but before the free\nnode. These allocations cannot be freed outside the owning graph, and\nthey can only be freed once in the owning graph.\n\nIf the allocation is not freed in the same graph, then it can be\naccessed not only by nodes in the graph which are ordered after the\nallocation node, but also by stream operations ordered after the\ngraph's execution but before the allocation is freed.\n\nAllocations which are not freed in the same graph can be freed by:\n\n- passing the allocation to :py:obj:`~.cudaMemFreeAsync` or\n  :py:obj:`~.cudaMemFree`;\n\n- launching a graph with a free node for that allocation; or\n\n- specifying :py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`\n  during instantiation, which makes each launch behave as though it\n  called :py:obj:`~.cudaMemFreeAsync` for every unfreed allocation.\n\nIt is not possible to free an allocation in both the owning graph and\nanother graph. If the allocation is freed in the ""same graph, a free\nnode cannot be added to another graph. If the allocation is freed in\nanother graph, a free node can no longer be added to the owning graph.\n\nThe following restrictions apply to graphs which contain allocation\nand/or memory free nodes:\n\n- Nodes and edges of the graph cannot be deleted.\n\n- The graph can only be used in a child node if the ownership is moved\n  to the parent.\n\n- Only one instantiation of the graph may exist at any point in time.\n\n- The graph cannot be cloned.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\nnodeParams : :py:obj:`~.cudaMemAllocNodeParams`\n    Parameters for the node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaGraphMemAllocNodeGetParams`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_453cudaGraphAddMemAllocNode = {"cudaGraphAddMemAllocNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_453cudaGraphAddMemAllocNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_452cudaGraphAddMemAllocNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_453cudaGraphAddMemAllocNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddMemAllocNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 27918, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27918, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27918, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27918, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 27918, __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, "cudaGraphAddMemAllocNode", 0) < (0)) __PYX_ERR(0, 27918, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemAllocNode", 1, 4, 4, i); __PYX_ERR(0, 27918, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 27918, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 27918, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 27918, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 27918, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 27919, __pyx_L3_error)
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemAllocNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 27918, __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.runtime.cudaGraphAddMemAllocNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 27919, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_452cudaGraphAddMemAllocNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_nodeParams);

  /* 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_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemAllocNode_2generator123(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":27995
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddMemAllocNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 27995, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemAllocNode_2generator123, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[123]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemAllocNode_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 27995, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemAllocNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemAllocNode_2generator123(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 27995, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 27995, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27995, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27995, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27995, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 27995, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27995, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 27995, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":27918
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaMemAllocNodeParams]):
 *     """ Creates an allocation node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_452cudaGraphAddMemAllocNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_nodeParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct cudaMemAllocNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemAllocNode_2generator123 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaMemAllocNodeParams *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddMemAllocNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":27994
 *     :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaGraphMemAllocNodeGetParams`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27994, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":27995
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddMemAllocNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 27995, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":27996
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27996, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 27996, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":27995
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":27998
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":27999
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":27998
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":28000
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28001
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28001, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28000
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":28003
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28003, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28003, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":28004
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28004, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28005
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28005, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":28006
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":28007
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28007, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28008
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28008, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":28009
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":28010
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28010, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 28010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28010, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 28010, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28009
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":28012
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28012, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":28013
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28013, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":28007
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":28014
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28014, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28015
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemAllocNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28015, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":28014
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":28016
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemAllocNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28016, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28016, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 28016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 28016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28016, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28016, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 28016, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":28017
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemAllocNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemAllocNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
*/
  __pyx_t_4 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_4) {
    __pyx_t_13 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_13 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_13;

  /* "cuda/bindings/runtime.pyx":28018
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemAllocNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemAllocNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28019
 *     cdef cyruntime.cudaMemAllocNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemAllocNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemAllocNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28019, __pyx_L13_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":28018
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cdef cyruntime.cudaMemAllocNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemAllocNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28020
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemAllocNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28020, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28021
 *         err = cyruntime.cudaGraphAddMemAllocNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":28020
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemAllocNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":28022
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28023
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28023, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28023, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28023, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28023, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28023, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28023, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28022
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":28024
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 28024, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 28024, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":27918
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaMemAllocNodeParams]):
 *     """ Creates an allocation node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemAllocNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddMemAllocNode_2generator123);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28026
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemAllocNodeGetParams(node):
 *     """ Returns a memory alloc node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_455cudaGraphMemAllocNodeGetParams(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_7runtime_454cudaGraphMemAllocNodeGetParams, "cudaGraphMemAllocNodeGetParams(node)\n\nReturns a memory alloc node's parameters.\n\nReturns the parameters of a memory alloc node `hNode` in `params_out`.\nThe `poolProps` and `accessDescs` returned in `params_out`, are owned\nby the node. This memory remains valid until the node is destroyed. The\nreturned parameters must not be modified.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the parameters for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nparams_out : :py:obj:`~.cudaMemAllocNodeParams`\n    Pointer to return the parameters\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphMemFreeNodeGetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_455cudaGraphMemAllocNodeGetParams = {"cudaGraphMemAllocNodeGetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_455cudaGraphMemAllocNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_454cudaGraphMemAllocNodeGetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_455cudaGraphMemAllocNodeGetParams(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_node = 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("cudaGraphMemAllocNodeGetParams (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_node_2,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, 28026, __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, 28026, __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, "cudaGraphMemAllocNodeGetParams", 0) < (0)) __PYX_ERR(0, 28026, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphMemAllocNodeGetParams", 1, 1, 1, i); __PYX_ERR(0, 28026, __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, 28026, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphMemAllocNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28026, __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.runtime.cudaGraphMemAllocNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_454cudaGraphMemAllocNodeGetParams(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_454cudaGraphMemAllocNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *__pyx_v_params_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphMemAllocNodeGetParams", 0);

  /* "cuda/bindings/runtime.pyx":28052
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28053
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28052
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28054
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28055
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28055, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28054
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28057
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28057, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28057, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28058
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28058, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28059
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphMemAllocNodeGetParams(cynode, <cyruntime.cudaMemAllocNodeParams*>params_out._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28059, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_params_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28060
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemAllocNodeGetParams(cynode, <cyruntime.cudaMemAllocNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28061
 *     cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams()
 *     with nogil:
 *         err = cyruntime.cudaGraphMemAllocNodeGetParams(cynode, <cyruntime.cudaMemAllocNodeParams*>params_out._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemAllocNodeGetParams(__pyx_v_cynode, ((struct cudaMemAllocNodeParams *)__pyx_v_params_out->_pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28061, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28060
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cudaMemAllocNodeParams params_out = cudaMemAllocNodeParams()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemAllocNodeGetParams(cynode, <cyruntime.cudaMemAllocNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28062
 *     with nogil:
 *         err = cyruntime.cudaGraphMemAllocNodeGetParams(cynode, <cyruntime.cudaMemAllocNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28063
 *         err = cyruntime.cudaGraphMemAllocNodeGetParams(cynode, <cyruntime.cudaMemAllocNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], params_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28063, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28063, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28063, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28063, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28063, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28063, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28062
 *     with nogil:
 *         err = cyruntime.cudaGraphMemAllocNodeGetParams(cynode, <cyruntime.cudaMemAllocNodeParams*>params_out._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":28064
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], params_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28064, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_params_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_params_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_params_out)) != (0)) __PYX_ERR(0, 28064, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28026
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemAllocNodeGetParams(node):
 *     """ Returns a memory alloc node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphMemAllocNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF((PyObject *)__pyx_v_params_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28066
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dptr):
 *     """ Creates a memory free node and adds it to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_457cudaGraphAddMemFreeNode(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_7runtime_456cudaGraphAddMemFreeNode, "cudaGraphAddMemFreeNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dptr)\n\nCreates a memory free node and adds it to a graph.\n\nCreates a new memory free node and adds it to `graph` with\n`numDependencies` dependencies specified via `pDependencies` and\naddress specified in `dptr`. It is possible for `numDependencies` to be\n0, in which case the node will be placed at the root of the graph.\n`pDependencies` may not have any duplicate entries. A handle to the new\nnode will be returned in `pGraphNode`.\n\n:py:obj:`~.cudaGraphAddMemFreeNode` will return\n:py:obj:`~.cudaErrorInvalidValue` if the user attempts to free:\n\n- an allocation twice in the same graph.\n\n- an address that was not returned by an allocation node.\n\n- an invalid address.\n\nThe following restrictions apply to graphs which contain allocation\nand/or memory free nodes:\n\n- Nodes and edges of the graph cannot be deleted.\n\n- The graph can only be used in a child node if the ownership is moved\n  to the parent.\n\n- Only one instantiation of the graph may exist at any point in time.\n\n- The graph cannot be cloned.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\nnumDependencies : size_t\n    Number of dependencies\ndptr : Any\n    Address of memory to free\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOutOfMemory`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphMemFreeNodeGetParams`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:o""bj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_457cudaGraphAddMemFreeNode = {"cudaGraphAddMemFreeNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_457cudaGraphAddMemFreeNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_456cudaGraphAddMemFreeNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_457cudaGraphAddMemFreeNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  size_t __pyx_v_numDependencies;
  PyObject *__pyx_v_dptr = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddMemFreeNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_dptr_2,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, 28066, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 28066, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 28066, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28066, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28066, __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, "cudaGraphAddMemFreeNode", 0) < (0)) __PYX_ERR(0, 28066, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemFreeNode", 1, 4, 4, i); __PYX_ERR(0, 28066, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 28066, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28066, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 28066, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 28066, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28067, __pyx_L3_error)
    __pyx_v_dptr = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddMemFreeNode", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 28066, __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.runtime.cudaGraphAddMemFreeNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_456cudaGraphAddMemFreeNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_numDependencies, __pyx_v_dptr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaGraphAddMemFreeNode_2generator124(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":28121
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaGraphAddMemFreeNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 28121, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_23cudaGraphAddMemFreeNode_2generator124, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[124]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemFreeNode_locals_g, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 28121, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemFreeNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaGraphAddMemFreeNode_2generator124(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 28121, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 28121, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28121, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 28121, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 28121, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28121, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 28121, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28066
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dptr):
 *     """ Creates a memory free node and adds it to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_456cudaGraphAddMemFreeNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, size_t __pyx_v_numDependencies, PyObject *__pyx_v_dptr) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydptr = NULL;
  void *__pyx_v_cydptr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaGraphAddMemFreeNode_2generator124 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  cudaError_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddMemFreeNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);

  /* "cuda/bindings/runtime.pyx":28120
 *     :py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphMemFreeNodeGetParams`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphDestroyNode`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_1 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":28121
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_23cudaGraphAddMemFreeNode_genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 28121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":28122
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 28122, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":28121
 *     """
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":28124
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28125
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28124
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":28126
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28127
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28126
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":28129
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28129, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28129, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":28130
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28130, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28131
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28131, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":28132
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":28133
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28133, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28134
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28134, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":28135
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":28136
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28136, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 28136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28136, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 28136, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28135
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":28138
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28138, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":28139
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28139, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":28133
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":28140
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28140, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28141
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cydptr = _HelperInputVoidPtr(dptr)
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":28140
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
*/
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":28142
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))             # <<<<<<<<<<<<<<
 *     cydptr = _HelperInputVoidPtr(dptr)
 *     cdef void* cydptr_ptr = <void*><void_ptr>cydptr.cptr
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28142, __pyx_L1_error)
  __pyx_t_4 = (__pyx_v_numDependencies > ((size_t)__pyx_t_7));
  if (unlikely(__pyx_t_4)) {
    __pyx_t_8 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28142, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 28142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 28142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v_numDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28142, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 28142, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":28143
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cydptr = _HelperInputVoidPtr(dptr)             # <<<<<<<<<<<<<<
 *     cdef void* cydptr_ptr = <void*><void_ptr>cydptr.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_dptr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28143, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cydptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":28144
 *     if numDependencies > <size_t>len(pDependencies): raise RuntimeError("List is too small: " + str(len(pDependencies)) + " < " + str(numDependencies))
 *     cydptr = _HelperInputVoidPtr(dptr)
 *     cdef void* cydptr_ptr = <void*><void_ptr>cydptr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemFreeNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydptr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydptr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28145
 *     cydptr = _HelperInputVoidPtr(dptr)
 *     cdef void* cydptr_ptr = <void*><void_ptr>cydptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemFreeNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydptr_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28146
 *     cdef void* cydptr_ptr = <void*><void_ptr>cydptr.cptr
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemFreeNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydptr_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_13 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemFreeNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_numDependencies, __pyx_v_cydptr_ptr); if (unlikely(__pyx_t_13 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28146, __pyx_L13_error)
        __pyx_v_err = __pyx_t_13;
      }

      /* "cuda/bindings/runtime.pyx":28145
 *     cydptr = _HelperInputVoidPtr(dptr)
 *     cdef void* cydptr_ptr = <void*><void_ptr>cydptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddMemFreeNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydptr_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28147
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemFreeNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydptr_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 28147, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L16_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L16_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28148
 *         err = cyruntime.cudaGraphAddMemFreeNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydptr_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":28147
 *     with nogil:
 *         err = cyruntime.cudaGraphAddMemFreeNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, numDependencies, cydptr_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":28149
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":28150
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28150, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28150, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28149
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":28151
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 28151, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 28151, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28066
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dptr):
 *     """ Creates a memory free node and adds it to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddMemFreeNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydptr);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_23cudaGraphAddMemFreeNode_2generator124);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28153
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemFreeNodeGetParams(node):
 *     """ Returns a memory free node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_459cudaGraphMemFreeNodeGetParams(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_7runtime_458cudaGraphMemFreeNodeGetParams, "cudaGraphMemFreeNodeGetParams(node)\n\nReturns a memory free node's parameters.\n\nReturns the address of a memory free node `hNode` in `dptr_out`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to get the parameters for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ndptr_out : Any\n    Pointer to return the device address\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaGraphMemFreeNodeGetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_459cudaGraphMemFreeNodeGetParams = {"cudaGraphMemFreeNodeGetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_459cudaGraphMemFreeNodeGetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_458cudaGraphMemFreeNodeGetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_459cudaGraphMemFreeNodeGetParams(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_node = 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("cudaGraphMemFreeNodeGetParams (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_node_2,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, 28153, __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, 28153, __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, "cudaGraphMemFreeNodeGetParams", 0) < (0)) __PYX_ERR(0, 28153, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphMemFreeNodeGetParams", 1, 1, 1, i); __PYX_ERR(0, 28153, __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, 28153, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphMemFreeNodeGetParams", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28153, __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.runtime.cudaGraphMemFreeNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_458cudaGraphMemFreeNodeGetParams(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_458cudaGraphMemFreeNodeGetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_dptr_out;
  void *__pyx_v_cydptr_out_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphMemFreeNodeGetParams", 0);

  /* "cuda/bindings/runtime.pyx":28176
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28177
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28176
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28178
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28179
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28178
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28181
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef void_ptr dptr_out = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28181, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28182
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef void_ptr dptr_out = 0
 *     cdef void* cydptr_out_ptr = <void*>&dptr_out
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28182, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28183
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef void_ptr dptr_out = 0             # <<<<<<<<<<<<<<
 *     cdef void* cydptr_out_ptr = <void*>&dptr_out
 *     with nogil:
*/
  __pyx_v_dptr_out = 0;

  /* "cuda/bindings/runtime.pyx":28184
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef void_ptr dptr_out = 0
 *     cdef void* cydptr_out_ptr = <void*>&dptr_out             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphMemFreeNodeGetParams(cynode, cydptr_out_ptr)
*/
  __pyx_v_cydptr_out_ptr = ((void *)(&__pyx_v_dptr_out));

  /* "cuda/bindings/runtime.pyx":28185
 *     cdef void_ptr dptr_out = 0
 *     cdef void* cydptr_out_ptr = <void*>&dptr_out
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemFreeNodeGetParams(cynode, cydptr_out_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28186
 *     cdef void* cydptr_out_ptr = <void*>&dptr_out
 *     with nogil:
 *         err = cyruntime.cudaGraphMemFreeNodeGetParams(cynode, cydptr_out_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemFreeNodeGetParams(__pyx_v_cynode, __pyx_v_cydptr_out_ptr); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28186, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28185
 *     cdef void_ptr dptr_out = 0
 *     cdef void* cydptr_out_ptr = <void*>&dptr_out
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphMemFreeNodeGetParams(cynode, cydptr_out_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28187
 *     with nogil:
 *         err = cyruntime.cudaGraphMemFreeNodeGetParams(cynode, cydptr_out_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], dptr_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28188
 *         err = cyruntime.cudaGraphMemFreeNodeGetParams(cynode, cydptr_out_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], dptr_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28188, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28188, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28187
 *     with nogil:
 *         err = cyruntime.cudaGraphMemFreeNodeGetParams(cynode, cydptr_out_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], dptr_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":28189
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], dptr_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_dptr_out); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28189, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 28189, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28153
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemFreeNodeGetParams(node):
 *     """ Returns a memory free node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphMemFreeNodeGetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28191
 *     return (_dict_cudaError_t[err], dptr_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGraphMemTrim(int device):
 *     """ Free unused memory that was cached on the specified device for use with graphs back to the OS.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_461cudaDeviceGraphMemTrim(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_7runtime_460cudaDeviceGraphMemTrim, "cudaDeviceGraphMemTrim(int device)\n\nFree unused memory that was cached on the specified device for use with graphs back to the OS.\n\nBlocks which are not in use by a graph that is either currently\nexecuting or scheduled to execute are freed back to the operating\nsystem.\n\nParameters\n----------\ndevice : int\n    The device for which cached memory should be freed.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_461cudaDeviceGraphMemTrim = {"cudaDeviceGraphMemTrim", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_461cudaDeviceGraphMemTrim, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_460cudaDeviceGraphMemTrim};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_461cudaDeviceGraphMemTrim(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
) {
  int __pyx_v_device;
  #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("cudaDeviceGraphMemTrim (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_device_2,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, 28191, __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, 28191, __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, "cudaDeviceGraphMemTrim", 0) < (0)) __PYX_ERR(0, 28191, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGraphMemTrim", 1, 1, 1, i); __PYX_ERR(0, 28191, __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, 28191, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28192, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGraphMemTrim", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28191, __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.runtime.cudaDeviceGraphMemTrim", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_460cudaDeviceGraphMemTrim(__pyx_self, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_460cudaDeviceGraphMemTrim(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGraphMemTrim", 0);

  /* "cuda/bindings/runtime.pyx":28213
 *     :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGraphMemTrim(device)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28214
 *     """
 *     with nogil:
 *         err = cyruntime.cudaDeviceGraphMemTrim(device)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGraphMemTrim(__pyx_v_device); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28214, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":28213
 *     :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGraphMemTrim(device)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28215
 *     with nogil:
 *         err = cyruntime.cudaDeviceGraphMemTrim(device)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28215, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28191
 *     return (_dict_cudaError_t[err], dptr_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGraphMemTrim(int device):
 *     """ Free unused memory that was cached on the specified device for use with graphs back to the OS.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGraphMemTrim", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28217
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType):
 *     """ Query asynchronous allocation attributes related to graphs.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_463cudaDeviceGetGraphMemAttribute(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_7runtime_462cudaDeviceGetGraphMemAttribute, "cudaDeviceGetGraphMemAttribute(int device, attr: cudaGraphMemAttributeType)\n\nQuery asynchronous allocation attributes related to graphs.\n\nValid attributes are:\n\n- :py:obj:`~.cudaGraphMemAttrUsedMemCurrent`: Amount of memory, in\n  bytes, currently associated with graphs\n\n- :py:obj:`~.cudaGraphMemAttrUsedMemHigh`: High watermark of memory, in\n  bytes, associated with graphs since the last time it was reset. High\n  watermark can only be reset to zero.\n\n- :py:obj:`~.cudaGraphMemAttrReservedMemCurrent`: Amount of memory, in\n  bytes, currently allocated for use by the CUDA graphs asynchronous\n  allocator.\n\n- :py:obj:`~.cudaGraphMemAttrReservedMemHigh`: High watermark of\n  memory, in bytes, currently allocated for use by the CUDA graphs\n  asynchronous allocator.\n\nParameters\n----------\ndevice : int\n    Specifies the scope of the query\nattr : :py:obj:`~.cudaGraphMemAttributeType`\n    attribute to get\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\nvalue : Any\n    retrieved value\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_463cudaDeviceGetGraphMemAttribute = {"cudaDeviceGetGraphMemAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_463cudaDeviceGetGraphMemAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_462cudaDeviceGetGraphMemAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_463cudaDeviceGetGraphMemAttribute(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
) {
  int __pyx_v_device;
  PyObject *__pyx_v_attr = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetGraphMemAttribute (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_device_2,&__pyx_mstate_global->__pyx_n_u_attr,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, 28217, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28217, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28217, __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, "cudaDeviceGetGraphMemAttribute", 0) < (0)) __PYX_ERR(0, 28217, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetGraphMemAttribute", 1, 2, 2, i); __PYX_ERR(0, 28217, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 28217, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28217, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28218, __pyx_L3_error)
    __pyx_v_attr = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetGraphMemAttribute", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 28217, __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.runtime.cudaDeviceGetGraphMemAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 28218, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_462cudaDeviceGetGraphMemAttribute(__pyx_self, __pyx_v_device, __pyx_v_attr);

  /* 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_7runtime_462cudaDeviceGetGraphMemAttribute(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_attr) {
  enum cudaGraphMemAttributeType __pyx_v_cyattr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_cyvalue = 0;
  void *__pyx_v_cyvalue_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaGraphMemAttributeType __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetGraphMemAttribute", 0);

  /* "cuda/bindings/runtime.pyx":28256
 *     :py:obj:`~.cudaDeviceSetGraphMemAttribute`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`
 *     """
 *     cdef cyruntime.cudaGraphMemAttributeType cyattr = attr.value             # <<<<<<<<<<<<<<
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, 0, is_getter=True)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaGraphMemAttributeType)__Pyx_PyLong_As_enum__cudaGraphMemAttributeType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28256, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyattr = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":28257
 *     """
 *     cdef cyruntime.cudaGraphMemAttributeType cyattr = attr.value
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, 0, is_getter=True)             # <<<<<<<<<<<<<<
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, __pyx_v_attr, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28257, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_is_getter, Py_True, __pyx_t_5, __pyx_callargs+3, 0) < (0)) __PYX_ERR(0, 28257, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28257, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyvalue = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":28258
 *     cdef cyruntime.cudaGraphMemAttributeType cyattr = attr.value
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, 0, is_getter=True)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetGraphMemAttribute(device, cyattr, cyvalue_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyvalue), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28258, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyvalue_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28259
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, 0, is_getter=True)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetGraphMemAttribute(device, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28260
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetGraphMemAttribute(device, cyattr, cyvalue_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetGraphMemAttribute(__pyx_v_device, __pyx_v_cyattr, __pyx_v_cyvalue_ptr); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28260, __pyx_L4_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28259
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, 0, is_getter=True)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetGraphMemAttribute(device, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28261
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetGraphMemAttribute(device, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
*/
  __pyx_t_8 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":28262
 *         err = cyruntime.cudaDeviceGetGraphMemAttribute(device, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 28262, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 28262, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28261
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetGraphMemAttribute(device, cyattr, cyvalue_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
*/
  }

  /* "cuda/bindings/runtime.pyx":28263
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = ((PyObject *)__pyx_v_cyvalue);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_pyObj, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 28263, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3) != (0)) __PYX_ERR(0, 28263, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28217
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType):
 *     """ Query asynchronous allocation attributes related to graphs.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetGraphMemAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyvalue);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28265
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType, value):
 *     """ Set asynchronous allocation attributes related to graphs.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_465cudaDeviceSetGraphMemAttribute(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_7runtime_464cudaDeviceSetGraphMemAttribute, "cudaDeviceSetGraphMemAttribute(int device, attr: cudaGraphMemAttributeType, value)\n\nSet asynchronous allocation attributes related to graphs.\n\nValid attributes are:\n\n- :py:obj:`~.cudaGraphMemAttrUsedMemHigh`: High watermark of memory, in\n  bytes, associated with graphs since the last time it was reset. High\n  watermark can only be reset to zero.\n\n- :py:obj:`~.cudaGraphMemAttrReservedMemHigh`: High watermark of\n  memory, in bytes, currently allocated for use by the CUDA graphs\n  asynchronous allocator.\n\nParameters\n----------\ndevice : int\n    Specifies the scope of the query\nattr : :py:obj:`~.cudaGraphMemAttributeType`\n    attribute to get\nvalue : Any\n    pointer to value to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_465cudaDeviceSetGraphMemAttribute = {"cudaDeviceSetGraphMemAttribute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_465cudaDeviceSetGraphMemAttribute, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_464cudaDeviceSetGraphMemAttribute};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_465cudaDeviceSetGraphMemAttribute(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
) {
  int __pyx_v_device;
  PyObject *__pyx_v_attr = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceSetGraphMemAttribute (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_device_2,&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_value,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, 28265, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 28265, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28265, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28265, __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, "cudaDeviceSetGraphMemAttribute", 0) < (0)) __PYX_ERR(0, 28265, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceSetGraphMemAttribute", 1, 3, 3, i); __PYX_ERR(0, 28265, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 28265, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28265, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 28265, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 28266, __pyx_L3_error)
    __pyx_v_attr = values[1];
    __pyx_v_value = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceSetGraphMemAttribute", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 28265, __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.runtime.cudaDeviceSetGraphMemAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 28266, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_464cudaDeviceSetGraphMemAttribute(__pyx_self, __pyx_v_device, __pyx_v_attr, __pyx_v_value);

  /* 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_7runtime_464cudaDeviceSetGraphMemAttribute(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_attr, PyObject *__pyx_v_value) {
  enum cudaGraphMemAttributeType __pyx_v_cyattr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *__pyx_v_cyvalue = 0;
  void *__pyx_v_cyvalue_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  enum cudaGraphMemAttributeType __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceSetGraphMemAttribute", 0);

  /* "cuda/bindings/runtime.pyx":28297
 *     :py:obj:`~.cudaDeviceGetGraphMemAttribute`, :py:obj:`~.cudaGraphAddMemAllocNode`, :py:obj:`~.cudaGraphAddMemFreeNode`, :py:obj:`~.cudaDeviceGraphMemTrim`, :py:obj:`~.cudaMallocAsync`, :py:obj:`~.cudaFreeAsync`
 *     """
 *     cdef cyruntime.cudaGraphMemAttributeType cyattr = attr.value             # <<<<<<<<<<<<<<
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, value, is_getter=False)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((enum cudaGraphMemAttributeType)__Pyx_PyLong_As_enum__cudaGraphMemAttributeType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyattr = __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":28298
 *     """
 *     cdef cyruntime.cudaGraphMemAttributeType cyattr = attr.value
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, value, is_getter=False)             # <<<<<<<<<<<<<<
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, __pyx_v_attr, __pyx_v_value};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28298, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_is_getter, Py_False, __pyx_t_5, __pyx_callargs+3, 0) < (0)) __PYX_ERR(0, 28298, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28298, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyvalue = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":28299
 *     cdef cyruntime.cudaGraphMemAttributeType cyattr = attr.value
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, value, is_getter=False)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetGraphMemAttribute(device, cyattr, cyvalue_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyvalue), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28299, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyvalue_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28300
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, value, is_getter=False)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetGraphMemAttribute(device, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28301
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetGraphMemAttribute(device, cyattr, cyvalue_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetGraphMemAttribute(__pyx_v_device, __pyx_v_cyattr, __pyx_v_cyvalue_ptr); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28301, __pyx_L4_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28300
 *     cdef _HelperCUgraphMem_attribute cyvalue = _HelperCUgraphMem_attribute(attr, value, is_getter=False)
 *     cdef void* cyvalue_ptr = <void*><void_ptr>cyvalue.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceSetGraphMemAttribute(device, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28302
 *     with nogil:
 *         err = cyruntime.cudaDeviceSetGraphMemAttribute(device, cyattr, cyvalue_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 28302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 28302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 28302, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28265
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType, value):
 *     """ Set asynchronous allocation attributes related to graphs.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceSetGraphMemAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyvalue);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28304
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphClone(originalGraph):
 *     """ Clones a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_467cudaGraphClone(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_7runtime_466cudaGraphClone, "cudaGraphClone(originalGraph)\n\nClones a graph.\n\nThis function creates a copy of `originalGraph` and returns it in\n`pGraphClone`. All parameters are copied into the cloned graph. The\noriginal graph may be modified after this call without affecting the\nclone.\n\nChild graph nodes in the original graph are recursively copied into the\nclone.\n\nParameters\n----------\noriginalGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to clone\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`\npGraphClone : :py:obj:`~.cudaGraph_t`\n    Returns newly created cloned graph\n\nSee Also\n--------\n:py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphNodeFindInClone`\n\nNotes\n-----\n: Cloning is not supported for graphs which contain memory allocation nodes, memory free nodes, or conditional nodes.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_467cudaGraphClone = {"cudaGraphClone", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_467cudaGraphClone, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_466cudaGraphClone};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_467cudaGraphClone(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_originalGraph = 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("cudaGraphClone (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_originalGraph,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, 28304, __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, 28304, __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, "cudaGraphClone", 0) < (0)) __PYX_ERR(0, 28304, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphClone", 1, 1, 1, i); __PYX_ERR(0, 28304, __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, 28304, __pyx_L3_error)
    }
    __pyx_v_originalGraph = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphClone", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28304, __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.runtime.cudaGraphClone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_466cudaGraphClone(__pyx_self, __pyx_v_originalGraph);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_466cudaGraphClone(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_originalGraph) {
  cudaGraph_t __pyx_v_cyoriginalGraph;
  PyObject *__pyx_v_poriginalGraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_pGraphClone = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphClone", 0);

  /* "cuda/bindings/runtime.pyx":28337
 *     """
 *     cdef cyruntime.cudaGraph_t cyoriginalGraph
 *     if originalGraph is None:             # <<<<<<<<<<<<<<
 *         poriginalGraph = 0
 *     elif isinstance(originalGraph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_originalGraph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28338
 *     cdef cyruntime.cudaGraph_t cyoriginalGraph
 *     if originalGraph is None:
 *         poriginalGraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(originalGraph, (cudaGraph_t,driver.CUgraph)):
 *         poriginalGraph = int(originalGraph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_poriginalGraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28337
 *     """
 *     cdef cyruntime.cudaGraph_t cyoriginalGraph
 *     if originalGraph is None:             # <<<<<<<<<<<<<<
 *         poriginalGraph = 0
 *     elif isinstance(originalGraph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28339
 *     if originalGraph is None:
 *         poriginalGraph = 0
 *     elif isinstance(originalGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         poriginalGraph = int(originalGraph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_originalGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_originalGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28340
 *         poriginalGraph = 0
 *     elif isinstance(originalGraph, (cudaGraph_t,driver.CUgraph)):
 *         poriginalGraph = int(originalGraph)             # <<<<<<<<<<<<<<
 *     else:
 *         poriginalGraph = int(cudaGraph_t(originalGraph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_originalGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28340, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_poriginalGraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28339
 *     if originalGraph is None:
 *         poriginalGraph = 0
 *     elif isinstance(originalGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         poriginalGraph = int(originalGraph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28342
 *         poriginalGraph = int(originalGraph)
 *     else:
 *         poriginalGraph = int(cudaGraph_t(originalGraph))             # <<<<<<<<<<<<<<
 *     cyoriginalGraph = <cyruntime.cudaGraph_t><void_ptr>poriginalGraph
 *     cdef cudaGraph_t pGraphClone = cudaGraph_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_originalGraph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28342, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_poriginalGraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28343
 *     else:
 *         poriginalGraph = int(cudaGraph_t(originalGraph))
 *     cyoriginalGraph = <cyruntime.cudaGraph_t><void_ptr>poriginalGraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraph_t pGraphClone = cudaGraph_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_poriginalGraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28343, __pyx_L1_error)
  __pyx_v_cyoriginalGraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28344
 *         poriginalGraph = int(cudaGraph_t(originalGraph))
 *     cyoriginalGraph = <cyruntime.cudaGraph_t><void_ptr>poriginalGraph
 *     cdef cudaGraph_t pGraphClone = cudaGraph_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphClone(<cyruntime.cudaGraph_t*>pGraphClone._pvt_ptr, cyoriginalGraph)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28344, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraphClone = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28345
 *     cyoriginalGraph = <cyruntime.cudaGraph_t><void_ptr>poriginalGraph
 *     cdef cudaGraph_t pGraphClone = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphClone(<cyruntime.cudaGraph_t*>pGraphClone._pvt_ptr, cyoriginalGraph)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28346
 *     cdef cudaGraph_t pGraphClone = cudaGraph_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphClone(<cyruntime.cudaGraph_t*>pGraphClone._pvt_ptr, cyoriginalGraph)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphClone(((cudaGraph_t *)__pyx_v_pGraphClone->__pyx_base._pvt_ptr), __pyx_v_cyoriginalGraph); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28346, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28345
 *     cyoriginalGraph = <cyruntime.cudaGraph_t><void_ptr>poriginalGraph
 *     cdef cudaGraph_t pGraphClone = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphClone(<cyruntime.cudaGraph_t*>pGraphClone._pvt_ptr, cyoriginalGraph)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28347
 *     with nogil:
 *         err = cyruntime.cudaGraphClone(<cyruntime.cudaGraph_t*>pGraphClone._pvt_ptr, cyoriginalGraph)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphClone)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28348
 *         err = cyruntime.cudaGraphClone(<cyruntime.cudaGraph_t*>pGraphClone._pvt_ptr, cyoriginalGraph)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphClone)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28348, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28348, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28347
 *     with nogil:
 *         err = cyruntime.cudaGraphClone(<cyruntime.cudaGraph_t*>pGraphClone._pvt_ptr, cyoriginalGraph)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphClone)
*/
  }

  /* "cuda/bindings/runtime.pyx":28349
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphClone)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28349, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphClone);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphClone);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphClone)) != (0)) __PYX_ERR(0, 28349, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28304
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphClone(originalGraph):
 *     """ Clones a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphClone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_poriginalGraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphClone);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28351
 *     return (_dict_cudaError_t[err], pGraphClone)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeFindInClone(originalNode, clonedGraph):
 *     """ Finds a cloned version of a node.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_469cudaGraphNodeFindInClone(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_7runtime_468cudaGraphNodeFindInClone, "cudaGraphNodeFindInClone(originalNode, clonedGraph)\n\nFinds a cloned version of a node.\n\nThis function returns the node in `clonedGraph` corresponding to\n`originalNode` in the original graph.\n\n`clonedGraph` must have been cloned from `originalGraph` via\n:py:obj:`~.cudaGraphClone`. `originalNode` must have been in\n`originalGraph` at the time of the call to :py:obj:`~.cudaGraphClone`,\nand the corresponding cloned node in `clonedGraph` must not have been\nremoved. The cloned node is then returned via `pClonedNode`.\n\nParameters\n----------\noriginalNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Handle to the original node\nclonedGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Cloned graph to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npNode : :py:obj:`~.cudaGraphNode_t`\n    Returns handle to the cloned node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphClone`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_469cudaGraphNodeFindInClone = {"cudaGraphNodeFindInClone", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_469cudaGraphNodeFindInClone, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_468cudaGraphNodeFindInClone};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_469cudaGraphNodeFindInClone(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_originalNode = 0;
  PyObject *__pyx_v_clonedGraph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphNodeFindInClone (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_originalNode,&__pyx_mstate_global->__pyx_n_u_clonedGraph,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, 28351, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28351, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28351, __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, "cudaGraphNodeFindInClone", 0) < (0)) __PYX_ERR(0, 28351, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeFindInClone", 1, 2, 2, i); __PYX_ERR(0, 28351, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 28351, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28351, __pyx_L3_error)
    }
    __pyx_v_originalNode = values[0];
    __pyx_v_clonedGraph = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeFindInClone", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 28351, __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.runtime.cudaGraphNodeFindInClone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_468cudaGraphNodeFindInClone(__pyx_self, __pyx_v_originalNode, __pyx_v_clonedGraph);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_468cudaGraphNodeFindInClone(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_originalNode, PyObject *__pyx_v_clonedGraph) {
  cudaGraph_t __pyx_v_cyclonedGraph;
  PyObject *__pyx_v_pclonedGraph = NULL;
  cudaGraphNode_t __pyx_v_cyoriginalNode;
  PyObject *__pyx_v_poriginalNode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pNode = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeFindInClone", 0);

  /* "cuda/bindings/runtime.pyx":28383
 *     """
 *     cdef cyruntime.cudaGraph_t cyclonedGraph
 *     if clonedGraph is None:             # <<<<<<<<<<<<<<
 *         pclonedGraph = 0
 *     elif isinstance(clonedGraph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_clonedGraph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28384
 *     cdef cyruntime.cudaGraph_t cyclonedGraph
 *     if clonedGraph is None:
 *         pclonedGraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(clonedGraph, (cudaGraph_t,driver.CUgraph)):
 *         pclonedGraph = int(clonedGraph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pclonedGraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28383
 *     """
 *     cdef cyruntime.cudaGraph_t cyclonedGraph
 *     if clonedGraph is None:             # <<<<<<<<<<<<<<
 *         pclonedGraph = 0
 *     elif isinstance(clonedGraph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28385
 *     if clonedGraph is None:
 *         pclonedGraph = 0
 *     elif isinstance(clonedGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pclonedGraph = int(clonedGraph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_clonedGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_clonedGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28386
 *         pclonedGraph = 0
 *     elif isinstance(clonedGraph, (cudaGraph_t,driver.CUgraph)):
 *         pclonedGraph = int(clonedGraph)             # <<<<<<<<<<<<<<
 *     else:
 *         pclonedGraph = int(cudaGraph_t(clonedGraph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_clonedGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28386, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pclonedGraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28385
 *     if clonedGraph is None:
 *         pclonedGraph = 0
 *     elif isinstance(clonedGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pclonedGraph = int(clonedGraph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28388
 *         pclonedGraph = int(clonedGraph)
 *     else:
 *         pclonedGraph = int(cudaGraph_t(clonedGraph))             # <<<<<<<<<<<<<<
 *     cyclonedGraph = <cyruntime.cudaGraph_t><void_ptr>pclonedGraph
 *     cdef cyruntime.cudaGraphNode_t cyoriginalNode
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_clonedGraph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28388, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28388, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pclonedGraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28389
 *     else:
 *         pclonedGraph = int(cudaGraph_t(clonedGraph))
 *     cyclonedGraph = <cyruntime.cudaGraph_t><void_ptr>pclonedGraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cyoriginalNode
 *     if originalNode is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pclonedGraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28389, __pyx_L1_error)
  __pyx_v_cyclonedGraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28391
 *     cyclonedGraph = <cyruntime.cudaGraph_t><void_ptr>pclonedGraph
 *     cdef cyruntime.cudaGraphNode_t cyoriginalNode
 *     if originalNode is None:             # <<<<<<<<<<<<<<
 *         poriginalNode = 0
 *     elif isinstance(originalNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_originalNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28392
 *     cdef cyruntime.cudaGraphNode_t cyoriginalNode
 *     if originalNode is None:
 *         poriginalNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(originalNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         poriginalNode = int(originalNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_poriginalNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28391
 *     cyclonedGraph = <cyruntime.cudaGraph_t><void_ptr>pclonedGraph
 *     cdef cyruntime.cudaGraphNode_t cyoriginalNode
 *     if originalNode is None:             # <<<<<<<<<<<<<<
 *         poriginalNode = 0
 *     elif isinstance(originalNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":28393
 *     if originalNode is None:
 *         poriginalNode = 0
 *     elif isinstance(originalNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         poriginalNode = int(originalNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_originalNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_originalNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28394
 *         poriginalNode = 0
 *     elif isinstance(originalNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         poriginalNode = int(originalNode)             # <<<<<<<<<<<<<<
 *     else:
 *         poriginalNode = int(cudaGraphNode_t(originalNode))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_originalNode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_poriginalNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":28393
 *     if originalNode is None:
 *         poriginalNode = 0
 *     elif isinstance(originalNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         poriginalNode = int(originalNode)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":28396
 *         poriginalNode = int(originalNode)
 *     else:
 *         poriginalNode = int(cudaGraphNode_t(originalNode))             # <<<<<<<<<<<<<<
 *     cyoriginalNode = <cyruntime.cudaGraphNode_t><void_ptr>poriginalNode
 *     cdef cudaGraphNode_t pNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_originalNode};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28396, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_poriginalNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":28397
 *     else:
 *         poriginalNode = int(cudaGraphNode_t(originalNode))
 *     cyoriginalNode = <cyruntime.cudaGraphNode_t><void_ptr>poriginalNode             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pNode = cudaGraphNode_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_poriginalNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28397, __pyx_L1_error)
  __pyx_v_cyoriginalNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28398
 *         poriginalNode = int(cudaGraphNode_t(originalNode))
 *     cyoriginalNode = <cyruntime.cudaGraphNode_t><void_ptr>poriginalNode
 *     cdef cudaGraphNode_t pNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeFindInClone(<cyruntime.cudaGraphNode_t*>pNode._pvt_ptr, cyoriginalNode, cyclonedGraph)
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28398, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":28399
 *     cyoriginalNode = <cyruntime.cudaGraphNode_t><void_ptr>poriginalNode
 *     cdef cudaGraphNode_t pNode = cudaGraphNode_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeFindInClone(<cyruntime.cudaGraphNode_t*>pNode._pvt_ptr, cyoriginalNode, cyclonedGraph)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28400
 *     cdef cudaGraphNode_t pNode = cudaGraphNode_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeFindInClone(<cyruntime.cudaGraphNode_t*>pNode._pvt_ptr, cyoriginalNode, cyclonedGraph)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeFindInClone(((cudaGraphNode_t *)__pyx_v_pNode->__pyx_base._pvt_ptr), __pyx_v_cyoriginalNode, __pyx_v_cyclonedGraph); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28400, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28399
 *     cyoriginalNode = <cyruntime.cudaGraphNode_t><void_ptr>poriginalNode
 *     cdef cudaGraphNode_t pNode = cudaGraphNode_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeFindInClone(<cyruntime.cudaGraphNode_t*>pNode._pvt_ptr, cyoriginalNode, cyclonedGraph)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28401
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeFindInClone(<cyruntime.cudaGraphNode_t*>pNode._pvt_ptr, cyoriginalNode, cyclonedGraph)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNode)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28402
 *         err = cyruntime.cudaGraphNodeFindInClone(<cyruntime.cudaGraphNode_t*>pNode._pvt_ptr, cyoriginalNode, cyclonedGraph)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28402, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 28402, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28401
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeFindInClone(<cyruntime.cudaGraphNode_t*>pNode._pvt_ptr, cyoriginalNode, cyclonedGraph)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":28403
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 28403, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pNode)) != (0)) __PYX_ERR(0, 28403, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28351
 *     return (_dict_cudaError_t[err], pGraphClone)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeFindInClone(originalNode, clonedGraph):
 *     """ Finds a cloned version of a node.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeFindInClone", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pclonedGraph);
  __Pyx_XDECREF(__pyx_v_poriginalNode);
  __Pyx_XDECREF((PyObject *)__pyx_v_pNode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28405
 *     return (_dict_cudaError_t[err], pNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetType(node):
 *     """ Returns a node's type.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_471cudaGraphNodeGetType(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_7runtime_470cudaGraphNodeGetType, "cudaGraphNodeGetType(node)\n\nReturns a node's type.\n\nReturns the node type of `node` in `pType`.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npType : :py:obj:`~.cudaGraphNodeType`\n    Pointer to return the node type\n\nSee Also\n--------\n:py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphChildGraphNodeGetGraph`, :py:obj:`~.cudaGraphKernelNodeGetParams`, :py:obj:`~.cudaGraphKernelNodeSetParams`, :py:obj:`~.cudaGraphHostNodeGetParams`, :py:obj:`~.cudaGraphHostNodeSetParams`, :py:obj:`~.cudaGraphMemcpyNodeGetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphMemsetNodeGetParams`, :py:obj:`~.cudaGraphMemsetNodeSetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_471cudaGraphNodeGetType = {"cudaGraphNodeGetType", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_471cudaGraphNodeGetType, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_470cudaGraphNodeGetType};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_471cudaGraphNodeGetType(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_node = 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("cudaGraphNodeGetType (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_node_2,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, 28405, __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, 28405, __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, "cudaGraphNodeGetType", 0) < (0)) __PYX_ERR(0, 28405, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetType", 1, 1, 1, i); __PYX_ERR(0, 28405, __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, 28405, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetType", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28405, __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.runtime.cudaGraphNodeGetType", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_470cudaGraphNodeGetType(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_470cudaGraphNodeGetType(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  enum cudaGraphNodeType __pyx_v_pType;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeGetType", 0);

  /* "cuda/bindings/runtime.pyx":28428
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28429
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28428
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28430
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28431
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28430
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28433
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNodeType pType
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28433, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28433, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28434
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNodeType pType
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28434, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28436
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNodeType pType
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetType(cynode, &pType)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28437
 *     cdef cyruntime.cudaGraphNodeType pType
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetType(cynode, &pType)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetType(__pyx_v_cynode, (&__pyx_v_pType)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28437, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28436
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNodeType pType
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetType(cynode, &pType)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28438
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetType(cynode, &pType)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaGraphNodeType(pType))
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28439
 *         err = cyruntime.cudaGraphNodeGetType(cynode, &pType)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], cudaGraphNodeType(pType))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28439, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28439, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28438
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetType(cynode, &pType)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaGraphNodeType(pType))
*/
  }

  /* "cuda/bindings/runtime.pyx":28440
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], cudaGraphNodeType(pType))             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeType); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_enum__cudaGraphNodeType(__pyx_v_pType); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 28440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_9))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_10};
    __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __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_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28440, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28440, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 28440, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28405
 *     return (_dict_cudaError_t[err], pNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetType(node):
 *     """ Returns a node's type.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeGetType", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28442
 *     return (_dict_cudaError_t[err], cudaGraphNodeType(pType))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetContainingGraph(hNode):
 *     """ Returns the graph that contains a given graph node.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_473cudaGraphNodeGetContainingGraph(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_7runtime_472cudaGraphNodeGetContainingGraph, "cudaGraphNodeGetContainingGraph(hNode)\n\nReturns the graph that contains a given graph node.\n\nReturns the graph that contains `hNode` in `*phGraph`. If hNode is in a\nchild graph, the child graph it is in is returned.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\nphGraph : :py:obj:`~.cudaGraph_t`\n    Pointer to return the containing graph\n\nSee Also\n--------\n:py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphDebugDotPrint` :py:obj:`~.cudaGraphNodeGetLocalId` :py:obj:`~.cudaGraphNodeGetToolsId` :py:obj:`~.cudaGraphGetId` :py:obj:`~.cudaGraphExecGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_473cudaGraphNodeGetContainingGraph = {"cudaGraphNodeGetContainingGraph", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_473cudaGraphNodeGetContainingGraph, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_472cudaGraphNodeGetContainingGraph};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_473cudaGraphNodeGetContainingGraph(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_hNode = 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("cudaGraphNodeGetContainingGraph (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_hNode,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, 28442, __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, 28442, __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, "cudaGraphNodeGetContainingGraph", 0) < (0)) __PYX_ERR(0, 28442, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetContainingGraph", 1, 1, 1, i); __PYX_ERR(0, 28442, __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, 28442, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetContainingGraph", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28442, __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.runtime.cudaGraphNodeGetContainingGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_472cudaGraphNodeGetContainingGraph(__pyx_self, __pyx_v_hNode);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_472cudaGraphNodeGetContainingGraph(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_phGraph = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeGetContainingGraph", 0);

  /* "cuda/bindings/runtime.pyx":28466
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28467
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28466
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28468
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28469
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28468
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28471
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaGraph_t phGraph = cudaGraph_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28471, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28472
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cudaGraph_t phGraph = cudaGraph_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28472, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28473
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaGraph_t phGraph = cudaGraph_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetContainingGraph(cyhNode, <cyruntime.cudaGraph_t*>phGraph._pvt_ptr)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28473, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_phGraph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28474
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaGraph_t phGraph = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetContainingGraph(cyhNode, <cyruntime.cudaGraph_t*>phGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28475
 *     cdef cudaGraph_t phGraph = cudaGraph_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetContainingGraph(cyhNode, <cyruntime.cudaGraph_t*>phGraph._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetContainingGraph(__pyx_v_cyhNode, ((cudaGraph_t *)__pyx_v_phGraph->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28475, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28474
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cudaGraph_t phGraph = cudaGraph_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetContainingGraph(cyhNode, <cyruntime.cudaGraph_t*>phGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28476
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetContainingGraph(cyhNode, <cyruntime.cudaGraph_t*>phGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phGraph)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28477
 *         err = cyruntime.cudaGraphNodeGetContainingGraph(cyhNode, <cyruntime.cudaGraph_t*>phGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], phGraph)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28477, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28477, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28476
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetContainingGraph(cyhNode, <cyruntime.cudaGraph_t*>phGraph._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phGraph)
*/
  }

  /* "cuda/bindings/runtime.pyx":28478
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phGraph)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28478, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_phGraph);
  __Pyx_GIVEREF((PyObject *)__pyx_v_phGraph);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_phGraph)) != (0)) __PYX_ERR(0, 28478, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28442
 *     return (_dict_cudaError_t[err], cudaGraphNodeType(pType))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetContainingGraph(hNode):
 *     """ Returns the graph that contains a given graph node.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeGetContainingGraph", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF((PyObject *)__pyx_v_phGraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28480
 *     return (_dict_cudaError_t[err], phGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetLocalId(hNode):
 *     """ Returns the node id of a given graph node.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_475cudaGraphNodeGetLocalId(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_7runtime_474cudaGraphNodeGetLocalId, "cudaGraphNodeGetLocalId(hNode)\n\nReturns the node id of a given graph node.\n\nReturns the node id of `hNode` in `*nodeId`. The nodeId matches that\nreferenced by :py:obj:`~.cudaGraphDebugDotPrint`. The local nodeId and\ngraphId together can uniquely identify the node.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess` :py:obj:`~.cudaErrorInvalidValue`\nnodeId : unsigned int\n    Pointer to return the nodeId\n\nSee Also\n--------\n:py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphDebugDotPrint` :py:obj:`~.cudaGraphNodeGetContainingGraph` :py:obj:`~.cudaGraphNodeGetToolsId` :py:obj:`~.cudaGraphGetId` :py:obj:`~.cudaGraphExecGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_475cudaGraphNodeGetLocalId = {"cudaGraphNodeGetLocalId", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_475cudaGraphNodeGetLocalId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_474cudaGraphNodeGetLocalId};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_475cudaGraphNodeGetLocalId(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_hNode = 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("cudaGraphNodeGetLocalId (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_hNode,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, 28480, __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, 28480, __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, "cudaGraphNodeGetLocalId", 0) < (0)) __PYX_ERR(0, 28480, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetLocalId", 1, 1, 1, i); __PYX_ERR(0, 28480, __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, 28480, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetLocalId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28480, __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.runtime.cudaGraphNodeGetLocalId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_474cudaGraphNodeGetLocalId(__pyx_self, __pyx_v_hNode);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_474cudaGraphNodeGetLocalId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  unsigned int __pyx_v_nodeId;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeGetLocalId", 0);

  /* "cuda/bindings/runtime.pyx":28505
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28506
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28505
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28507
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28508
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28508, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28507
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28510
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef unsigned int nodeId = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28510, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28510, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28511
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef unsigned int nodeId = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28511, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28512
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef unsigned int nodeId = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetLocalId(cyhNode, &nodeId)
*/
  __pyx_v_nodeId = 0;

  /* "cuda/bindings/runtime.pyx":28513
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef unsigned int nodeId = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetLocalId(cyhNode, &nodeId)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28514
 *     cdef unsigned int nodeId = 0
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetLocalId(cyhNode, &nodeId)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetLocalId(__pyx_v_cyhNode, (&__pyx_v_nodeId)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28514, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28513
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef unsigned int nodeId = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetLocalId(cyhNode, &nodeId)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28515
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetLocalId(cyhNode, &nodeId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], nodeId)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28516
 *         err = cyruntime.cudaGraphNodeGetLocalId(cyhNode, &nodeId)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], nodeId)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28516, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28516, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28515
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetLocalId(cyhNode, &nodeId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], nodeId)
*/
  }

  /* "cuda/bindings/runtime.pyx":28517
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], nodeId)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_nodeId); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28517, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 28517, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28480
 *     return (_dict_cudaError_t[err], phGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetLocalId(hNode):
 *     """ Returns the node id of a given graph node.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeGetLocalId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28519
 *     return (_dict_cudaError_t[err], nodeId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetToolsId(hNode):
 *     """ Returns an id used by tools to identify a given node.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_477cudaGraphNodeGetToolsId(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_7runtime_476cudaGraphNodeGetToolsId, "cudaGraphNodeGetToolsId(hNode)\n\nReturns an id used by tools to identify a given node.\n\nParameters\n----------\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.CUDA_SUCCESS` :py:obj:`~.cudaErrorInvalidValue`\n*toolsNodeId : unsigned long long\n    Pointer to return the id used by tools\n\nSee Also\n--------\n:py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphDebugDotPrint` :py:obj:`~.cudaGraphNodeGetContainingGraph` :py:obj:`~.cudaGraphNodeGetLocalId` :py:obj:`~.cudaGraphGetId` :py:obj:`~.cudaGraphExecGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_477cudaGraphNodeGetToolsId = {"cudaGraphNodeGetToolsId", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_477cudaGraphNodeGetToolsId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_476cudaGraphNodeGetToolsId};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_477cudaGraphNodeGetToolsId(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_hNode = 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("cudaGraphNodeGetToolsId (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_hNode,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, 28519, __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, 28519, __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, "cudaGraphNodeGetToolsId", 0) < (0)) __PYX_ERR(0, 28519, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetToolsId", 1, 1, 1, i); __PYX_ERR(0, 28519, __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, 28519, __pyx_L3_error)
    }
    __pyx_v_hNode = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetToolsId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28519, __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.runtime.cudaGraphNodeGetToolsId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_476cudaGraphNodeGetToolsId(__pyx_self, __pyx_v_hNode);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_476cudaGraphNodeGetToolsId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hNode) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  unsigned PY_LONG_LONG __pyx_v_toolsNodeId;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeGetToolsId", 0);

  /* "cuda/bindings/runtime.pyx":28540
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28541
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28540
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28542
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28543
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28543, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28542
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28545
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef unsigned long long toolsNodeId = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28545, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28546
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef unsigned long long toolsNodeId = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28546, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28547
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef unsigned long long toolsNodeId = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetToolsId(cyhNode, &toolsNodeId)
*/
  __pyx_v_toolsNodeId = 0;

  /* "cuda/bindings/runtime.pyx":28548
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef unsigned long long toolsNodeId = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetToolsId(cyhNode, &toolsNodeId)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28549
 *     cdef unsigned long long toolsNodeId = 0
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetToolsId(cyhNode, &toolsNodeId)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetToolsId(__pyx_v_cyhNode, (&__pyx_v_toolsNodeId)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28549, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28548
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef unsigned long long toolsNodeId = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetToolsId(cyhNode, &toolsNodeId)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28550
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetToolsId(cyhNode, &toolsNodeId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], toolsNodeId)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28551
 *         err = cyruntime.cudaGraphNodeGetToolsId(cyhNode, &toolsNodeId)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], toolsNodeId)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28551, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28551, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28550
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetToolsId(cyhNode, &toolsNodeId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], toolsNodeId)
*/
  }

  /* "cuda/bindings/runtime.pyx":28552
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], toolsNodeId)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_toolsNodeId); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28552, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 28552, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28519
 *     return (_dict_cudaError_t[err], nodeId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetToolsId(hNode):
 *     """ Returns an id used by tools to identify a given node.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeGetToolsId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28554
 *     return (_dict_cudaError_t[err], toolsNodeId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetId(hGraph):
 *     """ Returns the id of a given graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_479cudaGraphGetId(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_7runtime_478cudaGraphGetId, "cudaGraphGetId(hGraph)\n\nReturns the id of a given graph.\n\nReturns the id of `hGraph` in `*graphId`. The value in `*graphId`\nmatches that referenced by :py:obj:`~.cudaGraphDebugDotPrint`.\n\nParameters\n----------\nhGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ngraphId : unsigned int\n    Pointer to return the graphId\n\nSee Also\n--------\n:py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphDebugDotPrint` :py:obj:`~.cudaGraphNodeGetContainingGraph` :py:obj:`~.cudaGraphNodeGetLocalId` :py:obj:`~.cudaGraphNodeGetToolsId` :py:obj:`~.cudaGraphExecGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_479cudaGraphGetId = {"cudaGraphGetId", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_479cudaGraphGetId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_478cudaGraphGetId};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_479cudaGraphGetId(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_hGraph = 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("cudaGraphGetId (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_hGraph,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, 28554, __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, 28554, __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, "cudaGraphGetId", 0) < (0)) __PYX_ERR(0, 28554, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphGetId", 1, 1, 1, i); __PYX_ERR(0, 28554, __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, 28554, __pyx_L3_error)
    }
    __pyx_v_hGraph = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphGetId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28554, __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.runtime.cudaGraphGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_478cudaGraphGetId(__pyx_self, __pyx_v_hGraph);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_478cudaGraphGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraph) {
  cudaGraph_t __pyx_v_cyhGraph;
  PyObject *__pyx_v_phGraph = NULL;
  unsigned int __pyx_v_graphID;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphGetId", 0);

  /* "cuda/bindings/runtime.pyx":28578
 *     """
 *     cdef cyruntime.cudaGraph_t cyhGraph
 *     if hGraph is None:             # <<<<<<<<<<<<<<
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_hGraph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28579
 *     cdef cyruntime.cudaGraph_t cyhGraph
 *     if hGraph is None:
 *         phGraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):
 *         phGraph = int(hGraph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28578
 *     """
 *     cdef cyruntime.cudaGraph_t cyhGraph
 *     if hGraph is None:             # <<<<<<<<<<<<<<
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28580
 *     if hGraph is None:
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         phGraph = int(hGraph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28581
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):
 *         phGraph = int(hGraph)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraph = int(cudaGraph_t(hGraph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phGraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28580
 *     if hGraph is None:
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         phGraph = int(hGraph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28583
 *         phGraph = int(hGraph)
 *     else:
 *         phGraph = int(cudaGraph_t(hGraph))             # <<<<<<<<<<<<<<
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph
 *     cdef unsigned int graphID = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hGraph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28583, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phGraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28584
 *     else:
 *         phGraph = int(cudaGraph_t(hGraph))
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph             # <<<<<<<<<<<<<<
 *     cdef unsigned int graphID = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28584, __pyx_L1_error)
  __pyx_v_cyhGraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28585
 *         phGraph = int(cudaGraph_t(hGraph))
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph
 *     cdef unsigned int graphID = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphGetId(cyhGraph, &graphID)
*/
  __pyx_v_graphID = 0;

  /* "cuda/bindings/runtime.pyx":28586
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph
 *     cdef unsigned int graphID = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphGetId(cyhGraph, &graphID)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28587
 *     cdef unsigned int graphID = 0
 *     with nogil:
 *         err = cyruntime.cudaGraphGetId(cyhGraph, &graphID)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetId(__pyx_v_cyhGraph, (&__pyx_v_graphID)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28587, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28586
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph
 *     cdef unsigned int graphID = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphGetId(cyhGraph, &graphID)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28588
 *     with nogil:
 *         err = cyruntime.cudaGraphGetId(cyhGraph, &graphID)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], graphID)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28589
 *         err = cyruntime.cudaGraphGetId(cyhGraph, &graphID)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], graphID)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28589, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28589, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28588
 *     with nogil:
 *         err = cyruntime.cudaGraphGetId(cyhGraph, &graphID)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], graphID)
*/
  }

  /* "cuda/bindings/runtime.pyx":28590
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], graphID)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_graphID); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28590, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 28590, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28554
 *     return (_dict_cudaError_t[err], toolsNodeId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetId(hGraph):
 *     """ Returns the id of a given graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phGraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28592
 *     return (_dict_cudaError_t[err], graphID)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecGetId(hGraphExec):
 *     """ Returns the id of a given graph exec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_481cudaGraphExecGetId(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_7runtime_480cudaGraphExecGetId, "cudaGraphExecGetId(hGraphExec)\n\nReturns the id of a given graph exec.\n\nReturns the id of `hGraphExec` in `*graphId`. The value in `*graphId`\nmatches that referenced by :py:obj:`~.cudaGraphDebugDotPrint`.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    Graph to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\ngraphId : unsigned int\n    Pointer to return the graphId\n\nSee Also\n--------\n:py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphDebugDotPrint` :py:obj:`~.cudaGraphNodeGetContainingGraph` :py:obj:`~.cudaGraphNodeGetLocalId` :py:obj:`~.cudaGraphNodeGetToolsId` :py:obj:`~.cudaGraphGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_481cudaGraphExecGetId = {"cudaGraphExecGetId", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_481cudaGraphExecGetId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_480cudaGraphExecGetId};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_481cudaGraphExecGetId(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_hGraphExec = 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("cudaGraphExecGetId (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_hGraphExec,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, 28592, __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, 28592, __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, "cudaGraphExecGetId", 0) < (0)) __PYX_ERR(0, 28592, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecGetId", 1, 1, 1, i); __PYX_ERR(0, 28592, __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, 28592, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecGetId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 28592, __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.runtime.cudaGraphExecGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_480cudaGraphExecGetId(__pyx_self, __pyx_v_hGraphExec);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_480cudaGraphExecGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec) {
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  unsigned int __pyx_v_graphID;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecGetId", 0);

  /* "cuda/bindings/runtime.pyx":28616
 *     """
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28617
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28616
 *     """
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28618
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28619
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28618
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28621
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef unsigned int graphID = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hGraphExec};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28621, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28622
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef unsigned int graphID = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28622, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28623
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef unsigned int graphID = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecGetId(cyhGraphExec, &graphID)
*/
  __pyx_v_graphID = 0;

  /* "cuda/bindings/runtime.pyx":28624
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef unsigned int graphID = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecGetId(cyhGraphExec, &graphID)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28625
 *     cdef unsigned int graphID = 0
 *     with nogil:
 *         err = cyruntime.cudaGraphExecGetId(cyhGraphExec, &graphID)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecGetId(__pyx_v_cyhGraphExec, (&__pyx_v_graphID)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28625, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":28624
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef unsigned int graphID = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecGetId(cyhGraphExec, &graphID)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28626
 *     with nogil:
 *         err = cyruntime.cudaGraphExecGetId(cyhGraphExec, &graphID)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], graphID)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28627
 *         err = cyruntime.cudaGraphExecGetId(cyhGraphExec, &graphID)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], graphID)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28627, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28627, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28626
 *     with nogil:
 *         err = cyruntime.cudaGraphExecGetId(cyhGraphExec, &graphID)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], graphID)
*/
  }

  /* "cuda/bindings/runtime.pyx":28628
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], graphID)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_graphID); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28628, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 28628, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28592
 *     return (_dict_cudaError_t[err], graphID)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecGetId(hGraphExec):
 *     """ Returns the id of a given graph exec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28630
 *     return (_dict_cudaError_t[err], graphID)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetNodes(graph, size_t numNodes = 0):
 *     """ Returns a graph's nodes.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_483cudaGraphGetNodes(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_7runtime_482cudaGraphGetNodes, "cudaGraphGetNodes(graph, size_t numNodes=0)\n\nReturns a graph's nodes.\n\nReturns a list of `graph's` nodes. `nodes` may be NULL, in which case\nthis function will return the number of nodes in `numNodes`. Otherwise,\n`numNodes` entries will be filled in. If `numNodes` is higher than the\nactual number of nodes, the remaining entries in `nodes` will be set to\nNULL, and the number of nodes actually obtained will be returned in\n`numNodes`.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to query\nnumNodes : int\n    See description\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nnodes : list[:py:obj:`~.cudaGraphNode_t`]\n    Pointer to return the nodes\nnumNodes : int\n    See description\n\nSee Also\n--------\n:py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetType`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_483cudaGraphGetNodes = {"cudaGraphGetNodes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_483cudaGraphGetNodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_482cudaGraphGetNodes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_483cudaGraphGetNodes(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_graph = 0;
  size_t __pyx_v_numNodes;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphGetNodes (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_graph_2,&__pyx_mstate_global->__pyx_n_u_numNodes,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, 28630, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28630, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28630, __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, "cudaGraphGetNodes", 0) < (0)) __PYX_ERR(0, 28630, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphGetNodes", 0, 1, 2, i); __PYX_ERR(0, 28630, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28630, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28630, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_graph = values[0];
    if (values[1]) {
      __pyx_v_numNodes = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_numNodes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28631, __pyx_L3_error)
    } else {
      __pyx_v_numNodes = ((size_t)((size_t)0));
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphGetNodes", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 28630, __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.runtime.cudaGraphGetNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_482cudaGraphGetNodes(__pyx_self, __pyx_v_graph, __pyx_v_numNodes);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_482cudaGraphGetNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_numNodes) {
  size_t __pyx_v__graph_length;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaGraphNode_t *__pyx_v_cynodes;
  PyObject *__pyx_v_pynodes = NULL;
  cudaError_t __pyx_v_err;
  size_t __pyx_10genexpr256__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  cudaError_t __pyx_t_10;
  size_t __pyx_t_11;
  size_t __pyx_t_12;
  size_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphGetNodes", 0);

  /* "cuda/bindings/runtime.pyx":28661
 *     :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetType`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`
 *     """
 *     cdef size_t _graph_length = numNodes             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
  __pyx_v__graph_length = __pyx_v_numNodes;

  /* "cuda/bindings/runtime.pyx":28663
 *     cdef size_t _graph_length = numNodes
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28664
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28663
 *     cdef size_t _graph_length = numNodes
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28665
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28666
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28665
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28668
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cynodes = NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28668, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28669
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cynodes = NULL
 *     pynodes = []
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28669, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28670
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cynodes = NULL             # <<<<<<<<<<<<<<
 *     pynodes = []
 *     if _graph_length != 0:
*/
  __pyx_v_cynodes = NULL;

  /* "cuda/bindings/runtime.pyx":28671
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cynodes = NULL
 *     pynodes = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cynodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pynodes = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28672
 *     cdef cyruntime.cudaGraphNode_t* cynodes = NULL
 *     pynodes = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cynodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cynodes is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28673
 *     pynodes = []
 *     if _graph_length != 0:
 *         cynodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cynodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_v_cynodes = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":28674
 *     if _graph_length != 0:
 *         cynodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cynodes is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:
*/
    __pyx_t_1 = (__pyx_v_cynodes == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28675
 *         cynodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cynodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphGetNodes(cygraph, cynodes, &numNodes)
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28675, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28675, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28674
 *     if _graph_length != 0:
 *         cynodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cynodes is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:
*/
    }

    /* "cuda/bindings/runtime.pyx":28672
 *     cdef cyruntime.cudaGraphNode_t* cynodes = NULL
 *     pynodes = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cynodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cynodes is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28676
 *         if cynodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphGetNodes(cygraph, cynodes, &numNodes)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28677
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:
 *         err = cyruntime.cudaGraphGetNodes(cygraph, cynodes, &numNodes)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pynodes = [cudaGraphNode_t(init_value=<void_ptr>cynodes[idx]) for idx in range(_graph_length)]
*/
        __pyx_t_10 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetNodes(__pyx_v_cygraph, __pyx_v_cynodes, (&__pyx_v_numNodes)); if (unlikely(__pyx_t_10 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28677, __pyx_L9_error)
        __pyx_v_err = __pyx_t_10;
      }

      /* "cuda/bindings/runtime.pyx":28676
 *         if cynodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphGetNodes(cygraph, cynodes, &numNodes)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L10;
        }
        __pyx_L9_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L10:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28678
 *     with nogil:
 *         err = cyruntime.cudaGraphGetNodes(cygraph, cynodes, &numNodes)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pynodes = [cudaGraphNode_t(init_value=<void_ptr>cynodes[idx]) for idx in range(_graph_length)]
 *     if cynodes is not NULL:
*/
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_7);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_9};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_7 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28678, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28678, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28679
 *         err = cyruntime.cudaGraphGetNodes(cygraph, cynodes, &numNodes)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pynodes = [cudaGraphNode_t(init_value=<void_ptr>cynodes[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cynodes is not NULL:
 *         free(cynodes)
*/
    { /* enter inner scope */
      __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28679, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr256__pyx_v_idx = __pyx_t_12;
        __pyx_t_4 = NULL;
        __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cynodes[__pyx_10genexpr256__pyx_v_idx]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28679, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, NULL};
          __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28679, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_9, __pyx_t_8, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28679, __pyx_L1_error)
          __pyx_t_3 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28679, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_3);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 28679, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pynodes, ((PyObject*)__pyx_t_7));
    __pyx_t_7 = 0;

    /* "cuda/bindings/runtime.pyx":28678
 *     with nogil:
 *         err = cyruntime.cudaGraphGetNodes(cygraph, cynodes, &numNodes)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pynodes = [cudaGraphNode_t(init_value=<void_ptr>cynodes[idx]) for idx in range(_graph_length)]
 *     if cynodes is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28680
 *     if cudaError_t(err) == cudaError_t(0):
 *         pynodes = [cudaGraphNode_t(init_value=<void_ptr>cynodes[idx]) for idx in range(_graph_length)]
 *     if cynodes is not NULL:             # <<<<<<<<<<<<<<
 *         free(cynodes)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_1 = (__pyx_v_cynodes != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28681
 *         pynodes = [cudaGraphNode_t(init_value=<void_ptr>cynodes[idx]) for idx in range(_graph_length)]
 *     if cynodes is not NULL:
 *         free(cynodes)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
    free(__pyx_v_cynodes);

    /* "cuda/bindings/runtime.pyx":28680
 *     if cudaError_t(err) == cudaError_t(0):
 *         pynodes = [cudaGraphNode_t(init_value=<void_ptr>cynodes[idx]) for idx in range(_graph_length)]
 *     if cynodes is not NULL:             # <<<<<<<<<<<<<<
 *         free(cynodes)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":28682
 *     if cynodes is not NULL:
 *         free(cynodes)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pynodes, numNodes)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28683
 *         free(cynodes)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pynodes, numNodes)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28683, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28683, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, Py_None) != (0)) __PYX_ERR(0, 28683, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28682
 *     if cynodes is not NULL:
 *         free(cynodes)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pynodes, numNodes)
*/
  }

  /* "cuda/bindings/runtime.pyx":28684
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pynodes, numNodes)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_FromSize_t(__pyx_v_numNodes); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 28684, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pynodes);
  __Pyx_GIVEREF(__pyx_v_pynodes);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pynodes) != (0)) __PYX_ERR(0, 28684, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_8) != (0)) __PYX_ERR(0, 28684, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28630
 *     return (_dict_cudaError_t[err], graphID)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetNodes(graph, size_t numNodes = 0):
 *     """ Returns a graph's nodes.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphGetNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF(__pyx_v_pynodes);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28686
 *     return (_dict_cudaError_t[err], pynodes, numNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0):
 *     """ Returns a graph's root nodes.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_485cudaGraphGetRootNodes(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_7runtime_484cudaGraphGetRootNodes, "cudaGraphGetRootNodes(graph, size_t pNumRootNodes=0)\n\nReturns a graph's root nodes.\n\nReturns a list of `graph's` root nodes. `pRootNodes` may be NULL, in\nwhich case this function will return the number of root nodes in\n`pNumRootNodes`. Otherwise, `pNumRootNodes` entries will be filled in.\nIf `pNumRootNodes` is higher than the actual number of root nodes, the\nremaining entries in `pRootNodes` will be set to NULL, and the number\nof nodes actually obtained will be returned in `pNumRootNodes`.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to query\npNumRootNodes : int\n    See description\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npRootNodes : list[:py:obj:`~.cudaGraphNode_t`]\n    Pointer to return the root nodes\npNumRootNodes : int\n    See description\n\nSee Also\n--------\n:py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetType`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_485cudaGraphGetRootNodes = {"cudaGraphGetRootNodes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_485cudaGraphGetRootNodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_484cudaGraphGetRootNodes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_485cudaGraphGetRootNodes(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_graph = 0;
  size_t __pyx_v_pNumRootNodes;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphGetRootNodes (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pNumRootNodes,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, 28686, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28686, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28686, __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, "cudaGraphGetRootNodes", 0) < (0)) __PYX_ERR(0, 28686, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphGetRootNodes", 0, 1, 2, i); __PYX_ERR(0, 28686, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28686, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28686, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_graph = values[0];
    if (values[1]) {
      __pyx_v_pNumRootNodes = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_pNumRootNodes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28687, __pyx_L3_error)
    } else {
      __pyx_v_pNumRootNodes = ((size_t)((size_t)0));
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphGetRootNodes", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 28686, __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.runtime.cudaGraphGetRootNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_484cudaGraphGetRootNodes(__pyx_self, __pyx_v_graph, __pyx_v_pNumRootNodes);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_484cudaGraphGetRootNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_pNumRootNodes) {
  size_t __pyx_v__graph_length;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaGraphNode_t *__pyx_v_cypRootNodes;
  PyObject *__pyx_v_pypRootNodes = NULL;
  cudaError_t __pyx_v_err;
  size_t __pyx_10genexpr257__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  cudaError_t __pyx_t_10;
  size_t __pyx_t_11;
  size_t __pyx_t_12;
  size_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphGetRootNodes", 0);

  /* "cuda/bindings/runtime.pyx":28717
 *     :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetType`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`
 *     """
 *     cdef size_t _graph_length = pNumRootNodes             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
  __pyx_v__graph_length = __pyx_v_pNumRootNodes;

  /* "cuda/bindings/runtime.pyx":28719
 *     cdef size_t _graph_length = pNumRootNodes
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28720
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28719
 *     cdef size_t _graph_length = pNumRootNodes
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28721
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28722
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28722, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28721
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28724
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cypRootNodes = NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28724, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28724, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28725
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypRootNodes = NULL
 *     pypRootNodes = []
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28725, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28726
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cypRootNodes = NULL             # <<<<<<<<<<<<<<
 *     pypRootNodes = []
 *     if _graph_length != 0:
*/
  __pyx_v_cypRootNodes = NULL;

  /* "cuda/bindings/runtime.pyx":28727
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cypRootNodes = NULL
 *     pypRootNodes = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cypRootNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pypRootNodes = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28728
 *     cdef cyruntime.cudaGraphNode_t* cypRootNodes = NULL
 *     pypRootNodes = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cypRootNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypRootNodes is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28729
 *     pypRootNodes = []
 *     if _graph_length != 0:
 *         cypRootNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypRootNodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_v_cypRootNodes = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":28730
 *     if _graph_length != 0:
 *         cypRootNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypRootNodes is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:
*/
    __pyx_t_1 = (__pyx_v_cypRootNodes == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28731
 *         cypRootNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypRootNodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphGetRootNodes(cygraph, cypRootNodes, &pNumRootNodes)
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28731, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28731, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28731, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28731, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28731, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28731, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28731, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28731, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28731, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28730
 *     if _graph_length != 0:
 *         cypRootNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypRootNodes is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:
*/
    }

    /* "cuda/bindings/runtime.pyx":28728
 *     cdef cyruntime.cudaGraphNode_t* cypRootNodes = NULL
 *     pypRootNodes = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cypRootNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypRootNodes is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28732
 *         if cypRootNodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphGetRootNodes(cygraph, cypRootNodes, &pNumRootNodes)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28733
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:
 *         err = cyruntime.cudaGraphGetRootNodes(cygraph, cypRootNodes, &pNumRootNodes)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypRootNodes = [cudaGraphNode_t(init_value=<void_ptr>cypRootNodes[idx]) for idx in range(_graph_length)]
*/
        __pyx_t_10 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetRootNodes(__pyx_v_cygraph, __pyx_v_cypRootNodes, (&__pyx_v_pNumRootNodes)); if (unlikely(__pyx_t_10 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28733, __pyx_L9_error)
        __pyx_v_err = __pyx_t_10;
      }

      /* "cuda/bindings/runtime.pyx":28732
 *         if cypRootNodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphGetRootNodes(cygraph, cypRootNodes, &pNumRootNodes)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L10;
        }
        __pyx_L9_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L10:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28734
 *     with nogil:
 *         err = cyruntime.cudaGraphGetRootNodes(cygraph, cypRootNodes, &pNumRootNodes)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pypRootNodes = [cudaGraphNode_t(init_value=<void_ptr>cypRootNodes[idx]) for idx in range(_graph_length)]
 *     if cypRootNodes is not NULL:
*/
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_7);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_9};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_7 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28734, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28734, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28735
 *         err = cyruntime.cudaGraphGetRootNodes(cygraph, cypRootNodes, &pNumRootNodes)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypRootNodes = [cudaGraphNode_t(init_value=<void_ptr>cypRootNodes[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cypRootNodes is not NULL:
 *         free(cypRootNodes)
*/
    { /* enter inner scope */
      __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28735, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr257__pyx_v_idx = __pyx_t_12;
        __pyx_t_4 = NULL;
        __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cypRootNodes[__pyx_10genexpr257__pyx_v_idx]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28735, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, NULL};
          __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28735, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_9, __pyx_t_8, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28735, __pyx_L1_error)
          __pyx_t_3 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28735, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_3);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 28735, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pypRootNodes, ((PyObject*)__pyx_t_7));
    __pyx_t_7 = 0;

    /* "cuda/bindings/runtime.pyx":28734
 *     with nogil:
 *         err = cyruntime.cudaGraphGetRootNodes(cygraph, cypRootNodes, &pNumRootNodes)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pypRootNodes = [cudaGraphNode_t(init_value=<void_ptr>cypRootNodes[idx]) for idx in range(_graph_length)]
 *     if cypRootNodes is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28736
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypRootNodes = [cudaGraphNode_t(init_value=<void_ptr>cypRootNodes[idx]) for idx in range(_graph_length)]
 *     if cypRootNodes is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypRootNodes)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_1 = (__pyx_v_cypRootNodes != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28737
 *         pypRootNodes = [cudaGraphNode_t(init_value=<void_ptr>cypRootNodes[idx]) for idx in range(_graph_length)]
 *     if cypRootNodes is not NULL:
 *         free(cypRootNodes)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
    free(__pyx_v_cypRootNodes);

    /* "cuda/bindings/runtime.pyx":28736
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypRootNodes = [cudaGraphNode_t(init_value=<void_ptr>cypRootNodes[idx]) for idx in range(_graph_length)]
 *     if cypRootNodes is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypRootNodes)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":28738
 *     if cypRootNodes is not NULL:
 *         free(cypRootNodes)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pypRootNodes, pNumRootNodes)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28739
 *         free(cypRootNodes)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pypRootNodes, pNumRootNodes)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28739, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28739, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28739, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28739, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28739, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 28739, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, Py_None) != (0)) __PYX_ERR(0, 28739, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28738
 *     if cypRootNodes is not NULL:
 *         free(cypRootNodes)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pypRootNodes, pNumRootNodes)
*/
  }

  /* "cuda/bindings/runtime.pyx":28740
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pypRootNodes, pNumRootNodes)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_FromSize_t(__pyx_v_pNumRootNodes); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 28740, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pypRootNodes);
  __Pyx_GIVEREF(__pyx_v_pypRootNodes);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pypRootNodes) != (0)) __PYX_ERR(0, 28740, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_8) != (0)) __PYX_ERR(0, 28740, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28686
 *     return (_dict_cudaError_t[err], pynodes, numNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0):
 *     """ Returns a graph's root nodes.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphGetRootNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF(__pyx_v_pypRootNodes);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28742
 *     return (_dict_cudaError_t[err], pypRootNodes, pNumRootNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetEdges(graph, size_t numEdges = 0):
 *     """ Returns a graph's dependency edges.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_487cudaGraphGetEdges(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_7runtime_486cudaGraphGetEdges, "cudaGraphGetEdges(graph, size_t numEdges=0)\n\nReturns a graph's dependency edges.\n\nReturns a list of `graph's` dependency edges. Edges are returned via\ncorresponding indices in `from`, `to` and `edgeData`; that is, the node\nin `to`[i] has a dependency on the node in `from`[i] with data\n`edgeData`[i]. `from` and `to` may both be NULL, in which case this\nfunction only returns the number of edges in `numEdges`. Otherwise,\n`numEdges` entries will be filled in. If `numEdges` is higher than the\nactual number of edges, the remaining entries in `from` and `to` will\nbe set to NULL, and the number of edges actually returned will be\nwritten to `numEdges`. `edgeData` may alone be NULL, in which case the\nedges must all have default (zeroed) edge data. Attempting a losst\nquery via NULL `edgeData` will result in\n:py:obj:`~.cudaErrorLossyQuery`. If `edgeData` is non-NULL then `from`\nand `to` must be as well.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to get the edges from\nnumEdges : int\n    See description\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue`\nfrom : list[:py:obj:`~.cudaGraphNode_t`]\n    Location to return edge endpoints\nto : list[:py:obj:`~.cudaGraphNode_t`]\n    Location to return edge endpoints\nedgeData : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional location to return edge data\nnumEdges : int\n    See description\n\nSee Also\n--------\n:py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_487cudaGraphGetEdges = {"cudaGraphGetEdges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_487cudaGraphGetEdges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_486cudaGraphGetEdges};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_487cudaGraphGetEdges(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_graph = 0;
  size_t __pyx_v_numEdges;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphGetEdges (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_graph_2,&__pyx_mstate_global->__pyx_n_u_numEdges,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, 28742, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28742, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28742, __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, "cudaGraphGetEdges", 0) < (0)) __PYX_ERR(0, 28742, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphGetEdges", 0, 1, 2, i); __PYX_ERR(0, 28742, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28742, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28742, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_graph = values[0];
    if (values[1]) {
      __pyx_v_numEdges = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_numEdges == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28743, __pyx_L3_error)
    } else {
      __pyx_v_numEdges = ((size_t)((size_t)0));
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphGetEdges", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 28742, __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.runtime.cudaGraphGetEdges", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_486cudaGraphGetEdges(__pyx_self, __pyx_v_graph, __pyx_v_numEdges);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_486cudaGraphGetEdges(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, size_t __pyx_v_numEdges) {
  size_t __pyx_v__graph_length;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaGraphNode_t *__pyx_v_cyfrom_;
  PyObject *__pyx_v_pyfrom_ = NULL;
  cudaGraphNode_t *__pyx_v_cyto;
  PyObject *__pyx_v_pyto = NULL;
  cudaGraphEdgeData *__pyx_v_cyedgeData;
  PyObject *__pyx_v_pyedgeData = NULL;
  cudaError_t __pyx_v_err;
  size_t __pyx_10genexpr258__pyx_v_idx;
  size_t __pyx_10genexpr259__pyx_v_idx;
  size_t __pyx_10genexpr260__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  cudaError_t __pyx_t_10;
  size_t __pyx_t_11;
  size_t __pyx_t_12;
  size_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphGetEdges", 0);

  /* "cuda/bindings/runtime.pyx":28784
 *     :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`
 *     """
 *     cdef size_t _graph_length = numEdges             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
  __pyx_v__graph_length = __pyx_v_numEdges;

  /* "cuda/bindings/runtime.pyx":28786
 *     cdef size_t _graph_length = numEdges
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28787
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28786
 *     cdef size_t _graph_length = numEdges
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28788
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28789
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28788
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28791
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28791, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28792
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     pyfrom_ = []
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28792, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28793
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL             # <<<<<<<<<<<<<<
 *     pyfrom_ = []
 *     if _graph_length != 0:
*/
  __pyx_v_cyfrom_ = NULL;

  /* "cuda/bindings/runtime.pyx":28794
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     pyfrom_ = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pyfrom_ = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28795
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     pyfrom_ = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28796
 *     pyfrom_ = []
 *     if _graph_length != 0:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cyfrom_ is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_v_cyfrom_ = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":28797
 *     if _graph_length != 0:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
*/
    __pyx_t_1 = (__pyx_v_cyfrom_ == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28798
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     pyto = []
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28798, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28798, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28798, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28798, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28798, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28798, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28798, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28798, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28798, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28797
 *     if _graph_length != 0:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
*/
    }

    /* "cuda/bindings/runtime.pyx":28795
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     pyfrom_ = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28799
 *         if cyfrom_ is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL             # <<<<<<<<<<<<<<
 *     pyto = []
 *     if _graph_length != 0:
*/
  __pyx_v_cyto = NULL;

  /* "cuda/bindings/runtime.pyx":28800
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     pyto = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cyto = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pyto = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28801
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     pyto = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28802
 *     pyto = []
 *     if _graph_length != 0:
 *         cyto = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cyto is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_v_cyto = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":28803
 *     if _graph_length != 0:
 *         cyto = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
    __pyx_t_1 = (__pyx_v_cyto == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28804
 *         cyto = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
*/
      __pyx_t_7 = NULL;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28804, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_3};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28804, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28804, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28803
 *     if _graph_length != 0:
 *         cyto = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
    }

    /* "cuda/bindings/runtime.pyx":28801
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     pyto = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28805
 *         if cyto is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL             # <<<<<<<<<<<<<<
 *     pyedgeData = []
 *     if _graph_length != 0:
*/
  __pyx_v_cyedgeData = NULL;

  /* "cuda/bindings/runtime.pyx":28806
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28806, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pyedgeData = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28807
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28808
 *     pyedgeData = []
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
*/
    __pyx_v_cyedgeData = ((cudaGraphEdgeData *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphEdgeData))));

    /* "cuda/bindings/runtime.pyx":28809
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
*/
    __pyx_t_1 = (__pyx_v_cyedgeData == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28810
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphGetEdges(cygraph, cyfrom_, cyto, cyedgeData, &numEdges)
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28810, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28810, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28809
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
*/
    }

    /* "cuda/bindings/runtime.pyx":28807
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28811
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphGetEdges(cygraph, cyfrom_, cyto, cyedgeData, &numEdges)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28812
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
 *         err = cyruntime.cudaGraphGetEdges(cygraph, cyfrom_, cyto, cyedgeData, &numEdges)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyfrom_ = [cudaGraphNode_t(init_value=<void_ptr>cyfrom_[idx]) for idx in range(_graph_length)]
*/
        __pyx_t_10 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetEdges(__pyx_v_cygraph, __pyx_v_cyfrom_, __pyx_v_cyto, __pyx_v_cyedgeData, (&__pyx_v_numEdges)); if (unlikely(__pyx_t_10 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28812, __pyx_L13_error)
        __pyx_v_err = __pyx_t_10;
      }

      /* "cuda/bindings/runtime.pyx":28811
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphGetEdges(cygraph, cyfrom_, cyto, cyedgeData, &numEdges)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28813
 *     with nogil:
 *         err = cyruntime.cudaGraphGetEdges(cygraph, cyfrom_, cyto, cyedgeData, &numEdges)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyfrom_ = [cudaGraphNode_t(init_value=<void_ptr>cyfrom_[idx]) for idx in range(_graph_length)]
 *     if cyfrom_ is not NULL:
*/
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_7);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_9};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28813, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28813, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_7 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28813, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28813, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28814
 *         err = cyruntime.cudaGraphGetEdges(cygraph, cyfrom_, cyto, cyedgeData, &numEdges)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyfrom_ = [cudaGraphNode_t(init_value=<void_ptr>cyfrom_[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cyfrom_ is not NULL:
 *         free(cyfrom_)
*/
    { /* enter inner scope */
      __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28814, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr258__pyx_v_idx = __pyx_t_12;
        __pyx_t_4 = NULL;
        __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cyfrom_[__pyx_10genexpr258__pyx_v_idx]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28814, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, NULL};
          __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28814, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_9, __pyx_t_8, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28814, __pyx_L1_error)
          __pyx_t_3 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28814, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_3);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 28814, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pyfrom_, ((PyObject*)__pyx_t_7));
    __pyx_t_7 = 0;

    /* "cuda/bindings/runtime.pyx":28813
 *     with nogil:
 *         err = cyruntime.cudaGraphGetEdges(cygraph, cyfrom_, cyto, cyedgeData, &numEdges)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyfrom_ = [cudaGraphNode_t(init_value=<void_ptr>cyfrom_[idx]) for idx in range(_graph_length)]
 *     if cyfrom_ is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28815
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyfrom_ = [cudaGraphNode_t(init_value=<void_ptr>cyfrom_[idx]) for idx in range(_graph_length)]
 *     if cyfrom_ is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyfrom_)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  __pyx_t_1 = (__pyx_v_cyfrom_ != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28816
 *         pyfrom_ = [cudaGraphNode_t(init_value=<void_ptr>cyfrom_[idx]) for idx in range(_graph_length)]
 *     if cyfrom_ is not NULL:
 *         free(cyfrom_)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyto = [cudaGraphNode_t(init_value=<void_ptr>cyto[idx]) for idx in range(_graph_length)]
*/
    free(__pyx_v_cyfrom_);

    /* "cuda/bindings/runtime.pyx":28815
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyfrom_ = [cudaGraphNode_t(init_value=<void_ptr>cyfrom_[idx]) for idx in range(_graph_length)]
 *     if cyfrom_ is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyfrom_)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  }

  /* "cuda/bindings/runtime.pyx":28817
 *     if cyfrom_ is not NULL:
 *         free(cyfrom_)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyto = [cudaGraphNode_t(init_value=<void_ptr>cyto[idx]) for idx in range(_graph_length)]
 *     if cyto is not NULL:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_9};
    __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __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;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28817, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28817, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_7, __pyx_t_8, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28817, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28817, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28818
 *         free(cyfrom_)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyto = [cudaGraphNode_t(init_value=<void_ptr>cyto[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cyto is not NULL:
 *         free(cyto)
*/
    { /* enter inner scope */
      __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28818, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr259__pyx_v_idx = __pyx_t_12;
        __pyx_t_7 = NULL;
        __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cyto[__pyx_10genexpr259__pyx_v_idx]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28818, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, NULL};
          __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28818, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_9, __pyx_t_4, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28818, __pyx_L1_error)
          __pyx_t_8 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28818, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_8);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 28818, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_8); __pyx_t_8 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pyto, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28817
 *     if cyfrom_ is not NULL:
 *         free(cyfrom_)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyto = [cudaGraphNode_t(init_value=<void_ptr>cyto[idx]) for idx in range(_graph_length)]
 *     if cyto is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28819
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyto = [cudaGraphNode_t(init_value=<void_ptr>cyto[idx]) for idx in range(_graph_length)]
 *     if cyto is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyto)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  __pyx_t_1 = (__pyx_v_cyto != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28820
 *         pyto = [cudaGraphNode_t(init_value=<void_ptr>cyto[idx]) for idx in range(_graph_length)]
 *     if cyto is not NULL:
 *         free(cyto)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
*/
    free(__pyx_v_cyto);

    /* "cuda/bindings/runtime.pyx":28819
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyto = [cudaGraphNode_t(init_value=<void_ptr>cyto[idx]) for idx in range(_graph_length)]
 *     if cyto is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyto)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  }

  /* "cuda/bindings/runtime.pyx":28821
 *     if cyto is not NULL:
 *         free(cyto)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
*/
  __pyx_t_8 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_8);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_8);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_9};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28821, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28821, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_8 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28821, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28821, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28822
 *         free(cyto)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
*/
    { /* enter inner scope */
      __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28822, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr260__pyx_v_idx = __pyx_t_12;
        __pyx_t_3 = NULL;
        __pyx_t_9 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_cyedgeData[__pyx_10genexpr260__pyx_v_idx])))); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28822, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
          __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28822, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_9, __pyx_t_7, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28822, __pyx_L1_error)
          __pyx_t_4 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28822, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_4);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_4))) __PYX_ERR(0, 28822, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pyedgeData, ((PyObject*)__pyx_t_8));
    __pyx_t_8 = 0;

    /* "cuda/bindings/runtime.pyx":28821
 *     if cyto is not NULL:
 *         free(cyto)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28823
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_1 = (__pyx_v_cyedgeData != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28824
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None, None)
*/
    free(__pyx_v_cyedgeData);

    /* "cuda/bindings/runtime.pyx":28823
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":28825
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None, None)
 *     return (_dict_cudaError_t[err], pyfrom_, pyto, pyedgeData, numEdges)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28826
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pyfrom_, pyto, pyedgeData, numEdges)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 28826, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 28826, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None) != (0)) __PYX_ERR(0, 28826, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 3, Py_None) != (0)) __PYX_ERR(0, 28826, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None) != (0)) __PYX_ERR(0, 28826, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28825
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None, None)
 *     return (_dict_cudaError_t[err], pyfrom_, pyto, pyedgeData, numEdges)
*/
  }

  /* "cuda/bindings/runtime.pyx":28827
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None, None)
 *     return (_dict_cudaError_t[err], pyfrom_, pyto, pyedgeData, numEdges)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_FromSize_t(__pyx_v_numEdges); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 28827, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pyfrom_);
  __Pyx_GIVEREF(__pyx_v_pyfrom_);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_pyfrom_) != (0)) __PYX_ERR(0, 28827, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pyto);
  __Pyx_GIVEREF(__pyx_v_pyto);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_pyto) != (0)) __PYX_ERR(0, 28827, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pyedgeData);
  __Pyx_GIVEREF(__pyx_v_pyedgeData);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_v_pyedgeData) != (0)) __PYX_ERR(0, 28827, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_t_7) != (0)) __PYX_ERR(0, 28827, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28742
 *     return (_dict_cudaError_t[err], pypRootNodes, pNumRootNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetEdges(graph, size_t numEdges = 0):
 *     """ Returns a graph's dependency edges.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphGetEdges", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF(__pyx_v_pyfrom_);
  __Pyx_XDECREF(__pyx_v_pyto);
  __Pyx_XDECREF(__pyx_v_pyedgeData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28829
 *     return (_dict_cudaError_t[err], pyfrom_, pyto, pyedgeData, numEdges)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0):
 *     """ Returns a node's dependencies.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_489cudaGraphNodeGetDependencies(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_7runtime_488cudaGraphNodeGetDependencies, "cudaGraphNodeGetDependencies(node, size_t pNumDependencies=0)\n\nReturns a node's dependencies.\n\nReturns a list of `node's` dependencies. `pDependencies` may be NULL,\nin which case this function will return the number of dependencies in\n`pNumDependencies`. Otherwise, `pNumDependencies` entries will be\nfilled in. If `pNumDependencies` is higher than the actual number of\ndependencies, the remaining entries in `pDependencies` will be set to\nNULL, and the number of nodes actually obtained will be returned in\n`pNumDependencies`.\n\nNote that if an edge has non-zero (non-default) edge data and\n`edgeData` is NULL, this API will return\n:py:obj:`~.cudaErrorLossyQuery`. If `edgeData` is non-NULL, then\n`pDependencies` must be as well.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to query\npNumDependencies : int\n    See description\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue`\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Pointer to return the dependencies\nedgeData : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional array to return edge data for each dependency\npNumDependencies : int\n    See description\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeGetDependentNodes`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_489cudaGraphNodeGetDependencies = {"cudaGraphNodeGetDependencies", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_489cudaGraphNodeGetDependencies, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_488cudaGraphNodeGetDependencies};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_489cudaGraphNodeGetDependencies(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_node = 0;
  size_t __pyx_v_pNumDependencies;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphNodeGetDependencies (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_node_2,&__pyx_mstate_global->__pyx_n_u_pNumDependencies,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, 28829, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28829, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28829, __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, "cudaGraphNodeGetDependencies", 0) < (0)) __PYX_ERR(0, 28829, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetDependencies", 0, 1, 2, i); __PYX_ERR(0, 28829, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28829, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28829, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_node = values[0];
    if (values[1]) {
      __pyx_v_pNumDependencies = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_pNumDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28830, __pyx_L3_error)
    } else {
      __pyx_v_pNumDependencies = ((size_t)((size_t)0));
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetDependencies", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 28829, __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.runtime.cudaGraphNodeGetDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_488cudaGraphNodeGetDependencies(__pyx_self, __pyx_v_node, __pyx_v_pNumDependencies);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_488cudaGraphNodeGetDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, size_t __pyx_v_pNumDependencies) {
  size_t __pyx_v__graph_length;
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  PyObject *__pyx_v_pypDependencies = NULL;
  cudaGraphEdgeData *__pyx_v_cyedgeData;
  PyObject *__pyx_v_pyedgeData = NULL;
  cudaError_t __pyx_v_err;
  size_t __pyx_10genexpr261__pyx_v_idx;
  size_t __pyx_10genexpr262__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  cudaError_t __pyx_t_10;
  size_t __pyx_t_11;
  size_t __pyx_t_12;
  size_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeGetDependencies", 0);

  /* "cuda/bindings/runtime.pyx":28868
 *     :py:obj:`~.cudaGraphNodeGetDependentNodes`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`
 *     """
 *     cdef size_t _graph_length = pNumDependencies             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
*/
  __pyx_v__graph_length = __pyx_v_pNumDependencies;

  /* "cuda/bindings/runtime.pyx":28870
 *     cdef size_t _graph_length = pNumDependencies
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28871
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28870
 *     cdef size_t _graph_length = pNumDependencies
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28872
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28873
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28873, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28872
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28875
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28875, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28875, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28876
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     pypDependencies = []
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28876, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28877
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     pypDependencies = []
 *     if _graph_length != 0:
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":28878
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     pypDependencies = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pypDependencies = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28879
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     pypDependencies = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28880
 *     pypDependencies = []
 *     if _graph_length != 0:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":28881
 *     if _graph_length != 0:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
    __pyx_t_1 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28882
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28882, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28882, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28881
 *     if _graph_length != 0:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
    }

    /* "cuda/bindings/runtime.pyx":28879
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     pypDependencies = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28883
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL             # <<<<<<<<<<<<<<
 *     pyedgeData = []
 *     if _graph_length != 0:
*/
  __pyx_v_cyedgeData = NULL;

  /* "cuda/bindings/runtime.pyx":28884
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pyedgeData = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28885
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28886
 *     pyedgeData = []
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
*/
    __pyx_v_cyedgeData = ((cudaGraphEdgeData *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphEdgeData))));

    /* "cuda/bindings/runtime.pyx":28887
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
*/
    __pyx_t_1 = (__pyx_v_cyedgeData == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28888
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetDependencies(cynode, cypDependencies, cyedgeData, &pNumDependencies)
*/
      __pyx_t_7 = NULL;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28888, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_3};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28888, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28888, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28887
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
*/
    }

    /* "cuda/bindings/runtime.pyx":28885
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28889
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetDependencies(cynode, cypDependencies, cyedgeData, &pNumDependencies)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28890
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetDependencies(cynode, cypDependencies, cyedgeData, &pNumDependencies)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypDependencies = [cudaGraphNode_t(init_value=<void_ptr>cypDependencies[idx]) for idx in range(_graph_length)]
*/
        __pyx_t_10 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetDependencies(__pyx_v_cynode, __pyx_v_cypDependencies, __pyx_v_cyedgeData, (&__pyx_v_pNumDependencies)); if (unlikely(__pyx_t_10 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28890, __pyx_L11_error)
        __pyx_v_err = __pyx_t_10;
      }

      /* "cuda/bindings/runtime.pyx":28889
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetDependencies(cynode, cypDependencies, cyedgeData, &pNumDependencies)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L12;
        }
        __pyx_L11_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L12:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28891
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetDependencies(cynode, cypDependencies, cyedgeData, &pNumDependencies)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pypDependencies = [cudaGraphNode_t(init_value=<void_ptr>cypDependencies[idx]) for idx in range(_graph_length)]
 *     if cypDependencies is not NULL:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __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_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28891, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_8 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_8);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_8);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28891, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28891, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28891, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28892
 *         err = cyruntime.cudaGraphNodeGetDependencies(cynode, cypDependencies, cyedgeData, &pNumDependencies)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypDependencies = [cudaGraphNode_t(init_value=<void_ptr>cypDependencies[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cypDependencies is not NULL:
 *         free(cypDependencies)
*/
    { /* enter inner scope */
      __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr261__pyx_v_idx = __pyx_t_12;
        __pyx_t_4 = NULL;
        __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cypDependencies[__pyx_10genexpr261__pyx_v_idx]))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28892, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, NULL};
          __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28892, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_8, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28892, __pyx_L1_error)
          __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28892, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_7);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 28892, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pypDependencies, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28891
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetDependencies(cynode, cypDependencies, cyedgeData, &pNumDependencies)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pypDependencies = [cudaGraphNode_t(init_value=<void_ptr>cypDependencies[idx]) for idx in range(_graph_length)]
 *     if cypDependencies is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28893
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypDependencies = [cudaGraphNode_t(init_value=<void_ptr>cypDependencies[idx]) for idx in range(_graph_length)]
 *     if cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  __pyx_t_1 = (__pyx_v_cypDependencies != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28894
 *         pypDependencies = [cudaGraphNode_t(init_value=<void_ptr>cypDependencies[idx]) for idx in range(_graph_length)]
 *     if cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":28893
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypDependencies = [cudaGraphNode_t(init_value=<void_ptr>cypDependencies[idx]) for idx in range(_graph_length)]
 *     if cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  }

  /* "cuda/bindings/runtime.pyx":28895
 *     if cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
*/
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_9))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9);
    assert(__pyx_t_7);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_8};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28895, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_8 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_8);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_8);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28895, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_7 = PyObject_RichCompare(__pyx_t_3, __pyx_t_9, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28895, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28895, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28896
 *         free(cypDependencies)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
*/
    { /* enter inner scope */
      __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28896, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr262__pyx_v_idx = __pyx_t_12;
        __pyx_t_3 = NULL;
        __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_cyedgeData[__pyx_10genexpr262__pyx_v_idx])))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28896, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
          __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28896, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_8, __pyx_t_4, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28896, __pyx_L1_error)
          __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28896, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_9);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 28896, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_9); __pyx_t_9 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pyedgeData, ((PyObject*)__pyx_t_7));
    __pyx_t_7 = 0;

    /* "cuda/bindings/runtime.pyx":28895
 *     if cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28897
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_1 = (__pyx_v_cyedgeData != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28898
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)
*/
    free(__pyx_v_cyedgeData);

    /* "cuda/bindings/runtime.pyx":28897
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":28899
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pypDependencies, pyedgeData, pNumDependencies)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28900
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pypDependencies, pyedgeData, pNumDependencies)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = PyTuple_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28900, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, Py_None) != (0)) __PYX_ERR(0, 28900, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, Py_None) != (0)) __PYX_ERR(0, 28900, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 3, Py_None) != (0)) __PYX_ERR(0, 28900, __pyx_L1_error);
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_9;
    __pyx_t_9 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28899
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pypDependencies, pyedgeData, pNumDependencies)
*/
  }

  /* "cuda/bindings/runtime.pyx":28901
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pypDependencies, pyedgeData, pNumDependencies)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_pNumDependencies); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = PyTuple_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 28901, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pypDependencies);
  __Pyx_GIVEREF(__pyx_v_pypDependencies);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_pypDependencies) != (0)) __PYX_ERR(0, 28901, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pyedgeData);
  __Pyx_GIVEREF(__pyx_v_pyedgeData);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_pyedgeData) != (0)) __PYX_ERR(0, 28901, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_4) != (0)) __PYX_ERR(0, 28901, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28829
 *     return (_dict_cudaError_t[err], pyfrom_, pyto, pyedgeData, numEdges)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0):
 *     """ Returns a node's dependencies.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeGetDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_pypDependencies);
  __Pyx_XDECREF(__pyx_v_pyedgeData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28903
 *     return (_dict_cudaError_t[err], pypDependencies, pyedgeData, pNumDependencies)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0):
 *     """ Returns a node's dependent nodes.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_491cudaGraphNodeGetDependentNodes(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_7runtime_490cudaGraphNodeGetDependentNodes, "cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes=0)\n\nReturns a node's dependent nodes.\n\nReturns a list of `node's` dependent nodes. `pDependentNodes` may be\nNULL, in which case this function will return the number of dependent\nnodes in `pNumDependentNodes`. Otherwise, `pNumDependentNodes` entries\nwill be filled in. If `pNumDependentNodes` is higher than the actual\nnumber of dependent nodes, the remaining entries in `pDependentNodes`\nwill be set to NULL, and the number of nodes actually obtained will be\nreturned in `pNumDependentNodes`.\n\nNote that if an edge has non-zero (non-default) edge data and\n`edgeData` is NULL, this API will return\n:py:obj:`~.cudaErrorLossyQuery`. If `edgeData` is non-NULL, then\n`pDependentNodes` must be as well.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to query\npNumDependentNodes : int\n    See description\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue`\npDependentNodes : list[:py:obj:`~.cudaGraphNode_t`]\n    Pointer to return the dependent nodes\nedgeData : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional pointer to return edge data for dependent nodes\npNumDependentNodes : int\n    See description\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_491cudaGraphNodeGetDependentNodes = {"cudaGraphNodeGetDependentNodes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_491cudaGraphNodeGetDependentNodes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_490cudaGraphNodeGetDependentNodes};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_491cudaGraphNodeGetDependentNodes(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_node = 0;
  size_t __pyx_v_pNumDependentNodes;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphNodeGetDependentNodes (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_node_2,&__pyx_mstate_global->__pyx_n_u_pNumDependentNodes,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, 28903, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28903, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28903, __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, "cudaGraphNodeGetDependentNodes", 0) < (0)) __PYX_ERR(0, 28903, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetDependentNodes", 0, 1, 2, i); __PYX_ERR(0, 28903, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28903, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28903, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_node = values[0];
    if (values[1]) {
      __pyx_v_pNumDependentNodes = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_pNumDependentNodes == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28904, __pyx_L3_error)
    } else {
      __pyx_v_pNumDependentNodes = ((size_t)((size_t)0));
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetDependentNodes", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 28903, __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.runtime.cudaGraphNodeGetDependentNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_490cudaGraphNodeGetDependentNodes(__pyx_self, __pyx_v_node, __pyx_v_pNumDependentNodes);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_490cudaGraphNodeGetDependentNodes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, size_t __pyx_v_pNumDependentNodes) {
  size_t __pyx_v__graph_length;
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphNode_t *__pyx_v_cypDependentNodes;
  PyObject *__pyx_v_pypDependentNodes = NULL;
  cudaGraphEdgeData *__pyx_v_cyedgeData;
  PyObject *__pyx_v_pyedgeData = NULL;
  cudaError_t __pyx_v_err;
  size_t __pyx_10genexpr263__pyx_v_idx;
  size_t __pyx_10genexpr264__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  cudaError_t __pyx_t_10;
  size_t __pyx_t_11;
  size_t __pyx_t_12;
  size_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeGetDependentNodes", 0);

  /* "cuda/bindings/runtime.pyx":28942
 *     :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphGetNodes`, :py:obj:`~.cudaGraphGetRootNodes`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphRemoveDependencies`
 *     """
 *     cdef size_t _graph_length = pNumDependentNodes             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
*/
  __pyx_v__graph_length = __pyx_v_pNumDependentNodes;

  /* "cuda/bindings/runtime.pyx":28944
 *     cdef size_t _graph_length = pNumDependentNodes
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28945
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":28944
 *     cdef size_t _graph_length = pNumDependentNodes
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28946
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28947
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28947, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28946
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":28949
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNode_t* cypDependentNodes = NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28949, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28949, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":28950
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependentNodes = NULL
 *     pypDependentNodes = []
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 28950, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":28951
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNode_t* cypDependentNodes = NULL             # <<<<<<<<<<<<<<
 *     pypDependentNodes = []
 *     if _graph_length != 0:
*/
  __pyx_v_cypDependentNodes = NULL;

  /* "cuda/bindings/runtime.pyx":28952
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNode_t* cypDependentNodes = NULL
 *     pypDependentNodes = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cypDependentNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pypDependentNodes = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28953
 *     cdef cyruntime.cudaGraphNode_t* cypDependentNodes = NULL
 *     pypDependentNodes = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cypDependentNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependentNodes is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28954
 *     pypDependentNodes = []
 *     if _graph_length != 0:
 *         cypDependentNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependentNodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_v_cypDependentNodes = ((cudaGraphNode_t *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":28955
 *     if _graph_length != 0:
 *         cypDependentNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependentNodes is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
    __pyx_t_1 = (__pyx_v_cypDependentNodes == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28956
 *         cypDependentNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependentNodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28956, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28956, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28956, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28956, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28956, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28956, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28956, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28956, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28956, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28955
 *     if _graph_length != 0:
 *         cypDependentNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependentNodes is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
    }

    /* "cuda/bindings/runtime.pyx":28953
 *     cdef cyruntime.cudaGraphNode_t* cypDependentNodes = NULL
 *     pypDependentNodes = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cypDependentNodes = <cyruntime.cudaGraphNode_t*>calloc(_graph_length, sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependentNodes is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28957
 *         if cypDependentNodes is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL             # <<<<<<<<<<<<<<
 *     pyedgeData = []
 *     if _graph_length != 0:
*/
  __pyx_v_cyedgeData = NULL;

  /* "cuda/bindings/runtime.pyx":28958
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []             # <<<<<<<<<<<<<<
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_pyedgeData = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28959
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
  __pyx_t_1 = (__pyx_v__graph_length != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28960
 *     pyedgeData = []
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
*/
    __pyx_v_cyedgeData = ((cudaGraphEdgeData *)calloc(__pyx_v__graph_length, (sizeof(cudaGraphEdgeData))));

    /* "cuda/bindings/runtime.pyx":28961
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
*/
    __pyx_t_1 = (__pyx_v_cyedgeData == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":28962
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetDependentNodes(cynode, cypDependentNodes, cyedgeData, &pNumDependentNodes)
*/
      __pyx_t_7 = NULL;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t(__pyx_v__graph_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_3};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28962, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 28962, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":28961
 *     if _graph_length != 0:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
*/
    }

    /* "cuda/bindings/runtime.pyx":28959
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     pyedgeData = []
 *     if _graph_length != 0:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*>calloc(_graph_length, sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28963
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetDependentNodes(cynode, cypDependentNodes, cyedgeData, &pNumDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":28964
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetDependentNodes(cynode, cypDependentNodes, cyedgeData, &pNumDependentNodes)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypDependentNodes = [cudaGraphNode_t(init_value=<void_ptr>cypDependentNodes[idx]) for idx in range(_graph_length)]
*/
        __pyx_t_10 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetDependentNodes(__pyx_v_cynode, __pyx_v_cypDependentNodes, __pyx_v_cyedgeData, (&__pyx_v_pNumDependentNodes)); if (unlikely(__pyx_t_10 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 28964, __pyx_L11_error)
        __pyx_v_err = __pyx_t_10;
      }

      /* "cuda/bindings/runtime.pyx":28963
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(_graph_length) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetDependentNodes(cynode, cypDependentNodes, cyedgeData, &pNumDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L12;
        }
        __pyx_L11_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L12:;
      }
  }

  /* "cuda/bindings/runtime.pyx":28965
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetDependentNodes(cynode, cypDependentNodes, cyedgeData, &pNumDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pypDependentNodes = [cudaGraphNode_t(init_value=<void_ptr>cypDependentNodes[idx]) for idx in range(_graph_length)]
 *     if cypDependentNodes is not NULL:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __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_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_8 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_8);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_8);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28965, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28965, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28966
 *         err = cyruntime.cudaGraphNodeGetDependentNodes(cynode, cypDependentNodes, cyedgeData, &pNumDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypDependentNodes = [cudaGraphNode_t(init_value=<void_ptr>cypDependentNodes[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cypDependentNodes is not NULL:
 *         free(cypDependentNodes)
*/
    { /* enter inner scope */
      __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28966, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr263__pyx_v_idx = __pyx_t_12;
        __pyx_t_4 = NULL;
        __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cypDependentNodes[__pyx_10genexpr263__pyx_v_idx]))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28966, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, NULL};
          __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28966, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_8, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28966, __pyx_L1_error)
          __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28966, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_7);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 28966, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_7); __pyx_t_7 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pypDependentNodes, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":28965
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetDependentNodes(cynode, cypDependentNodes, cyedgeData, &pNumDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pypDependentNodes = [cudaGraphNode_t(init_value=<void_ptr>cypDependentNodes[idx]) for idx in range(_graph_length)]
 *     if cypDependentNodes is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28967
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypDependentNodes = [cudaGraphNode_t(init_value=<void_ptr>cypDependentNodes[idx]) for idx in range(_graph_length)]
 *     if cypDependentNodes is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  __pyx_t_1 = (__pyx_v_cypDependentNodes != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28968
 *         pypDependentNodes = [cudaGraphNode_t(init_value=<void_ptr>cypDependentNodes[idx]) for idx in range(_graph_length)]
 *     if cypDependentNodes is not NULL:
 *         free(cypDependentNodes)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
*/
    free(__pyx_v_cypDependentNodes);

    /* "cuda/bindings/runtime.pyx":28967
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypDependentNodes = [cudaGraphNode_t(init_value=<void_ptr>cypDependentNodes[idx]) for idx in range(_graph_length)]
 *     if cypDependentNodes is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  }

  /* "cuda/bindings/runtime.pyx":28969
 *     if cypDependentNodes is not NULL:
 *         free(cypDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
*/
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_9))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_9);
    assert(__pyx_t_7);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_8};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_8 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_8);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_8);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_t_7 = PyObject_RichCompare(__pyx_t_3, __pyx_t_9, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28969, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 28969, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28970
 *         free(cypDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]             # <<<<<<<<<<<<<<
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
*/
    { /* enter inner scope */
      __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28970, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_5 = __pyx_v__graph_length;
      __pyx_t_11 = __pyx_t_5;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr264__pyx_v_idx = __pyx_t_12;
        __pyx_t_3 = NULL;
        __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(&(__pyx_v_cyedgeData[__pyx_10genexpr264__pyx_v_idx])))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 28970, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_13 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
          __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28970, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ptr_2, __pyx_t_8, __pyx_t_4, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 28970, __pyx_L1_error)
          __pyx_t_9 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28970, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_9);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 28970, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_9); __pyx_t_9 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pyedgeData, ((PyObject*)__pyx_t_7));
    __pyx_t_7 = 0;

    /* "cuda/bindings/runtime.pyx":28969
 *     if cypDependentNodes is not NULL:
 *         free(cypDependentNodes)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":28971
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_1 = (__pyx_v_cyedgeData != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28972
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)
*/
    free(__pyx_v_cyedgeData);

    /* "cuda/bindings/runtime.pyx":28971
 *     if cudaError_t(err) == cudaError_t(0):
 *         pyedgeData = [cudaGraphEdgeData(_ptr=<void_ptr>&cyedgeData[idx]) for idx in range(_graph_length)]
 *     if cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":28973
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pypDependentNodes, pyedgeData, pNumDependentNodes)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":28974
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pypDependentNodes, pyedgeData, pNumDependentNodes)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = PyTuple_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 28974, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, Py_None) != (0)) __PYX_ERR(0, 28974, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, Py_None) != (0)) __PYX_ERR(0, 28974, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 3, Py_None) != (0)) __PYX_ERR(0, 28974, __pyx_L1_error);
    __pyx_t_4 = 0;
    __pyx_r = __pyx_t_9;
    __pyx_t_9 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":28973
 *     if cyedgeData is not NULL:
 *         free(cyedgeData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pypDependentNodes, pyedgeData, pNumDependentNodes)
*/
  }

  /* "cuda/bindings/runtime.pyx":28975
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pypDependentNodes, pyedgeData, pNumDependentNodes)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 28975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyLong_FromSize_t(__pyx_v_pNumDependentNodes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = PyTuple_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 28975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 28975, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pypDependentNodes);
  __Pyx_GIVEREF(__pyx_v_pypDependentNodes);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_pypDependentNodes) != (0)) __PYX_ERR(0, 28975, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pyedgeData);
  __Pyx_GIVEREF(__pyx_v_pyedgeData);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_pyedgeData) != (0)) __PYX_ERR(0, 28975, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_4) != (0)) __PYX_ERR(0, 28975, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28903
 *     return (_dict_cudaError_t[err], pypDependencies, pyedgeData, pNumDependencies)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0):
 *     """ Returns a node's dependent nodes.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeGetDependentNodes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_pypDependentNodes);
  __Pyx_XDECREF(__pyx_v_pyedgeData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28977
 *     return (_dict_cudaError_t[err], pypDependentNodes, pyedgeData, pNumDependentNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies):
 *     """ Adds dependency edges to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_493cudaGraphAddDependencies(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_7runtime_492cudaGraphAddDependencies, "cudaGraphAddDependencies(graph, from_: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData: Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies)\n\nAdds dependency edges to a graph.\n\nThe number of dependencies to be added is defined by `numDependencies`\nElements in `pFrom` and `pTo` at corresponding indices define a\ndependency. Each node in `pFrom` and `pTo` must belong to `graph`.\n\nIf `numDependencies` is 0, elements in `pFrom` and `pTo` will be\nignored. Specifying an existing dependency will return an error.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which dependencies are added\nfrom : list[:py:obj:`~.cudaGraphNode_t`]\n    Array of nodes that provide the dependencies\nto : list[:py:obj:`~.cudaGraphNode_t`]\n    Array of dependent nodes\nedgeData : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional array of edge data. If NULL, default (zeroed) edge data is\n    assumed.\nnumDependencies : size_t\n    Number of dependencies to be added\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_493cudaGraphAddDependencies = {"cudaGraphAddDependencies", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_493cudaGraphAddDependencies, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_492cudaGraphAddDependencies};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_493cudaGraphAddDependencies(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_graph = 0;
  PyObject *__pyx_v_from_ = 0;
  PyObject *__pyx_v_to = 0;
  PyObject *__pyx_v_edgeData = 0;
  size_t __pyx_v_numDependencies;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddDependencies (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_graph_2,&__pyx_mstate_global->__pyx_n_u_from,&__pyx_mstate_global->__pyx_n_u_to,&__pyx_mstate_global->__pyx_n_u_edgeData,&__pyx_mstate_global->__pyx_n_u_numDependencies,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, 28977, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 28977, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 28977, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 28977, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28977, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 28977, __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, "cudaGraphAddDependencies", 0) < (0)) __PYX_ERR(0, 28977, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies", 1, 5, 5, i); __PYX_ERR(0, 28977, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 28977, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 28977, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 28977, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 28977, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 28977, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_from_ = values[1];
    __pyx_v_to = values[2];
    __pyx_v_edgeData = values[3];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 28978, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddDependencies", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 28977, __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.runtime.cudaGraphAddDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_492cudaGraphAddDependencies(__pyx_self, __pyx_v_graph, __pyx_v_from_, __pyx_v_to, __pyx_v_edgeData, __pyx_v_numDependencies);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_2generator125(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":29012
 *     """
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 29012, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_2generator125, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[125]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddDependencies_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 29012, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddDependencies.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_2generator125(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 29012, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 29012, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29012, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29012, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29012, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29012, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 29012, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_5generator126(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":29015
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 29015, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_5generator126, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[126]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddDependencies_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 29015, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddDependencies.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_5generator126(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 29015, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 29015, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29015, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29015, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29015, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29015, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29015, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 29015, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_8generator127(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":29018
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 29018, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_8generator127, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[127]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddDependencies_locals, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 29018, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddDependencies.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_8generator127(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 29018, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 29018, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29018, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29018, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29018, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29018, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29018, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 29018, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":28977
 *     return (_dict_cudaError_t[err], pypDependentNodes, pyedgeData, pNumDependentNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies):
 *     """ Adds dependency edges to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_492cudaGraphAddDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_from_, PyObject *__pyx_v_to, PyObject *__pyx_v_edgeData, size_t __pyx_v_numDependencies) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaGraphNode_t *__pyx_v_cyfrom_;
  Py_ssize_t __pyx_v_idx;
  cudaGraphNode_t *__pyx_v_cyto;
  cudaGraphEdgeData *__pyx_v_cyedgeData;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_2generator125 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_5generator126 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_8generator127 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaGraphEdgeData_st *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddDependencies", 0);
  __Pyx_INCREF(__pyx_v_from_);
  __Pyx_INCREF(__pyx_v_to);
  __Pyx_INCREF(__pyx_v_edgeData);

  /* "cuda/bindings/runtime.pyx":29011
 *     :py:obj:`~.cudaGraphRemoveDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`
 *     """
 *     edgeData = [] if edgeData is None else edgeData             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
*/
  __pyx_t_2 = (__pyx_v_edgeData == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29011, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_edgeData);
    __pyx_t_1 = __pyx_v_edgeData;
  }
  __Pyx_DECREF_SET(__pyx_v_edgeData, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":29012
 *     """
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_genexpr(NULL, __pyx_v_edgeData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 29012, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":29013
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")             # <<<<<<<<<<<<<<
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_edgeData_is_not_instanc};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29013, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 29013, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":29012
 *     """
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
*/
  }

  /* "cuda/bindings/runtime.pyx":29014
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_4 = (__pyx_v_to == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29014, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_to);
    __pyx_t_3 = __pyx_v_to;
  }
  __Pyx_DECREF_SET(__pyx_v_to, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":29015
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_3genexpr(NULL, __pyx_v_to); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 29015, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":29016
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_to_is_not_instance_of_t};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29016, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 29016, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":29015
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
*/
  }

  /* "cuda/bindings/runtime.pyx":29017
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_from_ == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29017, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_from_);
    __pyx_t_1 = __pyx_v_from_;
  }
  __Pyx_DECREF_SET(__pyx_v_from_, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":29018
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_6genexpr(NULL, __pyx_v_from_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 29018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":29019
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_from__is_not_instance_o};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29019, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 29019, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":29018
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":29021
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29022
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29021
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29023
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29024
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29023
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29026
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29026, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":29027
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     if len(from_) > 1:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29027, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29028
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL             # <<<<<<<<<<<<<<
 *     if len(from_) > 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cyfrom_ = NULL;

  /* "cuda/bindings/runtime.pyx":29029
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     if len(from_) > 1:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29029, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29030
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     if len(from_) > 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cyfrom_ is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29030, __pyx_L1_error)
    __pyx_v_cyfrom_ = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":29031
 *     if len(from_) > 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cyfrom_ == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":29032
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(from_)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29032, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 29032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29032, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29032, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 29032, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":29031
 *     if len(from_) > 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":29034
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(from_)):             # <<<<<<<<<<<<<<
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]
 *     elif len(from_) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29034, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":29035
 *         else:
 *             for idx in range(len(from_)):
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(from_) == 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_from_, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29035, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cyfrom_[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":29029
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     if len(from_) > 1:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
*/
    goto __pyx_L9;
  }

  /* "cuda/bindings/runtime.pyx":29036
 *             for idx in range(len(from_)):
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]
 *     elif len(from_) == 1:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29036, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29037
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]
 *     elif len(from_) == 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     if len(to) > 1:
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_from_, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cyfrom_ = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":29036
 *             for idx in range(len(from_)):
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]
 *     elif len(from_) == 1:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
*/
  }
  __pyx_L9:;

  /* "cuda/bindings/runtime.pyx":29038
 *     elif len(from_) == 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL             # <<<<<<<<<<<<<<
 *     if len(to) > 1:
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cyto = NULL;

  /* "cuda/bindings/runtime.pyx":29039
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     if len(to) > 1:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29039, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29040
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     if len(to) > 1:
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cyto is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29040, __pyx_L1_error)
    __pyx_v_cyto = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":29041
 *     if len(to) > 1:
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cyto == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":29042
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(to)):
*/
      __pyx_t_8 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29042, __pyx_L1_error)
      __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29042, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 29042, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29042, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 29042, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29042, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29042, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29042, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29042, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 29042, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":29041
 *     if len(to) > 1:
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":29044
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(to)):             # <<<<<<<<<<<<<<
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]
 *     elif len(to) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29044, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":29045
 *         else:
 *             for idx in range(len(to)):
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(to) == 1:
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_to, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cyto[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":29039
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     if len(to) > 1:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
*/
    goto __pyx_L13;
  }

  /* "cuda/bindings/runtime.pyx":29046
 *             for idx in range(len(to)):
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]
 *     elif len(to) == 1:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29046, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29047
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]
 *     elif len(to) == 1:
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     if len(edgeData) > 1:
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_to, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29047, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cyto = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":29046
 *             for idx in range(len(to)):
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]
 *     elif len(to) == 1:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
  }
  __pyx_L13:;

  /* "cuda/bindings/runtime.pyx":29048
 *     elif len(to) == 1:
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL             # <<<<<<<<<<<<<<
 *     if len(edgeData) > 1:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
*/
  __pyx_v_cyedgeData = NULL;

  /* "cuda/bindings/runtime.pyx":29049
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     if len(edgeData) > 1:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29049, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29050
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     if len(edgeData) > 1:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29050, __pyx_L1_error)
    __pyx_v_cyedgeData = ((cudaGraphEdgeData *)calloc(__pyx_t_7, (sizeof(cudaGraphEdgeData))));

    /* "cuda/bindings/runtime.pyx":29051
 *     if len(edgeData) > 1:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(edgeData)):
*/
    __pyx_t_4 = (__pyx_v_cyedgeData == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":29052
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(edgeData)):
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29052, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29052, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29052, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29052, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29052, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29052, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 29052, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29052, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29052, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 29052, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":29051
 *     if len(edgeData) > 1:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(edgeData)):
*/
    }

    /* "cuda/bindings/runtime.pyx":29053
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(edgeData)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(edgeData) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29053, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":29054
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(edgeData)):
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *     elif len(edgeData) == 1:
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
*/
      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_edgeData, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29054, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      (void)(memcpy((&(__pyx_v_cyedgeData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._pvt_ptr, (sizeof(cudaGraphEdgeData))));
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "cuda/bindings/runtime.pyx":29049
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     if len(edgeData) > 1:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
    goto __pyx_L17;
  }

  /* "cuda/bindings/runtime.pyx":29055
 *         for idx in range(len(edgeData)):
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(edgeData) == 1:             # <<<<<<<<<<<<<<
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29055, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29056
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(edgeData) == 1:
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_edgeData, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29056, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._pvt_ptr;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_cyedgeData = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":29055
 *         for idx in range(len(edgeData)):
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(edgeData) == 1:             # <<<<<<<<<<<<<<
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:
*/
  }
  __pyx_L17:;

  /* "cuda/bindings/runtime.pyx":29057
 *     elif len(edgeData) == 1:
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29058
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:
 *         err = cyruntime.cudaGraphAddDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)             # <<<<<<<<<<<<<<
 *     if len(from_) > 1 and cyfrom_ is not NULL:
 *         free(cyfrom_)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddDependencies(__pyx_v_cygraph, __pyx_v_cyfrom_, __pyx_v_cyto, __pyx_v_cyedgeData, __pyx_v_numDependencies); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29058, __pyx_L22_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":29057
 *     elif len(edgeData) == 1:
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L23;
        }
        __pyx_L22_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L23:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29059
 *     with nogil:
 *         err = cyruntime.cudaGraphAddDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29059, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L25_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyfrom_ != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L25_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29060
 *         err = cyruntime.cudaGraphAddDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:
 *         free(cyfrom_)             # <<<<<<<<<<<<<<
 *     if len(to) > 1 and cyto is not NULL:
 *         free(cyto)
*/
    free(__pyx_v_cyfrom_);

    /* "cuda/bindings/runtime.pyx":29059
 *     with nogil:
 *         err = cyruntime.cudaGraphAddDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":29061
 *     if len(from_) > 1 and cyfrom_ is not NULL:
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29061, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L28_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyto != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L28_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29062
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:
 *         free(cyto)             # <<<<<<<<<<<<<<
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
 *         free(cyedgeData)
*/
    free(__pyx_v_cyto);

    /* "cuda/bindings/runtime.pyx":29061
 *     if len(from_) > 1 and cyfrom_ is not NULL:
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":29063
 *     if len(to) > 1 and cyto is not NULL:
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29063, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L31_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyedgeData != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L31_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29064
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
 *         free(cyedgeData)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cyedgeData);

    /* "cuda/bindings/runtime.pyx":29063
 *     if len(to) > 1 and cyto is not NULL:
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":29065
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
 *         free(cyedgeData)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 29065, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":28977
 *     return (_dict_cudaError_t[err], pypDependentNodes, pyedgeData, pNumDependentNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies):
 *     """ Adds dependency edges to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_2generator125);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_5generator126);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_24cudaGraphAddDependencies_8generator127);
  __Pyx_XDECREF(__pyx_v_from_);
  __Pyx_XDECREF(__pyx_v_to);
  __Pyx_XDECREF(__pyx_v_edgeData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29067
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphRemoveDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies):
 *     """ Removes dependency edges from a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_495cudaGraphRemoveDependencies(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_7runtime_494cudaGraphRemoveDependencies, "cudaGraphRemoveDependencies(graph, from_: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData: Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies)\n\nRemoves dependency edges from a graph.\n\nThe number of `pDependencies` to be removed is defined by\n`numDependencies`. Elements in `pFrom` and `pTo` at corresponding\nindices define a dependency. Each node in `pFrom` and `pTo` must belong\nto `graph`.\n\nIf `numDependencies` is 0, elements in `pFrom` and `pTo` will be\nignored. Specifying an edge that does not exist in the graph, with data\nmatching `edgeData`, results in an error. `edgeData` is nullable, which\nis equivalent to passing default (zeroed) data for each edge.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph from which to remove dependencies\nfrom : list[:py:obj:`~.cudaGraphNode_t`]\n    Array of nodes that provide the dependencies\nto : list[:py:obj:`~.cudaGraphNode_t`]\n    Array of dependent nodes\nedgeData : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional array of edge data. If NULL, edge data is assumed to be\n    default (zeroed).\nnumDependencies : size_t\n    Number of dependencies to be removed\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_495cudaGraphRemoveDependencies = {"cudaGraphRemoveDependencies", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_495cudaGraphRemoveDependencies, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_494cudaGraphRemoveDependencies};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_495cudaGraphRemoveDependencies(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_graph = 0;
  PyObject *__pyx_v_from_ = 0;
  PyObject *__pyx_v_to = 0;
  PyObject *__pyx_v_edgeData = 0;
  size_t __pyx_v_numDependencies;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphRemoveDependencies (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_graph_2,&__pyx_mstate_global->__pyx_n_u_from,&__pyx_mstate_global->__pyx_n_u_to,&__pyx_mstate_global->__pyx_n_u_edgeData,&__pyx_mstate_global->__pyx_n_u_numDependencies,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, 29067, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 29067, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 29067, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29067, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29067, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29067, __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, "cudaGraphRemoveDependencies", 0) < (0)) __PYX_ERR(0, 29067, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies", 1, 5, 5, i); __PYX_ERR(0, 29067, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 29067, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29067, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29067, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 29067, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 29067, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_from_ = values[1];
    __pyx_v_to = values[2];
    __pyx_v_edgeData = values[3];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 29068, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphRemoveDependencies", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 29067, __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.runtime.cudaGraphRemoveDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_494cudaGraphRemoveDependencies(__pyx_self, __pyx_v_graph, __pyx_v_from_, __pyx_v_to, __pyx_v_edgeData, __pyx_v_numDependencies);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_2generator128(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":29105
 *     """
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 29105, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_2generator128, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[128]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphRemoveDependencies_loca, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 29105, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphRemoveDependencies.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_2generator128(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 29105, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 29105, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29105, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29105, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29105, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29105, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29105, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 29105, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_5generator129(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":29108
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 29108, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_5generator129, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[129]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphRemoveDependencies_loca, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 29108, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphRemoveDependencies.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_5generator129(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 29108, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 29108, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29108, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29108, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29108, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29108, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 29108, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_8generator130(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":29111
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_6genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 29111, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_8generator130, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[130]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphRemoveDependencies_loca, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 29111, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphRemoveDependencies.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_8generator130(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 29111, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 29111, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29111, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29111, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 29111, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29111, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 29111, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29067
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphRemoveDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies):
 *     """ Removes dependency edges from a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_494cudaGraphRemoveDependencies(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_from_, PyObject *__pyx_v_to, PyObject *__pyx_v_edgeData, size_t __pyx_v_numDependencies) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaGraphNode_t *__pyx_v_cyfrom_;
  Py_ssize_t __pyx_v_idx;
  cudaGraphNode_t *__pyx_v_cyto;
  cudaGraphEdgeData *__pyx_v_cyedgeData;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_2generator128 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_5generator129 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_8generator130 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaGraphEdgeData_st *__pyx_t_13;
  cudaError_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphRemoveDependencies", 0);
  __Pyx_INCREF(__pyx_v_from_);
  __Pyx_INCREF(__pyx_v_to);
  __Pyx_INCREF(__pyx_v_edgeData);

  /* "cuda/bindings/runtime.pyx":29104
 *     :py:obj:`~.cudaGraphAddDependencies`, :py:obj:`~.cudaGraphGetEdges`, :py:obj:`~.cudaGraphNodeGetDependencies`, :py:obj:`~.cudaGraphNodeGetDependentNodes`
 *     """
 *     edgeData = [] if edgeData is None else edgeData             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
*/
  __pyx_t_2 = (__pyx_v_edgeData == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29104, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_edgeData);
    __pyx_t_1 = __pyx_v_edgeData;
  }
  __Pyx_DECREF_SET(__pyx_v_edgeData, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":29105
 *     """
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_genexpr(NULL, __pyx_v_edgeData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 29105, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":29106
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")             # <<<<<<<<<<<<<<
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_edgeData_is_not_instanc};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29106, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 29106, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":29105
 *     """
 *     edgeData = [] if edgeData is None else edgeData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
*/
  }

  /* "cuda/bindings/runtime.pyx":29107
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData):
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_4 = (__pyx_v_to == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29107, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_to);
    __pyx_t_3 = __pyx_v_to;
  }
  __Pyx_DECREF_SET(__pyx_v_to, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":29108
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_3genexpr(NULL, __pyx_v_to); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 29108, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":29109
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_to_is_not_instance_of_t};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29109, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 29109, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":29108
 *         raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     to = [] if to is None else to
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
*/
  }

  /* "cuda/bindings/runtime.pyx":29110
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to):
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_2 = (__pyx_v_from_ == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_from_);
    __pyx_t_1 = __pyx_v_from_;
  }
  __Pyx_DECREF_SET(__pyx_v_from_, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":29111
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_6genexpr(NULL, __pyx_v_from_); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 29111, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":29112
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_from__is_not_instance_o};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29112, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 29112, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":29111
 *         raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     from_ = [] if from_ is None else from_
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":29114
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_4 = (__pyx_v_graph == Py_None);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29115
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29114
 *         raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29116
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_4 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29117
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29116
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29119
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29119, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":29120
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     if len(from_) > 1:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29120, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29121
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL             # <<<<<<<<<<<<<<
 *     if len(from_) > 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cyfrom_ = NULL;

  /* "cuda/bindings/runtime.pyx":29122
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     if len(from_) > 1:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29122, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29123
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     if len(from_) > 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cyfrom_ is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29123, __pyx_L1_error)
    __pyx_v_cyfrom_ = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":29124
 *     if len(from_) > 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cyfrom_ == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":29125
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(from_)):
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29125, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29125, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29125, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29125, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29125, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29125, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 29125, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29125, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29125, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 29125, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":29124
 *     if len(from_) > 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":29127
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(from_)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(from_)):             # <<<<<<<<<<<<<<
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]
 *     elif len(from_) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29127, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":29128
 *         else:
 *             for idx in range(len(from_)):
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(from_) == 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_from_, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29128, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cyfrom_[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":29122
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cyruntime.cudaGraphNode_t* cyfrom_ = NULL
 *     if len(from_) > 1:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*> calloc(len(from_), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyfrom_ is NULL:
*/
    goto __pyx_L9;
  }

  /* "cuda/bindings/runtime.pyx":29129
 *             for idx in range(len(from_)):
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]
 *     elif len(from_) == 1:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29129, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29130
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]
 *     elif len(from_) == 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     if len(to) > 1:
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_from_, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29130, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cyfrom_ = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":29129
 *             for idx in range(len(from_)):
 *                 cyfrom_[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>from_[idx])._pvt_ptr[0]
 *     elif len(from_) == 1:             # <<<<<<<<<<<<<<
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
*/
  }
  __pyx_L9:;

  /* "cuda/bindings/runtime.pyx":29131
 *     elif len(from_) == 1:
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL             # <<<<<<<<<<<<<<
 *     if len(to) > 1:
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cyto = NULL;

  /* "cuda/bindings/runtime.pyx":29132
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     if len(to) > 1:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29132, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29133
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     if len(to) > 1:
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cyto is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29133, __pyx_L1_error)
    __pyx_v_cyto = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":29134
 *     if len(to) > 1:
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_4 = (__pyx_v_cyto == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":29135
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(to)):
*/
      __pyx_t_8 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29135, __pyx_L1_error)
      __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29135, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 29135, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29135, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 29135, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29135, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29135, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29135, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29135, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 29135, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":29134
 *     if len(to) > 1:
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":29137
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(to)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(to)):             # <<<<<<<<<<<<<<
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]
 *     elif len(to) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29137, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":29138
 *         else:
 *             for idx in range(len(to)):
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(to) == 1:
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
*/
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_to, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29138, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        (__pyx_v_cyto[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":29132
 *         cyfrom_ = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>from_[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNode_t* cyto = NULL
 *     if len(to) > 1:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*> calloc(len(to), sizeof(cyruntime.cudaGraphNode_t))
 *         if cyto is NULL:
*/
    goto __pyx_L13;
  }

  /* "cuda/bindings/runtime.pyx":29139
 *             for idx in range(len(to)):
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]
 *     elif len(to) == 1:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29139, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29140
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]
 *     elif len(to) == 1:
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     if len(edgeData) > 1:
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_to, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_cyto = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_1)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":29139
 *             for idx in range(len(to)):
 *                 cyto[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>to[idx])._pvt_ptr[0]
 *     elif len(to) == 1:             # <<<<<<<<<<<<<<
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
*/
  }
  __pyx_L13:;

  /* "cuda/bindings/runtime.pyx":29141
 *     elif len(to) == 1:
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL             # <<<<<<<<<<<<<<
 *     if len(edgeData) > 1:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
*/
  __pyx_v_cyedgeData = NULL;

  /* "cuda/bindings/runtime.pyx":29142
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     if len(edgeData) > 1:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29142, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29143
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     if len(edgeData) > 1:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29143, __pyx_L1_error)
    __pyx_v_cyedgeData = ((cudaGraphEdgeData *)calloc(__pyx_t_7, (sizeof(cudaGraphEdgeData))));

    /* "cuda/bindings/runtime.pyx":29144
 *     if len(edgeData) > 1:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(edgeData)):
*/
    __pyx_t_4 = (__pyx_v_cyedgeData == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":29145
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(edgeData)):
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
*/
      __pyx_t_3 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29145, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 29145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __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_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29145, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 29145, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":29144
 *     if len(edgeData) > 1:
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(edgeData)):
*/
    }

    /* "cuda/bindings/runtime.pyx":29146
 *         if cyedgeData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(edgeData)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(edgeData) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29146, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":29147
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(edgeData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(edgeData)):
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *     elif len(edgeData) == 1:
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
*/
      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_edgeData, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29147, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      (void)(memcpy((&(__pyx_v_cyedgeData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._pvt_ptr, (sizeof(cudaGraphEdgeData))));
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "cuda/bindings/runtime.pyx":29142
 *         cyto = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>to[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cyedgeData = NULL
 *     if len(edgeData) > 1:             # <<<<<<<<<<<<<<
 *         cyedgeData = <cyruntime.cudaGraphEdgeData*> calloc(len(edgeData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cyedgeData is NULL:
*/
    goto __pyx_L17;
  }

  /* "cuda/bindings/runtime.pyx":29148
 *         for idx in range(len(edgeData)):
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(edgeData) == 1:             # <<<<<<<<<<<<<<
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29148, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29149
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(edgeData) == 1:
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphRemoveDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_edgeData, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_1)->__pyx_base._pvt_ptr;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_cyedgeData = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":29148
 *         for idx in range(len(edgeData)):
 *             string.memcpy(&cyedgeData[idx], (<cudaGraphEdgeData>edgeData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(edgeData) == 1:             # <<<<<<<<<<<<<<
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:
*/
  }
  __pyx_L17:;

  /* "cuda/bindings/runtime.pyx":29150
 *     elif len(edgeData) == 1:
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphRemoveDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29151
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:
 *         err = cyruntime.cudaGraphRemoveDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)             # <<<<<<<<<<<<<<
 *     if len(from_) > 1 and cyfrom_ is not NULL:
 *         free(cyfrom_)
*/
        __pyx_t_14 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphRemoveDependencies(__pyx_v_cygraph, __pyx_v_cyfrom_, __pyx_v_cyto, __pyx_v_cyedgeData, __pyx_v_numDependencies); if (unlikely(__pyx_t_14 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29151, __pyx_L22_error)
        __pyx_v_err = __pyx_t_14;
      }

      /* "cuda/bindings/runtime.pyx":29150
 *     elif len(edgeData) == 1:
 *         cyedgeData = (<cudaGraphEdgeData>edgeData[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphRemoveDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L23;
        }
        __pyx_L22_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L23:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29152
 *     with nogil:
 *         err = cyruntime.cudaGraphRemoveDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_from_); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29152, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L25_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyfrom_ != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L25_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29153
 *         err = cyruntime.cudaGraphRemoveDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:
 *         free(cyfrom_)             # <<<<<<<<<<<<<<
 *     if len(to) > 1 and cyto is not NULL:
 *         free(cyto)
*/
    free(__pyx_v_cyfrom_);

    /* "cuda/bindings/runtime.pyx":29152
 *     with nogil:
 *         err = cyruntime.cudaGraphRemoveDependencies(cygraph, cyfrom_, cyto, cyedgeData, numDependencies)
 *     if len(from_) > 1 and cyfrom_ is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":29154
 *     if len(from_) > 1 and cyfrom_ is not NULL:
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_to); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29154, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L28_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyto != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L28_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29155
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:
 *         free(cyto)             # <<<<<<<<<<<<<<
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
 *         free(cyedgeData)
*/
    free(__pyx_v_cyto);

    /* "cuda/bindings/runtime.pyx":29154
 *     if len(from_) > 1 and cyfrom_ is not NULL:
 *         free(cyfrom_)
 *     if len(to) > 1 and cyto is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":29156
 *     if len(to) > 1 and cyto is not NULL:
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     return (_dict_cudaError_t[err],)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_edgeData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 29156, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L31_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyedgeData != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L31_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":29157
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
 *         free(cyedgeData)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
    free(__pyx_v_cyedgeData);

    /* "cuda/bindings/runtime.pyx":29156
 *     if len(to) > 1 and cyto is not NULL:
 *         free(cyto)
 *     if len(edgeData) > 1 and cyedgeData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyedgeData)
 *     return (_dict_cudaError_t[err],)
*/
  }

  /* "cuda/bindings/runtime.pyx":29158
 *     if len(edgeData) > 1 and cyedgeData is not NULL:
 *         free(cyedgeData)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 29158, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29067
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphRemoveDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies):
 *     """ Removes dependency edges from a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphRemoveDependencies", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_2generator128);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_5generator129);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_27cudaGraphRemoveDependencies_8generator130);
  __Pyx_XDECREF(__pyx_v_from_);
  __Pyx_XDECREF(__pyx_v_to);
  __Pyx_XDECREF(__pyx_v_edgeData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29160
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDestroyNode(node):
 *     """ Remove a node from the graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_497cudaGraphDestroyNode(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_7runtime_496cudaGraphDestroyNode, "cudaGraphDestroyNode(node)\n\nRemove a node from the graph.\n\nRemoves `node` from its graph. This operation also severs any\ndependencies of other nodes on `node` and vice versa.\n\nDependencies cannot be removed from graphs which contain allocation or\nfree nodes. Any attempt to do so will return an error.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to remove\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphAddEmptyNode`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemsetNode`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_497cudaGraphDestroyNode = {"cudaGraphDestroyNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_497cudaGraphDestroyNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_496cudaGraphDestroyNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_497cudaGraphDestroyNode(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_node = 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("cudaGraphDestroyNode (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_node_2,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, 29160, __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, 29160, __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, "cudaGraphDestroyNode", 0) < (0)) __PYX_ERR(0, 29160, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphDestroyNode", 1, 1, 1, i); __PYX_ERR(0, 29160, __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, 29160, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphDestroyNode", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 29160, __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.runtime.cudaGraphDestroyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_496cudaGraphDestroyNode(__pyx_self, __pyx_v_node);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_496cudaGraphDestroyNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphDestroyNode", 0);

  /* "cuda/bindings/runtime.pyx":29185
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29186
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29185
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29187
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29188
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29187
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29190
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29190, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29190, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29191
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphDestroyNode(cynode)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29191, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29192
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphDestroyNode(cynode)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29193
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:
 *         err = cyruntime.cudaGraphDestroyNode(cynode)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDestroyNode(__pyx_v_cynode); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29193, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":29192
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphDestroyNode(cynode)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29194
 *     with nogil:
 *         err = cyruntime.cudaGraphDestroyNode(cynode)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 29194, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29160
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDestroyNode(node):
 *     """ Remove a node from the graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDestroyNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29196
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiate(graph, unsigned long long flags):
 *     """ Creates an executable graph from a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_499cudaGraphInstantiate(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_7runtime_498cudaGraphInstantiate, "cudaGraphInstantiate(graph, unsigned long long flags)\n\nCreates an executable graph from a graph.\n\nInstantiates `graph` as an executable graph. The graph is validated for\nany structural constraints or intra-node constraints which were not\npreviously validated. If instantiation is successful, a handle to the\ninstantiated graph is returned in `pGraphExec`.\n\nThe `flags` parameter controls the behavior of instantiation and\nsubsequent graph launches. Valid flags are:\n\n- :py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`, which\n  configures a graph containing memory allocation nodes to\n  automatically free any unfreed memory allocations before the graph is\n  relaunched.\n\n- :py:obj:`~.cudaGraphInstantiateFlagDeviceLaunch`, which configures\n  the graph for launch from the device. If this flag is passed, the\n  executable graph handle returned can be used to launch the graph from\n  both the host and device. This flag cannot be used in conjunction\n  with :py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`.\n\n- :py:obj:`~.cudaGraphInstantiateFlagUseNodePriority`, which causes the\n  graph to use the priorities from the per-node attributes rather than\n  the priority of the launch stream during execution. Note that\n  priorities are only available on kernel nodes, and are copied from\n  stream priority during stream capture.\n\nIf `graph` contains any allocation or free nodes, there can be at most\none executable graph in existence for that graph at a time. An attempt\nto instantiate a second executable graph before destroying the first\nwith :py:obj:`~.cudaGraphExecDestroy` will result in an error. The same\nalso applies if `graph` contains any device-updatable kernel nodes.\n\nGraphs instantiated for launch on the device have additional\nrestrictions which do not apply to host graphs:\n\n- The graph's nodes must reside on a single device.\n\n- The graph can only contain kernel nodes, memcpy nodes, memset nodes,\n  and child graph nodes.\n\n- The graph c""annot be empty and must contain at least one kernel,\n  memcpy, or memset node. Operation-specific restrictions are outlined\n  below.\n\n- Kernel nodes:\n\n  - Use of CUDA Dynamic Parallelism is not permitted.\n\n  - Cooperative launches are permitted as long as MPS is not in use.\n\n- Memcpy nodes:\n\n  - Only copies involving device memory and/or pinned device-mapped\n    host memory are permitted.\n\n  - Copies involving CUDA arrays are not permitted.\n\n  - Both operands must be accessible from the current device, and the\n    current device must match the device of other nodes in the graph.\n\nIf `graph` is not instantiated for launch on the device but contains\nkernels which call device-side :py:obj:`~.cudaGraphLaunch()` from\nmultiple devices, this will result in an error.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to instantiate\nflags : unsigned long long\n    Flags to control instantiation. See\n    :py:obj:`~.CUgraphInstantiate_flags`.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphExec : :py:obj:`~.cudaGraphExec_t`\n    Returns instantiated graph\n\nSee Also\n--------\n:py:obj:`~.cudaGraphInstantiateWithFlags`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphUpload`, :py:obj:`~.cudaGraphLaunch`, :py:obj:`~.cudaGraphExecDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_499cudaGraphInstantiate = {"cudaGraphInstantiate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_499cudaGraphInstantiate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_498cudaGraphInstantiate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_499cudaGraphInstantiate(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_graph = 0;
  unsigned PY_LONG_LONG __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphInstantiate (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_graph_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 29196, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29196, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29196, __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, "cudaGraphInstantiate", 0) < (0)) __PYX_ERR(0, 29196, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiate", 1, 2, 2, i); __PYX_ERR(0, 29196, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 29196, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29196, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29197, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiate", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 29196, __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.runtime.cudaGraphInstantiate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_498cudaGraphInstantiate(__pyx_self, __pyx_v_graph, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_498cudaGraphInstantiate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned PY_LONG_LONG __pyx_v_flags) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *__pyx_v_pGraphExec = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphInstantiate", 0);

  /* "cuda/bindings/runtime.pyx":29283
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29284
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29283
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29285
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29286
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29286, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29285
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29288
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29288, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29289
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29289, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29290
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiate(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29290, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraphExec = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":29291
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphInstantiate(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29292
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiate(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiate(((cudaGraphExec_t *)__pyx_v_pGraphExec->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29292, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":29291
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphInstantiate(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29293
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiate(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29294
 *         err = cyruntime.cudaGraphInstantiate(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 29294, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 29294, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":29293
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiate(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)
*/
  }

  /* "cuda/bindings/runtime.pyx":29295
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 29295, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphExec);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphExec);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphExec)) != (0)) __PYX_ERR(0, 29295, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29196
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiate(graph, unsigned long long flags):
 *     """ Creates an executable graph from a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29297
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiateWithFlags(graph, unsigned long long flags):
 *     """ Creates an executable graph from a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_501cudaGraphInstantiateWithFlags(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_7runtime_500cudaGraphInstantiateWithFlags, "cudaGraphInstantiateWithFlags(graph, unsigned long long flags)\n\nCreates an executable graph from a graph.\n\nInstantiates `graph` as an executable graph. The graph is validated for\nany structural constraints or intra-node constraints which were not\npreviously validated. If instantiation is successful, a handle to the\ninstantiated graph is returned in `pGraphExec`.\n\nThe `flags` parameter controls the behavior of instantiation and\nsubsequent graph launches. Valid flags are:\n\n- :py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`, which\n  configures a graph containing memory allocation nodes to\n  automatically free any unfreed memory allocations before the graph is\n  relaunched.\n\n- :py:obj:`~.cudaGraphInstantiateFlagDeviceLaunch`, which configures\n  the graph for launch from the device. If this flag is passed, the\n  executable graph handle returned can be used to launch the graph from\n  both the host and device. This flag can only be used on platforms\n  which support unified addressing. This flag cannot be used in\n  conjunction with\n  :py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`.\n\n- :py:obj:`~.cudaGraphInstantiateFlagUseNodePriority`, which causes the\n  graph to use the priorities from the per-node attributes rather than\n  the priority of the launch stream during execution. Note that\n  priorities are only available on kernel nodes, and are copied from\n  stream priority during stream capture.\n\nIf `graph` contains any allocation or free nodes, there can be at most\none executable graph in existence for that graph at a time. An attempt\nto instantiate a second executable graph before destroying the first\nwith :py:obj:`~.cudaGraphExecDestroy` will result in an error. The same\nalso applies if `graph` contains any device-updatable kernel nodes.\n\nIf `graph` contains kernels which call device-side\n:py:obj:`~.cudaGraphLaunch()` from multiple devices, this will result\nin an error.\n\nGraphs instantiated for launch on the device have add""itional\nrestrictions which do not apply to host graphs:\n\n- The graph's nodes must reside on a single device.\n\n- The graph can only contain kernel nodes, memcpy nodes, memset nodes,\n  and child graph nodes.\n\n- The graph cannot be empty and must contain at least one kernel,\n  memcpy, or memset node. Operation-specific restrictions are outlined\n  below.\n\n- Kernel nodes:\n\n  - Use of CUDA Dynamic Parallelism is not permitted.\n\n  - Cooperative launches are permitted as long as MPS is not in use.\n\n- Memcpy nodes:\n\n  - Only copies involving device memory and/or pinned device-mapped\n    host memory are permitted.\n\n  - Copies involving CUDA arrays are not permitted.\n\n  - Both operands must be accessible from the current device, and the\n    current device must match the device of other nodes in the graph.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to instantiate\nflags : unsigned long long\n    Flags to control instantiation. See\n    :py:obj:`~.CUgraphInstantiate_flags`.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphExec : :py:obj:`~.cudaGraphExec_t`\n    Returns instantiated graph\n\nSee Also\n--------\n:py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphUpload`, :py:obj:`~.cudaGraphLaunch`, :py:obj:`~.cudaGraphExecDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_501cudaGraphInstantiateWithFlags = {"cudaGraphInstantiateWithFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_501cudaGraphInstantiateWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_500cudaGraphInstantiateWithFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_501cudaGraphInstantiateWithFlags(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_graph = 0;
  unsigned PY_LONG_LONG __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphInstantiateWithFlags (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_graph_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 29297, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29297, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29297, __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, "cudaGraphInstantiateWithFlags", 0) < (0)) __PYX_ERR(0, 29297, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiateWithFlags", 1, 2, 2, i); __PYX_ERR(0, 29297, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 29297, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29297, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29298, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiateWithFlags", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 29297, __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.runtime.cudaGraphInstantiateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_500cudaGraphInstantiateWithFlags(__pyx_self, __pyx_v_graph, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_500cudaGraphInstantiateWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned PY_LONG_LONG __pyx_v_flags) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *__pyx_v_pGraphExec = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphInstantiateWithFlags", 0);

  /* "cuda/bindings/runtime.pyx":29386
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29387
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29386
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29388
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29389
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29388
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29391
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29391, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29391, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29392
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29392, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29393
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiateWithFlags(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29393, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraphExec = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":29394
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphInstantiateWithFlags(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29395
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiateWithFlags(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiateWithFlags(((cudaGraphExec_t *)__pyx_v_pGraphExec->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29395, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":29394
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphInstantiateWithFlags(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29396
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiateWithFlags(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29397
 *         err = cyruntime.cudaGraphInstantiateWithFlags(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 29397, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 29397, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":29396
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiateWithFlags(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)
*/
  }

  /* "cuda/bindings/runtime.pyx":29398
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 29398, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphExec);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphExec);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphExec)) != (0)) __PYX_ERR(0, 29398, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29297
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiateWithFlags(graph, unsigned long long flags):
 *     """ Creates an executable graph from a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29400
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraphInstantiateParams]):
 *     """ Creates an executable graph from a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_503cudaGraphInstantiateWithParams(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_7runtime_502cudaGraphInstantiateWithParams, "cudaGraphInstantiateWithParams(graph, cudaGraphInstantiateParams instantiateParams: Optional[cudaGraphInstantiateParams])\n\nCreates an executable graph from a graph.\n\nInstantiates `graph` as an executable graph according to the\n`instantiateParams` structure. The graph is validated for any\nstructural constraints or intra-node constraints which were not\npreviously validated. If instantiation is successful, a handle to the\ninstantiated graph is returned in `pGraphExec`.\n\n`instantiateParams` controls the behavior of instantiation and\nsubsequent graph launches, as well as returning more detailed\ninformation in the event of an error.\n:py:obj:`~.cudaGraphInstantiateParams` is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nThe `flags` field controls the behavior of instantiation and subsequent\ngraph launches. Valid flags are:\n\n- :py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`, which\n  configures a graph containing memory allocation nodes to\n  automatically free any unfreed memory allocations before the graph is\n  relaunched.\n\n- :py:obj:`~.cudaGraphInstantiateFlagUpload`, which will perform an\n  upload of the graph into `uploadStream` once the graph has been\n  instantiated.\n\n- :py:obj:`~.cudaGraphInstantiateFlagDeviceLaunch`, which configures\n  the graph for launch from the device. If this flag is passed, the\n  executable graph handle returned can be used to launch the graph from\n  both the host and device. This flag can only be used on platforms\n  which support unified addressing. This flag cannot be used in\n  conjunction with\n  :py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`.\n\n- :py:obj:`~.cudaGraphInstantiateFlagUseNodePriority`, which causes the\n  graph to use the priorities from the per-node attributes rather than\n  the priority of the launch stream during execution. Note that\n  priorities are only available on kernel nodes, and are copied from\n  stream priority during stream capture.\n\nIf `gra""ph` contains any allocation or free nodes, there can be at most\none executable graph in existence for that graph at a time. An attempt\nto instantiate a second executable graph before destroying the first\nwith :py:obj:`~.cudaGraphExecDestroy` will result in an error. The same\nalso applies if `graph` contains any device-updatable kernel nodes.\n\nIf `graph` contains kernels which call device-side\n:py:obj:`~.cudaGraphLaunch()` from multiple devices, this will result\nin an error.\n\nGraphs instantiated for launch on the device have additional\nrestrictions which do not apply to host graphs:\n\n- The graph's nodes must reside on a single device.\n\n- The graph can only contain kernel nodes, memcpy nodes, memset nodes,\n  and child graph nodes.\n\n- The graph cannot be empty and must contain at least one kernel,\n  memcpy, or memset node. Operation-specific restrictions are outlined\n  below.\n\n- Kernel nodes:\n\n  - Use of CUDA Dynamic Parallelism is not permitted.\n\n  - Cooperative launches are permitted as long as MPS is not in use.\n\n- Memcpy nodes:\n\n  - Only copies involving device memory and/or pinned device-mapped\n    host memory are permitted.\n\n  - Copies involving CUDA arrays are not permitted.\n\n  - Both operands must be accessible from the current device, and the\n    current device must match the device of other nodes in the graph.\n\nIn the event of an error, the `result_out` and `errNode_out` fields\nwill contain more information about the nature of the error. Possible\nerror reporting includes:\n\n- :py:obj:`~.cudaGraphInstantiateError`, if passed an invalid value or\n  if an unexpected error occurred which is described by the return\n  value of the function. `errNode_out` will be set to NULL.\n\n- :py:obj:`~.cudaGraphInstantiateInvalidStructure`, if the graph\n  structure is invalid. `errNode_out` will be set to one of the\n  offending nodes.\n\n- :py:obj:`~.cudaGraphInstantiateNodeOperationNotSupported`, if the\n  graph is instantiated for ""device launch but contains a node of an\n  unsupported node type, or a node which performs unsupported\n  operations, such as use of CUDA dynamic parallelism within a kernel\n  node. `errNode_out` will be set to this node.\n\n- :py:obj:`~.cudaGraphInstantiateMultipleDevicesNotSupported`, if the\n  graph is instantiated for device launch but a node\342\200\231s device differs\n  from that of another node. This error can also be returned if a graph\n  is not instantiated for device launch and it contains kernels which\n  call device-side :py:obj:`~.cudaGraphLaunch()` from multiple devices.\n  `errNode_out` will be set to this node.\n\nIf instantiation is successful, `result_out` will be set to\n:py:obj:`~.cudaGraphInstantiateSuccess`, and `hErrNode_out` will be set\nto NULL.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to instantiate\ninstantiateParams : :py:obj:`~.cudaGraphInstantiateParams`\n    Instantiation parameters\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\npGraphExec : :py:obj:`~.cudaGraphExec_t`\n    Returns instantiated graph\n\nSee Also\n--------\n:py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphInstantiateWithFlags`, :py:obj:`~.cudaGraphExecDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_503cudaGraphInstantiateWithParams = {"cudaGraphInstantiateWithParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_503cudaGraphInstantiateWithParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_502cudaGraphInstantiateWithParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_503cudaGraphInstantiateWithParams(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_graph = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams *__pyx_v_instantiateParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphInstantiateWithParams (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_graph_2,&__pyx_mstate_global->__pyx_n_u_instantiateParams,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, 29400, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29400, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29400, __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, "cudaGraphInstantiateWithParams", 0) < (0)) __PYX_ERR(0, 29400, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiateWithParams", 1, 2, 2, i); __PYX_ERR(0, 29400, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 29400, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29400, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_instantiateParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphInstantiateWithParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 29400, __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.runtime.cudaGraphInstantiateWithParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_instantiateParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams, 1, "instantiateParams", 0))) __PYX_ERR(0, 29401, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_502cudaGraphInstantiateWithParams(__pyx_self, __pyx_v_graph, __pyx_v_instantiateParams);

  /* 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_7runtime_502cudaGraphInstantiateWithParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams *__pyx_v_instantiateParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *__pyx_v_pGraphExec = 0;
  cudaGraphInstantiateParams *__pyx_v_cyinstantiateParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaGraphInstantiateParams_st *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphInstantiateWithParams", 0);

  /* "cuda/bindings/runtime.pyx":29529
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29530
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29529
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29531
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29532
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29531
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29534
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29534, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29535
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     cdef cyruntime.cudaGraphInstantiateParams* cyinstantiateParams_ptr = instantiateParams._pvt_ptr if instantiateParams is not None else NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29535, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29536
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphInstantiateParams* cyinstantiateParams_ptr = instantiateParams._pvt_ptr if instantiateParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29536, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pGraphExec = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":29537
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     cdef cyruntime.cudaGraphInstantiateParams* cyinstantiateParams_ptr = instantiateParams._pvt_ptr if instantiateParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiateWithParams(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, cyinstantiateParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_instantiateParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_instantiateParams->__pyx_base._pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cyinstantiateParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":29538
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     cdef cyruntime.cudaGraphInstantiateParams* cyinstantiateParams_ptr = instantiateParams._pvt_ptr if instantiateParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphInstantiateWithParams(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, cyinstantiateParams_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29539
 *     cdef cyruntime.cudaGraphInstantiateParams* cyinstantiateParams_ptr = instantiateParams._pvt_ptr if instantiateParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiateWithParams(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, cyinstantiateParams_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiateWithParams(((cudaGraphExec_t *)__pyx_v_pGraphExec->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cyinstantiateParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29539, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":29538
 *     cdef cudaGraphExec_t pGraphExec = cudaGraphExec_t()
 *     cdef cyruntime.cudaGraphInstantiateParams* cyinstantiateParams_ptr = instantiateParams._pvt_ptr if instantiateParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphInstantiateWithParams(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, cyinstantiateParams_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29540
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiateWithParams(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, cyinstantiateParams_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29541
 *         err = cyruntime.cudaGraphInstantiateWithParams(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, cyinstantiateParams_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 29541, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 29541, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":29540
 *     with nogil:
 *         err = cyruntime.cudaGraphInstantiateWithParams(<cyruntime.cudaGraphExec_t*>pGraphExec._pvt_ptr, cygraph, cyinstantiateParams_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)
*/
  }

  /* "cuda/bindings/runtime.pyx":29542
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphExec)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 29542, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphExec);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphExec);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_v_pGraphExec)) != (0)) __PYX_ERR(0, 29542, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29400
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraphInstantiateParams]):
 *     """ Creates an executable graph from a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphInstantiateWithParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29544
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecGetFlags(graphExec):
 *     """ Query the instantiation flags of an executable graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_505cudaGraphExecGetFlags(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_7runtime_504cudaGraphExecGetFlags, "cudaGraphExecGetFlags(graphExec)\n\nQuery the instantiation flags of an executable graph.\n\nReturns the flags that were passed to instantiation for the given\nexecutable graph. :py:obj:`~.cudaGraphInstantiateFlagUpload` will not\nbe returned by this API as it does not affect the resulting executable\ngraph.\n\nParameters\n----------\ngraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nflags : unsigned long long\n    Returns the instantiation flags\n\nSee Also\n--------\n:py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphInstantiateWithFlags`, :py:obj:`~.cudaGraphInstantiateWithParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_505cudaGraphExecGetFlags = {"cudaGraphExecGetFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_505cudaGraphExecGetFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_504cudaGraphExecGetFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_505cudaGraphExecGetFlags(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_graphExec = 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("cudaGraphExecGetFlags (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_graphExec,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, 29544, __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, 29544, __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, "cudaGraphExecGetFlags", 0) < (0)) __PYX_ERR(0, 29544, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecGetFlags", 1, 1, 1, i); __PYX_ERR(0, 29544, __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, 29544, __pyx_L3_error)
    }
    __pyx_v_graphExec = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecGetFlags", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 29544, __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.runtime.cudaGraphExecGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_504cudaGraphExecGetFlags(__pyx_self, __pyx_v_graphExec);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_504cudaGraphExecGetFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec) {
  cudaGraphExec_t __pyx_v_cygraphExec;
  PyObject *__pyx_v_pgraphExec = NULL;
  unsigned PY_LONG_LONG __pyx_v_flags;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecGetFlags", 0);

  /* "cuda/bindings/runtime.pyx":29570
 *     """
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_graphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29571
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:
 *         pgraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29570
 *     """
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29572
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29573
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29572
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29575
 *         pgraphExec = int(graphExec)
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))             # <<<<<<<<<<<<<<
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     cdef unsigned long long flags = 0
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graphExec};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29575, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29576
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec             # <<<<<<<<<<<<<<
 *     cdef unsigned long long flags = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29576, __pyx_L1_error)
  __pyx_v_cygraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29577
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     cdef unsigned long long flags = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecGetFlags(cygraphExec, &flags)
*/
  __pyx_v_flags = 0;

  /* "cuda/bindings/runtime.pyx":29578
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     cdef unsigned long long flags = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecGetFlags(cygraphExec, &flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29579
 *     cdef unsigned long long flags = 0
 *     with nogil:
 *         err = cyruntime.cudaGraphExecGetFlags(cygraphExec, &flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecGetFlags(__pyx_v_cygraphExec, (&__pyx_v_flags)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29579, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":29578
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     cdef unsigned long long flags = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecGetFlags(cygraphExec, &flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29580
 *     with nogil:
 *         err = cyruntime.cudaGraphExecGetFlags(cygraphExec, &flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29581
 *         err = cyruntime.cudaGraphExecGetFlags(cygraphExec, &flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], flags)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 29581, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 29581, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":29580
 *     with nogil:
 *         err = cyruntime.cudaGraphExecGetFlags(cygraphExec, &flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)
*/
  }

  /* "cuda/bindings/runtime.pyx":29582
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], flags)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_flags); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 29582, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 29582, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29544
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecGetFlags(graphExec):
 *     """ Query the instantiation flags of an executable graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecGetFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29584
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Sets the parameters for a kernel node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_507cudaGraphExecKernelNodeSetParams(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_7runtime_506cudaGraphExecKernelNodeSetParams, "cudaGraphExecKernelNodeSetParams(hGraphExec, node, cudaKernelNodeParams pNodeParams: Optional[cudaKernelNodeParams])\n\nSets the parameters for a kernel node in the given graphExec.\n\nSets the parameters of a kernel node in an executable graph\n`hGraphExec`. The node is identified by the corresponding node `node`\nin the non-executable graph, from which the executable graph was\ninstantiated.\n\n`node` must not have been removed from the original graph. All\n`nodeParams` fields may change, but the following restrictions apply to\n`func` updates:\n\n- The owning device of the function cannot change.\n\n- A node whose function originally did not use CUDA dynamic parallelism\n  cannot be updated to a function which uses CDP\n\n- A node whose function originally did not make device-side update\n  calls cannot be updated to a function which makes device-side update\n  calls.\n\n- If `hGraphExec` was not instantiated for device launch, a node whose\n  function originally did not use device-side\n  :py:obj:`~.cudaGraphLaunch()` cannot be updated to a function which\n  uses device-side :py:obj:`~.cudaGraphLaunch()` unless the node\n  resides on the same device as nodes which contained such calls at\n  instantiate-time. If no such calls were present at instantiation,\n  these updates cannot be performed at all.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `node` is also not modified by this call.\n\nIf `node` is a device-updatable kernel node, the next upload/launch of\n`hGraphExec` will overwrite any previous device-side updates.\nAdditionally, applying host updates to a device-updatable kernel node\nwhile it is being updated from the device will result in undefined\nbehavior.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nnode : :py:obj:`~.CUgraphNode` or :py"":obj:`~.cudaGraphNode_t`\n    kernel node from the graph from which graphExec was instantiated\npNodeParams : :py:obj:`~.cudaKernelNodeParams`\n    Updated Parameters to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddKernelNode`, :py:obj:`~.cudaGraphKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_507cudaGraphExecKernelNodeSetParams = {"cudaGraphExecKernelNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_507cudaGraphExecKernelNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_506cudaGraphExecKernelNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_507cudaGraphExecKernelNodeSetParams(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_hGraphExec = 0;
  PyObject *__pyx_v_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecKernelNodeSetParams (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_node_2,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 29584, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29584, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29584, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29584, __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, "cudaGraphExecKernelNodeSetParams", 0) < (0)) __PYX_ERR(0, 29584, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecKernelNodeSetParams", 1, 3, 3, i); __PYX_ERR(0, 29584, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 29584, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29584, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29584, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_node = values[1];
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecKernelNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 29584, __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.runtime.cudaGraphExecKernelNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 29585, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_506cudaGraphExecKernelNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_pNodeParams);

  /* 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_7runtime_506cudaGraphExecKernelNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *__pyx_v_pNodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  struct cudaKernelNodeParams *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaKernelNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecKernelNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":29643
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29644
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29643
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29645
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29646
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29646, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29645
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29648
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29648, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29648, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29649
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29649, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29651
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29652
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29651
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29653
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29654
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29654, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":29653
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29656
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29656, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":29657
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29657, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29658
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecKernelNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":29659
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecKernelNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29660
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExecKernelNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecKernelNodeSetParams(__pyx_v_cyhGraphExec, __pyx_v_cynode, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29660, __pyx_L10_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":29659
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaKernelNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecKernelNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29661
 *     with nogil:
 *         err = cyruntime.cudaGraphExecKernelNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 29661, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29584
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Sets the parameters for a kernel node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecKernelNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29663
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemcpy3DParms]):
 *     """ Sets the parameters for a memcpy node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_509cudaGraphExecMemcpyNodeSetParams(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_7runtime_508cudaGraphExecMemcpyNodeSetParams, "cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, cudaMemcpy3DParms pNodeParams: Optional[cudaMemcpy3DParms])\n\nSets the parameters for a memcpy node in the given graphExec.\n\nUpdates the work represented by `node` in `hGraphExec` as though `node`\nhad contained `pNodeParams` at instantiation. `node` must remain in the\ngraph which was used to instantiate `hGraphExec`. Changed edges to and\nfrom `node` are ignored.\n\nThe source and destination memory in `pNodeParams` must be allocated\nfrom the same contexts as the original source and destination memory.\nBoth the instantiation-time memory operands and the memory operands in\n`pNodeParams` must be 1-dimensional. Zero-length operations are not\nsupported.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `node` is also not modified by this call.\n\nReturns :py:obj:`~.cudaErrorInvalidValue` if the memory operands'\nmappings changed or either the original or new memory operands are\nmultidimensional.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Memcpy node from the graph which was used to instantiate graphExec\npNodeParams : :py:obj:`~.cudaMemcpy3DParms`\n    Updated Parameters to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParamsToSymbol`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParamsFromSymbol`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams1D`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGra""phNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_509cudaGraphExecMemcpyNodeSetParams = {"cudaGraphExecMemcpyNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_509cudaGraphExecMemcpyNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_508cudaGraphExecMemcpyNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_509cudaGraphExecMemcpyNodeSetParams(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_hGraphExec = 0;
  PyObject *__pyx_v_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecMemcpyNodeSetParams (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_node_2,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 29663, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29663, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29663, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29663, __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, "cudaGraphExecMemcpyNodeSetParams", 0) < (0)) __PYX_ERR(0, 29663, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams", 1, 3, 3, i); __PYX_ERR(0, 29663, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 29663, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29663, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29663, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_node = values[1];
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 29663, __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.runtime.cudaGraphExecMemcpyNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, 1, "pNodeParams", 0))) __PYX_ERR(0, 29664, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_508cudaGraphExecMemcpyNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_pNodeParams);

  /* 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_7runtime_508cudaGraphExecMemcpyNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *__pyx_v_pNodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  struct cudaMemcpy3DParms *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemcpy3DParms *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecMemcpyNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":29705
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29706
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29705
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29707
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29708
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29708, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29707
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29710
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29710, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29711
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29711, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29713
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29714
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29713
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29715
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29716
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29716, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":29715
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29718
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29718, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":29719
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29719, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29720
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":29721
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29722
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemcpyNodeSetParams(__pyx_v_cyhGraphExec, __pyx_v_cynode, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29722, __pyx_L10_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":29721
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaMemcpy3DParms* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29723
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 29723, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29663
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemcpy3DParms]):
 *     """ Sets the parameters for a memcpy node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecMemcpyNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29725
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_511cudaGraphExecMemcpyNodeSetParams1D(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_7runtime_510cudaGraphExecMemcpyNodeSetParams1D, "cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, kind: cudaMemcpyKind)\n\nSets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.\n\nUpdates the work represented by `node` in `hGraphExec` as though `node`\nhad contained the given params at instantiation. `node` must remain in\nthe graph which was used to instantiate `hGraphExec`. Changed edges to\nand from `node` are ignored.\n\n`src` and `dst` must be allocated from the same contexts as the\noriginal source and destination memory. The instantiation-time memory\noperands must be 1-dimensional. Zero-length operations are not\nsupported.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `node` is also not modified by this call.\n\nReturns :py:obj:`~.cudaErrorInvalidValue` if the memory operands'\nmappings changed or the original memory operands are multidimensional.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Memcpy node from the graph which was used to instantiate graphExec\ndst : Any\n    Destination memory address\nsrc : Any\n    Source memory address\ncount : size_t\n    Size in bytes to copy\nkind : :py:obj:`~.cudaMemcpyKind`\n    Type of transfer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddMemcpyNode`, :py:obj:`~.cudaGraphAddMemcpyNode1D`, :py:obj:`~.cudaGraphMemcpyNodeSetParams`, :py:obj:`~.cudaGraphMemcpyNodeSetParams1D`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphEx""ecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_511cudaGraphExecMemcpyNodeSetParams1D = {"cudaGraphExecMemcpyNodeSetParams1D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_511cudaGraphExecMemcpyNodeSetParams1D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_510cudaGraphExecMemcpyNodeSetParams1D};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_511cudaGraphExecMemcpyNodeSetParams1D(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_hGraphExec = 0;
  PyObject *__pyx_v_node = 0;
  PyObject *__pyx_v_dst = 0;
  PyObject *__pyx_v_src = 0;
  size_t __pyx_v_count;
  PyObject *__pyx_v_kind = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecMemcpyNodeSetParams1D (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_node_2,&__pyx_mstate_global->__pyx_n_u_dst_2,&__pyx_mstate_global->__pyx_n_u_src_2,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_kind_2,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, 29725, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 29725, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 29725, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 29725, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29725, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29725, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29725, __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, "cudaGraphExecMemcpyNodeSetParams1D", 0) < (0)) __PYX_ERR(0, 29725, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams1D", 1, 6, 6, i); __PYX_ERR(0, 29725, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      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, 29725, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29725, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29725, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 29725, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 29725, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 29725, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_node = values[1];
    __pyx_v_dst = values[2];
    __pyx_v_src = values[3];
    __pyx_v_count = __Pyx_PyLong_As_size_t(values[4]); if (unlikely((__pyx_v_count == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 29726, __pyx_L3_error)
    __pyx_v_kind = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemcpyNodeSetParams1D", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 29725, __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.runtime.cudaGraphExecMemcpyNodeSetParams1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_kind) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "kind"); __PYX_ERR(0, 29726, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_510cudaGraphExecMemcpyNodeSetParams1D(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_dst, __pyx_v_src, __pyx_v_count, __pyx_v_kind);

  /* 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_7runtime_510cudaGraphExecMemcpyNodeSetParams1D(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, PyObject *__pyx_v_dst, PyObject *__pyx_v_src, size_t __pyx_v_count, PyObject *__pyx_v_kind) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cydst = NULL;
  void *__pyx_v_cydst_ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cysrc = NULL;
  void *__pyx_v_cysrc_ptr;
  enum cudaMemcpyKind __pyx_v_cykind;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaMemcpyKind __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecMemcpyNodeSetParams1D", 0);

  /* "cuda/bindings/runtime.pyx":29771
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29772
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29771
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29773
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29774
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29773
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29776
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29776, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29776, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29777
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29777, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29779
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29780
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29779
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29781
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29782
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29782, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":29781
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29784
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cydst = _HelperInputVoidPtr(dst)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29784, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29784, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":29785
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29785, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29786
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cydst = _HelperInputVoidPtr(dst)             # <<<<<<<<<<<<<<
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_dst};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29786, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cydst = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":29787
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr             # <<<<<<<<<<<<<<
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cydst), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29787, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cydst_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29788
 *     cydst = _HelperInputVoidPtr(dst)
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)             # <<<<<<<<<<<<<<
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_src};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29788, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cysrc = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":29789
 *     cdef void* cydst_ptr = <void*><void_ptr>cydst.cptr
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cysrc), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29789, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cysrc_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29790
 *     cysrc = _HelperInputVoidPtr(src)
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams1D(cyhGraphExec, cynode, cydst_ptr, cysrc_ptr, count, cykind)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kind, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = ((enum cudaMemcpyKind)__Pyx_PyLong_As_enum__cudaMemcpyKind(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 29790, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cykind = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":29791
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams1D(cyhGraphExec, cynode, cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29792
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams1D(cyhGraphExec, cynode, cydst_ptr, cysrc_ptr, count, cykind)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemcpyNodeSetParams1D(__pyx_v_cyhGraphExec, __pyx_v_cynode, __pyx_v_cydst_ptr, __pyx_v_cysrc_ptr, __pyx_v_count, __pyx_v_cykind); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29792, __pyx_L10_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":29791
 *     cdef void* cysrc_ptr = <void*><void_ptr>cysrc.cptr
 *     cdef cyruntime.cudaMemcpyKind cykind = kind.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams1D(cyhGraphExec, cynode, cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29793
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemcpyNodeSetParams1D(cyhGraphExec, cynode, cydst_ptr, cysrc_ptr, count, cykind)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 29793, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29725
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecMemcpyNodeSetParams1D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XDECREF((PyObject *)__pyx_v_cydst);
  __Pyx_XDECREF((PyObject *)__pyx_v_cysrc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29795
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemsetParams]):
 *     """ Sets the parameters for a memset node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_513cudaGraphExecMemsetNodeSetParams(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_7runtime_512cudaGraphExecMemsetNodeSetParams, "cudaGraphExecMemsetNodeSetParams(hGraphExec, node, cudaMemsetParams pNodeParams: Optional[cudaMemsetParams])\n\nSets the parameters for a memset node in the given graphExec.\n\nUpdates the work represented by `node` in `hGraphExec` as though `node`\nhad contained `pNodeParams` at instantiation. `node` must remain in the\ngraph which was used to instantiate `hGraphExec`. Changed edges to and\nfrom `node` are ignored.\n\nZero sized operations are not supported.\n\nThe new destination pointer in `pNodeParams` must be to the same kind\nof allocation as the original destination pointer and have the same\ncontext association and device mapping as the original destination\npointer.\n\nBoth the value and pointer address may be updated.   Changing other\naspects of the memset (width, height, element size or pitch) may cause\nthe update to be rejected. Specifically, for 2d memsets, all dimension\nchanges are rejected. For 1d memsets, changes in height are explicitly\nrejected and other changes are opportunistically allowed if the\nresulting work maps onto the work resources already allocated for the\nnode.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `node` is also not modified by this call.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Memset node from the graph which was used to instantiate graphExec\npNodeParams : :py:obj:`~.cudaMemsetParams`\n    Updated Parameters to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddMemsetNode`, :py:obj:`~.cudaGraphMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetPara""ms`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_513cudaGraphExecMemsetNodeSetParams = {"cudaGraphExecMemsetNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_513cudaGraphExecMemsetNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_512cudaGraphExecMemsetNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_513cudaGraphExecMemsetNodeSetParams(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_hGraphExec = 0;
  PyObject *__pyx_v_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecMemsetNodeSetParams (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_node_2,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 29795, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29795, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29795, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29795, __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, "cudaGraphExecMemsetNodeSetParams", 0) < (0)) __PYX_ERR(0, 29795, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemsetNodeSetParams", 1, 3, 3, i); __PYX_ERR(0, 29795, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 29795, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29795, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29795, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_node = values[1];
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecMemsetNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 29795, __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.runtime.cudaGraphExecMemsetNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 29796, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_512cudaGraphExecMemsetNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_pNodeParams);

  /* 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_7runtime_512cudaGraphExecMemsetNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *__pyx_v_pNodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  struct cudaMemsetParams *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaMemsetParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecMemsetNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":29842
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29843
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29842
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29844
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29845
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29845, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29844
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29847
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29847, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29847, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29848
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29848, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29850
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29851
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29850
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29852
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29853
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":29852
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29855
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29855, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":29856
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29856, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29857
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemsetNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":29858
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecMemsetNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29859
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemsetNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemsetNodeSetParams(__pyx_v_cyhGraphExec, __pyx_v_cynode, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29859, __pyx_L10_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":29858
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaMemsetParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecMemsetNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29860
 *     with nogil:
 *         err = cyruntime.cudaGraphExecMemsetNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29860, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29860, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29860, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29860, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 29860, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29795
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemsetParams]):
 *     """ Sets the parameters for a memset node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecMemsetNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29862
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Sets the parameters for a host node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_515cudaGraphExecHostNodeSetParams(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_7runtime_514cudaGraphExecHostNodeSetParams, "cudaGraphExecHostNodeSetParams(hGraphExec, node, cudaHostNodeParams pNodeParams: Optional[cudaHostNodeParams])\n\nSets the parameters for a host node in the given graphExec.\n\nUpdates the work represented by `node` in `hGraphExec` as though `node`\nhad contained `pNodeParams` at instantiation. `node` must remain in the\ngraph which was used to instantiate `hGraphExec`. Changed edges to and\nfrom `node` are ignored.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `node` is also not modified by this call.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Host node from the graph which was used to instantiate graphExec\npNodeParams : :py:obj:`~.cudaHostNodeParams`\n    Updated Parameters to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddHostNode`, :py:obj:`~.cudaGraphHostNodeSetParams`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_515cudaGraphExecHostNodeSetParams = {"cudaGraphExecHostNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_515cudaGraphExecHostNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_514cudaGraphExecHostNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_515cudaGraphExecHostNodeSetParams(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_hGraphExec = 0;
  PyObject *__pyx_v_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecHostNodeSetParams (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_node_2,&__pyx_mstate_global->__pyx_n_u_pNodeParams,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, 29862, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29862, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29862, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29862, __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, "cudaGraphExecHostNodeSetParams", 0) < (0)) __PYX_ERR(0, 29862, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecHostNodeSetParams", 1, 3, 3, i); __PYX_ERR(0, 29862, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 29862, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29862, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29862, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_node = values[1];
    __pyx_v_pNodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecHostNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 29862, __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.runtime.cudaGraphExecHostNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pNodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams, 1, "pNodeParams", 0))) __PYX_ERR(0, 29863, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_514cudaGraphExecHostNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_pNodeParams);

  /* 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_7runtime_514cudaGraphExecHostNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *__pyx_v_pNodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  struct cudaHostNodeParams *__pyx_v_cypNodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaHostNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecHostNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":29894
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29895
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29894
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29896
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29897
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29896
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29899
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29899, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29899, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29900
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29900, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29902
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29903
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29902
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29904
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29905
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29905, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":29904
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29907
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29907, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29907, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":29908
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29908, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29909
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecHostNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_pNodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_pNodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cypNodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":29910
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecHostNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29911
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExecHostNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecHostNodeSetParams(__pyx_v_cyhGraphExec, __pyx_v_cynode, __pyx_v_cypNodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29911, __pyx_L10_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":29910
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaHostNodeParams* cypNodeParams_ptr = pNodeParams._pvt_ptr if pNodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecHostNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29912
 *     with nogil:
 *         err = cyruntime.cudaGraphExecHostNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 29912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 29912, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29862
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Sets the parameters for a host node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecHostNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29914
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph):
 *     """ Updates node parameters in the child graph node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_517cudaGraphExecChildGraphNodeSetParams(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_7runtime_516cudaGraphExecChildGraphNodeSetParams, "cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph)\n\nUpdates node parameters in the child graph node in the given graphExec.\n\nUpdates the work represented by `node` in `hGraphExec` as though the\nnodes contained in `node's` graph had the parameters contained in\n`childGraph's` nodes at instantiation. `node` must remain in the graph\nwhich was used to instantiate `hGraphExec`. Changed edges to and from\n`node` are ignored.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `node` is also not modified by this call.\n\nThe topology of `childGraph`, as well as the node insertion order, must\nmatch that of the graph contained in `node`. See\n:py:obj:`~.cudaGraphExecUpdate()` for a list of restrictions on what\ncan be updated in an instantiated graph. The update is recursive, so\nchild graph nodes contained within the top level child graph will also\nbe updated.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Host node from the graph which was used to instantiate graphExec\nchildGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    The graph supplying the updated parameters\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddChildGraphNode`, :py:obj:`~.cudaGraphChildGraphNodeGetGraph`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExe""cExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_517cudaGraphExecChildGraphNodeSetParams = {"cudaGraphExecChildGraphNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_517cudaGraphExecChildGraphNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_516cudaGraphExecChildGraphNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_517cudaGraphExecChildGraphNodeSetParams(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_hGraphExec = 0;
  PyObject *__pyx_v_node = 0;
  PyObject *__pyx_v_childGraph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecChildGraphNodeSetParams (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_node_2,&__pyx_mstate_global->__pyx_n_u_childGraph,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, 29914, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29914, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29914, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29914, __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, "cudaGraphExecChildGraphNodeSetParams", 0) < (0)) __PYX_ERR(0, 29914, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecChildGraphNodeSetParams", 1, 3, 3, i); __PYX_ERR(0, 29914, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 29914, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29914, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29914, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_node = values[1];
    __pyx_v_childGraph = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecChildGraphNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 29914, __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.runtime.cudaGraphExecChildGraphNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_516cudaGraphExecChildGraphNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_node, __pyx_v_childGraph);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_516cudaGraphExecChildGraphNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_node, PyObject *__pyx_v_childGraph) {
  cudaGraph_t __pyx_v_cychildGraph;
  PyObject *__pyx_v_pchildGraph = NULL;
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecChildGraphNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":29954
 *     """
 *     cdef cyruntime.cudaGraph_t cychildGraph
 *     if childGraph is None:             # <<<<<<<<<<<<<<
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_childGraph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29955
 *     cdef cyruntime.cudaGraph_t cychildGraph
 *     if childGraph is None:
 *         pchildGraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):
 *         pchildGraph = int(childGraph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pchildGraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29954
 *     """
 *     cdef cyruntime.cudaGraph_t cychildGraph
 *     if childGraph is None:             # <<<<<<<<<<<<<<
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29956
 *     if childGraph is None:
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pchildGraph = int(childGraph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_childGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_childGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29957
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):
 *         pchildGraph = int(childGraph)             # <<<<<<<<<<<<<<
 *     else:
 *         pchildGraph = int(cudaGraph_t(childGraph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_childGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pchildGraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29956
 *     if childGraph is None:
 *         pchildGraph = 0
 *     elif isinstance(childGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pchildGraph = int(childGraph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":29959
 *         pchildGraph = int(childGraph)
 *     else:
 *         pchildGraph = int(cudaGraph_t(childGraph))             # <<<<<<<<<<<<<<
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     cdef cyruntime.cudaGraphNode_t cynode
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_childGraph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29959, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29959, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pchildGraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":29960
 *     else:
 *         pchildGraph = int(cudaGraph_t(childGraph))
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pchildGraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29960, __pyx_L1_error)
  __pyx_v_cychildGraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29962
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29963
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29962
 *     cychildGraph = <cyruntime.cudaGraph_t><void_ptr>pchildGraph
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29964
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29965
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":29964
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":29967
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_node};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29967, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29967, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":29968
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29968, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29970
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29971
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":29970
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L9;
  }

  /* "cuda/bindings/runtime.pyx":29972
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L10_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L10_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":29973
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29973, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":29972
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L9;
  }

  /* "cuda/bindings/runtime.pyx":29975
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hGraphExec};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29975, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L9:;

  /* "cuda/bindings/runtime.pyx":29976
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecChildGraphNodeSetParams(cyhGraphExec, cynode, cychildGraph)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 29976, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":29977
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecChildGraphNodeSetParams(cyhGraphExec, cynode, cychildGraph)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":29978
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:
 *         err = cyruntime.cudaGraphExecChildGraphNodeSetParams(cyhGraphExec, cynode, cychildGraph)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecChildGraphNodeSetParams(__pyx_v_cyhGraphExec, __pyx_v_cynode, __pyx_v_cychildGraph); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 29978, __pyx_L13_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":29977
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecChildGraphNodeSetParams(cyhGraphExec, cynode, cychildGraph)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":29979
 *     with nogil:
 *         err = cyruntime.cudaGraphExecChildGraphNodeSetParams(cyhGraphExec, cynode, cychildGraph)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 29979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 29979, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29914
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph):
 *     """ Updates node parameters in the child graph node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecChildGraphNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pchildGraph);
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":29981
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event):
 *     """ Sets the event for an event record node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_519cudaGraphExecEventRecordNodeSetEvent(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_7runtime_518cudaGraphExecEventRecordNodeSetEvent, "cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event)\n\nSets the event for an event record node in the given graphExec.\n\nSets the event of an event record node in an executable graph\n`hGraphExec`. The node is identified by the corresponding node `hNode`\nin the non-executable graph, from which the executable graph was\ninstantiated.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `hNode` is also not modified by this call.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Event record node from the graph from which graphExec was\n    instantiated\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Updated event to use\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddEventRecordNode`, :py:obj:`~.cudaGraphEventRecordNodeGetEvent`, :py:obj:`~.cudaGraphEventWaitNodeSetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_519cudaGraphExecEventRecordNodeSetEvent = {"cudaGraphExecEventRecordNodeSetEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_519cudaGraphExecEventRecordNodeSetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_518cudaGraphExecEventRecordNodeSetEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_519cudaGraphExecEventRecordNodeSetEvent(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_hGraphExec = 0;
  PyObject *__pyx_v_hNode = 0;
  PyObject *__pyx_v_event = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecEventRecordNodeSetEvent (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_hNode,&__pyx_mstate_global->__pyx_n_u_event_2,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, 29981, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29981, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29981, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 29981, __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, "cudaGraphExecEventRecordNodeSetEvent", 0) < (0)) __PYX_ERR(0, 29981, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecEventRecordNodeSetEvent", 1, 3, 3, i); __PYX_ERR(0, 29981, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 29981, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 29981, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 29981, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_hNode = values[1];
    __pyx_v_event = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecEventRecordNodeSetEvent", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 29981, __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.runtime.cudaGraphExecEventRecordNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_518cudaGraphExecEventRecordNodeSetEvent(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_518cudaGraphExecEventRecordNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecEventRecordNodeSetEvent", 0);

  /* "cuda/bindings/runtime.pyx":30014
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30015
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30014
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30016
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30017
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30017, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30016
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30019
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cyhNode
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30019, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30020
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30020, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30022
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30023
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30022
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30024
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30025
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30025, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30024
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30027
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hNode};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30027, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30028
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30028, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30030
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30031
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30030
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L9;
  }

  /* "cuda/bindings/runtime.pyx":30032
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L10_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L10_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30033
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30032
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L9;
  }

  /* "cuda/bindings/runtime.pyx":30035
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hGraphExec};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30035, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30035, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L9:;

  /* "cuda/bindings/runtime.pyx":30036
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecEventRecordNodeSetEvent(cyhGraphExec, cyhNode, cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30036, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30037
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecEventRecordNodeSetEvent(cyhGraphExec, cyhNode, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30038
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:
 *         err = cyruntime.cudaGraphExecEventRecordNodeSetEvent(cyhGraphExec, cyhNode, cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecEventRecordNodeSetEvent(__pyx_v_cyhGraphExec, __pyx_v_cyhNode, __pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30038, __pyx_L13_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30037
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecEventRecordNodeSetEvent(cyhGraphExec, cyhNode, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30039
 *     with nogil:
 *         err = cyruntime.cudaGraphExecEventRecordNodeSetEvent(cyhGraphExec, cyhNode, cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30039, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":29981
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event):
 *     """ Sets the event for an event record node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecEventRecordNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30041
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event):
 *     """ Sets the event for an event wait node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_521cudaGraphExecEventWaitNodeSetEvent(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_7runtime_520cudaGraphExecEventWaitNodeSetEvent, "cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event)\n\nSets the event for an event wait node in the given graphExec.\n\nSets the event of an event wait node in an executable graph\n`hGraphExec`. The node is identified by the corresponding node `hNode`\nin the non-executable graph, from which the executable graph was\ninstantiated.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `hNode` is also not modified by this call.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Event wait node from the graph from which graphExec was\n    instantiated\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Updated event to use\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddEventWaitNode`, :py:obj:`~.cudaGraphEventWaitNodeGetEvent`, :py:obj:`~.cudaGraphEventRecordNodeSetEvent`, :py:obj:`~.cudaEventRecordWithFlags`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_521cudaGraphExecEventWaitNodeSetEvent = {"cudaGraphExecEventWaitNodeSetEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_521cudaGraphExecEventWaitNodeSetEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_520cudaGraphExecEventWaitNodeSetEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_521cudaGraphExecEventWaitNodeSetEvent(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_hGraphExec = 0;
  PyObject *__pyx_v_hNode = 0;
  PyObject *__pyx_v_event = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecEventWaitNodeSetEvent (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_hNode,&__pyx_mstate_global->__pyx_n_u_event_2,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, 30041, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30041, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30041, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30041, __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, "cudaGraphExecEventWaitNodeSetEvent", 0) < (0)) __PYX_ERR(0, 30041, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecEventWaitNodeSetEvent", 1, 3, 3, i); __PYX_ERR(0, 30041, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 30041, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30041, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30041, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_hNode = values[1];
    __pyx_v_event = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecEventWaitNodeSetEvent", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 30041, __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.runtime.cudaGraphExecEventWaitNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_520cudaGraphExecEventWaitNodeSetEvent(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_520cudaGraphExecEventWaitNodeSetEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecEventWaitNodeSetEvent", 0);

  /* "cuda/bindings/runtime.pyx":30074
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30075
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30074
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30076
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30077
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30077, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30076
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30079
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cyhNode
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30079, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30080
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30080, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30082
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30083
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30082
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30084
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30085
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30085, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30084
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30087
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hNode};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30087, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30087, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30088
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30088, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30090
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30091
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30090
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L9;
  }

  /* "cuda/bindings/runtime.pyx":30092
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L10_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L10_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30093
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30093, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30092
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L9;
  }

  /* "cuda/bindings/runtime.pyx":30095
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hGraphExec};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30095, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30095, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L9:;

  /* "cuda/bindings/runtime.pyx":30096
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecEventWaitNodeSetEvent(cyhGraphExec, cyhNode, cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30096, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30097
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecEventWaitNodeSetEvent(cyhGraphExec, cyhNode, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30098
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:
 *         err = cyruntime.cudaGraphExecEventWaitNodeSetEvent(cyhGraphExec, cyhNode, cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecEventWaitNodeSetEvent(__pyx_v_cyhGraphExec, __pyx_v_cyhNode, __pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30098, __pyx_L13_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30097
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecEventWaitNodeSetEvent(cyhGraphExec, cyhNode, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L14;
        }
        __pyx_L13_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L14:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30099
 *     with nogil:
 *         err = cyruntime.cudaGraphExecEventWaitNodeSetEvent(cyhGraphExec, cyhNode, cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30099, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30041
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event):
 *     """ Sets the event for an event wait node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecEventWaitNodeSetEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30101
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Sets the parameters for an external semaphore signal node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_523cudaGraphExecExternalSemaphoresSignalNodeSetParams(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_7runtime_522cudaGraphExecExternalSemaphoresSignalNodeSetParams, "cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, cudaExternalSemaphoreSignalNodeParams nodeParams: Optional[cudaExternalSemaphoreSignalNodeParams])\n\nSets the parameters for an external semaphore signal node in the given graphExec.\n\nSets the parameters of an external semaphore signal node in an\nexecutable graph `hGraphExec`. The node is identified by the\ncorresponding node `hNode` in the non-executable graph, from which the\nexecutable graph was instantiated.\n\n`hNode` must not have been removed from the original graph.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `hNode` is also not modified by this call.\n\nChanging `nodeParams->numExtSems` is not supported.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    semaphore signal node from the graph from which graphExec was\n    instantiated\nnodeParams : :py:obj:`~.cudaExternalSemaphoreSignalNodeParams`\n    Updated Parameters to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresSignalNode`, :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresWaitNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInst""antiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_523cudaGraphExecExternalSemaphoresSignalNodeSetParams = {"cudaGraphExecExternalSemaphoresSignalNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_523cudaGraphExecExternalSemaphoresSignalNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_522cudaGraphExecExternalSemaphoresSignalNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_523cudaGraphExecExternalSemaphoresSignalNodeSetParams(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_hGraphExec = 0;
  PyObject *__pyx_v_hNode = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecExternalSemaphoresSignalNodeSetParams (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_hNode,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 30101, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30101, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30101, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30101, __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, "cudaGraphExecExternalSemaphoresSignalNodeSetParams", 0) < (0)) __PYX_ERR(0, 30101, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresSignalNodeSetParams", 1, 3, 3, i); __PYX_ERR(0, 30101, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 30101, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30101, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30101, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_hNode = values[1];
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresSignalNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 30101, __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.runtime.cudaGraphExecExternalSemaphoresSignalNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 30102, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_522cudaGraphExecExternalSemaphoresSignalNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams);

  /* 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_7runtime_522cudaGraphExecExternalSemaphoresSignalNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *__pyx_v_nodeParams) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  struct cudaExternalSemaphoreSignalNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaExternalSemaphoreSignalNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecExternalSemaphoresSignalNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":30138
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30139
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30138
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30140
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30141
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30140
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30143
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30143, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30143, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30144
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30144, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30146
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30147
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30146
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30148
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30149
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30148
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30151
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30151, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30151, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30152
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30152, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30153
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecExternalSemaphoresSignalNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":30154
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecExternalSemaphoresSignalNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30155
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExecExternalSemaphoresSignalNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecExternalSemaphoresSignalNodeSetParams(__pyx_v_cyhGraphExec, __pyx_v_cyhNode, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30155, __pyx_L10_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":30154
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecExternalSemaphoresSignalNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30156
 *     with nogil:
 *         err = cyruntime.cudaGraphExecExternalSemaphoresSignalNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 30156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 30156, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30101
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Sets the parameters for an external semaphore signal node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecExternalSemaphoresSignalNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30158
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Sets the parameters for an external semaphore wait node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_525cudaGraphExecExternalSemaphoresWaitNodeSetParams(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_7runtime_524cudaGraphExecExternalSemaphoresWaitNodeSetParams, "cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, cudaExternalSemaphoreWaitNodeParams nodeParams: Optional[cudaExternalSemaphoreWaitNodeParams])\n\nSets the parameters for an external semaphore wait node in the given graphExec.\n\nSets the parameters of an external semaphore wait node in an executable\ngraph `hGraphExec`. The node is identified by the corresponding node\n`hNode` in the non-executable graph, from which the executable graph\nwas instantiated.\n\n`hNode` must not have been removed from the original graph.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `hNode` is also not modified by this call.\n\nChanging `nodeParams->numExtSems` is not supported.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    semaphore wait node from the graph from which graphExec was\n    instantiated\nnodeParams : :py:obj:`~.cudaExternalSemaphoreWaitNodeParams`\n    Updated Parameters to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphExecNodeSetParams`, :py:obj:`~.cudaGraphAddExternalSemaphoresWaitNode`, :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync`, :py:obj:`~.cudaGraphExecKernelNodeSetParams`, :py:obj:`~.cudaGraphExecMemcpyNodeSetParams`, :py:obj:`~.cudaGraphExecMemsetNodeSetParams`, :py:obj:`~.cudaGraphExecHostNodeSetParams`, :py:obj:`~.cudaGraphExecChildGraphNodeSetParams`, :py:obj:`~.cudaGraphExecEventRecordNodeSetEvent`, :py:obj:`~.cudaGraphExecEventWaitNodeSetEvent`, :py:obj:`~.cudaGraphExecExternalSemaphoresSignalNodeSetParams`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_525cudaGraphExecExternalSemaphoresWaitNodeSetParams = {"cudaGraphExecExternalSemaphoresWaitNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_525cudaGraphExecExternalSemaphoresWaitNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_524cudaGraphExecExternalSemaphoresWaitNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_525cudaGraphExecExternalSemaphoresWaitNodeSetParams(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_hGraphExec = 0;
  PyObject *__pyx_v_hNode = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecExternalSemaphoresWaitNodeSetParams (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_hNode,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 30158, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30158, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30158, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30158, __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, "cudaGraphExecExternalSemaphoresWaitNodeSetParams", 0) < (0)) __PYX_ERR(0, 30158, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresWaitNodeSetParams", 1, 3, 3, i); __PYX_ERR(0, 30158, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 30158, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30158, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30158, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_hNode = values[1];
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecExternalSemaphoresWaitNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 30158, __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.runtime.cudaGraphExecExternalSemaphoresWaitNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 30159, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_524cudaGraphExecExternalSemaphoresWaitNodeSetParams(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_nodeParams);

  /* 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_7runtime_524cudaGraphExecExternalSemaphoresWaitNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *__pyx_v_nodeParams) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  struct cudaExternalSemaphoreWaitNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaExternalSemaphoreWaitNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecExternalSemaphoresWaitNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":30195
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30196
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30195
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30197
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30198
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30197
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30200
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30200, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30201
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30201, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30203
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30204
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30203
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30205
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30206
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30206, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30205
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30208
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30208, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30209
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30209, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30210
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecExternalSemaphoresWaitNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":30211
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecExternalSemaphoresWaitNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30212
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExecExternalSemaphoresWaitNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecExternalSemaphoresWaitNodeSetParams(__pyx_v_cyhGraphExec, __pyx_v_cyhNode, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30212, __pyx_L10_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":30211
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecExternalSemaphoresWaitNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30213
 *     with nogil:
 *         err = cyruntime.cudaGraphExecExternalSemaphoresWaitNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 30213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 30213, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30158
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Sets the parameters for an external semaphore wait node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecExternalSemaphoresWaitNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30215
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled):
 *     """ Enables or disables the specified node in the given graphExec.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_527cudaGraphNodeSetEnabled(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_7runtime_526cudaGraphNodeSetEnabled, "cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled)\n\nEnables or disables the specified node in the given graphExec.\n\nSets `hNode` to be either enabled or disabled. Disabled nodes are\nfunctionally equivalent to empty nodes until they are reenabled.\nExisting node parameters are not affected by disabling/enabling the\nnode.\n\nThe node is identified by the corresponding node `hNode` in the non-\nexecutable graph, from which the executable graph was instantiated.\n\n`hNode` must not have been removed from the original graph.\n\nThe modifications only affect future launches of `hGraphExec`. Already\nenqueued or running launches of `hGraphExec` are not affected by this\ncall. `hNode` is also not modified by this call.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node from the graph from which graphExec was instantiated\nisEnabled : unsigned int\n    Node is enabled if != 0, otherwise the node is disabled\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeGetEnabled`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate` :py:obj:`~.cudaGraphLaunch`\n\nNotes\n-----\nCurrently only kernel, memset and memcpy nodes are supported.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_527cudaGraphNodeSetEnabled = {"cudaGraphNodeSetEnabled", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_527cudaGraphNodeSetEnabled, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_526cudaGraphNodeSetEnabled};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_527cudaGraphNodeSetEnabled(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_hGraphExec = 0;
  PyObject *__pyx_v_hNode = 0;
  unsigned int __pyx_v_isEnabled;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphNodeSetEnabled (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_hNode,&__pyx_mstate_global->__pyx_n_u_isEnabled_2,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, 30215, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30215, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30215, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30215, __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, "cudaGraphNodeSetEnabled", 0) < (0)) __PYX_ERR(0, 30215, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetEnabled", 1, 3, 3, i); __PYX_ERR(0, 30215, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 30215, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30215, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30215, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_hNode = values[1];
    __pyx_v_isEnabled = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_isEnabled == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30216, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetEnabled", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 30215, __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.runtime.cudaGraphNodeSetEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_526cudaGraphNodeSetEnabled(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode, __pyx_v_isEnabled);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_526cudaGraphNodeSetEnabled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode, unsigned int __pyx_v_isEnabled) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeSetEnabled", 0);

  /* "cuda/bindings/runtime.pyx":30256
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30257
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30256
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30258
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30259
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30258
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30261
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30261, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30262
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30262, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30264
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30265
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30264
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30266
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30267
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30266
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30269
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30269, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30269, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30270
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeSetEnabled(cyhGraphExec, cyhNode, isEnabled)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30270, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30271
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeSetEnabled(cyhGraphExec, cyhNode, isEnabled)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30272
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeSetEnabled(cyhGraphExec, cyhNode, isEnabled)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeSetEnabled(__pyx_v_cyhGraphExec, __pyx_v_cyhNode, __pyx_v_isEnabled); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30272, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30271
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeSetEnabled(cyhGraphExec, cyhNode, isEnabled)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30273
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeSetEnabled(cyhGraphExec, cyhNode, isEnabled)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30273, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30215
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled):
 *     """ Enables or disables the specified node in the given graphExec.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeSetEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30275
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetEnabled(hGraphExec, hNode):
 *     """ Query whether a node in the given graphExec is enabled.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_529cudaGraphNodeGetEnabled(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_7runtime_528cudaGraphNodeGetEnabled, "cudaGraphNodeGetEnabled(hGraphExec, hNode)\n\nQuery whether a node in the given graphExec is enabled.\n\nSets isEnabled to 1 if `hNode` is enabled, or 0 if `hNode` is disabled.\n\nThe node is identified by the corresponding node `hNode` in the non-\nexecutable graph, from which the executable graph was instantiated.\n\n`hNode` must not have been removed from the original graph.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to set the specified node\nhNode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node from the graph from which graphExec was instantiated\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\nisEnabled : unsigned int\n    Location to return the enabled status of the node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphNodeSetEnabled`, :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate` :py:obj:`~.cudaGraphLaunch`\n\nNotes\n-----\nCurrently only kernel, memset and memcpy nodes are supported.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_529cudaGraphNodeGetEnabled = {"cudaGraphNodeGetEnabled", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_529cudaGraphNodeGetEnabled, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_528cudaGraphNodeGetEnabled};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_529cudaGraphNodeGetEnabled(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_hGraphExec = 0;
  PyObject *__pyx_v_hNode = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphNodeGetEnabled (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_hNode,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, 30275, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30275, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30275, __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, "cudaGraphNodeGetEnabled", 0) < (0)) __PYX_ERR(0, 30275, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetEnabled", 1, 2, 2, i); __PYX_ERR(0, 30275, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 30275, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30275, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_hNode = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeGetEnabled", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 30275, __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.runtime.cudaGraphNodeGetEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_528cudaGraphNodeGetEnabled(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hNode);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_528cudaGraphNodeGetEnabled(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hNode) {
  cudaGraphNode_t __pyx_v_cyhNode;
  PyObject *__pyx_v_phNode = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  unsigned int __pyx_v_isEnabled;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeGetEnabled", 0);

  /* "cuda/bindings/runtime.pyx":30309
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_hNode == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30310
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:
 *         phNode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phNode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30309
 *     """
 *     cdef cyruntime.cudaGraphNode_t cyhNode
 *     if hNode is None:             # <<<<<<<<<<<<<<
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30311
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hNode, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30312
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):
 *         phNode = int(hNode)             # <<<<<<<<<<<<<<
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hNode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30312, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phNode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30311
 *     if hNode is None:
 *         phNode = 0
 *     elif isinstance(hNode, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         phNode = int(hNode)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30314
 *         phNode = int(hNode)
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))             # <<<<<<<<<<<<<<
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hNode};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30314, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30314, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phNode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30315
 *     else:
 *         phNode = int(cudaGraphNode_t(hNode))
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phNode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30315, __pyx_L1_error)
  __pyx_v_cyhNode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30317
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30318
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30317
 *     cyhNode = <cyruntime.cudaGraphNode_t><void_ptr>phNode
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30319
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30320
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30319
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30322
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef unsigned int isEnabled = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30322, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30323
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef unsigned int isEnabled = 0
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30323, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30324
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef unsigned int isEnabled = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetEnabled(cyhGraphExec, cyhNode, &isEnabled)
*/
  __pyx_v_isEnabled = 0;

  /* "cuda/bindings/runtime.pyx":30325
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef unsigned int isEnabled = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetEnabled(cyhGraphExec, cyhNode, &isEnabled)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30326
 *     cdef unsigned int isEnabled = 0
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetEnabled(cyhGraphExec, cyhNode, &isEnabled)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetEnabled(__pyx_v_cyhGraphExec, __pyx_v_cyhNode, (&__pyx_v_isEnabled)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30326, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30325
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef unsigned int isEnabled = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeGetEnabled(cyhGraphExec, cyhNode, &isEnabled)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30327
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetEnabled(cyhGraphExec, cyhNode, &isEnabled)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], isEnabled)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30328
 *         err = cyruntime.cudaGraphNodeGetEnabled(cyhGraphExec, cyhNode, &isEnabled)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], isEnabled)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30328, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 30328, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":30327
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeGetEnabled(cyhGraphExec, cyhNode, &isEnabled)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], isEnabled)
*/
  }

  /* "cuda/bindings/runtime.pyx":30329
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], isEnabled)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_isEnabled); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 30329, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_8) != (0)) __PYX_ERR(0, 30329, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30275
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetEnabled(hGraphExec, hNode):
 *     """ Query whether a node in the given graphExec is enabled.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeGetEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phNode);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30331
 *     return (_dict_cudaError_t[err], isEnabled)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecUpdate(hGraphExec, hGraph):
 *     """ Check whether an executable graph can be updated with a graph and perform the update if possible.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_531cudaGraphExecUpdate(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_7runtime_530cudaGraphExecUpdate, "cudaGraphExecUpdate(hGraphExec, hGraph)\n\nCheck whether an executable graph can be updated with a graph and perform the update if possible.\n\nUpdates the node parameters in the instantiated graph specified by\n`hGraphExec` with the node parameters in a topologically identical\ngraph specified by `hGraph`.\n\nLimitations:\n\n- Kernel nodes:\n\n  - The owning context of the function cannot change.\n\n  - A node whose function originally did not use CUDA dynamic\n    parallelism cannot be updated to a function which uses CDP.\n\n  - A node whose function originally did not make device-side update\n    calls cannot be updated to a function which makes device-side\n    update calls.\n\n  - A cooperative node cannot be updated to a non-cooperative node, and\n    vice-versa.\n\n  - If the graph was instantiated with\n    cudaGraphInstantiateFlagUseNodePriority, the priority attribute\n    cannot change. Equality is checked on the originally requested\n    priority values, before they are clamped to the device's supported\n    range.\n\n  - If `hGraphExec` was not instantiated for device launch, a node\n    whose function originally did not use device-side\n    :py:obj:`~.cudaGraphLaunch()` cannot be updated to a function which\n    uses device-side :py:obj:`~.cudaGraphLaunch()` unless the node\n    resides on the same device as nodes which contained such calls at\n    instantiate-time. If no such calls were present at instantiation,\n    these updates cannot be performed at all.\n\n  - Neither `hGraph` nor `hGraphExec` may contain device-updatable\n    kernel nodes.\n\n- Memset and memcpy nodes:\n\n  - The CUDA device(s) to which the operand(s) was allocated/mapped\n    cannot change.\n\n  - The source/destination memory must be allocated from the same\n    contexts as the original source/destination memory.\n\n  - For 2d memsets, only address and assigned value may be updated.\n\n  - For 1d memsets, updating dimensions is also allowed, but may fail\n    if the resulting"" operation doesn't map onto the work resources\n    already allocated for the node.\n\n- Additional memcpy node restrictions:\n\n  - Changing either the source or destination memory type(i.e.\n    CU_MEMORYTYPE_DEVICE, CU_MEMORYTYPE_ARRAY, etc.) is not supported.\n\n- Conditional nodes:\n\n  - Changing node parameters is not supported.\n\n  - Changing parameters of nodes within the conditional body graph is\n    subject to the rules above.\n\n  - Conditional handle flags and default values are updated as part of\n    the graph update.\n\nNote: The API may add further restrictions in future releases. The\nreturn code should always be checked.\n\ncudaGraphExecUpdate sets the result member of `resultInfo` to\ncudaGraphExecUpdateErrorTopologyChanged under the following conditions:\n\n- The count of nodes directly in `hGraphExec` and `hGraph` differ, in\n  which case resultInfo->errorNode is set to NULL.\n\n- `hGraph` has more exit nodes than `hGraph`, in which case\n  resultInfo->errorNode is set to one of the exit nodes in hGraph.\n\n- A node in `hGraph` has a different number of dependencies than the\n  node from `hGraphExec` it is paired with, in which case\n  resultInfo->errorNode is set to the node from `hGraph`.\n\n- A node in `hGraph` has a dependency that does not match with the\n  corresponding dependency of the paired node from `hGraphExec`.\n  resultInfo->errorNode will be set to the node from `hGraph`.\n  resultInfo->errorFromNode will be set to the mismatched dependency.\n  The dependencies are paired based on edge order and a dependency does\n  not match when the nodes are already paired based on other edges\n  examined in the graph.\n\ncudaGraphExecUpdate sets `the` result member of `resultInfo` to:\n\n- cudaGraphExecUpdateError if passed an invalid value.\n\n- cudaGraphExecUpdateErrorTopologyChanged if the graph topology changed\n\n- cudaGraphExecUpdateErrorNodeTypeChanged if the type of a node\n  changed, in which case `hErrorNode_out` is set to the nod""e from\n  `hGraph`.\n\n- cudaGraphExecUpdateErrorFunctionChanged if the function of a kernel\n  node changed (CUDA driver < 11.2)\n\n- cudaGraphExecUpdateErrorUnsupportedFunctionChange if the func field\n  of a kernel changed in an unsupported way(see note above), in which\n  case `hErrorNode_out` is set to the node from `hGraph`\n\n- cudaGraphExecUpdateErrorParametersChanged if any parameters to a node\n  changed in a way that is not supported, in which case\n  `hErrorNode_out` is set to the node from `hGraph`\n\n- cudaGraphExecUpdateErrorAttributesChanged if any attributes of a node\n  changed in a way that is not supported, in which case\n  `hErrorNode_out` is set to the node from `hGraph`\n\n- cudaGraphExecUpdateErrorNotSupported if something about a node is\n  unsupported, like the node's type or configuration, in which case\n  `hErrorNode_out` is set to the node from `hGraph`\n\nIf the update fails for a reason not listed above, the result member of\n`resultInfo` will be set to cudaGraphExecUpdateError. If the update\nsucceeds, the result member will be set to cudaGraphExecUpdateSuccess.\n\ncudaGraphExecUpdate returns cudaSuccess when the updated was performed\nsuccessfully. It returns cudaErrorGraphExecUpdateFailure if the graph\nupdate was not performed because it included changes which violated\nconstraints specific to instantiated graph update.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The instantiated graph to be updated\nhGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    The graph containing the updated parameters\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorGraphExecUpdateFailure`,\nresultInfo : :py:obj:`~.cudaGraphExecUpdateResultInfo`\n    the error info structure\n\nSee Also\n--------\n:py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_531cudaGraphExecUpdate = {"cudaGraphExecUpdate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_531cudaGraphExecUpdate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_530cudaGraphExecUpdate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_531cudaGraphExecUpdate(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_hGraphExec = 0;
  PyObject *__pyx_v_hGraph = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecUpdate (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_hGraphExec,&__pyx_mstate_global->__pyx_n_u_hGraph,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, 30331, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30331, __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, "cudaGraphExecUpdate", 0) < (0)) __PYX_ERR(0, 30331, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecUpdate", 1, 2, 2, i); __PYX_ERR(0, 30331, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 30331, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30331, __pyx_L3_error)
    }
    __pyx_v_hGraphExec = values[0];
    __pyx_v_hGraph = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecUpdate", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 30331, __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.runtime.cudaGraphExecUpdate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_530cudaGraphExecUpdate(__pyx_self, __pyx_v_hGraphExec, __pyx_v_hGraph);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_530cudaGraphExecUpdate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hGraphExec, PyObject *__pyx_v_hGraph) {
  cudaGraph_t __pyx_v_cyhGraph;
  PyObject *__pyx_v_phGraph = NULL;
  cudaGraphExec_t __pyx_v_cyhGraphExec;
  PyObject *__pyx_v_phGraphExec = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo *__pyx_v_resultInfo = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecUpdate", 0);

  /* "cuda/bindings/runtime.pyx":30482
 *     """
 *     cdef cyruntime.cudaGraph_t cyhGraph
 *     if hGraph is None:             # <<<<<<<<<<<<<<
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_hGraph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30483
 *     cdef cyruntime.cudaGraph_t cyhGraph
 *     if hGraph is None:
 *         phGraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):
 *         phGraph = int(hGraph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30482
 *     """
 *     cdef cyruntime.cudaGraph_t cyhGraph
 *     if hGraph is None:             # <<<<<<<<<<<<<<
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30484
 *     if hGraph is None:
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         phGraph = int(hGraph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30485
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):
 *         phGraph = int(hGraph)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraph = int(cudaGraph_t(hGraph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hGraph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30485, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phGraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30484
 *     if hGraph is None:
 *         phGraph = 0
 *     elif isinstance(hGraph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         phGraph = int(hGraph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30487
 *         phGraph = int(hGraph)
 *     else:
 *         phGraph = int(cudaGraph_t(hGraph))             # <<<<<<<<<<<<<<
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hGraph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30487, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30487, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phGraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30488
 *     else:
 *         phGraph = int(cudaGraph_t(hGraph))
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30488, __pyx_L1_error)
  __pyx_v_cyhGraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30490
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_hGraphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30491
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:
 *         phGraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phGraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30490
 *     cyhGraph = <cyruntime.cudaGraph_t><void_ptr>phGraph
 *     cdef cyruntime.cudaGraphExec_t cyhGraphExec
 *     if hGraphExec is None:             # <<<<<<<<<<<<<<
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30492
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hGraphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30493
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         phGraphExec = int(hGraphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_hGraphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30492
 *     if hGraphExec is None:
 *         phGraphExec = 0
 *     elif isinstance(hGraphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         phGraphExec = int(hGraphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30495
 *         phGraphExec = int(hGraphExec)
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))             # <<<<<<<<<<<<<<
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_hGraphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30495, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_phGraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30496
 *     else:
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec             # <<<<<<<<<<<<<<
 *     cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phGraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30496, __pyx_L1_error)
  __pyx_v_cyhGraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30497
 *         phGraphExec = int(cudaGraphExec_t(hGraphExec))
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecUpdate(cyhGraphExec, cyhGraph, <cyruntime.cudaGraphExecUpdateResultInfo*>resultInfo._pvt_ptr)
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30497, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_resultInfo = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":30498
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecUpdate(cyhGraphExec, cyhGraph, <cyruntime.cudaGraphExecUpdateResultInfo*>resultInfo._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30499
 *     cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo()
 *     with nogil:
 *         err = cyruntime.cudaGraphExecUpdate(cyhGraphExec, cyhGraph, <cyruntime.cudaGraphExecUpdateResultInfo*>resultInfo._pvt_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecUpdate(__pyx_v_cyhGraphExec, __pyx_v_cyhGraph, ((cudaGraphExecUpdateResultInfo *)__pyx_v_resultInfo->__pyx_base._pvt_ptr)); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30499, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30498
 *     cyhGraphExec = <cyruntime.cudaGraphExec_t><void_ptr>phGraphExec
 *     cdef cudaGraphExecUpdateResultInfo resultInfo = cudaGraphExecUpdateResultInfo()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecUpdate(cyhGraphExec, cyhGraph, <cyruntime.cudaGraphExecUpdateResultInfo*>resultInfo._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30500
 *     with nogil:
 *         err = cyruntime.cudaGraphExecUpdate(cyhGraphExec, cyhGraph, <cyruntime.cudaGraphExecUpdateResultInfo*>resultInfo._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resultInfo)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30501
 *         err = cyruntime.cudaGraphExecUpdate(cyhGraphExec, cyhGraph, <cyruntime.cudaGraphExecUpdateResultInfo*>resultInfo._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], resultInfo)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30501, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 30501, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":30500
 *     with nogil:
 *         err = cyruntime.cudaGraphExecUpdate(cyhGraphExec, cyhGraph, <cyruntime.cudaGraphExecUpdateResultInfo*>resultInfo._pvt_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resultInfo)
*/
  }

  /* "cuda/bindings/runtime.pyx":30502
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resultInfo)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 30502, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_resultInfo);
  __Pyx_GIVEREF((PyObject *)__pyx_v_resultInfo);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_resultInfo)) != (0)) __PYX_ERR(0, 30502, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30331
 *     return (_dict_cudaError_t[err], isEnabled)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecUpdate(hGraphExec, hGraph):
 *     """ Check whether an executable graph can be updated with a graph and perform the update if possible.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecUpdate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phGraph);
  __Pyx_XDECREF(__pyx_v_phGraphExec);
  __Pyx_XDECREF((PyObject *)__pyx_v_resultInfo);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30504
 *     return (_dict_cudaError_t[err], resultInfo)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphUpload(graphExec, stream):
 *     """ Uploads an executable graph in a stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_533cudaGraphUpload(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_7runtime_532cudaGraphUpload, "cudaGraphUpload(graphExec, stream)\n\nUploads an executable graph in a stream.\n\nUploads `hGraphExec` to the device in `hStream` without executing it.\nUploads of the same `hGraphExec` will be serialized. Each upload is\nordered behind both any previous work in `hStream` and any previous\nlaunches of `hGraphExec`. Uses memory cached by `stream` to back the\nallocations owned by `graphExec`.\n\nParameters\n----------\nhGraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    Executable graph to upload\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream in which to upload the graph\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`,\n\nSee Also\n--------\n:py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphLaunch`, :py:obj:`~.cudaGraphExecDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_533cudaGraphUpload = {"cudaGraphUpload", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_533cudaGraphUpload, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_532cudaGraphUpload};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_533cudaGraphUpload(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_graphExec = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphUpload (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_graphExec,&__pyx_mstate_global->__pyx_n_u_stream,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, 30504, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30504, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30504, __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, "cudaGraphUpload", 0) < (0)) __PYX_ERR(0, 30504, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphUpload", 1, 2, 2, i); __PYX_ERR(0, 30504, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 30504, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30504, __pyx_L3_error)
    }
    __pyx_v_graphExec = values[0];
    __pyx_v_stream = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphUpload", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 30504, __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.runtime.cudaGraphUpload", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_532cudaGraphUpload(__pyx_self, __pyx_v_graphExec, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_532cudaGraphUpload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaGraphExec_t __pyx_v_cygraphExec;
  PyObject *__pyx_v_pgraphExec = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphUpload", 0);

  /* "cuda/bindings/runtime.pyx":30531
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30532
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30531
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30533
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30534
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30533
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30536
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30536, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30537
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30537, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30539
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_graphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30540
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:
 *         pgraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30539
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30541
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30542
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30542, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30541
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30544
 *         pgraphExec = int(graphExec)
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))             # <<<<<<<<<<<<<<
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_graphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30544, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30545
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphUpload(cygraphExec, cystream)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30545, __pyx_L1_error)
  __pyx_v_cygraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30546
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphUpload(cygraphExec, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30547
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:
 *         err = cyruntime.cudaGraphUpload(cygraphExec, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphUpload(__pyx_v_cygraphExec, __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30547, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30546
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphUpload(cygraphExec, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30548
 *     with nogil:
 *         err = cyruntime.cudaGraphUpload(cygraphExec, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30548, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30504
 *     return (_dict_cudaError_t[err], resultInfo)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphUpload(graphExec, stream):
 *     """ Uploads an executable graph in a stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphUpload", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pgraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30550
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphLaunch(graphExec, stream):
 *     """ Launches an executable graph in a stream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_535cudaGraphLaunch(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_7runtime_534cudaGraphLaunch, "cudaGraphLaunch(graphExec, stream)\n\nLaunches an executable graph in a stream.\n\nExecutes `graphExec` in `stream`. Only one instance of `graphExec` may\nbe executing at a time. Each launch is ordered behind both any previous\nwork in `stream` and any previous launches of `graphExec`. To execute a\ngraph concurrently, it must be instantiated multiple times into\nmultiple executable graphs.\n\nIf any allocations created by `graphExec` remain unfreed (from a\nprevious launch) and `graphExec` was not instantiated with\n:py:obj:`~.cudaGraphInstantiateFlagAutoFreeOnLaunch`, the launch will\nfail with :py:obj:`~.cudaErrorInvalidValue`.\n\nParameters\n----------\ngraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    Executable graph to launch\nstream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream in which to launch the graph\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphUpload`, :py:obj:`~.cudaGraphExecDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_535cudaGraphLaunch = {"cudaGraphLaunch", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_535cudaGraphLaunch, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_534cudaGraphLaunch};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_535cudaGraphLaunch(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_graphExec = 0;
  PyObject *__pyx_v_stream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphLaunch (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_graphExec,&__pyx_mstate_global->__pyx_n_u_stream,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, 30550, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30550, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30550, __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, "cudaGraphLaunch", 0) < (0)) __PYX_ERR(0, 30550, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphLaunch", 1, 2, 2, i); __PYX_ERR(0, 30550, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 30550, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30550, __pyx_L3_error)
    }
    __pyx_v_graphExec = values[0];
    __pyx_v_stream = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphLaunch", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 30550, __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.runtime.cudaGraphLaunch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_534cudaGraphLaunch(__pyx_self, __pyx_v_graphExec, __pyx_v_stream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_534cudaGraphLaunch(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_stream) {
  cudaStream_t __pyx_v_cystream;
  PyObject *__pyx_v_pstream = NULL;
  cudaGraphExec_t __pyx_v_cygraphExec;
  PyObject *__pyx_v_pgraphExec = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphLaunch", 0);

  /* "cuda/bindings/runtime.pyx":30582
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_stream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30583
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:
 *         pstream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pstream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30582
 *     """
 *     cdef cyruntime.cudaStream_t cystream
 *     if stream is None:             # <<<<<<<<<<<<<<
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30584
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_stream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30585
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):
 *         pstream = int(stream)             # <<<<<<<<<<<<<<
 *     else:
 *         pstream = int(cudaStream_t(stream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pstream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30584
 *     if stream is None:
 *         pstream = 0
 *     elif isinstance(stream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         pstream = int(stream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30587
 *         pstream = int(stream)
 *     else:
 *         pstream = int(cudaStream_t(stream))             # <<<<<<<<<<<<<<
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_stream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30587, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pstream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30588
 *     else:
 *         pstream = int(cudaStream_t(stream))
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pstream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30588, __pyx_L1_error)
  __pyx_v_cystream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30590
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_graphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30591
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:
 *         pgraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30590
 *     cystream = <cyruntime.cudaStream_t><void_ptr>pstream
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30592
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30593
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30593, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30592
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30595
 *         pgraphExec = int(graphExec)
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))             # <<<<<<<<<<<<<<
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_graphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30595, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30596
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphLaunch(cygraphExec, cystream)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30596, __pyx_L1_error)
  __pyx_v_cygraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30597
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphLaunch(cygraphExec, cystream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30598
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:
 *         err = cyruntime.cudaGraphLaunch(cygraphExec, cystream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphLaunch(__pyx_v_cygraphExec, __pyx_v_cystream); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30598, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30597
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphLaunch(cygraphExec, cystream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30599
 *     with nogil:
 *         err = cyruntime.cudaGraphLaunch(cygraphExec, cystream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30599, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30550
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphLaunch(graphExec, stream):
 *     """ Launches an executable graph in a stream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphLaunch", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pstream);
  __Pyx_XDECREF(__pyx_v_pgraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30601
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecDestroy(graphExec):
 *     """ Destroys an executable graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_537cudaGraphExecDestroy(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_7runtime_536cudaGraphExecDestroy, "cudaGraphExecDestroy(graphExec)\n\nDestroys an executable graph.\n\nDestroys the executable graph specified by `graphExec`.\n\nParameters\n----------\ngraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    Executable graph to destroy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphInstantiate`, :py:obj:`~.cudaGraphUpload`, :py:obj:`~.cudaGraphLaunch`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_537cudaGraphExecDestroy = {"cudaGraphExecDestroy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_537cudaGraphExecDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_536cudaGraphExecDestroy};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_537cudaGraphExecDestroy(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_graphExec = 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("cudaGraphExecDestroy (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_graphExec,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, 30601, __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, 30601, __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, "cudaGraphExecDestroy", 0) < (0)) __PYX_ERR(0, 30601, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecDestroy", 1, 1, 1, i); __PYX_ERR(0, 30601, __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, 30601, __pyx_L3_error)
    }
    __pyx_v_graphExec = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 30601, __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.runtime.cudaGraphExecDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_536cudaGraphExecDestroy(__pyx_self, __pyx_v_graphExec);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_536cudaGraphExecDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec) {
  cudaGraphExec_t __pyx_v_cygraphExec;
  PyObject *__pyx_v_pgraphExec = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecDestroy", 0);

  /* "cuda/bindings/runtime.pyx":30622
 *     """
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_graphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30623
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:
 *         pgraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30622
 *     """
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30624
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30625
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30624
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30627
 *         pgraphExec = int(graphExec)
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))             # <<<<<<<<<<<<<<
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graphExec};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30627, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30628
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecDestroy(cygraphExec)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30628, __pyx_L1_error)
  __pyx_v_cygraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30629
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecDestroy(cygraphExec)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30630
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:
 *         err = cyruntime.cudaGraphExecDestroy(cygraphExec)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecDestroy(__pyx_v_cygraphExec); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30630, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30629
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecDestroy(cygraphExec)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30631
 *     with nogil:
 *         err = cyruntime.cudaGraphExecDestroy(cygraphExec)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30631, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30601
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecDestroy(graphExec):
 *     """ Destroys an executable graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30633
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDestroy(graph):
 *     """ Destroys a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_539cudaGraphDestroy(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_7runtime_538cudaGraphDestroy, "cudaGraphDestroy(graph)\n\nDestroys a graph.\n\nDestroys the graph specified by `graph`, as well as all of its nodes.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to destroy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_539cudaGraphDestroy = {"cudaGraphDestroy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_539cudaGraphDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_538cudaGraphDestroy};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_539cudaGraphDestroy(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_graph = 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("cudaGraphDestroy (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_graph_2,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, 30633, __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, 30633, __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, "cudaGraphDestroy", 0) < (0)) __PYX_ERR(0, 30633, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphDestroy", 1, 1, 1, i); __PYX_ERR(0, 30633, __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, 30633, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 30633, __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.runtime.cudaGraphDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_538cudaGraphDestroy(__pyx_self, __pyx_v_graph);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_538cudaGraphDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphDestroy", 0);

  /* "cuda/bindings/runtime.pyx":30654
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30655
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30654
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30656
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30657
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30656
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30659
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30659, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30660
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphDestroy(cygraph)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30660, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30661
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphDestroy(cygraph)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30662
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:
 *         err = cyruntime.cudaGraphDestroy(cygraph)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDestroy(__pyx_v_cygraph); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30662, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30661
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphDestroy(cygraph)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30663
 *     with nogil:
 *         err = cyruntime.cudaGraphDestroy(cygraph)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30663, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30633
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDestroy(graph):
 *     """ Destroys a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30665
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags):
 *     """ Write a DOT file describing graph structure.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_541cudaGraphDebugDotPrint(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_7runtime_540cudaGraphDebugDotPrint, "cudaGraphDebugDotPrint(graph, char *path, unsigned int flags)\n\nWrite a DOT file describing graph structure.\n\nUsing the provided `graph`, write to `path` a DOT formatted description\nof the graph. By default this includes the graph topology, node types,\nnode id, kernel names and memcpy direction. `flags` can be specified to\nwrite more detailed information about each node type such as parameter\nvalues, kernel attributes, node and function handles.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    The graph to create a DOT file from\npath : bytes\n    The path to write the DOT file to\nflags : unsigned int\n    Flags from cudaGraphDebugDotFlags for specifying which additional\n    node information to write\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorOperatingSystem`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_541cudaGraphDebugDotPrint = {"cudaGraphDebugDotPrint", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_541cudaGraphDebugDotPrint, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_540cudaGraphDebugDotPrint};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_541cudaGraphDebugDotPrint(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_graph = 0;
  char *__pyx_v_path;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphDebugDotPrint (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_graph_2,&__pyx_mstate_global->__pyx_n_u_path,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 30665, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30665, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30665, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30665, __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, "cudaGraphDebugDotPrint", 0) < (0)) __PYX_ERR(0, 30665, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphDebugDotPrint", 1, 3, 3, i); __PYX_ERR(0, 30665, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 30665, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30665, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30665, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_path = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!__pyx_v_path) && PyErr_Occurred())) __PYX_ERR(0, 30666, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30666, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphDebugDotPrint", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 30665, __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.runtime.cudaGraphDebugDotPrint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_540cudaGraphDebugDotPrint(__pyx_self, __pyx_v_graph, __pyx_v_path, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_540cudaGraphDebugDotPrint(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, char *__pyx_v_path, unsigned int __pyx_v_flags) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphDebugDotPrint", 0);

  /* "cuda/bindings/runtime.pyx":30691
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30692
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30691
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30693
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30694
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30693
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30696
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30696, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30697
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphDebugDotPrint(cygraph, path, flags)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30697, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30698
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphDebugDotPrint(cygraph, path, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30699
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:
 *         err = cyruntime.cudaGraphDebugDotPrint(cygraph, path, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDebugDotPrint(__pyx_v_cygraph, __pyx_v_path, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30699, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30698
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphDebugDotPrint(cygraph, path, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30700
 *     with nogil:
 *         err = cyruntime.cudaGraphDebugDotPrint(cygraph, path, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30700, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30665
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags):
 *     """ Write a DOT file describing graph structure.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphDebugDotPrint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30702
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags):
 *     """ Create a user object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_543cudaUserObjectCreate(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_7runtime_542cudaUserObjectCreate, "cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags)\n\nCreate a user object.\n\nCreate a user object with the specified destructor callback and initial\nreference count. The initial references are owned by the caller.\n\nDestructor callbacks cannot make CUDA API calls and should avoid\nblocking behavior, as they are executed by a shared internal thread.\nAnother thread may be signaled to perform such actions, if it does not\nblock forward progress of tasks scheduled through CUDA.\n\nSee CUDA User Objects in the CUDA C++ Programming Guide for more\ninformation on user objects.\n\nParameters\n----------\nptr : Any\n    The pointer to pass to the destroy function\ndestroy : :py:obj:`~.cudaHostFn_t`\n    Callback to free the user object when it is no longer in use\ninitialRefcount : unsigned int\n    The initial refcount to create the object with, typically 1. The\n    initial references are owned by the calling thread.\nflags : unsigned int\n    Currently it is required to pass\n    :py:obj:`~.cudaUserObjectNoDestructorSync`, which is the only\n    defined flag. This indicates that the destroy callback cannot be\n    waited on by any CUDA API. Users requiring synchronization of the\n    callback should signal its completion manually.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nobject_out : :py:obj:`~.cudaUserObject_t`\n    Location to return the user object handle\n\nSee Also\n--------\n:py:obj:`~.cudaUserObjectRetain`, :py:obj:`~.cudaUserObjectRelease`, :py:obj:`~.cudaGraphRetainUserObject`, :py:obj:`~.cudaGraphReleaseUserObject`, :py:obj:`~.cudaGraphCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_543cudaUserObjectCreate = {"cudaUserObjectCreate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_543cudaUserObjectCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_542cudaUserObjectCreate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_543cudaUserObjectCreate(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_ptr = 0;
  PyObject *__pyx_v_destroy = 0;
  unsigned int __pyx_v_initialRefcount;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaUserObjectCreate (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_ptr,&__pyx_mstate_global->__pyx_n_u_destroy,&__pyx_mstate_global->__pyx_n_u_initialRefcount,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 30702, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 30702, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30702, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30702, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30702, __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, "cudaUserObjectCreate", 0) < (0)) __PYX_ERR(0, 30702, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaUserObjectCreate", 1, 4, 4, i); __PYX_ERR(0, 30702, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 30702, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30702, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30702, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 30702, __pyx_L3_error)
    }
    __pyx_v_ptr = values[0];
    __pyx_v_destroy = values[1];
    __pyx_v_initialRefcount = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_initialRefcount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30703, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30703, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaUserObjectCreate", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 30702, __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.runtime.cudaUserObjectCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_542cudaUserObjectCreate(__pyx_self, __pyx_v_ptr, __pyx_v_destroy, __pyx_v_initialRefcount, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_542cudaUserObjectCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr, PyObject *__pyx_v_destroy, unsigned int __pyx_v_initialRefcount, unsigned int __pyx_v_flags) {
  cudaHostFn_t __pyx_v_cydestroy;
  PyObject *__pyx_v_pdestroy = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t *__pyx_v_object_out = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyptr = NULL;
  void *__pyx_v_cyptr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaUserObjectCreate", 0);

  /* "cuda/bindings/runtime.pyx":30745
 *     """
 *     cdef cyruntime.cudaHostFn_t cydestroy
 *     if destroy is None:             # <<<<<<<<<<<<<<
 *         pdestroy = 0
 *     elif isinstance(destroy, (cudaHostFn_t,)):
*/
  __pyx_t_1 = (__pyx_v_destroy == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30746
 *     cdef cyruntime.cudaHostFn_t cydestroy
 *     if destroy is None:
 *         pdestroy = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(destroy, (cudaHostFn_t,)):
 *         pdestroy = int(destroy)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdestroy = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30745
 *     """
 *     cdef cyruntime.cudaHostFn_t cydestroy
 *     if destroy is None:             # <<<<<<<<<<<<<<
 *         pdestroy = 0
 *     elif isinstance(destroy, (cudaHostFn_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30747
 *     if destroy is None:
 *         pdestroy = 0
 *     elif isinstance(destroy, (cudaHostFn_t,)):             # <<<<<<<<<<<<<<
 *         pdestroy = int(destroy)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_destroy, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30748
 *         pdestroy = 0
 *     elif isinstance(destroy, (cudaHostFn_t,)):
 *         pdestroy = int(destroy)             # <<<<<<<<<<<<<<
 *     else:
 *         pdestroy = int(cudaHostFn_t(destroy))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_destroy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30748, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pdestroy = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":30747
 *     if destroy is None:
 *         pdestroy = 0
 *     elif isinstance(destroy, (cudaHostFn_t,)):             # <<<<<<<<<<<<<<
 *         pdestroy = int(destroy)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30750
 *         pdestroy = int(destroy)
 *     else:
 *         pdestroy = int(cudaHostFn_t(destroy))             # <<<<<<<<<<<<<<
 *     cydestroy = <cyruntime.cudaHostFn_t><void_ptr>pdestroy
 *     cdef cudaUserObject_t object_out = cudaUserObject_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_destroy};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30750, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30750, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pdestroy = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30751
 *     else:
 *         pdestroy = int(cudaHostFn_t(destroy))
 *     cydestroy = <cyruntime.cudaHostFn_t><void_ptr>pdestroy             # <<<<<<<<<<<<<<
 *     cdef cudaUserObject_t object_out = cudaUserObject_t()
 *     cyptr = _HelperInputVoidPtr(ptr)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdestroy); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30751, __pyx_L1_error)
  __pyx_v_cydestroy = ((cudaHostFn_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":30752
 *         pdestroy = int(cudaHostFn_t(destroy))
 *     cydestroy = <cyruntime.cudaHostFn_t><void_ptr>pdestroy
 *     cdef cudaUserObject_t object_out = cudaUserObject_t()             # <<<<<<<<<<<<<<
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30752, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_object_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":30753
 *     cydestroy = <cyruntime.cudaHostFn_t><void_ptr>pdestroy
 *     cdef cudaUserObject_t object_out = cudaUserObject_t()
 *     cyptr = _HelperInputVoidPtr(ptr)             # <<<<<<<<<<<<<<
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ptr};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30753, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_cyptr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":30754
 *     cdef cudaUserObject_t object_out = cudaUserObject_t()
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaUserObjectCreate(<cyruntime.cudaUserObject_t*>object_out._pvt_ptr, cyptr_ptr, cydestroy, initialRefcount, flags)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyptr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_3); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30754, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cyptr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":30755
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaUserObjectCreate(<cyruntime.cudaUserObject_t*>object_out._pvt_ptr, cyptr_ptr, cydestroy, initialRefcount, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30756
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:
 *         err = cyruntime.cudaUserObjectCreate(<cyruntime.cudaUserObject_t*>object_out._pvt_ptr, cyptr_ptr, cydestroy, initialRefcount, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectCreate(((cudaUserObject_t *)__pyx_v_object_out->__pyx_base._pvt_ptr), __pyx_v_cyptr_ptr, __pyx_v_cydestroy, __pyx_v_initialRefcount, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30756, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":30755
 *     cyptr = _HelperInputVoidPtr(ptr)
 *     cdef void* cyptr_ptr = <void*><void_ptr>cyptr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaUserObjectCreate(<cyruntime.cudaUserObject_t*>object_out._pvt_ptr, cyptr_ptr, cydestroy, initialRefcount, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30757
 *     with nogil:
 *         err = cyruntime.cudaUserObjectCreate(<cyruntime.cudaUserObject_t*>object_out._pvt_ptr, cyptr_ptr, cydestroy, initialRefcount, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], object_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30758
 *         err = cyruntime.cudaUserObjectCreate(<cyruntime.cudaUserObject_t*>object_out._pvt_ptr, cyptr_ptr, cydestroy, initialRefcount, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], object_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 30758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 30758, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 30758, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":30757
 *     with nogil:
 *         err = cyruntime.cudaUserObjectCreate(<cyruntime.cudaUserObject_t*>object_out._pvt_ptr, cyptr_ptr, cydestroy, initialRefcount, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], object_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":30759
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], object_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 30759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 30759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 30759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 30759, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_object_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_object_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_object_out)) != (0)) __PYX_ERR(0, 30759, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30702
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags):
 *     """ Create a user object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaUserObjectCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pdestroy);
  __Pyx_XDECREF((PyObject *)__pyx_v_object_out);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyptr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30761
 *     return (_dict_cudaError_t[err], object_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectRetain(object, unsigned int count):
 *     """ Retain a reference to a user object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_545cudaUserObjectRetain(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_7runtime_544cudaUserObjectRetain, "cudaUserObjectRetain(object, unsigned int count)\n\nRetain a reference to a user object.\n\nRetains new references to a user object. The new references are owned\nby the caller.\n\nSee CUDA User Objects in the CUDA C++ Programming Guide for more\ninformation on user objects.\n\nParameters\n----------\nobject : :py:obj:`~.cudaUserObject_t`\n    The object to retain\ncount : unsigned int\n    The number of references to retain, typically 1. Must be nonzero\n    and not larger than INT_MAX.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaUserObjectCreate`, :py:obj:`~.cudaUserObjectRelease`, :py:obj:`~.cudaGraphRetainUserObject`, :py:obj:`~.cudaGraphReleaseUserObject`, :py:obj:`~.cudaGraphCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_545cudaUserObjectRetain = {"cudaUserObjectRetain", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_545cudaUserObjectRetain, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_544cudaUserObjectRetain};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_545cudaUserObjectRetain(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_object = 0;
  unsigned int __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaUserObjectRetain (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_object,&__pyx_mstate_global->__pyx_n_u_count,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, 30761, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30761, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30761, __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, "cudaUserObjectRetain", 0) < (0)) __PYX_ERR(0, 30761, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaUserObjectRetain", 1, 2, 2, i); __PYX_ERR(0, 30761, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 30761, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30761, __pyx_L3_error)
    }
    __pyx_v_object = values[0];
    __pyx_v_count = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30762, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaUserObjectRetain", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 30761, __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.runtime.cudaUserObjectRetain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_544cudaUserObjectRetain(__pyx_self, __pyx_v_object, __pyx_v_count);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_544cudaUserObjectRetain(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_object, unsigned int __pyx_v_count) {
  cudaUserObject_t __pyx_v_cyobject;
  PyObject *__pyx_v_pobject = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaUserObjectRetain", 0);

  /* "cuda/bindings/runtime.pyx":30789
 *     """
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:             # <<<<<<<<<<<<<<
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
*/
  __pyx_t_1 = (__pyx_v_object == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30790
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:
 *         pobject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
 *         pobject = int(object)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pobject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30789
 *     """
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:             # <<<<<<<<<<<<<<
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30791
 *     if object is None:
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):             # <<<<<<<<<<<<<<
 *         pobject = int(object)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30792
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
 *         pobject = int(object)             # <<<<<<<<<<<<<<
 *     else:
 *         pobject = int(cudaUserObject_t(object))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30792, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pobject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30791
 *     if object is None:
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):             # <<<<<<<<<<<<<<
 *         pobject = int(object)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30794
 *         pobject = int(object)
 *     else:
 *         pobject = int(cudaUserObject_t(object))             # <<<<<<<<<<<<<<
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_object};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30794, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30794, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pobject = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30795
 *     else:
 *         pobject = int(cudaUserObject_t(object))
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaUserObjectRetain(cyobject, count)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30795, __pyx_L1_error)
  __pyx_v_cyobject = ((cudaUserObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30796
 *         pobject = int(cudaUserObject_t(object))
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaUserObjectRetain(cyobject, count)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30797
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     with nogil:
 *         err = cyruntime.cudaUserObjectRetain(cyobject, count)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectRetain(__pyx_v_cyobject, __pyx_v_count); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30797, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30796
 *         pobject = int(cudaUserObject_t(object))
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaUserObjectRetain(cyobject, count)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30798
 *     with nogil:
 *         err = cyruntime.cudaUserObjectRetain(cyobject, count)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30798, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30761
 *     return (_dict_cudaError_t[err], object_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectRetain(object, unsigned int count):
 *     """ Retain a reference to a user object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaUserObjectRetain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pobject);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30800
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectRelease(object, unsigned int count):
 *     """ Release a reference to a user object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_547cudaUserObjectRelease(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_7runtime_546cudaUserObjectRelease, "cudaUserObjectRelease(object, unsigned int count)\n\nRelease a reference to a user object.\n\nReleases user object references owned by the caller. The object's\ndestructor is invoked if the reference count reaches zero.\n\nIt is undefined behavior to release references not owned by the caller,\nor to use a user object handle after all references are released.\n\nSee CUDA User Objects in the CUDA C++ Programming Guide for more\ninformation on user objects.\n\nParameters\n----------\nobject : :py:obj:`~.cudaUserObject_t`\n    The object to release\ncount : unsigned int\n    The number of references to release, typically 1. Must be nonzero\n    and not larger than INT_MAX.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaUserObjectCreate`, :py:obj:`~.cudaUserObjectRetain`, :py:obj:`~.cudaGraphRetainUserObject`, :py:obj:`~.cudaGraphReleaseUserObject`, :py:obj:`~.cudaGraphCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_547cudaUserObjectRelease = {"cudaUserObjectRelease", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_547cudaUserObjectRelease, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_546cudaUserObjectRelease};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_547cudaUserObjectRelease(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_object = 0;
  unsigned int __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaUserObjectRelease (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_object,&__pyx_mstate_global->__pyx_n_u_count,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, 30800, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30800, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30800, __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, "cudaUserObjectRelease", 0) < (0)) __PYX_ERR(0, 30800, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaUserObjectRelease", 1, 2, 2, i); __PYX_ERR(0, 30800, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 30800, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30800, __pyx_L3_error)
    }
    __pyx_v_object = values[0];
    __pyx_v_count = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30801, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaUserObjectRelease", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 30800, __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.runtime.cudaUserObjectRelease", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_546cudaUserObjectRelease(__pyx_self, __pyx_v_object, __pyx_v_count);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_546cudaUserObjectRelease(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_object, unsigned int __pyx_v_count) {
  cudaUserObject_t __pyx_v_cyobject;
  PyObject *__pyx_v_pobject = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaUserObjectRelease", 0);

  /* "cuda/bindings/runtime.pyx":30831
 *     """
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:             # <<<<<<<<<<<<<<
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
*/
  __pyx_t_1 = (__pyx_v_object == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30832
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:
 *         pobject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
 *         pobject = int(object)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pobject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30831
 *     """
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:             # <<<<<<<<<<<<<<
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30833
 *     if object is None:
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):             # <<<<<<<<<<<<<<
 *         pobject = int(object)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30834
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
 *         pobject = int(object)             # <<<<<<<<<<<<<<
 *     else:
 *         pobject = int(cudaUserObject_t(object))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30834, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pobject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30833
 *     if object is None:
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):             # <<<<<<<<<<<<<<
 *         pobject = int(object)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30836
 *         pobject = int(object)
 *     else:
 *         pobject = int(cudaUserObject_t(object))             # <<<<<<<<<<<<<<
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_object};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30836, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pobject = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30837
 *     else:
 *         pobject = int(cudaUserObject_t(object))
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaUserObjectRelease(cyobject, count)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30837, __pyx_L1_error)
  __pyx_v_cyobject = ((cudaUserObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30838
 *         pobject = int(cudaUserObject_t(object))
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaUserObjectRelease(cyobject, count)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30839
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     with nogil:
 *         err = cyruntime.cudaUserObjectRelease(cyobject, count)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectRelease(__pyx_v_cyobject, __pyx_v_count); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30839, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30838
 *         pobject = int(cudaUserObject_t(object))
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaUserObjectRelease(cyobject, count)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30840
 *     with nogil:
 *         err = cyruntime.cudaUserObjectRelease(cyobject, count)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30840, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30800
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectRelease(object, unsigned int count):
 *     """ Release a reference to a user object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaUserObjectRelease", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pobject);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30842
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags):
 *     """ Retain a reference to a user object from a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_549cudaGraphRetainUserObject(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_7runtime_548cudaGraphRetainUserObject, "cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags)\n\nRetain a reference to a user object from a graph.\n\nCreates or moves user object references that will be owned by a CUDA\ngraph.\n\nSee CUDA User Objects in the CUDA C++ Programming Guide for more\ninformation on user objects.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    The graph to associate the reference with\nobject : :py:obj:`~.cudaUserObject_t`\n    The user object to retain a reference for\ncount : unsigned int\n    The number of references to add to the graph, typically 1. Must be\n    nonzero and not larger than INT_MAX.\nflags : unsigned int\n    The optional flag :py:obj:`~.cudaGraphUserObjectMove` transfers\n    references from the calling thread, rather than create new\n    references. Pass 0 to create new references.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaUserObjectCreate` :py:obj:`~.cudaUserObjectRetain`, :py:obj:`~.cudaUserObjectRelease`, :py:obj:`~.cudaGraphReleaseUserObject`, :py:obj:`~.cudaGraphCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_549cudaGraphRetainUserObject = {"cudaGraphRetainUserObject", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_549cudaGraphRetainUserObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_548cudaGraphRetainUserObject};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_549cudaGraphRetainUserObject(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_graph = 0;
  PyObject *__pyx_v_object = 0;
  unsigned int __pyx_v_count;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphRetainUserObject (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_graph_2,&__pyx_mstate_global->__pyx_n_u_object,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 30842, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 30842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30842, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30842, __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, "cudaGraphRetainUserObject", 0) < (0)) __PYX_ERR(0, 30842, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphRetainUserObject", 1, 4, 4, i); __PYX_ERR(0, 30842, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 30842, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30842, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30842, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 30842, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_object = values[1];
    __pyx_v_count = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30843, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30843, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphRetainUserObject", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 30842, __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.runtime.cudaGraphRetainUserObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_548cudaGraphRetainUserObject(__pyx_self, __pyx_v_graph, __pyx_v_object, __pyx_v_count, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_548cudaGraphRetainUserObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_object, unsigned int __pyx_v_count, unsigned int __pyx_v_flags) {
  cudaUserObject_t __pyx_v_cyobject;
  PyObject *__pyx_v_pobject = NULL;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphRetainUserObject", 0);

  /* "cuda/bindings/runtime.pyx":30876
 *     """
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:             # <<<<<<<<<<<<<<
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
*/
  __pyx_t_1 = (__pyx_v_object == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30877
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:
 *         pobject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
 *         pobject = int(object)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pobject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30876
 *     """
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:             # <<<<<<<<<<<<<<
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30878
 *     if object is None:
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):             # <<<<<<<<<<<<<<
 *         pobject = int(object)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30879
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
 *         pobject = int(object)             # <<<<<<<<<<<<<<
 *     else:
 *         pobject = int(cudaUserObject_t(object))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pobject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30878
 *     if object is None:
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):             # <<<<<<<<<<<<<<
 *         pobject = int(object)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30881
 *         pobject = int(object)
 *     else:
 *         pobject = int(cudaUserObject_t(object))             # <<<<<<<<<<<<<<
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_object};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30881, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pobject = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30882
 *     else:
 *         pobject = int(cudaUserObject_t(object))
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30882, __pyx_L1_error)
  __pyx_v_cyobject = ((cudaUserObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30884
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30885
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30884
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30886
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30887
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30887, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30886
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30889
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_graph};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30889, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30890
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphRetainUserObject(cygraph, cyobject, count, flags)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30890, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30891
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphRetainUserObject(cygraph, cyobject, count, flags)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30892
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:
 *         err = cyruntime.cudaGraphRetainUserObject(cygraph, cyobject, count, flags)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphRetainUserObject(__pyx_v_cygraph, __pyx_v_cyobject, __pyx_v_count, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30892, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30891
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphRetainUserObject(cygraph, cyobject, count, flags)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30893
 *     with nogil:
 *         err = cyruntime.cudaGraphRetainUserObject(cygraph, cyobject, count, flags)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30893, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30842
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags):
 *     """ Retain a reference to a user object from a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphRetainUserObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pobject);
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30895
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphReleaseUserObject(graph, object, unsigned int count):
 *     """ Release a user object reference from a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_551cudaGraphReleaseUserObject(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_7runtime_550cudaGraphReleaseUserObject, "cudaGraphReleaseUserObject(graph, object, unsigned int count)\n\nRelease a user object reference from a graph.\n\nReleases user object references owned by a graph.\n\nSee CUDA User Objects in the CUDA C++ Programming Guide for more\ninformation on user objects.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    The graph that will release the reference\nobject : :py:obj:`~.cudaUserObject_t`\n    The user object to release a reference for\ncount : unsigned int\n    The number of references to release, typically 1. Must be nonzero\n    and not larger than INT_MAX.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaUserObjectCreate` :py:obj:`~.cudaUserObjectRetain`, :py:obj:`~.cudaUserObjectRelease`, :py:obj:`~.cudaGraphRetainUserObject`, :py:obj:`~.cudaGraphCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_551cudaGraphReleaseUserObject = {"cudaGraphReleaseUserObject", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_551cudaGraphReleaseUserObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_550cudaGraphReleaseUserObject};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_551cudaGraphReleaseUserObject(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_graph = 0;
  PyObject *__pyx_v_object = 0;
  unsigned int __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphReleaseUserObject (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_graph_2,&__pyx_mstate_global->__pyx_n_u_object,&__pyx_mstate_global->__pyx_n_u_count,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, 30895, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30895, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30895, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30895, __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, "cudaGraphReleaseUserObject", 0) < (0)) __PYX_ERR(0, 30895, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphReleaseUserObject", 1, 3, 3, i); __PYX_ERR(0, 30895, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 30895, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30895, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30895, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_object = values[1];
    __pyx_v_count = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_count == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 30896, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphReleaseUserObject", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 30895, __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.runtime.cudaGraphReleaseUserObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_550cudaGraphReleaseUserObject(__pyx_self, __pyx_v_graph, __pyx_v_object, __pyx_v_count);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_550cudaGraphReleaseUserObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_object, unsigned int __pyx_v_count) {
  cudaUserObject_t __pyx_v_cyobject;
  PyObject *__pyx_v_pobject = NULL;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphReleaseUserObject", 0);

  /* "cuda/bindings/runtime.pyx":30924
 *     """
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:             # <<<<<<<<<<<<<<
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
*/
  __pyx_t_1 = (__pyx_v_object == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30925
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:
 *         pobject = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
 *         pobject = int(object)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pobject = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30924
 *     """
 *     cdef cyruntime.cudaUserObject_t cyobject
 *     if object is None:             # <<<<<<<<<<<<<<
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30926
 *     if object is None:
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):             # <<<<<<<<<<<<<<
 *         pobject = int(object)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_object, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30927
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):
 *         pobject = int(object)             # <<<<<<<<<<<<<<
 *     else:
 *         pobject = int(cudaUserObject_t(object))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pobject = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":30926
 *     if object is None:
 *         pobject = 0
 *     elif isinstance(object, (cudaUserObject_t,driver.CUuserObject)):             # <<<<<<<<<<<<<<
 *         pobject = int(object)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":30929
 *         pobject = int(object)
 *     else:
 *         pobject = int(cudaUserObject_t(object))             # <<<<<<<<<<<<<<
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_object};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30929, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pobject = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":30930
 *     else:
 *         pobject = int(cudaUserObject_t(object))
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pobject); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30930, __pyx_L1_error)
  __pyx_v_cyobject = ((cudaUserObject_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30932
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30933
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30932
 *     cyobject = <cyruntime.cudaUserObject_t><void_ptr>pobject
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30934
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":30935
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30935, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":30934
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":30937
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_graph};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30937, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30937, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":30938
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphReleaseUserObject(cygraph, cyobject, count)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 30938, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":30939
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphReleaseUserObject(cygraph, cyobject, count)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":30940
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:
 *         err = cyruntime.cudaGraphReleaseUserObject(cygraph, cyobject, count)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphReleaseUserObject(__pyx_v_cygraph, __pyx_v_cyobject, __pyx_v_count); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 30940, __pyx_L10_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":30939
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphReleaseUserObject(cygraph, cyobject, count)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":30941
 *     with nogil:
 *         err = cyruntime.cudaGraphReleaseUserObject(cygraph, cyobject, count)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 30941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 30941, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30895
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphReleaseUserObject(graph, object, unsigned int count):
 *     """ Release a user object reference from a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphReleaseUserObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pobject);
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30943
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Adds a node of arbitrary type to a graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_553cudaGraphAddNode(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_7runtime_552cudaGraphAddNode, "cudaGraphAddNode(graph, pDependencies: Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData: Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, cudaGraphNodeParams nodeParams: Optional[cudaGraphNodeParams])\n\nAdds a node of arbitrary type to a graph.\n\nCreates a new node in `graph` described by `nodeParams` with\n`numDependencies` dependencies specified via `pDependencies`.\n`numDependencies` may be 0. `pDependencies` may be null if\n`numDependencies` is 0. `pDependencies` may not have any duplicate\nentries.\n\n`nodeParams` is a tagged union. The node type should be specified in\nthe `typename` field, and type-specific parameters in the corresponding\nunion member. All unused bytes - that is, `reserved0` and all bytes\npast the utilized union member - must be set to zero. It is recommended\nto use brace initialization or memset to ensure all bytes are\ninitialized.\n\nNote that for some node types, `nodeParams` may contain \"out\nparameters\" which are modified during the call, such as\n`nodeParams->alloc.dptr`.\n\nA handle to the new node will be returned in `phGraphNode`.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph to which to add the node\npDependencies : list[:py:obj:`~.cudaGraphNode_t`]\n    Dependencies of the node\ndependencyData : list[:py:obj:`~.cudaGraphEdgeData`]\n    Optional edge data for the dependencies. If NULL, the data is\n    assumed to be default (zeroed) for all dependencies.\nnumDependencies : size_t\n    Number of dependencies\nnodeParams : :py:obj:`~.cudaGraphNodeParams`\n    Specification of the node\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorNotSupported`\npGraphNode : :py:obj:`~.cudaGraphNode_t`\n    Returns newly created node\n\nSee Also\n--------\n:py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphNodeSetParams`, :py:""obj:`~.cudaGraphExecNodeSetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_553cudaGraphAddNode = {"cudaGraphAddNode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_553cudaGraphAddNode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_552cudaGraphAddNode};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_553cudaGraphAddNode(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_graph = 0;
  PyObject *__pyx_v_pDependencies = 0;
  PyObject *__pyx_v_dependencyData = 0;
  size_t __pyx_v_numDependencies;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphAddNode (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_graph_2,&__pyx_mstate_global->__pyx_n_u_pDependencies,&__pyx_mstate_global->__pyx_n_u_dependencyData,&__pyx_mstate_global->__pyx_n_u_numDependencies,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 30943, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 30943, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 30943, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30943, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30943, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 30943, __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, "cudaGraphAddNode", 0) < (0)) __PYX_ERR(0, 30943, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode", 1, 5, 5, i); __PYX_ERR(0, 30943, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      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, 30943, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 30943, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 30943, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 30943, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 30943, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_pDependencies = values[1];
    __pyx_v_dependencyData = values[2];
    __pyx_v_numDependencies = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_numDependencies == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 30944, __pyx_L3_error)
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)values[4]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphAddNode", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 30943, __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.runtime.cudaGraphAddNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 30944, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_552cudaGraphAddNode(__pyx_self, __pyx_v_graph, __pyx_v_pDependencies, __pyx_v_dependencyData, __pyx_v_numDependencies, __pyx_v_nodeParams);

  /* 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_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_2generator131(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":30992
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaGraphAddNode_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 30992, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_2generator131, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[131]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddNode_locals_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 30992, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_2generator131(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 30992, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 30992, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30992, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30992, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 30992, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 30992, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30992, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 30992, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_5generator132(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":30995
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_16cudaGraphAddNode_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 30995, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_5generator132, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[132]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaGraphAddNode_locals_genexpr, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 30995, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddNode.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_5generator132(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 30995, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 30995, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30995, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30995, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 30995, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 30995, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30995, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 30995, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
    if (!__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
    __pyx_t_5 = __pyx_t_6;
    __pyx_L7_bool_binop_done:;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":30943
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Adds a node of arbitrary type to a graph.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_552cudaGraphAddNode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_pDependencies, PyObject *__pyx_v_dependencyData, size_t __pyx_v_numDependencies, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_pGraphNode = 0;
  cudaGraphNode_t *__pyx_v_cypDependencies;
  Py_ssize_t __pyx_v_idx;
  cudaGraphEdgeData *__pyx_v_cydependencyData;
  struct cudaGraphNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_2generator131 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_5generator132 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  struct cudaGraphEdgeData_st *__pyx_t_13;
  struct cudaGraphNodeParams *__pyx_t_14;
  cudaError_t __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphAddNode", 0);
  __Pyx_INCREF(__pyx_v_pDependencies);
  __Pyx_INCREF(__pyx_v_dependencyData);

  /* "cuda/bindings/runtime.pyx":30991
 *     :py:obj:`~.cudaGraphCreate`, :py:obj:`~.cudaGraphNodeSetParams`, :py:obj:`~.cudaGraphExecNodeSetParams`
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
*/
  __pyx_t_2 = (__pyx_v_dependencyData == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30991, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_dependencyData);
    __pyx_t_1 = __pyx_v_dependencyData;
  }
  __Pyx_DECREF_SET(__pyx_v_dependencyData, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":30992
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_16cudaGraphAddNode_genexpr(NULL, __pyx_v_dependencyData); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 30992, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":30993
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")             # <<<<<<<<<<<<<<
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_dependencyData_is_not_i};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30993, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 30993, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":30992
 *     """
 *     dependencyData = [] if dependencyData is None else dependencyData
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies
*/
  }

  /* "cuda/bindings/runtime.pyx":30994
 *     if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData):
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
*/
  __pyx_t_4 = (__pyx_v_pDependencies == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30994, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_pDependencies);
    __pyx_t_3 = __pyx_v_pDependencies;
  }
  __Pyx_DECREF_SET(__pyx_v_pDependencies, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":30995
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_16cudaGraphAddNode_3genexpr(NULL, __pyx_v_pDependencies); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 30995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 30995, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":30996
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_pDependencies_is_not_in};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 30996, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 30996, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":30995
 *         raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]")
 *     pDependencies = [] if pDependencies is None else pDependencies
 *     if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  }

  /* "cuda/bindings/runtime.pyx":30998
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_2 = (__pyx_v_graph == Py_None);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":30999
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":30998
 *         raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]")
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L5;
  }

  /* "cuda/bindings/runtime.pyx":31000
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_2 = __pyx_t_4;
  __pyx_L6_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31001
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31001, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "cuda/bindings/runtime.pyx":31000
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L5;
  }

  /* "cuda/bindings/runtime.pyx":31003
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_graph};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31003, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_1);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31003, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L5:;

  /* "cuda/bindings/runtime.pyx":31004
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31004, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":31005
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
*/
  __pyx_t_1 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31005, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pGraphNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":31006
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
*/
  __pyx_v_cypDependencies = NULL;

  /* "cuda/bindings/runtime.pyx":31007
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31007, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31008
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))             # <<<<<<<<<<<<<<
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31008, __pyx_L1_error)
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)calloc(__pyx_t_7, (sizeof(cudaGraphNode_t))));

    /* "cuda/bindings/runtime.pyx":31009
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    __pyx_t_2 = (__pyx_v_cypDependencies == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":31010
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))             # <<<<<<<<<<<<<<
 *         else:
 *             for idx in range(len(pDependencies)):
*/
      __pyx_t_1 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31010, __pyx_L1_error)
      __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_8};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31010, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 31010, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":31009
 *     if len(pDependencies) > 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
*/
    }

    /* "cuda/bindings/runtime.pyx":31012
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(pDependencies)) + 'x' + str(sizeof(cyruntime.cudaGraphNode_t)))
 *         else:
 *             for idx in range(len(pDependencies)):             # <<<<<<<<<<<<<<
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
*/
    /*else*/ {
      __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31012, __pyx_L1_error)
      __pyx_t_11 = __pyx_t_7;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_v_idx = __pyx_t_12;

        /* "cuda/bindings/runtime.pyx":31013
 *         else:
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]             # <<<<<<<<<<<<<<
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
*/
        __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31013, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        (__pyx_v_cypDependencies[__pyx_v_idx]) = ((cudaGraphNode_t)(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._pvt_ptr[0]));
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
    }

    /* "cuda/bindings/runtime.pyx":31007
 *     cdef cudaGraphNode_t pGraphNode = cudaGraphNode_t()
 *     cdef cyruntime.cudaGraphNode_t* cypDependencies = NULL
 *     if len(pDependencies) > 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*> calloc(len(pDependencies), sizeof(cyruntime.cudaGraphNode_t))
 *         if cypDependencies is NULL:
*/
    goto __pyx_L8;
  }

  /* "cuda/bindings/runtime.pyx":31014
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31014, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31015
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_pDependencies, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31015, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_cypDependencies = ((cudaGraphNode_t *)((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)__pyx_t_3)->__pyx_base._pvt_ptr);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":31014
 *             for idx in range(len(pDependencies)):
 *                 cypDependencies[idx] = <cyruntime.cudaGraphNode_t>(<cudaGraphNode_t>pDependencies[idx])._pvt_ptr[0]
 *     elif len(pDependencies) == 1:             # <<<<<<<<<<<<<<
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
*/
  }
  __pyx_L8:;

  /* "cuda/bindings/runtime.pyx":31016
 *     elif len(pDependencies) == 1:
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL             # <<<<<<<<<<<<<<
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
*/
  __pyx_v_cydependencyData = NULL;

  /* "cuda/bindings/runtime.pyx":31017
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31017, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 > 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31018
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31018, __pyx_L1_error)
    __pyx_v_cydependencyData = ((cudaGraphEdgeData *)calloc(__pyx_t_7, (sizeof(cudaGraphEdgeData))));

    /* "cuda/bindings/runtime.pyx":31019
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
*/
    __pyx_t_2 = (__pyx_v_cydependencyData == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":31020
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
*/
      __pyx_t_8 = NULL;
      __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31020, __pyx_L1_error)
      __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31020, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31020, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31020, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31020, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31020, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31020, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31020, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_1};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31020, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 31020, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":31019
 *     if len(dependencyData) > 1:
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
*/
    }

    /* "cuda/bindings/runtime.pyx":31021
 *         if cydependencyData is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31021, __pyx_L1_error)
    __pyx_t_11 = __pyx_t_7;
    for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
      __pyx_v_idx = __pyx_t_12;

      /* "cuda/bindings/runtime.pyx":31022
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(dependencyData)) + 'x' + str(sizeof(cyruntime.cudaGraphEdgeData)))
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))             # <<<<<<<<<<<<<<
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_dependencyData, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31022, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_cydependencyData[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_3)->__pyx_base._pvt_ptr, (sizeof(cudaGraphEdgeData))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }

    /* "cuda/bindings/runtime.pyx":31017
 *         cypDependencies = <cyruntime.cudaGraphNode_t*>(<cudaGraphNode_t>pDependencies[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphEdgeData* cydependencyData = NULL
 *     if len(dependencyData) > 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = <cyruntime.cudaGraphEdgeData*> calloc(len(dependencyData), sizeof(cyruntime.cudaGraphEdgeData))
 *         if cydependencyData is NULL:
*/
    goto __pyx_L12;
  }

  /* "cuda/bindings/runtime.pyx":31023
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31023, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_7 == 1);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31024
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_dependencyData, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_13 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData *)__pyx_t_3)->__pyx_base._pvt_ptr;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_cydependencyData = __pyx_t_13;

    /* "cuda/bindings/runtime.pyx":31023
 *         for idx in range(len(dependencyData)):
 *             string.memcpy(&cydependencyData[idx], (<cudaGraphEdgeData>dependencyData[idx])._pvt_ptr, sizeof(cyruntime.cudaGraphEdgeData))
 *     elif len(dependencyData) == 1:             # <<<<<<<<<<<<<<
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
  }
  __pyx_L12:;

  /* "cuda/bindings/runtime.pyx":31025
 *     elif len(dependencyData) == 1:
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphAddNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, cydependencyData, numDependencies, cynodeParams_ptr)
*/
  __pyx_t_2 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_2) {
    __pyx_t_14 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_14 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_14;

  /* "cuda/bindings/runtime.pyx":31026
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, cydependencyData, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31027
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphAddNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, cydependencyData, numDependencies, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
*/
        __pyx_t_15 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddNode(((cudaGraphNode_t *)__pyx_v_pGraphNode->__pyx_base._pvt_ptr), __pyx_v_cygraph, __pyx_v_cypDependencies, __pyx_v_cydependencyData, __pyx_v_numDependencies, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_15 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31027, __pyx_L17_error)
        __pyx_v_err = __pyx_t_15;
      }

      /* "cuda/bindings/runtime.pyx":31026
 *         cydependencyData = (<cudaGraphEdgeData>dependencyData[0])._pvt_ptr
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphAddNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, cydependencyData, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L18;
        }
        __pyx_L17_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L18:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31028
 *     with nogil:
 *         err = cyruntime.cudaGraphAddNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, cydependencyData, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_pDependencies); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31028, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L20_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_cypDependencies != NULL);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L20_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31029
 *         err = cyruntime.cudaGraphAddNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, cydependencyData, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)             # <<<<<<<<<<<<<<
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)
*/
    free(__pyx_v_cypDependencies);

    /* "cuda/bindings/runtime.pyx":31028
 *     with nogil:
 *         err = cyruntime.cudaGraphAddNode(<cyruntime.cudaGraphNode_t*>pGraphNode._pvt_ptr, cygraph, cypDependencies, cydependencyData, numDependencies, cynodeParams_ptr)
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypDependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":31030
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencyData)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_dependencyData); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31030, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_7 > 1);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L23_bool_binop_done;
  }
  __pyx_t_4 = (__pyx_v_cydependencyData != NULL);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L23_bool_binop_done:;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31031
 *         free(cypDependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cydependencyData);

    /* "cuda/bindings/runtime.pyx":31030
 *     if len(pDependencies) > 1 and cypDependencies is not NULL:
 *         free(cypDependencies)
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:             # <<<<<<<<<<<<<<
 *         free(cydependencyData)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":31032
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31033
 *         free(cydependencyData)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 31033, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 31033, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31032
 *     if len(dependencyData) > 1 and cydependencyData is not NULL:
 *         free(cydependencyData)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)
*/
  }

  /* "cuda/bindings/runtime.pyx":31034
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pGraphNode)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 31034, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pGraphNode);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pGraphNode)) != (0)) __PYX_ERR(0, 31034, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":30943
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Adds a node of arbitrary type to a graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphAddNode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pGraphNode);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_2generator131);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_16cudaGraphAddNode_5generator132);
  __Pyx_XDECREF(__pyx_v_pDependencies);
  __Pyx_XDECREF(__pyx_v_dependencyData);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31036
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeSetParams(node, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Update's a graph node's parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_555cudaGraphNodeSetParams(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_7runtime_554cudaGraphNodeSetParams, "cudaGraphNodeSetParams(node, cudaGraphNodeParams nodeParams: Optional[cudaGraphNodeParams])\n\nUpdate's a graph node's parameters.\n\nSets the parameters of graph node `node` to `nodeParams`. The node type\nspecified by `nodeParams->type` must match the type of `node`.\n`nodeParams` must be fully initialized and all unused bytes (reserved,\npadding) zeroed.\n\nModifying parameters is not supported for node types\ncudaGraphNodeTypeMemAlloc and cudaGraphNodeTypeMemFree.\n\nParameters\n----------\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Node to set the parameters for\nnodeParams : :py:obj:`~.cudaGraphNodeParams`\n    Parameters to copy\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorNotSupported`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphExecNodeSetParams`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_555cudaGraphNodeSetParams = {"cudaGraphNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_555cudaGraphNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_554cudaGraphNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_555cudaGraphNodeSetParams(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_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphNodeSetParams (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_node_2,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 31036, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31036, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31036, __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, "cudaGraphNodeSetParams", 0) < (0)) __PYX_ERR(0, 31036, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetParams", 1, 2, 2, i); __PYX_ERR(0, 31036, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 31036, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31036, __pyx_L3_error)
    }
    __pyx_v_node = values[0];
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNodeSetParams", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 31036, __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.runtime.cudaGraphNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 31037, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_554cudaGraphNodeSetParams(__pyx_self, __pyx_v_node, __pyx_v_nodeParams);

  /* 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_7runtime_554cudaGraphNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  struct cudaGraphNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaGraphNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":31065
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31066
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31065
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31067
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31068
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31068, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":31067
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31070
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31070, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31070, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31071
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31071, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":31072
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeSetParams(cynode, cynodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":31073
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeSetParams(cynode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31074
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeSetParams(cynode, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeSetParams(__pyx_v_cynode, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31074, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":31073
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphNodeSetParams(cynode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31075
 *     with nogil:
 *         err = cyruntime.cudaGraphNodeSetParams(cynode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 31075, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31036
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeSetParams(node, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Update's a graph node's parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31077
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecNodeSetParams(graphExec, node, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Update's a graph node's parameters in an instantiated graph.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_557cudaGraphExecNodeSetParams(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_7runtime_556cudaGraphExecNodeSetParams, "cudaGraphExecNodeSetParams(graphExec, node, cudaGraphNodeParams nodeParams: Optional[cudaGraphNodeParams])\n\nUpdate's a graph node's parameters in an instantiated graph.\n\nSets the parameters of a node in an executable graph `graphExec`. The\nnode is identified by the corresponding node `node` in the non-\nexecutable graph from which the executable graph was instantiated.\n`node` must not have been removed from the original graph.\n\nThe modifications only affect future launches of `graphExec`. Already\nenqueued or running launches of `graphExec` are not affected by this\ncall. `node` is also not modified by this call.\n\nAllowed changes to parameters on executable graphs are as follows:\n\n**View CUDA Toolkit Documentation for a table example**\n\nParameters\n----------\ngraphExec : :py:obj:`~.CUgraphExec` or :py:obj:`~.cudaGraphExec_t`\n    The executable graph in which to update the specified node\nnode : :py:obj:`~.CUgraphNode` or :py:obj:`~.cudaGraphNode_t`\n    Corresponding node from the graph from which graphExec was\n    instantiated\nnodeParams : :py:obj:`~.cudaGraphNodeParams`\n    Updated Parameters to set\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorNotSupported`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphAddNode`, :py:obj:`~.cudaGraphNodeSetParams` :py:obj:`~.cudaGraphExecUpdate`, :py:obj:`~.cudaGraphInstantiate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_557cudaGraphExecNodeSetParams = {"cudaGraphExecNodeSetParams", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_557cudaGraphExecNodeSetParams, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_556cudaGraphExecNodeSetParams};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_557cudaGraphExecNodeSetParams(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_graphExec = 0;
  PyObject *__pyx_v_node = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphExecNodeSetParams (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_graphExec,&__pyx_mstate_global->__pyx_n_u_node_2,&__pyx_mstate_global->__pyx_n_u_nodeParams,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, 31077, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31077, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31077, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31077, __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, "cudaGraphExecNodeSetParams", 0) < (0)) __PYX_ERR(0, 31077, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExecNodeSetParams", 1, 3, 3, i); __PYX_ERR(0, 31077, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 31077, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31077, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31077, __pyx_L3_error)
    }
    __pyx_v_graphExec = values[0];
    __pyx_v_node = values[1];
    __pyx_v_nodeParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExecNodeSetParams", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 31077, __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.runtime.cudaGraphExecNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_nodeParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams, 1, "nodeParams", 0))) __PYX_ERR(0, 31078, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_556cudaGraphExecNodeSetParams(__pyx_self, __pyx_v_graphExec, __pyx_v_node, __pyx_v_nodeParams);

  /* 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_7runtime_556cudaGraphExecNodeSetParams(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graphExec, PyObject *__pyx_v_node, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *__pyx_v_nodeParams) {
  cudaGraphNode_t __pyx_v_cynode;
  PyObject *__pyx_v_pnode = NULL;
  cudaGraphExec_t __pyx_v_cygraphExec;
  PyObject *__pyx_v_pgraphExec = NULL;
  struct cudaGraphNodeParams *__pyx_v_cynodeParams_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  struct cudaGraphNodeParams *__pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphExecNodeSetParams", 0);

  /* "cuda/bindings/runtime.pyx":31114
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
  __pyx_t_1 = (__pyx_v_node == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31115
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:
 *         pnode = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pnode = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31114
 *     """
 *     cdef cyruntime.cudaGraphNode_t cynode
 *     if node is None:             # <<<<<<<<<<<<<<
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31116
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_node, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31117
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):
 *         pnode = int(node)             # <<<<<<<<<<<<<<
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pnode = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":31116
 *     if node is None:
 *         pnode = 0
 *     elif isinstance(node, (cudaGraphNode_t,driver.CUgraphNode)):             # <<<<<<<<<<<<<<
 *         pnode = int(node)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31119
 *         pnode = int(node)
 *     else:
 *         pnode = int(cudaGraphNode_t(node))             # <<<<<<<<<<<<<<
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_node};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31119, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pnode = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31120
 *     else:
 *         pnode = int(cudaGraphNode_t(node))
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pnode); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31120, __pyx_L1_error)
  __pyx_v_cynode = ((cudaGraphNode_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":31122
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
  __pyx_t_1 = (__pyx_v_graphExec == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31123
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:
 *         pgraphExec = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraphExec = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31122
 *     cynode = <cyruntime.cudaGraphNode_t><void_ptr>pnode
 *     cdef cyruntime.cudaGraphExec_t cygraphExec
 *     if graphExec is None:             # <<<<<<<<<<<<<<
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":31124
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graphExec, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31125
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):
 *         pgraphExec = int(graphExec)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_graphExec); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":31124
 *     if graphExec is None:
 *         pgraphExec = 0
 *     elif isinstance(graphExec, (cudaGraphExec_t,driver.CUgraphExec)):             # <<<<<<<<<<<<<<
 *         pgraphExec = int(graphExec)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":31127
 *         pgraphExec = int(graphExec)
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))             # <<<<<<<<<<<<<<
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_graphExec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31127, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pgraphExec = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":31128
 *     else:
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraphExec); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31128, __pyx_L1_error)
  __pyx_v_cygraphExec = ((cudaGraphExec_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":31129
 *         pgraphExec = int(cudaGraphExec_t(graphExec))
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphExecNodeSetParams(cygraphExec, cynode, cynodeParams_ptr)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_nodeParams) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_7 = __pyx_v_nodeParams->_pvt_ptr;
  } else {
    __pyx_t_7 = NULL;
  }
  __pyx_v_cynodeParams_ptr = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":31130
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecNodeSetParams(cygraphExec, cynode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31131
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGraphExecNodeSetParams(cygraphExec, cynode, cynodeParams_ptr)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecNodeSetParams(__pyx_v_cygraphExec, __pyx_v_cynode, __pyx_v_cynodeParams_ptr); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31131, __pyx_L10_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":31130
 *     cygraphExec = <cyruntime.cudaGraphExec_t><void_ptr>pgraphExec
 *     cdef cyruntime.cudaGraphNodeParams* cynodeParams_ptr = nodeParams._pvt_ptr if nodeParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphExecNodeSetParams(cygraphExec, cynode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31132
 *     with nogil:
 *         err = cyruntime.cudaGraphExecNodeSetParams(cygraphExec, cynode, cynodeParams_ptr)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 31132, __pyx_L1_error);
  __pyx_t_9 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31077
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecNodeSetParams(graphExec, node, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Update's a graph node's parameters in an instantiated graph.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphExecNodeSetParams", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pnode);
  __Pyx_XDECREF(__pyx_v_pgraphExec);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31134
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, unsigned int flags):
 *     """ Create a conditional handle.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_559cudaGraphConditionalHandleCreate(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_7runtime_558cudaGraphConditionalHandleCreate, "cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, unsigned int flags)\n\nCreate a conditional handle.\n\nCreates a conditional handle associated with `hGraph`.\n\nThe conditional handle must be associated with a conditional node in\nthis graph or one of its children.\n\nHandles not associated with a conditional node may cause graph\ninstantiation to fail.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph which will contain the conditional node using this handle.\ndefaultLaunchValue : unsigned int\n    Optional initial value for the conditional variable. Applied at the\n    beginning of each graph execution if cudaGraphCondAssignDefault is\n    set in `flags`.\nflags : unsigned int\n    Currently must be cudaGraphCondAssignDefault or 0.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_NOT_SUPPORTED`\npHandle_out : :py:obj:`~.cudaGraphConditionalHandle`\n    Pointer used to return the handle to the caller.\n\nSee Also\n--------\n:py:obj:`~.cuGraphAddNode`,");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_559cudaGraphConditionalHandleCreate = {"cudaGraphConditionalHandleCreate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_559cudaGraphConditionalHandleCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_558cudaGraphConditionalHandleCreate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_559cudaGraphConditionalHandleCreate(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_graph = 0;
  unsigned int __pyx_v_defaultLaunchValue;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphConditionalHandleCreate (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_graph_2,&__pyx_mstate_global->__pyx_n_u_defaultLaunchValue,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 31134, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31134, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31134, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31134, __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, "cudaGraphConditionalHandleCreate", 0) < (0)) __PYX_ERR(0, 31134, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphConditionalHandleCreate", 1, 3, 3, i); __PYX_ERR(0, 31134, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 31134, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31134, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31134, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_defaultLaunchValue = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_defaultLaunchValue == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31135, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31135, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphConditionalHandleCreate", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 31134, __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.runtime.cudaGraphConditionalHandleCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_558cudaGraphConditionalHandleCreate(__pyx_self, __pyx_v_graph, __pyx_v_defaultLaunchValue, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_558cudaGraphConditionalHandleCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, unsigned int __pyx_v_defaultLaunchValue, unsigned int __pyx_v_flags) {
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_pHandle_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphConditionalHandleCreate", 0);

  /* "cuda/bindings/runtime.pyx":31169
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31170
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31169
 *     """
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31171
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31172
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":31171
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31174
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31174, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31175
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
 *     with nogil:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31175, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":31176
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphConditionalHandleCreate(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, defaultLaunchValue, flags)
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31176, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_pHandle_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31177
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphConditionalHandleCreate(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31178
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
 *     with nogil:
 *         err = cyruntime.cudaGraphConditionalHandleCreate(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, defaultLaunchValue, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphConditionalHandleCreate(((cudaGraphConditionalHandle *)__pyx_v_pHandle_out->_pvt_ptr), __pyx_v_cygraph, __pyx_v_defaultLaunchValue, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31178, __pyx_L7_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":31177
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphConditionalHandleCreate(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31179
 *     with nogil:
 *         err = cyruntime.cudaGraphConditionalHandleCreate(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHandle_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31180
 *         err = cyruntime.cudaGraphConditionalHandleCreate(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pHandle_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 31180, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 31180, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31179
 *     with nogil:
 *         err = cyruntime.cudaGraphConditionalHandleCreate(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHandle_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":31181
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHandle_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 31181, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pHandle_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pHandle_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pHandle_out)) != (0)) __PYX_ERR(0, 31181, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31134
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, unsigned int flags):
 *     """ Create a conditional handle.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphConditionalHandleCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pHandle_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31183
 *     return (_dict_cudaError_t[err], pHandle_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphConditionalHandleCreate_v2(graph, ctx, unsigned int defaultLaunchValue, unsigned int flags):
 *     """ Create a conditional handle.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_561cudaGraphConditionalHandleCreate_v2(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_7runtime_560cudaGraphConditionalHandleCreate_v2, "cudaGraphConditionalHandleCreate_v2(graph, ctx, unsigned int defaultLaunchValue, unsigned int flags)\n\nCreate a conditional handle.\n\nCreates a conditional handle associated with `hGraph`.\n\nThe conditional handle must be associated with a conditional node in\nthis graph or one of its children.\n\nHandles not associated with a conditional node may cause graph\ninstantiation to fail.\n\nParameters\n----------\ngraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t`\n    Graph which will contain the conditional node using this handle.\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Execution context for the handle and associated conditional node.\n    If NULL, current context will be used.\ndefaultLaunchValue : unsigned int\n    Optional initial value for the conditional variable. Applied at the\n    beginning of each graph execution if cudaGraphCondAssignDefault is\n    set in `flags`.\nflags : unsigned int\n    Currently must be cudaGraphCondAssignDefault or 0.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_NOT_SUPPORTED`\npHandle_out : :py:obj:`~.cudaGraphConditionalHandle`\n    Pointer used to return the handle to the caller.\n\nSee Also\n--------\n:py:obj:`~.cuGraphAddNode`,");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_561cudaGraphConditionalHandleCreate_v2 = {"cudaGraphConditionalHandleCreate_v2", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_561cudaGraphConditionalHandleCreate_v2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_560cudaGraphConditionalHandleCreate_v2};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_561cudaGraphConditionalHandleCreate_v2(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_graph = 0;
  PyObject *__pyx_v_ctx = 0;
  unsigned int __pyx_v_defaultLaunchValue;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphConditionalHandleCreate_v2 (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_graph_2,&__pyx_mstate_global->__pyx_n_u_ctx_2,&__pyx_mstate_global->__pyx_n_u_defaultLaunchValue,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 31183, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 31183, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31183, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31183, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31183, __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, "cudaGraphConditionalHandleCreate_v2", 0) < (0)) __PYX_ERR(0, 31183, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphConditionalHandleCreate_v2", 1, 4, 4, i); __PYX_ERR(0, 31183, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 31183, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31183, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31183, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 31183, __pyx_L3_error)
    }
    __pyx_v_graph = values[0];
    __pyx_v_ctx = values[1];
    __pyx_v_defaultLaunchValue = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_defaultLaunchValue == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31184, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31184, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphConditionalHandleCreate_v2", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 31183, __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.runtime.cudaGraphConditionalHandleCreate_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_560cudaGraphConditionalHandleCreate_v2(__pyx_self, __pyx_v_graph, __pyx_v_ctx, __pyx_v_defaultLaunchValue, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_560cudaGraphConditionalHandleCreate_v2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_graph, PyObject *__pyx_v_ctx, unsigned int __pyx_v_defaultLaunchValue, unsigned int __pyx_v_flags) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  cudaGraph_t __pyx_v_cygraph;
  PyObject *__pyx_v_pgraph = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *__pyx_v_pHandle_out = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  int __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphConditionalHandleCreate_v2", 0);

  /* "cuda/bindings/runtime.pyx":31221
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31222
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31221
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31223
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31224
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31224, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":31223
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31226
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cyruntime.cudaGraph_t cygraph
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31226, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31227
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31227, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31229
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
  __pyx_t_1 = (__pyx_v_graph == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31230
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:
 *         pgraph = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pgraph = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31229
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cyruntime.cudaGraph_t cygraph
 *     if graph is None:             # <<<<<<<<<<<<<<
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":31231
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
  __pyx_t_6 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t); 
  if (!__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_TypeCheck(__pyx_v_graph, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); 
  __pyx_t_1 = __pyx_t_6;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31232
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):
 *         pgraph = int(graph)             # <<<<<<<<<<<<<<
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_graph); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31232, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pgraph = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":31231
 *     if graph is None:
 *         pgraph = 0
 *     elif isinstance(graph, (cudaGraph_t,driver.CUgraph)):             # <<<<<<<<<<<<<<
 *         pgraph = int(graph)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":31234
 *         pgraph = int(graph)
 *     else:
 *         pgraph = int(cudaGraph_t(graph))             # <<<<<<<<<<<<<<
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
*/
  /*else*/ {
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_graph};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31234, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_2 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pgraph = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":31235
 *     else:
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph             # <<<<<<<<<<<<<<
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pgraph); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31235, __pyx_L1_error)
  __pyx_v_cygraph = ((cudaGraph_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31236
 *         pgraph = int(cudaGraph_t(graph))
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphConditionalHandleCreate_v2(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, cyctx, defaultLaunchValue, flags)
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31236, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_pHandle_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":31237
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphConditionalHandleCreate_v2(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, cyctx, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31238
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
 *     with nogil:
 *         err = cyruntime.cudaGraphConditionalHandleCreate_v2(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, cyctx, defaultLaunchValue, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphConditionalHandleCreate_v2(((cudaGraphConditionalHandle *)__pyx_v_pHandle_out->_pvt_ptr), __pyx_v_cygraph, __pyx_v_cyctx, __pyx_v_defaultLaunchValue, __pyx_v_flags); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31238, __pyx_L8_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":31237
 *     cygraph = <cyruntime.cudaGraph_t><void_ptr>pgraph
 *     cdef cudaGraphConditionalHandle pHandle_out = cudaGraphConditionalHandle()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphConditionalHandleCreate_v2(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, cyctx, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31239
 *     with nogil:
 *         err = cyruntime.cudaGraphConditionalHandleCreate_v2(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, cyctx, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHandle_out)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31240
 *         err = cyruntime.cudaGraphConditionalHandleCreate_v2(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, cyctx, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pHandle_out)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 31240, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 31240, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31239
 *     with nogil:
 *         err = cyruntime.cudaGraphConditionalHandleCreate_v2(<cyruntime.cudaGraphConditionalHandle*>pHandle_out._pvt_ptr, cygraph, cyctx, defaultLaunchValue, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHandle_out)
*/
  }

  /* "cuda/bindings/runtime.pyx":31241
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pHandle_out)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 31241, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pHandle_out);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pHandle_out);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_pHandle_out)) != (0)) __PYX_ERR(0, 31241, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31183
 *     return (_dict_cudaError_t[err], pHandle_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphConditionalHandleCreate_v2(graph, ctx, unsigned int defaultLaunchValue, unsigned int flags):
 *     """ Create a conditional handle.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphConditionalHandleCreate_v2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XDECREF(__pyx_v_pgraph);
  __Pyx_XDECREF((PyObject *)__pyx_v_pHandle_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31243
 *     return (_dict_cudaError_t[err], pHandle_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDriverEntryPoint(char* symbol, unsigned long long flags):
 *     """ Returns the requested driver API function pointer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_563cudaGetDriverEntryPoint(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_7runtime_562cudaGetDriverEntryPoint, "cudaGetDriverEntryPoint(char *symbol, unsigned long long flags)\n\nReturns the requested driver API function pointer.\n\n[Deprecated]\n\nReturns in `**funcPtr` the address of the CUDA driver function for the\nrequested flags.\n\nFor a requested driver symbol, if the CUDA version in which the driver\nsymbol was introduced is less than or equal to the CUDA runtime\nversion, the API will return the function pointer to the corresponding\nversioned driver function.\n\nThe pointer returned by the API should be cast to a function pointer\nmatching the requested driver function's definition in the API header\nfile. The function pointer typedef can be picked up from the\ncorresponding typedefs header file. For example, cudaTypedefs.h\nconsists of function pointer typedefs for driver APIs defined in\ncuda.h.\n\nThe API will return :py:obj:`~.cudaSuccess` and set the returned\n`funcPtr` if the requested driver function is valid and supported on\nthe platform.\n\nThe API will return :py:obj:`~.cudaSuccess` and set the returned\n`funcPtr` to NULL if the requested driver function is not supported on\nthe platform, no ABI compatible driver function exists for the CUDA\nruntime version or if the driver symbol is invalid.\n\nIt will also set the optional `driverStatus` to one of the values in\n:py:obj:`~.cudaDriverEntryPointQueryResult` with the following\nmeanings:\n\n- :py:obj:`~.cudaDriverEntryPointSuccess` - The requested symbol was\n  succesfully found based on input arguments and `pfn` is valid\n\n- :py:obj:`~.cudaDriverEntryPointSymbolNotFound` - The requested symbol\n  was not found\n\n- :py:obj:`~.cudaDriverEntryPointVersionNotSufficent` - The requested\n  symbol was found but is not supported by the current runtime version\n  (CUDART_VERSION)\n\nThe requested flags can be:\n\n- :py:obj:`~.cudaEnableDefault`: This is the default mode. This is\n  equivalent to :py:obj:`~.cudaEnablePerThreadDefaultStream` if the\n  code is compiled with --default-stream per-thread compilation"" flag or\n  the macro CUDA_API_PER_THREAD_DEFAULT_STREAM is defined;\n  :py:obj:`~.cudaEnableLegacyStream` otherwise.\n\n- :py:obj:`~.cudaEnableLegacyStream`: This will enable the search for\n  all driver symbols that match the requested driver symbol name except\n  the corresponding per-thread versions.\n\n- :py:obj:`~.cudaEnablePerThreadDefaultStream`: This will enable the\n  search for all driver symbols that match the requested driver symbol\n  name including the per-thread versions. If a per-thread version is\n  not found, the API will return the legacy version of the driver\n  function.\n\nParameters\n----------\nsymbol : bytes\n    The base name of the driver API function to look for. As an\n    example, for the driver API :py:obj:`~.cuMemAlloc_v2`, `symbol`\n    would be cuMemAlloc. Note that the API will use the CUDA runtime\n    version to return the address to the most recent ABI compatible\n    driver symbol, :py:obj:`~.cuMemAlloc` or :py:obj:`~.cuMemAlloc_v2`.\nflags : unsigned long long\n    Flags to specify search options.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\nfuncPtr : Any\n    Location to return the function pointer to the requested driver\n    function\ndriverStatus : :py:obj:`~.cudaDriverEntryPointQueryResult`\n    Optional location to store the status of finding the symbol from\n    the driver. See :py:obj:`~.cudaDriverEntryPointQueryResult` for\n    possible values.\n\nSee Also\n--------\n:py:obj:`~.cuGetProcAddress`\n\nNotes\n-----\nThis API is deprecated and :py:obj:`~.cudaGetDriverEntryPointByVersion` (with a hardcoded :py:obj:`~.cudaVersion`) should be used instead.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_563cudaGetDriverEntryPoint = {"cudaGetDriverEntryPoint", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_563cudaGetDriverEntryPoint, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_562cudaGetDriverEntryPoint};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_563cudaGetDriverEntryPoint(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
) {
  char *__pyx_v_symbol;
  unsigned PY_LONG_LONG __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGetDriverEntryPoint (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_symbol,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 31243, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31243, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31243, __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, "cudaGetDriverEntryPoint", 0) < (0)) __PYX_ERR(0, 31243, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPoint", 1, 2, 2, i); __PYX_ERR(0, 31243, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 31243, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31243, __pyx_L3_error)
    }
    __pyx_v_symbol = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_symbol) && PyErr_Occurred())) __PYX_ERR(0, 31244, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[1]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31244, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPoint", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 31243, __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.runtime.cudaGetDriverEntryPoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_562cudaGetDriverEntryPoint(__pyx_self, __pyx_v_symbol, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_562cudaGetDriverEntryPoint(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_symbol, unsigned PY_LONG_LONG __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_funcPtr;
  enum cudaDriverEntryPointQueryResult __pyx_v_driverStatus;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetDriverEntryPoint", 0);

  /* "cuda/bindings/runtime.pyx":31336
 *     This API is deprecated and :py:obj:`~.cudaGetDriverEntryPointByVersion` (with a hardcoded :py:obj:`~.cudaVersion`) should be used instead.
 *     """
 *     cdef void_ptr funcPtr = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDriverEntryPointQueryResult driverStatus
 *     with nogil:
*/
  __pyx_v_funcPtr = 0;

  /* "cuda/bindings/runtime.pyx":31338
 *     cdef void_ptr funcPtr = 0
 *     cdef cyruntime.cudaDriverEntryPointQueryResult driverStatus
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDriverEntryPoint(symbol, <void**>&funcPtr, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31339
 *     cdef cyruntime.cudaDriverEntryPointQueryResult driverStatus
 *     with nogil:
 *         err = cyruntime.cudaGetDriverEntryPoint(symbol, <void**>&funcPtr, flags, &driverStatus)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetDriverEntryPoint(__pyx_v_symbol, ((void **)(&__pyx_v_funcPtr)), __pyx_v_flags, (&__pyx_v_driverStatus)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31339, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":31338
 *     cdef void_ptr funcPtr = 0
 *     cdef cyruntime.cudaDriverEntryPointQueryResult driverStatus
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDriverEntryPoint(symbol, <void**>&funcPtr, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31340
 *     with nogil:
 *         err = cyruntime.cudaGetDriverEntryPoint(symbol, <void**>&funcPtr, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31341
 *         err = cyruntime.cudaGetDriverEntryPoint(symbol, <void**>&funcPtr, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 31341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 31341, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 31341, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None) != (0)) __PYX_ERR(0, 31341, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31340
 *     with nogil:
 *         err = cyruntime.cudaGetDriverEntryPoint(symbol, <void**>&funcPtr, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
*/
  }

  /* "cuda/bindings/runtime.pyx":31342
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 31342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_funcPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 31342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointQueryResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaDriverEntryPointQueryResult(__pyx_v_driverStatus); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_8};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 31342, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 31342, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_4) != (0)) __PYX_ERR(0, 31342, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31243
 *     return (_dict_cudaError_t[err], pHandle_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDriverEntryPoint(char* symbol, unsigned long long flags):
 *     """ Returns the requested driver API function pointer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetDriverEntryPoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31344
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDriverEntryPointByVersion(char* symbol, unsigned int cudaVersion, unsigned long long flags):
 *     """ Returns the requested driver API function pointer by CUDA version.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_565cudaGetDriverEntryPointByVersion(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_7runtime_564cudaGetDriverEntryPointByVersion, "cudaGetDriverEntryPointByVersion(char *symbol, unsigned int cudaVersion, unsigned long long flags)\n\nReturns the requested driver API function pointer by CUDA version.\n\nReturns in `**funcPtr` the address of the CUDA driver function for the\nrequested flags and CUDA driver version.\n\nThe CUDA version is specified as (1000 * major + 10 * minor), so CUDA\n11.2 should be specified as 11020. For a requested driver symbol, if\nthe specified CUDA version is greater than or equal to the CUDA version\nin which the driver symbol was introduced, this API will return the\nfunction pointer to the corresponding versioned function. If the\nspecified CUDA version is greater than the driver version, the API will\nreturn :py:obj:`~.cudaErrorInvalidValue`.\n\nThe pointer returned by the API should be cast to a function pointer\nmatching the requested driver function's definition in the API header\nfile. The function pointer typedef can be picked up from the\ncorresponding typedefs header file. For example, cudaTypedefs.h\nconsists of function pointer typedefs for driver APIs defined in\ncuda.h.\n\nFor the case where the CUDA version requested is greater than the CUDA\nToolkit installed, there may not be an appropriate function pointer\ntypedef in the corresponding header file and may need a custom typedef\nto match the driver function signature returned. This can be done by\ngetting the typedefs from a later toolkit or creating appropriately\nmatching custom function typedefs.\n\nThe API will return :py:obj:`~.cudaSuccess` and set the returned\n`funcPtr` if the requested driver function is valid and supported on\nthe platform.\n\nThe API will return :py:obj:`~.cudaSuccess` and set the returned\n`funcPtr` to NULL if the requested driver function is not supported on\nthe platform, no ABI compatible driver function exists for the\nrequested version or if the driver symbol is invalid.\n\nIt will also set the optional `driverStatus` to one of the values in\n:py:obj:`~.cudaDriverEntryPo""intQueryResult` with the following\nmeanings:\n\n- :py:obj:`~.cudaDriverEntryPointSuccess` - The requested symbol was\n  succesfully found based on input arguments and `pfn` is valid\n\n- :py:obj:`~.cudaDriverEntryPointSymbolNotFound` - The requested symbol\n  was not found\n\n- :py:obj:`~.cudaDriverEntryPointVersionNotSufficent` - The requested\n  symbol was found but is not supported by the specified version\n  `cudaVersion`\n\nThe requested flags can be:\n\n- :py:obj:`~.cudaEnableDefault`: This is the default mode. This is\n  equivalent to :py:obj:`~.cudaEnablePerThreadDefaultStream` if the\n  code is compiled with --default-stream per-thread compilation flag or\n  the macro CUDA_API_PER_THREAD_DEFAULT_STREAM is defined;\n  :py:obj:`~.cudaEnableLegacyStream` otherwise.\n\n- :py:obj:`~.cudaEnableLegacyStream`: This will enable the search for\n  all driver symbols that match the requested driver symbol name except\n  the corresponding per-thread versions.\n\n- :py:obj:`~.cudaEnablePerThreadDefaultStream`: This will enable the\n  search for all driver symbols that match the requested driver symbol\n  name including the per-thread versions. If a per-thread version is\n  not found, the API will return the legacy version of the driver\n  function.\n\nParameters\n----------\nsymbol : bytes\n    The base name of the driver API function to look for. As an\n    example, for the driver API :py:obj:`~.cuMemAlloc_v2`, `symbol`\n    would be cuMemAlloc.\ncudaVersion : unsigned int\n    The CUDA version to look for the requested driver symbol\nflags : unsigned long long\n    Flags to specify search options.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`\nfuncPtr : Any\n    Location to return the function pointer to the requested driver\n    function\ndriverStatus : :py:obj:`~.cudaDriverEntryPointQueryResult`\n    Optional location to store the status of finding the symbol from\n    the driver. ""See :py:obj:`~.cudaDriverEntryPointQueryResult` for\n    possible values.\n\nSee Also\n--------\n:py:obj:`~.cuGetProcAddress`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_565cudaGetDriverEntryPointByVersion = {"cudaGetDriverEntryPointByVersion", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_565cudaGetDriverEntryPointByVersion, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_564cudaGetDriverEntryPointByVersion};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_565cudaGetDriverEntryPointByVersion(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
) {
  char *__pyx_v_symbol;
  unsigned int __pyx_v_cudaVersion;
  unsigned PY_LONG_LONG __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGetDriverEntryPointByVersion (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_symbol,&__pyx_mstate_global->__pyx_n_u_cudaVersion,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 31344, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31344, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31344, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31344, __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, "cudaGetDriverEntryPointByVersion", 0) < (0)) __PYX_ERR(0, 31344, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPointByVersion", 1, 3, 3, i); __PYX_ERR(0, 31344, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 31344, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31344, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31344, __pyx_L3_error)
    }
    __pyx_v_symbol = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_symbol) && PyErr_Occurred())) __PYX_ERR(0, 31345, __pyx_L3_error)
    __pyx_v_cudaVersion = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_cudaVersion == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31345, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(values[2]); if (unlikely((__pyx_v_flags == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31345, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetDriverEntryPointByVersion", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 31344, __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.runtime.cudaGetDriverEntryPointByVersion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_564cudaGetDriverEntryPointByVersion(__pyx_self, __pyx_v_symbol, __pyx_v_cudaVersion, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_564cudaGetDriverEntryPointByVersion(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_symbol, unsigned int __pyx_v_cudaVersion, unsigned PY_LONG_LONG __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_funcPtr;
  enum cudaDriverEntryPointQueryResult __pyx_v_driverStatus;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetDriverEntryPointByVersion", 0);

  /* "cuda/bindings/runtime.pyx":31441
 *     :py:obj:`~.cuGetProcAddress`
 *     """
 *     cdef void_ptr funcPtr = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDriverEntryPointQueryResult driverStatus
 *     with nogil:
*/
  __pyx_v_funcPtr = 0;

  /* "cuda/bindings/runtime.pyx":31443
 *     cdef void_ptr funcPtr = 0
 *     cdef cyruntime.cudaDriverEntryPointQueryResult driverStatus
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDriverEntryPointByVersion(symbol, <void**>&funcPtr, cudaVersion, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31444
 *     cdef cyruntime.cudaDriverEntryPointQueryResult driverStatus
 *     with nogil:
 *         err = cyruntime.cudaGetDriverEntryPointByVersion(symbol, <void**>&funcPtr, cudaVersion, flags, &driverStatus)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetDriverEntryPointByVersion(__pyx_v_symbol, ((void **)(&__pyx_v_funcPtr)), __pyx_v_cudaVersion, __pyx_v_flags, (&__pyx_v_driverStatus)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31444, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":31443
 *     cdef void_ptr funcPtr = 0
 *     cdef cyruntime.cudaDriverEntryPointQueryResult driverStatus
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetDriverEntryPointByVersion(symbol, <void**>&funcPtr, cudaVersion, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31445
 *     with nogil:
 *         err = cyruntime.cudaGetDriverEntryPointByVersion(symbol, <void**>&funcPtr, cudaVersion, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31446
 *         err = cyruntime.cudaGetDriverEntryPointByVersion(symbol, <void**>&funcPtr, cudaVersion, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31446, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31446, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 31446, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31446, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 31446, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None) != (0)) __PYX_ERR(0, 31446, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, Py_None) != (0)) __PYX_ERR(0, 31446, __pyx_L1_error);
    __pyx_t_5 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31445
 *     with nogil:
 *         err = cyruntime.cudaGetDriverEntryPointByVersion(symbol, <void**>&funcPtr, cudaVersion, flags, &driverStatus)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
*/
  }

  /* "cuda/bindings/runtime.pyx":31447
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 31447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_funcPtr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 31447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointQueryResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaDriverEntryPointQueryResult(__pyx_v_driverStatus); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_8};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 31447, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 31447, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_4) != (0)) __PYX_ERR(0, 31447, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31344
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDriverEntryPointByVersion(char* symbol, unsigned int cudaVersion, unsigned long long flags):
 *     """ Returns the requested driver API function pointer by CUDA version.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetDriverEntryPointByVersion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31449
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryLoadData(code, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions):
 *     """ Load a library with specified code and options.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_567cudaLibraryLoadData(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_7runtime_566cudaLibraryLoadData, "cudaLibraryLoadData(code, jitOptions: Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues: Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions: Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues: Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions)\n\nLoad a library with specified code and options.\n\nTakes a pointer `code` and loads the corresponding library `library`\nbased on the application defined library loading mode:\n\n- If module loading is set to EAGER, via the environment variables\n  described in \"Module loading\", `library` is loaded eagerly into all\n  contexts at the time of the call and future contexts at the time of\n  creation until the library is unloaded with\n  :py:obj:`~.cudaLibraryUnload()`.\n\n- If the environment variables are set to LAZY, `library` is not\n  immediately loaded onto all existent contexts and will only be loaded\n  when a function is needed for that context, such as a kernel launch.\n\nThese environment variables are described in the CUDA programming guide\nunder the \"CUDA environment variables\" section.\n\nThe `code` may be a `cubin` or `fatbin` as output by nvcc, or a NULL-\nterminated `PTX`, either as output by nvcc or hand-written, or `Tile`\nIR data. A fatbin should also contain relocatable code when doing\nseparate compilation. Please also see the documentation for nvrtc\n(https://docs.nvidia.com/cuda/nvrtc/index.html), nvjitlink\n(https://docs.nvidia.com/cuda/nvjitlink/index.html), and nvfatbin\n(https://docs.nvidia.com/cuda/nvfatbin/index.html) for more information\non generating loadable code at runtime.\n\nOptions are passed as an array via `jitOptions` and any corresponding\nparameters are passed in `jitOptionsValues`. The number of total JIT\noptions is supplied via `numJitOptions`. Any outputs will be returned\nvia `jitOptionsValues`.\n\nLibrary load options are passed as an array via `libraryOptions` and\nany corresponding"" parameters are passed in `libraryOptionValues`. The\nnumber of total library load options is supplied via\n`numLibraryOptions`.\n\nParameters\n----------\ncode : Any\n    Code to load\njitOptions : list[:py:obj:`~.cudaJitOption`]\n    Options for JIT\njitOptionsValues : list[Any]\n    Option values for JIT\nnumJitOptions : unsigned int\n    Number of options\nlibraryOptions : list[:py:obj:`~.cudaLibraryOption`]\n    Options for loading\nlibraryOptionValues : list[Any]\n    Option values for loading\nnumLibraryOptions : unsigned int\n    Number of options for loading\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInvalidPtx`, :py:obj:`~.cudaErrorUnsupportedPtxVersion`, :py:obj:`~.cudaErrorNoKernelImageForDevice`, :py:obj:`~.cudaErrorSharedObjectSymbolNotFound`, :py:obj:`~.cudaErrorSharedObjectInitFailed`, :py:obj:`~.cudaErrorJitCompilerNotFound`\nlibrary : :py:obj:`~.cudaLibrary_t`\n    Returned library\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cuLibraryLoadData`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_567cudaLibraryLoadData = {"cudaLibraryLoadData", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_567cudaLibraryLoadData, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_566cudaLibraryLoadData};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_567cudaLibraryLoadData(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_code = 0;
  PyObject *__pyx_v_jitOptions = 0;
  PyObject *__pyx_v_jitOptionsValues = 0;
  unsigned int __pyx_v_numJitOptions;
  PyObject *__pyx_v_libraryOptions = 0;
  PyObject *__pyx_v_libraryOptionValues = 0;
  unsigned int __pyx_v_numLibraryOptions;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLibraryLoadData (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_code,&__pyx_mstate_global->__pyx_n_u_jitOptions,&__pyx_mstate_global->__pyx_n_u_jitOptionsValues,&__pyx_mstate_global->__pyx_n_u_numJitOptions,&__pyx_mstate_global->__pyx_n_u_libraryOptions,&__pyx_mstate_global->__pyx_n_u_libraryOptionValues,&__pyx_mstate_global->__pyx_n_u_numLibraryOptions,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, 31449, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 31449, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 31449, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 31449, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 31449, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31449, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31449, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31449, __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, "cudaLibraryLoadData", 0) < (0)) __PYX_ERR(0, 31449, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryLoadData", 1, 7, 7, i); __PYX_ERR(0, 31449, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      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, 31449, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31449, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31449, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 31449, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 31449, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 31449, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 31449, __pyx_L3_error)
    }
    __pyx_v_code = values[0];
    __pyx_v_jitOptions = values[1];
    __pyx_v_jitOptionsValues = values[2];
    __pyx_v_numJitOptions = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_numJitOptions == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31450, __pyx_L3_error)
    __pyx_v_libraryOptions = values[4];
    __pyx_v_libraryOptionValues = values[5];
    __pyx_v_numLibraryOptions = __Pyx_PyLong_As_unsigned_int(values[6]); if (unlikely((__pyx_v_numLibraryOptions == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31450, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryLoadData", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 31449, __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.runtime.cudaLibraryLoadData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_566cudaLibraryLoadData(__pyx_self, __pyx_v_code, __pyx_v_jitOptions, __pyx_v_jitOptionsValues, __pyx_v_numJitOptions, __pyx_v_libraryOptions, __pyx_v_libraryOptionValues, __pyx_v_numLibraryOptions);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_2generator133(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":31518
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaLibraryLoadData_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 31518, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_2generator133, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[133]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaLibraryLoadData_locals_genex, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 31518, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryLoadData.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_2generator133(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 31518, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 31518, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31518, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31518, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31518, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31518, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31518, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLibraryOption); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v__x, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 31518, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_5generator134(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":31522
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_19cudaLibraryLoadData_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 31522, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_5generator134, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[134]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaLibraryLoadData_locals_genex, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 31522, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryLoadData.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_5generator134(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 31522, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 31522, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31522, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31522, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31522, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31522, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31522, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31522, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitOption); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31522, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v__x, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 31522, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31449
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryLoadData(code, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions):
 *     """ Load a library with specified code and options.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_566cudaLibraryLoadData(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_code, PyObject *__pyx_v_jitOptions, PyObject *__pyx_v_jitOptionsValues, unsigned int __pyx_v_numJitOptions, PyObject *__pyx_v_libraryOptions, PyObject *__pyx_v_libraryOptionValues, unsigned int __pyx_v_numLibraryOptions) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_library = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cycode = NULL;
  void *__pyx_v_cycode_ptr;
  std::vector<enum cudaJitOption>  __pyx_v_cyjitOptions;
  PyObject *__pyx_v_pylist = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperjitOptionsValues = 0;
  void **__pyx_v_cyjitOptionsValues_ptr;
  std::vector<enum cudaLibraryOption>  __pyx_v_cylibraryOptions;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperlibraryOptionValues = 0;
  void **__pyx_v_cylibraryOptionValues_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_2generator133 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_5generator134 = 0;
  PyObject *__pyx_10genexpr275__pyx_v_pyjitOptions = NULL;
  PyObject *__pyx_10genexpr276__pyx_v_pyoptions = NULL;
  PyObject *__pyx_10genexpr276__pyx_v_pyoptionValues = NULL;
  PyObject *__pyx_10genexpr277__pyx_v_pylibraryOptions = NULL;
  PyObject *__pyx_10genexpr278__pyx_v_pyoptions = NULL;
  PyObject *__pyx_10genexpr278__pyx_v_pyoptionValues = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  std::vector<enum cudaJitOption>  __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *(*__pyx_t_14)(PyObject *);
  std::vector<enum cudaLibraryOption>  __pyx_t_15;
  cudaError_t __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryLoadData", 0);
  __Pyx_INCREF(__pyx_v_jitOptions);
  __Pyx_INCREF(__pyx_v_jitOptionsValues);
  __Pyx_INCREF(__pyx_v_libraryOptions);
  __Pyx_INCREF(__pyx_v_libraryOptionValues);

  /* "cuda/bindings/runtime.pyx":31516
 *     :py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cuLibraryLoadData`
 *     """
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues             # <<<<<<<<<<<<<<
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):
*/
  __pyx_t_2 = (__pyx_v_libraryOptionValues == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_libraryOptionValues);
    __pyx_t_1 = __pyx_v_libraryOptionValues;
  }
  __Pyx_DECREF_SET(__pyx_v_libraryOptionValues, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31517
 *     """
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
*/
  __pyx_t_2 = (__pyx_v_libraryOptions == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_libraryOptions);
    __pyx_t_1 = __pyx_v_libraryOptions;
  }
  __Pyx_DECREF_SET(__pyx_v_libraryOptions, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31518
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_19cudaLibraryLoadData_genexpr(NULL, __pyx_v_libraryOptions); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 31518, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":31519
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")             # <<<<<<<<<<<<<<
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_libraryOptions_is_not_i};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31519, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 31519, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":31518
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
*/
  }

  /* "cuda/bindings/runtime.pyx":31520
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues             # <<<<<<<<<<<<<<
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):
*/
  __pyx_t_4 = (__pyx_v_jitOptionsValues == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_jitOptionsValues);
    __pyx_t_3 = __pyx_v_jitOptionsValues;
  }
  __Pyx_DECREF_SET(__pyx_v_jitOptionsValues, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":31521
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
*/
  __pyx_t_4 = (__pyx_v_jitOptions == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_jitOptions);
    __pyx_t_3 = __pyx_v_jitOptions;
  }
  __Pyx_DECREF_SET(__pyx_v_jitOptions, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":31522
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_19cudaLibraryLoadData_3genexpr(NULL, __pyx_v_jitOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 31522, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":31523
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")             # <<<<<<<<<<<<<<
 *     cdef cudaLibrary_t library = cudaLibrary_t()
 *     cycode = _HelperInputVoidPtr(code)
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_jitOptions_is_not_insta};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31523, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31523, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":31522
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
*/
  }

  /* "cuda/bindings/runtime.pyx":31524
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()             # <<<<<<<<<<<<<<
 *     cycode = _HelperInputVoidPtr(code)
 *     cdef void* cycode_ptr = <void*><void_ptr>cycode.cptr
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31524, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_library = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31525
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
 *     cycode = _HelperInputVoidPtr(code)             # <<<<<<<<<<<<<<
 *     cdef void* cycode_ptr = <void*><void_ptr>cycode.cptr
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_code};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31525, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cycode = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31526
 *     cdef cudaLibrary_t library = cudaLibrary_t()
 *     cycode = _HelperInputVoidPtr(code)
 *     cdef void* cycode_ptr = <void*><void_ptr>cycode.cptr             # <<<<<<<<<<<<<<
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cycode), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31526, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cycode_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":31527
 *     cycode = _HelperInputVoidPtr(code)
 *     cdef void* cycode_ptr = <void*><void_ptr>cycode.cptr
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]             # <<<<<<<<<<<<<<
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31527, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_jitOptions)) || PyTuple_CheckExact(__pyx_v_jitOptions)) {
      __pyx_t_3 = __pyx_v_jitOptions; __Pyx_INCREF(__pyx_t_3);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_jitOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31527, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31527, __pyx_L7_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31527, __pyx_L7_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31527, __pyx_L7_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7));
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31527, __pyx_L7_error)
      } else {
        __pyx_t_9 = __pyx_t_8(__pyx_t_3);
        if (unlikely(!__pyx_t_9)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31527, __pyx_L7_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_10genexpr275__pyx_v_pyjitOptions, __pyx_t_9);
      __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr275__pyx_v_pyjitOptions, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31527, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 31527, __pyx_L7_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_10genexpr275__pyx_v_pyjitOptions); __pyx_10genexpr275__pyx_v_pyjitOptions = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr275__pyx_v_pyjitOptions); __pyx_10genexpr275__pyx_v_pyjitOptions = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_t_10 = __pyx_convert_vector_from_py_enum__cudaJitOption(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 31527, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyjitOptions = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_10);

  /* "cuda/bindings/runtime.pyx":31528
 *     cdef void* cycode_ptr = <void*><void_ptr>cycode.cptr
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31528, __pyx_L14_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_9, __pyx_v_jitOptions, __pyx_v_jitOptionsValues};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_zip, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31528, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
      __pyx_t_9 = __pyx_t_3; __Pyx_INCREF(__pyx_t_9);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31528, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31528, __pyx_L14_error)
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_9))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31528, __pyx_L14_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_9);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31528, __pyx_L14_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_7));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_9, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31528, __pyx_L14_error)
      } else {
        __pyx_t_3 = __pyx_t_8(__pyx_t_9);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31528, __pyx_L14_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
        PyObject* sequence = __pyx_t_3;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 31528, __pyx_L14_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_11 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_11);
          __pyx_t_12 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_12);
        } else {
          __pyx_t_11 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31528, __pyx_L14_error)
          __Pyx_XGOTREF(__pyx_t_11);
          __pyx_t_12 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31528, __pyx_L14_error)
          __Pyx_XGOTREF(__pyx_t_12);
        }
        #else
        __pyx_t_11 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31528, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_12 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31528, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_12);
        #endif
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_13 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 31528, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_13);
        index = 0; __pyx_t_11 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_11)) goto __pyx_L17_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_11);
        index = 1; __pyx_t_12 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_12)) goto __pyx_L17_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_12);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_13), 2) < (0)) __PYX_ERR(0, 31528, __pyx_L14_error)
        __pyx_t_14 = NULL;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        goto __pyx_L18_unpacking_done;
        __pyx_L17_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_t_14 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 31528, __pyx_L14_error)
        __pyx_L18_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_10genexpr276__pyx_v_pyoptions, __pyx_t_11);
      __pyx_t_11 = 0;
      __Pyx_XDECREF_SET(__pyx_10genexpr276__pyx_v_pyoptionValues, __pyx_t_12);
      __pyx_t_12 = 0;
      __pyx_t_12 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_12, __pyx_10genexpr276__pyx_v_pyoptions, __pyx_10genexpr276__pyx_v_pyoptionValues};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31528, __pyx_L14_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_3);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 31528, __pyx_L14_error)
      __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_10genexpr276__pyx_v_pyoptionValues); __pyx_10genexpr276__pyx_v_pyoptionValues = 0;
    __Pyx_XDECREF(__pyx_10genexpr276__pyx_v_pyoptions); __pyx_10genexpr276__pyx_v_pyoptions = 0;
    goto __pyx_L20_exit_scope;
    __pyx_L14_error:;
    __Pyx_XDECREF(__pyx_10genexpr276__pyx_v_pyoptionValues); __pyx_10genexpr276__pyx_v_pyoptionValues = 0;
    __Pyx_XDECREF(__pyx_10genexpr276__pyx_v_pyoptions); __pyx_10genexpr276__pyx_v_pyoptions = 0;
    goto __pyx_L1_error;
    __pyx_L20_exit_scope:;
  } /* exit inner scope */
  __pyx_v_pylist = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31529
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))
*/
  __pyx_t_9 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_v_pylist};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31529, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_voidStarHelperjitOptionsValues = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31530
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr             # <<<<<<<<<<<<<<
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperjitOptionsValues), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31530, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyjitOptionsValues_ptr = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":31531
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))             # <<<<<<<<<<<<<<
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_jitOptions); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31531, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numJitOptions > __pyx_t_7);
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_jitOptions); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31531, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numJitOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31531, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31531, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":31532
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))             # <<<<<<<<<<<<<<
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_jitOptionsValues); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31532, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numJitOptions > __pyx_t_7);
  if (unlikely(__pyx_t_2)) {
    __pyx_t_3 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_jitOptionsValues); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31532, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_11 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numJitOptions); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_11, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_9};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((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_1)) __PYX_ERR(0, 31532, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31532, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":31533
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]             # <<<<<<<<<<<<<<
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31533, __pyx_L25_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_libraryOptions)) || PyTuple_CheckExact(__pyx_v_libraryOptions)) {
      __pyx_t_9 = __pyx_v_libraryOptions; __Pyx_INCREF(__pyx_t_9);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_v_libraryOptions); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31533, __pyx_L25_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31533, __pyx_L25_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_9))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31533, __pyx_L25_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_9);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31533, __pyx_L25_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_7));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_9, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31533, __pyx_L25_error)
      } else {
        __pyx_t_3 = __pyx_t_8(__pyx_t_9);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31533, __pyx_L25_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_10genexpr277__pyx_v_pylibraryOptions, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr277__pyx_v_pylibraryOptions, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31533, __pyx_L25_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 31533, __pyx_L25_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_10genexpr277__pyx_v_pylibraryOptions); __pyx_10genexpr277__pyx_v_pylibraryOptions = 0;
    goto __pyx_L29_exit_scope;
    __pyx_L25_error:;
    __Pyx_XDECREF(__pyx_10genexpr277__pyx_v_pylibraryOptions); __pyx_10genexpr277__pyx_v_pylibraryOptions = 0;
    goto __pyx_L1_error;
    __pyx_L29_exit_scope:;
  } /* exit inner scope */
  __pyx_t_15 = __pyx_convert_vector_from_py_enum__cudaLibraryOption(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 31533, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cylibraryOptions = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_15);

  /* "cuda/bindings/runtime.pyx":31534
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31534, __pyx_L32_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_libraryOptions, __pyx_v_libraryOptionValues};
      __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_zip, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31534, __pyx_L32_error)
      __Pyx_GOTREF(__pyx_t_9);
    }
    if (likely(PyList_CheckExact(__pyx_t_9)) || PyTuple_CheckExact(__pyx_t_9)) {
      __pyx_t_3 = __pyx_t_9; __Pyx_INCREF(__pyx_t_3);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31534, __pyx_L32_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31534, __pyx_L32_error)
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31534, __pyx_L32_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31534, __pyx_L32_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7));
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31534, __pyx_L32_error)
      } else {
        __pyx_t_9 = __pyx_t_8(__pyx_t_3);
        if (unlikely(!__pyx_t_9)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31534, __pyx_L32_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_9);
      if ((likely(PyTuple_CheckExact(__pyx_t_9))) || (PyList_CheckExact(__pyx_t_9))) {
        PyObject* sequence = __pyx_t_9;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 31534, __pyx_L32_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_12 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_12);
          __pyx_t_11 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_11);
        } else {
          __pyx_t_12 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31534, __pyx_L32_error)
          __Pyx_XGOTREF(__pyx_t_12);
          __pyx_t_11 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31534, __pyx_L32_error)
          __Pyx_XGOTREF(__pyx_t_11);
        }
        #else
        __pyx_t_12 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31534, __pyx_L32_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_11 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31534, __pyx_L32_error)
        __Pyx_GOTREF(__pyx_t_11);
        #endif
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_13 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 31534, __pyx_L32_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_13);
        index = 0; __pyx_t_12 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_12)) goto __pyx_L35_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_12);
        index = 1; __pyx_t_11 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_11)) goto __pyx_L35_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_11);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_13), 2) < (0)) __PYX_ERR(0, 31534, __pyx_L32_error)
        __pyx_t_14 = NULL;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        goto __pyx_L36_unpacking_done;
        __pyx_L35_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_t_14 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 31534, __pyx_L32_error)
        __pyx_L36_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_10genexpr278__pyx_v_pyoptions, __pyx_t_12);
      __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_10genexpr278__pyx_v_pyoptionValues, __pyx_t_11);
      __pyx_t_11 = 0;
      __pyx_t_11 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_11, __pyx_10genexpr278__pyx_v_pyoptions, __pyx_10genexpr278__pyx_v_pyoptionValues};
        __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31534, __pyx_L32_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_9);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_9))) __PYX_ERR(0, 31534, __pyx_L32_error)
      __Pyx_DECREF((PyObject *)__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_10genexpr278__pyx_v_pyoptionValues); __pyx_10genexpr278__pyx_v_pyoptionValues = 0;
    __Pyx_XDECREF(__pyx_10genexpr278__pyx_v_pyoptions); __pyx_10genexpr278__pyx_v_pyoptions = 0;
    goto __pyx_L38_exit_scope;
    __pyx_L32_error:;
    __Pyx_XDECREF(__pyx_10genexpr278__pyx_v_pyoptionValues); __pyx_10genexpr278__pyx_v_pyoptionValues = 0;
    __Pyx_XDECREF(__pyx_10genexpr278__pyx_v_pyoptions); __pyx_10genexpr278__pyx_v_pyoptions = 0;
    goto __pyx_L1_error;
    __pyx_L38_exit_scope:;
  } /* exit inner scope */
  __Pyx_DECREF_SET(__pyx_v_pylist, ((PyObject*)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31535
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_pylist};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31535, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_voidStarHelperlibraryOptionValues = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31536
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr             # <<<<<<<<<<<<<<
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperlibraryOptionValues), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cylibraryOptionValues_ptr = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":31537
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))             # <<<<<<<<<<<<<<
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
 *     with nogil:
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_libraryOptions); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31537, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numLibraryOptions > __pyx_t_7);
  if (unlikely(__pyx_t_2)) {
    __pyx_t_3 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_libraryOptions); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31537, __pyx_L1_error)
    __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_11 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numLibraryOptions); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_11, __pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_9};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((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_1)) __PYX_ERR(0, 31537, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31537, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":31538
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryLoadData(<cyruntime.cudaLibrary_t*>library._pvt_ptr, cycode_ptr, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_libraryOptionValues); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31538, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numLibraryOptions > __pyx_t_7);
  if (unlikely(__pyx_t_2)) {
    __pyx_t_9 = NULL;
    __pyx_t_7 = PyObject_Length(__pyx_v_libraryOptionValues); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31538, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_12 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numLibraryOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_12, __pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31538, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31538, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":31539
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryLoadData(<cyruntime.cudaLibrary_t*>library._pvt_ptr, cycode_ptr, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31540
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
 *     with nogil:
 *         err = cyruntime.cudaLibraryLoadData(<cyruntime.cudaLibrary_t*>library._pvt_ptr, cycode_ptr, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_16 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryLoadData(((cudaLibrary_t *)__pyx_v_library->_pvt_ptr), __pyx_v_cycode_ptr, __pyx_v_cyjitOptions.data(), __pyx_v_cyjitOptionsValues_ptr, __pyx_v_numJitOptions, __pyx_v_cylibraryOptions.data(), __pyx_v_cylibraryOptionValues_ptr, __pyx_v_numLibraryOptions); if (unlikely(__pyx_t_16 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31540, __pyx_L42_error)
        __pyx_v_err = __pyx_t_16;
      }

      /* "cuda/bindings/runtime.pyx":31539
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryLoadData(<cyruntime.cudaLibrary_t*>library._pvt_ptr, cycode_ptr, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L43;
        }
        __pyx_L42_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L43:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31541
 *     with nogil:
 *         err = cyruntime.cudaLibraryLoadData(<cyruntime.cudaLibrary_t*>library._pvt_ptr, cycode_ptr, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], library)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31542
 *         err = cyruntime.cudaLibraryLoadData(<cyruntime.cudaLibrary_t*>library._pvt_ptr, cycode_ptr, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], library)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31542, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31542, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31542, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31542, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 31542, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 31542, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31541
 *     with nogil:
 *         err = cyruntime.cudaLibraryLoadData(<cyruntime.cudaLibrary_t*>library._pvt_ptr, cycode_ptr, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], library)
*/
  }

  /* "cuda/bindings/runtime.pyx":31543
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], library)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 31543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 31543, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_library);
  __Pyx_GIVEREF((PyObject *)__pyx_v_library);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_v_library)) != (0)) __PYX_ERR(0, 31543, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31449
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryLoadData(code, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions):
 *     """ Load a library with specified code and options.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryLoadData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_library);
  __Pyx_XDECREF((PyObject *)__pyx_v_cycode);
  __Pyx_XDECREF(__pyx_v_pylist);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperjitOptionsValues);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperlibraryOptionValues);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_2generator133);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_19cudaLibraryLoadData_5generator134);
  __Pyx_XDECREF(__pyx_10genexpr275__pyx_v_pyjitOptions);
  __Pyx_XDECREF(__pyx_10genexpr276__pyx_v_pyoptions);
  __Pyx_XDECREF(__pyx_10genexpr276__pyx_v_pyoptionValues);
  __Pyx_XDECREF(__pyx_10genexpr277__pyx_v_pylibraryOptions);
  __Pyx_XDECREF(__pyx_10genexpr278__pyx_v_pyoptions);
  __Pyx_XDECREF(__pyx_10genexpr278__pyx_v_pyoptionValues);
  __Pyx_XDECREF(__pyx_v_jitOptions);
  __Pyx_XDECREF(__pyx_v_jitOptionsValues);
  __Pyx_XDECREF(__pyx_v_libraryOptions);
  __Pyx_XDECREF(__pyx_v_libraryOptionValues);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31545
 *     return (_dict_cudaError_t[err], library)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions):
 *     """ Load a library with specified file and options.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_569cudaLibraryLoadFromFile(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_7runtime_568cudaLibraryLoadFromFile, "cudaLibraryLoadFromFile(char *fileName, jitOptions: Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues: Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions: Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues: Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions)\n\nLoad a library with specified file and options.\n\nTakes a pointer `code` and loads the corresponding library `library`\nbased on the application defined library loading mode:\n\n- If module loading is set to EAGER, via the environment variables\n  described in \"Module loading\", `library` is loaded eagerly into all\n  contexts at the time of the call and future contexts at the time of\n  creation until the library is unloaded with\n  :py:obj:`~.cudaLibraryUnload()`.\n\n- If the environment variables are set to LAZY, `library` is not\n  immediately loaded onto all existent contexts and will only be loaded\n  when a function is needed for that context, such as a kernel launch.\n\nThese environment variables are described in the CUDA programming guide\nunder the \"CUDA environment variables\" section.\n\nThe file should be a `cubin` file as output by nvcc, or a `PTX` file\neither as output by nvcc or handwritten, or a `fatbin` file as output\nby nvcc or hand-written, or `Tile` IR file. A fatbin should also\ncontain relocatable code when doing separate compilation. Please also\nsee the documentation for nvrtc\n(https://docs.nvidia.com/cuda/nvrtc/index.html), nvjitlink\n(https://docs.nvidia.com/cuda/nvjitlink/index.html), and nvfatbin\n(https://docs.nvidia.com/cuda/nvfatbin/index.html) for more information\non generating loadable code at runtime.\n\nOptions are passed as an array via `jitOptions` and any corresponding\nparameters are passed in `jitOptionsValues`. The number of total\noptions is supplied via `numJitOptions`. Any outputs will be returned\nvia `jitOptionsValues`.\n\nLibrary load options are passed as an arra""y via `libraryOptions` and\nany corresponding parameters are passed in `libraryOptionValues`. The\nnumber of total library load options is supplied via\n`numLibraryOptions`.\n\nParameters\n----------\nfileName : bytes\n    File to load from\njitOptions : list[:py:obj:`~.cudaJitOption`]\n    Options for JIT\njitOptionsValues : list[Any]\n    Option values for JIT\nnumJitOptions : unsigned int\n    Number of options\nlibraryOptions : list[:py:obj:`~.cudaLibraryOption`]\n    Options for loading\nlibraryOptionValues : list[Any]\n    Option values for loading\nnumLibraryOptions : unsigned int\n    Number of options for loading\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorMemoryAllocation`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInvalidPtx`, :py:obj:`~.cudaErrorUnsupportedPtxVersion`, :py:obj:`~.cudaErrorNoKernelImageForDevice`, :py:obj:`~.cudaErrorSharedObjectSymbolNotFound`, :py:obj:`~.cudaErrorSharedObjectInitFailed`, :py:obj:`~.cudaErrorJitCompilerNotFound`\nlibrary : :py:obj:`~.cudaLibrary_t`\n    Returned library\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cuLibraryLoadFromFile`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_569cudaLibraryLoadFromFile = {"cudaLibraryLoadFromFile", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_569cudaLibraryLoadFromFile, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_568cudaLibraryLoadFromFile};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_569cudaLibraryLoadFromFile(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
) {
  char *__pyx_v_fileName;
  PyObject *__pyx_v_jitOptions = 0;
  PyObject *__pyx_v_jitOptionsValues = 0;
  unsigned int __pyx_v_numJitOptions;
  PyObject *__pyx_v_libraryOptions = 0;
  PyObject *__pyx_v_libraryOptionValues = 0;
  unsigned int __pyx_v_numLibraryOptions;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLibraryLoadFromFile (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_fileName,&__pyx_mstate_global->__pyx_n_u_jitOptions,&__pyx_mstate_global->__pyx_n_u_jitOptionsValues,&__pyx_mstate_global->__pyx_n_u_numJitOptions,&__pyx_mstate_global->__pyx_n_u_libraryOptions,&__pyx_mstate_global->__pyx_n_u_libraryOptionValues,&__pyx_mstate_global->__pyx_n_u_numLibraryOptions,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, 31545, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 31545, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 31545, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 31545, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 31545, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31545, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31545, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31545, __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, "cudaLibraryLoadFromFile", 0) < (0)) __PYX_ERR(0, 31545, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryLoadFromFile", 1, 7, 7, i); __PYX_ERR(0, 31545, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      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, 31545, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31545, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31545, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 31545, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 31545, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 31545, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 31545, __pyx_L3_error)
    }
    __pyx_v_fileName = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((!__pyx_v_fileName) && PyErr_Occurred())) __PYX_ERR(0, 31546, __pyx_L3_error)
    __pyx_v_jitOptions = values[1];
    __pyx_v_jitOptionsValues = values[2];
    __pyx_v_numJitOptions = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_numJitOptions == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31546, __pyx_L3_error)
    __pyx_v_libraryOptions = values[4];
    __pyx_v_libraryOptionValues = values[5];
    __pyx_v_numLibraryOptions = __Pyx_PyLong_As_unsigned_int(values[6]); if (unlikely((__pyx_v_numLibraryOptions == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31546, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryLoadFromFile", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 31545, __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.runtime.cudaLibraryLoadFromFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_568cudaLibraryLoadFromFile(__pyx_self, __pyx_v_fileName, __pyx_v_jitOptions, __pyx_v_jitOptionsValues, __pyx_v_numJitOptions, __pyx_v_libraryOptions, __pyx_v_libraryOptionValues, __pyx_v_numLibraryOptions);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_2generator135(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":31615
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 31615, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_2generator135, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[135]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaLibraryLoadFromFile_locals_g, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 31615, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryLoadFromFile.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_2generator135(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 31615, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 31615, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31615, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31615, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31615, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31615, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31615, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLibraryOption); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v__x, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 31615, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_5generator136(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":31619
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_3genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 31619, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_5generator136, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[136]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaLibraryLoadFromFile_locals_g, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 31619, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryLoadFromFile.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_5generator136(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 31619, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 31619, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31619, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31619, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31619, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31619, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31619, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitOption); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v__x, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 31619, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31545
 *     return (_dict_cudaError_t[err], library)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions):
 *     """ Load a library with specified file and options.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_568cudaLibraryLoadFromFile(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_fileName, PyObject *__pyx_v_jitOptions, PyObject *__pyx_v_jitOptionsValues, unsigned int __pyx_v_numJitOptions, PyObject *__pyx_v_libraryOptions, PyObject *__pyx_v_libraryOptionValues, unsigned int __pyx_v_numLibraryOptions) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_library = 0;
  std::vector<enum cudaJitOption>  __pyx_v_cyjitOptions;
  PyObject *__pyx_v_pylist = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperjitOptionsValues = 0;
  void **__pyx_v_cyjitOptionsValues_ptr;
  std::vector<enum cudaLibraryOption>  __pyx_v_cylibraryOptions;
  struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *__pyx_v_voidStarHelperlibraryOptionValues = 0;
  void **__pyx_v_cylibraryOptionValues_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_2generator135 = 0;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_5generator136 = 0;
  PyObject *__pyx_10genexpr281__pyx_v_pyjitOptions = NULL;
  PyObject *__pyx_10genexpr282__pyx_v_pyoptions = NULL;
  PyObject *__pyx_10genexpr282__pyx_v_pyoptionValues = NULL;
  PyObject *__pyx_10genexpr283__pyx_v_pylibraryOptions = NULL;
  PyObject *__pyx_10genexpr284__pyx_v_pyoptions = NULL;
  PyObject *__pyx_10genexpr284__pyx_v_pyoptionValues = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  std::vector<enum cudaJitOption>  __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *(*__pyx_t_13)(PyObject *);
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_14;
  std::vector<enum cudaLibraryOption>  __pyx_t_15;
  cudaError_t __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryLoadFromFile", 0);
  __Pyx_INCREF(__pyx_v_jitOptions);
  __Pyx_INCREF(__pyx_v_jitOptionsValues);
  __Pyx_INCREF(__pyx_v_libraryOptions);
  __Pyx_INCREF(__pyx_v_libraryOptionValues);

  /* "cuda/bindings/runtime.pyx":31613
 *     :py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cuLibraryLoadFromFile`
 *     """
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues             # <<<<<<<<<<<<<<
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):
*/
  __pyx_t_2 = (__pyx_v_libraryOptionValues == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31613, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_libraryOptionValues);
    __pyx_t_1 = __pyx_v_libraryOptionValues;
  }
  __Pyx_DECREF_SET(__pyx_v_libraryOptionValues, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31614
 *     """
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
*/
  __pyx_t_2 = (__pyx_v_libraryOptions == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_libraryOptions);
    __pyx_t_1 = __pyx_v_libraryOptions;
  }
  __Pyx_DECREF_SET(__pyx_v_libraryOptions, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31615
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_genexpr(NULL, __pyx_v_libraryOptions); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 31615, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":31616
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")             # <<<<<<<<<<<<<<
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_libraryOptions_is_not_i};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31616, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 31616, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":31615
 *     libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues
 *     libraryOptions = [] if libraryOptions is None else libraryOptions
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
*/
  }

  /* "cuda/bindings/runtime.pyx":31617
 *     if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions):
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues             # <<<<<<<<<<<<<<
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):
*/
  __pyx_t_4 = (__pyx_v_jitOptionsValues == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_jitOptionsValues);
    __pyx_t_3 = __pyx_v_jitOptionsValues;
  }
  __Pyx_DECREF_SET(__pyx_v_jitOptionsValues, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":31618
 *         raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]")
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
*/
  __pyx_t_4 = (__pyx_v_jitOptions == Py_None);
  if (__pyx_t_4) {
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31618, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __pyx_t_1 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_jitOptions);
    __pyx_t_3 = __pyx_v_jitOptions;
  }
  __Pyx_DECREF_SET(__pyx_v_jitOptions, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":31619
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
*/
  __pyx_t_3 = __pyx_pf_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_3genexpr(NULL, __pyx_v_jitOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 31619, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = (!__pyx_t_4);
  if (unlikely(__pyx_t_2)) {

    /* "cuda/bindings/runtime.pyx":31620
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")             # <<<<<<<<<<<<<<
 *     cdef cudaLibrary_t library = cudaLibrary_t()
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Argument_jitOptions_is_not_insta};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31620, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31620, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":31619
 *     jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues
 *     jitOptions = [] if jitOptions is None else jitOptions
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
*/
  }

  /* "cuda/bindings/runtime.pyx":31621
 *     if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions):
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()             # <<<<<<<<<<<<<<
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31621, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_library = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31622
 *         raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]")
 *     cdef cudaLibrary_t library = cudaLibrary_t()
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]             # <<<<<<<<<<<<<<
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31622, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_jitOptions)) || PyTuple_CheckExact(__pyx_v_jitOptions)) {
      __pyx_t_3 = __pyx_v_jitOptions; __Pyx_INCREF(__pyx_t_3);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_jitOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31622, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31622, __pyx_L7_error)
    }
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31622, __pyx_L7_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31622, __pyx_L7_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_8 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6));
          #else
          __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31622, __pyx_L7_error)
      } else {
        __pyx_t_8 = __pyx_t_7(__pyx_t_3);
        if (unlikely(!__pyx_t_8)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31622, __pyx_L7_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_XDECREF_SET(__pyx_10genexpr281__pyx_v_pyjitOptions, __pyx_t_8);
      __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr281__pyx_v_pyjitOptions, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31622, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_8);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 31622, __pyx_L7_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_10genexpr281__pyx_v_pyjitOptions); __pyx_10genexpr281__pyx_v_pyjitOptions = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_10genexpr281__pyx_v_pyjitOptions); __pyx_10genexpr281__pyx_v_pyjitOptions = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_t_9 = __pyx_convert_vector_from_py_enum__cudaJitOption(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 31622, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyjitOptions = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_9);

  /* "cuda/bindings/runtime.pyx":31623
 *     cdef cudaLibrary_t library = cudaLibrary_t()
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31623, __pyx_L14_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_8, __pyx_v_jitOptions, __pyx_v_jitOptionsValues};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_zip, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31623, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
      __pyx_t_8 = __pyx_t_3; __Pyx_INCREF(__pyx_t_8);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_8 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31623, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31623, __pyx_L14_error)
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_8))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31623, __pyx_L14_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_8);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31623, __pyx_L14_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_6));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31623, __pyx_L14_error)
      } else {
        __pyx_t_3 = __pyx_t_7(__pyx_t_8);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31623, __pyx_L14_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
        PyObject* sequence = __pyx_t_3;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 31623, __pyx_L14_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_10 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_10);
          __pyx_t_11 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_11);
        } else {
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31623, __pyx_L14_error)
          __Pyx_XGOTREF(__pyx_t_10);
          __pyx_t_11 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31623, __pyx_L14_error)
          __Pyx_XGOTREF(__pyx_t_11);
        }
        #else
        __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31623, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_11 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31623, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_11);
        #endif
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_12 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31623, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12);
        index = 0; __pyx_t_10 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_10)) goto __pyx_L17_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_10);
        index = 1; __pyx_t_11 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_11)) goto __pyx_L17_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_11);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_13(__pyx_t_12), 2) < (0)) __PYX_ERR(0, 31623, __pyx_L14_error)
        __pyx_t_13 = NULL;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        goto __pyx_L18_unpacking_done;
        __pyx_L17_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __pyx_t_13 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 31623, __pyx_L14_error)
        __pyx_L18_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_10genexpr282__pyx_v_pyoptions, __pyx_t_10);
      __pyx_t_10 = 0;
      __Pyx_XDECREF_SET(__pyx_10genexpr282__pyx_v_pyoptionValues, __pyx_t_11);
      __pyx_t_11 = 0;
      __pyx_t_11 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_11, __pyx_10genexpr282__pyx_v_pyoptions, __pyx_10genexpr282__pyx_v_pyoptionValues};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31623, __pyx_L14_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_3);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 31623, __pyx_L14_error)
      __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_10genexpr282__pyx_v_pyoptionValues); __pyx_10genexpr282__pyx_v_pyoptionValues = 0;
    __Pyx_XDECREF(__pyx_10genexpr282__pyx_v_pyoptions); __pyx_10genexpr282__pyx_v_pyoptions = 0;
    goto __pyx_L20_exit_scope;
    __pyx_L14_error:;
    __Pyx_XDECREF(__pyx_10genexpr282__pyx_v_pyoptionValues); __pyx_10genexpr282__pyx_v_pyoptionValues = 0;
    __Pyx_XDECREF(__pyx_10genexpr282__pyx_v_pyoptions); __pyx_10genexpr282__pyx_v_pyoptions = 0;
    goto __pyx_L1_error;
    __pyx_L20_exit_scope:;
  } /* exit inner scope */
  __pyx_v_pylist = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31624
 *     cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)]
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))
*/
  __pyx_t_8 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_pylist};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31624, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_voidStarHelperjitOptionsValues = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31625
 *     pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr             # <<<<<<<<<<<<<<
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperjitOptionsValues), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_14 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_14 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31625, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyjitOptionsValues_ptr = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_14));

  /* "cuda/bindings/runtime.pyx":31626
 *     cdef _InputVoidPtrPtrHelper voidStarHelperjitOptionsValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))             # <<<<<<<<<<<<<<
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_jitOptions); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31626, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numJitOptions > __pyx_t_6);
  if (unlikely(__pyx_t_2)) {
    __pyx_t_8 = NULL;
    __pyx_t_6 = PyObject_Length(__pyx_v_jitOptions); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31626, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_11 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numJitOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_11, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31626, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31626, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":31627
 *     cdef void** cyjitOptionsValues_ptr = <void**><void_ptr>voidStarHelperjitOptionsValues.cptr
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))             # <<<<<<<<<<<<<<
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_jitOptionsValues); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31627, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numJitOptions > __pyx_t_6);
  if (unlikely(__pyx_t_2)) {
    __pyx_t_3 = NULL;
    __pyx_t_6 = PyObject_Length(__pyx_v_jitOptionsValues); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31627, __pyx_L1_error)
    __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numJitOptions); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((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_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31627, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31627, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":31628
 *     if numJitOptions > len(jitOptions): raise RuntimeError("List is too small: " + str(len(jitOptions)) + " < " + str(numJitOptions))
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]             # <<<<<<<<<<<<<<
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31628, __pyx_L25_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_libraryOptions)) || PyTuple_CheckExact(__pyx_v_libraryOptions)) {
      __pyx_t_8 = __pyx_v_libraryOptions; __Pyx_INCREF(__pyx_t_8);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_8 = PyObject_GetIter(__pyx_v_libraryOptions); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31628, __pyx_L25_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31628, __pyx_L25_error)
    }
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_8))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31628, __pyx_L25_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_8);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31628, __pyx_L25_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_6));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31628, __pyx_L25_error)
      } else {
        __pyx_t_3 = __pyx_t_7(__pyx_t_8);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31628, __pyx_L25_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_10genexpr283__pyx_v_pylibraryOptions, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_10genexpr283__pyx_v_pylibraryOptions, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31628, __pyx_L25_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 31628, __pyx_L25_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_10genexpr283__pyx_v_pylibraryOptions); __pyx_10genexpr283__pyx_v_pylibraryOptions = 0;
    goto __pyx_L29_exit_scope;
    __pyx_L25_error:;
    __Pyx_XDECREF(__pyx_10genexpr283__pyx_v_pylibraryOptions); __pyx_10genexpr283__pyx_v_pylibraryOptions = 0;
    goto __pyx_L1_error;
    __pyx_L29_exit_scope:;
  } /* exit inner scope */
  __pyx_t_15 = __pyx_convert_vector_from_py_enum__cudaLibraryOption(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 31628, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cylibraryOptions = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_15);

  /* "cuda/bindings/runtime.pyx":31629
 *     if numJitOptions > len(jitOptionsValues): raise RuntimeError("List is too small: " + str(len(jitOptionsValues)) + " < " + str(numJitOptions))
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]             # <<<<<<<<<<<<<<
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31629, __pyx_L32_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_libraryOptions, __pyx_v_libraryOptionValues};
      __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_zip, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31629, __pyx_L32_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    if (likely(PyList_CheckExact(__pyx_t_8)) || PyTuple_CheckExact(__pyx_t_8)) {
      __pyx_t_3 = __pyx_t_8; __Pyx_INCREF(__pyx_t_3);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31629, __pyx_L32_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31629, __pyx_L32_error)
    }
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31629, __pyx_L32_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 31629, __pyx_L32_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_8 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6));
          #else
          __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31629, __pyx_L32_error)
      } else {
        __pyx_t_8 = __pyx_t_7(__pyx_t_3);
        if (unlikely(!__pyx_t_8)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 31629, __pyx_L32_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_8);
      if ((likely(PyTuple_CheckExact(__pyx_t_8))) || (PyList_CheckExact(__pyx_t_8))) {
        PyObject* sequence = __pyx_t_8;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 31629, __pyx_L32_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_11 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_11);
          __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_10);
        } else {
          __pyx_t_11 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31629, __pyx_L32_error)
          __Pyx_XGOTREF(__pyx_t_11);
          __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31629, __pyx_L32_error)
          __Pyx_XGOTREF(__pyx_t_10);
        }
        #else
        __pyx_t_11 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31629, __pyx_L32_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31629, __pyx_L32_error)
        __Pyx_GOTREF(__pyx_t_10);
        #endif
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_12 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 31629, __pyx_L32_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12);
        index = 0; __pyx_t_11 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_11)) goto __pyx_L35_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_11);
        index = 1; __pyx_t_10 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_10)) goto __pyx_L35_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_10);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_13(__pyx_t_12), 2) < (0)) __PYX_ERR(0, 31629, __pyx_L32_error)
        __pyx_t_13 = NULL;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        goto __pyx_L36_unpacking_done;
        __pyx_L35_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __pyx_t_13 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 31629, __pyx_L32_error)
        __pyx_L36_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_10genexpr284__pyx_v_pyoptions, __pyx_t_11);
      __pyx_t_11 = 0;
      __Pyx_XDECREF_SET(__pyx_10genexpr284__pyx_v_pyoptionValues, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_t_10 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_10, __pyx_10genexpr284__pyx_v_pyoptions, __pyx_10genexpr284__pyx_v_pyoptionValues};
        __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31629, __pyx_L32_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_8);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(0, 31629, __pyx_L32_error)
      __Pyx_DECREF((PyObject *)__pyx_t_8); __pyx_t_8 = 0;
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_10genexpr284__pyx_v_pyoptionValues); __pyx_10genexpr284__pyx_v_pyoptionValues = 0;
    __Pyx_XDECREF(__pyx_10genexpr284__pyx_v_pyoptions); __pyx_10genexpr284__pyx_v_pyoptions = 0;
    goto __pyx_L38_exit_scope;
    __pyx_L32_error:;
    __Pyx_XDECREF(__pyx_10genexpr284__pyx_v_pyoptionValues); __pyx_10genexpr284__pyx_v_pyoptionValues = 0;
    __Pyx_XDECREF(__pyx_10genexpr284__pyx_v_pyoptions); __pyx_10genexpr284__pyx_v_pyoptions = 0;
    goto __pyx_L1_error;
    __pyx_L38_exit_scope:;
  } /* exit inner scope */
  __Pyx_DECREF_SET(__pyx_v_pylist, ((PyObject*)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31630
 *     cdef vector[cyruntime.cudaLibraryOption] cylibraryOptions = [pylibraryOptions.value for pylibraryOptions in (libraryOptions)]
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)             # <<<<<<<<<<<<<<
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_pylist};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, __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;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31630, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_voidStarHelperlibraryOptionValues = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":31631
 *     pylist = [_HelperCudaLibraryOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(libraryOptions, libraryOptionValues)]
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr             # <<<<<<<<<<<<<<
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_voidStarHelperlibraryOptionValues), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_14 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_14 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cylibraryOptionValues_ptr = ((void **)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_14));

  /* "cuda/bindings/runtime.pyx":31632
 *     cdef _InputVoidPtrPtrHelper voidStarHelperlibraryOptionValues = _InputVoidPtrPtrHelper(pylist)
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))             # <<<<<<<<<<<<<<
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
 *     with nogil:
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_libraryOptions); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31632, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numLibraryOptions > __pyx_t_6);
  if (unlikely(__pyx_t_2)) {
    __pyx_t_3 = NULL;
    __pyx_t_6 = PyObject_Length(__pyx_v_libraryOptions); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31632, __pyx_L1_error)
    __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_10 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numLibraryOptions); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_10, __pyx_t_11); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((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_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31632, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31632, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":31633
 *     cdef void** cylibraryOptionValues_ptr = <void**><void_ptr>voidStarHelperlibraryOptionValues.cptr
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryLoadFromFile(<cyruntime.cudaLibrary_t*>library._pvt_ptr, fileName, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_libraryOptionValues); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31633, __pyx_L1_error)
  __pyx_t_2 = (__pyx_v_numLibraryOptions > __pyx_t_6);
  if (unlikely(__pyx_t_2)) {
    __pyx_t_8 = NULL;
    __pyx_t_6 = PyObject_Length(__pyx_v_libraryOptionValues); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 31633, __pyx_L1_error)
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_11 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_List_is_too_small, __pyx_t_11); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_11 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__6); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 31633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numLibraryOptions); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 31633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_11, __pyx_t_10); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31633, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 31633, __pyx_L1_error)
  }

  /* "cuda/bindings/runtime.pyx":31634
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryLoadFromFile(<cyruntime.cudaLibrary_t*>library._pvt_ptr, fileName, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31635
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
 *     with nogil:
 *         err = cyruntime.cudaLibraryLoadFromFile(<cyruntime.cudaLibrary_t*>library._pvt_ptr, fileName, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_16 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryLoadFromFile(((cudaLibrary_t *)__pyx_v_library->_pvt_ptr), __pyx_v_fileName, __pyx_v_cyjitOptions.data(), __pyx_v_cyjitOptionsValues_ptr, __pyx_v_numJitOptions, __pyx_v_cylibraryOptions.data(), __pyx_v_cylibraryOptionValues_ptr, __pyx_v_numLibraryOptions); if (unlikely(__pyx_t_16 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31635, __pyx_L42_error)
        __pyx_v_err = __pyx_t_16;
      }

      /* "cuda/bindings/runtime.pyx":31634
 *     if numLibraryOptions > len(libraryOptions): raise RuntimeError("List is too small: " + str(len(libraryOptions)) + " < " + str(numLibraryOptions))
 *     if numLibraryOptions > len(libraryOptionValues): raise RuntimeError("List is too small: " + str(len(libraryOptionValues)) + " < " + str(numLibraryOptions))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryLoadFromFile(<cyruntime.cudaLibrary_t*>library._pvt_ptr, fileName, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L43;
        }
        __pyx_L42_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L43:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31636
 *     with nogil:
 *         err = cyruntime.cudaLibraryLoadFromFile(<cyruntime.cudaLibrary_t*>library._pvt_ptr, fileName, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], library)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":31637
 *         err = cyruntime.cudaLibraryLoadFromFile(<cyruntime.cudaLibrary_t*>library._pvt_ptr, fileName, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], library)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 31637, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 31637, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31636
 *     with nogil:
 *         err = cyruntime.cudaLibraryLoadFromFile(<cyruntime.cudaLibrary_t*>library._pvt_ptr, fileName, cyjitOptions.data(), cyjitOptionsValues_ptr, numJitOptions, cylibraryOptions.data(), cylibraryOptionValues_ptr, numLibraryOptions)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], library)
*/
  }

  /* "cuda/bindings/runtime.pyx":31638
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], library)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 31638, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_library);
  __Pyx_GIVEREF((PyObject *)__pyx_v_library);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_library)) != (0)) __PYX_ERR(0, 31638, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31545
 *     return (_dict_cudaError_t[err], library)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions):
 *     """ Load a library with specified file and options.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryLoadFromFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_library);
  __Pyx_XDECREF(__pyx_v_pylist);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperjitOptionsValues);
  __Pyx_XDECREF((PyObject *)__pyx_v_voidStarHelperlibraryOptionValues);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_2generator135);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_23cudaLibraryLoadFromFile_5generator136);
  __Pyx_XDECREF(__pyx_10genexpr281__pyx_v_pyjitOptions);
  __Pyx_XDECREF(__pyx_10genexpr282__pyx_v_pyoptions);
  __Pyx_XDECREF(__pyx_10genexpr282__pyx_v_pyoptionValues);
  __Pyx_XDECREF(__pyx_10genexpr283__pyx_v_pylibraryOptions);
  __Pyx_XDECREF(__pyx_10genexpr284__pyx_v_pyoptions);
  __Pyx_XDECREF(__pyx_10genexpr284__pyx_v_pyoptionValues);
  __Pyx_XDECREF(__pyx_v_jitOptions);
  __Pyx_XDECREF(__pyx_v_jitOptionsValues);
  __Pyx_XDECREF(__pyx_v_libraryOptions);
  __Pyx_XDECREF(__pyx_v_libraryOptionValues);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31640
 *     return (_dict_cudaError_t[err], library)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryUnload(library):
 *     """ Unloads a library.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_571cudaLibraryUnload(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_7runtime_570cudaLibraryUnload, "cudaLibraryUnload(library)\n\nUnloads a library.\n\nUnloads the library specified with `library`\n\nParameters\n----------\nlibrary : :py:obj:`~.cudaLibrary_t`\n    Library to unload\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cuLibraryUnload`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_571cudaLibraryUnload = {"cudaLibraryUnload", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_571cudaLibraryUnload, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_570cudaLibraryUnload};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_571cudaLibraryUnload(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_library = 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("cudaLibraryUnload (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_library,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, 31640, __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, 31640, __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, "cudaLibraryUnload", 0) < (0)) __PYX_ERR(0, 31640, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryUnload", 1, 1, 1, i); __PYX_ERR(0, 31640, __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, 31640, __pyx_L3_error)
    }
    __pyx_v_library = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryUnload", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 31640, __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.runtime.cudaLibraryUnload", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_570cudaLibraryUnload(__pyx_self, __pyx_v_library);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_570cudaLibraryUnload(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library) {
  cudaLibrary_t __pyx_v_cylibrary;
  PyObject *__pyx_v_plibrary = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryUnload", 0);

  /* "cuda/bindings/runtime.pyx":31661
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
  __pyx_t_1 = (__pyx_v_library == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31662
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:
 *         plibrary = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_plibrary = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31661
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31663
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_library, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31664
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)             # <<<<<<<<<<<<<<
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_library); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_plibrary = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":31663
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31666
 *         plibrary = int(library)
 *     else:
 *         plibrary = int(cudaLibrary_t(library))             # <<<<<<<<<<<<<<
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_library};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31666, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_plibrary = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31667
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryUnload(cylibrary)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_plibrary); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31667, __pyx_L1_error)
  __pyx_v_cylibrary = ((cudaLibrary_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31668
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryUnload(cylibrary)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31669
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     with nogil:
 *         err = cyruntime.cudaLibraryUnload(cylibrary)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryUnload(__pyx_v_cylibrary); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31669, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":31668
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryUnload(cylibrary)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31670
 *     with nogil:
 *         err = cyruntime.cudaLibraryUnload(cylibrary)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 31670, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31640
 *     return (_dict_cudaError_t[err], library)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryUnload(library):
 *     """ Unloads a library.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryUnload", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_plibrary);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31672
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetKernel(library, char* name):
 *     """ Returns a kernel handle.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_573cudaLibraryGetKernel(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_7runtime_572cudaLibraryGetKernel, "cudaLibraryGetKernel(library, char *name)\n\nReturns a kernel handle.\n\nReturns in `pKernel` the handle of the kernel with name `name` located\nin library `library`. If kernel handle is not found, the call returns\n:py:obj:`~.cudaErrorSymbolNotFound`.\n\nParameters\n----------\nlibrary : :py:obj:`~.cudaLibrary_t`\n    Library to retrieve kernel from\nname : bytes\n    Name of kernel to retrieve\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorSymbolNotFound`\npKernel : :py:obj:`~.cudaKernel_t`\n    Returned kernel handle\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cuLibraryGetKernel`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_573cudaLibraryGetKernel = {"cudaLibraryGetKernel", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_573cudaLibraryGetKernel, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_572cudaLibraryGetKernel};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_573cudaLibraryGetKernel(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_library = 0;
  char *__pyx_v_name;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLibraryGetKernel (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_library,&__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, 31672, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31672, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31672, __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, "cudaLibraryGetKernel", 0) < (0)) __PYX_ERR(0, 31672, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryGetKernel", 1, 2, 2, i); __PYX_ERR(0, 31672, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 31672, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31672, __pyx_L3_error)
    }
    __pyx_v_library = values[0];
    __pyx_v_name = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) __PYX_ERR(0, 31673, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryGetKernel", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 31672, __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.runtime.cudaLibraryGetKernel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_572cudaLibraryGetKernel(__pyx_self, __pyx_v_library, __pyx_v_name);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_572cudaLibraryGetKernel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library, char *__pyx_v_name) {
  cudaLibrary_t __pyx_v_cylibrary;
  PyObject *__pyx_v_plibrary = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_pKernel = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryGetKernel", 0);

  /* "cuda/bindings/runtime.pyx":31699
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
  __pyx_t_1 = (__pyx_v_library == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31700
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:
 *         plibrary = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_plibrary = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31699
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31701
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_library, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31702
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)             # <<<<<<<<<<<<<<
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_library); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_plibrary = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":31701
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31704
 *         plibrary = int(library)
 *     else:
 *         plibrary = int(cudaLibrary_t(library))             # <<<<<<<<<<<<<<
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef cudaKernel_t pKernel = cudaKernel_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_library};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31704, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_plibrary = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31705
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary             # <<<<<<<<<<<<<<
 *     cdef cudaKernel_t pKernel = cudaKernel_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_plibrary); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31705, __pyx_L1_error)
  __pyx_v_cylibrary = ((cudaLibrary_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31706
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef cudaKernel_t pKernel = cudaKernel_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetKernel(<cyruntime.cudaKernel_t*>pKernel._pvt_ptr, cylibrary, name)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31706, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pKernel = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":31707
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef cudaKernel_t pKernel = cudaKernel_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetKernel(<cyruntime.cudaKernel_t*>pKernel._pvt_ptr, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31708
 *     cdef cudaKernel_t pKernel = cudaKernel_t()
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetKernel(<cyruntime.cudaKernel_t*>pKernel._pvt_ptr, cylibrary, name)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetKernel(((cudaKernel_t *)__pyx_v_pKernel->_pvt_ptr), __pyx_v_cylibrary, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31708, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":31707
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef cudaKernel_t pKernel = cudaKernel_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetKernel(<cyruntime.cudaKernel_t*>pKernel._pvt_ptr, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31709
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetKernel(<cyruntime.cudaKernel_t*>pKernel._pvt_ptr, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pKernel)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31710
 *         err = cyruntime.cudaLibraryGetKernel(<cyruntime.cudaKernel_t*>pKernel._pvt_ptr, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pKernel)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 31710, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 31710, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31709
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetKernel(<cyruntime.cudaKernel_t*>pKernel._pvt_ptr, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pKernel)
*/
  }

  /* "cuda/bindings/runtime.pyx":31711
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pKernel)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 31711, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pKernel);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pKernel);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pKernel)) != (0)) __PYX_ERR(0, 31711, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31672
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetKernel(library, char* name):
 *     """ Returns a kernel handle.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryGetKernel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_plibrary);
  __Pyx_XDECREF((PyObject *)__pyx_v_pKernel);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31713
 *     return (_dict_cudaError_t[err], pKernel)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetGlobal(library, char* name):
 *     """ Returns a global device pointer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_575cudaLibraryGetGlobal(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_7runtime_574cudaLibraryGetGlobal, "cudaLibraryGetGlobal(library, char *name)\n\nReturns a global device pointer.\n\nReturns in `*dptr` and `*bytes` the base pointer and size of the global\nwith name `name` for the requested library `library` and the current\ndevice. If no global for the requested name `name` exists, the call\nreturns :py:obj:`~.cudaErrorSymbolNotFound`. One of the parameters\n`dptr` or `numbytes` (not both) can be NULL in which case it is\nignored. The returned `dptr` cannot be passed to the Symbol APIs such\nas :py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`,\n:py:obj:`~.cudaGetSymbolAddress`, or :py:obj:`~.cudaGetSymbolSize`.\n\nParameters\n----------\nlibrary : :py:obj:`~.cudaLibrary_t`\n    Library to retrieve global from\nname : bytes\n    Name of global to retrieve\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorSymbolNotFound` :py:obj:`~.cudaErrorDeviceUninitialized`, :py:obj:`~.cudaErrorContextIsDestroyed`\ndptr : Any\n    Returned global device pointer for the requested library\nnumbytes : int\n    Returned global size in bytes\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cudaLibraryGetManaged`, :py:obj:`~.cuLibraryGetGlobal`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_575cudaLibraryGetGlobal = {"cudaLibraryGetGlobal", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_575cudaLibraryGetGlobal, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_574cudaLibraryGetGlobal};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_575cudaLibraryGetGlobal(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_library = 0;
  char *__pyx_v_name;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLibraryGetGlobal (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_library,&__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, 31713, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31713, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31713, __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, "cudaLibraryGetGlobal", 0) < (0)) __PYX_ERR(0, 31713, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryGetGlobal", 1, 2, 2, i); __PYX_ERR(0, 31713, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 31713, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31713, __pyx_L3_error)
    }
    __pyx_v_library = values[0];
    __pyx_v_name = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) __PYX_ERR(0, 31714, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryGetGlobal", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 31713, __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.runtime.cudaLibraryGetGlobal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_574cudaLibraryGetGlobal(__pyx_self, __pyx_v_library, __pyx_v_name);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_574cudaLibraryGetGlobal(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library, char *__pyx_v_name) {
  cudaLibrary_t __pyx_v_cylibrary;
  PyObject *__pyx_v_plibrary = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_dptr;
  size_t __pyx_v_numbytes;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryGetGlobal", 0);

  /* "cuda/bindings/runtime.pyx":31747
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
  __pyx_t_1 = (__pyx_v_library == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31748
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:
 *         plibrary = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_plibrary = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31747
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31749
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_library, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31750
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)             # <<<<<<<<<<<<<<
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_library); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31750, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_plibrary = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":31749
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31752
 *         plibrary = int(library)
 *     else:
 *         plibrary = int(cudaLibrary_t(library))             # <<<<<<<<<<<<<<
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr dptr = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_library};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31752, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31752, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_plibrary = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31753
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary             # <<<<<<<<<<<<<<
 *     cdef void_ptr dptr = 0
 *     cdef size_t numbytes = 0
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_plibrary); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31753, __pyx_L1_error)
  __pyx_v_cylibrary = ((cudaLibrary_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31754
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr dptr = 0             # <<<<<<<<<<<<<<
 *     cdef size_t numbytes = 0
 *     with nogil:
*/
  __pyx_v_dptr = 0;

  /* "cuda/bindings/runtime.pyx":31755
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr dptr = 0
 *     cdef size_t numbytes = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetGlobal(<void**>&dptr, &numbytes, cylibrary, name)
*/
  __pyx_v_numbytes = 0;

  /* "cuda/bindings/runtime.pyx":31756
 *     cdef void_ptr dptr = 0
 *     cdef size_t numbytes = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetGlobal(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31757
 *     cdef size_t numbytes = 0
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetGlobal(<void**>&dptr, &numbytes, cylibrary, name)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetGlobal(((void **)(&__pyx_v_dptr)), (&__pyx_v_numbytes), __pyx_v_cylibrary, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31757, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":31756
 *     cdef void_ptr dptr = 0
 *     cdef size_t numbytes = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetGlobal(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31758
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetGlobal(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], dptr, numbytes)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31759
 *         err = cyruntime.cudaLibraryGetGlobal(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], dptr, numbytes)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 31759, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 31759, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None) != (0)) __PYX_ERR(0, 31759, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31758
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetGlobal(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], dptr, numbytes)
*/
  }

  /* "cuda/bindings/runtime.pyx":31760
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], dptr, numbytes)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_dptr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_PyLong_FromSize_t(__pyx_v_numbytes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 31760, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 31760, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_2) != (0)) __PYX_ERR(0, 31760, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_7 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31713
 *     return (_dict_cudaError_t[err], pKernel)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetGlobal(library, char* name):
 *     """ Returns a global device pointer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryGetGlobal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_plibrary);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31762
 *     return (_dict_cudaError_t[err], dptr, numbytes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetManaged(library, char* name):
 *     """ Returns a pointer to managed memory.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_577cudaLibraryGetManaged(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_7runtime_576cudaLibraryGetManaged, "cudaLibraryGetManaged(library, char *name)\n\nReturns a pointer to managed memory.\n\nReturns in `*dptr` and `*bytes` the base pointer and size of the\nmanaged memory with name `name` for the requested library `library`. If\nno managed memory with the requested name `name` exists, the call\nreturns :py:obj:`~.cudaErrorSymbolNotFound`. One of the parameters\n`dptr` or `numbytes` (not both) can be NULL in which case it is\nignored. Note that managed memory for library `library` is shared\nacross devices and is registered when the library is loaded. The\nreturned `dptr` cannot be passed to the Symbol APIs such as\n:py:obj:`~.cudaMemcpyToSymbol`, :py:obj:`~.cudaMemcpyFromSymbol`,\n:py:obj:`~.cudaGetSymbolAddress`, or :py:obj:`~.cudaGetSymbolSize`.\n\nParameters\n----------\nlibrary : :py:obj:`~.cudaLibrary_t`\n    Library to retrieve managed memory from\nname : bytes\n    Name of managed memory to retrieve\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorSymbolNotFound`\ndptr : Any\n    Returned pointer to the managed memory\nnumbytes : int\n    Returned memory size in bytes\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cudaLibraryGetGlobal`, :py:obj:`~.cuLibraryGetManaged`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_577cudaLibraryGetManaged = {"cudaLibraryGetManaged", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_577cudaLibraryGetManaged, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_576cudaLibraryGetManaged};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_577cudaLibraryGetManaged(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_library = 0;
  char *__pyx_v_name;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLibraryGetManaged (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_library,&__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, 31762, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31762, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31762, __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, "cudaLibraryGetManaged", 0) < (0)) __PYX_ERR(0, 31762, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryGetManaged", 1, 2, 2, i); __PYX_ERR(0, 31762, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 31762, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31762, __pyx_L3_error)
    }
    __pyx_v_library = values[0];
    __pyx_v_name = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!__pyx_v_name) && PyErr_Occurred())) __PYX_ERR(0, 31763, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryGetManaged", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 31762, __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.runtime.cudaLibraryGetManaged", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_576cudaLibraryGetManaged(__pyx_self, __pyx_v_library, __pyx_v_name);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_576cudaLibraryGetManaged(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library, char *__pyx_v_name) {
  cudaLibrary_t __pyx_v_cylibrary;
  PyObject *__pyx_v_plibrary = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_dptr;
  size_t __pyx_v_numbytes;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryGetManaged", 0);

  /* "cuda/bindings/runtime.pyx":31798
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
  __pyx_t_1 = (__pyx_v_library == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31799
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:
 *         plibrary = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_plibrary = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31798
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31800
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_library, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31801
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)             # <<<<<<<<<<<<<<
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_library); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31801, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_plibrary = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":31800
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31803
 *         plibrary = int(library)
 *     else:
 *         plibrary = int(cudaLibrary_t(library))             # <<<<<<<<<<<<<<
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr dptr = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_library};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31803, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31803, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_plibrary = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31804
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary             # <<<<<<<<<<<<<<
 *     cdef void_ptr dptr = 0
 *     cdef size_t numbytes = 0
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_plibrary); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31804, __pyx_L1_error)
  __pyx_v_cylibrary = ((cudaLibrary_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31805
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr dptr = 0             # <<<<<<<<<<<<<<
 *     cdef size_t numbytes = 0
 *     with nogil:
*/
  __pyx_v_dptr = 0;

  /* "cuda/bindings/runtime.pyx":31806
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr dptr = 0
 *     cdef size_t numbytes = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetManaged(<void**>&dptr, &numbytes, cylibrary, name)
*/
  __pyx_v_numbytes = 0;

  /* "cuda/bindings/runtime.pyx":31807
 *     cdef void_ptr dptr = 0
 *     cdef size_t numbytes = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetManaged(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31808
 *     cdef size_t numbytes = 0
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetManaged(<void**>&dptr, &numbytes, cylibrary, name)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetManaged(((void **)(&__pyx_v_dptr)), (&__pyx_v_numbytes), __pyx_v_cylibrary, __pyx_v_name); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31808, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":31807
 *     cdef void_ptr dptr = 0
 *     cdef size_t numbytes = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetManaged(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31809
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetManaged(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], dptr, numbytes)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31810
 *         err = cyruntime.cudaLibraryGetManaged(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], dptr, numbytes)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 31810, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 31810, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, Py_None) != (0)) __PYX_ERR(0, 31810, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31809
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetManaged(<void**>&dptr, &numbytes, cylibrary, name)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], dptr, numbytes)
*/
  }

  /* "cuda/bindings/runtime.pyx":31811
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], dptr, numbytes)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_dptr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_PyLong_FromSize_t(__pyx_v_numbytes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 31811, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 31811, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_2) != (0)) __PYX_ERR(0, 31811, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_7 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31762
 *     return (_dict_cudaError_t[err], dptr, numbytes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetManaged(library, char* name):
 *     """ Returns a pointer to managed memory.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryGetManaged", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_plibrary);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31813
 *     return (_dict_cudaError_t[err], dptr, numbytes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetUnifiedFunction(library, char* symbol):
 *     """ Returns a pointer to a unified function.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_579cudaLibraryGetUnifiedFunction(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_7runtime_578cudaLibraryGetUnifiedFunction, "cudaLibraryGetUnifiedFunction(library, char *symbol)\n\nReturns a pointer to a unified function.\n\nReturns in `*fptr` the function pointer to a unified function denoted\nby `symbol`. If no unified function with name `symbol` exists, the call\nreturns :py:obj:`~.cudaErrorSymbolNotFound`. If there is no device with\nattribute :py:obj:`~.cudaDeviceProp.unifiedFunctionPointers` present in\nthe system, the call may return :py:obj:`~.cudaErrorSymbolNotFound`.\n\nParameters\n----------\nlibrary : :py:obj:`~.cudaLibrary_t`\n    Library to retrieve function pointer memory from\nsymbol : bytes\n    Name of function pointer to retrieve\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorSymbolNotFound`\nfptr : Any\n    Returned pointer to a unified function\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cuLibraryGetUnifiedFunction`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_579cudaLibraryGetUnifiedFunction = {"cudaLibraryGetUnifiedFunction", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_579cudaLibraryGetUnifiedFunction, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_578cudaLibraryGetUnifiedFunction};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_579cudaLibraryGetUnifiedFunction(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_library = 0;
  char *__pyx_v_symbol;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLibraryGetUnifiedFunction (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_library,&__pyx_mstate_global->__pyx_n_u_symbol,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, 31813, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31813, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31813, __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, "cudaLibraryGetUnifiedFunction", 0) < (0)) __PYX_ERR(0, 31813, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryGetUnifiedFunction", 1, 2, 2, i); __PYX_ERR(0, 31813, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 31813, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31813, __pyx_L3_error)
    }
    __pyx_v_library = values[0];
    __pyx_v_symbol = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!__pyx_v_symbol) && PyErr_Occurred())) __PYX_ERR(0, 31814, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryGetUnifiedFunction", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 31813, __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.runtime.cudaLibraryGetUnifiedFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_578cudaLibraryGetUnifiedFunction(__pyx_self, __pyx_v_library, __pyx_v_symbol);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_578cudaLibraryGetUnifiedFunction(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_library, char *__pyx_v_symbol) {
  cudaLibrary_t __pyx_v_cylibrary;
  PyObject *__pyx_v_plibrary = NULL;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_fptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryGetUnifiedFunction", 0);

  /* "cuda/bindings/runtime.pyx":31842
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
  __pyx_t_1 = (__pyx_v_library == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31843
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:
 *         plibrary = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_plibrary = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31842
 *     """
 *     cdef cyruntime.cudaLibrary_t cylibrary
 *     if library is None:             # <<<<<<<<<<<<<<
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31844
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_library, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31845
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):
 *         plibrary = int(library)             # <<<<<<<<<<<<<<
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_library); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31845, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_plibrary = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":31844
 *     if library is None:
 *         plibrary = 0
 *     elif isinstance(library, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plibrary = int(library)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31847
 *         plibrary = int(library)
 *     else:
 *         plibrary = int(cudaLibrary_t(library))             # <<<<<<<<<<<<<<
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr fptr = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_library};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31847, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31847, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_plibrary = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31848
 *     else:
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary             # <<<<<<<<<<<<<<
 *     cdef void_ptr fptr = 0
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_plibrary); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31848, __pyx_L1_error)
  __pyx_v_cylibrary = ((cudaLibrary_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31849
 *         plibrary = int(cudaLibrary_t(library))
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr fptr = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetUnifiedFunction(<void**>&fptr, cylibrary, symbol)
*/
  __pyx_v_fptr = 0;

  /* "cuda/bindings/runtime.pyx":31850
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr fptr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetUnifiedFunction(<void**>&fptr, cylibrary, symbol)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31851
 *     cdef void_ptr fptr = 0
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetUnifiedFunction(<void**>&fptr, cylibrary, symbol)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetUnifiedFunction(((void **)(&__pyx_v_fptr)), __pyx_v_cylibrary, __pyx_v_symbol); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31851, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":31850
 *     cylibrary = <cyruntime.cudaLibrary_t><void_ptr>plibrary
 *     cdef void_ptr fptr = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetUnifiedFunction(<void**>&fptr, cylibrary, symbol)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31852
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetUnifiedFunction(<void**>&fptr, cylibrary, symbol)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], fptr)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31853
 *         err = cyruntime.cudaLibraryGetUnifiedFunction(<void**>&fptr, cylibrary, symbol)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], fptr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 31853, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 31853, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31852
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetUnifiedFunction(<void**>&fptr, cylibrary, symbol)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], fptr)
*/
  }

  /* "cuda/bindings/runtime.pyx":31854
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], fptr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_fptr); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 31854, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 31854, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31813
 *     return (_dict_cudaError_t[err], dptr, numbytes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetUnifiedFunction(library, char* symbol):
 *     """ Returns a pointer to a unified function.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryGetUnifiedFunction", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_plibrary);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31856
 *     return (_dict_cudaError_t[err], fptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetKernelCount(lib):
 *     """ Returns the number of kernels within a library.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_581cudaLibraryGetKernelCount(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_7runtime_580cudaLibraryGetKernelCount, "cudaLibraryGetKernelCount(lib)\n\nReturns the number of kernels within a library.\n\nReturns in `count` the number of kernels in `lib`.\n\nParameters\n----------\nlib : :py:obj:`~.cudaLibrary_t`\n    Library to query\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\ncount : unsigned int\n    Number of kernels found within the library\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryEnumerateKernels`, :py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cuLibraryGetKernelCount`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_581cudaLibraryGetKernelCount = {"cudaLibraryGetKernelCount", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_581cudaLibraryGetKernelCount, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_580cudaLibraryGetKernelCount};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_581cudaLibraryGetKernelCount(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_lib = 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("cudaLibraryGetKernelCount (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_lib,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, 31856, __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, 31856, __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, "cudaLibraryGetKernelCount", 0) < (0)) __PYX_ERR(0, 31856, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryGetKernelCount", 1, 1, 1, i); __PYX_ERR(0, 31856, __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, 31856, __pyx_L3_error)
    }
    __pyx_v_lib = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryGetKernelCount", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 31856, __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.runtime.cudaLibraryGetKernelCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_580cudaLibraryGetKernelCount(__pyx_self, __pyx_v_lib);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_580cudaLibraryGetKernelCount(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_lib) {
  cudaLibrary_t __pyx_v_cylib;
  PyObject *__pyx_v_plib = NULL;
  unsigned int __pyx_v_count;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryGetKernelCount", 0);

  /* "cuda/bindings/runtime.pyx":31879
 *     """
 *     cdef cyruntime.cudaLibrary_t cylib
 *     if lib is None:             # <<<<<<<<<<<<<<
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):
*/
  __pyx_t_1 = (__pyx_v_lib == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31880
 *     cdef cyruntime.cudaLibrary_t cylib
 *     if lib is None:
 *         plib = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(lib, (cudaLibrary_t,)):
 *         plib = int(lib)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_plib = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31879
 *     """
 *     cdef cyruntime.cudaLibrary_t cylib
 *     if lib is None:             # <<<<<<<<<<<<<<
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31881
 *     if lib is None:
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plib = int(lib)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_lib, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31882
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):
 *         plib = int(lib)             # <<<<<<<<<<<<<<
 *     else:
 *         plib = int(cudaLibrary_t(lib))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31882, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_plib = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":31881
 *     if lib is None:
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plib = int(lib)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31884
 *         plib = int(lib)
 *     else:
 *         plib = int(cudaLibrary_t(lib))             # <<<<<<<<<<<<<<
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib
 *     cdef unsigned int count = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_lib};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31884, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31884, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_plib = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31885
 *     else:
 *         plib = int(cudaLibrary_t(lib))
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib             # <<<<<<<<<<<<<<
 *     cdef unsigned int count = 0
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_plib); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31885, __pyx_L1_error)
  __pyx_v_cylib = ((cudaLibrary_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31886
 *         plib = int(cudaLibrary_t(lib))
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib
 *     cdef unsigned int count = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetKernelCount(&count, cylib)
*/
  __pyx_v_count = 0;

  /* "cuda/bindings/runtime.pyx":31887
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib
 *     cdef unsigned int count = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetKernelCount(&count, cylib)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31888
 *     cdef unsigned int count = 0
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetKernelCount(&count, cylib)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetKernelCount((&__pyx_v_count), __pyx_v_cylib); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31888, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":31887
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib
 *     cdef unsigned int count = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryGetKernelCount(&count, cylib)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31889
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetKernelCount(&count, cylib)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], count)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31890
 *         err = cyruntime.cudaLibraryGetKernelCount(&count, cylib)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], count)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 31890, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 31890, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31889
 *     with nogil:
 *         err = cyruntime.cudaLibraryGetKernelCount(&count, cylib)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], count)
*/
  }

  /* "cuda/bindings/runtime.pyx":31891
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], count)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_int(__pyx_v_count); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 31891, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 31891, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31856
 *     return (_dict_cudaError_t[err], fptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetKernelCount(lib):
 *     """ Returns the number of kernels within a library.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryGetKernelCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_plib);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31893
 *     return (_dict_cudaError_t[err], count)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryEnumerateKernels(unsigned int numKernels, lib):
 *     """ Retrieve the kernel handles within a library.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_583cudaLibraryEnumerateKernels(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_7runtime_582cudaLibraryEnumerateKernels, "cudaLibraryEnumerateKernels(unsigned int numKernels, lib)\n\nRetrieve the kernel handles within a library.\n\nReturns in `kernels` a maximum number of `numKernels` kernel handles\nwithin `lib`. The returned kernel handle becomes invalid when the\nlibrary is unloaded.\n\nParameters\n----------\nnumKernels : unsigned int\n    Maximum number of kernel handles may be returned to the buffer\nlib : :py:obj:`~.cudaLibrary_t`\n    Library to query from\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`\nkernels : list[:py:obj:`~.cudaKernel_t`]\n    Buffer where the kernel handles are returned to\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryGetKernelCount`, :py:obj:`~.cuLibraryEnumerateKernels`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_583cudaLibraryEnumerateKernels = {"cudaLibraryEnumerateKernels", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_583cudaLibraryEnumerateKernels, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_582cudaLibraryEnumerateKernels};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_583cudaLibraryEnumerateKernels(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
) {
  unsigned int __pyx_v_numKernels;
  PyObject *__pyx_v_lib = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaLibraryEnumerateKernels (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_numKernels,&__pyx_mstate_global->__pyx_n_u_lib,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, 31893, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31893, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31893, __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, "cudaLibraryEnumerateKernels", 0) < (0)) __PYX_ERR(0, 31893, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibraryEnumerateKernels", 1, 2, 2, i); __PYX_ERR(0, 31893, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 31893, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31893, __pyx_L3_error)
    }
    __pyx_v_numKernels = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_numKernels == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31894, __pyx_L3_error)
    __pyx_v_lib = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibraryEnumerateKernels", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 31893, __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.runtime.cudaLibraryEnumerateKernels", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_582cudaLibraryEnumerateKernels(__pyx_self, __pyx_v_numKernels, __pyx_v_lib);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_582cudaLibraryEnumerateKernels(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_numKernels, PyObject *__pyx_v_lib) {
  cudaLibrary_t __pyx_v_cylib;
  PyObject *__pyx_v_plib = NULL;
  cudaKernel_t *__pyx_v_cykernels;
  PyObject *__pyx_v_pykernels = NULL;
  cudaError_t __pyx_v_err;
  unsigned int __pyx_10genexpr285__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  unsigned int __pyx_t_10;
  unsigned int __pyx_t_11;
  unsigned int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaLibraryEnumerateKernels", 0);

  /* "cuda/bindings/runtime.pyx":31920
 *     """
 *     cdef cyruntime.cudaLibrary_t cylib
 *     if lib is None:             # <<<<<<<<<<<<<<
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):
*/
  __pyx_t_1 = (__pyx_v_lib == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31921
 *     cdef cyruntime.cudaLibrary_t cylib
 *     if lib is None:
 *         plib = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(lib, (cudaLibrary_t,)):
 *         plib = int(lib)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_plib = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":31920
 *     """
 *     cdef cyruntime.cudaLibrary_t cylib
 *     if lib is None:             # <<<<<<<<<<<<<<
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31922
 *     if lib is None:
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plib = int(lib)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_lib, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31923
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):
 *         plib = int(lib)             # <<<<<<<<<<<<<<
 *     else:
 *         plib = int(cudaLibrary_t(lib))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31923, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_plib = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":31922
 *     if lib is None:
 *         plib = 0
 *     elif isinstance(lib, (cudaLibrary_t,)):             # <<<<<<<<<<<<<<
 *         plib = int(lib)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":31925
 *         plib = int(lib)
 *     else:
 *         plib = int(cudaLibrary_t(lib))             # <<<<<<<<<<<<<<
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib
 *     cdef cyruntime.cudaKernel_t* cykernels = NULL
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_lib};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31925, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31925, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_plib = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":31926
 *     else:
 *         plib = int(cudaLibrary_t(lib))
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaKernel_t* cykernels = NULL
 *     pykernels = []
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_plib); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 31926, __pyx_L1_error)
  __pyx_v_cylib = ((cudaLibrary_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":31927
 *         plib = int(cudaLibrary_t(lib))
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib
 *     cdef cyruntime.cudaKernel_t* cykernels = NULL             # <<<<<<<<<<<<<<
 *     pykernels = []
 *     if numKernels != 0:
*/
  __pyx_v_cykernels = NULL;

  /* "cuda/bindings/runtime.pyx":31928
 *     cylib = <cyruntime.cudaLibrary_t><void_ptr>plib
 *     cdef cyruntime.cudaKernel_t* cykernels = NULL
 *     pykernels = []             # <<<<<<<<<<<<<<
 *     if numKernels != 0:
 *         cykernels = <cyruntime.cudaKernel_t*>calloc(numKernels, sizeof(cyruntime.cudaKernel_t))
*/
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31928, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_pykernels = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":31929
 *     cdef cyruntime.cudaKernel_t* cykernels = NULL
 *     pykernels = []
 *     if numKernels != 0:             # <<<<<<<<<<<<<<
 *         cykernels = <cyruntime.cudaKernel_t*>calloc(numKernels, sizeof(cyruntime.cudaKernel_t))
 *         if cykernels is NULL:
*/
  __pyx_t_1 = (__pyx_v_numKernels != 0);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31930
 *     pykernels = []
 *     if numKernels != 0:
 *         cykernels = <cyruntime.cudaKernel_t*>calloc(numKernels, sizeof(cyruntime.cudaKernel_t))             # <<<<<<<<<<<<<<
 *         if cykernels is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(numKernels) + 'x' + str(sizeof(cyruntime.cudaKernel_t)))
*/
    __pyx_v_cykernels = ((cudaKernel_t *)calloc(__pyx_v_numKernels, (sizeof(cudaKernel_t))));

    /* "cuda/bindings/runtime.pyx":31931
 *     if numKernels != 0:
 *         cykernels = <cyruntime.cudaKernel_t*>calloc(numKernels, sizeof(cyruntime.cudaKernel_t))
 *         if cykernels is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(numKernels) + 'x' + str(sizeof(cyruntime.cudaKernel_t)))
 *     with nogil:
*/
    __pyx_t_1 = (__pyx_v_cykernels == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cuda/bindings/runtime.pyx":31932
 *         cykernels = <cyruntime.cudaKernel_t*>calloc(numKernels, sizeof(cyruntime.cudaKernel_t))
 *         if cykernels is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(numKernels) + 'x' + str(sizeof(cyruntime.cudaKernel_t)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaLibraryEnumerateKernels(cykernels, numKernels, cylib)
*/
      __pyx_t_2 = NULL;
      __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(__pyx_v_numKernels); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31932, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31932, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31932, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31932, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyLong_FromSize_t((sizeof(cudaKernel_t))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31932, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31932, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31932, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_6};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31932, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 31932, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":31931
 *     if numKernels != 0:
 *         cykernels = <cyruntime.cudaKernel_t*>calloc(numKernels, sizeof(cyruntime.cudaKernel_t))
 *         if cykernels is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(numKernels) + 'x' + str(sizeof(cyruntime.cudaKernel_t)))
 *     with nogil:
*/
    }

    /* "cuda/bindings/runtime.pyx":31929
 *     cdef cyruntime.cudaKernel_t* cykernels = NULL
 *     pykernels = []
 *     if numKernels != 0:             # <<<<<<<<<<<<<<
 *         cykernels = <cyruntime.cudaKernel_t*>calloc(numKernels, sizeof(cyruntime.cudaKernel_t))
 *         if cykernels is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":31933
 *         if cykernels is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(numKernels) + 'x' + str(sizeof(cyruntime.cudaKernel_t)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryEnumerateKernels(cykernels, numKernels, cylib)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":31934
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(numKernels) + 'x' + str(sizeof(cyruntime.cudaKernel_t)))
 *     with nogil:
 *         err = cyruntime.cudaLibraryEnumerateKernels(cykernels, numKernels, cylib)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pykernels = [cudaKernel_t(init_value=<void_ptr>cykernels[idx]) for idx in range(numKernels)]
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryEnumerateKernels(__pyx_v_cykernels, __pyx_v_numKernels, __pyx_v_cylib); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 31934, __pyx_L7_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":31933
 *         if cykernels is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(numKernels) + 'x' + str(sizeof(cyruntime.cudaKernel_t)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaLibraryEnumerateKernels(cykernels, numKernels, cylib)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":31935
 *     with nogil:
 *         err = cyruntime.cudaLibraryEnumerateKernels(cykernels, numKernels, cylib)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pykernels = [cudaKernel_t(init_value=<void_ptr>cykernels[idx]) for idx in range(numKernels)]
 *     if cykernels is not NULL:
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_8};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 31935, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_8 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_8);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_8);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31935, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = PyObject_RichCompare(__pyx_t_3, __pyx_t_2, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 31935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31936
 *         err = cyruntime.cudaLibraryEnumerateKernels(cykernels, numKernels, cylib)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pykernels = [cudaKernel_t(init_value=<void_ptr>cykernels[idx]) for idx in range(numKernels)]             # <<<<<<<<<<<<<<
 *     if cykernels is not NULL:
 *         free(cykernels)
*/
    { /* enter inner scope */
      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31936, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = __pyx_v_numKernels;
      __pyx_t_11 = __pyx_t_10;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr285__pyx_v_idx = __pyx_t_12;
        __pyx_t_3 = NULL;
        __pyx_t_8 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cykernels[__pyx_10genexpr285__pyx_v_idx]))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 31936, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
          __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31936, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_init_value, __pyx_t_8, __pyx_t_7, __pyx_callargs+1, 0) < (0)) __PYX_ERR(0, 31936, __pyx_L1_error)
          __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31936, __pyx_L1_error)
          __Pyx_GOTREF((PyObject *)__pyx_t_2);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 31936, __pyx_L1_error)
        __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pykernels, ((PyObject*)__pyx_t_6));
    __pyx_t_6 = 0;

    /* "cuda/bindings/runtime.pyx":31935
 *     with nogil:
 *         err = cyruntime.cudaLibraryEnumerateKernels(cykernels, numKernels, cylib)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pykernels = [cudaKernel_t(init_value=<void_ptr>cykernels[idx]) for idx in range(numKernels)]
 *     if cykernels is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":31937
 *     if cudaError_t(err) == cudaError_t(0):
 *         pykernels = [cudaKernel_t(init_value=<void_ptr>cykernels[idx]) for idx in range(numKernels)]
 *     if cykernels is not NULL:             # <<<<<<<<<<<<<<
 *         free(cykernels)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_1 = (__pyx_v_cykernels != NULL);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31938
 *         pykernels = [cudaKernel_t(init_value=<void_ptr>cykernels[idx]) for idx in range(numKernels)]
 *     if cykernels is not NULL:
 *         free(cykernels)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cykernels);

    /* "cuda/bindings/runtime.pyx":31937
 *     if cudaError_t(err) == cudaError_t(0):
 *         pykernels = [cudaKernel_t(init_value=<void_ptr>cykernels[idx]) for idx in range(numKernels)]
 *     if cykernels is not NULL:             # <<<<<<<<<<<<<<
 *         free(cykernels)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":31939
 *     if cykernels is not NULL:
 *         free(cykernels)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pykernels)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":31940
 *         free(cykernels)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pykernels)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 31940, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 31940, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":31939
 *     if cykernels is not NULL:
 *         free(cykernels)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pykernels)
*/
  }

  /* "cuda/bindings/runtime.pyx":31941
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pykernels)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 31941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 31941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 31941, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pykernels);
  __Pyx_GIVEREF(__pyx_v_pykernels);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_pykernels) != (0)) __PYX_ERR(0, 31941, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31893
 *     return (_dict_cudaError_t[err], count)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryEnumerateKernels(unsigned int numKernels, lib):
 *     """ Retrieve the kernel handles within a library.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaLibraryEnumerateKernels", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_plib);
  __Pyx_XDECREF(__pyx_v_pykernels);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":31943
 *     return (_dict_cudaError_t[err], pykernels)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaKernelSetAttributeForDevice(kernel, attr not None : cudaFuncAttribute, int value, int device):
 *     """ Sets information about a kernel.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_585cudaKernelSetAttributeForDevice(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_7runtime_584cudaKernelSetAttributeForDevice, "cudaKernelSetAttributeForDevice(kernel, attr: cudaFuncAttribute, int value, int device)\n\nSets information about a kernel.\n\nThis call sets the value of a specified attribute `attr` on the kernel\n`kernel` for the requested device `device` to an integer value\nspecified by `value`. This function returns :py:obj:`~.cudaSuccess` if\nthe new value of the attribute could be successfully set. If the set\nfails, this call will return an error. Not all attributes can have\nvalues set. Attempting to set a value on a read-only attribute will\nresult in an error (:py:obj:`~.cudaErrorInvalidValue`)\n\nNote that attributes set using :py:obj:`~.cudaFuncSetAttribute()` will\noverride the attribute set by this API irrespective of whether the call\nto :py:obj:`~.cudaFuncSetAttribute()` is made before or after this API\ncall. Because of this and the stricter locking requirements mentioned\nbelow it is suggested that this call be used during the initialization\npath and not on each thread accessing `kernel` such as on kernel\nlaunches or on the critical path.\n\nValid values for `attr` are:\n\n- :py:obj:`~.cudaFuncAttributeMaxDynamicSharedMemorySize` - The\n  requested maximum size in bytes of dynamically-allocated shared\n  memory. The sum of this value and the function attribute\n  :py:obj:`~.sharedSizeBytes` cannot exceed the device attribute\n  :py:obj:`~.cudaDevAttrMaxSharedMemoryPerBlockOptin`. The maximal size\n  of requestable dynamic shared memory may differ by GPU architecture.\n\n- :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout` - On\n  devices where the L1 cache and shared memory use the same hardware\n  resources, this sets the shared memory carveout preference, in\n  percent of the total shared memory. See\n  :py:obj:`~.cudaDevAttrMaxSharedMemoryPerMultiprocessor`. This is only\n  a hint, and the driver can choose a different ratio if required to\n  execute the function.\n\n- :py:obj:`~.cudaFuncAttributeRequiredClusterWidth`: The required\n  cluster width i""n blocks. The width, height, and depth values must\n  either all be 0 or all be positive. The validity of the cluster\n  dimensions is checked at launch time. If the value is set during\n  compile time, it cannot be set at runtime. Setting it at runtime will\n  return cudaErrorNotPermitted.\n\n- :py:obj:`~.cudaFuncAttributeRequiredClusterHeight`: The required\n  cluster height in blocks. The width, height, and depth values must\n  either all be 0 or all be positive. The validity of the cluster\n  dimensions is checked at launch time. If the value is set during\n  compile time, it cannot be set at runtime. Setting it at runtime will\n  return cudaErrorNotPermitted.\n\n- :py:obj:`~.cudaFuncAttributeRequiredClusterDepth`: The required\n  cluster depth in blocks. The width, height, and depth values must\n  either all be 0 or all be positive. The validity of the cluster\n  dimensions is checked at launch time. If the value is set during\n  compile time, it cannot be set at runtime. Setting it at runtime will\n  return cudaErrorNotPermitted.\n\n- :py:obj:`~.cudaFuncAttributeNonPortableClusterSizeAllowed`: Indicates\n  whether the function can be launched with non-portable cluster size.\n  1 is allowed, 0 is disallowed.\n\n- :py:obj:`~.cudaFuncAttributeClusterSchedulingPolicyPreference`: The\n  block scheduling policy of a function. The value type is\n  cudaClusterSchedulingPolicy.\n\nParameters\n----------\nkernel : :py:obj:`~.cudaKernel_t`\n    Kernel to set attribute of\nattr : :py:obj:`~.cudaFuncAttribute`\n    Attribute requested\nvalue : int\n    Value to set\ndevice : int\n    Device to set attribute of\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDeviceFunction`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaLibraryLoadData`, :py:obj:`~.cudaLibraryLoadFromFile`, :py:obj:`~.cudaLibraryUnload`, :py:obj:`~.cudaLibraryGetKernel`, :py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaFuncSetAttribute`, :py:ob""j:`~.cuKernelSetAttribute`\n\nNotes\n-----\nThe API has stricter locking requirements in comparison to its legacy counterpart :py:obj:`~.cudaFuncSetAttribute()` due to device-wide semantics. If multiple threads are trying to set the same attribute on the same device simultaneously, the attribute setting will depend on the interleavings chosen by the OS scheduler and memory consistency.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_585cudaKernelSetAttributeForDevice = {"cudaKernelSetAttributeForDevice", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_585cudaKernelSetAttributeForDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_584cudaKernelSetAttributeForDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_585cudaKernelSetAttributeForDevice(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_kernel = 0;
  PyObject *__pyx_v_attr = 0;
  int __pyx_v_value;
  int __pyx_v_device;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaKernelSetAttributeForDevice (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_kernel_2,&__pyx_mstate_global->__pyx_n_u_attr,&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_device_2,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, 31943, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 31943, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31943, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31943, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 31943, __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, "cudaKernelSetAttributeForDevice", 0) < (0)) __PYX_ERR(0, 31943, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaKernelSetAttributeForDevice", 1, 4, 4, i); __PYX_ERR(0, 31943, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 31943, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 31943, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 31943, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 31943, __pyx_L3_error)
    }
    __pyx_v_kernel = values[0];
    __pyx_v_attr = values[1];
    __pyx_v_value = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31944, __pyx_L3_error)
    __pyx_v_device = __Pyx_PyLong_As_int(values[3]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 31944, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaKernelSetAttributeForDevice", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 31943, __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.runtime.cudaKernelSetAttributeForDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_attr) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "attr"); __PYX_ERR(0, 31944, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_584cudaKernelSetAttributeForDevice(__pyx_self, __pyx_v_kernel, __pyx_v_attr, __pyx_v_value, __pyx_v_device);

  /* 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_7runtime_584cudaKernelSetAttributeForDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_kernel, PyObject *__pyx_v_attr, int __pyx_v_value, int __pyx_v_device) {
  cudaKernel_t __pyx_v_cykernel;
  PyObject *__pyx_v_pkernel = NULL;
  enum cudaFuncAttribute __pyx_v_cyattr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaFuncAttribute __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaKernelSetAttributeForDevice", 0);

  /* "cuda/bindings/runtime.pyx":32034
 *     """
 *     cdef cyruntime.cudaKernel_t cykernel
 *     if kernel is None:             # <<<<<<<<<<<<<<
 *         pkernel = 0
 *     elif isinstance(kernel, (cudaKernel_t,)):
*/
  __pyx_t_1 = (__pyx_v_kernel == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32035
 *     cdef cyruntime.cudaKernel_t cykernel
 *     if kernel is None:
 *         pkernel = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(kernel, (cudaKernel_t,)):
 *         pkernel = int(kernel)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pkernel = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32034
 *     """
 *     cdef cyruntime.cudaKernel_t cykernel
 *     if kernel is None:             # <<<<<<<<<<<<<<
 *         pkernel = 0
 *     elif isinstance(kernel, (cudaKernel_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32036
 *     if kernel is None:
 *         pkernel = 0
 *     elif isinstance(kernel, (cudaKernel_t,)):             # <<<<<<<<<<<<<<
 *         pkernel = int(kernel)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_kernel, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32037
 *         pkernel = 0
 *     elif isinstance(kernel, (cudaKernel_t,)):
 *         pkernel = int(kernel)             # <<<<<<<<<<<<<<
 *     else:
 *         pkernel = int(cudaKernel_t(kernel))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_kernel); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pkernel = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":32036
 *     if kernel is None:
 *         pkernel = 0
 *     elif isinstance(kernel, (cudaKernel_t,)):             # <<<<<<<<<<<<<<
 *         pkernel = int(kernel)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32039
 *         pkernel = int(kernel)
 *     else:
 *         pkernel = int(cudaKernel_t(kernel))             # <<<<<<<<<<<<<<
 *     cykernel = <cyruntime.cudaKernel_t><void_ptr>pkernel
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_kernel};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32039, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pkernel = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32040
 *     else:
 *         pkernel = int(cudaKernel_t(kernel))
 *     cykernel = <cyruntime.cudaKernel_t><void_ptr>pkernel             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pkernel); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32040, __pyx_L1_error)
  __pyx_v_cykernel = ((cudaKernel_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":32041
 *         pkernel = int(cudaKernel_t(kernel))
 *     cykernel = <cyruntime.cudaKernel_t><void_ptr>pkernel
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaKernelSetAttributeForDevice(cykernel, cyattr, value, device)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_attr, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = ((enum cudaFuncAttribute)__Pyx_PyLong_As_enum__cudaFuncAttribute(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 32041, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cyattr = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":32042
 *     cykernel = <cyruntime.cudaKernel_t><void_ptr>pkernel
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaKernelSetAttributeForDevice(cykernel, cyattr, value, device)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32043
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
 *     with nogil:
 *         err = cyruntime.cudaKernelSetAttributeForDevice(cykernel, cyattr, value, device)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaKernelSetAttributeForDevice(__pyx_v_cykernel, __pyx_v_cyattr, __pyx_v_value, __pyx_v_device); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32043, __pyx_L5_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":32042
 *     cykernel = <cyruntime.cudaKernel_t><void_ptr>pkernel
 *     cdef cyruntime.cudaFuncAttribute cyattr = attr.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaKernelSetAttributeForDevice(cykernel, cyattr, value, device)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32044
 *     with nogil:
 *         err = cyruntime.cudaKernelSetAttributeForDevice(cykernel, cyattr, value, device)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 32044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 32044, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":31943
 *     return (_dict_cudaError_t[err], pykernels)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaKernelSetAttributeForDevice(kernel, attr not None : cudaFuncAttribute, int value, int device):
 *     """ Sets information about a kernel.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaKernelSetAttributeForDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pkernel);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32046
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetDevResource(int device, typename not None : cudaDevResourceType):
 *     """ Get device resources.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_587cudaDeviceGetDevResource(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_7runtime_586cudaDeviceGetDevResource, "cudaDeviceGetDevResource(int device, typename: cudaDevResourceType)\n\nGet device resources.\n\nGet the `typename` resources available to the `device`. This may often\nbe the starting point for further partitioning or configuring of\nresources.\n\nNote: The API is not supported on 32-bit platforms.\n\nParameters\n----------\ndevice : int\n    Device to get resource for\ntypename : :py:obj:`~.cudaDevResourceType`\n    Type of resource to retrieve\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidResourceType`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`\nresource : :py:obj:`~.cudaDevResource`\n    Output pointer to a cudaDevResource structure\n\nSee Also\n--------\n:py:obj:`~.cuDeviceGetDevResource`, :py:obj:`~.cudaExecutionCtxGetDevResource`, :py:obj:`~.cudaDevSmResourceSplit`, :py:obj:`~.cudaDevResourceGenerateDesc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_587cudaDeviceGetDevResource = {"cudaDeviceGetDevResource", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_587cudaDeviceGetDevResource, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_586cudaDeviceGetDevResource};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_587cudaDeviceGetDevResource(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
) {
  int __pyx_v_device;
  PyObject *__pyx_v_typename = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDeviceGetDevResource (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_device_2,&__pyx_mstate_global->__pyx_n_u_typename,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, 32046, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32046, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32046, __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, "cudaDeviceGetDevResource", 0) < (0)) __PYX_ERR(0, 32046, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetDevResource", 1, 2, 2, i); __PYX_ERR(0, 32046, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 32046, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32046, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32047, __pyx_L3_error)
    __pyx_v_typename = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetDevResource", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 32046, __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.runtime.cudaDeviceGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_typename) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "typename"); __PYX_ERR(0, 32047, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_586cudaDeviceGetDevResource(__pyx_self, __pyx_v_device, __pyx_v_typename);

  /* 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_7runtime_586cudaDeviceGetDevResource(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_typename) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_resource = 0;
  enum cudaDevResourceType __pyx_v_cytypename;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  enum cudaDevResourceType __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetDevResource", 0);

  /* "cuda/bindings/runtime.pyx":32074
 *     :py:obj:`~.cuDeviceGetDevResource`, :py:obj:`~.cudaExecutionCtxGetDevResource`, :py:obj:`~.cudaDevSmResourceSplit`, :py:obj:`~.cudaDevResourceGenerateDesc`
 *     """
 *     cdef cudaDevResource resource = cudaDevResource()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32074, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_resource = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":32075
 *     """
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetDevResource(device, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_typename, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = ((enum cudaDevResourceType)__Pyx_PyLong_As_enum__cudaDevResourceType(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 32075, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cytypename = __pyx_t_4;

  /* "cuda/bindings/runtime.pyx":32076
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetDevResource(device, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32077
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetDevResource(device, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetDevResource(__pyx_v_device, ((cudaDevResource *)__pyx_v_resource->__pyx_base._pvt_ptr), __pyx_v_cytypename); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32077, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":32076
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetDevResource(device, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32078
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetDevResource(device, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":32079
 *         err = cyruntime.cudaDeviceGetDevResource(device, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], resource)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 32079, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 32079, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32078
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetDevResource(device, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  }

  /* "cuda/bindings/runtime.pyx":32080
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 32080, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_resource);
  __Pyx_GIVEREF((PyObject *)__pyx_v_resource);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_resource)) != (0)) __PYX_ERR(0, 32080, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32046
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetDevResource(int device, typename not None : cudaDevResourceType):
 *     """ Get device resources.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_resource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32082
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[cudaDevResource], unsigned int flags, unsigned int minCount):
 *     """ Splits `cudaDevResourceTypeSm` resources.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_589cudaDevSmResourceSplitByCount(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_7runtime_588cudaDevSmResourceSplitByCount, "cudaDevSmResourceSplitByCount(unsigned int nbGroups, cudaDevResource input_: Optional[cudaDevResource], unsigned int flags, unsigned int minCount)\n\nSplits `cudaDevResourceTypeSm` resources.\n\nSplits `cudaDevResourceTypeSm` resources into `nbGroups`, adhering to\nthe minimum SM count specified in `minCount` and the usage flags in\n`flags`. If `result` is NULL, the API simulates a split and provides\nthe amount of groups that would be created in `nbGroups`. Otherwise,\n`nbGroups` must point to the amount of elements in `result` and on\nreturn, the API will overwrite `nbGroups` with the amount actually\ncreated. The groups are written to the array in `result`. `nbGroups`\ncan be less than the total amount if a smaller number of groups is\nneeded.\n\nThis API is used to spatially partition the input resource. The input\nresource needs to come from one of\n:py:obj:`~.cudaDeviceGetDevResource`, or\n:py:obj:`~.cudaExecutionCtxGetDevResource`. A limitation of the API is\nthat the output results cannot be split again without first creating a\ndescriptor and a green context with that descriptor.\n\nWhen creating the groups, the API will take into account the\nperformance and functional characteristics of the input resource, and\nguarantee a split that will create a disjoint set of symmetrical\npartitions. This may lead to fewer groups created than purely dividing\nthe total SM count by the `minCount` due to cluster requirements or\nalignment and granularity requirements for the minCount. These\nrequirements can be queried with :py:obj:`~.cudaDeviceGetDevResource`,\nor :py:obj:`~.cudaExecutionCtxGetDevResource` for\n:py:obj:`~.cudaDevResourceTypeSm`, using the `minSmPartitionSize` and\n`smCoscheduledAlignment` fields to determine minimum partition size and\nalignment granularity, respectively.\n\nThe `remainder` set does not have the same functional or performance\nguarantees as the groups in `result`. Its use should be carefully\nplanned and future partitions of the `remai""nder` set are discouraged.\n\nThe following flags are supported:\n\n- `cudaDevSmResourceSplitIgnoreSmCoscheduling` : Lower the minimum SM\n  count and alignment, and treat each SM independent of its hierarchy.\n  This allows more fine grained partitions but at the cost of advanced\n  features (such as large clusters on compute capability 9.0+).\n\n- `cudaDevSmResourceSplitMaxPotentialClusterSize` : Compute Capability\n  9.0+ only. Attempt to create groups that may allow for maximally\n  sized thread clusters. This can be queried post green context\n  creation using :py:obj:`~.cudaOccupancyMaxPotentialClusterSize`.\n\nA successful API call must either have:\n\n- A valid array of `result` pointers of size passed in `nbGroups`, with\n  `input` of type `cudaDevResourceTypeSm`. Value of `minCount` must be\n  between 0 and the SM count specified in `input`. `remaining` may be\n  NULL.\n\n- NULL passed in for `result`, with a valid integer pointer in\n  `nbGroups` and `input` of type `cudaDevResourceTypeSm`. Value of\n  `minCount` must be between 0 and the SM count specified in `input`.\n  `remaining` may be NULL. This queries the number of groups that would\n  be created by the API.\n\nNote: The API is not supported on 32-bit platforms.\n\nParameters\n----------\nnbGroups : unsigned int\n    This is a pointer, specifying the number of groups that would be or\n    should be created as described below.\ninput : :py:obj:`~.cudaDevResource`\n    Input SM resource to be split. Must be a valid `None` resource.\nflags : unsigned int\n    Flags specifying how these partitions are used or which constraints\n    to abide by when splitting the input. Zero is valid for default\n    behavior.\nminCount : unsigned int\n    Minimum number of SMs required\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorInvalidResourceType`, :py:obj:`~.cudaErrorInvalidResourceConfiguration`, :py:obj:`~"".cudaErrorNotSupported`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`\nresult : list[:py:obj:`~.cudaDevResource`]\n    Output array of `cudaDevResource` resources. Can be NULL to query\n    the number of groups.\nnbGroups : unsigned int\n    This is a pointer, specifying the number of groups that would be or\n    should be created as described below.\nremaining : :py:obj:`~.cudaDevResource`\n    If the input resource cannot be cleanly split among `nbGroups`, the\n    remaining is placed in here. Can be ommitted (NULL) if the user\n    does not need the remaining set.\n\nSee Also\n--------\n:py:obj:`~.cuDevSmResourceSplitByCount`, :py:obj:`~.cudaDeviceGetDevResource`, :py:obj:`~.cudaExecutionCtxGetDevResource`, :py:obj:`~.cudaDevResourceGenerateDesc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_589cudaDevSmResourceSplitByCount = {"cudaDevSmResourceSplitByCount", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_589cudaDevSmResourceSplitByCount, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_588cudaDevSmResourceSplitByCount};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_589cudaDevSmResourceSplitByCount(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
) {
  unsigned int __pyx_v_nbGroups;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_input_ = 0;
  unsigned int __pyx_v_flags;
  unsigned int __pyx_v_minCount;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDevSmResourceSplitByCount (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_nbGroups,&__pyx_mstate_global->__pyx_n_u_input,&__pyx_mstate_global->__pyx_n_u_flags_2,&__pyx_mstate_global->__pyx_n_u_minCount,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, 32082, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 32082, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 32082, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32082, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32082, __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, "cudaDevSmResourceSplitByCount", 0) < (0)) __PYX_ERR(0, 32082, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDevSmResourceSplitByCount", 1, 4, 4, i); __PYX_ERR(0, 32082, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 32082, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32082, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 32082, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 32082, __pyx_L3_error)
    }
    __pyx_v_nbGroups = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_nbGroups == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32083, __pyx_L3_error)
    __pyx_v_input_ = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)values[1]);
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32083, __pyx_L3_error)
    __pyx_v_minCount = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_minCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32083, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDevSmResourceSplitByCount", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 32082, __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.runtime.cudaDevSmResourceSplitByCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_input_), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, 1, "input_", 0))) __PYX_ERR(0, 32083, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_588cudaDevSmResourceSplitByCount(__pyx_self, __pyx_v_nbGroups, __pyx_v_input_, __pyx_v_flags, __pyx_v_minCount);

  /* 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_7runtime_588cudaDevSmResourceSplitByCount(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_nbGroups, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_input_, unsigned int __pyx_v_flags, unsigned int __pyx_v_minCount) {
  cudaDevResource *__pyx_v_cyresult;
  PyObject *__pyx_v_pyresult = NULL;
  unsigned int __pyx_v_cynbGroups;
  cudaDevResource *__pyx_v_cyinput__ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_remaining = 0;
  cudaError_t __pyx_v_err;
  unsigned int __pyx_v_idx;
  CYTHON_UNUSED unsigned int __pyx_10genexpr286__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  unsigned int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  struct cudaDevResource_st *__pyx_t_11;
  cudaError_t __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDevSmResourceSplitByCount", 0);

  /* "cuda/bindings/runtime.pyx":32179
 *     :py:obj:`~.cuDevSmResourceSplitByCount`, :py:obj:`~.cudaDeviceGetDevResource`, :py:obj:`~.cudaExecutionCtxGetDevResource`, :py:obj:`~.cudaDevResourceGenerateDesc`
 *     """
 *     cdef cyruntime.cudaDevResource* cyresult = NULL             # <<<<<<<<<<<<<<
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]
 *     if nbGroups != 0:
*/
  __pyx_v_cyresult = NULL;

  /* "cuda/bindings/runtime.pyx":32180
 *     """
 *     cdef cyruntime.cudaDevResource* cyresult = NULL
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]             # <<<<<<<<<<<<<<
 *     if nbGroups != 0:
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_nbGroups;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr286__pyx_v_idx = __pyx_t_4;
      __pyx_t_6 = NULL;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32180, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_5);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 32180, __pyx_L1_error)
      __Pyx_DECREF((PyObject *)__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_pyresult = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":32181
 *     cdef cyruntime.cudaDevResource* cyresult = NULL
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]
 *     if nbGroups != 0:             # <<<<<<<<<<<<<<
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:
*/
  __pyx_t_8 = (__pyx_v_nbGroups != 0);
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":32182
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]
 *     if nbGroups != 0:
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))             # <<<<<<<<<<<<<<
 *         if cyresult is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
*/
    __pyx_v_cyresult = ((cudaDevResource *)calloc(__pyx_v_nbGroups, (sizeof(cudaDevResource))));

    /* "cuda/bindings/runtime.pyx":32183
 *     if nbGroups != 0:
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *     cdef unsigned int cynbGroups = nbGroups
*/
    __pyx_t_8 = (__pyx_v_cyresult == NULL);
    if (unlikely(__pyx_t_8)) {

      /* "cuda/bindings/runtime.pyx":32184
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))             # <<<<<<<<<<<<<<
 *     cdef unsigned int cynbGroups = nbGroups
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
*/
      __pyx_t_5 = NULL;
      __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(__pyx_v_nbGroups); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 32184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 32184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyLong_FromSize_t((sizeof(cudaDevResource))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 32184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32184, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 32184, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":32183
 *     if nbGroups != 0:
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *     cdef unsigned int cynbGroups = nbGroups
*/
    }

    /* "cuda/bindings/runtime.pyx":32181
 *     cdef cyruntime.cudaDevResource* cyresult = NULL
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]
 *     if nbGroups != 0:             # <<<<<<<<<<<<<<
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":32185
 *         if cyresult is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *     cdef unsigned int cynbGroups = nbGroups             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
 *     cdef cudaDevResource remaining = cudaDevResource()
*/
  __pyx_v_cynbGroups = __pyx_v_nbGroups;

  /* "cuda/bindings/runtime.pyx":32186
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *     cdef unsigned int cynbGroups = nbGroups
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL             # <<<<<<<<<<<<<<
 *     cdef cudaDevResource remaining = cudaDevResource()
 *     with nogil:
*/
  __pyx_t_8 = (((PyObject *)__pyx_v_input_) != Py_None);
  if (__pyx_t_8) {
    __pyx_t_11 = __pyx_v_input_->__pyx_base._pvt_ptr;
  } else {
    __pyx_t_11 = NULL;
  }
  __pyx_v_cyinput__ptr = __pyx_t_11;

  /* "cuda/bindings/runtime.pyx":32187
 *     cdef unsigned int cynbGroups = nbGroups
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
 *     cdef cudaDevResource remaining = cudaDevResource()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDevSmResourceSplitByCount(cyresult, &cynbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remaining._pvt_ptr, flags, minCount)
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32187, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_remaining = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":32188
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
 *     cdef cudaDevResource remaining = cudaDevResource()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDevSmResourceSplitByCount(cyresult, &cynbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remaining._pvt_ptr, flags, minCount)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32189
 *     cdef cudaDevResource remaining = cudaDevResource()
 *     with nogil:
 *         err = cyruntime.cudaDevSmResourceSplitByCount(cyresult, &cynbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remaining._pvt_ptr, flags, minCount)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         for idx in range(nbGroups):
*/
        __pyx_t_12 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDevSmResourceSplitByCount(__pyx_v_cyresult, (&__pyx_v_cynbGroups), __pyx_v_cyinput__ptr, ((cudaDevResource *)__pyx_v_remaining->__pyx_base._pvt_ptr), __pyx_v_flags, __pyx_v_minCount); if (unlikely(__pyx_t_12 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32189, __pyx_L8_error)
        __pyx_v_err = __pyx_t_12;
      }

      /* "cuda/bindings/runtime.pyx":32188
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
 *     cdef cudaDevResource remaining = cudaDevResource()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDevSmResourceSplitByCount(cyresult, &cynbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remaining._pvt_ptr, flags, minCount)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32190
 *     with nogil:
 *         err = cyruntime.cudaDevSmResourceSplitByCount(cyresult, &cynbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remaining._pvt_ptr, flags, minCount)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_10 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 32190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_10};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32190, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_10);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_10);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32190, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_6 = PyObject_RichCompare(__pyx_t_1, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32190, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 32190, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":32191
 *         err = cyruntime.cudaDevSmResourceSplitByCount(cyresult, &cynbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remaining._pvt_ptr, flags, minCount)
 *     if cudaError_t(err) == cudaError_t(0):
 *         for idx in range(nbGroups):             # <<<<<<<<<<<<<<
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
 *     if cyresult is not NULL:
*/
    __pyx_t_2 = __pyx_v_nbGroups;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_v_idx = __pyx_t_4;

      /* "cuda/bindings/runtime.pyx":32192
 *     if cudaError_t(err) == cudaError_t(0):
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))             # <<<<<<<<<<<<<<
 *     if cyresult is not NULL:
 *         free(cyresult)
*/
      __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_pyresult, __pyx_v_idx, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32192, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      (void)(memcpy(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_6)->__pyx_base._pvt_ptr, (&(__pyx_v_cyresult[__pyx_v_idx])), (sizeof(cudaDevResource))));
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }

    /* "cuda/bindings/runtime.pyx":32190
 *     with nogil:
 *         err = cyruntime.cudaDevSmResourceSplitByCount(cyresult, &cynbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remaining._pvt_ptr, flags, minCount)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
*/
  }

  /* "cuda/bindings/runtime.pyx":32193
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
 *     if cyresult is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_8 = (__pyx_v_cyresult != NULL);
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":32194
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
 *     if cyresult is not NULL:
 *         free(cyresult)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)
*/
    free(__pyx_v_cyresult);

    /* "cuda/bindings/runtime.pyx":32193
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
 *     if cyresult is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":32195
 *     if cyresult is not NULL:
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pyresult, cynbGroups, remaining)
*/
  __pyx_t_8 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":32196
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pyresult, cynbGroups, remaining)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 32196, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 32196, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None) != (0)) __PYX_ERR(0, 32196, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 3, Py_None) != (0)) __PYX_ERR(0, 32196, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32195
 *     if cyresult is not NULL:
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pyresult, cynbGroups, remaining)
*/
  }

  /* "cuda/bindings/runtime.pyx":32197
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None, None)
 *     return (_dict_cudaError_t[err], pyresult, cynbGroups, remaining)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(__pyx_v_cynbGroups); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 32197, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pyresult);
  __Pyx_GIVEREF(__pyx_v_pyresult);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_pyresult) != (0)) __PYX_ERR(0, 32197, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_1) != (0)) __PYX_ERR(0, 32197, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_remaining);
  __Pyx_GIVEREF((PyObject *)__pyx_v_remaining);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 3, ((PyObject *)__pyx_v_remaining)) != (0)) __PYX_ERR(0, 32197, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32082
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[cudaDevResource], unsigned int flags, unsigned int minCount):
 *     """ Splits `cudaDevResourceTypeSm` resources.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceSplitByCount", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pyresult);
  __Pyx_XDECREF((PyObject *)__pyx_v_remaining);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32199
 *     return (_dict_cudaError_t[err], pyresult, cynbGroups, remaining)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevSmResourceSplit(unsigned int nbGroups, input_ : Optional[cudaDevResource], unsigned int flags, groupParams : Optional[cudaDevSmResourceGroupParams]):
 *     """ Splits a `cudaDevResourceTypeSm` resource into structured groups.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_591cudaDevSmResourceSplit(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_7runtime_590cudaDevSmResourceSplit, "cudaDevSmResourceSplit(unsigned int nbGroups, cudaDevResource input_: Optional[cudaDevResource], unsigned int flags, cudaDevSmResourceGroupParams groupParams: Optional[cudaDevSmResourceGroupParams])\n\nSplits a `cudaDevResourceTypeSm` resource into structured groups.\n\nThis API will split a resource of :py:obj:`~.cudaDevResourceTypeSm`\ninto `nbGroups` structured device resource groups (the `result` array),\nas well as an optional `remainder`, according to a set of requirements\nspecified in the `groupParams` array. The term \342\200\234structured\342\200\235 is a trait\nthat specifies the `result` has SMs that are co-scheduled together.\nThis co-scheduling can be specified via the `coscheduledSmCount` field\nof the `groupParams` structure, while the `smCount` will specify how\nmany SMs are required in total for that result. The remainder is always\n\342\200\234unstructured\342\200\235, it does not have any set guarantees with respect to co-\nscheduling and those properties will need to either be queried via the\noccupancy set of APIs or further split into structured groups by this\nAPI.\n\nThe API has a discovery mode for use cases where it is difficult to\nknow ahead of time what the SM count should be. Discovery happens when\nthe `smCount` field of a given `groupParams` array entry is set to 0 -\nthe smCount will be filled in by the API with the derived SM count\naccording to the provided `groupParams` fields and constraints.\nDiscovery can be used with both a valid result array and with a NULL\n`result` pointer value. The latter is useful in situations where the\nsmCount will end up being zero, which is an invalid value to create a\nresult entry with, but allowed for discovery purposes when the `result`\nis NULL.\n\nThe `groupParams` array is evaluated from index 0 to `nbGroups` - 1.\nFor each index in the `groupParams` array, the API will evaluate which\nSMs may be a good fit based on constraints and assign those SMs to\n`result`. This evaluation order is impo""rtant to consider when using\ndiscovery mode, as it helps discover the remaining SMs.\n\nFor a valid call:\n\n- `result` should point to a `cudaDevResource` array of size\n  `nbGroups`, or alternatively, may be NULL, if the developer wishes\n  for only the groupParams entries to be updated\n\n- `input` should be a valid :py:obj:`~.cudaDevResourceTypeSm` resource\n  that originates from querying the execution context, or device.\n\n- The `remainder` group may be NULL.\n\n- There are no API `flags` at this time, so the value passed in should\n  be 0.\n\n- A :py:obj:`~.cudaDevSmResourceGroupParams` array of size `nbGroups`.\n  Each entry must be zero-initialized.\n\n  - `smCount:` must be either 0 or in the range of [2,inputSmCount]\n    where inputSmCount is the amount of SMs the `input` resource has.\n    `smCount` must be a multiple of 2, as well as a multiple of\n    `coscheduledSmCount`. When assigning SMs to a group (and if results\n    are expected by having the `result` parameter set), `smCount`\n    cannot end up with 0 or a value less than `coscheduledSmCount`\n    otherwise :py:obj:`~.cudaErrorInvalidResourceConfiguration` will be\n    returned.\n\n  - `coscheduledSmCount:` allows grouping SMs together in order to be\n    able to launch clusters on Compute Architecture 9.0+. The default\n    value may be queried from the device\342\200\231s\n    :py:obj:`~.cudaDevResourceTypeSm` resource (8 on Compute\n    Architecture 9.0+ and 2 otherwise). The maximum is 32 on Compute\n    Architecture 9.0+ and 2 otherwise.\n\n  - `preferredCoscheduledSmCount:` Attempts to merge\n    `coscheduledSmCount` groups into larger groups, in order to make\n    use of `preferredClusterDimensions` on Compute Architecture 10.0+.\n    The default value is set to `coscheduledSmCount`.\n\n  - `flags:`\n\n- `cudaDevSmResourceGroupBackfill:` lets `smCount` be a non-multiple of\n`coscheduledSmCount`, filling the difference between SM count and\nalready assigned co-scheduled groupings with ""other SMs. This lets any\nresulting group behave similar to the `remainder` group for example.\n\nExample params and their effect:\n\nA groupParams array element is defined in the following order:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nThe difference between a catch-all param group as the last entry and\nthe remainder is in two aspects:\n\n- The remainder may be NULL / _TYPE_INVALID (if there are no SMs\n  remaining), while a result group must always be valid.\n\n- The remainder does not have a structure, while the result group will\n  always need to adhere to a structure of coscheduledSmCount (even if\n  its just 2), and therefore must always have enough coscheduled SMs to\n  cover that requirement (even with the\n  `cudaDevSmResourceGroupBackfill` flag enabled).\n\nSplitting an input into N groups, can be accomplished by repeatedly\nsplitting off 1 group and re-splitting the remainder (a bisect\noperation). However, it's recommended to accomplish this with a single\ncall wherever possible.\n\nParameters\n----------\nnbGroups : unsigned int\n    Specifies the number of groups in `result` and `groupParams`\ninput : :py:obj:`~.cudaDevResource`\n    Input SM resource to be split. Must be a valid\n    `cudaDevResourceTypeSm` resource.\nflags : unsigned int\n    Flags specifying how the API should behave. The value should be 0\n    for now.\ngroupParams : :py:obj:`~.cudaDevSmResourceGroupParams`\n    Description of how the SMs should be split and assigned to the\n    corresponding result entry.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorInvalidResourceType`, :py:obj:`~.cudaErrorInvalidResourceConfiguration`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.""cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`\nresult : list[:py:obj:`~.cudaDevResource`]\n    Output array of `cudaDevResource` resources. Can be NULL, alongside\n    an smCount of 0, for discovery purpose.\nremainder : :py:obj:`~.cudaDevResource`\n    If splitting the input resource leaves any SMs, the remainder is\n    placed in here.\n\nSee Also\n--------\n:py:obj:`~.cuDevSmResourceSplit`, :py:obj:`~.cudaDeviceGetDevResource`, :py:obj:`~.cudaExecutionCtxGetDevResource`, :py:obj:`~.cudaDevResourceGenerateDesc`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_591cudaDevSmResourceSplit = {"cudaDevSmResourceSplit", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_591cudaDevSmResourceSplit, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_590cudaDevSmResourceSplit};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_591cudaDevSmResourceSplit(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
) {
  unsigned int __pyx_v_nbGroups;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_input_ = 0;
  unsigned int __pyx_v_flags;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams *__pyx_v_groupParams = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDevSmResourceSplit (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_nbGroups,&__pyx_mstate_global->__pyx_n_u_input,&__pyx_mstate_global->__pyx_n_u_flags_2,&__pyx_mstate_global->__pyx_n_u_groupParams,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, 32199, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 32199, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 32199, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32199, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32199, __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, "cudaDevSmResourceSplit", 0) < (0)) __PYX_ERR(0, 32199, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDevSmResourceSplit", 1, 4, 4, i); __PYX_ERR(0, 32199, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 32199, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32199, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 32199, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 32199, __pyx_L3_error)
    }
    __pyx_v_nbGroups = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_nbGroups == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32200, __pyx_L3_error)
    __pyx_v_input_ = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)values[1]);
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32200, __pyx_L3_error)
    __pyx_v_groupParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams *)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDevSmResourceSplit", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 32199, __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.runtime.cudaDevSmResourceSplit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_input_), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, 1, "input_", 0))) __PYX_ERR(0, 32200, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_groupParams), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams, 1, "groupParams", 0))) __PYX_ERR(0, 32200, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_590cudaDevSmResourceSplit(__pyx_self, __pyx_v_nbGroups, __pyx_v_input_, __pyx_v_flags, __pyx_v_groupParams);

  /* 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_7runtime_590cudaDevSmResourceSplit(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_nbGroups, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_input_, unsigned int __pyx_v_flags, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams *__pyx_v_groupParams) {
  cudaDevResource *__pyx_v_cyresult;
  PyObject *__pyx_v_pyresult = NULL;
  cudaDevResource *__pyx_v_cyinput__ptr;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_remainder = 0;
  cudaDevSmResourceGroupParams *__pyx_v_cygroupParams_ptr;
  cudaError_t __pyx_v_err;
  unsigned int __pyx_v_idx;
  CYTHON_UNUSED unsigned int __pyx_10genexpr287__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  unsigned int __pyx_t_2;
  unsigned int __pyx_t_3;
  unsigned int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  struct cudaDevResource_st *__pyx_t_11;
  struct cudaDevSmResourceGroupParams_st *__pyx_t_12;
  cudaError_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDevSmResourceSplit", 0);

  /* "cuda/bindings/runtime.pyx":32336
 *     :py:obj:`~.cuDevSmResourceSplit`, :py:obj:`~.cudaDeviceGetDevResource`, :py:obj:`~.cudaExecutionCtxGetDevResource`, :py:obj:`~.cudaDevResourceGenerateDesc`
 *     """
 *     cdef cyruntime.cudaDevResource* cyresult = NULL             # <<<<<<<<<<<<<<
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]
 *     if nbGroups != 0:
*/
  __pyx_v_cyresult = NULL;

  /* "cuda/bindings/runtime.pyx":32337
 *     """
 *     cdef cyruntime.cudaDevResource* cyresult = NULL
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]             # <<<<<<<<<<<<<<
 *     if nbGroups != 0:
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_v_nbGroups;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_10genexpr287__pyx_v_idx = __pyx_t_4;
      __pyx_t_6 = NULL;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32337, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_5);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 32337, __pyx_L1_error)
      __Pyx_DECREF((PyObject *)__pyx_t_5); __pyx_t_5 = 0;
    }
  } /* exit inner scope */
  __pyx_v_pyresult = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":32338
 *     cdef cyruntime.cudaDevResource* cyresult = NULL
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]
 *     if nbGroups != 0:             # <<<<<<<<<<<<<<
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:
*/
  __pyx_t_8 = (__pyx_v_nbGroups != 0);
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":32339
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]
 *     if nbGroups != 0:
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))             # <<<<<<<<<<<<<<
 *         if cyresult is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
*/
    __pyx_v_cyresult = ((cudaDevResource *)calloc(__pyx_v_nbGroups, (sizeof(cudaDevResource))));

    /* "cuda/bindings/runtime.pyx":32340
 *     if nbGroups != 0:
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
*/
    __pyx_t_8 = (__pyx_v_cyresult == NULL);
    if (unlikely(__pyx_t_8)) {

      /* "cuda/bindings/runtime.pyx":32341
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
 *     cdef cudaDevResource remainder = cudaDevResource()
*/
      __pyx_t_5 = NULL;
      __pyx_t_6 = __Pyx_PyLong_From_unsigned_int(__pyx_v_nbGroups); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 32341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 32341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyLong_FromSize_t((sizeof(cudaDevResource))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 32341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32341, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 32341, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":32340
 *     if nbGroups != 0:
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
*/
    }

    /* "cuda/bindings/runtime.pyx":32338
 *     cdef cyruntime.cudaDevResource* cyresult = NULL
 *     pyresult = [cudaDevResource() for idx in range(nbGroups)]
 *     if nbGroups != 0:             # <<<<<<<<<<<<<<
 *         cyresult = <cyruntime.cudaDevResource*>calloc(nbGroups, sizeof(cyruntime.cudaDevResource))
 *         if cyresult is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":32342
 *         if cyresult is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL             # <<<<<<<<<<<<<<
 *     cdef cudaDevResource remainder = cudaDevResource()
 *     cdef cyruntime.cudaDevSmResourceGroupParams* cygroupParams_ptr = groupParams._pvt_ptr if groupParams is not None else NULL
*/
  __pyx_t_8 = (((PyObject *)__pyx_v_input_) != Py_None);
  if (__pyx_t_8) {
    __pyx_t_11 = __pyx_v_input_->__pyx_base._pvt_ptr;
  } else {
    __pyx_t_11 = NULL;
  }
  __pyx_v_cyinput__ptr = __pyx_t_11;

  /* "cuda/bindings/runtime.pyx":32343
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(nbGroups) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
 *     cdef cudaDevResource remainder = cudaDevResource()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDevSmResourceGroupParams* cygroupParams_ptr = groupParams._pvt_ptr if groupParams is not None else NULL
 *     with nogil:
*/
  __pyx_t_6 = NULL;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32343, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_remainder = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":32344
 *     cdef cyruntime.cudaDevResource* cyinput__ptr = input_._pvt_ptr if input_ is not None else NULL
 *     cdef cudaDevResource remainder = cudaDevResource()
 *     cdef cyruntime.cudaDevSmResourceGroupParams* cygroupParams_ptr = groupParams._pvt_ptr if groupParams is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDevSmResourceSplit(cyresult, nbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remainder._pvt_ptr, flags, cygroupParams_ptr)
*/
  __pyx_t_8 = (((PyObject *)__pyx_v_groupParams) != Py_None);
  if (__pyx_t_8) {
    __pyx_t_12 = __pyx_v_groupParams->__pyx_base._pvt_ptr;
  } else {
    __pyx_t_12 = NULL;
  }
  __pyx_v_cygroupParams_ptr = __pyx_t_12;

  /* "cuda/bindings/runtime.pyx":32345
 *     cdef cudaDevResource remainder = cudaDevResource()
 *     cdef cyruntime.cudaDevSmResourceGroupParams* cygroupParams_ptr = groupParams._pvt_ptr if groupParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDevSmResourceSplit(cyresult, nbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remainder._pvt_ptr, flags, cygroupParams_ptr)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32346
 *     cdef cyruntime.cudaDevSmResourceGroupParams* cygroupParams_ptr = groupParams._pvt_ptr if groupParams is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaDevSmResourceSplit(cyresult, nbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remainder._pvt_ptr, flags, cygroupParams_ptr)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         for idx in range(nbGroups):
*/
        __pyx_t_13 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDevSmResourceSplit(__pyx_v_cyresult, __pyx_v_nbGroups, __pyx_v_cyinput__ptr, ((cudaDevResource *)__pyx_v_remainder->__pyx_base._pvt_ptr), __pyx_v_flags, __pyx_v_cygroupParams_ptr); if (unlikely(__pyx_t_13 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32346, __pyx_L8_error)
        __pyx_v_err = __pyx_t_13;
      }

      /* "cuda/bindings/runtime.pyx":32345
 *     cdef cudaDevResource remainder = cudaDevResource()
 *     cdef cyruntime.cudaDevSmResourceGroupParams* cygroupParams_ptr = groupParams._pvt_ptr if groupParams is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDevSmResourceSplit(cyresult, nbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remainder._pvt_ptr, flags, cygroupParams_ptr)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32347
 *     with nogil:
 *         err = cyruntime.cudaDevSmResourceSplit(cyresult, nbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remainder._pvt_ptr, flags, cygroupParams_ptr)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_10 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 32347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_10};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_10 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_10);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_10);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_6 = PyObject_RichCompare(__pyx_t_1, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 32347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":32348
 *         err = cyruntime.cudaDevSmResourceSplit(cyresult, nbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remainder._pvt_ptr, flags, cygroupParams_ptr)
 *     if cudaError_t(err) == cudaError_t(0):
 *         for idx in range(nbGroups):             # <<<<<<<<<<<<<<
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
 *     if cyresult is not NULL:
*/
    __pyx_t_2 = __pyx_v_nbGroups;
    __pyx_t_3 = __pyx_t_2;
    for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
      __pyx_v_idx = __pyx_t_4;

      /* "cuda/bindings/runtime.pyx":32349
 *     if cudaError_t(err) == cudaError_t(0):
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))             # <<<<<<<<<<<<<<
 *     if cyresult is not NULL:
 *         free(cyresult)
*/
      __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_pyresult, __pyx_v_idx, unsigned int, 0, __Pyx_PyLong_From_unsigned_int, 1, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32349, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      (void)(memcpy(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_6)->__pyx_base._pvt_ptr, (&(__pyx_v_cyresult[__pyx_v_idx])), (sizeof(cudaDevResource))));
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }

    /* "cuda/bindings/runtime.pyx":32347
 *     with nogil:
 *         err = cyruntime.cudaDevSmResourceSplit(cyresult, nbGroups, cyinput__ptr, <cyruntime.cudaDevResource*>remainder._pvt_ptr, flags, cygroupParams_ptr)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
*/
  }

  /* "cuda/bindings/runtime.pyx":32350
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
 *     if cyresult is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_8 = (__pyx_v_cyresult != NULL);
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":32351
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
 *     if cyresult is not NULL:
 *         free(cyresult)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
    free(__pyx_v_cyresult);

    /* "cuda/bindings/runtime.pyx":32350
 *         for idx in range(nbGroups):
 *             string.memcpy((<cudaDevResource>pyresult[idx])._pvt_ptr, &cyresult[idx], sizeof(cyruntime.cudaDevResource))
 *     if cyresult is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":32352
 *     if cyresult is not NULL:
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pyresult, remainder)
*/
  __pyx_t_8 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_8) {

    /* "cuda/bindings/runtime.pyx":32353
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pyresult, remainder)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 32353, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 32353, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, Py_None) != (0)) __PYX_ERR(0, 32353, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32352
 *     if cyresult is not NULL:
 *         free(cyresult)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pyresult, remainder)
*/
  }

  /* "cuda/bindings/runtime.pyx":32354
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pyresult, remainder)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 32354, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pyresult);
  __Pyx_GIVEREF(__pyx_v_pyresult);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_pyresult) != (0)) __PYX_ERR(0, 32354, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_remainder);
  __Pyx_GIVEREF((PyObject *)__pyx_v_remainder);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)__pyx_v_remainder)) != (0)) __PYX_ERR(0, 32354, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32199
 *     return (_dict_cudaError_t[err], pyresult, cynbGroups, remaining)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevSmResourceSplit(unsigned int nbGroups, input_ : Optional[cudaDevResource], unsigned int flags, groupParams : Optional[cudaDevSmResourceGroupParams]):
 *     """ Splits a `cudaDevResourceTypeSm` resource into structured groups.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevSmResourceSplit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pyresult);
  __Pyx_XDECREF((PyObject *)__pyx_v_remainder);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32356
 *     return (_dict_cudaError_t[err], pyresult, remainder)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevResourceGenerateDesc(resources : Optional[tuple[cudaDevResource] | list[cudaDevResource]], unsigned int nbResources):
 *     """ Generate a resource descriptor.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_593cudaDevResourceGenerateDesc(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_7runtime_592cudaDevResourceGenerateDesc, "cudaDevResourceGenerateDesc(resources: Optional[tuple[cudaDevResource] | list[cudaDevResource]], unsigned int nbResources)\n\nGenerate a resource descriptor.\n\nGenerates a single resource descriptor with the set of resources\nspecified in `resources`. The generated resource descriptor is\nnecessary for the creation of green contexts via the\n:py:obj:`~.cudaGreenCtxCreate` API. Resources of the same type can be\npassed in, provided they meet the requirements as noted below.\n\nA successful API call must have:\n\n- A valid output pointer for the `phDesc` descriptor as well as a valid\n  array of `resources` pointers, with the array size passed in\n  `nbResources`. If multiple resources are provided in `resources`, the\n  device they came from must be the same, otherwise\n  :py:obj:`~.cudaErrorInvalidResourceConfiguration` is returned. If\n  multiple resources are provided in `resources` and they are of type\n  :py:obj:`~.cudaDevResourceTypeSm`, they must be outputs (whether\n  `result` or `remaining`) from the same split API instance and have\n  the same smCoscheduledAlignment values, otherwise\n  :py:obj:`~.cudaErrorInvalidResourceConfiguration` is returned.\n\nNote: The API is not supported on 32-bit platforms.\n\nParameters\n----------\nresources : list[:py:obj:`~.cudaDevResource`]\n    Array of resources to be included in the descriptor\nnbResources : unsigned int\n    Number of resources passed in `resources`\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorInvalidResourceType`, :py:obj:`~.cudaErrorInvalidResourceConfiguration`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorOutOfMemory`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`\nphDesc : :py:obj:`~.cudaDevResourceDesc_t`\n    Output descriptor\n\nSee Also\n--------\n:py:obj:`~.cuDevResourceGenerateDesc`, :py:obj:`~.cudaDeviceGetDevResource`, :py:obj:`~.cudaExecuti""onCtxGetDevResource`, :py:obj:`~.cudaDevSmResourceSplit`, :py:obj:`~.cudaGreenCtxCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_593cudaDevResourceGenerateDesc = {"cudaDevResourceGenerateDesc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_593cudaDevResourceGenerateDesc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_592cudaDevResourceGenerateDesc};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_593cudaDevResourceGenerateDesc(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_resources = 0;
  unsigned int __pyx_v_nbResources;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaDevResourceGenerateDesc (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_resources,&__pyx_mstate_global->__pyx_n_u_nbResources,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, 32356, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32356, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32356, __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, "cudaDevResourceGenerateDesc", 0) < (0)) __PYX_ERR(0, 32356, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDevResourceGenerateDesc", 1, 2, 2, i); __PYX_ERR(0, 32356, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 32356, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32356, __pyx_L3_error)
    }
    __pyx_v_resources = values[0];
    __pyx_v_nbResources = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_nbResources == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32357, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDevResourceGenerateDesc", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 32356, __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.runtime.cudaDevResourceGenerateDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_592cudaDevResourceGenerateDesc(__pyx_self, __pyx_v_resources, __pyx_v_nbResources);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaDevResourceGenerateDesc_2generator137(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cuda/bindings/runtime.pyx":32400
 *     """
 *     resources = [] if resources is None else resources
 *     if not all(isinstance(_x, (cudaDevResource,)) for _x in resources):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]")
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_27cudaDevResourceGenerateDesc_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(0, 32400, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_4cuda_8bindings_7runtime_27cudaDevResourceGenerateDesc_2generator137, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[137]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cudaDevResourceGenerateDesc_loca, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime); if (unlikely(!gen)) __PYX_ERR(0, 32400, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceGenerateDesc.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaDevResourceGenerateDesc_2generator137(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *__pyx_cur_scope = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 32400, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(0, 32400, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32400, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 32400, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 32400, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32400, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 32400, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v__x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v__x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_TypeCheck(__pyx_cur_scope->__pyx_v__x, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource); 
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32356
 *     return (_dict_cudaError_t[err], pyresult, remainder)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevResourceGenerateDesc(resources : Optional[tuple[cudaDevResource] | list[cudaDevResource]], unsigned int nbResources):
 *     """ Generate a resource descriptor.
*/

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_592cudaDevResourceGenerateDesc(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resources, unsigned int __pyx_v_nbResources) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_phDesc = 0;
  cudaDevResource *__pyx_v_cyresources;
  Py_ssize_t __pyx_v_idx;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_gb_4cuda_8bindings_7runtime_27cudaDevResourceGenerateDesc_2generator137 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  size_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  struct cudaDevResource_st *__pyx_t_12;
  cudaError_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDevResourceGenerateDesc", 0);
  __Pyx_INCREF(__pyx_v_resources);

  /* "cuda/bindings/runtime.pyx":32399
 *     :py:obj:`~.cuDevResourceGenerateDesc`, :py:obj:`~.cudaDeviceGetDevResource`, :py:obj:`~.cudaExecutionCtxGetDevResource`, :py:obj:`~.cudaDevSmResourceSplit`, :py:obj:`~.cudaGreenCtxCreate`
 *     """
 *     resources = [] if resources is None else resources             # <<<<<<<<<<<<<<
 *     if not all(isinstance(_x, (cudaDevResource,)) for _x in resources):
 *         raise TypeError("Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]")
*/
  __pyx_t_2 = (__pyx_v_resources == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_resources);
    __pyx_t_1 = __pyx_v_resources;
  }
  __Pyx_DECREF_SET(__pyx_v_resources, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":32400
 *     """
 *     resources = [] if resources is None else resources
 *     if not all(isinstance(_x, (cudaDevResource,)) for _x in resources):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]")
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()
*/
  __pyx_t_1 = __pyx_pf_4cuda_8bindings_7runtime_27cudaDevResourceGenerateDesc_genexpr(NULL, __pyx_v_resources); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_Generator_GetInlinedResult(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 32400, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (unlikely(__pyx_t_4)) {

    /* "cuda/bindings/runtime.pyx":32401
 *     resources = [] if resources is None else resources
 *     if not all(isinstance(_x, (cudaDevResource,)) for _x in resources):
 *         raise TypeError("Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]")             # <<<<<<<<<<<<<<
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()
 *     cdef cyruntime.cudaDevResource* cyresources = NULL
*/
    __pyx_t_1 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Argument_resources_is_not_instan_2};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32401, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 32401, __pyx_L1_error)

    /* "cuda/bindings/runtime.pyx":32400
 *     """
 *     resources = [] if resources is None else resources
 *     if not all(isinstance(_x, (cudaDevResource,)) for _x in resources):             # <<<<<<<<<<<<<<
 *         raise TypeError("Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]")
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()
*/
  }

  /* "cuda/bindings/runtime.pyx":32402
 *     if not all(isinstance(_x, (cudaDevResource,)) for _x in resources):
 *         raise TypeError("Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]")
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDevResource* cyresources = NULL
 *     if len(resources) > 1:
*/
  __pyx_t_1 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32402, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_phDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":32403
 *         raise TypeError("Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]")
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()
 *     cdef cyruntime.cudaDevResource* cyresources = NULL             # <<<<<<<<<<<<<<
 *     if len(resources) > 1:
 *         cyresources = <cyruntime.cudaDevResource*> calloc(len(resources), sizeof(cyruntime.cudaDevResource))
*/
  __pyx_v_cyresources = NULL;

  /* "cuda/bindings/runtime.pyx":32404
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()
 *     cdef cyruntime.cudaDevResource* cyresources = NULL
 *     if len(resources) > 1:             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaDevResource*> calloc(len(resources), sizeof(cyruntime.cudaDevResource))
 *         if cyresources is NULL:
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_resources); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 32404, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_6 > 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":32405
 *     cdef cyruntime.cudaDevResource* cyresources = NULL
 *     if len(resources) > 1:
 *         cyresources = <cyruntime.cudaDevResource*> calloc(len(resources), sizeof(cyruntime.cudaDevResource))             # <<<<<<<<<<<<<<
 *         if cyresources is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(resources)) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
*/
    __pyx_t_6 = PyObject_Length(__pyx_v_resources); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 32405, __pyx_L1_error)
    __pyx_v_cyresources = ((cudaDevResource *)calloc(__pyx_t_6, (sizeof(cudaDevResource))));

    /* "cuda/bindings/runtime.pyx":32406
 *     if len(resources) > 1:
 *         cyresources = <cyruntime.cudaDevResource*> calloc(len(resources), sizeof(cyruntime.cudaDevResource))
 *         if cyresources is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(resources)) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *         for idx in range(len(resources)):
*/
    __pyx_t_4 = (__pyx_v_cyresources == NULL);
    if (unlikely(__pyx_t_4)) {

      /* "cuda/bindings/runtime.pyx":32407
 *         cyresources = <cyruntime.cudaDevResource*> calloc(len(resources), sizeof(cyruntime.cudaDevResource))
 *         if cyresources is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(resources)) + 'x' + str(sizeof(cyruntime.cudaDevResource)))             # <<<<<<<<<<<<<<
 *         for idx in range(len(resources)):
 *             string.memcpy(&cyresources[idx], (<cudaDevResource>resources[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource))
*/
      __pyx_t_1 = NULL;
      __pyx_t_6 = PyObject_Length(__pyx_v_resources); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 32407, __pyx_L1_error)
      __pyx_t_7 = PyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32407, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 32407, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32407, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 32407, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyLong_FromSize_t((sizeof(cudaDevResource))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32407, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = __Pyx_PyObject_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 32407, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32407, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_7};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32407, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 32407, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":32406
 *     if len(resources) > 1:
 *         cyresources = <cyruntime.cudaDevResource*> calloc(len(resources), sizeof(cyruntime.cudaDevResource))
 *         if cyresources is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(resources)) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *         for idx in range(len(resources)):
*/
    }

    /* "cuda/bindings/runtime.pyx":32408
 *         if cyresources is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(resources)) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *         for idx in range(len(resources)):             # <<<<<<<<<<<<<<
 *             string.memcpy(&cyresources[idx], (<cudaDevResource>resources[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource))
 *     elif len(resources) == 1:
*/
    __pyx_t_6 = PyObject_Length(__pyx_v_resources); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 32408, __pyx_L1_error)
    __pyx_t_10 = __pyx_t_6;
    for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
      __pyx_v_idx = __pyx_t_11;

      /* "cuda/bindings/runtime.pyx":32409
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(len(resources)) + 'x' + str(sizeof(cyruntime.cudaDevResource)))
 *         for idx in range(len(resources)):
 *             string.memcpy(&cyresources[idx], (<cudaDevResource>resources[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource))             # <<<<<<<<<<<<<<
 *     elif len(resources) == 1:
 *         cyresources = (<cudaDevResource>resources[0])._pvt_ptr
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_resources, __pyx_v_idx, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32409, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      (void)(memcpy((&(__pyx_v_cyresources[__pyx_v_idx])), ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_3)->__pyx_base._pvt_ptr, (sizeof(cudaDevResource))));
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }

    /* "cuda/bindings/runtime.pyx":32404
 *     cdef cudaDevResourceDesc_t phDesc = cudaDevResourceDesc_t()
 *     cdef cyruntime.cudaDevResource* cyresources = NULL
 *     if len(resources) > 1:             # <<<<<<<<<<<<<<
 *         cyresources = <cyruntime.cudaDevResource*> calloc(len(resources), sizeof(cyruntime.cudaDevResource))
 *         if cyresources is NULL:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":32410
 *         for idx in range(len(resources)):
 *             string.memcpy(&cyresources[idx], (<cudaDevResource>resources[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource))
 *     elif len(resources) == 1:             # <<<<<<<<<<<<<<
 *         cyresources = (<cudaDevResource>resources[0])._pvt_ptr
 *     with nogil:
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_resources); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 32410, __pyx_L1_error)
  __pyx_t_4 = (__pyx_t_6 == 1);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":32411
 *             string.memcpy(&cyresources[idx], (<cudaDevResource>resources[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource))
 *     elif len(resources) == 1:
 *         cyresources = (<cudaDevResource>resources[0])._pvt_ptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDevResourceGenerateDesc(<cyruntime.cudaDevResourceDesc_t*>phDesc._pvt_ptr, cyresources, nbResources)
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_resources, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_3)->__pyx_base._pvt_ptr;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_cyresources = __pyx_t_12;

    /* "cuda/bindings/runtime.pyx":32410
 *         for idx in range(len(resources)):
 *             string.memcpy(&cyresources[idx], (<cudaDevResource>resources[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource))
 *     elif len(resources) == 1:             # <<<<<<<<<<<<<<
 *         cyresources = (<cudaDevResource>resources[0])._pvt_ptr
 *     with nogil:
*/
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":32412
 *     elif len(resources) == 1:
 *         cyresources = (<cudaDevResource>resources[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDevResourceGenerateDesc(<cyruntime.cudaDevResourceDesc_t*>phDesc._pvt_ptr, cyresources, nbResources)
 *     if len(resources) > 1 and cyresources is not NULL:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32413
 *         cyresources = (<cudaDevResource>resources[0])._pvt_ptr
 *     with nogil:
 *         err = cyruntime.cudaDevResourceGenerateDesc(<cyruntime.cudaDevResourceDesc_t*>phDesc._pvt_ptr, cyresources, nbResources)             # <<<<<<<<<<<<<<
 *     if len(resources) > 1 and cyresources is not NULL:
 *         free(cyresources)
*/
        __pyx_t_13 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDevResourceGenerateDesc(((cudaDevResourceDesc_t *)__pyx_v_phDesc->_pvt_ptr), __pyx_v_cyresources, __pyx_v_nbResources); if (unlikely(__pyx_t_13 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32413, __pyx_L9_error)
        __pyx_v_err = __pyx_t_13;
      }

      /* "cuda/bindings/runtime.pyx":32412
 *     elif len(resources) == 1:
 *         cyresources = (<cudaDevResource>resources[0])._pvt_ptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDevResourceGenerateDesc(<cyruntime.cudaDevResourceDesc_t*>phDesc._pvt_ptr, cyresources, nbResources)
 *     if len(resources) > 1 and cyresources is not NULL:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L10;
        }
        __pyx_L9_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L10:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32414
 *     with nogil:
 *         err = cyruntime.cudaDevResourceGenerateDesc(<cyruntime.cudaDevResourceDesc_t*>phDesc._pvt_ptr, cyresources, nbResources)
 *     if len(resources) > 1 and cyresources is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyresources)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_resources); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 32414, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_6 > 1);
  if (__pyx_t_2) {
  } else {
    __pyx_t_4 = __pyx_t_2;
    goto __pyx_L12_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_cyresources != NULL);
  __pyx_t_4 = __pyx_t_2;
  __pyx_L12_bool_binop_done:;
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":32415
 *         err = cyruntime.cudaDevResourceGenerateDesc(<cyruntime.cudaDevResourceDesc_t*>phDesc._pvt_ptr, cyresources, nbResources)
 *     if len(resources) > 1 and cyresources is not NULL:
 *         free(cyresources)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
    free(__pyx_v_cyresources);

    /* "cuda/bindings/runtime.pyx":32414
 *     with nogil:
 *         err = cyruntime.cudaDevResourceGenerateDesc(<cyruntime.cudaDevResourceDesc_t*>phDesc._pvt_ptr, cyresources, nbResources)
 *     if len(resources) > 1 and cyresources is not NULL:             # <<<<<<<<<<<<<<
 *         free(cyresources)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":32416
 *     if len(resources) > 1 and cyresources is not NULL:
 *         free(cyresources)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phDesc)
*/
  __pyx_t_4 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_4) {

    /* "cuda/bindings/runtime.pyx":32417
 *         free(cyresources)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], phDesc)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32417, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32417, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32417, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32417, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 32417, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, Py_None) != (0)) __PYX_ERR(0, 32417, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32416
 *     if len(resources) > 1 and cyresources is not NULL:
 *         free(cyresources)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phDesc)
*/
  }

  /* "cuda/bindings/runtime.pyx":32418
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phDesc)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 32418, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_phDesc);
  __Pyx_GIVEREF((PyObject *)__pyx_v_phDesc);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_phDesc)) != (0)) __PYX_ERR(0, 32418, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32356
 *     return (_dict_cudaError_t[err], pyresult, remainder)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevResourceGenerateDesc(resources : Optional[tuple[cudaDevResource] | list[cudaDevResource]], unsigned int nbResources):
 *     """ Generate a resource descriptor.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDevResourceGenerateDesc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_phDesc);
  __Pyx_XDECREF(__pyx_gb_4cuda_8bindings_7runtime_27cudaDevResourceGenerateDesc_2generator137);
  __Pyx_XDECREF(__pyx_v_resources);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32420
 *     return (_dict_cudaError_t[err], phDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGreenCtxCreate(desc, int device, unsigned int flags):
 *     """ Creates a green context with a specified set of resources.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_595cudaGreenCtxCreate(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_7runtime_594cudaGreenCtxCreate, "cudaGreenCtxCreate(desc, int device, unsigned int flags)\n\nCreates a green context with a specified set of resources.\n\nThis API creates a green context with the resources specified in the\ndescriptor `desc` and returns it in the handle represented by `phCtx`.\n\nThis API retains the device\342\200\231s primary context for the lifetime of the\ngreen context. The primary context will be released when the green\ncontext is destroyed. To avoid the overhead of repeated initialization\nand teardown, it is recommended to explicitly initialize the device's\nprimary context ahead of time using :py:obj:`~.cudaInitDevice`. This\nensures that the primary context remains initialized throughout the\nprogram\342\200\231s lifetime, minimizing overhead during green context creation\nand destruction.\n\nThe API does not create a default stream for the green context.\nDevelopers are expected to create streams explicitly using\n:py:obj:`~.cudaExecutionCtxStreamCreate` to submit work to the green\ncontext.\n\nNote: The API is not supported on 32-bit platforms.\n\nParameters\n----------\ndesc : :py:obj:`~.cudaDevResourceDesc_t`\n    Descriptor generated via :py:obj:`~.cudaDevResourceGenerateDesc`\n    which contains the set of resources to be used\ndevice : int\n    Device on which to create the green context.\nflags : unsigned int\n    Green context creation flags. Must be 0, currently reserved for\n    future use.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorOutOfMemory`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`\nphCtx : :py:obj:`~.cudaExecutionContext_t`\n    Pointer for the output handle to the green context\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetDevResource`, :py:obj:`~.cudaDevSmResourceSplit`, :py:obj:`~.cudaDevResourceGenerateDesc`, :py:obj:`~.cudaExecution""CtxGetDevResource`, :py:obj:`~.cudaExecutionCtxDestroy`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cudaExecutionCtxStreamCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_595cudaGreenCtxCreate = {"cudaGreenCtxCreate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_595cudaGreenCtxCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_594cudaGreenCtxCreate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_595cudaGreenCtxCreate(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_desc = 0;
  int __pyx_v_device;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGreenCtxCreate (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_desc_2,&__pyx_mstate_global->__pyx_n_u_device_2,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 32420, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 32420, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32420, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32420, __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, "cudaGreenCtxCreate", 0) < (0)) __PYX_ERR(0, 32420, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGreenCtxCreate", 1, 3, 3, i); __PYX_ERR(0, 32420, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 32420, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32420, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 32420, __pyx_L3_error)
    }
    __pyx_v_desc = values[0];
    __pyx_v_device = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32421, __pyx_L3_error)
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32421, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGreenCtxCreate", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 32420, __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.runtime.cudaGreenCtxCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_594cudaGreenCtxCreate(__pyx_self, __pyx_v_desc, __pyx_v_device, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_594cudaGreenCtxCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc, int __pyx_v_device, unsigned int __pyx_v_flags) {
  cudaDevResourceDesc_t __pyx_v_cydesc;
  PyObject *__pyx_v_pdesc = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_phCtx = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGreenCtxCreate", 0);

  /* "cuda/bindings/runtime.pyx":32466
 *     """
 *     cdef cyruntime.cudaDevResourceDesc_t cydesc
 *     if desc is None:             # <<<<<<<<<<<<<<
 *         pdesc = 0
 *     elif isinstance(desc, (cudaDevResourceDesc_t,)):
*/
  __pyx_t_1 = (__pyx_v_desc == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32467
 *     cdef cyruntime.cudaDevResourceDesc_t cydesc
 *     if desc is None:
 *         pdesc = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(desc, (cudaDevResourceDesc_t,)):
 *         pdesc = int(desc)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pdesc = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32466
 *     """
 *     cdef cyruntime.cudaDevResourceDesc_t cydesc
 *     if desc is None:             # <<<<<<<<<<<<<<
 *         pdesc = 0
 *     elif isinstance(desc, (cudaDevResourceDesc_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32468
 *     if desc is None:
 *         pdesc = 0
 *     elif isinstance(desc, (cudaDevResourceDesc_t,)):             # <<<<<<<<<<<<<<
 *         pdesc = int(desc)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_desc, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32469
 *         pdesc = 0
 *     elif isinstance(desc, (cudaDevResourceDesc_t,)):
 *         pdesc = int(desc)             # <<<<<<<<<<<<<<
 *     else:
 *         pdesc = int(cudaDevResourceDesc_t(desc))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_desc); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pdesc = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":32468
 *     if desc is None:
 *         pdesc = 0
 *     elif isinstance(desc, (cudaDevResourceDesc_t,)):             # <<<<<<<<<<<<<<
 *         pdesc = int(desc)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32471
 *         pdesc = int(desc)
 *     else:
 *         pdesc = int(cudaDevResourceDesc_t(desc))             # <<<<<<<<<<<<<<
 *     cydesc = <cyruntime.cudaDevResourceDesc_t><void_ptr>pdesc
 *     cdef cudaExecutionContext_t phCtx = cudaExecutionContext_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_desc};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32471, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pdesc = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32472
 *     else:
 *         pdesc = int(cudaDevResourceDesc_t(desc))
 *     cydesc = <cyruntime.cudaDevResourceDesc_t><void_ptr>pdesc             # <<<<<<<<<<<<<<
 *     cdef cudaExecutionContext_t phCtx = cudaExecutionContext_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pdesc); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32472, __pyx_L1_error)
  __pyx_v_cydesc = ((cudaDevResourceDesc_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":32473
 *         pdesc = int(cudaDevResourceDesc_t(desc))
 *     cydesc = <cyruntime.cudaDevResourceDesc_t><void_ptr>pdesc
 *     cdef cudaExecutionContext_t phCtx = cudaExecutionContext_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGreenCtxCreate(<cyruntime.cudaExecutionContext_t*>phCtx._pvt_ptr, cydesc, device, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32473, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_phCtx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":32474
 *     cydesc = <cyruntime.cudaDevResourceDesc_t><void_ptr>pdesc
 *     cdef cudaExecutionContext_t phCtx = cudaExecutionContext_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGreenCtxCreate(<cyruntime.cudaExecutionContext_t*>phCtx._pvt_ptr, cydesc, device, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32475
 *     cdef cudaExecutionContext_t phCtx = cudaExecutionContext_t()
 *     with nogil:
 *         err = cyruntime.cudaGreenCtxCreate(<cyruntime.cudaExecutionContext_t*>phCtx._pvt_ptr, cydesc, device, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGreenCtxCreate(((cudaExecutionContext_t *)__pyx_v_phCtx->_pvt_ptr), __pyx_v_cydesc, __pyx_v_device, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32475, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":32474
 *     cydesc = <cyruntime.cudaDevResourceDesc_t><void_ptr>pdesc
 *     cdef cudaExecutionContext_t phCtx = cudaExecutionContext_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGreenCtxCreate(<cyruntime.cudaExecutionContext_t*>phCtx._pvt_ptr, cydesc, device, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32476
 *     with nogil:
 *         err = cyruntime.cudaGreenCtxCreate(<cyruntime.cudaExecutionContext_t*>phCtx._pvt_ptr, cydesc, device, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phCtx)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32477
 *         err = cyruntime.cudaGreenCtxCreate(<cyruntime.cudaExecutionContext_t*>phCtx._pvt_ptr, cydesc, device, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], phCtx)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 32477, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 32477, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32476
 *     with nogil:
 *         err = cyruntime.cudaGreenCtxCreate(<cyruntime.cudaExecutionContext_t*>phCtx._pvt_ptr, cydesc, device, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phCtx)
*/
  }

  /* "cuda/bindings/runtime.pyx":32478
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phCtx)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 32478, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_phCtx);
  __Pyx_GIVEREF((PyObject *)__pyx_v_phCtx);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_phCtx)) != (0)) __PYX_ERR(0, 32478, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32420
 *     return (_dict_cudaError_t[err], phDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGreenCtxCreate(desc, int device, unsigned int flags):
 *     """ Creates a green context with a specified set of resources.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGreenCtxCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pdesc);
  __Pyx_XDECREF((PyObject *)__pyx_v_phCtx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32480
 *     return (_dict_cudaError_t[err], phCtx)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxDestroy(ctx):
 *     """ Destroy a execution context.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_597cudaExecutionCtxDestroy(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_7runtime_596cudaExecutionCtxDestroy, "cudaExecutionCtxDestroy(ctx)\n\nDestroy a execution context.\n\nDestroys the specified execution context `ctx`. It is the\nresponsibility of the caller to ensure that no API call issues using\n`ctx` while :py:obj:`~.cudaExecutionCtxDestroy()` is executing or\nsubsequently.\n\nIf `ctx` is a green context, any resources provisioned for it (that\nwere initially available via the resource descriptor) are released as\nwell.\n\nThe API does not destroy streams created via\n:py:obj:`~.cudaExecutionCtxStreamCreate`. Users are expected to destroy\nthese streams explicitly using :py:obj:`~.cudaStreamDestroy` to avoid\nresource leaks. Once the execution context is destroyed, any subsequent\nAPI calls involving these streams will return\n:py:obj:`~.cudaErrorStreamDetached` with the exception of the following\nAPIs:\n\n- :py:obj:`~.cudaStreamDestroy`. Note this is only supported on CUDA\n  drivers 13.1 and above.\n\nAdditionally, the API will invalidate all active captures on these\nstreams.\n\nPassing in a `ctx` that was not explicitly created via CUDA Runtime\nAPIs is not allowed and will result in undefined behavior.\n\nParameters\n----------\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Execution context to destroy (required parameter, see note below)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`\n\nSee Also\n--------\n:py:obj:`~.cudaGreenCtxCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_597cudaExecutionCtxDestroy = {"cudaExecutionCtxDestroy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_597cudaExecutionCtxDestroy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_596cudaExecutionCtxDestroy};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_597cudaExecutionCtxDestroy(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_ctx = 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("cudaExecutionCtxDestroy (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_ctx_2,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, 32480, __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, 32480, __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, "cudaExecutionCtxDestroy", 0) < (0)) __PYX_ERR(0, 32480, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxDestroy", 1, 1, 1, i); __PYX_ERR(0, 32480, __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, 32480, __pyx_L3_error)
    }
    __pyx_v_ctx = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxDestroy", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 32480, __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.runtime.cudaExecutionCtxDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_596cudaExecutionCtxDestroy(__pyx_self, __pyx_v_ctx);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_596cudaExecutionCtxDestroy(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExecutionCtxDestroy", 0);

  /* "cuda/bindings/runtime.pyx":32525
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32526
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32525
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32527
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32528
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":32527
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32530
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32530, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32530, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32531
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxDestroy(cyctx)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32531, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":32532
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxDestroy(cyctx)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32533
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxDestroy(cyctx)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxDestroy(__pyx_v_cyctx); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32533, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":32532
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxDestroy(cyctx)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32534
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxDestroy(cyctx)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 32534, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32480
 *     return (_dict_cudaError_t[err], phCtx)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxDestroy(ctx):
 *     """ Destroy a execution context.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionCtxDestroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32536
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetDevResource(ctx, typename not None : cudaDevResourceType):
 *     """ Get context resources.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_599cudaExecutionCtxGetDevResource(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_7runtime_598cudaExecutionCtxGetDevResource, "cudaExecutionCtxGetDevResource(ctx, typename: cudaDevResourceType)\n\nGet context resources.\n\nGet the `typename` resources available to context represented by `ctx`.\n\nNote: The API is not supported on 32-bit platforms.\n\nParameters\n----------\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Execution context to get resource for (required parameter, see note\n    below)\ntypename : :py:obj:`~.cudaDevResourceType`\n    Type of resource to retrieve\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotSupported`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`\nresource : :py:obj:`~.cudaDevResource`\n    Output pointer to a cudaDevResource structure\n\nSee Also\n--------\n:py:obj:`~.cudaDeviceGetDevResource`, :py:obj:`~.cudaDevSmResourceSplit`, :py:obj:`~.cudaDevResourceGenerateDesc`, :py:obj:`~.cudaGreenCtxCreate`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_599cudaExecutionCtxGetDevResource = {"cudaExecutionCtxGetDevResource", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_599cudaExecutionCtxGetDevResource, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_598cudaExecutionCtxGetDevResource};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_599cudaExecutionCtxGetDevResource(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_ctx = 0;
  PyObject *__pyx_v_typename = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaExecutionCtxGetDevResource (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_ctx_2,&__pyx_mstate_global->__pyx_n_u_typename,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, 32536, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32536, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32536, __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, "cudaExecutionCtxGetDevResource", 0) < (0)) __PYX_ERR(0, 32536, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxGetDevResource", 1, 2, 2, i); __PYX_ERR(0, 32536, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 32536, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32536, __pyx_L3_error)
    }
    __pyx_v_ctx = values[0];
    __pyx_v_typename = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxGetDevResource", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 32536, __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.runtime.cudaExecutionCtxGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_typename) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "typename"); __PYX_ERR(0, 32537, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_598cudaExecutionCtxGetDevResource(__pyx_self, __pyx_v_ctx, __pyx_v_typename);

  /* 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_7runtime_598cudaExecutionCtxGetDevResource(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx, PyObject *__pyx_v_typename) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_resource = 0;
  enum cudaDevResourceType __pyx_v_cytypename;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  enum cudaDevResourceType __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExecutionCtxGetDevResource", 0);

  /* "cuda/bindings/runtime.pyx":32564
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32565
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32564
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32566
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32567
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":32566
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32569
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cudaDevResource resource = cudaDevResource()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32569, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32570
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32570, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":32571
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cudaDevResource resource = cudaDevResource()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32571, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_resource = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":32572
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetDevResource(cyctx, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_typename, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = ((enum cudaDevResourceType)__Pyx_PyLong_As_enum__cudaDevResourceType(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 32572, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_cytypename = __pyx_t_6;

  /* "cuda/bindings/runtime.pyx":32573
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxGetDevResource(cyctx, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32574
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetDevResource(cyctx, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetDevResource(__pyx_v_cyctx, ((cudaDevResource *)__pyx_v_resource->__pyx_base._pvt_ptr), __pyx_v_cytypename); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32574, __pyx_L5_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":32573
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxGetDevResource(cyctx, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32575
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetDevResource(cyctx, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32576
 *         err = cyruntime.cudaExecutionCtxGetDevResource(cyctx, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], resource)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 32576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 32576, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 32576, __pyx_L1_error);
    __pyx_t_8 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32575
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetDevResource(cyctx, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  }

  /* "cuda/bindings/runtime.pyx":32577
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 32577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 32577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 32577, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_resource);
  __Pyx_GIVEREF((PyObject *)__pyx_v_resource);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_v_resource)) != (0)) __PYX_ERR(0, 32577, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32536
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetDevResource(ctx, typename not None : cudaDevResourceType):
 *     """ Get context resources.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionCtxGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XDECREF((PyObject *)__pyx_v_resource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32579
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetDevice(ctx):
 *     """ Returns the device handle for the execution context.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_601cudaExecutionCtxGetDevice(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_7runtime_600cudaExecutionCtxGetDevice, "cudaExecutionCtxGetDevice(ctx)\n\nReturns the device handle for the execution context.\n\nReturns in `*device` the handle of the specified execution context's\ndevice. The execution context should not be NULL.\n\nParameters\n----------\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Execution context for which to obtain the device (required\n    parameter, see note below)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotPermitted`\ndevice : int\n    Returned device handle for the specified execution context\n\nSee Also\n--------\n:py:obj:`~.cudaGreenCtxCreate`, :py:obj:`~.cudaExecutionCtxDestroy`, :py:obj:`~.cuCtxGetDevice`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_601cudaExecutionCtxGetDevice = {"cudaExecutionCtxGetDevice", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_601cudaExecutionCtxGetDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_600cudaExecutionCtxGetDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_601cudaExecutionCtxGetDevice(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_ctx = 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("cudaExecutionCtxGetDevice (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_ctx_2,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, 32579, __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, 32579, __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, "cudaExecutionCtxGetDevice", 0) < (0)) __PYX_ERR(0, 32579, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxGetDevice", 1, 1, 1, i); __PYX_ERR(0, 32579, __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, 32579, __pyx_L3_error)
    }
    __pyx_v_ctx = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxGetDevice", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 32579, __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.runtime.cudaExecutionCtxGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_600cudaExecutionCtxGetDevice(__pyx_self, __pyx_v_ctx);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_600cudaExecutionCtxGetDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  int __pyx_v_device;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExecutionCtxGetDevice", 0);

  /* "cuda/bindings/runtime.pyx":32604
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32605
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32604
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32606
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32607
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":32606
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32609
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef int device = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32609, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32609, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32610
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     cdef int device = 0
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32610, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":32611
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef int device = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetDevice(&device, cyctx)
*/
  __pyx_v_device = 0;

  /* "cuda/bindings/runtime.pyx":32612
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxGetDevice(&device, cyctx)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32613
 *     cdef int device = 0
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetDevice(&device, cyctx)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetDevice((&__pyx_v_device), __pyx_v_cyctx); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32613, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":32612
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxGetDevice(&device, cyctx)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32614
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetDevice(&device, cyctx)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32615
 *         err = cyruntime.cudaExecutionCtxGetDevice(&device, cyctx)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], device)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 32615, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 32615, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32614
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetDevice(&device, cyctx)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  }

  /* "cuda/bindings/runtime.pyx":32616
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_v_device); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 32616, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 32616, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32579
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetDevice(ctx):
 *     """ Returns the device handle for the execution context.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionCtxGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32618
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetId(ctx):
 *     """ Returns the unique Id associated with the execution context supplied.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_603cudaExecutionCtxGetId(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_7runtime_602cudaExecutionCtxGetId, "cudaExecutionCtxGetId(ctx)\n\nReturns the unique Id associated with the execution context supplied.\n\nReturns in `ctxId` the unique Id which is associated with a given\ncontext. The Id is unique for the life of the program for this instance\nof CUDA. The execution context should not be NULL.\n\nParameters\n----------\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Context for which to obtain the Id (required parameter, see note\n    below)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotPermitted`\nctxId : unsigned long long\n    Pointer to store the Id of the context\n\nSee Also\n--------\n:py:obj:`~.cudaGreenCtxCreate`, :py:obj:`~.cudaExecutionCtxDestroy`, :py:obj:`~.cudaExecutionCtxGetDevice`, :py:obj:`~.cuCtxGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_603cudaExecutionCtxGetId = {"cudaExecutionCtxGetId", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_603cudaExecutionCtxGetId, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_602cudaExecutionCtxGetId};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_603cudaExecutionCtxGetId(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_ctx = 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("cudaExecutionCtxGetId (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_ctx_2,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, 32618, __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, 32618, __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, "cudaExecutionCtxGetId", 0) < (0)) __PYX_ERR(0, 32618, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxGetId", 1, 1, 1, i); __PYX_ERR(0, 32618, __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, 32618, __pyx_L3_error)
    }
    __pyx_v_ctx = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxGetId", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 32618, __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.runtime.cudaExecutionCtxGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_602cudaExecutionCtxGetId(__pyx_self, __pyx_v_ctx);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_602cudaExecutionCtxGetId(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  unsigned PY_LONG_LONG __pyx_v_ctxId;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExecutionCtxGetId", 0);

  /* "cuda/bindings/runtime.pyx":32644
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32645
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32644
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32646
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32647
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32647, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":32646
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32649
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef unsigned long long ctxId = 0
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32649, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32650
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     cdef unsigned long long ctxId = 0
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32650, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":32651
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef unsigned long long ctxId = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetId(cyctx, &ctxId)
*/
  __pyx_v_ctxId = 0;

  /* "cuda/bindings/runtime.pyx":32652
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef unsigned long long ctxId = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxGetId(cyctx, &ctxId)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32653
 *     cdef unsigned long long ctxId = 0
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetId(cyctx, &ctxId)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetId(__pyx_v_cyctx, (&__pyx_v_ctxId)); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32653, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":32652
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef unsigned long long ctxId = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxGetId(cyctx, &ctxId)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32654
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetId(cyctx, &ctxId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ctxId)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32655
 *         err = cyruntime.cudaExecutionCtxGetId(cyctx, &ctxId)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], ctxId)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 32655, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 32655, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32654
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxGetId(cyctx, &ctxId)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ctxId)
*/
  }

  /* "cuda/bindings/runtime.pyx":32656
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ctxId)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_ctxId); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 32656, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(0, 32656, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32618
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetId(ctx):
 *     """ Returns the unique Id associated with the execution context supplied.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionCtxGetId", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32658
 *     return (_dict_cudaError_t[err], ctxId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxStreamCreate(ctx, unsigned int flags, int priority):
 *     """ Creates a stream and initializes it for the given execution context.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_605cudaExecutionCtxStreamCreate(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_7runtime_604cudaExecutionCtxStreamCreate, "cudaExecutionCtxStreamCreate(ctx, unsigned int flags, int priority)\n\nCreates a stream and initializes it for the given execution context.\n\nThe API creates a CUDA stream with the specified `flags` and\n`priority`, initializing it with resources as defined at the time of\ncreating the specified `ctx`. Additionally, the API also enables work\nsubmitted to to the stream to be tracked under `ctx`.\n\nThe supported values for `flags` are:\n\n- :py:obj:`~.cudaStreamDefault`: Default stream creation flag. This\n  would be :py:obj:`~.cudaStreamNonBlocking` for streams created on a\n  green context.\n\n- :py:obj:`~.cudaStreamNonBlocking`: Specifies that work running in the\n  created stream may run concurrently with work in stream 0 (the NULL\n  stream), and that the created stream should perform no implicit\n  synchronization with stream 0\n\nSpecifying `priority` affects the scheduling priority of work in the\nstream. Priorities provide a hint to preferentially run work with\nhigher priority when possible, but do not preempt already-running work\nor provide any other functional guarantee on execution order.\n`priority` follows a convention where lower numbers represent higher\npriorities. '0' represents default priority. The range of meaningful\nnumerical priorities can be queried using\n:py:obj:`~.cudaDeviceGetStreamPriorityRange`. If the specified priority\nis outside the numerical range returned by\n:py:obj:`~.cudaDeviceGetStreamPriorityRange`, it will automatically be\nclamped to the lowest or the highest number in the range.\n\nParameters\n----------\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Execution context to initialize the stream with (required\n    parameter, see note below)\nflags : unsigned int\n    Flags for stream creation\npriority : int\n    Stream priority\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorOutOfMemory`, :py:obj:`~.cudaErrorCudartUn""loading`, :py:obj:`~.cudaErrorInitializationError`\nphStream : :py:obj:`~.cudaStream_t`\n    Returned stream handle\n\nSee Also\n--------\n:py:obj:`~.cudaStreamDestroy`, :py:obj:`~.cudaGreenCtxCreate`, :py:obj:`~.cudaDeviceGetStreamPriorityRange`, :py:obj:`~.cudaStreamGetFlags`, :py:obj:`~.cudaStreamGetPriority`, :py:obj:`~.cudaStreamGetDevice`, :py:obj:`~.cudaStreamGetDevResource`, :py:obj:`~.cudaLaunchKernel`, :py:obj:`~.cudaEventRecord`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cudaStreamQuery`, :py:obj:`~.cudaStreamSynchronize`, :py:obj:`~.cudaStreamAddCallback`\n\nNotes\n-----\nIn the current implementation, only compute kernels launched in priority streams are affected by the stream's priority. Stream priorities have no effect on host-to-device and device-to-host memory operations.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_605cudaExecutionCtxStreamCreate = {"cudaExecutionCtxStreamCreate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_605cudaExecutionCtxStreamCreate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_604cudaExecutionCtxStreamCreate};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_605cudaExecutionCtxStreamCreate(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_ctx = 0;
  unsigned int __pyx_v_flags;
  int __pyx_v_priority;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaExecutionCtxStreamCreate (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_ctx_2,&__pyx_mstate_global->__pyx_n_u_flags_2,&__pyx_mstate_global->__pyx_n_u_priority_2,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, 32658, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 32658, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32658, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32658, __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, "cudaExecutionCtxStreamCreate", 0) < (0)) __PYX_ERR(0, 32658, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxStreamCreate", 1, 3, 3, i); __PYX_ERR(0, 32658, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 32658, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32658, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 32658, __pyx_L3_error)
    }
    __pyx_v_ctx = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32659, __pyx_L3_error)
    __pyx_v_priority = __Pyx_PyLong_As_int(values[2]); if (unlikely((__pyx_v_priority == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32659, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxStreamCreate", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 32658, __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.runtime.cudaExecutionCtxStreamCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_604cudaExecutionCtxStreamCreate(__pyx_self, __pyx_v_ctx, __pyx_v_flags, __pyx_v_priority);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_604cudaExecutionCtxStreamCreate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx, unsigned int __pyx_v_flags, int __pyx_v_priority) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *__pyx_v_phStream = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExecutionCtxStreamCreate", 0);

  /* "cuda/bindings/runtime.pyx":32716
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32717
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32716
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32718
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32719
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":32718
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32721
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cudaStream_t phStream = cudaStream_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32721, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32722
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     cdef cudaStream_t phStream = cudaStream_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32722, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":32723
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cudaStream_t phStream = cudaStream_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxStreamCreate(<cyruntime.cudaStream_t*>phStream._pvt_ptr, cyctx, flags, priority)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32723, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_phStream = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":32724
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cudaStream_t phStream = cudaStream_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxStreamCreate(<cyruntime.cudaStream_t*>phStream._pvt_ptr, cyctx, flags, priority)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32725
 *     cdef cudaStream_t phStream = cudaStream_t()
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxStreamCreate(<cyruntime.cudaStream_t*>phStream._pvt_ptr, cyctx, flags, priority)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxStreamCreate(((cudaStream_t *)__pyx_v_phStream->__pyx_base._pvt_ptr), __pyx_v_cyctx, __pyx_v_flags, __pyx_v_priority); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32725, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":32724
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     cdef cudaStream_t phStream = cudaStream_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxStreamCreate(<cyruntime.cudaStream_t*>phStream._pvt_ptr, cyctx, flags, priority)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32726
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxStreamCreate(<cyruntime.cudaStream_t*>phStream._pvt_ptr, cyctx, flags, priority)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phStream)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32727
 *         err = cyruntime.cudaExecutionCtxStreamCreate(<cyruntime.cudaStream_t*>phStream._pvt_ptr, cyctx, flags, priority)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], phStream)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32727, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32727, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32727, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32727, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 32727, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 32727, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32726
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxStreamCreate(<cyruntime.cudaStream_t*>phStream._pvt_ptr, cyctx, flags, priority)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phStream)
*/
  }

  /* "cuda/bindings/runtime.pyx":32728
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phStream)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 32728, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_phStream);
  __Pyx_GIVEREF((PyObject *)__pyx_v_phStream);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_phStream)) != (0)) __PYX_ERR(0, 32728, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32658
 *     return (_dict_cudaError_t[err], ctxId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxStreamCreate(ctx, unsigned int flags, int priority):
 *     """ Creates a stream and initializes it for the given execution context.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionCtxStreamCreate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XDECREF((PyObject *)__pyx_v_phStream);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32730
 *     return (_dict_cudaError_t[err], phStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxSynchronize(ctx):
 *     """ Block for the specified execution context's tasks to complete.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_607cudaExecutionCtxSynchronize(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_7runtime_606cudaExecutionCtxSynchronize, "cudaExecutionCtxSynchronize(ctx)\n\nBlock for the specified execution context's tasks to complete.\n\nBlocks until the specified execution context has completed all\npreceding requested tasks. If the specified execution context is the\ndevice (primary) context obtained via\n:py:obj:`~.cudaDeviceGetExecutionCtx`, green contexts that have been\ncreated on the device will also be synchronized.\n\nThe API returns an error if one of the preceding tasks failed.\n\nParameters\n----------\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Execution context to synchronize (required parameter, see note\n    below)\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorDeviceUninitialized`, :py:obj:`~.cudaErrorInvalidValue`\n\nSee Also\n--------\n:py:obj:`~.cudaGreenCtxCreate`, :py:obj:`~.cudaExecutionCtxDestroy`, :py:obj:`~.cudaDeviceSynchronize`, :py:obj:`~.cuCtxSynchronize_v2`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_607cudaExecutionCtxSynchronize = {"cudaExecutionCtxSynchronize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_607cudaExecutionCtxSynchronize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_606cudaExecutionCtxSynchronize};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_607cudaExecutionCtxSynchronize(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_ctx = 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("cudaExecutionCtxSynchronize (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_ctx_2,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, 32730, __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, 32730, __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, "cudaExecutionCtxSynchronize", 0) < (0)) __PYX_ERR(0, 32730, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxSynchronize", 1, 1, 1, i); __PYX_ERR(0, 32730, __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, 32730, __pyx_L3_error)
    }
    __pyx_v_ctx = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxSynchronize", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 32730, __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.runtime.cudaExecutionCtxSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_606cudaExecutionCtxSynchronize(__pyx_self, __pyx_v_ctx);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_606cudaExecutionCtxSynchronize(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx) {
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExecutionCtxSynchronize", 0);

  /* "cuda/bindings/runtime.pyx":32758
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32759
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32758
 *     """
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32760
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32761
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pctx = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":32760
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32763
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32763, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32764
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxSynchronize(cyctx)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32764, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":32765
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxSynchronize(cyctx)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32766
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxSynchronize(cyctx)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxSynchronize(__pyx_v_cyctx); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32766, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":32765
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxSynchronize(cyctx)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32767
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxSynchronize(cyctx)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 32767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 32767, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32730
 *     return (_dict_cudaError_t[err], phStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxSynchronize(ctx):
 *     """ Block for the specified execution context's tasks to complete.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionCtxSynchronize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32769
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetDevResource(hStream, typename not None : cudaDevResourceType):
 *     """ Get stream resources.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_609cudaStreamGetDevResource(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_7runtime_608cudaStreamGetDevResource, "cudaStreamGetDevResource(hStream, typename: cudaDevResourceType)\n\nGet stream resources.\n\nGet the `typename` resources available to the `hStream` and store them\nin `resource`.\n\nNote: The API will return :py:obj:`~.cudaErrorInvalidResourceType` is\n`typename` is `cudaDevResourceTypeWorkqueueConfig` or\n`cudaDevResourceTypeWorkqueue`.\n\nParameters\n----------\nhStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t`\n    Stream to get resource for\ntypename : :py:obj:`~.cudaDevResourceType`\n    Type of resource to retrieve\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorDeviceUninitialized`, :py:obj:`~.cudaErrorInvalidResourceType`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidHandle`, :py:obj:`~.cudaErrorNotPermitted`, :py:obj:`~.cudaErrorCallRequiresNewerDriver`,\nresource : :py:obj:`~.cudaDevResource`\n    Output pointer to a cudaDevResource structure\n\nSee Also\n--------\n:py:obj:`~.cudaGreenCtxCreate`, :py:obj:`~.cudaExecutionCtxStreamCreate`, :py:obj:`~.cudaStreamCreate`, :py:obj:`~.cudaDevSmResourceSplit`, :py:obj:`~.cudaDevResourceGenerateDesc`, :py:obj:`~.cuStreamGetDevResource`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_609cudaStreamGetDevResource = {"cudaStreamGetDevResource", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_609cudaStreamGetDevResource, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_608cudaStreamGetDevResource};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_609cudaStreamGetDevResource(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_hStream = 0;
  PyObject *__pyx_v_typename = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaStreamGetDevResource (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_hStream,&__pyx_mstate_global->__pyx_n_u_typename,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, 32769, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32769, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32769, __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, "cudaStreamGetDevResource", 0) < (0)) __PYX_ERR(0, 32769, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStreamGetDevResource", 1, 2, 2, i); __PYX_ERR(0, 32769, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 32769, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32769, __pyx_L3_error)
    }
    __pyx_v_hStream = values[0];
    __pyx_v_typename = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStreamGetDevResource", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 32769, __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.runtime.cudaStreamGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_typename) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "typename"); __PYX_ERR(0, 32770, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_608cudaStreamGetDevResource(__pyx_self, __pyx_v_hStream, __pyx_v_typename);

  /* 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_7runtime_608cudaStreamGetDevResource(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_hStream, PyObject *__pyx_v_typename) {
  cudaStream_t __pyx_v_cyhStream;
  PyObject *__pyx_v_phStream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *__pyx_v_resource = 0;
  enum cudaDevResourceType __pyx_v_cytypename;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  enum cudaDevResourceType __pyx_t_7;
  cudaError_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaStreamGetDevResource", 0);

  /* "cuda/bindings/runtime.pyx":32799
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_hStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32800
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:
 *         phStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_phStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32799
 *     """
 *     cdef cyruntime.cudaStream_t cyhStream
 *     if hStream is None:             # <<<<<<<<<<<<<<
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32801
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_hStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32802
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):
 *         phStream = int(hStream)             # <<<<<<<<<<<<<<
 *     else:
 *         phStream = int(cudaStream_t(hStream))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_hStream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32802, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_phStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":32801
 *     if hStream is None:
 *         phStream = 0
 *     elif isinstance(hStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         phStream = int(hStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32804
 *         phStream = int(hStream)
 *     else:
 *         phStream = int(cudaStream_t(hStream))             # <<<<<<<<<<<<<<
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cudaDevResource resource = cudaDevResource()
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_hStream};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32804, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32804, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_phStream = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32805
 *     else:
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream             # <<<<<<<<<<<<<<
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_phStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32805, __pyx_L1_error)
  __pyx_v_cyhStream = ((cudaStream_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":32806
 *         phStream = int(cudaStream_t(hStream))
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cudaDevResource resource = cudaDevResource()             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource, __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;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32806, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_resource = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32807
 *     cyhStream = <cyruntime.cudaStream_t><void_ptr>phStream
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaStreamGetDevResource(cyhStream, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_typename, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = ((enum cudaDevResourceType)__Pyx_PyLong_As_enum__cudaDevResourceType(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 32807, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_cytypename = __pyx_t_7;

  /* "cuda/bindings/runtime.pyx":32808
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetDevResource(cyhStream, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32809
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:
 *         err = cyruntime.cudaStreamGetDevResource(cyhStream, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetDevResource(__pyx_v_cyhStream, ((cudaDevResource *)__pyx_v_resource->__pyx_base._pvt_ptr), __pyx_v_cytypename); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32809, __pyx_L7_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":32808
 *     cdef cudaDevResource resource = cudaDevResource()
 *     cdef cyruntime.cudaDevResourceType cytypename = typename.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaStreamGetDevResource(cyhStream, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32810
 *     with nogil:
 *         err = cyruntime.cudaStreamGetDevResource(cyhStream, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32811
 *         err = cyruntime.cudaStreamGetDevResource(cyhStream, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], resource)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 32811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 32811, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 32811, __pyx_L1_error);
    __pyx_t_9 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32810
 *     with nogil:
 *         err = cyruntime.cudaStreamGetDevResource(cyhStream, <cyruntime.cudaDevResource*>resource._pvt_ptr, cytypename)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  }

  /* "cuda/bindings/runtime.pyx":32812
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 32812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 32812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 32812, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_resource);
  __Pyx_GIVEREF((PyObject *)__pyx_v_resource);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_v_resource)) != (0)) __PYX_ERR(0, 32812, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32769
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetDevResource(hStream, typename not None : cudaDevResourceType):
 *     """ Get stream resources.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaStreamGetDevResource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_phStream);
  __Pyx_XDECREF((PyObject *)__pyx_v_resource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32814
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxRecordEvent(ctx, event):
 *     """ Records an event for the specified execution context.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_611cudaExecutionCtxRecordEvent(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_7runtime_610cudaExecutionCtxRecordEvent, "cudaExecutionCtxRecordEvent(ctx, event)\n\nRecords an event for the specified execution context.\n\nCaptures in `event` all the activities of the execution context `ctx`\nat the time of this call. `event` and `ctx` must be from the same CUDA\ndevice, otherwise :py:obj:`~.cudaErrorInvalidHandle` will be returned.\nCalls such as :py:obj:`~.cudaEventQuery()` or\n:py:obj:`~.cudaExecutionCtxWaitEvent()` will then examine or wait for\ncompletion of the work that was captured. Uses of `ctx` after this call\ndo not modify `event`. If the execution context passed to `ctx` is the\ndevice (primary) context obtained via\n:py:obj:`~.cudaDeviceGetExecutionCtx()`, `event` will capture all the\nactivities of the green contexts created on the device as well.\n\nParameters\n----------\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Execution context to record event for (required parameter, see note\n    below)\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to record\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidHandle`, :py:obj:`~.cudaErrorStreamCaptureUnsupported`\n\nSee Also\n--------\n:py:obj:`~.cudaEventRecord`, :py:obj:`~.cudaExecutionCtxWaitEvent`, :py:obj:`~.cuCtxRecordEvent`, :py:obj:`~.cuGreenCtxRecordEvent`\n\nNotes\n-----\nThe API will return :py:obj:`~.cudaErrorStreamCaptureUnsupported` if the specified execution context `ctx` has a stream in the capture mode. In such a case, the call will invalidate all the conflicting captures.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_611cudaExecutionCtxRecordEvent = {"cudaExecutionCtxRecordEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_611cudaExecutionCtxRecordEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_610cudaExecutionCtxRecordEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_611cudaExecutionCtxRecordEvent(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_ctx = 0;
  PyObject *__pyx_v_event = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaExecutionCtxRecordEvent (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_ctx_2,&__pyx_mstate_global->__pyx_n_u_event_2,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, 32814, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32814, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32814, __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, "cudaExecutionCtxRecordEvent", 0) < (0)) __PYX_ERR(0, 32814, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxRecordEvent", 1, 2, 2, i); __PYX_ERR(0, 32814, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 32814, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32814, __pyx_L3_error)
    }
    __pyx_v_ctx = values[0];
    __pyx_v_event = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxRecordEvent", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 32814, __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.runtime.cudaExecutionCtxRecordEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_610cudaExecutionCtxRecordEvent(__pyx_self, __pyx_v_ctx, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_610cudaExecutionCtxRecordEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExecutionCtxRecordEvent", 0);

  /* "cuda/bindings/runtime.pyx":32851
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32852
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32851
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32853
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32854
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32854, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":32853
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32856
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaExecutionContext_t cyctx
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32856, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32856, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32857
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32857, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":32859
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32860
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32859
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":32861
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32862
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32862, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pctx = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":32861
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":32864
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32864, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32864, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":32865
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxRecordEvent(cyctx, cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32865, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":32866
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxRecordEvent(cyctx, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32867
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxRecordEvent(cyctx, cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxRecordEvent(__pyx_v_cyctx, __pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32867, __pyx_L8_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":32866
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxRecordEvent(cyctx, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32868
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxRecordEvent(cyctx, cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 32868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 32868, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32814
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxRecordEvent(ctx, event):
 *     """ Records an event for the specified execution context.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionCtxRecordEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32870
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxWaitEvent(ctx, event):
 *     """ Make an execution context wait on an event.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_613cudaExecutionCtxWaitEvent(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_7runtime_612cudaExecutionCtxWaitEvent, "cudaExecutionCtxWaitEvent(ctx, event)\n\nMake an execution context wait on an event.\n\nMakes all future work submitted to execution context `ctx` wait for all\nwork captured in `event`. The synchronization will be performed on the\ndevice and will not block the calling CPU thread. See\n:py:obj:`~.cudaExecutionCtxRecordEvent()` for details on what is\ncaptured by an event. If the execution context passed to `ctx` is the\ndevice (primary) context obtained via\n:py:obj:`~.cudaDeviceGetExecutionCtx()`, all green contexts created on\nthe device will wait for `event` as well.\n\nParameters\n----------\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Execution context to wait for (required parameter, see note below)\nevent : :py:obj:`~.CUevent` or :py:obj:`~.cudaEvent_t`\n    Event to wait on\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidHandle`, :py:obj:`~.cudaErrorStreamCaptureUnsupported`\n\nSee Also\n--------\n:py:obj:`~.cudaExecutionCtxRecordEvent`, :py:obj:`~.cudaStreamWaitEvent`, :py:obj:`~.cuCtxWaitEvent`, :py:obj:`~.cuGreenCtxWaitEvent`\n\nNotes\n-----\n`event` may be from a different execution context or device than `ctx`.\n\nThe API will return :py:obj:`~.cudaErrorStreamCaptureUnsupported` and invalidate the capture if the specified event `event` is part of an ongoing capture sequence or if the specified execution context `ctx` has a stream in the capture mode.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_613cudaExecutionCtxWaitEvent = {"cudaExecutionCtxWaitEvent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_613cudaExecutionCtxWaitEvent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_612cudaExecutionCtxWaitEvent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_613cudaExecutionCtxWaitEvent(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_ctx = 0;
  PyObject *__pyx_v_event = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaExecutionCtxWaitEvent (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_ctx_2,&__pyx_mstate_global->__pyx_n_u_event_2,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, 32870, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32870, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 32870, __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, "cudaExecutionCtxWaitEvent", 0) < (0)) __PYX_ERR(0, 32870, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxWaitEvent", 1, 2, 2, i); __PYX_ERR(0, 32870, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 32870, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 32870, __pyx_L3_error)
    }
    __pyx_v_ctx = values[0];
    __pyx_v_event = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionCtxWaitEvent", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 32870, __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.runtime.cudaExecutionCtxWaitEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_612cudaExecutionCtxWaitEvent(__pyx_self, __pyx_v_ctx, __pyx_v_event);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_612cudaExecutionCtxWaitEvent(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ctx, PyObject *__pyx_v_event) {
  cudaEvent_t __pyx_v_cyevent;
  PyObject *__pyx_v_pevent = NULL;
  cudaExecutionContext_t __pyx_v_cyctx;
  PyObject *__pyx_v_pctx = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  cudaError_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaExecutionCtxWaitEvent", 0);

  /* "cuda/bindings/runtime.pyx":32906
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
  __pyx_t_1 = (__pyx_v_event == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32907
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:
 *         pevent = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pevent = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32906
 *     """
 *     cdef cyruntime.cudaEvent_t cyevent
 *     if event is None:             # <<<<<<<<<<<<<<
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32908
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_event, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32909
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):
 *         pevent = int(event)             # <<<<<<<<<<<<<<
 *     else:
 *         pevent = int(cudaEvent_t(event))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_event); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32909, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pevent = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":32908
 *     if event is None:
 *         pevent = 0
 *     elif isinstance(event, (cudaEvent_t,driver.CUevent)):             # <<<<<<<<<<<<<<
 *         pevent = int(event)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":32911
 *         pevent = int(event)
 *     else:
 *         pevent = int(cudaEvent_t(event))             # <<<<<<<<<<<<<<
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaExecutionContext_t cyctx
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_event};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32911, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_4 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pevent = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":32912
 *     else:
 *         pevent = int(cudaEvent_t(event))
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pevent); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32912, __pyx_L1_error)
  __pyx_v_cyevent = ((cudaEvent_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":32914
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
  __pyx_t_1 = (__pyx_v_ctx == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32915
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:
 *         pctx = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pctx = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":32914
 *     cyevent = <cyruntime.cudaEvent_t><void_ptr>pevent
 *     cdef cyruntime.cudaExecutionContext_t cyctx
 *     if ctx is None:             # <<<<<<<<<<<<<<
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":32916
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_ctx, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":32917
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):
 *         pctx = int(ctx)             # <<<<<<<<<<<<<<
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
*/
    __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_v_ctx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32917, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_pctx = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":32916
 *     if ctx is None:
 *         pctx = 0
 *     elif isinstance(ctx, (cudaExecutionContext_t,)):             # <<<<<<<<<<<<<<
 *         pctx = int(ctx)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":32919
 *         pctx = int(ctx)
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))             # <<<<<<<<<<<<<<
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ctx};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __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;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32919, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32919, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_pctx = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":32920
 *     else:
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxWaitEvent(cyctx, cyevent)
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pctx); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 32920, __pyx_L1_error)
  __pyx_v_cyctx = ((cudaExecutionContext_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":32921
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxWaitEvent(cyctx, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32922
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxWaitEvent(cyctx, cyevent)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_7 = __pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxWaitEvent(__pyx_v_cyctx, __pyx_v_cyevent); if (unlikely(__pyx_t_7 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32922, __pyx_L8_error)
        __pyx_v_err = __pyx_t_7;
      }

      /* "cuda/bindings/runtime.pyx":32921
 *         pctx = int(cudaExecutionContext_t(ctx))
 *     cyctx = <cyruntime.cudaExecutionContext_t><void_ptr>pctx
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaExecutionCtxWaitEvent(cyctx, cyevent)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L9;
        }
        __pyx_L8_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L9:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32923
 *     with nogil:
 *         err = cyruntime.cudaExecutionCtxWaitEvent(cyctx, cyevent)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 32923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 32923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 32923, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32870
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxWaitEvent(ctx, event):
 *     """ Make an execution context wait on an event.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaExecutionCtxWaitEvent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pevent);
  __Pyx_XDECREF(__pyx_v_pctx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32925
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetExecutionCtx(int device):
 *     """ Returns the execution context for a device.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_615cudaDeviceGetExecutionCtx(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_7runtime_614cudaDeviceGetExecutionCtx, "cudaDeviceGetExecutionCtx(int device)\n\nReturns the execution context for a device.\n\nReturns in `ctx` the execution context for the specified device. This\nis the device's primary context. The returned context can then be\npassed to APIs that take in a cudaExecutionContext_t enabling explicit\ncontext-based programming without relying on thread-local state.\n\nPassing the returned execution context to\n:py:obj:`~.cudaExecutionCtxDestroy()` is not allowed and will result in\nundefined behavior.\n\nParameters\n----------\ndevice : int\n    Device to get the execution context for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidDevice`\nctx : :py:obj:`~.cudaExecutionContext_t`\n    Returns the device execution context\n\nSee Also\n--------\n:py:obj:`~.cudaExecutionCtxGetDevice`, :py:obj:`~.cudaExecutionCtxGetId`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_615cudaDeviceGetExecutionCtx = {"cudaDeviceGetExecutionCtx", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_615cudaDeviceGetExecutionCtx, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_614cudaDeviceGetExecutionCtx};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_615cudaDeviceGetExecutionCtx(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
) {
  int __pyx_v_device;
  #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("cudaDeviceGetExecutionCtx (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_device_2,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, 32925, __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, 32925, __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, "cudaDeviceGetExecutionCtx", 0) < (0)) __PYX_ERR(0, 32925, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDeviceGetExecutionCtx", 1, 1, 1, i); __PYX_ERR(0, 32925, __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, 32925, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 32926, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDeviceGetExecutionCtx", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 32925, __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.runtime.cudaDeviceGetExecutionCtx", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_614cudaDeviceGetExecutionCtx(__pyx_self, __pyx_v_device);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_614cudaDeviceGetExecutionCtx(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_ctx = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  cudaError_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaDeviceGetExecutionCtx", 0);

  /* "cuda/bindings/runtime.pyx":32954
 *     :py:obj:`~.cudaExecutionCtxGetDevice`, :py:obj:`~.cudaExecutionCtxGetId`
 *     """
 *     cdef cudaExecutionContext_t ctx = cudaExecutionContext_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetExecutionCtx(<cyruntime.cudaExecutionContext_t*>ctx._pvt_ptr, device)
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32954, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":32955
 *     """
 *     cdef cudaExecutionContext_t ctx = cudaExecutionContext_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetExecutionCtx(<cyruntime.cudaExecutionContext_t*>ctx._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32956
 *     cdef cudaExecutionContext_t ctx = cudaExecutionContext_t()
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetExecutionCtx(<cyruntime.cudaExecutionContext_t*>ctx._pvt_ptr, device)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_4 = __pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetExecutionCtx(((cudaExecutionContext_t *)__pyx_v_ctx->_pvt_ptr), __pyx_v_device); if (unlikely(__pyx_t_4 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32956, __pyx_L4_error)
        __pyx_v_err = __pyx_t_4;
      }

      /* "cuda/bindings/runtime.pyx":32955
 *     """
 *     cdef cudaExecutionContext_t ctx = cudaExecutionContext_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaDeviceGetExecutionCtx(<cyruntime.cudaExecutionContext_t*>ctx._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32957
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetExecutionCtx(<cyruntime.cudaExecutionContext_t*>ctx._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ctx)
*/
  __pyx_t_5 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_5) {

    /* "cuda/bindings/runtime.pyx":32958
 *         err = cyruntime.cudaDeviceGetExecutionCtx(<cyruntime.cudaExecutionContext_t*>ctx._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], ctx)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32958, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32958, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32958, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32958, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 32958, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 32958, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32957
 *     with nogil:
 *         err = cyruntime.cudaDeviceGetExecutionCtx(<cyruntime.cudaExecutionContext_t*>ctx._pvt_ptr, device)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ctx)
*/
  }

  /* "cuda/bindings/runtime.pyx":32959
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ctx)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 32959, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_ctx);
  __Pyx_GIVEREF((PyObject *)__pyx_v_ctx);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_v_ctx)) != (0)) __PYX_ERR(0, 32959, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32925
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetExecutionCtx(int device):
 *     """ Returns the execution context for a device.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaDeviceGetExecutionCtx", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_ctx);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32961
 *     return (_dict_cudaError_t[err], ctx)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]):
 *     """"""
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_617cudaGetExportTable(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_7runtime_616cudaGetExportTable, "cudaGetExportTable(cudaUUID_t pExportTableId: Optional[cudaUUID_t])");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_617cudaGetExportTable = {"cudaGetExportTable", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_617cudaGetExportTable, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_616cudaGetExportTable};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_617cudaGetExportTable(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *__pyx_v_pExportTableId = 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("cudaGetExportTable (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_pExportTableId,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, 32961, __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, 32961, __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, "cudaGetExportTable", 0) < (0)) __PYX_ERR(0, 32961, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetExportTable", 1, 1, 1, i); __PYX_ERR(0, 32961, __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, 32961, __pyx_L3_error)
    }
    __pyx_v_pExportTableId = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetExportTable", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 32961, __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.runtime.cudaGetExportTable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pExportTableId), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t, 1, "pExportTableId", 0))) __PYX_ERR(0, 32962, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_616cudaGetExportTable(__pyx_self, __pyx_v_pExportTableId);

  /* 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_7runtime_616cudaGetExportTable(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *__pyx_v_pExportTableId) {
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_v_ppExportTable;
  cudaUUID_t *__pyx_v_cypExportTableId_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct CUuuid_st *__pyx_t_1;
  int __pyx_t_2;
  cudaError_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetExportTable", 0);

  /* "cuda/bindings/runtime.pyx":32964
 * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]):
 *     """"""
 *     cdef void_ptr ppExportTable = 0             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaUUID_t* cypExportTableId_ptr = pExportTableId._pvt_ptr if pExportTableId is not None else NULL
 *     with nogil:
*/
  __pyx_v_ppExportTable = 0;

  /* "cuda/bindings/runtime.pyx":32965
 *     """"""
 *     cdef void_ptr ppExportTable = 0
 *     cdef cyruntime.cudaUUID_t* cypExportTableId_ptr = pExportTableId._pvt_ptr if pExportTableId is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetExportTable(<const void**>&ppExportTable, cypExportTableId_ptr)
*/
  __pyx_t_2 = (((PyObject *)__pyx_v_pExportTableId) != Py_None);
  if (__pyx_t_2) {
    __pyx_t_1 = __pyx_v_pExportTableId->__pyx_base._pvt_ptr;
  } else {
    __pyx_t_1 = NULL;
  }
  __pyx_v_cypExportTableId_ptr = __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":32966
 *     cdef void_ptr ppExportTable = 0
 *     cdef cyruntime.cudaUUID_t* cypExportTableId_ptr = pExportTableId._pvt_ptr if pExportTableId is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetExportTable(<const void**>&ppExportTable, cypExportTableId_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":32967
 *     cdef cyruntime.cudaUUID_t* cypExportTableId_ptr = pExportTableId._pvt_ptr if pExportTableId is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaGetExportTable(<const void**>&ppExportTable, cypExportTableId_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_3 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetExportTable(((void const **)(&__pyx_v_ppExportTable)), __pyx_v_cypExportTableId_ptr); if (unlikely(__pyx_t_3 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 32967, __pyx_L4_error)
        __pyx_v_err = __pyx_t_3;
      }

      /* "cuda/bindings/runtime.pyx":32966
 *     cdef void_ptr ppExportTable = 0
 *     cdef cyruntime.cudaUUID_t* cypExportTableId_ptr = pExportTableId._pvt_ptr if pExportTableId is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetExportTable(<const void**>&ppExportTable, cypExportTableId_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":32968
 *     with nogil:
 *         err = cyruntime.cudaGetExportTable(<const void**>&ppExportTable, cypExportTableId_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ppExportTable)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":32969
 *         err = cyruntime.cudaGetExportTable(<const void**>&ppExportTable, cypExportTableId_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], ppExportTable)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 32969, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None) != (0)) __PYX_ERR(0, 32969, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":32968
 *     with nogil:
 *         err = cyruntime.cudaGetExportTable(<const void**>&ppExportTable, cypExportTableId_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ppExportTable)
*/
  }

  /* "cuda/bindings/runtime.pyx":32970
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], ppExportTable)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(__pyx_v_ppExportTable); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 32970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 32970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 32970, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 32970, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32961
 *     return (_dict_cudaError_t[err], ctx)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]):
 *     """"""
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetExportTable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":32972
 *     return (_dict_cudaError_t[err], ppExportTable)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetKernel(entryFuncAddr):
 *     """ Get pointer to device kernel that matches entry function `entryFuncAddr`.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_619cudaGetKernel(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_7runtime_618cudaGetKernel, "cudaGetKernel(entryFuncAddr)\n\nGet pointer to device kernel that matches entry function `entryFuncAddr`.\n\nReturns in `kernelPtr` the device kernel corresponding to the entry\nfunction `entryFuncAddr`.\n\nNote that it is possible that there are multiple symbols belonging to\ndifferent translation units with the same `entryFuncAddr` registered\nwith this CUDA Runtime and so the order which the translation units are\nloaded and registered with the CUDA Runtime can lead to differing\nreturn pointers in `kernelPtr` . Suggested methods of ensuring\nuniqueness are to limit visibility of global device functions by using\nstatic or hidden visibility attribute in the respective translation\nunits.\n\nParameters\n----------\nentryFuncAddr : Any\n    Address of device entry function to search kernel for\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\nkernelPtr : :py:obj:`~.cudaKernel_t`\n    Returns the device kernel\n\nSee Also\n--------\ncudaGetKernel (C++ API)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_619cudaGetKernel = {"cudaGetKernel", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_619cudaGetKernel, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_618cudaGetKernel};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_619cudaGetKernel(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_entryFuncAddr = 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("cudaGetKernel (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_entryFuncAddr,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, 32972, __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, 32972, __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, "cudaGetKernel", 0) < (0)) __PYX_ERR(0, 32972, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGetKernel", 1, 1, 1, i); __PYX_ERR(0, 32972, __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, 32972, __pyx_L3_error)
    }
    __pyx_v_entryFuncAddr = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGetKernel", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 32972, __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.runtime.cudaGetKernel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_618cudaGetKernel(__pyx_self, __pyx_v_entryFuncAddr);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_618cudaGetKernel(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_entryFuncAddr) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_kernelPtr = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyentryFuncAddr = NULL;
  void *__pyx_v_cyentryFuncAddr_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  cudaError_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGetKernel", 0);

  /* "cuda/bindings/runtime.pyx":33004
 *     cudaGetKernel (C++ API)
 *     """
 *     cdef cudaKernel_t kernelPtr = cudaKernel_t()             # <<<<<<<<<<<<<<
 *     cyentryFuncAddr = _HelperInputVoidPtr(entryFuncAddr)
 *     cdef void* cyentryFuncAddr_ptr = <void*><void_ptr>cyentryFuncAddr.cptr
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33004, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_kernelPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":33005
 *     """
 *     cdef cudaKernel_t kernelPtr = cudaKernel_t()
 *     cyentryFuncAddr = _HelperInputVoidPtr(entryFuncAddr)             # <<<<<<<<<<<<<<
 *     cdef void* cyentryFuncAddr_ptr = <void*><void_ptr>cyentryFuncAddr.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_entryFuncAddr};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33005, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyentryFuncAddr = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":33006
 *     cdef cudaKernel_t kernelPtr = cudaKernel_t()
 *     cyentryFuncAddr = _HelperInputVoidPtr(entryFuncAddr)
 *     cdef void* cyentryFuncAddr_ptr = <void*><void_ptr>cyentryFuncAddr.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGetKernel(<cyruntime.cudaKernel_t*>kernelPtr._pvt_ptr, cyentryFuncAddr_ptr)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyentryFuncAddr), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33006, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33006, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyentryFuncAddr_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":33007
 *     cyentryFuncAddr = _HelperInputVoidPtr(entryFuncAddr)
 *     cdef void* cyentryFuncAddr_ptr = <void*><void_ptr>cyentryFuncAddr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetKernel(<cyruntime.cudaKernel_t*>kernelPtr._pvt_ptr, cyentryFuncAddr_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33008
 *     cdef void* cyentryFuncAddr_ptr = <void*><void_ptr>cyentryFuncAddr.cptr
 *     with nogil:
 *         err = cyruntime.cudaGetKernel(<cyruntime.cudaKernel_t*>kernelPtr._pvt_ptr, cyentryFuncAddr_ptr)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGetKernel(((cudaKernel_t *)__pyx_v_kernelPtr->_pvt_ptr), __pyx_v_cyentryFuncAddr_ptr); if (unlikely(__pyx_t_5 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33008, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":33007
 *     cyentryFuncAddr = _HelperInputVoidPtr(entryFuncAddr)
 *     cdef void* cyentryFuncAddr_ptr = <void*><void_ptr>cyentryFuncAddr.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGetKernel(<cyruntime.cudaKernel_t*>kernelPtr._pvt_ptr, cyentryFuncAddr_ptr)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33009
 *     with nogil:
 *         err = cyruntime.cudaGetKernel(<cyruntime.cudaKernel_t*>kernelPtr._pvt_ptr, cyentryFuncAddr_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], kernelPtr)
*/
  __pyx_t_6 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_6) {

    /* "cuda/bindings/runtime.pyx":33010
 *         err = cyruntime.cudaGetKernel(<cyruntime.cudaKernel_t*>kernelPtr._pvt_ptr, cyentryFuncAddr_ptr)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], kernelPtr)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33010, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 33010, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33009
 *     with nogil:
 *         err = cyruntime.cudaGetKernel(<cyruntime.cudaKernel_t*>kernelPtr._pvt_ptr, cyentryFuncAddr_ptr)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], kernelPtr)
*/
  }

  /* "cuda/bindings/runtime.pyx":33011
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], kernelPtr)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 33011, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_kernelPtr);
  __Pyx_GIVEREF((PyObject *)__pyx_v_kernelPtr);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_kernelPtr)) != (0)) __PYX_ERR(0, 33011, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":32972
 *     return (_dict_cudaError_t[err], ppExportTable)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetKernel(entryFuncAddr):
 *     """ Get pointer to device kernel that matches entry function `entryFuncAddr`.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGetKernel", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_kernelPtr);
  __Pyx_XDECREF((PyObject *)__pyx_v_cyentryFuncAddr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33013
 *     return (_dict_cudaError_t[err], kernelPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz):
 *     """ Returns a :py:obj:`~.cudaPitchedPtr` based on input parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_621make_cudaPitchedPtr(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_7runtime_620make_cudaPitchedPtr, "make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz)\n\nReturns a :py:obj:`~.cudaPitchedPtr` based on input parameters.\n\nReturns a :py:obj:`~.cudaPitchedPtr` based on the specified input\nparameters `d`, `p`, `xsz`, and `ysz`.\n\nParameters\n----------\nd : Any\n    Pointer to allocated memory\np : size_t\n    Pitch of allocated memory in bytes\nxsz : size_t\n    Logical width of allocation in elements\nysz : size_t\n    Logical height of allocation in elements\n\nReturns\n-------\ncudaError_t.cudaSuccess\n    cudaError_t.cudaSuccess\n:py:obj:`~.cudaPitchedPtr`\n    :py:obj:`~.cudaPitchedPtr` specified by `d`, `p`, `xsz`, and `ysz`\n\nSee Also\n--------\nmake_cudaExtent, make_cudaPos");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_621make_cudaPitchedPtr = {"make_cudaPitchedPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_621make_cudaPitchedPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_620make_cudaPitchedPtr};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_621make_cudaPitchedPtr(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_d = 0;
  size_t __pyx_v_p;
  size_t __pyx_v_xsz;
  size_t __pyx_v_ysz;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_cudaPitchedPtr (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_d,&__pyx_mstate_global->__pyx_n_u_p,&__pyx_mstate_global->__pyx_n_u_xsz,&__pyx_mstate_global->__pyx_n_u_ysz,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, 33013, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 33013, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33013, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33013, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33013, __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, "make_cudaPitchedPtr", 0) < (0)) __PYX_ERR(0, 33013, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("make_cudaPitchedPtr", 1, 4, 4, i); __PYX_ERR(0, 33013, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 33013, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33013, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33013, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 33013, __pyx_L3_error)
    }
    __pyx_v_d = values[0];
    __pyx_v_p = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_p == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33014, __pyx_L3_error)
    __pyx_v_xsz = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_xsz == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33014, __pyx_L3_error)
    __pyx_v_ysz = __Pyx_PyLong_As_size_t(values[3]); if (unlikely((__pyx_v_ysz == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33014, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("make_cudaPitchedPtr", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 33013, __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.runtime.make_cudaPitchedPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_620make_cudaPitchedPtr(__pyx_self, __pyx_v_d, __pyx_v_p, __pyx_v_xsz, __pyx_v_ysz);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_620make_cudaPitchedPtr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_d, size_t __pyx_v_p, size_t __pyx_v_xsz, size_t __pyx_v_ysz) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *__pyx_v_cyd = NULL;
  void *__pyx_v_cyd_ptr;
  struct cudaPitchedPtr __pyx_v_err;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *__pyx_v_wrapper = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_4;
  struct cudaPitchedPtr __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("make_cudaPitchedPtr", 0);

  /* "cuda/bindings/runtime.pyx":33042
 *     make_cudaExtent, make_cudaPos
 *     """
 *     cyd = _HelperInputVoidPtr(d)             # <<<<<<<<<<<<<<
 *     cdef void* cyd_ptr = <void*><void_ptr>cyd.cptr
 *     with nogil:
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_d};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33042, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_cyd = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":33043
 *     """
 *     cyd = _HelperInputVoidPtr(d)
 *     cdef void* cyd_ptr = <void*><void_ptr>cyd.cptr             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.make_cudaPitchedPtr(cyd_ptr, p, xsz, ysz)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cyd), __pyx_mstate_global->__pyx_n_u_cptr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33043, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cyd_ptr = ((void *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_4));

  /* "cuda/bindings/runtime.pyx":33044
 *     cyd = _HelperInputVoidPtr(d)
 *     cdef void* cyd_ptr = <void*><void_ptr>cyd.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.make_cudaPitchedPtr(cyd_ptr, p, xsz, ysz)
 *     cdef cudaPitchedPtr wrapper = cudaPitchedPtr()
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33045
 *     cdef void* cyd_ptr = <void*><void_ptr>cyd.cptr
 *     with nogil:
 *         err = cyruntime.make_cudaPitchedPtr(cyd_ptr, p, xsz, ysz)             # <<<<<<<<<<<<<<
 *     cdef cudaPitchedPtr wrapper = cudaPitchedPtr()
 *     wrapper._pvt_ptr[0] = err
*/
        __pyx_t_5 = __pyx_f_4cuda_8bindings_9cyruntime_make_cudaPitchedPtr(__pyx_v_cyd_ptr, __pyx_v_p, __pyx_v_xsz, __pyx_v_ysz); if (unlikely(__Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33045, __pyx_L4_error)
        __pyx_v_err = __pyx_t_5;
      }

      /* "cuda/bindings/runtime.pyx":33044
 *     cyd = _HelperInputVoidPtr(d)
 *     cdef void* cyd_ptr = <void*><void_ptr>cyd.cptr
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.make_cudaPitchedPtr(cyd_ptr, p, xsz, ysz)
 *     cdef cudaPitchedPtr wrapper = cudaPitchedPtr()
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33046
 *     with nogil:
 *         err = cyruntime.make_cudaPitchedPtr(cyd_ptr, p, xsz, ysz)
 *     cdef cudaPitchedPtr wrapper = cudaPitchedPtr()             # <<<<<<<<<<<<<<
 *     wrapper._pvt_ptr[0] = err
 *     return wrapper
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33046, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_wrapper = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":33047
 *         err = cyruntime.make_cudaPitchedPtr(cyd_ptr, p, xsz, ysz)
 *     cdef cudaPitchedPtr wrapper = cudaPitchedPtr()
 *     wrapper._pvt_ptr[0] = err             # <<<<<<<<<<<<<<
 *     return wrapper
 * 
*/
  (__pyx_v_wrapper->_pvt_ptr[0]) = __pyx_v_err;

  /* "cuda/bindings/runtime.pyx":33048
 *     cdef cudaPitchedPtr wrapper = cudaPitchedPtr()
 *     wrapper._pvt_ptr[0] = err
 *     return wrapper             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = ((PyObject *)__pyx_v_wrapper);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33013
 *     return (_dict_cudaError_t[err], kernelPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz):
 *     """ Returns a :py:obj:`~.cudaPitchedPtr` based on input parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cuda.bindings.runtime.make_cudaPitchedPtr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cyd);
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33050
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaPos(size_t x, size_t y, size_t z):
 *     """ Returns a :py:obj:`~.cudaPos` based on input parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_623make_cudaPos(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_7runtime_622make_cudaPos, "make_cudaPos(size_t x, size_t y, size_t z)\n\nReturns a :py:obj:`~.cudaPos` based on input parameters.\n\nReturns a :py:obj:`~.cudaPos` based on the specified input parameters\n`x`, `y`, and `z`.\n\nParameters\n----------\nx : size_t\n    X position\ny : size_t\n    Y position\nz : size_t\n    Z position\n\nReturns\n-------\ncudaError_t.cudaSuccess\n    cudaError_t.cudaSuccess\n:py:obj:`~.cudaPos`\n    :py:obj:`~.cudaPos` specified by `x`, `y`, and `z`\n\nSee Also\n--------\nmake_cudaExtent, make_cudaPitchedPtr");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_623make_cudaPos = {"make_cudaPos", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_623make_cudaPos, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_622make_cudaPos};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_623make_cudaPos(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
) {
  size_t __pyx_v_x;
  size_t __pyx_v_y;
  size_t __pyx_v_z;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_cudaPos (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_x_2,&__pyx_mstate_global->__pyx_n_u_y_2,&__pyx_mstate_global->__pyx_n_u_z_2,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, 33050, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33050, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33050, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33050, __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, "make_cudaPos", 0) < (0)) __PYX_ERR(0, 33050, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("make_cudaPos", 1, 3, 3, i); __PYX_ERR(0, 33050, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 33050, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33050, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33050, __pyx_L3_error)
    }
    __pyx_v_x = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_x == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33051, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_y == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33051, __pyx_L3_error)
    __pyx_v_z = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_z == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33051, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("make_cudaPos", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 33050, __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.runtime.make_cudaPos", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_622make_cudaPos(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_622make_cudaPos(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_x, size_t __pyx_v_y, size_t __pyx_v_z) {
  struct cudaPos __pyx_v_err;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *__pyx_v_wrapper = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct cudaPos __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("make_cudaPos", 0);

  /* "cuda/bindings/runtime.pyx":33077
 *     make_cudaExtent, make_cudaPitchedPtr
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.make_cudaPos(x, y, z)
 *     cdef cudaPos wrapper = cudaPos()
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33078
 *     """
 *     with nogil:
 *         err = cyruntime.make_cudaPos(x, y, z)             # <<<<<<<<<<<<<<
 *     cdef cudaPos wrapper = cudaPos()
 *     wrapper._pvt_ptr[0] = err
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_make_cudaPos(__pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(__Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33078, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":33077
 *     make_cudaExtent, make_cudaPitchedPtr
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.make_cudaPos(x, y, z)
 *     cdef cudaPos wrapper = cudaPos()
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33079
 *     with nogil:
 *         err = cyruntime.make_cudaPos(x, y, z)
 *     cdef cudaPos wrapper = cudaPos()             # <<<<<<<<<<<<<<
 *     wrapper._pvt_ptr[0] = err
 *     return wrapper
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33079, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_wrapper = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":33080
 *         err = cyruntime.make_cudaPos(x, y, z)
 *     cdef cudaPos wrapper = cudaPos()
 *     wrapper._pvt_ptr[0] = err             # <<<<<<<<<<<<<<
 *     return wrapper
 * 
*/
  (__pyx_v_wrapper->_pvt_ptr[0]) = __pyx_v_err;

  /* "cuda/bindings/runtime.pyx":33081
 *     cdef cudaPos wrapper = cudaPos()
 *     wrapper._pvt_ptr[0] = err
 *     return wrapper             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = ((PyObject *)__pyx_v_wrapper);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33050
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaPos(size_t x, size_t y, size_t z):
 *     """ Returns a :py:obj:`~.cudaPos` based on input parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.make_cudaPos", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33083
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaExtent(size_t w, size_t h, size_t d):
 *     """ Returns a :py:obj:`~.cudaExtent` based on input parameters.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_625make_cudaExtent(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_7runtime_624make_cudaExtent, "make_cudaExtent(size_t w, size_t h, size_t d)\n\nReturns a :py:obj:`~.cudaExtent` based on input parameters.\n\nReturns a :py:obj:`~.cudaExtent` based on the specified input\nparameters `w`, `h`, and `d`.\n\nParameters\n----------\nw : size_t\n    Width in elements when referring to array memory, in bytes when\n    referring to linear memory\nh : size_t\n    Height in elements\nd : size_t\n    Depth in elements\n\nReturns\n-------\ncudaError_t.cudaSuccess\n    cudaError_t.cudaSuccess\n:py:obj:`~.cudaExtent`\n    :py:obj:`~.cudaExtent` specified by `w`, `h`, and `d`\n\nSee Also\n--------\nmake_cudaPitchedPtr, make_cudaPos");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_625make_cudaExtent = {"make_cudaExtent", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_625make_cudaExtent, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_624make_cudaExtent};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_625make_cudaExtent(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
) {
  size_t __pyx_v_w;
  size_t __pyx_v_h;
  size_t __pyx_v_d;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_cudaExtent (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_w_2,&__pyx_mstate_global->__pyx_n_u_h,&__pyx_mstate_global->__pyx_n_u_d,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, 33083, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33083, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33083, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33083, __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, "make_cudaExtent", 0) < (0)) __PYX_ERR(0, 33083, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("make_cudaExtent", 1, 3, 3, i); __PYX_ERR(0, 33083, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 33083, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33083, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33083, __pyx_L3_error)
    }
    __pyx_v_w = __Pyx_PyLong_As_size_t(values[0]); if (unlikely((__pyx_v_w == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33084, __pyx_L3_error)
    __pyx_v_h = __Pyx_PyLong_As_size_t(values[1]); if (unlikely((__pyx_v_h == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33084, __pyx_L3_error)
    __pyx_v_d = __Pyx_PyLong_As_size_t(values[2]); if (unlikely((__pyx_v_d == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 33084, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("make_cudaExtent", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 33083, __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.runtime.make_cudaExtent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_624make_cudaExtent(__pyx_self, __pyx_v_w, __pyx_v_h, __pyx_v_d);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_624make_cudaExtent(CYTHON_UNUSED PyObject *__pyx_self, size_t __pyx_v_w, size_t __pyx_v_h, size_t __pyx_v_d) {
  struct cudaExtent __pyx_v_err;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *__pyx_v_wrapper = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct cudaExtent __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("make_cudaExtent", 0);

  /* "cuda/bindings/runtime.pyx":33111
 *     make_cudaPitchedPtr, make_cudaPos
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.make_cudaExtent(w, h, d)
 *     cdef cudaExtent wrapper = cudaExtent()
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33112
 *     """
 *     with nogil:
 *         err = cyruntime.make_cudaExtent(w, h, d)             # <<<<<<<<<<<<<<
 *     cdef cudaExtent wrapper = cudaExtent()
 *     wrapper._pvt_ptr[0] = err
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_make_cudaExtent(__pyx_v_w, __pyx_v_h, __pyx_v_d); if (unlikely(__Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33112, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":33111
 *     make_cudaPitchedPtr, make_cudaPos
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.make_cudaExtent(w, h, d)
 *     cdef cudaExtent wrapper = cudaExtent()
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33113
 *     with nogil:
 *         err = cyruntime.make_cudaExtent(w, h, d)
 *     cdef cudaExtent wrapper = cudaExtent()             # <<<<<<<<<<<<<<
 *     wrapper._pvt_ptr[0] = err
 *     return wrapper
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33113, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_wrapper = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":33114
 *         err = cyruntime.make_cudaExtent(w, h, d)
 *     cdef cudaExtent wrapper = cudaExtent()
 *     wrapper._pvt_ptr[0] = err             # <<<<<<<<<<<<<<
 *     return wrapper
 * 
*/
  (__pyx_v_wrapper->_pvt_ptr[0]) = __pyx_v_err;

  /* "cuda/bindings/runtime.pyx":33115
 *     cdef cudaExtent wrapper = cudaExtent()
 *     wrapper._pvt_ptr[0] = err
 *     return wrapper             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_wrapper);
  __pyx_r = ((PyObject *)__pyx_v_wrapper);
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33083
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaExtent(size_t w, size_t h, size_t d):
 *     """ Returns a :py:obj:`~.cudaExtent` based on input parameters.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cuda.bindings.runtime.make_cudaExtent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_wrapper);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33117
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsEGLRegisterImage(image, unsigned int flags):
 *     """ Registers an EGL image.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_627cudaGraphicsEGLRegisterImage(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_7runtime_626cudaGraphicsEGLRegisterImage, "cudaGraphicsEGLRegisterImage(image, unsigned int flags)\n\nRegisters an EGL image.\n\nRegisters the EGLImageKHR specified by `image` for access by CUDA. A\nhandle to the registered object is returned as `pCudaResource`.\nAdditional Mapping/Unmapping is not required for the registered\nresource and :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be\ndirectly called on the `pCudaResource`.\n\nThe application will be responsible for synchronizing access to shared\nobjects. The application must ensure that any pending operation which\naccess the objects have completed before passing control to CUDA. This\nmay be accomplished by issuing and waiting for glFinish command on all\nGLcontexts (for OpenGL and likewise for other APIs). The application\nwill be also responsible for ensuring that any pending operation on the\nregistered CUDA resource has completed prior to executing subsequent\ncommands in other APIs accesing the same memory objects. This can be\naccomplished by calling cuCtxSynchronize or cuEventSynchronize\n(preferably).\n\nThe surface's intended usage is specified using `flags`, as follows:\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsNone`: Specifies no hints about\n  how this resource will be used. It is therefore assumed that this\n  resource will be read from and written to by CUDA. This is the\n  default value.\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsReadOnly`: Specifies that CUDA\n  will not write to this resource.\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsWriteDiscard`: Specifies that\n  CUDA will not read from this resource and will write over the entire\n  contents of the resource, so none of the data previously stored in\n  the resource will be preserved.\n\nThe EGLImageKHR is an object which can be used to create EGLImage\ntarget resource. It is defined as a void pointer. typedef void*\nEGLImageKHR\n\nParameters\n----------\nimage : :py:obj:`~.EGLImageKHR`\n    An EGLImageKHR image which can be used to create target resource.\nflags : unsigned int""\n    Map flags\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\npCudaResource : :py:obj:`~.cudaGraphicsResource`\n    Pointer to the returned object handle\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame`, :py:obj:`~.cuGraphicsEGLRegisterImage`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_627cudaGraphicsEGLRegisterImage = {"cudaGraphicsEGLRegisterImage", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_627cudaGraphicsEGLRegisterImage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_626cudaGraphicsEGLRegisterImage};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_627cudaGraphicsEGLRegisterImage(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_image = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsEGLRegisterImage (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_image,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 33117, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33117, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33117, __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, "cudaGraphicsEGLRegisterImage", 0) < (0)) __PYX_ERR(0, 33117, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsEGLRegisterImage", 1, 2, 2, i); __PYX_ERR(0, 33117, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 33117, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33117, __pyx_L3_error)
    }
    __pyx_v_image = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33118, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsEGLRegisterImage", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 33117, __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.runtime.cudaGraphicsEGLRegisterImage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_626cudaGraphicsEGLRegisterImage(__pyx_self, __pyx_v_image, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_626cudaGraphicsEGLRegisterImage(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_image, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR __pyx_v_cyimage;
  PyObject *__pyx_v_pimage = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_pCudaResource = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsEGLRegisterImage", 0);

  /* "cuda/bindings/runtime.pyx":33176
 *     """
 *     cdef cyruntime.EGLImageKHR cyimage
 *     if image is None:             # <<<<<<<<<<<<<<
 *         pimage = 0
 *     elif isinstance(image, (EGLImageKHR,)):
*/
  __pyx_t_1 = (__pyx_v_image == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33177
 *     cdef cyruntime.EGLImageKHR cyimage
 *     if image is None:
 *         pimage = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(image, (EGLImageKHR,)):
 *         pimage = int(image)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pimage = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33176
 *     """
 *     cdef cyruntime.EGLImageKHR cyimage
 *     if image is None:             # <<<<<<<<<<<<<<
 *         pimage = 0
 *     elif isinstance(image, (EGLImageKHR,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33178
 *     if image is None:
 *         pimage = 0
 *     elif isinstance(image, (EGLImageKHR,)):             # <<<<<<<<<<<<<<
 *         pimage = int(image)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_image, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33179
 *         pimage = 0
 *     elif isinstance(image, (EGLImageKHR,)):
 *         pimage = int(image)             # <<<<<<<<<<<<<<
 *     else:
 *         pimage = int(EGLImageKHR(image))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_image); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pimage = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33178
 *     if image is None:
 *         pimage = 0
 *     elif isinstance(image, (EGLImageKHR,)):             # <<<<<<<<<<<<<<
 *         pimage = int(image)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33181
 *         pimage = int(image)
 *     else:
 *         pimage = int(EGLImageKHR(image))             # <<<<<<<<<<<<<<
 *     cyimage = <cyruntime.EGLImageKHR><void_ptr>pimage
 *     cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_image};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33181, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pimage = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33182
 *     else:
 *         pimage = int(EGLImageKHR(image))
 *     cyimage = <cyruntime.EGLImageKHR><void_ptr>pimage             # <<<<<<<<<<<<<<
 *     cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pimage); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33182, __pyx_L1_error)
  __pyx_v_cyimage = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33183
 *         pimage = int(EGLImageKHR(image))
 *     cyimage = <cyruntime.EGLImageKHR><void_ptr>pimage
 *     cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsEGLRegisterImage(pCudaResource._pvt_ptr, cyimage, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33183, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_pCudaResource = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":33184
 *     cyimage = <cyruntime.EGLImageKHR><void_ptr>pimage
 *     cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsEGLRegisterImage(pCudaResource._pvt_ptr, cyimage, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33185
 *     cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphicsEGLRegisterImage(pCudaResource._pvt_ptr, cyimage, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsEGLRegisterImage(__pyx_v_pCudaResource->_pvt_ptr, __pyx_v_cyimage, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33185, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":33184
 *     cyimage = <cyruntime.EGLImageKHR><void_ptr>pimage
 *     cdef cudaGraphicsResource_t pCudaResource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsEGLRegisterImage(pCudaResource._pvt_ptr, cyimage, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33186
 *     with nogil:
 *         err = cyruntime.cudaGraphicsEGLRegisterImage(pCudaResource._pvt_ptr, cyimage, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pCudaResource)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33187
 *         err = cyruntime.cudaGraphicsEGLRegisterImage(pCudaResource._pvt_ptr, cyimage, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pCudaResource)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33187, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33187, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33187, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33187, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33187, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 33187, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33186
 *     with nogil:
 *         err = cyruntime.cudaGraphicsEGLRegisterImage(pCudaResource._pvt_ptr, cyimage, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pCudaResource)
*/
  }

  /* "cuda/bindings/runtime.pyx":33188
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], pCudaResource)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 33188, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_pCudaResource);
  __Pyx_GIVEREF((PyObject *)__pyx_v_pCudaResource);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_pCudaResource)) != (0)) __PYX_ERR(0, 33188, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33117
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsEGLRegisterImage(image, unsigned int flags):
 *     """ Registers an EGL image.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsEGLRegisterImage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pimage);
  __Pyx_XDECREF((PyObject *)__pyx_v_pCudaResource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33190
 *     return (_dict_cudaError_t[err], pCudaResource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerConnect(eglStream):
 *     """ Connect CUDA to EGLStream as a consumer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_629cudaEGLStreamConsumerConnect(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_7runtime_628cudaEGLStreamConsumerConnect, "cudaEGLStreamConsumerConnect(eglStream)\n\nConnect CUDA to EGLStream as a consumer.\n\nConnect CUDA as a consumer to EGLStreamKHR specified by `eglStream`.\n\nThe EGLStreamKHR is an EGL object that transfers a sequence of image\nframes from one API to another.\n\nParameters\n----------\neglStream : :py:obj:`~.EGLStreamKHR`\n    EGLStreamKHR handle\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Pointer to the returned connection handle\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamConsumerDisconnect`, :py:obj:`~.cudaEGLStreamConsumerAcquireFrame`, :py:obj:`~.cudaEGLStreamConsumerReleaseFrame`, :py:obj:`~.cuEGLStreamConsumerConnect`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_629cudaEGLStreamConsumerConnect = {"cudaEGLStreamConsumerConnect", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_629cudaEGLStreamConsumerConnect, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_628cudaEGLStreamConsumerConnect};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_629cudaEGLStreamConsumerConnect(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_eglStream = 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("cudaEGLStreamConsumerConnect (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_eglStream,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, 33190, __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, 33190, __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, "cudaEGLStreamConsumerConnect", 0) < (0)) __PYX_ERR(0, 33190, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerConnect", 1, 1, 1, i); __PYX_ERR(0, 33190, __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, 33190, __pyx_L3_error)
    }
    __pyx_v_eglStream = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerConnect", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 33190, __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.runtime.cudaEGLStreamConsumerConnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_628cudaEGLStreamConsumerConnect(__pyx_self, __pyx_v_eglStream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_628cudaEGLStreamConsumerConnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream) {
  __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR __pyx_v_cyeglStream;
  PyObject *__pyx_v_peglStream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *__pyx_v_conn = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamConsumerConnect", 0);

  /* "cuda/bindings/runtime.pyx":33216
 *     """
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:             # <<<<<<<<<<<<<<
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
*/
  __pyx_t_1 = (__pyx_v_eglStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33217
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:
 *         peglStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
 *         peglStream = int(eglStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_peglStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33216
 *     """
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:             # <<<<<<<<<<<<<<
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33218
 *     if eglStream is None:
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):             # <<<<<<<<<<<<<<
 *         peglStream = int(eglStream)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_eglStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33219
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
 *         peglStream = int(eglStream)             # <<<<<<<<<<<<<<
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_peglStream = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33218
 *     if eglStream is None:
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):             # <<<<<<<<<<<<<<
 *         peglStream = int(eglStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33221
 *         peglStream = int(eglStream)
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))             # <<<<<<<<<<<<<<
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_eglStream};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33221, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_peglStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33222
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream             # <<<<<<<<<<<<<<
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33222, __pyx_L1_error)
  __pyx_v_cyeglStream = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33223
 *         peglStream = int(EGLStreamKHR(eglStream))
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33223, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_conn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":33224
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33225
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerConnect(((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)__pyx_v_conn->__pyx_base._pvt_ptr), __pyx_v_cyeglStream); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33225, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":33224
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33226
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33227
 *         err = cyruntime.cudaEGLStreamConsumerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], conn)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33227, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 33227, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33226
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)
*/
  }

  /* "cuda/bindings/runtime.pyx":33228
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 33228, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_conn);
  __Pyx_GIVEREF((PyObject *)__pyx_v_conn);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_conn)) != (0)) __PYX_ERR(0, 33228, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33190
 *     return (_dict_cudaError_t[err], pCudaResource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerConnect(eglStream):
 *     """ Connect CUDA to EGLStream as a consumer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamConsumerConnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_peglStream);
  __Pyx_XDECREF((PyObject *)__pyx_v_conn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33230
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags):
 *     """ Connect CUDA to EGLStream as a consumer with given flags.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_631cudaEGLStreamConsumerConnectWithFlags(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_7runtime_630cudaEGLStreamConsumerConnectWithFlags, "cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags)\n\nConnect CUDA to EGLStream as a consumer with given flags.\n\nConnect CUDA as a consumer to EGLStreamKHR specified by `stream` with\nspecified `flags` defined by :py:obj:`~.cudaEglResourceLocationFlags`.\n\nThe flags specify whether the consumer wants to access frames from\nsystem memory or video memory. Default is\n:py:obj:`~.cudaEglResourceLocationVidmem`.\n\nParameters\n----------\neglStream : :py:obj:`~.EGLStreamKHR`\n    EGLStreamKHR handle\nflags : unsigned int\n    Flags denote intended location - system or video.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Pointer to the returned connection handle\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamConsumerDisconnect`, :py:obj:`~.cudaEGLStreamConsumerAcquireFrame`, :py:obj:`~.cudaEGLStreamConsumerReleaseFrame`, :py:obj:`~.cuEGLStreamConsumerConnectWithFlags`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_631cudaEGLStreamConsumerConnectWithFlags = {"cudaEGLStreamConsumerConnectWithFlags", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_631cudaEGLStreamConsumerConnectWithFlags, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_630cudaEGLStreamConsumerConnectWithFlags};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_631cudaEGLStreamConsumerConnectWithFlags(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_eglStream = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEGLStreamConsumerConnectWithFlags (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_eglStream,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 33230, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33230, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33230, __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, "cudaEGLStreamConsumerConnectWithFlags", 0) < (0)) __PYX_ERR(0, 33230, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerConnectWithFlags", 1, 2, 2, i); __PYX_ERR(0, 33230, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 33230, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33230, __pyx_L3_error)
    }
    __pyx_v_eglStream = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33231, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerConnectWithFlags", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 33230, __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.runtime.cudaEGLStreamConsumerConnectWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_630cudaEGLStreamConsumerConnectWithFlags(__pyx_self, __pyx_v_eglStream, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_630cudaEGLStreamConsumerConnectWithFlags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR __pyx_v_cyeglStream;
  PyObject *__pyx_v_peglStream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *__pyx_v_conn = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamConsumerConnectWithFlags", 0);

  /* "cuda/bindings/runtime.pyx":33260
 *     """
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:             # <<<<<<<<<<<<<<
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
*/
  __pyx_t_1 = (__pyx_v_eglStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33261
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:
 *         peglStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
 *         peglStream = int(eglStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_peglStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33260
 *     """
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:             # <<<<<<<<<<<<<<
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33262
 *     if eglStream is None:
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):             # <<<<<<<<<<<<<<
 *         peglStream = int(eglStream)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_eglStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33263
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
 *         peglStream = int(eglStream)             # <<<<<<<<<<<<<<
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_peglStream = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33262
 *     if eglStream is None:
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):             # <<<<<<<<<<<<<<
 *         peglStream = int(eglStream)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33265
 *         peglStream = int(eglStream)
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))             # <<<<<<<<<<<<<<
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_eglStream};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33265, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_peglStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33266
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream             # <<<<<<<<<<<<<<
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33266, __pyx_L1_error)
  __pyx_v_cyeglStream = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33267
 *         peglStream = int(EGLStreamKHR(eglStream))
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerConnectWithFlags(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33267, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_conn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":33268
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerConnectWithFlags(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33269
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerConnectWithFlags(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerConnectWithFlags(((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)__pyx_v_conn->__pyx_base._pvt_ptr), __pyx_v_cyeglStream, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33269, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":33268
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerConnectWithFlags(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33270
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerConnectWithFlags(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33271
 *         err = cyruntime.cudaEGLStreamConsumerConnectWithFlags(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], conn)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33271, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 33271, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33270
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerConnectWithFlags(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)
*/
  }

  /* "cuda/bindings/runtime.pyx":33272
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 33272, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_conn);
  __Pyx_GIVEREF((PyObject *)__pyx_v_conn);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_conn)) != (0)) __PYX_ERR(0, 33272, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33230
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags):
 *     """ Connect CUDA to EGLStream as a consumer with given flags.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamConsumerConnectWithFlags", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_peglStream);
  __Pyx_XDECREF((PyObject *)__pyx_v_conn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33274
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerDisconnect(conn):
 *     """ Disconnect CUDA as a consumer to EGLStream .
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_633cudaEGLStreamConsumerDisconnect(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_7runtime_632cudaEGLStreamConsumerDisconnect, "cudaEGLStreamConsumerDisconnect(conn)\n\nDisconnect CUDA as a consumer to EGLStream .\n\nDisconnect CUDA as a consumer to EGLStreamKHR.\n\nParameters\n----------\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Conection to disconnect.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamConsumerConnect`, :py:obj:`~.cudaEGLStreamConsumerAcquireFrame`, :py:obj:`~.cudaEGLStreamConsumerReleaseFrame`, :py:obj:`~.cuEGLStreamConsumerDisconnect`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_633cudaEGLStreamConsumerDisconnect = {"cudaEGLStreamConsumerDisconnect", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_633cudaEGLStreamConsumerDisconnect, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_632cudaEGLStreamConsumerDisconnect};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_633cudaEGLStreamConsumerDisconnect(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_conn = 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("cudaEGLStreamConsumerDisconnect (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_conn,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, 33274, __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, 33274, __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, "cudaEGLStreamConsumerDisconnect", 0) < (0)) __PYX_ERR(0, 33274, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerDisconnect", 1, 1, 1, i); __PYX_ERR(0, 33274, __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, 33274, __pyx_L3_error)
    }
    __pyx_v_conn = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerDisconnect", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 33274, __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.runtime.cudaEGLStreamConsumerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_632cudaEGLStreamConsumerDisconnect(__pyx_self, __pyx_v_conn);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_632cudaEGLStreamConsumerDisconnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn) {
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *__pyx_v_cyconn;
  PyObject *__pyx_v_pconn = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamConsumerDisconnect", 0);

  /* "cuda/bindings/runtime.pyx":33295
 *     """
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
  __pyx_t_1 = (__pyx_v_conn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33296
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
*/
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33295
 *     """
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33297
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33298
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
*/
    __pyx_t_4 = __pyx_v_conn;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33298, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_pconn = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33299
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33299, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33297
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33300
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_conn); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33301
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33301, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33300
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33303
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerDisconnect(cyconn)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_7 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33303, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33303, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33304
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerDisconnect(cyconn)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33305
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerDisconnect(cyconn)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerDisconnect(__pyx_v_cyconn); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33305, __pyx_L7_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":33304
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerDisconnect(cyconn)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33306
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerDisconnect(cyconn)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 33306, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33274
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerDisconnect(conn):
 *     """ Disconnect CUDA as a consumer to EGLStream .
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamConsumerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pconn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33308
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int timeout):
 *     """ Acquire an image frame from the EGLStream with CUDA as a consumer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_635cudaEGLStreamConsumerAcquireFrame(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_7runtime_634cudaEGLStreamConsumerAcquireFrame, "cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int timeout)\n\nAcquire an image frame from the EGLStream with CUDA as a consumer.\n\nAcquire an image frame from EGLStreamKHR.\n:py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be called on\n`pCudaResource` to get :py:obj:`~.cudaEglFrame`.\n\nParameters\n----------\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Connection on which to acquire\npCudaResource : :py:obj:`~.cudaGraphicsResource_t`\n    CUDA resource on which the EGLStream frame will be mapped for use.\npStream : :py:obj:`~.cudaStream_t`\n    CUDA stream for synchronization and any data migrations implied by\n    :py:obj:`~.cudaEglResourceLocationFlags`.\ntimeout : unsigned int\n    Desired timeout in usec.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`, :py:obj:`~.cudaErrorLaunchTimeout`\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamConsumerConnect`, :py:obj:`~.cudaEGLStreamConsumerDisconnect`, :py:obj:`~.cudaEGLStreamConsumerReleaseFrame`, :py:obj:`~.cuEGLStreamConsumerAcquireFrame`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_635cudaEGLStreamConsumerAcquireFrame = {"cudaEGLStreamConsumerAcquireFrame", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_635cudaEGLStreamConsumerAcquireFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_634cudaEGLStreamConsumerAcquireFrame};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_635cudaEGLStreamConsumerAcquireFrame(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_conn = 0;
  PyObject *__pyx_v_pCudaResource = 0;
  PyObject *__pyx_v_pStream = 0;
  unsigned int __pyx_v_timeout;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEGLStreamConsumerAcquireFrame (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_conn,&__pyx_mstate_global->__pyx_n_u_pCudaResource,&__pyx_mstate_global->__pyx_n_u_pStream,&__pyx_mstate_global->__pyx_n_u_timeout,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, 33308, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 33308, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33308, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33308, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33308, __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, "cudaEGLStreamConsumerAcquireFrame", 0) < (0)) __PYX_ERR(0, 33308, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerAcquireFrame", 1, 4, 4, i); __PYX_ERR(0, 33308, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      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, 33308, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33308, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33308, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 33308, __pyx_L3_error)
    }
    __pyx_v_conn = values[0];
    __pyx_v_pCudaResource = values[1];
    __pyx_v_pStream = values[2];
    __pyx_v_timeout = __Pyx_PyLong_As_unsigned_int(values[3]); if (unlikely((__pyx_v_timeout == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33309, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerAcquireFrame", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 33308, __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.runtime.cudaEGLStreamConsumerAcquireFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_634cudaEGLStreamConsumerAcquireFrame(__pyx_self, __pyx_v_conn, __pyx_v_pCudaResource, __pyx_v_pStream, __pyx_v_timeout);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_634cudaEGLStreamConsumerAcquireFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, PyObject *__pyx_v_pCudaResource, PyObject *__pyx_v_pStream, unsigned int __pyx_v_timeout) {
  cudaStream_t *__pyx_v_cypStream;
  PyObject *__pyx_v_ppStream = NULL;
  cudaGraphicsResource_t *__pyx_v_cypCudaResource;
  PyObject *__pyx_v_ppCudaResource = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *__pyx_v_cyconn;
  PyObject *__pyx_v_pconn = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamConsumerAcquireFrame", 0);

  /* "cuda/bindings/runtime.pyx":33338
 *     """
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_pStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33339
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()
*/
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33338
 *     """
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33340
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33341
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):
*/
    __pyx_t_4 = __pyx_v_pStream;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_ppStream = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33342
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream             # <<<<<<<<<<<<<<
 *     elif isinstance(pStream, (int)):
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ppStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33342, __pyx_L1_error)
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33340
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33343
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_pStream); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33344
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33344, __pyx_L1_error)
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33343
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33346
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphicsResource_t *cypCudaResource
 *     if pCudaResource is None:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_7 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pStream))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33346, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33346, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33346, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33346, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33348
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
 *     cdef cyruntime.cudaGraphicsResource_t *cypCudaResource
 *     if pCudaResource is None:             # <<<<<<<<<<<<<<
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_pCudaResource == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33349
 *     cdef cyruntime.cudaGraphicsResource_t *cypCudaResource
 *     if pCudaResource is None:
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
 *         ppCudaResource = pCudaResource.getPtr()
*/
    __pyx_v_cypCudaResource = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33348
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
 *     cdef cyruntime.cudaGraphicsResource_t *cypCudaResource
 *     if pCudaResource is None:             # <<<<<<<<<<<<<<
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33350
 *     if pCudaResource is None:
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         ppCudaResource = pCudaResource.getPtr()
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>ppCudaResource
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_pCudaResource, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33351
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
 *         ppCudaResource = pCudaResource.getPtr()             # <<<<<<<<<<<<<<
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>ppCudaResource
 *     elif isinstance(pCudaResource, (int)):
*/
    __pyx_t_8 = __pyx_v_pCudaResource;
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33351, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_ppCudaResource = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33352
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
 *         ppCudaResource = pCudaResource.getPtr()
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>ppCudaResource             # <<<<<<<<<<<<<<
 *     elif isinstance(pCudaResource, (int)):
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>pCudaResource
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ppCudaResource); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33352, __pyx_L1_error)
    __pyx_v_cypCudaResource = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33350
 *     if pCudaResource is None:
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>NULL
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         ppCudaResource = pCudaResource.getPtr()
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>ppCudaResource
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33353
 *         ppCudaResource = pCudaResource.getPtr()
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>ppCudaResource
 *     elif isinstance(pCudaResource, (int)):             # <<<<<<<<<<<<<<
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>pCudaResource
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_pCudaResource); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33354
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>ppCudaResource
 *     elif isinstance(pCudaResource, (int)):
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>pCudaResource             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'pCudaResource' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(pCudaResource)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pCudaResource); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33354, __pyx_L1_error)
    __pyx_v_cypCudaResource = ((cudaGraphicsResource_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33353
 *         ppCudaResource = pCudaResource.getPtr()
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>ppCudaResource
 *     elif isinstance(pCudaResource, (int)):             # <<<<<<<<<<<<<<
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>pCudaResource
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33356
 *         cypCudaResource = <cyruntime.cudaGraphicsResource_t*><void_ptr>pCudaResource
 *     else:
 *         raise TypeError("Argument 'pCudaResource' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(pCudaResource)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
*/
  /*else*/ {
    __pyx_t_8 = NULL;
    __pyx_t_4 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pCudaResource))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_pCudaResource_is_not_in, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33356, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33356, __pyx_L1_error)
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":33358
 *         raise TypeError("Argument 'pCudaResource' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(pCudaResource)))
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
  __pyx_t_1 = (__pyx_v_conn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33359
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
*/
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33358
 *         raise TypeError("Argument 'pCudaResource' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found " + str(type(pCudaResource)))
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":33360
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L8_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33361
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
*/
    __pyx_t_7 = __pyx_v_conn;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33361, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_pconn = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33362
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33362, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33360
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":33363
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_conn); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33364
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33364, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33363
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":33366
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerAcquireFrame(cyconn, cypCudaResource, cypStream, timeout)
*/
  /*else*/ {
    __pyx_t_7 = NULL;
    __pyx_t_8 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_4};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33366, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33366, __pyx_L1_error)
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":33367
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerAcquireFrame(cyconn, cypCudaResource, cypStream, timeout)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33368
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerAcquireFrame(cyconn, cypCudaResource, cypStream, timeout)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerAcquireFrame(__pyx_v_cyconn, __pyx_v_cypCudaResource, __pyx_v_cypStream, __pyx_v_timeout); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33368, __pyx_L11_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":33367
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerAcquireFrame(cyconn, cypCudaResource, cypStream, timeout)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L12;
        }
        __pyx_L11_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L12:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33369
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerAcquireFrame(cyconn, cypCudaResource, cypStream, timeout)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33369, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33308
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int timeout):
 *     """ Acquire an image frame from the EGLStream with CUDA as a consumer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamConsumerAcquireFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ppStream);
  __Pyx_XDECREF(__pyx_v_ppCudaResource);
  __Pyx_XDECREF(__pyx_v_pconn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33371
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream):
 *     """ Releases the last frame acquired from the EGLStream.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_637cudaEGLStreamConsumerReleaseFrame(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_7runtime_636cudaEGLStreamConsumerReleaseFrame, "cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream)\n\nReleases the last frame acquired from the EGLStream.\n\nRelease the acquired image frame specified by `pCudaResource` to\nEGLStreamKHR.\n\nParameters\n----------\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Connection on which to release\npCudaResource : :py:obj:`~.cudaGraphicsResource_t`\n    CUDA resource whose corresponding frame is to be released\npStream : :py:obj:`~.cudaStream_t`\n    CUDA stream on which release will be done.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamConsumerConnect`, :py:obj:`~.cudaEGLStreamConsumerDisconnect`, :py:obj:`~.cudaEGLStreamConsumerAcquireFrame`, :py:obj:`~.cuEGLStreamConsumerReleaseFrame`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_637cudaEGLStreamConsumerReleaseFrame = {"cudaEGLStreamConsumerReleaseFrame", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_637cudaEGLStreamConsumerReleaseFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_636cudaEGLStreamConsumerReleaseFrame};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_637cudaEGLStreamConsumerReleaseFrame(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_conn = 0;
  PyObject *__pyx_v_pCudaResource = 0;
  PyObject *__pyx_v_pStream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEGLStreamConsumerReleaseFrame (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_conn,&__pyx_mstate_global->__pyx_n_u_pCudaResource,&__pyx_mstate_global->__pyx_n_u_pStream,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, 33371, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33371, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33371, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33371, __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, "cudaEGLStreamConsumerReleaseFrame", 0) < (0)) __PYX_ERR(0, 33371, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerReleaseFrame", 1, 3, 3, i); __PYX_ERR(0, 33371, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 33371, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33371, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33371, __pyx_L3_error)
    }
    __pyx_v_conn = values[0];
    __pyx_v_pCudaResource = values[1];
    __pyx_v_pStream = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamConsumerReleaseFrame", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 33371, __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.runtime.cudaEGLStreamConsumerReleaseFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_636cudaEGLStreamConsumerReleaseFrame(__pyx_self, __pyx_v_conn, __pyx_v_pCudaResource, __pyx_v_pStream);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_636cudaEGLStreamConsumerReleaseFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, PyObject *__pyx_v_pCudaResource, PyObject *__pyx_v_pStream) {
  cudaStream_t *__pyx_v_cypStream;
  PyObject *__pyx_v_ppStream = NULL;
  cudaGraphicsResource_t __pyx_v_cypCudaResource;
  PyObject *__pyx_v_ppCudaResource = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *__pyx_v_cyconn;
  PyObject *__pyx_v_pconn = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamConsumerReleaseFrame", 0);

  /* "cuda/bindings/runtime.pyx":33397
 *     """
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_pStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33398
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()
*/
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33397
 *     """
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33399
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33400
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):
*/
    __pyx_t_4 = __pyx_v_pStream;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33400, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_ppStream = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33401
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream             # <<<<<<<<<<<<<<
 *     elif isinstance(pStream, (int)):
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ppStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33401, __pyx_L1_error)
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33399
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33402
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_pStream); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33403
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33403, __pyx_L1_error)
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33402
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33405
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGraphicsResource_t cypCudaResource
 *     if pCudaResource is None:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_7 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pStream))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33405, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33405, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33407
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
 *     cdef cyruntime.cudaGraphicsResource_t cypCudaResource
 *     if pCudaResource is None:             # <<<<<<<<<<<<<<
 *         ppCudaResource = 0
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_pCudaResource == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33408
 *     cdef cyruntime.cudaGraphicsResource_t cypCudaResource
 *     if pCudaResource is None:
 *         ppCudaResource = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
 *         ppCudaResource = int(pCudaResource)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_ppCudaResource = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33407
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
 *     cdef cyruntime.cudaGraphicsResource_t cypCudaResource
 *     if pCudaResource is None:             # <<<<<<<<<<<<<<
 *         ppCudaResource = 0
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33409
 *     if pCudaResource is None:
 *         ppCudaResource = 0
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         ppCudaResource = int(pCudaResource)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_pCudaResource, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33410
 *         ppCudaResource = 0
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):
 *         ppCudaResource = int(pCudaResource)             # <<<<<<<<<<<<<<
 *     else:
 *         ppCudaResource = int(cudaGraphicsResource_t(pCudaResource))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_pCudaResource); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_ppCudaResource = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33409
 *     if pCudaResource is None:
 *         ppCudaResource = 0
 *     elif isinstance(pCudaResource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         ppCudaResource = int(pCudaResource)
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33412
 *         ppCudaResource = int(pCudaResource)
 *     else:
 *         ppCudaResource = int(cudaGraphicsResource_t(pCudaResource))             # <<<<<<<<<<<<<<
 *     cypCudaResource = <cyruntime.cudaGraphicsResource_t><void_ptr>ppCudaResource
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
*/
  /*else*/ {
    __pyx_t_8 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_pCudaResource};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33412, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_8 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33412, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_ppCudaResource = ((PyObject*)__pyx_t_8);
    __pyx_t_8 = 0;
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":33413
 *     else:
 *         ppCudaResource = int(cudaGraphicsResource_t(pCudaResource))
 *     cypCudaResource = <cyruntime.cudaGraphicsResource_t><void_ptr>ppCudaResource             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
*/
  __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ppCudaResource); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33413, __pyx_L1_error)
  __pyx_v_cypCudaResource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

  /* "cuda/bindings/runtime.pyx":33415
 *     cypCudaResource = <cyruntime.cudaGraphicsResource_t><void_ptr>ppCudaResource
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
  __pyx_t_1 = (__pyx_v_conn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33416
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
*/
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33415
 *     cypCudaResource = <cyruntime.cudaGraphicsResource_t><void_ptr>ppCudaResource
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":33417
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L8_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33418
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
*/
    __pyx_t_3 = __pyx_v_conn;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33418, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_v_pconn = __pyx_t_8;
    __pyx_t_8 = 0;

    /* "cuda/bindings/runtime.pyx":33419
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33419, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33417
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":33420
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_conn); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33421
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33421, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33420
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
    goto __pyx_L7;
  }

  /* "cuda/bindings/runtime.pyx":33423
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerReleaseFrame(cyconn, cypCudaResource, cypStream)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
      __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __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_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33423, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __Pyx_Raise(__pyx_t_8, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __PYX_ERR(0, 33423, __pyx_L1_error)
  }
  __pyx_L7:;

  /* "cuda/bindings/runtime.pyx":33424
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerReleaseFrame(cyconn, cypCudaResource, cypStream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33425
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerReleaseFrame(cyconn, cypCudaResource, cypStream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerReleaseFrame(__pyx_v_cyconn, __pyx_v_cypCudaResource, __pyx_v_cypStream); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33425, __pyx_L11_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":33424
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamConsumerReleaseFrame(cyconn, cypCudaResource, cypStream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L12;
        }
        __pyx_L11_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L12:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33426
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamConsumerReleaseFrame(cyconn, cypCudaResource, cypStream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 33426, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33371
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream):
 *     """ Releases the last frame acquired from the EGLStream.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamConsumerReleaseFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ppStream);
  __Pyx_XDECREF(__pyx_v_ppCudaResource);
  __Pyx_XDECREF(__pyx_v_pconn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33428
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerConnect(eglStream, width, height):
 *     """ Connect CUDA to EGLStream as a producer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_639cudaEGLStreamProducerConnect(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_7runtime_638cudaEGLStreamProducerConnect, "cudaEGLStreamProducerConnect(eglStream, width, height)\n\nConnect CUDA to EGLStream as a producer.\n\nConnect CUDA as a producer to EGLStreamKHR specified by `stream`.\n\nThe EGLStreamKHR is an EGL object that transfers a sequence of image\nframes from one API to another.\n\nParameters\n----------\neglStream : :py:obj:`~.EGLStreamKHR`\n    EGLStreamKHR handle\nwidth : :py:obj:`~.EGLint`\n    width of the image to be submitted to the stream\nheight : :py:obj:`~.EGLint`\n    height of the image to be submitted to the stream\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Pointer to the returned connection handle\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamProducerDisconnect`, :py:obj:`~.cudaEGLStreamProducerPresentFrame`, :py:obj:`~.cudaEGLStreamProducerReturnFrame`, :py:obj:`~.cuEGLStreamProducerConnect`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_639cudaEGLStreamProducerConnect = {"cudaEGLStreamProducerConnect", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_639cudaEGLStreamProducerConnect, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_638cudaEGLStreamProducerConnect};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_639cudaEGLStreamProducerConnect(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_eglStream = 0;
  PyObject *__pyx_v_width = 0;
  PyObject *__pyx_v_height = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEGLStreamProducerConnect (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_eglStream,&__pyx_mstate_global->__pyx_n_u_width_2,&__pyx_mstate_global->__pyx_n_u_height_2,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, 33428, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33428, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33428, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33428, __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, "cudaEGLStreamProducerConnect", 0) < (0)) __PYX_ERR(0, 33428, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerConnect", 1, 3, 3, i); __PYX_ERR(0, 33428, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 33428, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33428, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33428, __pyx_L3_error)
    }
    __pyx_v_eglStream = values[0];
    __pyx_v_width = values[1];
    __pyx_v_height = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerConnect", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 33428, __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.runtime.cudaEGLStreamProducerConnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_638cudaEGLStreamProducerConnect(__pyx_self, __pyx_v_eglStream, __pyx_v_width, __pyx_v_height);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_638cudaEGLStreamProducerConnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglStream, PyObject *__pyx_v_width, PyObject *__pyx_v_height) {
  __pyx_t_4cuda_8bindings_9cyruntime_EGLint __pyx_v_cyheight;
  PyObject *__pyx_v_pheight = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_EGLint __pyx_v_cywidth;
  PyObject *__pyx_v_pwidth = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR __pyx_v_cyeglStream;
  PyObject *__pyx_v_peglStream = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *__pyx_v_conn = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamProducerConnect", 0);

  /* "cuda/bindings/runtime.pyx":33458
 *     """
 *     cdef cyruntime.EGLint cyheight
 *     if height is None:             # <<<<<<<<<<<<<<
 *         pheight = 0
 *     elif isinstance(height, (EGLint,)):
*/
  __pyx_t_1 = (__pyx_v_height == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33459
 *     cdef cyruntime.EGLint cyheight
 *     if height is None:
 *         pheight = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(height, (EGLint,)):
 *         pheight = int(height)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pheight = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33458
 *     """
 *     cdef cyruntime.EGLint cyheight
 *     if height is None:             # <<<<<<<<<<<<<<
 *         pheight = 0
 *     elif isinstance(height, (EGLint,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33460
 *     if height is None:
 *         pheight = 0
 *     elif isinstance(height, (EGLint,)):             # <<<<<<<<<<<<<<
 *         pheight = int(height)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_height, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLint); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33461
 *         pheight = 0
 *     elif isinstance(height, (EGLint,)):
 *         pheight = int(height)             # <<<<<<<<<<<<<<
 *     else:
 *         pheight = int(EGLint(height))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33461, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pheight = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33460
 *     if height is None:
 *         pheight = 0
 *     elif isinstance(height, (EGLint,)):             # <<<<<<<<<<<<<<
 *         pheight = int(height)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33463
 *         pheight = int(height)
 *     else:
 *         pheight = int(EGLint(height))             # <<<<<<<<<<<<<<
 *     cyheight = <cyruntime.EGLint><void_ptr>pheight
 *     cdef cyruntime.EGLint cywidth
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_height};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLint, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33463, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pheight = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33464
 *     else:
 *         pheight = int(EGLint(height))
 *     cyheight = <cyruntime.EGLint><void_ptr>pheight             # <<<<<<<<<<<<<<
 *     cdef cyruntime.EGLint cywidth
 *     if width is None:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pheight); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33464, __pyx_L1_error)
  __pyx_v_cyheight = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLint)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33466
 *     cyheight = <cyruntime.EGLint><void_ptr>pheight
 *     cdef cyruntime.EGLint cywidth
 *     if width is None:             # <<<<<<<<<<<<<<
 *         pwidth = 0
 *     elif isinstance(width, (EGLint,)):
*/
  __pyx_t_1 = (__pyx_v_width == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33467
 *     cdef cyruntime.EGLint cywidth
 *     if width is None:
 *         pwidth = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(width, (EGLint,)):
 *         pwidth = int(width)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pwidth = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33466
 *     cyheight = <cyruntime.EGLint><void_ptr>pheight
 *     cdef cyruntime.EGLint cywidth
 *     if width is None:             # <<<<<<<<<<<<<<
 *         pwidth = 0
 *     elif isinstance(width, (EGLint,)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":33468
 *     if width is None:
 *         pwidth = 0
 *     elif isinstance(width, (EGLint,)):             # <<<<<<<<<<<<<<
 *         pwidth = int(width)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_width, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLint); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33469
 *         pwidth = 0
 *     elif isinstance(width, (EGLint,)):
 *         pwidth = int(width)             # <<<<<<<<<<<<<<
 *     else:
 *         pwidth = int(EGLint(width))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_width); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pwidth = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33468
 *     if width is None:
 *         pwidth = 0
 *     elif isinstance(width, (EGLint,)):             # <<<<<<<<<<<<<<
 *         pwidth = int(width)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":33471
 *         pwidth = int(width)
 *     else:
 *         pwidth = int(EGLint(width))             # <<<<<<<<<<<<<<
 *     cywidth = <cyruntime.EGLint><void_ptr>pwidth
 *     cdef cyruntime.EGLStreamKHR cyeglStream
*/
  /*else*/ {
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_width};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLint, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33471, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_2 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pwidth = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":33472
 *     else:
 *         pwidth = int(EGLint(width))
 *     cywidth = <cyruntime.EGLint><void_ptr>pwidth             # <<<<<<<<<<<<<<
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pwidth); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33472, __pyx_L1_error)
  __pyx_v_cywidth = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLint)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33474
 *     cywidth = <cyruntime.EGLint><void_ptr>pwidth
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:             # <<<<<<<<<<<<<<
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
*/
  __pyx_t_1 = (__pyx_v_eglStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33475
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:
 *         peglStream = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
 *         peglStream = int(eglStream)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_peglStream = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33474
 *     cywidth = <cyruntime.EGLint><void_ptr>pwidth
 *     cdef cyruntime.EGLStreamKHR cyeglStream
 *     if eglStream is None:             # <<<<<<<<<<<<<<
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
*/
    goto __pyx_L5;
  }

  /* "cuda/bindings/runtime.pyx":33476
 *     if eglStream is None:
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):             # <<<<<<<<<<<<<<
 *         peglStream = int(eglStream)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_eglStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33477
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):
 *         peglStream = int(eglStream)             # <<<<<<<<<<<<<<
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_eglStream); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_peglStream = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33476
 *     if eglStream is None:
 *         peglStream = 0
 *     elif isinstance(eglStream, (EGLStreamKHR,)):             # <<<<<<<<<<<<<<
 *         peglStream = int(eglStream)
 *     else:
*/
    goto __pyx_L5;
  }

  /* "cuda/bindings/runtime.pyx":33479
 *         peglStream = int(eglStream)
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))             # <<<<<<<<<<<<<<
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_eglStream};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33479, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33479, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_peglStream = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L5:;

  /* "cuda/bindings/runtime.pyx":33480
 *     else:
 *         peglStream = int(EGLStreamKHR(eglStream))
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream             # <<<<<<<<<<<<<<
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_peglStream); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33480, __pyx_L1_error)
  __pyx_v_cyeglStream = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33481
 *         peglStream = int(EGLStreamKHR(eglStream))
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, cywidth, cyheight)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33481, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_conn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":33482
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamProducerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, cywidth, cyheight)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33483
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, cywidth, cyheight)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerConnect(((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)__pyx_v_conn->__pyx_base._pvt_ptr), __pyx_v_cyeglStream, __pyx_v_cywidth, __pyx_v_cyheight); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33483, __pyx_L7_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":33482
 *     cyeglStream = <cyruntime.EGLStreamKHR><void_ptr>peglStream
 *     cdef cudaEglStreamConnection conn = cudaEglStreamConnection()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamProducerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, cywidth, cyheight)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33484
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, cywidth, cyheight)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33485
 *         err = cyruntime.cudaEGLStreamProducerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, cywidth, cyheight)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], conn)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33485, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33485, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33485, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33485, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33485, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 33485, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33484
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerConnect(<cyruntime.cudaEglStreamConnection*>conn._pvt_ptr, cyeglStream, cywidth, cyheight)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)
*/
  }

  /* "cuda/bindings/runtime.pyx":33486
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], conn)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 33486, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_conn);
  __Pyx_GIVEREF((PyObject *)__pyx_v_conn);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_conn)) != (0)) __PYX_ERR(0, 33486, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33428
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerConnect(eglStream, width, height):
 *     """ Connect CUDA to EGLStream as a producer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamProducerConnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pheight);
  __Pyx_XDECREF(__pyx_v_pwidth);
  __Pyx_XDECREF(__pyx_v_peglStream);
  __Pyx_XDECREF((PyObject *)__pyx_v_conn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33488
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerDisconnect(conn):
 *     """ Disconnect CUDA as a producer to EGLStream .
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_641cudaEGLStreamProducerDisconnect(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_7runtime_640cudaEGLStreamProducerDisconnect, "cudaEGLStreamProducerDisconnect(conn)\n\nDisconnect CUDA as a producer to EGLStream .\n\nDisconnect CUDA as a producer to EGLStreamKHR.\n\nParameters\n----------\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Conection to disconnect.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamProducerConnect`, :py:obj:`~.cudaEGLStreamProducerPresentFrame`, :py:obj:`~.cudaEGLStreamProducerReturnFrame`, :py:obj:`~.cuEGLStreamProducerDisconnect`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_641cudaEGLStreamProducerDisconnect = {"cudaEGLStreamProducerDisconnect", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_641cudaEGLStreamProducerDisconnect, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_640cudaEGLStreamProducerDisconnect};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_641cudaEGLStreamProducerDisconnect(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_conn = 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("cudaEGLStreamProducerDisconnect (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_conn,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, 33488, __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, 33488, __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, "cudaEGLStreamProducerDisconnect", 0) < (0)) __PYX_ERR(0, 33488, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerDisconnect", 1, 1, 1, i); __PYX_ERR(0, 33488, __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, 33488, __pyx_L3_error)
    }
    __pyx_v_conn = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerDisconnect", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 33488, __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.runtime.cudaEGLStreamProducerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_640cudaEGLStreamProducerDisconnect(__pyx_self, __pyx_v_conn);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_640cudaEGLStreamProducerDisconnect(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn) {
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *__pyx_v_cyconn;
  PyObject *__pyx_v_pconn = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamProducerDisconnect", 0);

  /* "cuda/bindings/runtime.pyx":33509
 *     """
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
  __pyx_t_1 = (__pyx_v_conn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33510
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
*/
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33509
 *     """
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33511
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33512
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
*/
    __pyx_t_4 = __pyx_v_conn;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33512, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_pconn = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33513
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33513, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33511
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33514
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_conn); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33515
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33515, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33514
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33517
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerDisconnect(cyconn)
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_7 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33517, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33517, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33518
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamProducerDisconnect(cyconn)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33519
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerDisconnect(cyconn)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerDisconnect(__pyx_v_cyconn); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33519, __pyx_L7_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":33518
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamProducerDisconnect(cyconn)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L8;
        }
        __pyx_L7_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L8:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33520
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerDisconnect(cyconn)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 33520, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33488
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerDisconnect(conn):
 *     """ Disconnect CUDA as a producer to EGLStream .
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamProducerDisconnect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pconn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33522
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerPresentFrame(conn, eglframe not None : cudaEglFrame, pStream):
 *     """ Present a CUDA eglFrame to the EGLStream with CUDA as a producer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_643cudaEGLStreamProducerPresentFrame(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_7runtime_642cudaEGLStreamProducerPresentFrame, "cudaEGLStreamProducerPresentFrame(conn, cudaEglFrame eglframe: cudaEglFrame, pStream)\n\nPresent a CUDA eglFrame to the EGLStream with CUDA as a producer.\n\nThe :py:obj:`~.cudaEglFrame` is defined as:\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nFor :py:obj:`~.cudaEglFrame` of type :py:obj:`~.cudaEglFrameTypePitch`,\nthe application may present sub-region of a memory allocation. In that\ncase, :py:obj:`~.cudaPitchedPtr.ptr` will specify the start address of\nthe sub-region in the allocation and :py:obj:`~.cudaEglPlaneDesc` will\nspecify the dimensions of the sub-region.\n\nParameters\n----------\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Connection on which to present the CUDA array\neglframe : :py:obj:`~.cudaEglFrame`\n    CUDA Eglstream Proucer Frame handle to be sent to the consumer over\n    EglStream.\npStream : :py:obj:`~.cudaStream_t`\n    CUDA stream on which to present the frame.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamProducerConnect`, :py:obj:`~.cudaEGLStreamProducerDisconnect`, :py:obj:`~.cudaEGLStreamProducerReturnFrame`, :py:obj:`~.cuEGLStreamProducerPresentFrame`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_643cudaEGLStreamProducerPresentFrame = {"cudaEGLStreamProducerPresentFrame", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_643cudaEGLStreamProducerPresentFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_642cudaEGLStreamProducerPresentFrame};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_643cudaEGLStreamProducerPresentFrame(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_conn = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *__pyx_v_eglframe = 0;
  PyObject *__pyx_v_pStream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEGLStreamProducerPresentFrame (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_conn,&__pyx_mstate_global->__pyx_n_u_eglframe,&__pyx_mstate_global->__pyx_n_u_pStream,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, 33522, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33522, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33522, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33522, __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, "cudaEGLStreamProducerPresentFrame", 0) < (0)) __PYX_ERR(0, 33522, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerPresentFrame", 1, 3, 3, i); __PYX_ERR(0, 33522, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 33522, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33522, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33522, __pyx_L3_error)
    }
    __pyx_v_conn = values[0];
    __pyx_v_eglframe = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *)values[1]);
    __pyx_v_pStream = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerPresentFrame", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 33522, __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.runtime.cudaEGLStreamProducerPresentFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eglframe), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame, 0, "eglframe", 0))) __PYX_ERR(0, 33523, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_642cudaEGLStreamProducerPresentFrame(__pyx_self, __pyx_v_conn, __pyx_v_eglframe, __pyx_v_pStream);

  /* 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_7runtime_642cudaEGLStreamProducerPresentFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *__pyx_v_eglframe, PyObject *__pyx_v_pStream) {
  cudaStream_t *__pyx_v_cypStream;
  PyObject *__pyx_v_ppStream = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *__pyx_v_cyconn;
  PyObject *__pyx_v_pconn = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  cudaError_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamProducerPresentFrame", 0);

  /* "cuda/bindings/runtime.pyx":33556
 *     """
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_pStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33557
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()
*/
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33556
 *     """
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33558
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33559
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):
*/
    __pyx_t_4 = __pyx_v_pStream;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33559, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_ppStream = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33560
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream             # <<<<<<<<<<<<<<
 *     elif isinstance(pStream, (int)):
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ppStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33560, __pyx_L1_error)
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33558
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33561
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_pStream); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33562
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33562, __pyx_L1_error)
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33561
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33564
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_7 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pStream))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33564, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33564, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33566
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
  __pyx_t_1 = (__pyx_v_conn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33567
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
*/
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33566
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33568
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33569
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
*/
    __pyx_t_8 = __pyx_v_conn;
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33569, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_pconn = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33570
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33570, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33568
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33571
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_conn); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33572
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33572, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33571
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33574
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerPresentFrame(cyconn, eglframe._pvt_ptr[0], cypStream)
*/
  /*else*/ {
    __pyx_t_8 = NULL;
    __pyx_t_4 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33574, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33574, __pyx_L1_error)
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":33575
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamProducerPresentFrame(cyconn, eglframe._pvt_ptr[0], cypStream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33576
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerPresentFrame(cyconn, eglframe._pvt_ptr[0], cypStream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerPresentFrame(__pyx_v_cyconn, (__pyx_v_eglframe->__pyx_base._pvt_ptr[0]), __pyx_v_cypStream); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33576, __pyx_L10_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":33575
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamProducerPresentFrame(cyconn, eglframe._pvt_ptr[0], cypStream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33577
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerPresentFrame(cyconn, eglframe._pvt_ptr[0], cypStream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 33577, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33522
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerPresentFrame(conn, eglframe not None : cudaEglFrame, pStream):
 *     """ Present a CUDA eglFrame to the EGLStream with CUDA as a producer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamProducerPresentFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ppStream);
  __Pyx_XDECREF(__pyx_v_pconn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33579
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerReturnFrame(conn, eglframe : Optional[cudaEglFrame], pStream):
 *     """ Return the CUDA eglFrame to the EGLStream last released by the consumer.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_645cudaEGLStreamProducerReturnFrame(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_7runtime_644cudaEGLStreamProducerReturnFrame, "cudaEGLStreamProducerReturnFrame(conn, cudaEglFrame eglframe: Optional[cudaEglFrame], pStream)\n\nReturn the CUDA eglFrame to the EGLStream last released by the consumer.\n\nThis API can potentially return cudaErrorLaunchTimeout if the consumer\nhas not returned a frame to EGL stream. If timeout is returned the\napplication can retry.\n\nParameters\n----------\nconn : :py:obj:`~.cudaEglStreamConnection`\n    Connection on which to present the CUDA array\neglframe : :py:obj:`~.cudaEglFrame`\n    CUDA Eglstream Proucer Frame handle returned from the consumer over\n    EglStream.\npStream : :py:obj:`~.cudaStream_t`\n    CUDA stream on which to return the frame.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLaunchTimeout`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\n\nSee Also\n--------\n:py:obj:`~.cudaEGLStreamProducerConnect`, :py:obj:`~.cudaEGLStreamProducerDisconnect`, :py:obj:`~.cudaEGLStreamProducerPresentFrame`, :py:obj:`~.cuEGLStreamProducerReturnFrame`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_645cudaEGLStreamProducerReturnFrame = {"cudaEGLStreamProducerReturnFrame", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_645cudaEGLStreamProducerReturnFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_644cudaEGLStreamProducerReturnFrame};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_645cudaEGLStreamProducerReturnFrame(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_conn = 0;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *__pyx_v_eglframe = 0;
  PyObject *__pyx_v_pStream = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEGLStreamProducerReturnFrame (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_conn,&__pyx_mstate_global->__pyx_n_u_eglframe,&__pyx_mstate_global->__pyx_n_u_pStream,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, 33579, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33579, __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, "cudaEGLStreamProducerReturnFrame", 0) < (0)) __PYX_ERR(0, 33579, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerReturnFrame", 1, 3, 3, i); __PYX_ERR(0, 33579, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 33579, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33579, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33579, __pyx_L3_error)
    }
    __pyx_v_conn = values[0];
    __pyx_v_eglframe = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *)values[1]);
    __pyx_v_pStream = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEGLStreamProducerReturnFrame", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 33579, __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.runtime.cudaEGLStreamProducerReturnFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eglframe), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame, 1, "eglframe", 0))) __PYX_ERR(0, 33580, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_644cudaEGLStreamProducerReturnFrame(__pyx_self, __pyx_v_conn, __pyx_v_eglframe, __pyx_v_pStream);

  /* 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_7runtime_644cudaEGLStreamProducerReturnFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_conn, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *__pyx_v_eglframe, PyObject *__pyx_v_pStream) {
  cudaStream_t *__pyx_v_cypStream;
  PyObject *__pyx_v_ppStream = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *__pyx_v_cyconn;
  PyObject *__pyx_v_pconn = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame *__pyx_v_cyeglframe_ptr;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st *__pyx_t_9;
  cudaError_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEGLStreamProducerReturnFrame", 0);

  /* "cuda/bindings/runtime.pyx":33607
 *     """
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
*/
  __pyx_t_1 = (__pyx_v_pStream == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33608
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()
*/
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33607
 *     """
 *     cdef cyruntime.cudaStream_t *cypStream
 *     if pStream is None:             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33609
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_pStream, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33610
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):
*/
    __pyx_t_4 = __pyx_v_pStream;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_ppStream = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33611
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream             # <<<<<<<<<<<<<<
 *     elif isinstance(pStream, (int)):
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ppStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33611, __pyx_L1_error)
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33609
 *     if pStream is None:
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>NULL
 *     elif isinstance(pStream, (cudaStream_t,driver.CUstream)):             # <<<<<<<<<<<<<<
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33612
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_pStream); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33613
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pStream); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33613, __pyx_L1_error)
    __pyx_v_cypStream = ((cudaStream_t *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33612
 *         ppStream = pStream.getPtr()
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>ppStream
 *     elif isinstance(pStream, (int)):             # <<<<<<<<<<<<<<
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33615
 *         cypStream = <cyruntime.cudaStream_t*><void_ptr>pStream
 *     else:
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_7 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_pStream))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_pStream_is_not_instance, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33615, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33615, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33617
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
  __pyx_t_1 = (__pyx_v_conn == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33618
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
*/
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":33617
 *         raise TypeError("Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found " + str(type(pStream)))
 *     cdef cyruntime.cudaEglStreamConnection *cyconn
 *     if conn is None:             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33619
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection); 
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_conn, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection); 
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33620
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
*/
    __pyx_t_8 = __pyx_v_conn;
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33620, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_pconn = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33621
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn             # <<<<<<<<<<<<<<
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pconn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33621, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33619
 *     if conn is None:
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>NULL
 *     elif isinstance(conn, (cudaEglStreamConnection,driver.CUeglStreamConnection)):             # <<<<<<<<<<<<<<
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33622
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_conn); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":33623
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
*/
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_conn); if (unlikely((__pyx_t_6 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33623, __pyx_L1_error)
    __pyx_v_cyconn = ((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_6));

    /* "cuda/bindings/runtime.pyx":33622
 *         pconn = conn.getPtr()
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>pconn
 *     elif isinstance(conn, (int)):             # <<<<<<<<<<<<<<
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
*/
    goto __pyx_L6;
  }

  /* "cuda/bindings/runtime.pyx":33625
 *         cyconn = <cyruntime.cudaEglStreamConnection*><void_ptr>conn
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaEglFrame* cyeglframe_ptr = eglframe._pvt_ptr if eglframe is not None else NULL
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_8 = NULL;
    __pyx_t_4 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_conn))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_conn_is_not_instance_of, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33625, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 33625, __pyx_L1_error)
  }
  __pyx_L6:;

  /* "cuda/bindings/runtime.pyx":33626
 *     else:
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     cdef cyruntime.cudaEglFrame* cyeglframe_ptr = eglframe._pvt_ptr if eglframe is not None else NULL             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerReturnFrame(cyconn, cyeglframe_ptr, cypStream)
*/
  __pyx_t_1 = (((PyObject *)__pyx_v_eglframe) != Py_None);
  if (__pyx_t_1) {
    __pyx_t_9 = __pyx_v_eglframe->__pyx_base._pvt_ptr;
  } else {
    __pyx_t_9 = NULL;
  }
  __pyx_v_cyeglframe_ptr = __pyx_t_9;

  /* "cuda/bindings/runtime.pyx":33627
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     cdef cyruntime.cudaEglFrame* cyeglframe_ptr = eglframe._pvt_ptr if eglframe is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamProducerReturnFrame(cyconn, cyeglframe_ptr, cypStream)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33628
 *     cdef cyruntime.cudaEglFrame* cyeglframe_ptr = eglframe._pvt_ptr if eglframe is not None else NULL
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerReturnFrame(cyconn, cyeglframe_ptr, cypStream)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_10 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerReturnFrame(__pyx_v_cyconn, __pyx_v_cyeglframe_ptr, __pyx_v_cypStream); if (unlikely(__pyx_t_10 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33628, __pyx_L10_error)
        __pyx_v_err = __pyx_t_10;
      }

      /* "cuda/bindings/runtime.pyx":33627
 *         raise TypeError("Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found " + str(type(conn)))
 *     cdef cyruntime.cudaEglFrame* cyeglframe_ptr = eglframe._pvt_ptr if eglframe is not None else NULL
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEGLStreamProducerReturnFrame(cyconn, cyeglframe_ptr, cypStream)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L11;
        }
        __pyx_L10_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L11:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33629
 *     with nogil:
 *         err = cyruntime.cudaEGLStreamProducerReturnFrame(cyconn, cyeglframe_ptr, cypStream)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 33629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 33629, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33579
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerReturnFrame(conn, eglframe : Optional[cudaEglFrame], pStream):
 *     """ Return the CUDA eglFrame to the EGLStream last released by the consumer.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEGLStreamProducerReturnFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ppStream);
  __Pyx_XDECREF(__pyx_v_pconn);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33631
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned int mipLevel):
 *     """ Get an eglFrame through which to access a registered EGL graphics resource.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_647cudaGraphicsResourceGetMappedEglFrame(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_7runtime_646cudaGraphicsResourceGetMappedEglFrame, "cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned int mipLevel)\n\nGet an eglFrame through which to access a registered EGL graphics resource.\n\nReturns in `*eglFrame` an eglFrame pointer through which the registered\ngraphics resource `resource` may be accessed. This API can only be\ncalled for EGL graphics resources.\n\nThe :py:obj:`~.cudaEglFrame` is defined as\n\n**View CUDA Toolkit Documentation for a C++ code example**\n\nParameters\n----------\nresource : :py:obj:`~.cudaGraphicsResource_t`\n    Registered resource to access.\nindex : unsigned int\n    Index for cubemap surfaces.\nmipLevel : unsigned int\n    Mipmap level for the subresource to access.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorUnknown`\neglFrame : :py:obj:`~.cudaEglFrame`\n    Returned eglFrame.\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cuGraphicsResourceGetMappedEglFrame`\n\nNotes\n-----\nNote that in case of multiplanar `*eglFrame`, pitch of only first plane (unsigned int :py:obj:`~.cudaEglPlaneDesc.pitch`) is to be considered by the application.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_647cudaGraphicsResourceGetMappedEglFrame = {"cudaGraphicsResourceGetMappedEglFrame", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_647cudaGraphicsResourceGetMappedEglFrame, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_646cudaGraphicsResourceGetMappedEglFrame};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_647cudaGraphicsResourceGetMappedEglFrame(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_resource = 0;
  unsigned int __pyx_v_index;
  unsigned int __pyx_v_mipLevel;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsResourceGetMappedEglFrame (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_resource,&__pyx_mstate_global->__pyx_n_u_index,&__pyx_mstate_global->__pyx_n_u_mipLevel,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, 33631, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33631, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33631, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33631, __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, "cudaGraphicsResourceGetMappedEglFrame", 0) < (0)) __PYX_ERR(0, 33631, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedEglFrame", 1, 3, 3, i); __PYX_ERR(0, 33631, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 33631, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33631, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33631, __pyx_L3_error)
    }
    __pyx_v_resource = values[0];
    __pyx_v_index = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_index == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33632, __pyx_L3_error)
    __pyx_v_mipLevel = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_mipLevel == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33632, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsResourceGetMappedEglFrame", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 33631, __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.runtime.cudaGraphicsResourceGetMappedEglFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_646cudaGraphicsResourceGetMappedEglFrame(__pyx_self, __pyx_v_resource, __pyx_v_index, __pyx_v_mipLevel);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_646cudaGraphicsResourceGetMappedEglFrame(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_resource, unsigned int __pyx_v_index, unsigned int __pyx_v_mipLevel) {
  cudaGraphicsResource_t __pyx_v_cyresource;
  PyObject *__pyx_v_presource = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *__pyx_v_eglFrame = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsResourceGetMappedEglFrame", 0);

  /* "cuda/bindings/runtime.pyx":33668
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
  __pyx_t_1 = (__pyx_v_resource == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33669
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:
 *         presource = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_presource = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33668
 *     """
 *     cdef cyruntime.cudaGraphicsResource_t cyresource
 *     if resource is None:             # <<<<<<<<<<<<<<
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33670
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_resource, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33671
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):
 *         presource = int(resource)             # <<<<<<<<<<<<<<
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_resource); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33671, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_presource = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33670
 *     if resource is None:
 *         presource = 0
 *     elif isinstance(resource, (cudaGraphicsResource_t,)):             # <<<<<<<<<<<<<<
 *         presource = int(resource)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33673
 *         presource = int(resource)
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))             # <<<<<<<<<<<<<<
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaEglFrame eglFrame = cudaEglFrame()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_resource};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33673, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33673, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_presource = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33674
 *     else:
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource             # <<<<<<<<<<<<<<
 *     cdef cudaEglFrame eglFrame = cudaEglFrame()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_presource); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33674, __pyx_L1_error)
  __pyx_v_cyresource = ((cudaGraphicsResource_t)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33675
 *         presource = int(cudaGraphicsResource_t(resource))
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaEglFrame eglFrame = cudaEglFrame()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedEglFrame(<cyruntime.cudaEglFrame*>eglFrame._pvt_ptr, cyresource, index, mipLevel)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33675, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_eglFrame = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":33676
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaEglFrame eglFrame = cudaEglFrame()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsResourceGetMappedEglFrame(<cyruntime.cudaEglFrame*>eglFrame._pvt_ptr, cyresource, index, mipLevel)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33677
 *     cdef cudaEglFrame eglFrame = cudaEglFrame()
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedEglFrame(<cyruntime.cudaEglFrame*>eglFrame._pvt_ptr, cyresource, index, mipLevel)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedEglFrame(((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame *)__pyx_v_eglFrame->__pyx_base._pvt_ptr), __pyx_v_cyresource, __pyx_v_index, __pyx_v_mipLevel); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33677, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":33676
 *     cyresource = <cyruntime.cudaGraphicsResource_t><void_ptr>presource
 *     cdef cudaEglFrame eglFrame = cudaEglFrame()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsResourceGetMappedEglFrame(<cyruntime.cudaEglFrame*>eglFrame._pvt_ptr, cyresource, index, mipLevel)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33678
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedEglFrame(<cyruntime.cudaEglFrame*>eglFrame._pvt_ptr, cyresource, index, mipLevel)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], eglFrame)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33679
 *         err = cyruntime.cudaGraphicsResourceGetMappedEglFrame(<cyruntime.cudaEglFrame*>eglFrame._pvt_ptr, cyresource, index, mipLevel)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], eglFrame)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33679, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33679, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33679, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33679, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33679, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 33679, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33678
 *     with nogil:
 *         err = cyruntime.cudaGraphicsResourceGetMappedEglFrame(<cyruntime.cudaEglFrame*>eglFrame._pvt_ptr, cyresource, index, mipLevel)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], eglFrame)
*/
  }

  /* "cuda/bindings/runtime.pyx":33680
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], eglFrame)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 33680, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_eglFrame);
  __Pyx_GIVEREF((PyObject *)__pyx_v_eglFrame);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_eglFrame)) != (0)) __PYX_ERR(0, 33680, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33631
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned int mipLevel):
 *     """ Get an eglFrame through which to access a registered EGL graphics resource.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsResourceGetMappedEglFrame", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_presource);
  __Pyx_XDECREF((PyObject *)__pyx_v_eglFrame);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33682
 *     return (_dict_cudaError_t[err], eglFrame)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreateFromEGLSync(eglSync, unsigned int flags):
 *     """ Creates an event from EGLSync object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_649cudaEventCreateFromEGLSync(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_7runtime_648cudaEventCreateFromEGLSync, "cudaEventCreateFromEGLSync(eglSync, unsigned int flags)\n\nCreates an event from EGLSync object.\n\nCreates an event *phEvent from an EGLSyncKHR eglSync with the flages\nspecified via `flags`. Valid flags include:\n\n- :py:obj:`~.cudaEventDefault`: Default event creation flag.\n\n- :py:obj:`~.cudaEventBlockingSync`: Specifies that the created event\n  should use blocking synchronization. A CPU thread that uses\n  :py:obj:`~.cudaEventSynchronize()` to wait on an event created with\n  this flag will block until the event has actually been completed.\n\n:py:obj:`~.cudaEventRecord` and TimingData are not supported for events\ncreated from EGLSync.\n\nThe EGLSyncKHR is an opaque handle to an EGL sync object. typedef void*\nEGLSyncKHR\n\nParameters\n----------\neglSync : :py:obj:`~.EGLSyncKHR`\n    Opaque handle to EGLSync object\nflags : unsigned int\n    Event creation flags\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorLaunchFailure`, :py:obj:`~.cudaErrorMemoryAllocation`\nphEvent : :py:obj:`~.cudaEvent_t`\n    Returns newly created event\n\nSee Also\n--------\n:py:obj:`~.cudaEventQuery`, :py:obj:`~.cudaEventSynchronize`, :py:obj:`~.cudaEventDestroy`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_649cudaEventCreateFromEGLSync = {"cudaEventCreateFromEGLSync", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_649cudaEventCreateFromEGLSync, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_648cudaEventCreateFromEGLSync};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_649cudaEventCreateFromEGLSync(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_eglSync = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaEventCreateFromEGLSync (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_eglSync,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 33682, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33682, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33682, __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, "cudaEventCreateFromEGLSync", 0) < (0)) __PYX_ERR(0, 33682, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEventCreateFromEGLSync", 1, 2, 2, i); __PYX_ERR(0, 33682, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 33682, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33682, __pyx_L3_error)
    }
    __pyx_v_eglSync = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33683, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEventCreateFromEGLSync", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 33682, __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.runtime.cudaEventCreateFromEGLSync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_648cudaEventCreateFromEGLSync(__pyx_self, __pyx_v_eglSync, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_648cudaEventCreateFromEGLSync(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_eglSync, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR __pyx_v_cyeglSync;
  PyObject *__pyx_v_peglSync = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_phEvent = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaEventCreateFromEGLSync", 0);

  /* "cuda/bindings/runtime.pyx":33721
 *     """
 *     cdef cyruntime.EGLSyncKHR cyeglSync
 *     if eglSync is None:             # <<<<<<<<<<<<<<
 *         peglSync = 0
 *     elif isinstance(eglSync, (EGLSyncKHR,)):
*/
  __pyx_t_1 = (__pyx_v_eglSync == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33722
 *     cdef cyruntime.EGLSyncKHR cyeglSync
 *     if eglSync is None:
 *         peglSync = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(eglSync, (EGLSyncKHR,)):
 *         peglSync = int(eglSync)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_peglSync = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33721
 *     """
 *     cdef cyruntime.EGLSyncKHR cyeglSync
 *     if eglSync is None:             # <<<<<<<<<<<<<<
 *         peglSync = 0
 *     elif isinstance(eglSync, (EGLSyncKHR,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33723
 *     if eglSync is None:
 *         peglSync = 0
 *     elif isinstance(eglSync, (EGLSyncKHR,)):             # <<<<<<<<<<<<<<
 *         peglSync = int(eglSync)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_eglSync, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33724
 *         peglSync = 0
 *     elif isinstance(eglSync, (EGLSyncKHR,)):
 *         peglSync = int(eglSync)             # <<<<<<<<<<<<<<
 *     else:
 *         peglSync = int(EGLSyncKHR(eglSync))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_eglSync); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33724, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_peglSync = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33723
 *     if eglSync is None:
 *         peglSync = 0
 *     elif isinstance(eglSync, (EGLSyncKHR,)):             # <<<<<<<<<<<<<<
 *         peglSync = int(eglSync)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33726
 *         peglSync = int(eglSync)
 *     else:
 *         peglSync = int(EGLSyncKHR(eglSync))             # <<<<<<<<<<<<<<
 *     cyeglSync = <cyruntime.EGLSyncKHR><void_ptr>peglSync
 *     cdef cudaEvent_t phEvent = cudaEvent_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_eglSync};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33726, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33726, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_peglSync = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33727
 *     else:
 *         peglSync = int(EGLSyncKHR(eglSync))
 *     cyeglSync = <cyruntime.EGLSyncKHR><void_ptr>peglSync             # <<<<<<<<<<<<<<
 *     cdef cudaEvent_t phEvent = cudaEvent_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_peglSync); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33727, __pyx_L1_error)
  __pyx_v_cyeglSync = ((__pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33728
 *         peglSync = int(EGLSyncKHR(eglSync))
 *     cyeglSync = <cyruntime.EGLSyncKHR><void_ptr>peglSync
 *     cdef cudaEvent_t phEvent = cudaEvent_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaEventCreateFromEGLSync(<cyruntime.cudaEvent_t*>phEvent._pvt_ptr, cyeglSync, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33728, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_phEvent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":33729
 *     cyeglSync = <cyruntime.EGLSyncKHR><void_ptr>peglSync
 *     cdef cudaEvent_t phEvent = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventCreateFromEGLSync(<cyruntime.cudaEvent_t*>phEvent._pvt_ptr, cyeglSync, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33730
 *     cdef cudaEvent_t phEvent = cudaEvent_t()
 *     with nogil:
 *         err = cyruntime.cudaEventCreateFromEGLSync(<cyruntime.cudaEvent_t*>phEvent._pvt_ptr, cyeglSync, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreateFromEGLSync(((cudaEvent_t *)__pyx_v_phEvent->__pyx_base._pvt_ptr), __pyx_v_cyeglSync, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33730, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":33729
 *     cyeglSync = <cyruntime.EGLSyncKHR><void_ptr>peglSync
 *     cdef cudaEvent_t phEvent = cudaEvent_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaEventCreateFromEGLSync(<cyruntime.cudaEvent_t*>phEvent._pvt_ptr, cyeglSync, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33731
 *     with nogil:
 *         err = cyruntime.cudaEventCreateFromEGLSync(<cyruntime.cudaEvent_t*>phEvent._pvt_ptr, cyeglSync, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phEvent)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33732
 *         err = cyruntime.cudaEventCreateFromEGLSync(<cyruntime.cudaEvent_t*>phEvent._pvt_ptr, cyeglSync, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], phEvent)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33732, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 33732, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33731
 *     with nogil:
 *         err = cyruntime.cudaEventCreateFromEGLSync(<cyruntime.cudaEvent_t*>phEvent._pvt_ptr, cyeglSync, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phEvent)
*/
  }

  /* "cuda/bindings/runtime.pyx":33733
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], phEvent)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 33733, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_phEvent);
  __Pyx_GIVEREF((PyObject *)__pyx_v_phEvent);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_phEvent)) != (0)) __PYX_ERR(0, 33733, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33682
 *     return (_dict_cudaError_t[err], eglFrame)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreateFromEGLSync(eglSync, unsigned int flags):
 *     """ Creates an event from EGLSync object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaEventCreateFromEGLSync", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_peglSync);
  __Pyx_XDECREF((PyObject *)__pyx_v_phEvent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33735
 *     return (_dict_cudaError_t[err], phEvent)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaProfilerStart():
 *     """ Enable profiling.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_651cudaProfilerStart(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_650cudaProfilerStart, "cudaProfilerStart()\n\nEnable profiling.\n\nEnables profile collection by the active profiling tool for the current\ncontext. If profiling is already enabled, then\n:py:obj:`~.cudaProfilerStart()` has no effect.\n\ncudaProfilerStart and cudaProfilerStop APIs are used to\nprogrammatically control the profiling granularity by allowing\nprofiling to be done only on selective pieces of code.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\n\nSee Also\n--------\n:py:obj:`~.cudaProfilerStop`, :py:obj:`~.cuProfilerStart`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_651cudaProfilerStart = {"cudaProfilerStart", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_651cudaProfilerStart, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_650cudaProfilerStart};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_651cudaProfilerStart(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaProfilerStart (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_650cudaProfilerStart(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_650cudaProfilerStart(CYTHON_UNUSED PyObject *__pyx_self) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaProfilerStart", 0);

  /* "cuda/bindings/runtime.pyx":33756
 *     :py:obj:`~.cudaProfilerStop`, :py:obj:`~.cuProfilerStart`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaProfilerStart()
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33757
 *     """
 *     with nogil:
 *         err = cyruntime.cudaProfilerStart()             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaProfilerStart(); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33757, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":33756
 *     :py:obj:`~.cudaProfilerStop`, :py:obj:`~.cuProfilerStart`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaProfilerStart()
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33758
 *     with nogil:
 *         err = cyruntime.cudaProfilerStart()
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 33758, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33735
 *     return (_dict_cudaError_t[err], phEvent)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaProfilerStart():
 *     """ Enable profiling.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaProfilerStart", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33760
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaProfilerStop():
 *     """ Disable profiling.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_653cudaProfilerStop(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_652cudaProfilerStop, "cudaProfilerStop()\n\nDisable profiling.\n\nDisables profile collection by the active profiling tool for the\ncurrent context. If profiling is already disabled, then\n:py:obj:`~.cudaProfilerStop()` has no effect.\n\ncudaProfilerStart and cudaProfilerStop APIs are used to\nprogrammatically control the profiling granularity by allowing\nprofiling to be done only on selective pieces of code.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\n\nSee Also\n--------\n:py:obj:`~.cudaProfilerStart`, :py:obj:`~.cuProfilerStop`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_653cudaProfilerStop = {"cudaProfilerStop", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_653cudaProfilerStop, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_652cudaProfilerStop};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_653cudaProfilerStop(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaProfilerStop (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_652cudaProfilerStop(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_652cudaProfilerStop(CYTHON_UNUSED PyObject *__pyx_self) {
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaProfilerStop", 0);

  /* "cuda/bindings/runtime.pyx":33781
 *     :py:obj:`~.cudaProfilerStart`, :py:obj:`~.cuProfilerStop`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaProfilerStop()
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33782
 *     """
 *     with nogil:
 *         err = cyruntime.cudaProfilerStop()             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_cudaProfilerStop(); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33782, __pyx_L4_error)
        __pyx_v_err = __pyx_t_1;
      }

      /* "cuda/bindings/runtime.pyx":33781
 *     :py:obj:`~.cudaProfilerStart`, :py:obj:`~.cuProfilerStop`
 *     """
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaProfilerStop()
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33783
 *     with nogil:
 *         err = cyruntime.cudaProfilerStop()
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 33783, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33760
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaProfilerStop():
 *     """ Disable profiling.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaProfilerStop", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33785
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : cudaGLDeviceList):
 *     """ Gets the CUDA devices associated with the current OpenGL context.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_655cudaGLGetDevices(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_7runtime_654cudaGLGetDevices, "cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList: cudaGLDeviceList)\n\nGets the CUDA devices associated with the current OpenGL context.\n\nReturns in `*pCudaDeviceCount` the number of CUDA-compatible devices\ncorresponding to the current OpenGL context. Also returns in\n`*pCudaDevices` at most `cudaDeviceCount` of the CUDA-compatible\ndevices corresponding to the current OpenGL context. If any of the GPUs\nbeing used by the current OpenGL context are not CUDA capable then the\ncall will return cudaErrorNoDevice.\n\nParameters\n----------\ncudaDeviceCount : unsigned int\n    The size of the output device array `pCudaDevices`\ndeviceList : cudaGLDeviceList\n    The set of devices to return. This set may be cudaGLDeviceListAll\n    for all devices, cudaGLDeviceListCurrentFrame for the devices used\n    to render the current frame (in SLI), or cudaGLDeviceListNextFrame\n    for the devices used to render the next frame (in SLI).\n\nReturns\n-------\ncudaError_t\n    cudaSuccess\n    cudaErrorNoDevice\n    cudaErrorInvalidGraphicsContext\n    cudaErrorUnknown\npCudaDeviceCount : unsigned int\n    Returned number of CUDA devices corresponding to the current OpenGL\n    context\npCudaDevices : list[int]\n    Returned CUDA devices corresponding to the current OpenGL context\n\nSee Also\n--------\n~.cudaGraphicsUnregisterResource\n~.cudaGraphicsMapResources\n~.cudaGraphicsSubResourceGetMappedArray\n~.cudaGraphicsResourceGetMappedPointer\n~.cuGLGetDevices\n\nNotes\n-----\nThis function is not supported on Mac OS X.");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_655cudaGLGetDevices = {"cudaGLGetDevices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_655cudaGLGetDevices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_654cudaGLGetDevices};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_655cudaGLGetDevices(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
) {
  unsigned int __pyx_v_cudaDeviceCount;
  PyObject *__pyx_v_deviceList = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGLGetDevices (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_cudaDeviceCount,&__pyx_mstate_global->__pyx_n_u_deviceList,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, 33785, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33785, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33785, __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, "cudaGLGetDevices", 0) < (0)) __PYX_ERR(0, 33785, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGLGetDevices", 1, 2, 2, i); __PYX_ERR(0, 33785, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 33785, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33785, __pyx_L3_error)
    }
    __pyx_v_cudaDeviceCount = __Pyx_PyLong_As_unsigned_int(values[0]); if (unlikely((__pyx_v_cudaDeviceCount == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33786, __pyx_L3_error)
    __pyx_v_deviceList = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGLGetDevices", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 33785, __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.runtime.cudaGLGetDevices", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(((PyObject *)__pyx_v_deviceList) == Py_None)) {
    PyErr_Format(PyExc_TypeError, "Argument '%.200s' must not be None", "deviceList"); __PYX_ERR(0, 33786, __pyx_L1_error)
  }
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_654cudaGLGetDevices(__pyx_self, __pyx_v_cudaDeviceCount, __pyx_v_deviceList);

  /* 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_7runtime_654cudaGLGetDevices(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_cudaDeviceCount, PyObject *__pyx_v_deviceList) {
  unsigned int __pyx_v_pCudaDeviceCount;
  int *__pyx_v_cypCudaDevices;
  PyObject *__pyx_v_pypCudaDevices = NULL;
  enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList __pyx_v_cydeviceList;
  cudaError_t __pyx_v_err;
  unsigned int __pyx_10genexpr289__pyx_v_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList __pyx_t_8;
  cudaError_t __pyx_t_9;
  unsigned int __pyx_t_10;
  unsigned int __pyx_t_11;
  unsigned int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGLGetDevices", 0);

  /* "cuda/bindings/runtime.pyx":33832
 * 
 *     """
 *     cdef unsigned int pCudaDeviceCount = 0             # <<<<<<<<<<<<<<
 *     cdef int* cypCudaDevices = NULL
 *     pypCudaDevices = []
*/
  __pyx_v_pCudaDeviceCount = 0;

  /* "cuda/bindings/runtime.pyx":33833
 *     """
 *     cdef unsigned int pCudaDeviceCount = 0
 *     cdef int* cypCudaDevices = NULL             # <<<<<<<<<<<<<<
 *     pypCudaDevices = []
 *     if cudaDeviceCount != 0:
*/
  __pyx_v_cypCudaDevices = NULL;

  /* "cuda/bindings/runtime.pyx":33834
 *     cdef unsigned int pCudaDeviceCount = 0
 *     cdef int* cypCudaDevices = NULL
 *     pypCudaDevices = []             # <<<<<<<<<<<<<<
 *     if cudaDeviceCount != 0:
 *         cypCudaDevices = <int*>calloc(cudaDeviceCount, sizeof(int))
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_pypCudaDevices = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":33835
 *     cdef int* cypCudaDevices = NULL
 *     pypCudaDevices = []
 *     if cudaDeviceCount != 0:             # <<<<<<<<<<<<<<
 *         cypCudaDevices = <int*>calloc(cudaDeviceCount, sizeof(int))
 *         if cypCudaDevices is NULL:
*/
  __pyx_t_2 = (__pyx_v_cudaDeviceCount != 0);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":33836
 *     pypCudaDevices = []
 *     if cudaDeviceCount != 0:
 *         cypCudaDevices = <int*>calloc(cudaDeviceCount, sizeof(int))             # <<<<<<<<<<<<<<
 *         if cypCudaDevices is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int)))
*/
    __pyx_v_cypCudaDevices = ((int *)calloc(__pyx_v_cudaDeviceCount, (sizeof(int))));

    /* "cuda/bindings/runtime.pyx":33837
 *     if cudaDeviceCount != 0:
 *         cypCudaDevices = <int*>calloc(cudaDeviceCount, sizeof(int))
 *         if cypCudaDevices is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int)))
 *     cdef cyruntime.cudaGLDeviceList cydeviceList = deviceList.value
*/
    __pyx_t_2 = (__pyx_v_cypCudaDevices == NULL);
    if (unlikely(__pyx_t_2)) {

      /* "cuda/bindings/runtime.pyx":33838
 *         cypCudaDevices = <int*>calloc(cudaDeviceCount, sizeof(int))
 *         if cypCudaDevices is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.cudaGLDeviceList cydeviceList = deviceList.value
 *     with nogil:
*/
      __pyx_t_3 = NULL;
      __pyx_t_4 = __Pyx_PyLong_From_unsigned_int(__pyx_v_cudaDeviceCount); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33838, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 33838, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_length_x_size, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33838, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_x_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 33838, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyLong_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33838, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 33838, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33838, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__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_1)) __PYX_ERR(0, 33838, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 33838, __pyx_L1_error)

      /* "cuda/bindings/runtime.pyx":33837
 *     if cudaDeviceCount != 0:
 *         cypCudaDevices = <int*>calloc(cudaDeviceCount, sizeof(int))
 *         if cypCudaDevices is NULL:             # <<<<<<<<<<<<<<
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int)))
 *     cdef cyruntime.cudaGLDeviceList cydeviceList = deviceList.value
*/
    }

    /* "cuda/bindings/runtime.pyx":33835
 *     cdef int* cypCudaDevices = NULL
 *     pypCudaDevices = []
 *     if cudaDeviceCount != 0:             # <<<<<<<<<<<<<<
 *         cypCudaDevices = <int*>calloc(cudaDeviceCount, sizeof(int))
 *         if cypCudaDevices is NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":33839
 *         if cypCudaDevices is NULL:
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int)))
 *     cdef cyruntime.cudaGLDeviceList cydeviceList = deviceList.value             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGLGetDevices(&pCudaDeviceCount, cypCudaDevices, cudaDeviceCount, cydeviceList)
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_deviceList, __pyx_mstate_global->__pyx_n_u_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = ((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)__Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 33839, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cydeviceList = __pyx_t_8;

  /* "cuda/bindings/runtime.pyx":33840
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int)))
 *     cdef cyruntime.cudaGLDeviceList cydeviceList = deviceList.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGLGetDevices(&pCudaDeviceCount, cypCudaDevices, cudaDeviceCount, cydeviceList)
 *     if cudaError_t(err) == cudaError_t(0):
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33841
 *     cdef cyruntime.cudaGLDeviceList cydeviceList = deviceList.value
 *     with nogil:
 *         err = cyruntime.cudaGLGetDevices(&pCudaDeviceCount, cypCudaDevices, cudaDeviceCount, cydeviceList)             # <<<<<<<<<<<<<<
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypCudaDevices = [<void_ptr>cypCudaDevices[idx] for idx in range(cudaDeviceCount)]
*/
        __pyx_t_9 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGLGetDevices((&__pyx_v_pCudaDeviceCount), __pyx_v_cypCudaDevices, __pyx_v_cudaDeviceCount, __pyx_v_cydeviceList); if (unlikely(__pyx_t_9 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33841, __pyx_L6_error)
        __pyx_v_err = __pyx_t_9;
      }

      /* "cuda/bindings/runtime.pyx":33840
 *             raise MemoryError('Failed to allocate length x size memory: ' + str(cudaDeviceCount) + 'x' + str(sizeof(int)))
 *     cdef cyruntime.cudaGLDeviceList cydeviceList = deviceList.value
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGLGetDevices(&pCudaDeviceCount, cypCudaDevices, cudaDeviceCount, cydeviceList)
 *     if cudaError_t(err) == cudaError_t(0):
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L7;
        }
        __pyx_L6_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L7:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33842
 *     with nogil:
 *         err = cyruntime.cudaGLGetDevices(&pCudaDeviceCount, cypCudaDevices, cudaDeviceCount, cydeviceList)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pypCudaDevices = [<void_ptr>cypCudaDevices[idx] for idx in range(cudaDeviceCount)]
 *     if cypCudaDevices is not NULL:
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 33842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_6};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33842, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_int_0};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33842, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_4 = PyObject_RichCompare(__pyx_t_1, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 33842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":33843
 *         err = cyruntime.cudaGLGetDevices(&pCudaDeviceCount, cypCudaDevices, cudaDeviceCount, cydeviceList)
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypCudaDevices = [<void_ptr>cypCudaDevices[idx] for idx in range(cudaDeviceCount)]             # <<<<<<<<<<<<<<
 *     if cypCudaDevices is not NULL:
 *         free(cypCudaDevices)
*/
    { /* enter inner scope */
      __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33843, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __pyx_v_cudaDeviceCount;
      __pyx_t_11 = __pyx_t_10;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {
        __pyx_10genexpr289__pyx_v_idx = __pyx_t_12;
        __pyx_t_3 = __Pyx_PyLong_From_unsigned_PY_LONG_LONG(((__pyx_t_4cuda_8bindings_7runtime_void_ptr)(__pyx_v_cypCudaDevices[__pyx_10genexpr289__pyx_v_idx]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33843, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 33843, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_pypCudaDevices, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "cuda/bindings/runtime.pyx":33842
 *     with nogil:
 *         err = cyruntime.cudaGLGetDevices(&pCudaDeviceCount, cypCudaDevices, cudaDeviceCount, cydeviceList)
 *     if cudaError_t(err) == cudaError_t(0):             # <<<<<<<<<<<<<<
 *         pypCudaDevices = [<void_ptr>cypCudaDevices[idx] for idx in range(cudaDeviceCount)]
 *     if cypCudaDevices is not NULL:
*/
  }

  /* "cuda/bindings/runtime.pyx":33844
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypCudaDevices = [<void_ptr>cypCudaDevices[idx] for idx in range(cudaDeviceCount)]
 *     if cypCudaDevices is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypCudaDevices)
 *     if err != cyruntime.cudaSuccess:
*/
  __pyx_t_2 = (__pyx_v_cypCudaDevices != NULL);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":33845
 *         pypCudaDevices = [<void_ptr>cypCudaDevices[idx] for idx in range(cudaDeviceCount)]
 *     if cypCudaDevices is not NULL:
 *         free(cypCudaDevices)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
*/
    free(__pyx_v_cypCudaDevices);

    /* "cuda/bindings/runtime.pyx":33844
 *     if cudaError_t(err) == cudaError_t(0):
 *         pypCudaDevices = [<void_ptr>cypCudaDevices[idx] for idx in range(cudaDeviceCount)]
 *     if cypCudaDevices is not NULL:             # <<<<<<<<<<<<<<
 *         free(cypCudaDevices)
 *     if err != cyruntime.cudaSuccess:
*/
  }

  /* "cuda/bindings/runtime.pyx":33846
 *     if cypCudaDevices is not NULL:
 *         free(cypCudaDevices)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pCudaDeviceCount, pypCudaDevices)
*/
  __pyx_t_2 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":33847
 *         free(cypCudaDevices)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], pCudaDeviceCount, pypCudaDevices)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33847, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33847, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33847, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33847, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 33847, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 33847, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, Py_None) != (0)) __PYX_ERR(0, 33847, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33846
 *     if cypCudaDevices is not NULL:
 *         free(cypCudaDevices)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pCudaDeviceCount, pypCudaDevices)
*/
  }

  /* "cuda/bindings/runtime.pyx":33848
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None, None)
 *     return (_dict_cudaError_t[err], pCudaDeviceCount, pypCudaDevices)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_int(__pyx_v_pCudaDeviceCount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33848, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 33848, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 33848, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_pypCudaDevices);
  __Pyx_GIVEREF(__pyx_v_pypCudaDevices);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_pypCudaDevices) != (0)) __PYX_ERR(0, 33848, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33785
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : cudaGLDeviceList):
 *     """ Gets the CUDA devices associated with the current OpenGL context.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGLGetDevices", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pypCudaDevices);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33850
 *     return (_dict_cudaError_t[err], pCudaDeviceCount, pypCudaDevices)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsGLRegisterImage(image, target, unsigned int flags):
 *     """ Register an OpenGL texture or renderbuffer object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_657cudaGraphicsGLRegisterImage(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_7runtime_656cudaGraphicsGLRegisterImage, "cudaGraphicsGLRegisterImage(image, target, unsigned int flags)\n\nRegister an OpenGL texture or renderbuffer object.\n\nRegisters the texture or renderbuffer object specified by `image` for\naccess by CUDA. A handle to the registered object is returned as\n`resource`.\n\n`target` must match the type of the object, and must be one of\n:py:obj:`~.GL_TEXTURE_2D`, :py:obj:`~.GL_TEXTURE_RECTANGLE`,\n:py:obj:`~.GL_TEXTURE_CUBE_MAP`, :py:obj:`~.GL_TEXTURE_3D`,\n:py:obj:`~.GL_TEXTURE_2D_ARRAY`, or :py:obj:`~.GL_RENDERBUFFER`.\n\nThe register flags `flags` specify the intended usage, as follows:\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsNone`: Specifies no hints about\n  how this resource will be used. It is therefore assumed that this\n  resource will be read from and written to by CUDA. This is the\n  default value.\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsReadOnly`: Specifies that CUDA\n  will not write to this resource.\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsWriteDiscard`: Specifies that\n  CUDA will not read from this resource and will write over the entire\n  contents of the resource, so none of the data previously stored in\n  the resource will be preserved.\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsSurfaceLoadStore`: Specifies that\n  CUDA will bind this resource to a surface reference.\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsTextureGather`: Specifies that\n  CUDA will perform texture gather operations on this resource.\n\nThe following image formats are supported. For brevity's sake, the list\nis abbreviated. For ex., {GL_R, GL_RG} X {8, 16} would expand to the\nfollowing 4 formats {GL_R8, GL_R16, GL_RG8, GL_RG16} :\n\n- GL_RED, GL_RG, GL_RGBA, GL_LUMINANCE, GL_ALPHA, GL_LUMINANCE_ALPHA,\n  GL_INTENSITY\n\n- {GL_R, GL_RG, GL_RGBA} X {8, 16, 16F, 32F, 8UI, 16UI, 32UI, 8I, 16I,\n  32I}\n\n- {GL_LUMINANCE, GL_ALPHA, GL_LUMINANCE_ALPHA, GL_INTENSITY} X {8, 16,\n  16F_ARB, 32F_ARB, 8UI_EXT, 16UI_EXT, 32UI_EXT, 8I_EXT, 16I_EXT,\n  32I_EXT}\n\nThe following image classes ""are currently disallowed:\n\n- Textures with borders\n\n- Multisampled renderbuffers\n\nParameters\n----------\nimage : :py:obj:`~.GLuint`\n    name of texture or renderbuffer object to be registered\ntarget : :py:obj:`~.GLenum`\n    Identifies the type of object specified by `image`\nflags : unsigned int\n    Register flags\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorOperatingSystem`, :py:obj:`~.cudaErrorUnknown`\nresource : :py:obj:`~.cudaGraphicsResource`\n    Pointer to the returned object handle\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cuGraphicsGLRegisterImage`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_657cudaGraphicsGLRegisterImage = {"cudaGraphicsGLRegisterImage", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_657cudaGraphicsGLRegisterImage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_656cudaGraphicsGLRegisterImage};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_657cudaGraphicsGLRegisterImage(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_image = 0;
  PyObject *__pyx_v_target = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsGLRegisterImage (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_image,&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 33850, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33850, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33850, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33850, __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, "cudaGraphicsGLRegisterImage", 0) < (0)) __PYX_ERR(0, 33850, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterImage", 1, 3, 3, i); __PYX_ERR(0, 33850, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 33850, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33850, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 33850, __pyx_L3_error)
    }
    __pyx_v_image = values[0];
    __pyx_v_target = values[1];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[2]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33851, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterImage", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 33850, __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.runtime.cudaGraphicsGLRegisterImage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_656cudaGraphicsGLRegisterImage(__pyx_self, __pyx_v_image, __pyx_v_target, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_656cudaGraphicsGLRegisterImage(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_image, PyObject *__pyx_v_target, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_9cyruntime_GLenum __pyx_v_cytarget;
  PyObject *__pyx_v_ptarget = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_GLuint __pyx_v_cyimage;
  PyObject *__pyx_v_pimage = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_resource = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsGLRegisterImage", 0);

  /* "cuda/bindings/runtime.pyx":33925
 *     """
 *     cdef cyruntime.GLenum cytarget
 *     if target is None:             # <<<<<<<<<<<<<<
 *         ptarget = 0
 *     elif isinstance(target, (GLenum,)):
*/
  __pyx_t_1 = (__pyx_v_target == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33926
 *     cdef cyruntime.GLenum cytarget
 *     if target is None:
 *         ptarget = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(target, (GLenum,)):
 *         ptarget = int(target)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_ptarget = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33925
 *     """
 *     cdef cyruntime.GLenum cytarget
 *     if target is None:             # <<<<<<<<<<<<<<
 *         ptarget = 0
 *     elif isinstance(target, (GLenum,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33927
 *     if target is None:
 *         ptarget = 0
 *     elif isinstance(target, (GLenum,)):             # <<<<<<<<<<<<<<
 *         ptarget = int(target)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_target, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLenum); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33928
 *         ptarget = 0
 *     elif isinstance(target, (GLenum,)):
 *         ptarget = int(target)             # <<<<<<<<<<<<<<
 *     else:
 *         ptarget = int(GLenum(target))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_target); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33928, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_ptarget = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33927
 *     if target is None:
 *         ptarget = 0
 *     elif isinstance(target, (GLenum,)):             # <<<<<<<<<<<<<<
 *         ptarget = int(target)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33930
 *         ptarget = int(target)
 *     else:
 *         ptarget = int(GLenum(target))             # <<<<<<<<<<<<<<
 *     cytarget = <cyruntime.GLenum><void_ptr>ptarget
 *     cdef cyruntime.GLuint cyimage
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_target};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLenum, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33930, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33930, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_ptarget = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33931
 *     else:
 *         ptarget = int(GLenum(target))
 *     cytarget = <cyruntime.GLenum><void_ptr>ptarget             # <<<<<<<<<<<<<<
 *     cdef cyruntime.GLuint cyimage
 *     if image is None:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_ptarget); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33931, __pyx_L1_error)
  __pyx_v_cytarget = ((__pyx_t_4cuda_8bindings_9cyruntime_GLenum)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33933
 *     cytarget = <cyruntime.GLenum><void_ptr>ptarget
 *     cdef cyruntime.GLuint cyimage
 *     if image is None:             # <<<<<<<<<<<<<<
 *         pimage = 0
 *     elif isinstance(image, (GLuint,)):
*/
  __pyx_t_1 = (__pyx_v_image == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33934
 *     cdef cyruntime.GLuint cyimage
 *     if image is None:
 *         pimage = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(image, (GLuint,)):
 *         pimage = int(image)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pimage = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33933
 *     cytarget = <cyruntime.GLenum><void_ptr>ptarget
 *     cdef cyruntime.GLuint cyimage
 *     if image is None:             # <<<<<<<<<<<<<<
 *         pimage = 0
 *     elif isinstance(image, (GLuint,)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":33935
 *     if image is None:
 *         pimage = 0
 *     elif isinstance(image, (GLuint,)):             # <<<<<<<<<<<<<<
 *         pimage = int(image)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_image, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLuint); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33936
 *         pimage = 0
 *     elif isinstance(image, (GLuint,)):
 *         pimage = int(image)             # <<<<<<<<<<<<<<
 *     else:
 *         pimage = int(GLuint(image))
*/
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_image); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33936, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_pimage = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cuda/bindings/runtime.pyx":33935
 *     if image is None:
 *         pimage = 0
 *     elif isinstance(image, (GLuint,)):             # <<<<<<<<<<<<<<
 *         pimage = int(image)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":33938
 *         pimage = int(image)
 *     else:
 *         pimage = int(GLuint(image))             # <<<<<<<<<<<<<<
 *     cyimage = <cyruntime.GLuint><void_ptr>pimage
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
*/
  /*else*/ {
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_image};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLuint, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33938, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_t_2 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33938, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF((PyObject *)__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_pimage = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":33939
 *     else:
 *         pimage = int(GLuint(image))
 *     cyimage = <cyruntime.GLuint><void_ptr>pimage             # <<<<<<<<<<<<<<
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pimage); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33939, __pyx_L1_error)
  __pyx_v_cyimage = ((__pyx_t_4cuda_8bindings_9cyruntime_GLuint)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33940
 *         pimage = int(GLuint(image))
 *     cyimage = <cyruntime.GLuint><void_ptr>pimage
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsGLRegisterImage(resource._pvt_ptr, cyimage, cytarget, flags)
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33940, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_resource = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":33941
 *     cyimage = <cyruntime.GLuint><void_ptr>pimage
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsGLRegisterImage(resource._pvt_ptr, cyimage, cytarget, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33942
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphicsGLRegisterImage(resource._pvt_ptr, cyimage, cytarget, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsGLRegisterImage(__pyx_v_resource->_pvt_ptr, __pyx_v_cyimage, __pyx_v_cytarget, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33942, __pyx_L6_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":33941
 *     cyimage = <cyruntime.GLuint><void_ptr>pimage
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsGLRegisterImage(resource._pvt_ptr, cyimage, cytarget, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L7;
        }
        __pyx_L6_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L7:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33943
 *     with nogil:
 *         err = cyruntime.cudaGraphicsGLRegisterImage(resource._pvt_ptr, cyimage, cytarget, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33944
 *         err = cyruntime.cudaGraphicsGLRegisterImage(resource._pvt_ptr, cyimage, cytarget, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], resource)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33944, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None) != (0)) __PYX_ERR(0, 33944, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33943
 *     with nogil:
 *         err = cyruntime.cudaGraphicsGLRegisterImage(resource._pvt_ptr, cyimage, cytarget, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  }

  /* "cuda/bindings/runtime.pyx":33945
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 33945, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_resource);
  __Pyx_GIVEREF((PyObject *)__pyx_v_resource);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_resource)) != (0)) __PYX_ERR(0, 33945, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33850
 *     return (_dict_cudaError_t[err], pCudaDeviceCount, pypCudaDevices)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsGLRegisterImage(image, target, unsigned int flags):
 *     """ Register an OpenGL texture or renderbuffer object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsGLRegisterImage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ptarget);
  __Pyx_XDECREF(__pyx_v_pimage);
  __Pyx_XDECREF((PyObject *)__pyx_v_resource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":33947
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags):
 *     """ Registers an OpenGL buffer object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_659cudaGraphicsGLRegisterBuffer(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_7runtime_658cudaGraphicsGLRegisterBuffer, "cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags)\n\nRegisters an OpenGL buffer object.\n\nRegisters the buffer object specified by `buffer` for access by CUDA. A\nhandle to the registered object is returned as `resource`. The register\nflags `flags` specify the intended usage, as follows:\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsNone`: Specifies no hints about\n  how this resource will be used. It is therefore assumed that this\n  resource will be read from and written to by CUDA. This is the\n  default value.\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsReadOnly`: Specifies that CUDA\n  will not write to this resource.\n\n- :py:obj:`~.cudaGraphicsRegisterFlagsWriteDiscard`: Specifies that\n  CUDA will not read from this resource and will write over the entire\n  contents of the resource, so none of the data previously stored in\n  the resource will be preserved.\n\nParameters\n----------\nbuffer : :py:obj:`~.GLuint`\n    name of buffer object to be registered\nflags : unsigned int\n    Register flags\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorOperatingSystem`, :py:obj:`~.cudaErrorUnknown`\nresource : :py:obj:`~.cudaGraphicsResource`\n    Pointer to the returned object handle\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsMapResources`, :py:obj:`~.cudaGraphicsResourceGetMappedPointer`, :py:obj:`~.cuGraphicsGLRegisterBuffer`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_659cudaGraphicsGLRegisterBuffer = {"cudaGraphicsGLRegisterBuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_659cudaGraphicsGLRegisterBuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_658cudaGraphicsGLRegisterBuffer};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_659cudaGraphicsGLRegisterBuffer(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_buffer = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsGLRegisterBuffer (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_buffer,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 33947, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33947, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 33947, __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, "cudaGraphicsGLRegisterBuffer", 0) < (0)) __PYX_ERR(0, 33947, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterBuffer", 1, 2, 2, i); __PYX_ERR(0, 33947, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 33947, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 33947, __pyx_L3_error)
    }
    __pyx_v_buffer = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 33948, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsGLRegisterBuffer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 33947, __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.runtime.cudaGraphicsGLRegisterBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_658cudaGraphicsGLRegisterBuffer(__pyx_self, __pyx_v_buffer, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_658cudaGraphicsGLRegisterBuffer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_buffer, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_9cyruntime_GLuint __pyx_v_cybuffer;
  PyObject *__pyx_v_pbuffer = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_resource = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsGLRegisterBuffer", 0);

  /* "cuda/bindings/runtime.pyx":33987
 *     """
 *     cdef cyruntime.GLuint cybuffer
 *     if buffer is None:             # <<<<<<<<<<<<<<
 *         pbuffer = 0
 *     elif isinstance(buffer, (GLuint,)):
*/
  __pyx_t_1 = (__pyx_v_buffer == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33988
 *     cdef cyruntime.GLuint cybuffer
 *     if buffer is None:
 *         pbuffer = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(buffer, (GLuint,)):
 *         pbuffer = int(buffer)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pbuffer = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":33987
 *     """
 *     cdef cyruntime.GLuint cybuffer
 *     if buffer is None:             # <<<<<<<<<<<<<<
 *         pbuffer = 0
 *     elif isinstance(buffer, (GLuint,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33989
 *     if buffer is None:
 *         pbuffer = 0
 *     elif isinstance(buffer, (GLuint,)):             # <<<<<<<<<<<<<<
 *         pbuffer = int(buffer)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_buffer, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLuint); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33990
 *         pbuffer = 0
 *     elif isinstance(buffer, (GLuint,)):
 *         pbuffer = int(buffer)             # <<<<<<<<<<<<<<
 *     else:
 *         pbuffer = int(GLuint(buffer))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_buffer); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33990, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pbuffer = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":33989
 *     if buffer is None:
 *         pbuffer = 0
 *     elif isinstance(buffer, (GLuint,)):             # <<<<<<<<<<<<<<
 *         pbuffer = int(buffer)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":33992
 *         pbuffer = int(buffer)
 *     else:
 *         pbuffer = int(GLuint(buffer))             # <<<<<<<<<<<<<<
 *     cybuffer = <cyruntime.GLuint><void_ptr>pbuffer
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_buffer};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLuint, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33992, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33992, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pbuffer = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":33993
 *     else:
 *         pbuffer = int(GLuint(buffer))
 *     cybuffer = <cyruntime.GLuint><void_ptr>pbuffer             # <<<<<<<<<<<<<<
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pbuffer); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 33993, __pyx_L1_error)
  __pyx_v_cybuffer = ((__pyx_t_4cuda_8bindings_9cyruntime_GLuint)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":33994
 *         pbuffer = int(GLuint(buffer))
 *     cybuffer = <cyruntime.GLuint><void_ptr>pbuffer
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsGLRegisterBuffer(resource._pvt_ptr, cybuffer, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33994, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_resource = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":33995
 *     cybuffer = <cyruntime.GLuint><void_ptr>pbuffer
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsGLRegisterBuffer(resource._pvt_ptr, cybuffer, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":33996
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphicsGLRegisterBuffer(resource._pvt_ptr, cybuffer, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsGLRegisterBuffer(__pyx_v_resource->_pvt_ptr, __pyx_v_cybuffer, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 33996, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":33995
 *     cybuffer = <cyruntime.GLuint><void_ptr>pbuffer
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsGLRegisterBuffer(resource._pvt_ptr, cybuffer, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":33997
 *     with nogil:
 *         err = cyruntime.cudaGraphicsGLRegisterBuffer(resource._pvt_ptr, cybuffer, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":33998
 *         err = cyruntime.cudaGraphicsGLRegisterBuffer(resource._pvt_ptr, cybuffer, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], resource)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33998, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33998, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33998, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33998, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 33998, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 33998, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":33997
 *     with nogil:
 *         err = cyruntime.cudaGraphicsGLRegisterBuffer(resource._pvt_ptr, cybuffer, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  }

  /* "cuda/bindings/runtime.pyx":33999
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 33999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 33999, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_resource);
  __Pyx_GIVEREF((PyObject *)__pyx_v_resource);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_resource)) != (0)) __PYX_ERR(0, 33999, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":33947
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags):
 *     """ Registers an OpenGL buffer object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsGLRegisterBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pbuffer);
  __Pyx_XDECREF((PyObject *)__pyx_v_resource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34001
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress):
 *     """ Gets the CUDA device associated with a VdpDevice.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_661cudaVDPAUGetDevice(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_7runtime_660cudaVDPAUGetDevice, "cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress)\n\nGets the CUDA device associated with a VdpDevice.\n\nReturns the CUDA device associated with a VdpDevice, if applicable.\n\nParameters\n----------\nvdpDevice : :py:obj:`~.VdpDevice`\n    A VdpDevice handle\nvdpGetProcAddress : :py:obj:`~.VdpGetProcAddress`\n    VDPAU's VdpGetProcAddress function pointer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`\ndevice : int\n    Returns the device associated with vdpDevice, or -1 if the device\n    associated with vdpDevice is not a compute device.\n\nSee Also\n--------\n:py:obj:`~.cudaVDPAUSetVDPAUDevice`, :py:obj:`~.cuVDPAUGetDevice`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_661cudaVDPAUGetDevice = {"cudaVDPAUGetDevice", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_661cudaVDPAUGetDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_660cudaVDPAUGetDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_661cudaVDPAUGetDevice(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_vdpDevice = 0;
  PyObject *__pyx_v_vdpGetProcAddress = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaVDPAUGetDevice (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_vdpDevice,&__pyx_mstate_global->__pyx_n_u_vdpGetProcAddress,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, 34001, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 34001, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 34001, __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, "cudaVDPAUGetDevice", 0) < (0)) __PYX_ERR(0, 34001, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaVDPAUGetDevice", 1, 2, 2, i); __PYX_ERR(0, 34001, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 34001, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 34001, __pyx_L3_error)
    }
    __pyx_v_vdpDevice = values[0];
    __pyx_v_vdpGetProcAddress = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaVDPAUGetDevice", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 34001, __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.runtime.cudaVDPAUGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_660cudaVDPAUGetDevice(__pyx_self, __pyx_v_vdpDevice, __pyx_v_vdpGetProcAddress);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_660cudaVDPAUGetDevice(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpDevice, PyObject *__pyx_v_vdpGetProcAddress) {
  __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *__pyx_v_cyvdpGetProcAddress;
  PyObject *__pyx_v_pvdpGetProcAddress = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice __pyx_v_cyvdpDevice;
  PyObject *__pyx_v_pvdpDevice = NULL;
  int __pyx_v_device;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  cudaError_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaVDPAUGetDevice", 0);

  /* "cuda/bindings/runtime.pyx":34027
 *     """
 *     cdef cyruntime.VdpGetProcAddress *cyvdpGetProcAddress
 *     if vdpGetProcAddress is None:             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
*/
  __pyx_t_1 = (__pyx_v_vdpGetProcAddress == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34028
 *     cdef cyruntime.VdpGetProcAddress *cyvdpGetProcAddress
 *     if vdpGetProcAddress is None:
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
*/
    __pyx_v_cyvdpGetProcAddress = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":34027
 *     """
 *     cdef cyruntime.VdpGetProcAddress *cyvdpGetProcAddress
 *     if vdpGetProcAddress is None:             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34029
 *     if vdpGetProcAddress is None:
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):             # <<<<<<<<<<<<<<
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpGetProcAddress, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34030
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
 *     elif isinstance(vdpGetProcAddress, (int)):
*/
    __pyx_t_3 = __pyx_v_vdpGetProcAddress;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34030, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_pvdpGetProcAddress = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":34031
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress             # <<<<<<<<<<<<<<
 *     elif isinstance(vdpGetProcAddress, (int)):
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress
*/
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpGetProcAddress); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 34031, __pyx_L1_error)
    __pyx_v_cyvdpGetProcAddress = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

    /* "cuda/bindings/runtime.pyx":34029
 *     if vdpGetProcAddress is None:
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):             # <<<<<<<<<<<<<<
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34032
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
 *     elif isinstance(vdpGetProcAddress, (int)):             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_vdpGetProcAddress); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":34033
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
 *     elif isinstance(vdpGetProcAddress, (int)):
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found " + str(type(vdpGetProcAddress)))
*/
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_vdpGetProcAddress); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 34033, __pyx_L1_error)
    __pyx_v_cyvdpGetProcAddress = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

    /* "cuda/bindings/runtime.pyx":34032
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
 *     elif isinstance(vdpGetProcAddress, (int)):             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34035
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress
 *     else:
 *         raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found " + str(type(vdpGetProcAddress)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.VdpDevice cyvdpDevice
 *     if vdpDevice is None:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_6 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_vdpGetProcAddress))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 34035, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_vdpGetProcAddress_is_no, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34035, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34035, __pyx_L1_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, 34035, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":34037
 *         raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found " + str(type(vdpGetProcAddress)))
 *     cdef cyruntime.VdpDevice cyvdpDevice
 *     if vdpDevice is None:             # <<<<<<<<<<<<<<
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):
*/
  __pyx_t_1 = (__pyx_v_vdpDevice == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34038
 *     cdef cyruntime.VdpDevice cyvdpDevice
 *     if vdpDevice is None:
 *         pvdpDevice = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(vdpDevice, (VdpDevice,)):
 *         pvdpDevice = int(vdpDevice)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pvdpDevice = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":34037
 *         raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found " + str(type(vdpGetProcAddress)))
 *     cdef cyruntime.VdpDevice cyvdpDevice
 *     if vdpDevice is None:             # <<<<<<<<<<<<<<
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":34039
 *     if vdpDevice is None:
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):             # <<<<<<<<<<<<<<
 *         pvdpDevice = int(vdpDevice)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpDevice, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34040
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):
 *         pvdpDevice = int(vdpDevice)             # <<<<<<<<<<<<<<
 *     else:
 *         pvdpDevice = int(VdpDevice(vdpDevice))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_vdpDevice); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34040, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pvdpDevice = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":34039
 *     if vdpDevice is None:
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):             # <<<<<<<<<<<<<<
 *         pvdpDevice = int(vdpDevice)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":34042
 *         pvdpDevice = int(vdpDevice)
 *     else:
 *         pvdpDevice = int(VdpDevice(vdpDevice))             # <<<<<<<<<<<<<<
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice
 *     cdef int device = 0
*/
  /*else*/ {
    __pyx_t_7 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_vdpDevice};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34042, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_7 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pvdpDevice = ((PyObject*)__pyx_t_7);
    __pyx_t_7 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":34043
 *     else:
 *         pvdpDevice = int(VdpDevice(vdpDevice))
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice             # <<<<<<<<<<<<<<
 *     cdef int device = 0
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpDevice); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 34043, __pyx_L1_error)
  __pyx_v_cyvdpDevice = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpDevice)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":34044
 *         pvdpDevice = int(VdpDevice(vdpDevice))
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice
 *     cdef int device = 0             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaVDPAUGetDevice(&device, cyvdpDevice, cyvdpGetProcAddress)
*/
  __pyx_v_device = 0;

  /* "cuda/bindings/runtime.pyx":34045
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaVDPAUGetDevice(&device, cyvdpDevice, cyvdpGetProcAddress)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":34046
 *     cdef int device = 0
 *     with nogil:
 *         err = cyruntime.cudaVDPAUGetDevice(&device, cyvdpDevice, cyvdpGetProcAddress)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaVDPAUGetDevice((&__pyx_v_device), __pyx_v_cyvdpDevice, __pyx_v_cyvdpGetProcAddress); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 34046, __pyx_L6_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":34045
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice
 *     cdef int device = 0
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaVDPAUGetDevice(&device, cyvdpDevice, cyvdpGetProcAddress)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L7;
        }
        __pyx_L6_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L7:;
      }
  }

  /* "cuda/bindings/runtime.pyx":34047
 *     with nogil:
 *         err = cyruntime.cudaVDPAUGetDevice(&device, cyvdpDevice, cyvdpGetProcAddress)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34048
 *         err = cyruntime.cudaVDPAUGetDevice(&device, cyvdpDevice, cyvdpGetProcAddress)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], device)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 34048, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 34048, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34047
 *     with nogil:
 *         err = cyruntime.cudaVDPAUGetDevice(&device, cyvdpDevice, cyvdpGetProcAddress)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)
*/
  }

  /* "cuda/bindings/runtime.pyx":34049
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], device)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_device); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 34049, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3) != (0)) __PYX_ERR(0, 34049, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":34001
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress):
 *     """ Gets the CUDA device associated with a VdpDevice.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaVDPAUGetDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pvdpGetProcAddress);
  __Pyx_XDECREF(__pyx_v_pvdpDevice);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34051
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress):
 *     """ Sets a CUDA device to use VDPAU interoperability.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_663cudaVDPAUSetVDPAUDevice(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_7runtime_662cudaVDPAUSetVDPAUDevice, "cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress)\n\nSets a CUDA device to use VDPAU interoperability.\n\nRecords `vdpDevice` as the VdpDevice for VDPAU interoperability with\nthe CUDA device `device` and sets `device` as the current device for\nthe calling host thread.\n\nThis function will immediately initialize the primary context on\n`device` if needed.\n\nIf `device` has already been initialized then this call will fail with\nthe error :py:obj:`~.cudaErrorSetOnActiveProcess`. In this case it is\nnecessary to reset `device` using :py:obj:`~.cudaDeviceReset()` before\nVDPAU interoperability on `device` may be enabled.\n\nParameters\n----------\ndevice : int\n    Device to use for VDPAU interoperability\nvdpDevice : :py:obj:`~.VdpDevice`\n    The VdpDevice to interoperate with\nvdpGetProcAddress : :py:obj:`~.VdpGetProcAddress`\n    VDPAU's VdpGetProcAddress function pointer\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorSetOnActiveProcess`\n\nSee Also\n--------\n:py:obj:`~.cudaGraphicsVDPAURegisterVideoSurface`, :py:obj:`~.cudaGraphicsVDPAURegisterOutputSurface`, :py:obj:`~.cudaDeviceReset`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_663cudaVDPAUSetVDPAUDevice = {"cudaVDPAUSetVDPAUDevice", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_663cudaVDPAUSetVDPAUDevice, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_662cudaVDPAUSetVDPAUDevice};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_663cudaVDPAUSetVDPAUDevice(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
) {
  int __pyx_v_device;
  PyObject *__pyx_v_vdpDevice = 0;
  PyObject *__pyx_v_vdpGetProcAddress = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaVDPAUSetVDPAUDevice (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_device_2,&__pyx_mstate_global->__pyx_n_u_vdpDevice,&__pyx_mstate_global->__pyx_n_u_vdpGetProcAddress,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, 34051, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 34051, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 34051, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 34051, __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, "cudaVDPAUSetVDPAUDevice", 0) < (0)) __PYX_ERR(0, 34051, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaVDPAUSetVDPAUDevice", 1, 3, 3, i); __PYX_ERR(0, 34051, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      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, 34051, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 34051, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 34051, __pyx_L3_error)
    }
    __pyx_v_device = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_device == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 34052, __pyx_L3_error)
    __pyx_v_vdpDevice = values[1];
    __pyx_v_vdpGetProcAddress = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaVDPAUSetVDPAUDevice", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 34051, __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.runtime.cudaVDPAUSetVDPAUDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_662cudaVDPAUSetVDPAUDevice(__pyx_self, __pyx_v_device, __pyx_v_vdpDevice, __pyx_v_vdpGetProcAddress);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_662cudaVDPAUSetVDPAUDevice(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_device, PyObject *__pyx_v_vdpDevice, PyObject *__pyx_v_vdpGetProcAddress) {
  __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *__pyx_v_cyvdpGetProcAddress;
  PyObject *__pyx_v_pvdpGetProcAddress = NULL;
  __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice __pyx_v_cyvdpDevice;
  PyObject *__pyx_v_pvdpDevice = NULL;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  cudaError_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaVDPAUSetVDPAUDevice", 0);

  /* "cuda/bindings/runtime.pyx":34086
 *     """
 *     cdef cyruntime.VdpGetProcAddress *cyvdpGetProcAddress
 *     if vdpGetProcAddress is None:             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
*/
  __pyx_t_1 = (__pyx_v_vdpGetProcAddress == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34087
 *     cdef cyruntime.VdpGetProcAddress *cyvdpGetProcAddress
 *     if vdpGetProcAddress is None:
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL             # <<<<<<<<<<<<<<
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
*/
    __pyx_v_cyvdpGetProcAddress = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)NULL));

    /* "cuda/bindings/runtime.pyx":34086
 *     """
 *     cdef cyruntime.VdpGetProcAddress *cyvdpGetProcAddress
 *     if vdpGetProcAddress is None:             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34088
 *     if vdpGetProcAddress is None:
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):             # <<<<<<<<<<<<<<
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpGetProcAddress, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34089
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
 *     elif isinstance(vdpGetProcAddress, (int)):
*/
    __pyx_t_3 = __pyx_v_vdpGetProcAddress;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getPtr, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34089, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_pvdpGetProcAddress = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":34090
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress             # <<<<<<<<<<<<<<
 *     elif isinstance(vdpGetProcAddress, (int)):
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress
*/
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpGetProcAddress); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 34090, __pyx_L1_error)
    __pyx_v_cyvdpGetProcAddress = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

    /* "cuda/bindings/runtime.pyx":34088
 *     if vdpGetProcAddress is None:
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>NULL
 *     elif isinstance(vdpGetProcAddress, (VdpGetProcAddress,)):             # <<<<<<<<<<<<<<
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34091
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
 *     elif isinstance(vdpGetProcAddress, (int)):             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_vdpGetProcAddress); 
  if (likely(__pyx_t_1)) {

    /* "cuda/bindings/runtime.pyx":34092
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
 *     elif isinstance(vdpGetProcAddress, (int)):
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found " + str(type(vdpGetProcAddress)))
*/
    __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_vdpGetProcAddress); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 34092, __pyx_L1_error)
    __pyx_v_cyvdpGetProcAddress = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

    /* "cuda/bindings/runtime.pyx":34091
 *         pvdpGetProcAddress = vdpGetProcAddress.getPtr()
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>pvdpGetProcAddress
 *     elif isinstance(vdpGetProcAddress, (int)):             # <<<<<<<<<<<<<<
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34094
 *         cyvdpGetProcAddress = <cyruntime.VdpGetProcAddress*><void_ptr>vdpGetProcAddress
 *     else:
 *         raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found " + str(type(vdpGetProcAddress)))             # <<<<<<<<<<<<<<
 *     cdef cyruntime.VdpDevice cyvdpDevice
 *     if vdpDevice is None:
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_6 = __Pyx_PyObject_Unicode(((PyObject *)Py_TYPE(__pyx_v_vdpGetProcAddress))); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 34094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Argument_vdpGetProcAddress_is_no, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34094, __pyx_L1_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, 34094, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":34096
 *         raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found " + str(type(vdpGetProcAddress)))
 *     cdef cyruntime.VdpDevice cyvdpDevice
 *     if vdpDevice is None:             # <<<<<<<<<<<<<<
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):
*/
  __pyx_t_1 = (__pyx_v_vdpDevice == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34097
 *     cdef cyruntime.VdpDevice cyvdpDevice
 *     if vdpDevice is None:
 *         pvdpDevice = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(vdpDevice, (VdpDevice,)):
 *         pvdpDevice = int(vdpDevice)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pvdpDevice = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":34096
 *         raise TypeError("Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found " + str(type(vdpGetProcAddress)))
 *     cdef cyruntime.VdpDevice cyvdpDevice
 *     if vdpDevice is None:             # <<<<<<<<<<<<<<
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":34098
 *     if vdpDevice is None:
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):             # <<<<<<<<<<<<<<
 *         pvdpDevice = int(vdpDevice)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpDevice, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34099
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):
 *         pvdpDevice = int(vdpDevice)             # <<<<<<<<<<<<<<
 *     else:
 *         pvdpDevice = int(VdpDevice(vdpDevice))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_vdpDevice); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34099, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pvdpDevice = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":34098
 *     if vdpDevice is None:
 *         pvdpDevice = 0
 *     elif isinstance(vdpDevice, (VdpDevice,)):             # <<<<<<<<<<<<<<
 *         pvdpDevice = int(vdpDevice)
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cuda/bindings/runtime.pyx":34101
 *         pvdpDevice = int(vdpDevice)
 *     else:
 *         pvdpDevice = int(VdpDevice(vdpDevice))             # <<<<<<<<<<<<<<
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice
 *     with nogil:
*/
  /*else*/ {
    __pyx_t_7 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_vdpDevice};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34101, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_7 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pvdpDevice = ((PyObject*)__pyx_t_7);
    __pyx_t_7 = 0;
  }
  __pyx_L4:;

  /* "cuda/bindings/runtime.pyx":34102
 *     else:
 *         pvdpDevice = int(VdpDevice(vdpDevice))
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaVDPAUSetVDPAUDevice(device, cyvdpDevice, cyvdpGetProcAddress)
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpDevice); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 34102, __pyx_L1_error)
  __pyx_v_cyvdpDevice = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpDevice)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":34103
 *         pvdpDevice = int(VdpDevice(vdpDevice))
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaVDPAUSetVDPAUDevice(device, cyvdpDevice, cyvdpGetProcAddress)
 *     return (_dict_cudaError_t[err],)
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":34104
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice
 *     with nogil:
 *         err = cyruntime.cudaVDPAUSetVDPAUDevice(device, cyvdpDevice, cyvdpGetProcAddress)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err],)
 * 
*/
        __pyx_t_8 = __pyx_f_4cuda_8bindings_9cyruntime_cudaVDPAUSetVDPAUDevice(__pyx_v_device, __pyx_v_cyvdpDevice, __pyx_v_cyvdpGetProcAddress); if (unlikely(__pyx_t_8 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 34104, __pyx_L6_error)
        __pyx_v_err = __pyx_t_8;
      }

      /* "cuda/bindings/runtime.pyx":34103
 *         pvdpDevice = int(VdpDevice(vdpDevice))
 *     cyvdpDevice = <cyruntime.VdpDevice><void_ptr>pvdpDevice
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaVDPAUSetVDPAUDevice(device, cyvdpDevice, cyvdpGetProcAddress)
 *     return (_dict_cudaError_t[err],)
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L7;
        }
        __pyx_L6_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L7:;
      }
  }

  /* "cuda/bindings/runtime.pyx":34105
 *     with nogil:
 *         err = cyruntime.cudaVDPAUSetVDPAUDevice(device, cyvdpDevice, cyvdpGetProcAddress)
 *     return (_dict_cudaError_t[err],)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 34105, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":34051
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress):
 *     """ Sets a CUDA device to use VDPAU interoperability.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaVDPAUSetVDPAUDevice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pvdpGetProcAddress);
  __Pyx_XDECREF(__pyx_v_pvdpDevice);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34107
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags):
 *     """ Register a VdpVideoSurface object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_665cudaGraphicsVDPAURegisterVideoSurface(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_7runtime_664cudaGraphicsVDPAURegisterVideoSurface, "cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags)\n\nRegister a VdpVideoSurface object.\n\nRegisters the VdpVideoSurface specified by `vdpSurface` for access by\nCUDA. A handle to the registered object is returned as `resource`. The\nsurface's intended usage is specified using `flags`, as follows:\n\n- :py:obj:`~.cudaGraphicsMapFlagsNone`: Specifies no hints about how\n  this resource will be used. It is therefore assumed that this\n  resource will be read from and written to by CUDA. This is the\n  default value.\n\n- :py:obj:`~.cudaGraphicsMapFlagsReadOnly`: Specifies that CUDA will\n  not write to this resource.\n\n- :py:obj:`~.cudaGraphicsMapFlagsWriteDiscard`: Specifies that CUDA\n  will not read from this resource and will write over the entire\n  contents of the resource, so none of the data previously stored in\n  the resource will be preserved.\n\nParameters\n----------\nvdpSurface : :py:obj:`~.VdpVideoSurface`\n    VDPAU object to be registered\nflags : unsigned int\n    Map flags\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\nresource : :py:obj:`~.cudaGraphicsResource`\n    Pointer to the returned object handle\n\nSee Also\n--------\n:py:obj:`~.cudaVDPAUSetVDPAUDevice`, :py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cuGraphicsVDPAURegisterVideoSurface`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_665cudaGraphicsVDPAURegisterVideoSurface = {"cudaGraphicsVDPAURegisterVideoSurface", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_665cudaGraphicsVDPAURegisterVideoSurface, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_664cudaGraphicsVDPAURegisterVideoSurface};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_665cudaGraphicsVDPAURegisterVideoSurface(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_vdpSurface = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsVDPAURegisterVideoSurface (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_vdpSurface,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 34107, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 34107, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 34107, __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, "cudaGraphicsVDPAURegisterVideoSurface", 0) < (0)) __PYX_ERR(0, 34107, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsVDPAURegisterVideoSurface", 1, 2, 2, i); __PYX_ERR(0, 34107, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 34107, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 34107, __pyx_L3_error)
    }
    __pyx_v_vdpSurface = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 34108, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsVDPAURegisterVideoSurface", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 34107, __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.runtime.cudaGraphicsVDPAURegisterVideoSurface", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_664cudaGraphicsVDPAURegisterVideoSurface(__pyx_self, __pyx_v_vdpSurface, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_664cudaGraphicsVDPAURegisterVideoSurface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpSurface, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface __pyx_v_cyvdpSurface;
  PyObject *__pyx_v_pvdpSurface = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_resource = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsVDPAURegisterVideoSurface", 0);

  /* "cuda/bindings/runtime.pyx":34147
 *     """
 *     cdef cyruntime.VdpVideoSurface cyvdpSurface
 *     if vdpSurface is None:             # <<<<<<<<<<<<<<
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpVideoSurface,)):
*/
  __pyx_t_1 = (__pyx_v_vdpSurface == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34148
 *     cdef cyruntime.VdpVideoSurface cyvdpSurface
 *     if vdpSurface is None:
 *         pvdpSurface = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(vdpSurface, (VdpVideoSurface,)):
 *         pvdpSurface = int(vdpSurface)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pvdpSurface = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":34147
 *     """
 *     cdef cyruntime.VdpVideoSurface cyvdpSurface
 *     if vdpSurface is None:             # <<<<<<<<<<<<<<
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpVideoSurface,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34149
 *     if vdpSurface is None:
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpVideoSurface,)):             # <<<<<<<<<<<<<<
 *         pvdpSurface = int(vdpSurface)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpSurface, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34150
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpVideoSurface,)):
 *         pvdpSurface = int(vdpSurface)             # <<<<<<<<<<<<<<
 *     else:
 *         pvdpSurface = int(VdpVideoSurface(vdpSurface))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_vdpSurface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pvdpSurface = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":34149
 *     if vdpSurface is None:
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpVideoSurface,)):             # <<<<<<<<<<<<<<
 *         pvdpSurface = int(vdpSurface)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34152
 *         pvdpSurface = int(vdpSurface)
 *     else:
 *         pvdpSurface = int(VdpVideoSurface(vdpSurface))             # <<<<<<<<<<<<<<
 *     cyvdpSurface = <cyruntime.VdpVideoSurface><void_ptr>pvdpSurface
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_vdpSurface};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34152, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34152, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pvdpSurface = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":34153
 *     else:
 *         pvdpSurface = int(VdpVideoSurface(vdpSurface))
 *     cyvdpSurface = <cyruntime.VdpVideoSurface><void_ptr>pvdpSurface             # <<<<<<<<<<<<<<
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpSurface); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 34153, __pyx_L1_error)
  __pyx_v_cyvdpSurface = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":34154
 *         pvdpSurface = int(VdpVideoSurface(vdpSurface))
 *     cyvdpSurface = <cyruntime.VdpVideoSurface><void_ptr>pvdpSurface
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsVDPAURegisterVideoSurface(resource._pvt_ptr, cyvdpSurface, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34154, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_resource = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":34155
 *     cyvdpSurface = <cyruntime.VdpVideoSurface><void_ptr>pvdpSurface
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsVDPAURegisterVideoSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":34156
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphicsVDPAURegisterVideoSurface(resource._pvt_ptr, cyvdpSurface, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsVDPAURegisterVideoSurface(__pyx_v_resource->_pvt_ptr, __pyx_v_cyvdpSurface, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 34156, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":34155
 *     cyvdpSurface = <cyruntime.VdpVideoSurface><void_ptr>pvdpSurface
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsVDPAURegisterVideoSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":34157
 *     with nogil:
 *         err = cyruntime.cudaGraphicsVDPAURegisterVideoSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34158
 *         err = cyruntime.cudaGraphicsVDPAURegisterVideoSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], resource)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 34158, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 34158, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34157
 *     with nogil:
 *         err = cyruntime.cudaGraphicsVDPAURegisterVideoSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  }

  /* "cuda/bindings/runtime.pyx":34159
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)             # <<<<<<<<<<<<<<
 * 
 * @cython.embedsignature(True)
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 34159, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_resource);
  __Pyx_GIVEREF((PyObject *)__pyx_v_resource);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_resource)) != (0)) __PYX_ERR(0, 34159, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":34107
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags):
 *     """ Register a VdpVideoSurface object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsVDPAURegisterVideoSurface", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pvdpSurface);
  __Pyx_XDECREF((PyObject *)__pyx_v_resource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34161
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags):
 *     """ Register a VdpOutputSurface object.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_667cudaGraphicsVDPAURegisterOutputSurface(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_7runtime_666cudaGraphicsVDPAURegisterOutputSurface, "cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags)\n\nRegister a VdpOutputSurface object.\n\nRegisters the VdpOutputSurface specified by `vdpSurface` for access by\nCUDA. A handle to the registered object is returned as `resource`. The\nsurface's intended usage is specified using `flags`, as follows:\n\n- :py:obj:`~.cudaGraphicsMapFlagsNone`: Specifies no hints about how\n  this resource will be used. It is therefore assumed that this\n  resource will be read from and written to by CUDA. This is the\n  default value.\n\n- :py:obj:`~.cudaGraphicsMapFlagsReadOnly`: Specifies that CUDA will\n  not write to this resource.\n\n- :py:obj:`~.cudaGraphicsMapFlagsWriteDiscard`: Specifies that CUDA\n  will not read from this resource and will write over the entire\n  contents of the resource, so none of the data previously stored in\n  the resource will be preserved.\n\nParameters\n----------\nvdpSurface : :py:obj:`~.VdpOutputSurface`\n    VDPAU object to be registered\nflags : unsigned int\n    Map flags\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle`, :py:obj:`~.cudaErrorUnknown`\nresource : :py:obj:`~.cudaGraphicsResource`\n    Pointer to the returned object handle\n\nSee Also\n--------\n:py:obj:`~.cudaVDPAUSetVDPAUDevice`, :py:obj:`~.cudaGraphicsUnregisterResource`, :py:obj:`~.cudaGraphicsSubResourceGetMappedArray`, :py:obj:`~.cuGraphicsVDPAURegisterOutputSurface`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_667cudaGraphicsVDPAURegisterOutputSurface = {"cudaGraphicsVDPAURegisterOutputSurface", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_667cudaGraphicsVDPAURegisterOutputSurface, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_666cudaGraphicsVDPAURegisterOutputSurface};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_667cudaGraphicsVDPAURegisterOutputSurface(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_vdpSurface = 0;
  unsigned int __pyx_v_flags;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cudaGraphicsVDPAURegisterOutputSurface (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_vdpSurface,&__pyx_mstate_global->__pyx_n_u_flags_2,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, 34161, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 34161, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 34161, __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, "cudaGraphicsVDPAURegisterOutputSurface", 0) < (0)) __PYX_ERR(0, 34161, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsVDPAURegisterOutputSurface", 1, 2, 2, i); __PYX_ERR(0, 34161, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      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, 34161, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 34161, __pyx_L3_error)
    }
    __pyx_v_vdpSurface = values[0];
    __pyx_v_flags = __Pyx_PyLong_As_unsigned_int(values[1]); if (unlikely((__pyx_v_flags == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 34162, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsVDPAURegisterOutputSurface", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 34161, __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.runtime.cudaGraphicsVDPAURegisterOutputSurface", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_666cudaGraphicsVDPAURegisterOutputSurface(__pyx_self, __pyx_v_vdpSurface, __pyx_v_flags);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_666cudaGraphicsVDPAURegisterOutputSurface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_vdpSurface, unsigned int __pyx_v_flags) {
  __pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface __pyx_v_cyvdpSurface;
  PyObject *__pyx_v_pvdpSurface = NULL;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_resource = 0;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  __pyx_t_4cuda_8bindings_7runtime_void_ptr __pyx_t_5;
  cudaError_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cudaGraphicsVDPAURegisterOutputSurface", 0);

  /* "cuda/bindings/runtime.pyx":34201
 *     """
 *     cdef cyruntime.VdpOutputSurface cyvdpSurface
 *     if vdpSurface is None:             # <<<<<<<<<<<<<<
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpOutputSurface,)):
*/
  __pyx_t_1 = (__pyx_v_vdpSurface == Py_None);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34202
 *     cdef cyruntime.VdpOutputSurface cyvdpSurface
 *     if vdpSurface is None:
 *         pvdpSurface = 0             # <<<<<<<<<<<<<<
 *     elif isinstance(vdpSurface, (VdpOutputSurface,)):
 *         pvdpSurface = int(vdpSurface)
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_pvdpSurface = __pyx_mstate_global->__pyx_int_0;

    /* "cuda/bindings/runtime.pyx":34201
 *     """
 *     cdef cyruntime.VdpOutputSurface cyvdpSurface
 *     if vdpSurface is None:             # <<<<<<<<<<<<<<
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpOutputSurface,)):
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34203
 *     if vdpSurface is None:
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpOutputSurface,)):             # <<<<<<<<<<<<<<
 *         pvdpSurface = int(vdpSurface)
 *     else:
*/
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_vdpSurface, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface); 
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34204
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpOutputSurface,)):
 *         pvdpSurface = int(vdpSurface)             # <<<<<<<<<<<<<<
 *     else:
 *         pvdpSurface = int(VdpOutputSurface(vdpSurface))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_vdpSurface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34204, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_pvdpSurface = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cuda/bindings/runtime.pyx":34203
 *     if vdpSurface is None:
 *         pvdpSurface = 0
 *     elif isinstance(vdpSurface, (VdpOutputSurface,)):             # <<<<<<<<<<<<<<
 *         pvdpSurface = int(vdpSurface)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "cuda/bindings/runtime.pyx":34206
 *         pvdpSurface = int(vdpSurface)
 *     else:
 *         pvdpSurface = int(VdpOutputSurface(vdpSurface))             # <<<<<<<<<<<<<<
 *     cyvdpSurface = <cyruntime.VdpOutputSurface><void_ptr>pvdpSurface
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_vdpSurface};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34206, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_t_3 = __Pyx_PyNumber_Int(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34206, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF((PyObject *)__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_pvdpSurface = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "cuda/bindings/runtime.pyx":34207
 *     else:
 *         pvdpSurface = int(VdpOutputSurface(vdpSurface))
 *     cyvdpSurface = <cyruntime.VdpOutputSurface><void_ptr>pvdpSurface             # <<<<<<<<<<<<<<
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:
*/
  __pyx_t_5 = __Pyx_PyLong_As_unsigned_PY_LONG_LONG(__pyx_v_pvdpSurface); if (unlikely((__pyx_t_5 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 34207, __pyx_L1_error)
  __pyx_v_cyvdpSurface = ((__pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface)((__pyx_t_4cuda_8bindings_7runtime_void_ptr)__pyx_t_5));

  /* "cuda/bindings/runtime.pyx":34208
 *         pvdpSurface = int(VdpOutputSurface(vdpSurface))
 *     cyvdpSurface = <cyruntime.VdpOutputSurface><void_ptr>pvdpSurface
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()             # <<<<<<<<<<<<<<
 *     with nogil:
 *         err = cyruntime.cudaGraphicsVDPAURegisterOutputSurface(resource._pvt_ptr, cyvdpSurface, flags)
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34208, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_3);
  }
  __pyx_v_resource = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cuda/bindings/runtime.pyx":34209
 *     cyvdpSurface = <cyruntime.VdpOutputSurface><void_ptr>pvdpSurface
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsVDPAURegisterOutputSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:
*/
  {
      PyThreadState * _save;
      _save = PyEval_SaveThread();
      __Pyx_FastGIL_Remember();
      /*try:*/ {

        /* "cuda/bindings/runtime.pyx":34210
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:
 *         err = cyruntime.cudaGraphicsVDPAURegisterOutputSurface(resource._pvt_ptr, cyvdpSurface, flags)             # <<<<<<<<<<<<<<
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
*/
        __pyx_t_6 = __pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsVDPAURegisterOutputSurface(__pyx_v_resource->_pvt_ptr, __pyx_v_cyvdpSurface, __pyx_v_flags); if (unlikely(__pyx_t_6 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && __Pyx_ErrOccurredWithGIL())) __PYX_ERR(0, 34210, __pyx_L5_error)
        __pyx_v_err = __pyx_t_6;
      }

      /* "cuda/bindings/runtime.pyx":34209
 *     cyvdpSurface = <cyruntime.VdpOutputSurface><void_ptr>pvdpSurface
 *     cdef cudaGraphicsResource_t resource = cudaGraphicsResource_t()
 *     with nogil:             # <<<<<<<<<<<<<<
 *         err = cyruntime.cudaGraphicsVDPAURegisterOutputSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L6;
        }
        __pyx_L5_error: {
          __Pyx_FastGIL_Forget();
          PyEval_RestoreThread(_save);
          goto __pyx_L1_error;
        }
        __pyx_L6:;
      }
  }

  /* "cuda/bindings/runtime.pyx":34211
 *     with nogil:
 *         err = cyruntime.cudaGraphicsVDPAURegisterOutputSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  __pyx_t_1 = (__pyx_v_err != cudaSuccess);
  if (__pyx_t_1) {

    /* "cuda/bindings/runtime.pyx":34212
 *         err = cyruntime.cudaGraphicsVDPAURegisterOutputSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)             # <<<<<<<<<<<<<<
 *     return (_dict_cudaError_t[err], resource)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 34212, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 34212, __pyx_L1_error);
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34211
 *     with nogil:
 *         err = cyruntime.cudaGraphicsVDPAURegisterOutputSurface(resource._pvt_ptr, cyvdpSurface, flags)
 *     if err != cyruntime.cudaSuccess:             # <<<<<<<<<<<<<<
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)
*/
  }

  /* "cuda/bindings/runtime.pyx":34213
 *     if err != cyruntime.cudaSuccess:
 *         return (_dict_cudaError_t[err], None)
 *     return (_dict_cudaError_t[err], resource)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 34213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 34213, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_resource);
  __Pyx_GIVEREF((PyObject *)__pyx_v_resource);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_resource)) != (0)) __PYX_ERR(0, 34213, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":34161
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags):
 *     """ Register a VdpOutputSurface object.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaGraphicsVDPAURegisterOutputSurface", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pvdpSurface);
  __Pyx_XDECREF((PyObject *)__pyx_v_resource);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34216
 * 
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def getLocalRuntimeVersion():
 *     """ Returns the CUDA Runtime version of local shared library.
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_669getLocalRuntimeVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4cuda_8bindings_7runtime_668getLocalRuntimeVersion, "getLocalRuntimeVersion()\n\nReturns the CUDA Runtime version of local shared library.\n\nReturns in `*runtimeVersion` the version number of the current CUDA\nRuntime instance. The version is returned as (1000 * major + 10 *\nminor). For example, CUDA 9.2 would be represented by 9020.\n\nAs of CUDA 12.0, this function no longer initializes CUDA. The purpose\nof this API is solely to return a compile-time constant stating the\nCUDA Toolkit version in the above format.\n\nThis function automatically returns :py:obj:`~.cudaErrorInvalidValue`\nif the `runtimeVersion` argument is NULL.\n\nReturns\n-------\ncudaError_t\n    :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`\nruntimeVersion : int\n    Returns the CUDA Runtime version.\n\nSee Also\n--------\n:py:obj:`~.cudaDriverGetVersion`, :py:obj:`~.cuDriverGetVersion`");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_669getLocalRuntimeVersion = {"getLocalRuntimeVersion", (PyCFunction)__pyx_pw_4cuda_8bindings_7runtime_669getLocalRuntimeVersion, METH_NOARGS, __pyx_doc_4cuda_8bindings_7runtime_668getLocalRuntimeVersion};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_669getLocalRuntimeVersion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getLocalRuntimeVersion (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_668getLocalRuntimeVersion(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_668getLocalRuntimeVersion(CYTHON_UNUSED PyObject *__pyx_self) {
  int __pyx_v_runtimeVersion;
  cudaError_t __pyx_v_err;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  cudaError_t __pyx_t_1;
  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_RefNannySetupContext("getLocalRuntimeVersion", 0);

  /* "cuda/bindings/runtime.pyx":34242
 *     :py:obj:`~.cudaDriverGetVersion`, :py:obj:`~.cuDriverGetVersion`
 *     """
 *     cdef int runtimeVersion = 0             # <<<<<<<<<<<<<<
 *     err = cyruntime.getLocalRuntimeVersion(&runtimeVersion)
 *     return (cudaError_t(err), runtimeVersion)
*/
  __pyx_v_runtimeVersion = 0;

  /* "cuda/bindings/runtime.pyx":34243
 *     """
 *     cdef int runtimeVersion = 0
 *     err = cyruntime.getLocalRuntimeVersion(&runtimeVersion)             # <<<<<<<<<<<<<<
 *     return (cudaError_t(err), runtimeVersion)
 * 
*/
  __pyx_t_1 = __pyx_f_4cuda_8bindings_9cyruntime_getLocalRuntimeVersion((&__pyx_v_runtimeVersion)); if (unlikely(__pyx_t_1 == ((enum cudaError)cudaErrorCallRequiresNewerDriver) && PyErr_Occurred())) __PYX_ERR(0, 34243, __pyx_L1_error)
  __pyx_v_err = __pyx_t_1;

  /* "cuda/bindings/runtime.pyx":34244
 *     cdef int runtimeVersion = 0
 *     err = cyruntime.getLocalRuntimeVersion(&runtimeVersion)
 *     return (cudaError_t(err), runtimeVersion)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_enum__cudaError(__pyx_v_err); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 34244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(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_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_5};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (2-__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;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34244, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_runtimeVersion); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 34244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2) != (0)) __PYX_ERR(0, 34244, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4) != (0)) __PYX_ERR(0, 34244, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":34216
 * 
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def getLocalRuntimeVersion():
 *     """ Returns the CUDA Runtime version of local shared library.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.getLocalRuntimeVersion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34250
 *     cdef map[void_ptr, void*] _allocated
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         for item in self._allocated:
 *             free(item.second)
*/

/* Python wrapper */
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_1__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal___dealloc__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal___dealloc__(struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *__pyx_v_self) {
  std::pair<__pyx_t_4cuda_8bindings_7runtime_void_ptr,void *>  __pyx_v_item;
  std::map<__pyx_t_4cuda_8bindings_7runtime_void_ptr,void *> ::iterator __pyx_t_1;
  std::pair<__pyx_t_4cuda_8bindings_7runtime_void_ptr,void *>  __pyx_t_2;

  /* "cuda/bindings/runtime.pyx":34251
 * 
 *     def __dealloc__(self):
 *         for item in self._allocated:             # <<<<<<<<<<<<<<
 *             free(item.second)
 *         self._allocated.clear()
*/
  __pyx_t_1 = __pyx_v_self->_allocated.begin();
  for (; __pyx_t_1 != __pyx_v_self->_allocated.end(); ++__pyx_t_1) {
    __pyx_t_2 = *__pyx_t_1;
    __pyx_v_item = __PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_2);

    /* "cuda/bindings/runtime.pyx":34252
 *     def __dealloc__(self):
 *         for item in self._allocated:
 *             free(item.second)             # <<<<<<<<<<<<<<
 *         self._allocated.clear()
 * 
*/
    free(__pyx_v_item.second);

    /* "cuda/bindings/runtime.pyx":34251
 * 
 *     def __dealloc__(self):
 *         for item in self._allocated:             # <<<<<<<<<<<<<<
 *             free(item.second)
 *         self._allocated.clear()
*/
  }

  /* "cuda/bindings/runtime.pyx":34253
 *         for item in self._allocated:
 *             free(item.second)
 *         self._allocated.clear()             # <<<<<<<<<<<<<<
 * 
 * cdef cudaBindingsRuntimeGlobal m_global = cudaBindingsRuntimeGlobal()
*/
  __pyx_v_self->_allocated.clear();

  /* "cuda/bindings/runtime.pyx":34250
 *     cdef map[void_ptr, void*] _allocated
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         for item in self._allocated:
 *             free(item.second)
*/

  /* function exit code */
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_3__reduce_cython__(PyObject *__pyx_v_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_7runtime_25cudaBindingsRuntimeGlobal_2__reduce_cython__, "cudaBindingsRuntimeGlobal.__reduce_cython__(self)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_3__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_2__reduce_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_3__reduce_cython__(PyObject *__pyx_v_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
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (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);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_2__reduce_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_self__allocated_cannot_be_conver, 0, 0);
  __PYX_ERR(2, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaBindingsRuntimeGlobal.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_5__setstate_cython__(PyObject *__pyx_v_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_7runtime_25cudaBindingsRuntimeGlobal_4__setstate_cython__, "cudaBindingsRuntimeGlobal.__setstate_cython__(self, __pyx_state)");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_5__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_4__setstate_cython__};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_5__setstate_cython__(PyObject *__pyx_v_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
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 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("__setstate_cython__ (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_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(2, 3, __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(2, 3, __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, "__setstate_cython__", 0) < (0)) __PYX_ERR(2, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(2, 3, __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(2, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 3, __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.runtime.cudaBindingsRuntimeGlobal.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_4__setstate_cython__(((struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_self__allocated_cannot_be_conver, 0, 0);
  __PYX_ERR(2, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("cuda.bindings.runtime.cudaBindingsRuntimeGlobal.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34258
 * 
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def sizeof(objType):
 *     """ Returns the size of provided CUDA Python structure in bytes
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_671sizeof(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_7runtime_670sizeof, "sizeof(objType)\n\nReturns the size of provided CUDA Python structure in bytes\n\nParameters\n----------\nobjType : Any\n    CUDA Python object\n\nReturns\n-------\nlowered_name : int\n    The size of `objType` in bytes");
static PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_671sizeof = {"sizeof", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_671sizeof, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_670sizeof};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_671sizeof(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_objType = 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("sizeof (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_objType,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, 34258, __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, 34258, __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, "sizeof", 0) < (0)) __PYX_ERR(0, 34258, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("sizeof", 1, 1, 1, i); __PYX_ERR(0, 34258, __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, 34258, __pyx_L3_error)
    }
    __pyx_v_objType = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("sizeof", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34258, __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.runtime.sizeof", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_670sizeof(__pyx_self, __pyx_v_objType);

  /* function exit code */
  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_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4cuda_8bindings_7runtime_670sizeof(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_objType) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  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_RefNannySetupContext("sizeof", 0);

  /* "cuda/bindings/runtime.pyx":34272
 *         The size of `objType` in bytes
 *     """
 *     if objType == dim3:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.dim3)
 *     if objType == cudaDevResourceDesc_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34272, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34272, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34273
 *     """
 *     if objType == dim3:
 *         return sizeof(cyruntime.dim3)             # <<<<<<<<<<<<<<
 *     if objType == cudaDevResourceDesc_t:
 *         return sizeof(cyruntime.cudaDevResourceDesc_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct dim3))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34272
 *         The size of `objType` in bytes
 *     """
 *     if objType == dim3:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.dim3)
 *     if objType == cudaDevResourceDesc_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34274
 *     if objType == dim3:
 *         return sizeof(cyruntime.dim3)
 *     if objType == cudaDevResourceDesc_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevResourceDesc_t)
 *     if objType == cudaExecutionContext_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34274, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34274, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34275
 *         return sizeof(cyruntime.dim3)
 *     if objType == cudaDevResourceDesc_t:
 *         return sizeof(cyruntime.cudaDevResourceDesc_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaExecutionContext_t:
 *         return sizeof(cyruntime.cudaExecutionContext_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaDevResourceDesc_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34275, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34274
 *     if objType == dim3:
 *         return sizeof(cyruntime.dim3)
 *     if objType == cudaDevResourceDesc_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevResourceDesc_t)
 *     if objType == cudaExecutionContext_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34276
 *     if objType == cudaDevResourceDesc_t:
 *         return sizeof(cyruntime.cudaDevResourceDesc_t)
 *     if objType == cudaExecutionContext_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExecutionContext_t)
 *     if objType == cudaChannelFormatDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34276, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34277
 *         return sizeof(cyruntime.cudaDevResourceDesc_t)
 *     if objType == cudaExecutionContext_t:
 *         return sizeof(cyruntime.cudaExecutionContext_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaChannelFormatDesc:
 *         return sizeof(cyruntime.cudaChannelFormatDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaExecutionContext_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34276
 *     if objType == cudaDevResourceDesc_t:
 *         return sizeof(cyruntime.cudaDevResourceDesc_t)
 *     if objType == cudaExecutionContext_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExecutionContext_t)
 *     if objType == cudaChannelFormatDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34278
 *     if objType == cudaExecutionContext_t:
 *         return sizeof(cyruntime.cudaExecutionContext_t)
 *     if objType == cudaChannelFormatDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaChannelFormatDesc)
 *     if objType == cudaArray_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34278, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34279
 *         return sizeof(cyruntime.cudaExecutionContext_t)
 *     if objType == cudaChannelFormatDesc:
 *         return sizeof(cyruntime.cudaChannelFormatDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaArray_t:
 *         return sizeof(cyruntime.cudaArray_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaChannelFormatDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34278
 *     if objType == cudaExecutionContext_t:
 *         return sizeof(cyruntime.cudaExecutionContext_t)
 *     if objType == cudaChannelFormatDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaChannelFormatDesc)
 *     if objType == cudaArray_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34280
 *     if objType == cudaChannelFormatDesc:
 *         return sizeof(cyruntime.cudaChannelFormatDesc)
 *     if objType == cudaArray_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaArray_t)
 *     if objType == cudaArray_const_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34280, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34280, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34281
 *         return sizeof(cyruntime.cudaChannelFormatDesc)
 *     if objType == cudaArray_t:
 *         return sizeof(cyruntime.cudaArray_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaArray_const_t:
 *         return sizeof(cyruntime.cudaArray_const_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaArray_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34280
 *     if objType == cudaChannelFormatDesc:
 *         return sizeof(cyruntime.cudaChannelFormatDesc)
 *     if objType == cudaArray_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaArray_t)
 *     if objType == cudaArray_const_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34282
 *     if objType == cudaArray_t:
 *         return sizeof(cyruntime.cudaArray_t)
 *     if objType == cudaArray_const_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaArray_const_t)
 *     if objType == cudaMipmappedArray_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34282, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34282, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34283
 *         return sizeof(cyruntime.cudaArray_t)
 *     if objType == cudaArray_const_t:
 *         return sizeof(cyruntime.cudaArray_const_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaMipmappedArray_t:
 *         return sizeof(cyruntime.cudaMipmappedArray_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaArray_const_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34283, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34282
 *     if objType == cudaArray_t:
 *         return sizeof(cyruntime.cudaArray_t)
 *     if objType == cudaArray_const_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaArray_const_t)
 *     if objType == cudaMipmappedArray_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34284
 *     if objType == cudaArray_const_t:
 *         return sizeof(cyruntime.cudaArray_const_t)
 *     if objType == cudaMipmappedArray_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMipmappedArray_t)
 *     if objType == cudaMipmappedArray_const_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34284, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34284, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34285
 *         return sizeof(cyruntime.cudaArray_const_t)
 *     if objType == cudaMipmappedArray_t:
 *         return sizeof(cyruntime.cudaMipmappedArray_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaMipmappedArray_const_t:
 *         return sizeof(cyruntime.cudaMipmappedArray_const_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaMipmappedArray_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34284
 *     if objType == cudaArray_const_t:
 *         return sizeof(cyruntime.cudaArray_const_t)
 *     if objType == cudaMipmappedArray_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMipmappedArray_t)
 *     if objType == cudaMipmappedArray_const_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34286
 *     if objType == cudaMipmappedArray_t:
 *         return sizeof(cyruntime.cudaMipmappedArray_t)
 *     if objType == cudaMipmappedArray_const_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMipmappedArray_const_t)
 *     if objType == cudaArraySparseProperties:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34286, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34286, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34287
 *         return sizeof(cyruntime.cudaMipmappedArray_t)
 *     if objType == cudaMipmappedArray_const_t:
 *         return sizeof(cyruntime.cudaMipmappedArray_const_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaArraySparseProperties:
 *         return sizeof(cyruntime.cudaArraySparseProperties)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaMipmappedArray_const_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34286
 *     if objType == cudaMipmappedArray_t:
 *         return sizeof(cyruntime.cudaMipmappedArray_t)
 *     if objType == cudaMipmappedArray_const_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMipmappedArray_const_t)
 *     if objType == cudaArraySparseProperties:
*/
  }

  /* "cuda/bindings/runtime.pyx":34288
 *     if objType == cudaMipmappedArray_const_t:
 *         return sizeof(cyruntime.cudaMipmappedArray_const_t)
 *     if objType == cudaArraySparseProperties:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaArraySparseProperties)
 *     if objType == cudaArrayMemoryRequirements:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34288, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34288, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34289
 *         return sizeof(cyruntime.cudaMipmappedArray_const_t)
 *     if objType == cudaArraySparseProperties:
 *         return sizeof(cyruntime.cudaArraySparseProperties)             # <<<<<<<<<<<<<<
 *     if objType == cudaArrayMemoryRequirements:
 *         return sizeof(cyruntime.cudaArrayMemoryRequirements)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaArraySparseProperties))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34288
 *     if objType == cudaMipmappedArray_const_t:
 *         return sizeof(cyruntime.cudaMipmappedArray_const_t)
 *     if objType == cudaArraySparseProperties:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaArraySparseProperties)
 *     if objType == cudaArrayMemoryRequirements:
*/
  }

  /* "cuda/bindings/runtime.pyx":34290
 *     if objType == cudaArraySparseProperties:
 *         return sizeof(cyruntime.cudaArraySparseProperties)
 *     if objType == cudaArrayMemoryRequirements:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaArrayMemoryRequirements)
 *     if objType == cudaPitchedPtr:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34290, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34290, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34291
 *         return sizeof(cyruntime.cudaArraySparseProperties)
 *     if objType == cudaArrayMemoryRequirements:
 *         return sizeof(cyruntime.cudaArrayMemoryRequirements)             # <<<<<<<<<<<<<<
 *     if objType == cudaPitchedPtr:
 *         return sizeof(cyruntime.cudaPitchedPtr)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaArrayMemoryRequirements))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34290
 *     if objType == cudaArraySparseProperties:
 *         return sizeof(cyruntime.cudaArraySparseProperties)
 *     if objType == cudaArrayMemoryRequirements:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaArrayMemoryRequirements)
 *     if objType == cudaPitchedPtr:
*/
  }

  /* "cuda/bindings/runtime.pyx":34292
 *     if objType == cudaArrayMemoryRequirements:
 *         return sizeof(cyruntime.cudaArrayMemoryRequirements)
 *     if objType == cudaPitchedPtr:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaPitchedPtr)
 *     if objType == cudaExtent:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34292, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34293
 *         return sizeof(cyruntime.cudaArrayMemoryRequirements)
 *     if objType == cudaPitchedPtr:
 *         return sizeof(cyruntime.cudaPitchedPtr)             # <<<<<<<<<<<<<<
 *     if objType == cudaExtent:
 *         return sizeof(cyruntime.cudaExtent)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaPitchedPtr))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34292
 *     if objType == cudaArrayMemoryRequirements:
 *         return sizeof(cyruntime.cudaArrayMemoryRequirements)
 *     if objType == cudaPitchedPtr:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaPitchedPtr)
 *     if objType == cudaExtent:
*/
  }

  /* "cuda/bindings/runtime.pyx":34294
 *     if objType == cudaPitchedPtr:
 *         return sizeof(cyruntime.cudaPitchedPtr)
 *     if objType == cudaExtent:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExtent)
 *     if objType == cudaPos:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34294, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34295
 *         return sizeof(cyruntime.cudaPitchedPtr)
 *     if objType == cudaExtent:
 *         return sizeof(cyruntime.cudaExtent)             # <<<<<<<<<<<<<<
 *     if objType == cudaPos:
 *         return sizeof(cyruntime.cudaPos)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExtent))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34295, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34294
 *     if objType == cudaPitchedPtr:
 *         return sizeof(cyruntime.cudaPitchedPtr)
 *     if objType == cudaExtent:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExtent)
 *     if objType == cudaPos:
*/
  }

  /* "cuda/bindings/runtime.pyx":34296
 *     if objType == cudaExtent:
 *         return sizeof(cyruntime.cudaExtent)
 *     if objType == cudaPos:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaPos)
 *     if objType == cudaMemcpy3DParms:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34296, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34297
 *         return sizeof(cyruntime.cudaExtent)
 *     if objType == cudaPos:
 *         return sizeof(cyruntime.cudaPos)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemcpy3DParms:
 *         return sizeof(cyruntime.cudaMemcpy3DParms)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaPos))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34296
 *     if objType == cudaExtent:
 *         return sizeof(cyruntime.cudaExtent)
 *     if objType == cudaPos:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaPos)
 *     if objType == cudaMemcpy3DParms:
*/
  }

  /* "cuda/bindings/runtime.pyx":34298
 *     if objType == cudaPos:
 *         return sizeof(cyruntime.cudaPos)
 *     if objType == cudaMemcpy3DParms:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpy3DParms)
 *     if objType == cudaMemcpyNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34298, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34298, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34299
 *         return sizeof(cyruntime.cudaPos)
 *     if objType == cudaMemcpy3DParms:
 *         return sizeof(cyruntime.cudaMemcpy3DParms)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemcpyNodeParams:
 *         return sizeof(cyruntime.cudaMemcpyNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemcpy3DParms))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34298
 *     if objType == cudaPos:
 *         return sizeof(cyruntime.cudaPos)
 *     if objType == cudaMemcpy3DParms:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpy3DParms)
 *     if objType == cudaMemcpyNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34300
 *     if objType == cudaMemcpy3DParms:
 *         return sizeof(cyruntime.cudaMemcpy3DParms)
 *     if objType == cudaMemcpyNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpyNodeParams)
 *     if objType == cudaMemcpy3DPeerParms:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34300, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34300, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34301
 *         return sizeof(cyruntime.cudaMemcpy3DParms)
 *     if objType == cudaMemcpyNodeParams:
 *         return sizeof(cyruntime.cudaMemcpyNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemcpy3DPeerParms:
 *         return sizeof(cyruntime.cudaMemcpy3DPeerParms)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemcpyNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34300
 *     if objType == cudaMemcpy3DParms:
 *         return sizeof(cyruntime.cudaMemcpy3DParms)
 *     if objType == cudaMemcpyNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpyNodeParams)
 *     if objType == cudaMemcpy3DPeerParms:
*/
  }

  /* "cuda/bindings/runtime.pyx":34302
 *     if objType == cudaMemcpyNodeParams:
 *         return sizeof(cyruntime.cudaMemcpyNodeParams)
 *     if objType == cudaMemcpy3DPeerParms:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpy3DPeerParms)
 *     if objType == cudaMemsetParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34302, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34302, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34303
 *         return sizeof(cyruntime.cudaMemcpyNodeParams)
 *     if objType == cudaMemcpy3DPeerParms:
 *         return sizeof(cyruntime.cudaMemcpy3DPeerParms)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemsetParams:
 *         return sizeof(cyruntime.cudaMemsetParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemcpy3DPeerParms))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34302
 *     if objType == cudaMemcpyNodeParams:
 *         return sizeof(cyruntime.cudaMemcpyNodeParams)
 *     if objType == cudaMemcpy3DPeerParms:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpy3DPeerParms)
 *     if objType == cudaMemsetParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34304
 *     if objType == cudaMemcpy3DPeerParms:
 *         return sizeof(cyruntime.cudaMemcpy3DPeerParms)
 *     if objType == cudaMemsetParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemsetParams)
 *     if objType == cudaMemsetParamsV2:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34304, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34304, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34305
 *         return sizeof(cyruntime.cudaMemcpy3DPeerParms)
 *     if objType == cudaMemsetParams:
 *         return sizeof(cyruntime.cudaMemsetParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemsetParamsV2:
 *         return sizeof(cyruntime.cudaMemsetParamsV2)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemsetParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34305, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34304
 *     if objType == cudaMemcpy3DPeerParms:
 *         return sizeof(cyruntime.cudaMemcpy3DPeerParms)
 *     if objType == cudaMemsetParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemsetParams)
 *     if objType == cudaMemsetParamsV2:
*/
  }

  /* "cuda/bindings/runtime.pyx":34306
 *     if objType == cudaMemsetParams:
 *         return sizeof(cyruntime.cudaMemsetParams)
 *     if objType == cudaMemsetParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemsetParamsV2)
 *     if objType == cudaAccessPolicyWindow:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34306, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34306, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34307
 *         return sizeof(cyruntime.cudaMemsetParams)
 *     if objType == cudaMemsetParamsV2:
 *         return sizeof(cyruntime.cudaMemsetParamsV2)             # <<<<<<<<<<<<<<
 *     if objType == cudaAccessPolicyWindow:
 *         return sizeof(cyruntime.cudaAccessPolicyWindow)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemsetParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34306
 *     if objType == cudaMemsetParams:
 *         return sizeof(cyruntime.cudaMemsetParams)
 *     if objType == cudaMemsetParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemsetParamsV2)
 *     if objType == cudaAccessPolicyWindow:
*/
  }

  /* "cuda/bindings/runtime.pyx":34308
 *     if objType == cudaMemsetParamsV2:
 *         return sizeof(cyruntime.cudaMemsetParamsV2)
 *     if objType == cudaAccessPolicyWindow:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAccessPolicyWindow)
 *     if objType == cudaHostFn_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34308, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34309
 *         return sizeof(cyruntime.cudaMemsetParamsV2)
 *     if objType == cudaAccessPolicyWindow:
 *         return sizeof(cyruntime.cudaAccessPolicyWindow)             # <<<<<<<<<<<<<<
 *     if objType == cudaHostFn_t:
 *         return sizeof(cyruntime.cudaHostFn_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaAccessPolicyWindow))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34308
 *     if objType == cudaMemsetParamsV2:
 *         return sizeof(cyruntime.cudaMemsetParamsV2)
 *     if objType == cudaAccessPolicyWindow:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAccessPolicyWindow)
 *     if objType == cudaHostFn_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34310
 *     if objType == cudaAccessPolicyWindow:
 *         return sizeof(cyruntime.cudaAccessPolicyWindow)
 *     if objType == cudaHostFn_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaHostFn_t)
 *     if objType == cudaHostNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34310, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34310, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34311
 *         return sizeof(cyruntime.cudaAccessPolicyWindow)
 *     if objType == cudaHostFn_t:
 *         return sizeof(cyruntime.cudaHostFn_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaHostNodeParams:
 *         return sizeof(cyruntime.cudaHostNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaHostFn_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34311, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34310
 *     if objType == cudaAccessPolicyWindow:
 *         return sizeof(cyruntime.cudaAccessPolicyWindow)
 *     if objType == cudaHostFn_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaHostFn_t)
 *     if objType == cudaHostNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34312
 *     if objType == cudaHostFn_t:
 *         return sizeof(cyruntime.cudaHostFn_t)
 *     if objType == cudaHostNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaHostNodeParams)
 *     if objType == cudaHostNodeParamsV2:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34312, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34312, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34313
 *         return sizeof(cyruntime.cudaHostFn_t)
 *     if objType == cudaHostNodeParams:
 *         return sizeof(cyruntime.cudaHostNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaHostNodeParamsV2:
 *         return sizeof(cyruntime.cudaHostNodeParamsV2)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaHostNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34313, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34312
 *     if objType == cudaHostFn_t:
 *         return sizeof(cyruntime.cudaHostFn_t)
 *     if objType == cudaHostNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaHostNodeParams)
 *     if objType == cudaHostNodeParamsV2:
*/
  }

  /* "cuda/bindings/runtime.pyx":34314
 *     if objType == cudaHostNodeParams:
 *         return sizeof(cyruntime.cudaHostNodeParams)
 *     if objType == cudaHostNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaHostNodeParamsV2)
 *     if objType == cudaResourceDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34314, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34314, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34315
 *         return sizeof(cyruntime.cudaHostNodeParams)
 *     if objType == cudaHostNodeParamsV2:
 *         return sizeof(cyruntime.cudaHostNodeParamsV2)             # <<<<<<<<<<<<<<
 *     if objType == cudaResourceDesc:
 *         return sizeof(cyruntime.cudaResourceDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaHostNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34314
 *     if objType == cudaHostNodeParams:
 *         return sizeof(cyruntime.cudaHostNodeParams)
 *     if objType == cudaHostNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaHostNodeParamsV2)
 *     if objType == cudaResourceDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34316
 *     if objType == cudaHostNodeParamsV2:
 *         return sizeof(cyruntime.cudaHostNodeParamsV2)
 *     if objType == cudaResourceDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaResourceDesc)
 *     if objType == cudaResourceViewDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34316, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34317
 *         return sizeof(cyruntime.cudaHostNodeParamsV2)
 *     if objType == cudaResourceDesc:
 *         return sizeof(cyruntime.cudaResourceDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaResourceViewDesc:
 *         return sizeof(cyruntime.cudaResourceViewDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaResourceDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34316
 *     if objType == cudaHostNodeParamsV2:
 *         return sizeof(cyruntime.cudaHostNodeParamsV2)
 *     if objType == cudaResourceDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaResourceDesc)
 *     if objType == cudaResourceViewDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34318
 *     if objType == cudaResourceDesc:
 *         return sizeof(cyruntime.cudaResourceDesc)
 *     if objType == cudaResourceViewDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaResourceViewDesc)
 *     if objType == cudaPointerAttributes:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34318, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34318, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34319
 *         return sizeof(cyruntime.cudaResourceDesc)
 *     if objType == cudaResourceViewDesc:
 *         return sizeof(cyruntime.cudaResourceViewDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaPointerAttributes:
 *         return sizeof(cyruntime.cudaPointerAttributes)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaResourceViewDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34319, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34318
 *     if objType == cudaResourceDesc:
 *         return sizeof(cyruntime.cudaResourceDesc)
 *     if objType == cudaResourceViewDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaResourceViewDesc)
 *     if objType == cudaPointerAttributes:
*/
  }

  /* "cuda/bindings/runtime.pyx":34320
 *     if objType == cudaResourceViewDesc:
 *         return sizeof(cyruntime.cudaResourceViewDesc)
 *     if objType == cudaPointerAttributes:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaPointerAttributes)
 *     if objType == cudaFuncAttributes:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34320, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34321
 *         return sizeof(cyruntime.cudaResourceViewDesc)
 *     if objType == cudaPointerAttributes:
 *         return sizeof(cyruntime.cudaPointerAttributes)             # <<<<<<<<<<<<<<
 *     if objType == cudaFuncAttributes:
 *         return sizeof(cyruntime.cudaFuncAttributes)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaPointerAttributes))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34321, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34320
 *     if objType == cudaResourceViewDesc:
 *         return sizeof(cyruntime.cudaResourceViewDesc)
 *     if objType == cudaPointerAttributes:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaPointerAttributes)
 *     if objType == cudaFuncAttributes:
*/
  }

  /* "cuda/bindings/runtime.pyx":34322
 *     if objType == cudaPointerAttributes:
 *         return sizeof(cyruntime.cudaPointerAttributes)
 *     if objType == cudaFuncAttributes:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaFuncAttributes)
 *     if objType == cudaMemLocation:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34322, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34322, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34323
 *         return sizeof(cyruntime.cudaPointerAttributes)
 *     if objType == cudaFuncAttributes:
 *         return sizeof(cyruntime.cudaFuncAttributes)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemLocation:
 *         return sizeof(cyruntime.cudaMemLocation)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaFuncAttributes))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34323, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34322
 *     if objType == cudaPointerAttributes:
 *         return sizeof(cyruntime.cudaPointerAttributes)
 *     if objType == cudaFuncAttributes:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaFuncAttributes)
 *     if objType == cudaMemLocation:
*/
  }

  /* "cuda/bindings/runtime.pyx":34324
 *     if objType == cudaFuncAttributes:
 *         return sizeof(cyruntime.cudaFuncAttributes)
 *     if objType == cudaMemLocation:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemLocation)
 *     if objType == cudaMemAccessDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34324, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34324, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34325
 *         return sizeof(cyruntime.cudaFuncAttributes)
 *     if objType == cudaMemLocation:
 *         return sizeof(cyruntime.cudaMemLocation)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemAccessDesc:
 *         return sizeof(cyruntime.cudaMemAccessDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemLocation))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34325, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34324
 *     if objType == cudaFuncAttributes:
 *         return sizeof(cyruntime.cudaFuncAttributes)
 *     if objType == cudaMemLocation:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemLocation)
 *     if objType == cudaMemAccessDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34326
 *     if objType == cudaMemLocation:
 *         return sizeof(cyruntime.cudaMemLocation)
 *     if objType == cudaMemAccessDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemAccessDesc)
 *     if objType == cudaMemPoolProps:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34326, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34326, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34327
 *         return sizeof(cyruntime.cudaMemLocation)
 *     if objType == cudaMemAccessDesc:
 *         return sizeof(cyruntime.cudaMemAccessDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemPoolProps:
 *         return sizeof(cyruntime.cudaMemPoolProps)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemAccessDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34327, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34326
 *     if objType == cudaMemLocation:
 *         return sizeof(cyruntime.cudaMemLocation)
 *     if objType == cudaMemAccessDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemAccessDesc)
 *     if objType == cudaMemPoolProps:
*/
  }

  /* "cuda/bindings/runtime.pyx":34328
 *     if objType == cudaMemAccessDesc:
 *         return sizeof(cyruntime.cudaMemAccessDesc)
 *     if objType == cudaMemPoolProps:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemPoolProps)
 *     if objType == cudaMemPoolPtrExportData:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34328, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34329
 *         return sizeof(cyruntime.cudaMemAccessDesc)
 *     if objType == cudaMemPoolProps:
 *         return sizeof(cyruntime.cudaMemPoolProps)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemPoolPtrExportData:
 *         return sizeof(cyruntime.cudaMemPoolPtrExportData)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemPoolProps))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34328
 *     if objType == cudaMemAccessDesc:
 *         return sizeof(cyruntime.cudaMemAccessDesc)
 *     if objType == cudaMemPoolProps:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemPoolProps)
 *     if objType == cudaMemPoolPtrExportData:
*/
  }

  /* "cuda/bindings/runtime.pyx":34330
 *     if objType == cudaMemPoolProps:
 *         return sizeof(cyruntime.cudaMemPoolProps)
 *     if objType == cudaMemPoolPtrExportData:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemPoolPtrExportData)
 *     if objType == cudaMemAllocNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34330, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34330, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34331
 *         return sizeof(cyruntime.cudaMemPoolProps)
 *     if objType == cudaMemPoolPtrExportData:
 *         return sizeof(cyruntime.cudaMemPoolPtrExportData)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemAllocNodeParams:
 *         return sizeof(cyruntime.cudaMemAllocNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemPoolPtrExportData))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34331, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34330
 *     if objType == cudaMemPoolProps:
 *         return sizeof(cyruntime.cudaMemPoolProps)
 *     if objType == cudaMemPoolPtrExportData:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemPoolPtrExportData)
 *     if objType == cudaMemAllocNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34332
 *     if objType == cudaMemPoolPtrExportData:
 *         return sizeof(cyruntime.cudaMemPoolPtrExportData)
 *     if objType == cudaMemAllocNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemAllocNodeParams)
 *     if objType == cudaMemAllocNodeParamsV2:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34332, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34332, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34333
 *         return sizeof(cyruntime.cudaMemPoolPtrExportData)
 *     if objType == cudaMemAllocNodeParams:
 *         return sizeof(cyruntime.cudaMemAllocNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemAllocNodeParamsV2:
 *         return sizeof(cyruntime.cudaMemAllocNodeParamsV2)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemAllocNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34332
 *     if objType == cudaMemPoolPtrExportData:
 *         return sizeof(cyruntime.cudaMemPoolPtrExportData)
 *     if objType == cudaMemAllocNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemAllocNodeParams)
 *     if objType == cudaMemAllocNodeParamsV2:
*/
  }

  /* "cuda/bindings/runtime.pyx":34334
 *     if objType == cudaMemAllocNodeParams:
 *         return sizeof(cyruntime.cudaMemAllocNodeParams)
 *     if objType == cudaMemAllocNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemAllocNodeParamsV2)
 *     if objType == cudaMemFreeNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34334, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34334, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34335
 *         return sizeof(cyruntime.cudaMemAllocNodeParams)
 *     if objType == cudaMemAllocNodeParamsV2:
 *         return sizeof(cyruntime.cudaMemAllocNodeParamsV2)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemFreeNodeParams:
 *         return sizeof(cyruntime.cudaMemFreeNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemAllocNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34335, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34334
 *     if objType == cudaMemAllocNodeParams:
 *         return sizeof(cyruntime.cudaMemAllocNodeParams)
 *     if objType == cudaMemAllocNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemAllocNodeParamsV2)
 *     if objType == cudaMemFreeNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34336
 *     if objType == cudaMemAllocNodeParamsV2:
 *         return sizeof(cyruntime.cudaMemAllocNodeParamsV2)
 *     if objType == cudaMemFreeNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemFreeNodeParams)
 *     if objType == cudaMemcpyAttributes:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34336, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34337
 *         return sizeof(cyruntime.cudaMemAllocNodeParamsV2)
 *     if objType == cudaMemFreeNodeParams:
 *         return sizeof(cyruntime.cudaMemFreeNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemcpyAttributes:
 *         return sizeof(cyruntime.cudaMemcpyAttributes)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemFreeNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34336
 *     if objType == cudaMemAllocNodeParamsV2:
 *         return sizeof(cyruntime.cudaMemAllocNodeParamsV2)
 *     if objType == cudaMemFreeNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemFreeNodeParams)
 *     if objType == cudaMemcpyAttributes:
*/
  }

  /* "cuda/bindings/runtime.pyx":34338
 *     if objType == cudaMemFreeNodeParams:
 *         return sizeof(cyruntime.cudaMemFreeNodeParams)
 *     if objType == cudaMemcpyAttributes:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpyAttributes)
 *     if objType == cudaOffset3D:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34338, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34338, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34339
 *         return sizeof(cyruntime.cudaMemFreeNodeParams)
 *     if objType == cudaMemcpyAttributes:
 *         return sizeof(cyruntime.cudaMemcpyAttributes)             # <<<<<<<<<<<<<<
 *     if objType == cudaOffset3D:
 *         return sizeof(cyruntime.cudaOffset3D)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemcpyAttributes))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34338
 *     if objType == cudaMemFreeNodeParams:
 *         return sizeof(cyruntime.cudaMemFreeNodeParams)
 *     if objType == cudaMemcpyAttributes:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpyAttributes)
 *     if objType == cudaOffset3D:
*/
  }

  /* "cuda/bindings/runtime.pyx":34340
 *     if objType == cudaMemcpyAttributes:
 *         return sizeof(cyruntime.cudaMemcpyAttributes)
 *     if objType == cudaOffset3D:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaOffset3D)
 *     if objType == cudaMemcpy3DOperand:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34340, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34340, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34341
 *         return sizeof(cyruntime.cudaMemcpyAttributes)
 *     if objType == cudaOffset3D:
 *         return sizeof(cyruntime.cudaOffset3D)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemcpy3DOperand:
 *         return sizeof(cyruntime.cudaMemcpy3DOperand)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaOffset3D))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34340
 *     if objType == cudaMemcpyAttributes:
 *         return sizeof(cyruntime.cudaMemcpyAttributes)
 *     if objType == cudaOffset3D:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaOffset3D)
 *     if objType == cudaMemcpy3DOperand:
*/
  }

  /* "cuda/bindings/runtime.pyx":34342
 *     if objType == cudaOffset3D:
 *         return sizeof(cyruntime.cudaOffset3D)
 *     if objType == cudaMemcpy3DOperand:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpy3DOperand)
 *     if objType == cudaMemcpy3DBatchOp:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34342, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34342, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34343
 *         return sizeof(cyruntime.cudaOffset3D)
 *     if objType == cudaMemcpy3DOperand:
 *         return sizeof(cyruntime.cudaMemcpy3DOperand)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemcpy3DBatchOp:
 *         return sizeof(cyruntime.cudaMemcpy3DBatchOp)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemcpy3DOperand))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34343, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34342
 *     if objType == cudaOffset3D:
 *         return sizeof(cyruntime.cudaOffset3D)
 *     if objType == cudaMemcpy3DOperand:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpy3DOperand)
 *     if objType == cudaMemcpy3DBatchOp:
*/
  }

  /* "cuda/bindings/runtime.pyx":34344
 *     if objType == cudaMemcpy3DOperand:
 *         return sizeof(cyruntime.cudaMemcpy3DOperand)
 *     if objType == cudaMemcpy3DBatchOp:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpy3DBatchOp)
 *     if objType == CUuuid_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34344, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34344, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34345
 *         return sizeof(cyruntime.cudaMemcpy3DOperand)
 *     if objType == cudaMemcpy3DBatchOp:
 *         return sizeof(cyruntime.cudaMemcpy3DBatchOp)             # <<<<<<<<<<<<<<
 *     if objType == CUuuid_st:
 *         return sizeof(cyruntime.CUuuid_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemcpy3DBatchOp))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34345, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34344
 *     if objType == cudaMemcpy3DOperand:
 *         return sizeof(cyruntime.cudaMemcpy3DOperand)
 *     if objType == cudaMemcpy3DBatchOp:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemcpy3DBatchOp)
 *     if objType == CUuuid_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34346
 *     if objType == cudaMemcpy3DBatchOp:
 *         return sizeof(cyruntime.cudaMemcpy3DBatchOp)
 *     if objType == CUuuid_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.CUuuid_st)
 *     if objType == CUuuid:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34346, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34346, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34347
 *         return sizeof(cyruntime.cudaMemcpy3DBatchOp)
 *     if objType == CUuuid_st:
 *         return sizeof(cyruntime.CUuuid_st)             # <<<<<<<<<<<<<<
 *     if objType == CUuuid:
 *         return sizeof(cyruntime.CUuuid)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct CUuuid_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34346
 *     if objType == cudaMemcpy3DBatchOp:
 *         return sizeof(cyruntime.cudaMemcpy3DBatchOp)
 *     if objType == CUuuid_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.CUuuid_st)
 *     if objType == CUuuid:
*/
  }

  /* "cuda/bindings/runtime.pyx":34348
 *     if objType == CUuuid_st:
 *         return sizeof(cyruntime.CUuuid_st)
 *     if objType == CUuuid:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.CUuuid)
 *     if objType == cudaUUID_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34348, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34348, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34349
 *         return sizeof(cyruntime.CUuuid_st)
 *     if objType == CUuuid:
 *         return sizeof(cyruntime.CUuuid)             # <<<<<<<<<<<<<<
 *     if objType == cudaUUID_t:
 *         return sizeof(cyruntime.cudaUUID_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(CUuuid))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34348
 *     if objType == CUuuid_st:
 *         return sizeof(cyruntime.CUuuid_st)
 *     if objType == CUuuid:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.CUuuid)
 *     if objType == cudaUUID_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34350
 *     if objType == CUuuid:
 *         return sizeof(cyruntime.CUuuid)
 *     if objType == cudaUUID_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaUUID_t)
 *     if objType == cudaDeviceProp:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34350, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34350, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34351
 *         return sizeof(cyruntime.CUuuid)
 *     if objType == cudaUUID_t:
 *         return sizeof(cyruntime.cudaUUID_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaDeviceProp:
 *         return sizeof(cyruntime.cudaDeviceProp)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaUUID_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34350
 *     if objType == CUuuid:
 *         return sizeof(cyruntime.CUuuid)
 *     if objType == cudaUUID_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaUUID_t)
 *     if objType == cudaDeviceProp:
*/
  }

  /* "cuda/bindings/runtime.pyx":34352
 *     if objType == cudaUUID_t:
 *         return sizeof(cyruntime.cudaUUID_t)
 *     if objType == cudaDeviceProp:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDeviceProp)
 *     if objType == cudaIpcEventHandle_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34352, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34352, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34353
 *         return sizeof(cyruntime.cudaUUID_t)
 *     if objType == cudaDeviceProp:
 *         return sizeof(cyruntime.cudaDeviceProp)             # <<<<<<<<<<<<<<
 *     if objType == cudaIpcEventHandle_st:
 *         return sizeof(cyruntime.cudaIpcEventHandle_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaDeviceProp))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34352
 *     if objType == cudaUUID_t:
 *         return sizeof(cyruntime.cudaUUID_t)
 *     if objType == cudaDeviceProp:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDeviceProp)
 *     if objType == cudaIpcEventHandle_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34354
 *     if objType == cudaDeviceProp:
 *         return sizeof(cyruntime.cudaDeviceProp)
 *     if objType == cudaIpcEventHandle_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaIpcEventHandle_st)
 *     if objType == cudaIpcEventHandle_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34354, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34354, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34355
 *         return sizeof(cyruntime.cudaDeviceProp)
 *     if objType == cudaIpcEventHandle_st:
 *         return sizeof(cyruntime.cudaIpcEventHandle_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaIpcEventHandle_t:
 *         return sizeof(cyruntime.cudaIpcEventHandle_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaIpcEventHandle_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34355, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34354
 *     if objType == cudaDeviceProp:
 *         return sizeof(cyruntime.cudaDeviceProp)
 *     if objType == cudaIpcEventHandle_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaIpcEventHandle_st)
 *     if objType == cudaIpcEventHandle_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34356
 *     if objType == cudaIpcEventHandle_st:
 *         return sizeof(cyruntime.cudaIpcEventHandle_st)
 *     if objType == cudaIpcEventHandle_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaIpcEventHandle_t)
 *     if objType == cudaIpcMemHandle_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34356, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34356, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34357
 *         return sizeof(cyruntime.cudaIpcEventHandle_st)
 *     if objType == cudaIpcEventHandle_t:
 *         return sizeof(cyruntime.cudaIpcEventHandle_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaIpcMemHandle_st:
 *         return sizeof(cyruntime.cudaIpcMemHandle_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaIpcEventHandle_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34356
 *     if objType == cudaIpcEventHandle_st:
 *         return sizeof(cyruntime.cudaIpcEventHandle_st)
 *     if objType == cudaIpcEventHandle_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaIpcEventHandle_t)
 *     if objType == cudaIpcMemHandle_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34358
 *     if objType == cudaIpcEventHandle_t:
 *         return sizeof(cyruntime.cudaIpcEventHandle_t)
 *     if objType == cudaIpcMemHandle_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaIpcMemHandle_st)
 *     if objType == cudaIpcMemHandle_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34358, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34358, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34359
 *         return sizeof(cyruntime.cudaIpcEventHandle_t)
 *     if objType == cudaIpcMemHandle_st:
 *         return sizeof(cyruntime.cudaIpcMemHandle_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaIpcMemHandle_t:
 *         return sizeof(cyruntime.cudaIpcMemHandle_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaIpcMemHandle_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34359, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34358
 *     if objType == cudaIpcEventHandle_t:
 *         return sizeof(cyruntime.cudaIpcEventHandle_t)
 *     if objType == cudaIpcMemHandle_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaIpcMemHandle_st)
 *     if objType == cudaIpcMemHandle_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34360
 *     if objType == cudaIpcMemHandle_st:
 *         return sizeof(cyruntime.cudaIpcMemHandle_st)
 *     if objType == cudaIpcMemHandle_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaIpcMemHandle_t)
 *     if objType == cudaMemFabricHandle_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34360, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34360, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34361
 *         return sizeof(cyruntime.cudaIpcMemHandle_st)
 *     if objType == cudaIpcMemHandle_t:
 *         return sizeof(cyruntime.cudaIpcMemHandle_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemFabricHandle_st:
 *         return sizeof(cyruntime.cudaMemFabricHandle_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaIpcMemHandle_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34361, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34360
 *     if objType == cudaIpcMemHandle_st:
 *         return sizeof(cyruntime.cudaIpcMemHandle_st)
 *     if objType == cudaIpcMemHandle_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaIpcMemHandle_t)
 *     if objType == cudaMemFabricHandle_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34362
 *     if objType == cudaIpcMemHandle_t:
 *         return sizeof(cyruntime.cudaIpcMemHandle_t)
 *     if objType == cudaMemFabricHandle_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemFabricHandle_st)
 *     if objType == cudaMemFabricHandle_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34362, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34362, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34363
 *         return sizeof(cyruntime.cudaIpcMemHandle_t)
 *     if objType == cudaMemFabricHandle_st:
 *         return sizeof(cyruntime.cudaMemFabricHandle_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemFabricHandle_t:
 *         return sizeof(cyruntime.cudaMemFabricHandle_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaMemFabricHandle_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34363, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34362
 *     if objType == cudaIpcMemHandle_t:
 *         return sizeof(cyruntime.cudaIpcMemHandle_t)
 *     if objType == cudaMemFabricHandle_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemFabricHandle_st)
 *     if objType == cudaMemFabricHandle_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34364
 *     if objType == cudaMemFabricHandle_st:
 *         return sizeof(cyruntime.cudaMemFabricHandle_st)
 *     if objType == cudaMemFabricHandle_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemFabricHandle_t)
 *     if objType == cudaExternalMemoryHandleDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34364, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34364, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34365
 *         return sizeof(cyruntime.cudaMemFabricHandle_st)
 *     if objType == cudaMemFabricHandle_t:
 *         return sizeof(cyruntime.cudaMemFabricHandle_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalMemoryHandleDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryHandleDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaMemFabricHandle_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34364
 *     if objType == cudaMemFabricHandle_st:
 *         return sizeof(cyruntime.cudaMemFabricHandle_st)
 *     if objType == cudaMemFabricHandle_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemFabricHandle_t)
 *     if objType == cudaExternalMemoryHandleDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34366
 *     if objType == cudaMemFabricHandle_t:
 *         return sizeof(cyruntime.cudaMemFabricHandle_t)
 *     if objType == cudaExternalMemoryHandleDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalMemoryHandleDesc)
 *     if objType == cudaExternalMemoryBufferDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34366, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34366, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34367
 *         return sizeof(cyruntime.cudaMemFabricHandle_t)
 *     if objType == cudaExternalMemoryHandleDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryHandleDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalMemoryBufferDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryBufferDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalMemoryHandleDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34367, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34366
 *     if objType == cudaMemFabricHandle_t:
 *         return sizeof(cyruntime.cudaMemFabricHandle_t)
 *     if objType == cudaExternalMemoryHandleDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalMemoryHandleDesc)
 *     if objType == cudaExternalMemoryBufferDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34368
 *     if objType == cudaExternalMemoryHandleDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryHandleDesc)
 *     if objType == cudaExternalMemoryBufferDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalMemoryBufferDesc)
 *     if objType == cudaExternalMemoryMipmappedArrayDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34368, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34368, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34369
 *         return sizeof(cyruntime.cudaExternalMemoryHandleDesc)
 *     if objType == cudaExternalMemoryBufferDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryBufferDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalMemoryMipmappedArrayDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalMemoryBufferDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34369, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34368
 *     if objType == cudaExternalMemoryHandleDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryHandleDesc)
 *     if objType == cudaExternalMemoryBufferDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalMemoryBufferDesc)
 *     if objType == cudaExternalMemoryMipmappedArrayDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34370
 *     if objType == cudaExternalMemoryBufferDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryBufferDesc)
 *     if objType == cudaExternalMemoryMipmappedArrayDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc)
 *     if objType == cudaExternalSemaphoreHandleDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34370, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34370, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34371
 *         return sizeof(cyruntime.cudaExternalMemoryBufferDesc)
 *     if objType == cudaExternalMemoryMipmappedArrayDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalSemaphoreHandleDesc:
 *         return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalMemoryMipmappedArrayDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34371, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34370
 *     if objType == cudaExternalMemoryBufferDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryBufferDesc)
 *     if objType == cudaExternalMemoryMipmappedArrayDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc)
 *     if objType == cudaExternalSemaphoreHandleDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34372
 *     if objType == cudaExternalMemoryMipmappedArrayDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc)
 *     if objType == cudaExternalSemaphoreHandleDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc)
 *     if objType == cudaExternalSemaphoreSignalParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34372, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34373
 *         return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc)
 *     if objType == cudaExternalSemaphoreHandleDesc:
 *         return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalSemaphoreSignalParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreHandleDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34372
 *     if objType == cudaExternalMemoryMipmappedArrayDesc:
 *         return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc)
 *     if objType == cudaExternalSemaphoreHandleDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc)
 *     if objType == cudaExternalSemaphoreSignalParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34374
 *     if objType == cudaExternalSemaphoreHandleDesc:
 *         return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc)
 *     if objType == cudaExternalSemaphoreSignalParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalParams)
 *     if objType == cudaExternalSemaphoreWaitParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34374, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34375
 *         return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc)
 *     if objType == cudaExternalSemaphoreSignalParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalSemaphoreWaitParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34374
 *     if objType == cudaExternalSemaphoreHandleDesc:
 *         return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc)
 *     if objType == cudaExternalSemaphoreSignalParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalParams)
 *     if objType == cudaExternalSemaphoreWaitParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34376
 *     if objType == cudaExternalSemaphoreSignalParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalParams)
 *     if objType == cudaExternalSemaphoreWaitParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitParams)
 *     if objType == cudaDevSmResource:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34376, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34377
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalParams)
 *     if objType == cudaExternalSemaphoreWaitParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaDevSmResource:
 *         return sizeof(cyruntime.cudaDevSmResource)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34376
 *     if objType == cudaExternalSemaphoreSignalParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalParams)
 *     if objType == cudaExternalSemaphoreWaitParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitParams)
 *     if objType == cudaDevSmResource:
*/
  }

  /* "cuda/bindings/runtime.pyx":34378
 *     if objType == cudaExternalSemaphoreWaitParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitParams)
 *     if objType == cudaDevSmResource:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevSmResource)
 *     if objType == cudaDevWorkqueueConfigResource:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34378, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34378, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34379
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitParams)
 *     if objType == cudaDevSmResource:
 *         return sizeof(cyruntime.cudaDevSmResource)             # <<<<<<<<<<<<<<
 *     if objType == cudaDevWorkqueueConfigResource:
 *         return sizeof(cyruntime.cudaDevWorkqueueConfigResource)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaDevSmResource))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34378
 *     if objType == cudaExternalSemaphoreWaitParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitParams)
 *     if objType == cudaDevSmResource:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevSmResource)
 *     if objType == cudaDevWorkqueueConfigResource:
*/
  }

  /* "cuda/bindings/runtime.pyx":34380
 *     if objType == cudaDevSmResource:
 *         return sizeof(cyruntime.cudaDevSmResource)
 *     if objType == cudaDevWorkqueueConfigResource:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevWorkqueueConfigResource)
 *     if objType == cudaDevWorkqueueResource:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34380, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34380, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34381
 *         return sizeof(cyruntime.cudaDevSmResource)
 *     if objType == cudaDevWorkqueueConfigResource:
 *         return sizeof(cyruntime.cudaDevWorkqueueConfigResource)             # <<<<<<<<<<<<<<
 *     if objType == cudaDevWorkqueueResource:
 *         return sizeof(cyruntime.cudaDevWorkqueueResource)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaDevWorkqueueConfigResource))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34381, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34380
 *     if objType == cudaDevSmResource:
 *         return sizeof(cyruntime.cudaDevSmResource)
 *     if objType == cudaDevWorkqueueConfigResource:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevWorkqueueConfigResource)
 *     if objType == cudaDevWorkqueueResource:
*/
  }

  /* "cuda/bindings/runtime.pyx":34382
 *     if objType == cudaDevWorkqueueConfigResource:
 *         return sizeof(cyruntime.cudaDevWorkqueueConfigResource)
 *     if objType == cudaDevWorkqueueResource:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevWorkqueueResource)
 *     if objType == cudaDevSmResourceGroupParams_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34382, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34382, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34383
 *         return sizeof(cyruntime.cudaDevWorkqueueConfigResource)
 *     if objType == cudaDevWorkqueueResource:
 *         return sizeof(cyruntime.cudaDevWorkqueueResource)             # <<<<<<<<<<<<<<
 *     if objType == cudaDevSmResourceGroupParams_st:
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaDevWorkqueueResource))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34383, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34382
 *     if objType == cudaDevWorkqueueConfigResource:
 *         return sizeof(cyruntime.cudaDevWorkqueueConfigResource)
 *     if objType == cudaDevWorkqueueResource:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevWorkqueueResource)
 *     if objType == cudaDevSmResourceGroupParams_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34384
 *     if objType == cudaDevWorkqueueResource:
 *         return sizeof(cyruntime.cudaDevWorkqueueResource)
 *     if objType == cudaDevSmResourceGroupParams_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams_st)
 *     if objType == cudaDevSmResourceGroupParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34384, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34385
 *         return sizeof(cyruntime.cudaDevWorkqueueResource)
 *     if objType == cudaDevSmResourceGroupParams_st:
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaDevSmResourceGroupParams:
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaDevSmResourceGroupParams_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34385, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34384
 *     if objType == cudaDevWorkqueueResource:
 *         return sizeof(cyruntime.cudaDevWorkqueueResource)
 *     if objType == cudaDevSmResourceGroupParams_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams_st)
 *     if objType == cudaDevSmResourceGroupParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34386
 *     if objType == cudaDevSmResourceGroupParams_st:
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams_st)
 *     if objType == cudaDevSmResourceGroupParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams)
 *     if objType == cudaDevResource_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34386, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34386, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34387
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams_st)
 *     if objType == cudaDevSmResourceGroupParams:
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaDevResource_st:
 *         return sizeof(cyruntime.cudaDevResource_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaDevSmResourceGroupParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34387, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34386
 *     if objType == cudaDevSmResourceGroupParams_st:
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams_st)
 *     if objType == cudaDevSmResourceGroupParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams)
 *     if objType == cudaDevResource_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34388
 *     if objType == cudaDevSmResourceGroupParams:
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams)
 *     if objType == cudaDevResource_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevResource_st)
 *     if objType == cudaDevResource:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34388, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34388, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34389
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams)
 *     if objType == cudaDevResource_st:
 *         return sizeof(cyruntime.cudaDevResource_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaDevResource:
 *         return sizeof(cyruntime.cudaDevResource)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaDevResource_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34388
 *     if objType == cudaDevSmResourceGroupParams:
 *         return sizeof(cyruntime.cudaDevSmResourceGroupParams)
 *     if objType == cudaDevResource_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevResource_st)
 *     if objType == cudaDevResource:
*/
  }

  /* "cuda/bindings/runtime.pyx":34390
 *     if objType == cudaDevResource_st:
 *         return sizeof(cyruntime.cudaDevResource_st)
 *     if objType == cudaDevResource:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevResource)
 *     if objType == cudaStream_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34390, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34390, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34391
 *         return sizeof(cyruntime.cudaDevResource_st)
 *     if objType == cudaDevResource:
 *         return sizeof(cyruntime.cudaDevResource)             # <<<<<<<<<<<<<<
 *     if objType == cudaStream_t:
 *         return sizeof(cyruntime.cudaStream_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaDevResource))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34391, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34390
 *     if objType == cudaDevResource_st:
 *         return sizeof(cyruntime.cudaDevResource_st)
 *     if objType == cudaDevResource:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaDevResource)
 *     if objType == cudaStream_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34392
 *     if objType == cudaDevResource:
 *         return sizeof(cyruntime.cudaDevResource)
 *     if objType == cudaStream_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaStream_t)
 *     if objType == cudaEvent_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34392, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34392, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34393
 *         return sizeof(cyruntime.cudaDevResource)
 *     if objType == cudaStream_t:
 *         return sizeof(cyruntime.cudaStream_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaEvent_t:
 *         return sizeof(cyruntime.cudaEvent_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaStream_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34392
 *     if objType == cudaDevResource:
 *         return sizeof(cyruntime.cudaDevResource)
 *     if objType == cudaStream_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaStream_t)
 *     if objType == cudaEvent_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34394
 *     if objType == cudaStream_t:
 *         return sizeof(cyruntime.cudaStream_t)
 *     if objType == cudaEvent_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEvent_t)
 *     if objType == cudaGraphicsResource_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34394, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34394, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34395
 *         return sizeof(cyruntime.cudaStream_t)
 *     if objType == cudaEvent_t:
 *         return sizeof(cyruntime.cudaEvent_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphicsResource_t:
 *         return sizeof(cyruntime.cudaGraphicsResource_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaEvent_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34394
 *     if objType == cudaStream_t:
 *         return sizeof(cyruntime.cudaStream_t)
 *     if objType == cudaEvent_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEvent_t)
 *     if objType == cudaGraphicsResource_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34396
 *     if objType == cudaEvent_t:
 *         return sizeof(cyruntime.cudaEvent_t)
 *     if objType == cudaGraphicsResource_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphicsResource_t)
 *     if objType == cudaExternalMemory_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34396, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34396, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34397
 *         return sizeof(cyruntime.cudaEvent_t)
 *     if objType == cudaGraphicsResource_t:
 *         return sizeof(cyruntime.cudaGraphicsResource_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalMemory_t:
 *         return sizeof(cyruntime.cudaExternalMemory_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphicsResource_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34396
 *     if objType == cudaEvent_t:
 *         return sizeof(cyruntime.cudaEvent_t)
 *     if objType == cudaGraphicsResource_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphicsResource_t)
 *     if objType == cudaExternalMemory_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34398
 *     if objType == cudaGraphicsResource_t:
 *         return sizeof(cyruntime.cudaGraphicsResource_t)
 *     if objType == cudaExternalMemory_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalMemory_t)
 *     if objType == cudaExternalSemaphore_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34398, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34398, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34399
 *         return sizeof(cyruntime.cudaGraphicsResource_t)
 *     if objType == cudaExternalMemory_t:
 *         return sizeof(cyruntime.cudaExternalMemory_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalSemaphore_t:
 *         return sizeof(cyruntime.cudaExternalSemaphore_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaExternalMemory_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34398
 *     if objType == cudaGraphicsResource_t:
 *         return sizeof(cyruntime.cudaGraphicsResource_t)
 *     if objType == cudaExternalMemory_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalMemory_t)
 *     if objType == cudaExternalSemaphore_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34400
 *     if objType == cudaExternalMemory_t:
 *         return sizeof(cyruntime.cudaExternalMemory_t)
 *     if objType == cudaExternalSemaphore_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphore_t)
 *     if objType == cudaGraph_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34400, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34400, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34401
 *         return sizeof(cyruntime.cudaExternalMemory_t)
 *     if objType == cudaExternalSemaphore_t:
 *         return sizeof(cyruntime.cudaExternalSemaphore_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraph_t:
 *         return sizeof(cyruntime.cudaGraph_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaExternalSemaphore_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34401, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34400
 *     if objType == cudaExternalMemory_t:
 *         return sizeof(cyruntime.cudaExternalMemory_t)
 *     if objType == cudaExternalSemaphore_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphore_t)
 *     if objType == cudaGraph_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34402
 *     if objType == cudaExternalSemaphore_t:
 *         return sizeof(cyruntime.cudaExternalSemaphore_t)
 *     if objType == cudaGraph_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraph_t)
 *     if objType == cudaGraphNode_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34402, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34402, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34403
 *         return sizeof(cyruntime.cudaExternalSemaphore_t)
 *     if objType == cudaGraph_t:
 *         return sizeof(cyruntime.cudaGraph_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphNode_t:
 *         return sizeof(cyruntime.cudaGraphNode_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraph_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34402
 *     if objType == cudaExternalSemaphore_t:
 *         return sizeof(cyruntime.cudaExternalSemaphore_t)
 *     if objType == cudaGraph_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraph_t)
 *     if objType == cudaGraphNode_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34404
 *     if objType == cudaGraph_t:
 *         return sizeof(cyruntime.cudaGraph_t)
 *     if objType == cudaGraphNode_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphNode_t)
 *     if objType == cudaUserObject_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34404, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34404, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34405
 *         return sizeof(cyruntime.cudaGraph_t)
 *     if objType == cudaGraphNode_t:
 *         return sizeof(cyruntime.cudaGraphNode_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaUserObject_t:
 *         return sizeof(cyruntime.cudaUserObject_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34404
 *     if objType == cudaGraph_t:
 *         return sizeof(cyruntime.cudaGraph_t)
 *     if objType == cudaGraphNode_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphNode_t)
 *     if objType == cudaUserObject_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34406
 *     if objType == cudaGraphNode_t:
 *         return sizeof(cyruntime.cudaGraphNode_t)
 *     if objType == cudaUserObject_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaUserObject_t)
 *     if objType == cudaGraphConditionalHandle:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34406, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34406, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34407
 *         return sizeof(cyruntime.cudaGraphNode_t)
 *     if objType == cudaUserObject_t:
 *         return sizeof(cyruntime.cudaUserObject_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphConditionalHandle:
 *         return sizeof(cyruntime.cudaGraphConditionalHandle)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaUserObject_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34406
 *     if objType == cudaGraphNode_t:
 *         return sizeof(cyruntime.cudaGraphNode_t)
 *     if objType == cudaUserObject_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaUserObject_t)
 *     if objType == cudaGraphConditionalHandle:
*/
  }

  /* "cuda/bindings/runtime.pyx":34408
 *     if objType == cudaUserObject_t:
 *         return sizeof(cyruntime.cudaUserObject_t)
 *     if objType == cudaGraphConditionalHandle:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphConditionalHandle)
 *     if objType == cudaFunction_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34408, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34408, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34409
 *         return sizeof(cyruntime.cudaUserObject_t)
 *     if objType == cudaGraphConditionalHandle:
 *         return sizeof(cyruntime.cudaGraphConditionalHandle)             # <<<<<<<<<<<<<<
 *     if objType == cudaFunction_t:
 *         return sizeof(cyruntime.cudaFunction_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphConditionalHandle))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34409, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34408
 *     if objType == cudaUserObject_t:
 *         return sizeof(cyruntime.cudaUserObject_t)
 *     if objType == cudaGraphConditionalHandle:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphConditionalHandle)
 *     if objType == cudaFunction_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34410
 *     if objType == cudaGraphConditionalHandle:
 *         return sizeof(cyruntime.cudaGraphConditionalHandle)
 *     if objType == cudaFunction_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaFunction_t)
 *     if objType == cudaKernel_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34410, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34410, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34411
 *         return sizeof(cyruntime.cudaGraphConditionalHandle)
 *     if objType == cudaFunction_t:
 *         return sizeof(cyruntime.cudaFunction_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaKernel_t:
 *         return sizeof(cyruntime.cudaKernel_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaFunction_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34410
 *     if objType == cudaGraphConditionalHandle:
 *         return sizeof(cyruntime.cudaGraphConditionalHandle)
 *     if objType == cudaFunction_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaFunction_t)
 *     if objType == cudaKernel_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34412
 *     if objType == cudaFunction_t:
 *         return sizeof(cyruntime.cudaFunction_t)
 *     if objType == cudaKernel_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaKernel_t)
 *     if objType == cudalibraryHostUniversalFunctionAndDataTable:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34412, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34412, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34413
 *         return sizeof(cyruntime.cudaFunction_t)
 *     if objType == cudaKernel_t:
 *         return sizeof(cyruntime.cudaKernel_t)             # <<<<<<<<<<<<<<
 *     if objType == cudalibraryHostUniversalFunctionAndDataTable:
 *         return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaKernel_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34412
 *     if objType == cudaFunction_t:
 *         return sizeof(cyruntime.cudaFunction_t)
 *     if objType == cudaKernel_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaKernel_t)
 *     if objType == cudalibraryHostUniversalFunctionAndDataTable:
*/
  }

  /* "cuda/bindings/runtime.pyx":34414
 *     if objType == cudaKernel_t:
 *         return sizeof(cyruntime.cudaKernel_t)
 *     if objType == cudalibraryHostUniversalFunctionAndDataTable:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable)
 *     if objType == cudaLibrary_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34414, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34414, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34415
 *         return sizeof(cyruntime.cudaKernel_t)
 *     if objType == cudalibraryHostUniversalFunctionAndDataTable:
 *         return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable)             # <<<<<<<<<<<<<<
 *     if objType == cudaLibrary_t:
 *         return sizeof(cyruntime.cudaLibrary_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudalibraryHostUniversalFunctionAndDataTable))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34415, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34414
 *     if objType == cudaKernel_t:
 *         return sizeof(cyruntime.cudaKernel_t)
 *     if objType == cudalibraryHostUniversalFunctionAndDataTable:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable)
 *     if objType == cudaLibrary_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34416
 *     if objType == cudalibraryHostUniversalFunctionAndDataTable:
 *         return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable)
 *     if objType == cudaLibrary_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLibrary_t)
 *     if objType == cudaMemPool_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34416, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34416, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34417
 *         return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable)
 *     if objType == cudaLibrary_t:
 *         return sizeof(cyruntime.cudaLibrary_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaMemPool_t:
 *         return sizeof(cyruntime.cudaMemPool_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaLibrary_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34417, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34416
 *     if objType == cudalibraryHostUniversalFunctionAndDataTable:
 *         return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable)
 *     if objType == cudaLibrary_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLibrary_t)
 *     if objType == cudaMemPool_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34418
 *     if objType == cudaLibrary_t:
 *         return sizeof(cyruntime.cudaLibrary_t)
 *     if objType == cudaMemPool_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemPool_t)
 *     if objType == cudaKernelNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34418, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34418, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34419
 *         return sizeof(cyruntime.cudaLibrary_t)
 *     if objType == cudaMemPool_t:
 *         return sizeof(cyruntime.cudaMemPool_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaKernelNodeParams:
 *         return sizeof(cyruntime.cudaKernelNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaMemPool_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34418
 *     if objType == cudaLibrary_t:
 *         return sizeof(cyruntime.cudaLibrary_t)
 *     if objType == cudaMemPool_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaMemPool_t)
 *     if objType == cudaKernelNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34420
 *     if objType == cudaMemPool_t:
 *         return sizeof(cyruntime.cudaMemPool_t)
 *     if objType == cudaKernelNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaKernelNodeParams)
 *     if objType == cudaKernelNodeParamsV2:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34420, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34420, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34421
 *         return sizeof(cyruntime.cudaMemPool_t)
 *     if objType == cudaKernelNodeParams:
 *         return sizeof(cyruntime.cudaKernelNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaKernelNodeParamsV2:
 *         return sizeof(cyruntime.cudaKernelNodeParamsV2)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaKernelNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34421, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34420
 *     if objType == cudaMemPool_t:
 *         return sizeof(cyruntime.cudaMemPool_t)
 *     if objType == cudaKernelNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaKernelNodeParams)
 *     if objType == cudaKernelNodeParamsV2:
*/
  }

  /* "cuda/bindings/runtime.pyx":34422
 *     if objType == cudaKernelNodeParams:
 *         return sizeof(cyruntime.cudaKernelNodeParams)
 *     if objType == cudaKernelNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaKernelNodeParamsV2)
 *     if objType == cudaExternalSemaphoreSignalNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34422, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34423
 *         return sizeof(cyruntime.cudaKernelNodeParams)
 *     if objType == cudaKernelNodeParamsV2:
 *         return sizeof(cyruntime.cudaKernelNodeParamsV2)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalSemaphoreSignalNodeParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaKernelNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34422
 *     if objType == cudaKernelNodeParams:
 *         return sizeof(cyruntime.cudaKernelNodeParams)
 *     if objType == cudaKernelNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaKernelNodeParamsV2)
 *     if objType == cudaExternalSemaphoreSignalNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34424
 *     if objType == cudaKernelNodeParamsV2:
 *         return sizeof(cyruntime.cudaKernelNodeParamsV2)
 *     if objType == cudaExternalSemaphoreSignalNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams)
 *     if objType == cudaExternalSemaphoreSignalNodeParamsV2:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34424, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34424, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34425
 *         return sizeof(cyruntime.cudaKernelNodeParamsV2)
 *     if objType == cudaExternalSemaphoreSignalNodeParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalSemaphoreSignalNodeParamsV2:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34425, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34424
 *     if objType == cudaKernelNodeParamsV2:
 *         return sizeof(cyruntime.cudaKernelNodeParamsV2)
 *     if objType == cudaExternalSemaphoreSignalNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams)
 *     if objType == cudaExternalSemaphoreSignalNodeParamsV2:
*/
  }

  /* "cuda/bindings/runtime.pyx":34426
 *     if objType == cudaExternalSemaphoreSignalNodeParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams)
 *     if objType == cudaExternalSemaphoreSignalNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2)
 *     if objType == cudaExternalSemaphoreWaitNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34426, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34426, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34427
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams)
 *     if objType == cudaExternalSemaphoreSignalNodeParamsV2:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalSemaphoreWaitNodeParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreSignalNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34426
 *     if objType == cudaExternalSemaphoreSignalNodeParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams)
 *     if objType == cudaExternalSemaphoreSignalNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2)
 *     if objType == cudaExternalSemaphoreWaitNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34428
 *     if objType == cudaExternalSemaphoreSignalNodeParamsV2:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2)
 *     if objType == cudaExternalSemaphoreWaitNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams)
 *     if objType == cudaExternalSemaphoreWaitNodeParamsV2:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34428, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34429
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2)
 *     if objType == cudaExternalSemaphoreWaitNodeParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaExternalSemaphoreWaitNodeParamsV2:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34429, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34428
 *     if objType == cudaExternalSemaphoreSignalNodeParamsV2:
 *         return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2)
 *     if objType == cudaExternalSemaphoreWaitNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams)
 *     if objType == cudaExternalSemaphoreWaitNodeParamsV2:
*/
  }

  /* "cuda/bindings/runtime.pyx":34430
 *     if objType == cudaExternalSemaphoreWaitNodeParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams)
 *     if objType == cudaExternalSemaphoreWaitNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2)
 *     if objType == cudaConditionalNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34430, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34430, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34431
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams)
 *     if objType == cudaExternalSemaphoreWaitNodeParamsV2:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2)             # <<<<<<<<<<<<<<
 *     if objType == cudaConditionalNodeParams:
 *         return sizeof(cyruntime.cudaConditionalNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaExternalSemaphoreWaitNodeParamsV2))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34430
 *     if objType == cudaExternalSemaphoreWaitNodeParams:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams)
 *     if objType == cudaExternalSemaphoreWaitNodeParamsV2:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2)
 *     if objType == cudaConditionalNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34432
 *     if objType == cudaExternalSemaphoreWaitNodeParamsV2:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2)
 *     if objType == cudaConditionalNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaConditionalNodeParams)
 *     if objType == cudaChildGraphNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34432, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34432, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34433
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2)
 *     if objType == cudaConditionalNodeParams:
 *         return sizeof(cyruntime.cudaConditionalNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaChildGraphNodeParams:
 *         return sizeof(cyruntime.cudaChildGraphNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaConditionalNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34433, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34432
 *     if objType == cudaExternalSemaphoreWaitNodeParamsV2:
 *         return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2)
 *     if objType == cudaConditionalNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaConditionalNodeParams)
 *     if objType == cudaChildGraphNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34434
 *     if objType == cudaConditionalNodeParams:
 *         return sizeof(cyruntime.cudaConditionalNodeParams)
 *     if objType == cudaChildGraphNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaChildGraphNodeParams)
 *     if objType == cudaEventRecordNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34434, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34435
 *         return sizeof(cyruntime.cudaConditionalNodeParams)
 *     if objType == cudaChildGraphNodeParams:
 *         return sizeof(cyruntime.cudaChildGraphNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaEventRecordNodeParams:
 *         return sizeof(cyruntime.cudaEventRecordNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaChildGraphNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34434
 *     if objType == cudaConditionalNodeParams:
 *         return sizeof(cyruntime.cudaConditionalNodeParams)
 *     if objType == cudaChildGraphNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaChildGraphNodeParams)
 *     if objType == cudaEventRecordNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34436
 *     if objType == cudaChildGraphNodeParams:
 *         return sizeof(cyruntime.cudaChildGraphNodeParams)
 *     if objType == cudaEventRecordNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEventRecordNodeParams)
 *     if objType == cudaEventWaitNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34436, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34436, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34437
 *         return sizeof(cyruntime.cudaChildGraphNodeParams)
 *     if objType == cudaEventRecordNodeParams:
 *         return sizeof(cyruntime.cudaEventRecordNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaEventWaitNodeParams:
 *         return sizeof(cyruntime.cudaEventWaitNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaEventRecordNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34437, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34436
 *     if objType == cudaChildGraphNodeParams:
 *         return sizeof(cyruntime.cudaChildGraphNodeParams)
 *     if objType == cudaEventRecordNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEventRecordNodeParams)
 *     if objType == cudaEventWaitNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34438
 *     if objType == cudaEventRecordNodeParams:
 *         return sizeof(cyruntime.cudaEventRecordNodeParams)
 *     if objType == cudaEventWaitNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEventWaitNodeParams)
 *     if objType == cudaGraphNodeParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34438, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34438, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34439
 *         return sizeof(cyruntime.cudaEventRecordNodeParams)
 *     if objType == cudaEventWaitNodeParams:
 *         return sizeof(cyruntime.cudaEventWaitNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphNodeParams:
 *         return sizeof(cyruntime.cudaGraphNodeParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaEventWaitNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34438
 *     if objType == cudaEventRecordNodeParams:
 *         return sizeof(cyruntime.cudaEventRecordNodeParams)
 *     if objType == cudaEventWaitNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEventWaitNodeParams)
 *     if objType == cudaGraphNodeParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34440
 *     if objType == cudaEventWaitNodeParams:
 *         return sizeof(cyruntime.cudaEventWaitNodeParams)
 *     if objType == cudaGraphNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphNodeParams)
 *     if objType == cudaGraphEdgeData_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34440, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34440, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34441
 *         return sizeof(cyruntime.cudaEventWaitNodeParams)
 *     if objType == cudaGraphNodeParams:
 *         return sizeof(cyruntime.cudaGraphNodeParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphEdgeData_st:
 *         return sizeof(cyruntime.cudaGraphEdgeData_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaGraphNodeParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34440
 *     if objType == cudaEventWaitNodeParams:
 *         return sizeof(cyruntime.cudaEventWaitNodeParams)
 *     if objType == cudaGraphNodeParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphNodeParams)
 *     if objType == cudaGraphEdgeData_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34442
 *     if objType == cudaGraphNodeParams:
 *         return sizeof(cyruntime.cudaGraphNodeParams)
 *     if objType == cudaGraphEdgeData_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphEdgeData_st)
 *     if objType == cudaGraphEdgeData:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34442, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34442, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34443
 *         return sizeof(cyruntime.cudaGraphNodeParams)
 *     if objType == cudaGraphEdgeData_st:
 *         return sizeof(cyruntime.cudaGraphEdgeData_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphEdgeData:
 *         return sizeof(cyruntime.cudaGraphEdgeData)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaGraphEdgeData_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34443, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34442
 *     if objType == cudaGraphNodeParams:
 *         return sizeof(cyruntime.cudaGraphNodeParams)
 *     if objType == cudaGraphEdgeData_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphEdgeData_st)
 *     if objType == cudaGraphEdgeData:
*/
  }

  /* "cuda/bindings/runtime.pyx":34444
 *     if objType == cudaGraphEdgeData_st:
 *         return sizeof(cyruntime.cudaGraphEdgeData_st)
 *     if objType == cudaGraphEdgeData:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphEdgeData)
 *     if objType == cudaGraphExec_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34444, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34444, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34445
 *         return sizeof(cyruntime.cudaGraphEdgeData_st)
 *     if objType == cudaGraphEdgeData:
 *         return sizeof(cyruntime.cudaGraphEdgeData)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphExec_t:
 *         return sizeof(cyruntime.cudaGraphExec_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphEdgeData))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34444
 *     if objType == cudaGraphEdgeData_st:
 *         return sizeof(cyruntime.cudaGraphEdgeData_st)
 *     if objType == cudaGraphEdgeData:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphEdgeData)
 *     if objType == cudaGraphExec_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34446
 *     if objType == cudaGraphEdgeData:
 *         return sizeof(cyruntime.cudaGraphEdgeData)
 *     if objType == cudaGraphExec_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphExec_t)
 *     if objType == cudaGraphInstantiateParams_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34446, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34446, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34447
 *         return sizeof(cyruntime.cudaGraphEdgeData)
 *     if objType == cudaGraphExec_t:
 *         return sizeof(cyruntime.cudaGraphExec_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphInstantiateParams_st:
 *         return sizeof(cyruntime.cudaGraphInstantiateParams_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphExec_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34446
 *     if objType == cudaGraphEdgeData:
 *         return sizeof(cyruntime.cudaGraphEdgeData)
 *     if objType == cudaGraphExec_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphExec_t)
 *     if objType == cudaGraphInstantiateParams_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34448
 *     if objType == cudaGraphExec_t:
 *         return sizeof(cyruntime.cudaGraphExec_t)
 *     if objType == cudaGraphInstantiateParams_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphInstantiateParams_st)
 *     if objType == cudaGraphInstantiateParams:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34448, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34448, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34449
 *         return sizeof(cyruntime.cudaGraphExec_t)
 *     if objType == cudaGraphInstantiateParams_st:
 *         return sizeof(cyruntime.cudaGraphInstantiateParams_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphInstantiateParams:
 *         return sizeof(cyruntime.cudaGraphInstantiateParams)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaGraphInstantiateParams_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34449, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34448
 *     if objType == cudaGraphExec_t:
 *         return sizeof(cyruntime.cudaGraphExec_t)
 *     if objType == cudaGraphInstantiateParams_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphInstantiateParams_st)
 *     if objType == cudaGraphInstantiateParams:
*/
  }

  /* "cuda/bindings/runtime.pyx":34450
 *     if objType == cudaGraphInstantiateParams_st:
 *         return sizeof(cyruntime.cudaGraphInstantiateParams_st)
 *     if objType == cudaGraphInstantiateParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphInstantiateParams)
 *     if objType == cudaGraphExecUpdateResultInfo_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34450, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34450, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34451
 *         return sizeof(cyruntime.cudaGraphInstantiateParams_st)
 *     if objType == cudaGraphInstantiateParams:
 *         return sizeof(cyruntime.cudaGraphInstantiateParams)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphExecUpdateResultInfo_st:
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphInstantiateParams))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34451, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34450
 *     if objType == cudaGraphInstantiateParams_st:
 *         return sizeof(cyruntime.cudaGraphInstantiateParams_st)
 *     if objType == cudaGraphInstantiateParams:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphInstantiateParams)
 *     if objType == cudaGraphExecUpdateResultInfo_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34452
 *     if objType == cudaGraphInstantiateParams:
 *         return sizeof(cyruntime.cudaGraphInstantiateParams)
 *     if objType == cudaGraphExecUpdateResultInfo_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st)
 *     if objType == cudaGraphExecUpdateResultInfo:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34452, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34452, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34453
 *         return sizeof(cyruntime.cudaGraphInstantiateParams)
 *     if objType == cudaGraphExecUpdateResultInfo_st:
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphExecUpdateResultInfo:
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaGraphExecUpdateResultInfo_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34452
 *     if objType == cudaGraphInstantiateParams:
 *         return sizeof(cyruntime.cudaGraphInstantiateParams)
 *     if objType == cudaGraphExecUpdateResultInfo_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st)
 *     if objType == cudaGraphExecUpdateResultInfo:
*/
  }

  /* "cuda/bindings/runtime.pyx":34454
 *     if objType == cudaGraphExecUpdateResultInfo_st:
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st)
 *     if objType == cudaGraphExecUpdateResultInfo:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo)
 *     if objType == cudaGraphDeviceNode_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34454, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34454, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34455
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st)
 *     if objType == cudaGraphExecUpdateResultInfo:
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphDeviceNode_t:
 *         return sizeof(cyruntime.cudaGraphDeviceNode_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphExecUpdateResultInfo))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34455, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34454
 *     if objType == cudaGraphExecUpdateResultInfo_st:
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st)
 *     if objType == cudaGraphExecUpdateResultInfo:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo)
 *     if objType == cudaGraphDeviceNode_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34456
 *     if objType == cudaGraphExecUpdateResultInfo:
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo)
 *     if objType == cudaGraphDeviceNode_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphDeviceNode_t)
 *     if objType == cudaGraphKernelNodeUpdate:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34456, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34456, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34457
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo)
 *     if objType == cudaGraphDeviceNode_t:
 *         return sizeof(cyruntime.cudaGraphDeviceNode_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaGraphKernelNodeUpdate:
 *         return sizeof(cyruntime.cudaGraphKernelNodeUpdate)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaGraphDeviceNode_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34457, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34456
 *     if objType == cudaGraphExecUpdateResultInfo:
 *         return sizeof(cyruntime.cudaGraphExecUpdateResultInfo)
 *     if objType == cudaGraphDeviceNode_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphDeviceNode_t)
 *     if objType == cudaGraphKernelNodeUpdate:
*/
  }

  /* "cuda/bindings/runtime.pyx":34458
 *     if objType == cudaGraphDeviceNode_t:
 *         return sizeof(cyruntime.cudaGraphDeviceNode_t)
 *     if objType == cudaGraphKernelNodeUpdate:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphKernelNodeUpdate)
 *     if objType == cudaLaunchMemSyncDomainMap_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34458, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34458, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34459
 *         return sizeof(cyruntime.cudaGraphDeviceNode_t)
 *     if objType == cudaGraphKernelNodeUpdate:
 *         return sizeof(cyruntime.cudaGraphKernelNodeUpdate)             # <<<<<<<<<<<<<<
 *     if objType == cudaLaunchMemSyncDomainMap_st:
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaGraphKernelNodeUpdate))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34459, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34458
 *     if objType == cudaGraphDeviceNode_t:
 *         return sizeof(cyruntime.cudaGraphDeviceNode_t)
 *     if objType == cudaGraphKernelNodeUpdate:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaGraphKernelNodeUpdate)
 *     if objType == cudaLaunchMemSyncDomainMap_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34460
 *     if objType == cudaGraphKernelNodeUpdate:
 *         return sizeof(cyruntime.cudaGraphKernelNodeUpdate)
 *     if objType == cudaLaunchMemSyncDomainMap_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st)
 *     if objType == cudaLaunchMemSyncDomainMap:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34460, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34460, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34461
 *         return sizeof(cyruntime.cudaGraphKernelNodeUpdate)
 *     if objType == cudaLaunchMemSyncDomainMap_st:
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaLaunchMemSyncDomainMap:
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaLaunchMemSyncDomainMap_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34461, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34460
 *     if objType == cudaGraphKernelNodeUpdate:
 *         return sizeof(cyruntime.cudaGraphKernelNodeUpdate)
 *     if objType == cudaLaunchMemSyncDomainMap_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st)
 *     if objType == cudaLaunchMemSyncDomainMap:
*/
  }

  /* "cuda/bindings/runtime.pyx":34462
 *     if objType == cudaLaunchMemSyncDomainMap_st:
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st)
 *     if objType == cudaLaunchMemSyncDomainMap:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap)
 *     if objType == cudaLaunchAttributeValue:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34462, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34462, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34463
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st)
 *     if objType == cudaLaunchMemSyncDomainMap:
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap)             # <<<<<<<<<<<<<<
 *     if objType == cudaLaunchAttributeValue:
 *         return sizeof(cyruntime.cudaLaunchAttributeValue)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaLaunchMemSyncDomainMap))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34462
 *     if objType == cudaLaunchMemSyncDomainMap_st:
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st)
 *     if objType == cudaLaunchMemSyncDomainMap:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap)
 *     if objType == cudaLaunchAttributeValue:
*/
  }

  /* "cuda/bindings/runtime.pyx":34464
 *     if objType == cudaLaunchMemSyncDomainMap:
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap)
 *     if objType == cudaLaunchAttributeValue:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchAttributeValue)
 *     if objType == cudaLaunchAttribute_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34464, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34465
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap)
 *     if objType == cudaLaunchAttributeValue:
 *         return sizeof(cyruntime.cudaLaunchAttributeValue)             # <<<<<<<<<<<<<<
 *     if objType == cudaLaunchAttribute_st:
 *         return sizeof(cyruntime.cudaLaunchAttribute_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(union cudaLaunchAttributeValue))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34465, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34464
 *     if objType == cudaLaunchMemSyncDomainMap:
 *         return sizeof(cyruntime.cudaLaunchMemSyncDomainMap)
 *     if objType == cudaLaunchAttributeValue:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchAttributeValue)
 *     if objType == cudaLaunchAttribute_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34466
 *     if objType == cudaLaunchAttributeValue:
 *         return sizeof(cyruntime.cudaLaunchAttributeValue)
 *     if objType == cudaLaunchAttribute_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchAttribute_st)
 *     if objType == cudaLaunchAttribute:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34466, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34466, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34467
 *         return sizeof(cyruntime.cudaLaunchAttributeValue)
 *     if objType == cudaLaunchAttribute_st:
 *         return sizeof(cyruntime.cudaLaunchAttribute_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaLaunchAttribute:
 *         return sizeof(cyruntime.cudaLaunchAttribute)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaLaunchAttribute_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34467, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34466
 *     if objType == cudaLaunchAttributeValue:
 *         return sizeof(cyruntime.cudaLaunchAttributeValue)
 *     if objType == cudaLaunchAttribute_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchAttribute_st)
 *     if objType == cudaLaunchAttribute:
*/
  }

  /* "cuda/bindings/runtime.pyx":34468
 *     if objType == cudaLaunchAttribute_st:
 *         return sizeof(cyruntime.cudaLaunchAttribute_st)
 *     if objType == cudaLaunchAttribute:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchAttribute)
 *     if objType == cudaAsyncCallbackHandle_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34468, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34468, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34469
 *         return sizeof(cyruntime.cudaLaunchAttribute_st)
 *     if objType == cudaLaunchAttribute:
 *         return sizeof(cyruntime.cudaLaunchAttribute)             # <<<<<<<<<<<<<<
 *     if objType == cudaAsyncCallbackHandle_t:
 *         return sizeof(cyruntime.cudaAsyncCallbackHandle_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaLaunchAttribute))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34468
 *     if objType == cudaLaunchAttribute_st:
 *         return sizeof(cyruntime.cudaLaunchAttribute_st)
 *     if objType == cudaLaunchAttribute:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLaunchAttribute)
 *     if objType == cudaAsyncCallbackHandle_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34470
 *     if objType == cudaLaunchAttribute:
 *         return sizeof(cyruntime.cudaLaunchAttribute)
 *     if objType == cudaAsyncCallbackHandle_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAsyncCallbackHandle_t)
 *     if objType == cudaAsyncNotificationInfo:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34470, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34470, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34471
 *         return sizeof(cyruntime.cudaLaunchAttribute)
 *     if objType == cudaAsyncCallbackHandle_t:
 *         return sizeof(cyruntime.cudaAsyncCallbackHandle_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaAsyncNotificationInfo:
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaAsyncCallbackHandle_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34470
 *     if objType == cudaLaunchAttribute:
 *         return sizeof(cyruntime.cudaLaunchAttribute)
 *     if objType == cudaAsyncCallbackHandle_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAsyncCallbackHandle_t)
 *     if objType == cudaAsyncNotificationInfo:
*/
  }

  /* "cuda/bindings/runtime.pyx":34472
 *     if objType == cudaAsyncCallbackHandle_t:
 *         return sizeof(cyruntime.cudaAsyncCallbackHandle_t)
 *     if objType == cudaAsyncNotificationInfo:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo)
 *     if objType == cudaAsyncNotificationInfo_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34472, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34472, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34473
 *         return sizeof(cyruntime.cudaAsyncCallbackHandle_t)
 *     if objType == cudaAsyncNotificationInfo:
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo)             # <<<<<<<<<<<<<<
 *     if objType == cudaAsyncNotificationInfo_t:
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaAsyncNotificationInfo))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34473, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34472
 *     if objType == cudaAsyncCallbackHandle_t:
 *         return sizeof(cyruntime.cudaAsyncCallbackHandle_t)
 *     if objType == cudaAsyncNotificationInfo:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo)
 *     if objType == cudaAsyncNotificationInfo_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34474
 *     if objType == cudaAsyncNotificationInfo:
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo)
 *     if objType == cudaAsyncNotificationInfo_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo_t)
 *     if objType == cudaAsyncCallback:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34474, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34474, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34475
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo)
 *     if objType == cudaAsyncNotificationInfo_t:
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaAsyncCallback:
 *         return sizeof(cyruntime.cudaAsyncCallback)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaAsyncNotificationInfo_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34474
 *     if objType == cudaAsyncNotificationInfo:
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo)
 *     if objType == cudaAsyncNotificationInfo_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo_t)
 *     if objType == cudaAsyncCallback:
*/
  }

  /* "cuda/bindings/runtime.pyx":34476
 *     if objType == cudaAsyncNotificationInfo_t:
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo_t)
 *     if objType == cudaAsyncCallback:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAsyncCallback)
 *     if objType == cudaLogsCallbackHandle:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34476, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34476, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34477
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo_t)
 *     if objType == cudaAsyncCallback:
 *         return sizeof(cyruntime.cudaAsyncCallback)             # <<<<<<<<<<<<<<
 *     if objType == cudaLogsCallbackHandle:
 *         return sizeof(cyruntime.cudaLogsCallbackHandle)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaAsyncCallback))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34476
 *     if objType == cudaAsyncNotificationInfo_t:
 *         return sizeof(cyruntime.cudaAsyncNotificationInfo_t)
 *     if objType == cudaAsyncCallback:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaAsyncCallback)
 *     if objType == cudaLogsCallbackHandle:
*/
  }

  /* "cuda/bindings/runtime.pyx":34478
 *     if objType == cudaAsyncCallback:
 *         return sizeof(cyruntime.cudaAsyncCallback)
 *     if objType == cudaLogsCallbackHandle:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLogsCallbackHandle)
 *     if objType == cudaLogIterator:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34478, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34478, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34479
 *         return sizeof(cyruntime.cudaAsyncCallback)
 *     if objType == cudaLogsCallbackHandle:
 *         return sizeof(cyruntime.cudaLogsCallbackHandle)             # <<<<<<<<<<<<<<
 *     if objType == cudaLogIterator:
 *         return sizeof(cyruntime.cudaLogIterator)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaLogsCallbackHandle))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34479, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34478
 *     if objType == cudaAsyncCallback:
 *         return sizeof(cyruntime.cudaAsyncCallback)
 *     if objType == cudaLogsCallbackHandle:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLogsCallbackHandle)
 *     if objType == cudaLogIterator:
*/
  }

  /* "cuda/bindings/runtime.pyx":34480
 *     if objType == cudaLogsCallbackHandle:
 *         return sizeof(cyruntime.cudaLogsCallbackHandle)
 *     if objType == cudaLogIterator:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLogIterator)
 *     if objType == cudaSurfaceObject_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34480, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34480, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34481
 *         return sizeof(cyruntime.cudaLogsCallbackHandle)
 *     if objType == cudaLogIterator:
 *         return sizeof(cyruntime.cudaLogIterator)             # <<<<<<<<<<<<<<
 *     if objType == cudaSurfaceObject_t:
 *         return sizeof(cyruntime.cudaSurfaceObject_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaLogIterator))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34480
 *     if objType == cudaLogsCallbackHandle:
 *         return sizeof(cyruntime.cudaLogsCallbackHandle)
 *     if objType == cudaLogIterator:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLogIterator)
 *     if objType == cudaSurfaceObject_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34482
 *     if objType == cudaLogIterator:
 *         return sizeof(cyruntime.cudaLogIterator)
 *     if objType == cudaSurfaceObject_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaSurfaceObject_t)
 *     if objType == cudaTextureDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34482, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34482, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34483
 *         return sizeof(cyruntime.cudaLogIterator)
 *     if objType == cudaSurfaceObject_t:
 *         return sizeof(cyruntime.cudaSurfaceObject_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaTextureDesc:
 *         return sizeof(cyruntime.cudaTextureDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaSurfaceObject_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34483, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34482
 *     if objType == cudaLogIterator:
 *         return sizeof(cyruntime.cudaLogIterator)
 *     if objType == cudaSurfaceObject_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaSurfaceObject_t)
 *     if objType == cudaTextureDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34484
 *     if objType == cudaSurfaceObject_t:
 *         return sizeof(cyruntime.cudaSurfaceObject_t)
 *     if objType == cudaTextureDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaTextureDesc)
 *     if objType == cudaTextureObject_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34484, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34484, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34485
 *         return sizeof(cyruntime.cudaSurfaceObject_t)
 *     if objType == cudaTextureDesc:
 *         return sizeof(cyruntime.cudaTextureDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaTextureObject_t:
 *         return sizeof(cyruntime.cudaTextureObject_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct cudaTextureDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34485, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34484
 *     if objType == cudaSurfaceObject_t:
 *         return sizeof(cyruntime.cudaSurfaceObject_t)
 *     if objType == cudaTextureDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaTextureDesc)
 *     if objType == cudaTextureObject_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34486
 *     if objType == cudaTextureDesc:
 *         return sizeof(cyruntime.cudaTextureDesc)
 *     if objType == cudaTextureObject_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaTextureObject_t)
 *     if objType == cudaStreamCallback_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34486, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34486, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34487
 *         return sizeof(cyruntime.cudaTextureDesc)
 *     if objType == cudaTextureObject_t:
 *         return sizeof(cyruntime.cudaTextureObject_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaStreamCallback_t:
 *         return sizeof(cyruntime.cudaStreamCallback_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaTextureObject_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34487, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34486
 *     if objType == cudaTextureDesc:
 *         return sizeof(cyruntime.cudaTextureDesc)
 *     if objType == cudaTextureObject_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaTextureObject_t)
 *     if objType == cudaStreamCallback_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34488
 *     if objType == cudaTextureObject_t:
 *         return sizeof(cyruntime.cudaTextureObject_t)
 *     if objType == cudaStreamCallback_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaStreamCallback_t)
 *     if objType == cudaLogsCallback_t:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34488, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34488, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34489
 *         return sizeof(cyruntime.cudaTextureObject_t)
 *     if objType == cudaStreamCallback_t:
 *         return sizeof(cyruntime.cudaStreamCallback_t)             # <<<<<<<<<<<<<<
 *     if objType == cudaLogsCallback_t:
 *         return sizeof(cyruntime.cudaLogsCallback_t)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaStreamCallback_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34488
 *     if objType == cudaTextureObject_t:
 *         return sizeof(cyruntime.cudaTextureObject_t)
 *     if objType == cudaStreamCallback_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaStreamCallback_t)
 *     if objType == cudaLogsCallback_t:
*/
  }

  /* "cuda/bindings/runtime.pyx":34490
 *     if objType == cudaStreamCallback_t:
 *         return sizeof(cyruntime.cudaStreamCallback_t)
 *     if objType == cudaLogsCallback_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLogsCallback_t)
 *     if objType == GLenum:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34490, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34490, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34491
 *         return sizeof(cyruntime.cudaStreamCallback_t)
 *     if objType == cudaLogsCallback_t:
 *         return sizeof(cyruntime.cudaLogsCallback_t)             # <<<<<<<<<<<<<<
 *     if objType == GLenum:
 *         return sizeof(cyruntime.GLenum)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(cudaLogsCallback_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34490
 *     if objType == cudaStreamCallback_t:
 *         return sizeof(cyruntime.cudaStreamCallback_t)
 *     if objType == cudaLogsCallback_t:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaLogsCallback_t)
 *     if objType == GLenum:
*/
  }

  /* "cuda/bindings/runtime.pyx":34492
 *     if objType == cudaLogsCallback_t:
 *         return sizeof(cyruntime.cudaLogsCallback_t)
 *     if objType == GLenum:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.GLenum)
 *     if objType == GLuint:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLenum), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34492, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34492, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34493
 *         return sizeof(cyruntime.cudaLogsCallback_t)
 *     if objType == GLenum:
 *         return sizeof(cyruntime.GLenum)             # <<<<<<<<<<<<<<
 *     if objType == GLuint:
 *         return sizeof(cyruntime.GLuint)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_GLenum))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34492
 *     if objType == cudaLogsCallback_t:
 *         return sizeof(cyruntime.cudaLogsCallback_t)
 *     if objType == GLenum:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.GLenum)
 *     if objType == GLuint:
*/
  }

  /* "cuda/bindings/runtime.pyx":34494
 *     if objType == GLenum:
 *         return sizeof(cyruntime.GLenum)
 *     if objType == GLuint:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.GLuint)
 *     if objType == EGLImageKHR:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLuint), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34494, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34494, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34495
 *         return sizeof(cyruntime.GLenum)
 *     if objType == GLuint:
 *         return sizeof(cyruntime.GLuint)             # <<<<<<<<<<<<<<
 *     if objType == EGLImageKHR:
 *         return sizeof(cyruntime.EGLImageKHR)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_GLuint))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34494
 *     if objType == GLenum:
 *         return sizeof(cyruntime.GLenum)
 *     if objType == GLuint:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.GLuint)
 *     if objType == EGLImageKHR:
*/
  }

  /* "cuda/bindings/runtime.pyx":34496
 *     if objType == GLuint:
 *         return sizeof(cyruntime.GLuint)
 *     if objType == EGLImageKHR:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.EGLImageKHR)
 *     if objType == EGLStreamKHR:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34496, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34496, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34497
 *         return sizeof(cyruntime.GLuint)
 *     if objType == EGLImageKHR:
 *         return sizeof(cyruntime.EGLImageKHR)             # <<<<<<<<<<<<<<
 *     if objType == EGLStreamKHR:
 *         return sizeof(cyruntime.EGLStreamKHR)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34497, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34496
 *     if objType == GLuint:
 *         return sizeof(cyruntime.GLuint)
 *     if objType == EGLImageKHR:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.EGLImageKHR)
 *     if objType == EGLStreamKHR:
*/
  }

  /* "cuda/bindings/runtime.pyx":34498
 *     if objType == EGLImageKHR:
 *         return sizeof(cyruntime.EGLImageKHR)
 *     if objType == EGLStreamKHR:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.EGLStreamKHR)
 *     if objType == EGLint:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34498, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34498, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34499
 *         return sizeof(cyruntime.EGLImageKHR)
 *     if objType == EGLStreamKHR:
 *         return sizeof(cyruntime.EGLStreamKHR)             # <<<<<<<<<<<<<<
 *     if objType == EGLint:
 *         return sizeof(cyruntime.EGLint)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34499, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34498
 *     if objType == EGLImageKHR:
 *         return sizeof(cyruntime.EGLImageKHR)
 *     if objType == EGLStreamKHR:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.EGLStreamKHR)
 *     if objType == EGLint:
*/
  }

  /* "cuda/bindings/runtime.pyx":34500
 *     if objType == EGLStreamKHR:
 *         return sizeof(cyruntime.EGLStreamKHR)
 *     if objType == EGLint:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.EGLint)
 *     if objType == EGLSyncKHR:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLint), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34500, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34500, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34501
 *         return sizeof(cyruntime.EGLStreamKHR)
 *     if objType == EGLint:
 *         return sizeof(cyruntime.EGLint)             # <<<<<<<<<<<<<<
 *     if objType == EGLSyncKHR:
 *         return sizeof(cyruntime.EGLSyncKHR)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_EGLint))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34500
 *     if objType == EGLStreamKHR:
 *         return sizeof(cyruntime.EGLStreamKHR)
 *     if objType == EGLint:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.EGLint)
 *     if objType == EGLSyncKHR:
*/
  }

  /* "cuda/bindings/runtime.pyx":34502
 *     if objType == EGLint:
 *         return sizeof(cyruntime.EGLint)
 *     if objType == EGLSyncKHR:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.EGLSyncKHR)
 *     if objType == VdpDevice:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34502, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34502, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34503
 *         return sizeof(cyruntime.EGLint)
 *     if objType == EGLSyncKHR:
 *         return sizeof(cyruntime.EGLSyncKHR)             # <<<<<<<<<<<<<<
 *     if objType == VdpDevice:
 *         return sizeof(cyruntime.VdpDevice)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34502
 *     if objType == EGLint:
 *         return sizeof(cyruntime.EGLint)
 *     if objType == EGLSyncKHR:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.EGLSyncKHR)
 *     if objType == VdpDevice:
*/
  }

  /* "cuda/bindings/runtime.pyx":34504
 *     if objType == EGLSyncKHR:
 *         return sizeof(cyruntime.EGLSyncKHR)
 *     if objType == VdpDevice:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.VdpDevice)
 *     if objType == VdpGetProcAddress:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34504, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34504, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34505
 *         return sizeof(cyruntime.EGLSyncKHR)
 *     if objType == VdpDevice:
 *         return sizeof(cyruntime.VdpDevice)             # <<<<<<<<<<<<<<
 *     if objType == VdpGetProcAddress:
 *         return sizeof(cyruntime.VdpGetProcAddress)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_VdpDevice))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34504
 *     if objType == EGLSyncKHR:
 *         return sizeof(cyruntime.EGLSyncKHR)
 *     if objType == VdpDevice:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.VdpDevice)
 *     if objType == VdpGetProcAddress:
*/
  }

  /* "cuda/bindings/runtime.pyx":34506
 *     if objType == VdpDevice:
 *         return sizeof(cyruntime.VdpDevice)
 *     if objType == VdpGetProcAddress:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.VdpGetProcAddress)
 *     if objType == VdpVideoSurface:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34506, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34506, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34507
 *         return sizeof(cyruntime.VdpDevice)
 *     if objType == VdpGetProcAddress:
 *         return sizeof(cyruntime.VdpGetProcAddress)             # <<<<<<<<<<<<<<
 *     if objType == VdpVideoSurface:
 *         return sizeof(cyruntime.VdpVideoSurface)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34507, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34506
 *     if objType == VdpDevice:
 *         return sizeof(cyruntime.VdpDevice)
 *     if objType == VdpGetProcAddress:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.VdpGetProcAddress)
 *     if objType == VdpVideoSurface:
*/
  }

  /* "cuda/bindings/runtime.pyx":34508
 *     if objType == VdpGetProcAddress:
 *         return sizeof(cyruntime.VdpGetProcAddress)
 *     if objType == VdpVideoSurface:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.VdpVideoSurface)
 *     if objType == VdpOutputSurface:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34508, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34508, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34509
 *         return sizeof(cyruntime.VdpGetProcAddress)
 *     if objType == VdpVideoSurface:
 *         return sizeof(cyruntime.VdpVideoSurface)             # <<<<<<<<<<<<<<
 *     if objType == VdpOutputSurface:
 *         return sizeof(cyruntime.VdpOutputSurface)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34509, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34508
 *     if objType == VdpGetProcAddress:
 *         return sizeof(cyruntime.VdpGetProcAddress)
 *     if objType == VdpVideoSurface:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.VdpVideoSurface)
 *     if objType == VdpOutputSurface:
*/
  }

  /* "cuda/bindings/runtime.pyx":34510
 *     if objType == VdpVideoSurface:
 *         return sizeof(cyruntime.VdpVideoSurface)
 *     if objType == VdpOutputSurface:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.VdpOutputSurface)
 *     if objType == cudaStreamAttrValue:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34510, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34510, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34511
 *         return sizeof(cyruntime.VdpVideoSurface)
 *     if objType == VdpOutputSurface:
 *         return sizeof(cyruntime.VdpOutputSurface)             # <<<<<<<<<<<<<<
 *     if objType == cudaStreamAttrValue:
 *         return sizeof(cyruntime.cudaStreamAttrValue)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34510
 *     if objType == VdpVideoSurface:
 *         return sizeof(cyruntime.VdpVideoSurface)
 *     if objType == VdpOutputSurface:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.VdpOutputSurface)
 *     if objType == cudaStreamAttrValue:
*/
  }

  /* "cuda/bindings/runtime.pyx":34512
 *     if objType == VdpOutputSurface:
 *         return sizeof(cyruntime.VdpOutputSurface)
 *     if objType == cudaStreamAttrValue:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaStreamAttrValue)
 *     if objType == cudaKernelNodeAttrValue:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34512, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34512, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34513
 *         return sizeof(cyruntime.VdpOutputSurface)
 *     if objType == cudaStreamAttrValue:
 *         return sizeof(cyruntime.cudaStreamAttrValue)             # <<<<<<<<<<<<<<
 *     if objType == cudaKernelNodeAttrValue:
 *         return sizeof(cyruntime.cudaKernelNodeAttrValue)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrValue))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34513, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34512
 *     if objType == VdpOutputSurface:
 *         return sizeof(cyruntime.VdpOutputSurface)
 *     if objType == cudaStreamAttrValue:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaStreamAttrValue)
 *     if objType == cudaKernelNodeAttrValue:
*/
  }

  /* "cuda/bindings/runtime.pyx":34514
 *     if objType == cudaStreamAttrValue:
 *         return sizeof(cyruntime.cudaStreamAttrValue)
 *     if objType == cudaKernelNodeAttrValue:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaKernelNodeAttrValue)
 *     if objType == cudaEglPlaneDesc_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34514, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34514, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34515
 *         return sizeof(cyruntime.cudaStreamAttrValue)
 *     if objType == cudaKernelNodeAttrValue:
 *         return sizeof(cyruntime.cudaKernelNodeAttrValue)             # <<<<<<<<<<<<<<
 *     if objType == cudaEglPlaneDesc_st:
 *         return sizeof(cyruntime.cudaEglPlaneDesc_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrValue))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34515, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34514
 *     if objType == cudaStreamAttrValue:
 *         return sizeof(cyruntime.cudaStreamAttrValue)
 *     if objType == cudaKernelNodeAttrValue:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaKernelNodeAttrValue)
 *     if objType == cudaEglPlaneDesc_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34516
 *     if objType == cudaKernelNodeAttrValue:
 *         return sizeof(cyruntime.cudaKernelNodeAttrValue)
 *     if objType == cudaEglPlaneDesc_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglPlaneDesc_st)
 *     if objType == cudaEglPlaneDesc:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34516, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34516, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34517
 *         return sizeof(cyruntime.cudaKernelNodeAttrValue)
 *     if objType == cudaEglPlaneDesc_st:
 *         return sizeof(cyruntime.cudaEglPlaneDesc_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaEglPlaneDesc:
 *         return sizeof(cyruntime.cudaEglPlaneDesc)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34516
 *     if objType == cudaKernelNodeAttrValue:
 *         return sizeof(cyruntime.cudaKernelNodeAttrValue)
 *     if objType == cudaEglPlaneDesc_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglPlaneDesc_st)
 *     if objType == cudaEglPlaneDesc:
*/
  }

  /* "cuda/bindings/runtime.pyx":34518
 *     if objType == cudaEglPlaneDesc_st:
 *         return sizeof(cyruntime.cudaEglPlaneDesc_st)
 *     if objType == cudaEglPlaneDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglPlaneDesc)
 *     if objType == cudaEglFrame_st:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34518, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34518, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34519
 *         return sizeof(cyruntime.cudaEglPlaneDesc_st)
 *     if objType == cudaEglPlaneDesc:
 *         return sizeof(cyruntime.cudaEglPlaneDesc)             # <<<<<<<<<<<<<<
 *     if objType == cudaEglFrame_st:
 *         return sizeof(cyruntime.cudaEglFrame_st)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglPlaneDesc))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34518
 *     if objType == cudaEglPlaneDesc_st:
 *         return sizeof(cyruntime.cudaEglPlaneDesc_st)
 *     if objType == cudaEglPlaneDesc:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglPlaneDesc)
 *     if objType == cudaEglFrame_st:
*/
  }

  /* "cuda/bindings/runtime.pyx":34520
 *     if objType == cudaEglPlaneDesc:
 *         return sizeof(cyruntime.cudaEglPlaneDesc)
 *     if objType == cudaEglFrame_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglFrame_st)
 *     if objType == cudaEglFrame:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34520, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34520, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34521
 *         return sizeof(cyruntime.cudaEglPlaneDesc)
 *     if objType == cudaEglFrame_st:
 *         return sizeof(cyruntime.cudaEglFrame_st)             # <<<<<<<<<<<<<<
 *     if objType == cudaEglFrame:
 *         return sizeof(cyruntime.cudaEglFrame)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(struct __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame_st))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34520
 *     if objType == cudaEglPlaneDesc:
 *         return sizeof(cyruntime.cudaEglPlaneDesc)
 *     if objType == cudaEglFrame_st:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglFrame_st)
 *     if objType == cudaEglFrame:
*/
  }

  /* "cuda/bindings/runtime.pyx":34522
 *     if objType == cudaEglFrame_st:
 *         return sizeof(cyruntime.cudaEglFrame_st)
 *     if objType == cudaEglFrame:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglFrame)
 *     if objType == cudaEglStreamConnection:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34522, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34522, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34523
 *         return sizeof(cyruntime.cudaEglFrame_st)
 *     if objType == cudaEglFrame:
 *         return sizeof(cyruntime.cudaEglFrame)             # <<<<<<<<<<<<<<
 *     if objType == cudaEglStreamConnection:
 *         return sizeof(cyruntime.cudaEglStreamConnection)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34523, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34522
 *     if objType == cudaEglFrame_st:
 *         return sizeof(cyruntime.cudaEglFrame_st)
 *     if objType == cudaEglFrame:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglFrame)
 *     if objType == cudaEglStreamConnection:
*/
  }

  /* "cuda/bindings/runtime.pyx":34524
 *     if objType == cudaEglFrame:
 *         return sizeof(cyruntime.cudaEglFrame)
 *     if objType == cudaEglStreamConnection:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglStreamConnection)
 *     raise TypeError("Unknown type: " + str(objType))
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_objType, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection), Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34524, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 34524, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cuda/bindings/runtime.pyx":34525
 *         return sizeof(cyruntime.cudaEglFrame)
 *     if objType == cudaEglStreamConnection:
 *         return sizeof(cyruntime.cudaEglStreamConnection)             # <<<<<<<<<<<<<<
 *     raise TypeError("Unknown type: " + str(objType))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cuda/bindings/runtime.pyx":34524
 *     if objType == cudaEglFrame:
 *         return sizeof(cyruntime.cudaEglFrame)
 *     if objType == cudaEglStreamConnection:             # <<<<<<<<<<<<<<
 *         return sizeof(cyruntime.cudaEglStreamConnection)
 *     raise TypeError("Unknown type: " + str(objType))
*/
  }

  /* "cuda/bindings/runtime.pyx":34526
 *     if objType == cudaEglStreamConnection:
 *         return sizeof(cyruntime.cudaEglStreamConnection)
 *     raise TypeError("Unknown type: " + str(objType))             # <<<<<<<<<<<<<<
 * 
 * cdef int _add_native_handle_getters() except?-1:
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_v_objType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Unknown_type, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 34526, __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, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__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_1)) __PYX_ERR(0, 34526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 34526, __pyx_L1_error)

  /* "cuda/bindings/runtime.pyx":34258
 * 
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def sizeof(objType):
 *     """ Returns the size of provided CUDA Python structure in bytes
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime.sizeof", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34530
 * cdef int _add_native_handle_getters() except?-1:
 *     from cuda.bindings.utils import _add_cuda_native_handle_getter
 *     def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return <uintptr_t><void*><cyruntime.cudaDevResourceDesc_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaDevResourceDesc_t, cudaDevResourceDesc_t_getter)
 *     def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return <uintptr_t><void*><cyruntime.cudaExecutionContext_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_1cudaDevResourceDesc_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_1cudaDevResourceDesc_t_getter = {"cudaDevResourceDesc_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_1cudaDevResourceDesc_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_1cudaDevResourceDesc_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_x = 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("cudaDevResourceDesc_t_getter (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_x_2,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, 34530, __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, 34530, __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, "cudaDevResourceDesc_t_getter", 0) < (0)) __PYX_ERR(0, 34530, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaDevResourceDesc_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34530, __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, 34530, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaDevResourceDesc_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34530, __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.runtime._add_native_handle_getters.cudaDevResourceDesc_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t, 1, "x", 0))) __PYX_ERR(0, 34530, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_cudaDevResourceDesc_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_cudaDevResourceDesc_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t *__pyx_v_x) {
  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("cudaDevResourceDesc_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaDevResourceDesc_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34530, __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.runtime._add_native_handle_getters.cudaDevResourceDesc_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34532
 *     def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return <uintptr_t><void*><cyruntime.cudaDevResourceDesc_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaDevResourceDesc_t, cudaDevResourceDesc_t_getter)
 *     def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return <uintptr_t><void*><cyruntime.cudaExecutionContext_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaExecutionContext_t, cudaExecutionContext_t_getter)
 *     def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_3cudaExecutionContext_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_3cudaExecutionContext_t_getter = {"cudaExecutionContext_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_3cudaExecutionContext_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_3cudaExecutionContext_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_x = 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("cudaExecutionContext_t_getter (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_x_2,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, 34532, __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, 34532, __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, "cudaExecutionContext_t_getter", 0) < (0)) __PYX_ERR(0, 34532, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExecutionContext_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34532, __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, 34532, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExecutionContext_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34532, __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.runtime._add_native_handle_getters.cudaExecutionContext_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, 1, "x", 0))) __PYX_ERR(0, 34532, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_2cudaExecutionContext_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_2cudaExecutionContext_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *__pyx_v_x) {
  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("cudaExecutionContext_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaExecutionContext_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34532, __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.runtime._add_native_handle_getters.cudaExecutionContext_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34534
 *     def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return <uintptr_t><void*><cyruntime.cudaExecutionContext_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExecutionContext_t, cudaExecutionContext_t_getter)
 *     def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter)
 *     def cudaArray_const_t_getter(cudaArray_const_t x): return <uintptr_t><void*><cyruntime.cudaArray_const_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_5cudaArray_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_5cudaArray_t_getter = {"cudaArray_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_5cudaArray_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_5cudaArray_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_x = 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("cudaArray_t_getter (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_x_2,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, 34534, __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, 34534, __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, "cudaArray_t_getter", 0) < (0)) __PYX_ERR(0, 34534, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaArray_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34534, __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, 34534, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaArray_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34534, __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.runtime._add_native_handle_getters.cudaArray_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, 1, "x", 0))) __PYX_ERR(0, 34534, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_4cudaArray_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_4cudaArray_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *__pyx_v_x) {
  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("cudaArray_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaArray_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34534, __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.runtime._add_native_handle_getters.cudaArray_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34536
 *     def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter)
 *     def cudaArray_const_t_getter(cudaArray_const_t x): return <uintptr_t><void*><cyruntime.cudaArray_const_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter)
 *     def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_7cudaArray_const_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_7cudaArray_const_t_getter = {"cudaArray_const_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_7cudaArray_const_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_7cudaArray_const_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_x = 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("cudaArray_const_t_getter (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_x_2,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, 34536, __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, 34536, __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, "cudaArray_const_t_getter", 0) < (0)) __PYX_ERR(0, 34536, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaArray_const_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34536, __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, 34536, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaArray_const_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34536, __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.runtime._add_native_handle_getters.cudaArray_const_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, 1, "x", 0))) __PYX_ERR(0, 34536, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_6cudaArray_const_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_6cudaArray_const_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t *__pyx_v_x) {
  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("cudaArray_const_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaArray_const_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34536, __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.runtime._add_native_handle_getters.cudaArray_const_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34538
 *     def cudaArray_const_t_getter(cudaArray_const_t x): return <uintptr_t><void*><cyruntime.cudaArray_const_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter)
 *     def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter)
 *     def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_const_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_9cudaMipmappedArray_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_9cudaMipmappedArray_t_getter = {"cudaMipmappedArray_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_9cudaMipmappedArray_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_9cudaMipmappedArray_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_x = 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("cudaMipmappedArray_t_getter (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_x_2,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, 34538, __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, 34538, __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, "cudaMipmappedArray_t_getter", 0) < (0)) __PYX_ERR(0, 34538, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMipmappedArray_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34538, __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, 34538, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMipmappedArray_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34538, __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.runtime._add_native_handle_getters.cudaMipmappedArray_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, 1, "x", 0))) __PYX_ERR(0, 34538, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_8cudaMipmappedArray_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_8cudaMipmappedArray_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *__pyx_v_x) {
  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("cudaMipmappedArray_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaMipmappedArray_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34538, __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.runtime._add_native_handle_getters.cudaMipmappedArray_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34540
 *     def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter)
 *     def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_const_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter)
 *     def cudaStream_t_getter(cudaStream_t x): return <uintptr_t><void*><cyruntime.cudaStream_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_11cudaMipmappedArray_const_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_11cudaMipmappedArray_const_t_getter = {"cudaMipmappedArray_const_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_11cudaMipmappedArray_const_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_11cudaMipmappedArray_const_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_x = 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("cudaMipmappedArray_const_t_getter (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_x_2,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, 34540, __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, 34540, __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, "cudaMipmappedArray_const_t_getter", 0) < (0)) __PYX_ERR(0, 34540, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMipmappedArray_const_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34540, __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, 34540, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMipmappedArray_const_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34540, __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.runtime._add_native_handle_getters.cudaMipmappedArray_const_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t, 1, "x", 0))) __PYX_ERR(0, 34540, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_10cudaMipmappedArray_const_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_10cudaMipmappedArray_const_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t *__pyx_v_x) {
  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("cudaMipmappedArray_const_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaMipmappedArray_const_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34540, __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.runtime._add_native_handle_getters.cudaMipmappedArray_const_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34542
 *     def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_const_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter)
 *     def cudaStream_t_getter(cudaStream_t x): return <uintptr_t><void*><cyruntime.cudaStream_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter)
 *     def cudaEvent_t_getter(cudaEvent_t x): return <uintptr_t><void*><cyruntime.cudaEvent_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_13cudaStream_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_13cudaStream_t_getter = {"cudaStream_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_13cudaStream_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_13cudaStream_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *__pyx_v_x = 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("cudaStream_t_getter (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_x_2,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, 34542, __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, 34542, __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, "cudaStream_t_getter", 0) < (0)) __PYX_ERR(0, 34542, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaStream_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34542, __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, 34542, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaStream_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34542, __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.runtime._add_native_handle_getters.cudaStream_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t, 1, "x", 0))) __PYX_ERR(0, 34542, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_12cudaStream_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_12cudaStream_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *__pyx_v_x) {
  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("cudaStream_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaStream_t)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34542, __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.runtime._add_native_handle_getters.cudaStream_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34544
 *     def cudaStream_t_getter(cudaStream_t x): return <uintptr_t><void*><cyruntime.cudaStream_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter)
 *     def cudaEvent_t_getter(cudaEvent_t x): return <uintptr_t><void*><cyruntime.cudaEvent_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter)
 *     def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return <uintptr_t><void*><cyruntime.cudaGraphicsResource_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_15cudaEvent_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_15cudaEvent_t_getter = {"cudaEvent_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_15cudaEvent_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_15cudaEvent_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_x = 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("cudaEvent_t_getter (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_x_2,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, 34544, __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, 34544, __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, "cudaEvent_t_getter", 0) < (0)) __PYX_ERR(0, 34544, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEvent_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34544, __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, 34544, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEvent_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34544, __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.runtime._add_native_handle_getters.cudaEvent_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t, 1, "x", 0))) __PYX_ERR(0, 34544, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_14cudaEvent_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_14cudaEvent_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *__pyx_v_x) {
  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("cudaEvent_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaEvent_t)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34544, __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.runtime._add_native_handle_getters.cudaEvent_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34546
 *     def cudaEvent_t_getter(cudaEvent_t x): return <uintptr_t><void*><cyruntime.cudaEvent_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter)
 *     def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return <uintptr_t><void*><cyruntime.cudaGraphicsResource_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter)
 *     def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return <uintptr_t><void*><cyruntime.cudaExternalMemory_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_17cudaGraphicsResource_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_17cudaGraphicsResource_t_getter = {"cudaGraphicsResource_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_17cudaGraphicsResource_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_17cudaGraphicsResource_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_x = 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("cudaGraphicsResource_t_getter (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_x_2,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, 34546, __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, 34546, __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, "cudaGraphicsResource_t_getter", 0) < (0)) __PYX_ERR(0, 34546, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphicsResource_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34546, __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, 34546, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphicsResource_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34546, __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.runtime._add_native_handle_getters.cudaGraphicsResource_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, 1, "x", 0))) __PYX_ERR(0, 34546, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_16cudaGraphicsResource_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_16cudaGraphicsResource_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t *__pyx_v_x) {
  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("cudaGraphicsResource_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaGraphicsResource_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34546, __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.runtime._add_native_handle_getters.cudaGraphicsResource_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34548
 *     def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return <uintptr_t><void*><cyruntime.cudaGraphicsResource_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter)
 *     def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return <uintptr_t><void*><cyruntime.cudaExternalMemory_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter)
 *     def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return <uintptr_t><void*><cyruntime.cudaExternalSemaphore_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_19cudaExternalMemory_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_19cudaExternalMemory_t_getter = {"cudaExternalMemory_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_19cudaExternalMemory_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_19cudaExternalMemory_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_x = 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("cudaExternalMemory_t_getter (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_x_2,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, 34548, __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, 34548, __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, "cudaExternalMemory_t_getter", 0) < (0)) __PYX_ERR(0, 34548, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExternalMemory_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34548, __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, 34548, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExternalMemory_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34548, __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.runtime._add_native_handle_getters.cudaExternalMemory_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t, 1, "x", 0))) __PYX_ERR(0, 34548, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_18cudaExternalMemory_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_18cudaExternalMemory_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t *__pyx_v_x) {
  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("cudaExternalMemory_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaExternalMemory_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34548, __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.runtime._add_native_handle_getters.cudaExternalMemory_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34550
 *     def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return <uintptr_t><void*><cyruntime.cudaExternalMemory_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter)
 *     def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return <uintptr_t><void*><cyruntime.cudaExternalSemaphore_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter)
 *     def cudaGraph_t_getter(cudaGraph_t x): return <uintptr_t><void*><cyruntime.cudaGraph_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_21cudaExternalSemaphore_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_21cudaExternalSemaphore_t_getter = {"cudaExternalSemaphore_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_21cudaExternalSemaphore_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_21cudaExternalSemaphore_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_x = 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("cudaExternalSemaphore_t_getter (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_x_2,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, 34550, __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, 34550, __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, "cudaExternalSemaphore_t_getter", 0) < (0)) __PYX_ERR(0, 34550, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaExternalSemaphore_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34550, __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, 34550, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaExternalSemaphore_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34550, __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.runtime._add_native_handle_getters.cudaExternalSemaphore_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, 1, "x", 0))) __PYX_ERR(0, 34550, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_20cudaExternalSemaphore_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_20cudaExternalSemaphore_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t *__pyx_v_x) {
  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("cudaExternalSemaphore_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaExternalSemaphore_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34550, __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.runtime._add_native_handle_getters.cudaExternalSemaphore_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34552
 *     def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return <uintptr_t><void*><cyruntime.cudaExternalSemaphore_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter)
 *     def cudaGraph_t_getter(cudaGraph_t x): return <uintptr_t><void*><cyruntime.cudaGraph_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter)
 *     def cudaGraphNode_t_getter(cudaGraphNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphNode_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_23cudaGraph_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_23cudaGraph_t_getter = {"cudaGraph_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_23cudaGraph_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_23cudaGraph_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_x = 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("cudaGraph_t_getter (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_x_2,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, 34552, __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, 34552, __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, "cudaGraph_t_getter", 0) < (0)) __PYX_ERR(0, 34552, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraph_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34552, __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, 34552, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraph_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34552, __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.runtime._add_native_handle_getters.cudaGraph_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t, 1, "x", 0))) __PYX_ERR(0, 34552, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_22cudaGraph_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_22cudaGraph_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *__pyx_v_x) {
  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("cudaGraph_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaGraph_t)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34552, __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.runtime._add_native_handle_getters.cudaGraph_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34554
 *     def cudaGraph_t_getter(cudaGraph_t x): return <uintptr_t><void*><cyruntime.cudaGraph_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter)
 *     def cudaGraphNode_t_getter(cudaGraphNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphNode_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter)
 *     def cudaUserObject_t_getter(cudaUserObject_t x): return <uintptr_t><void*><cyruntime.cudaUserObject_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_25cudaGraphNode_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_25cudaGraphNode_t_getter = {"cudaGraphNode_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_25cudaGraphNode_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_25cudaGraphNode_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_x = 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("cudaGraphNode_t_getter (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_x_2,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, 34554, __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, 34554, __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, "cudaGraphNode_t_getter", 0) < (0)) __PYX_ERR(0, 34554, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphNode_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34554, __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, 34554, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphNode_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34554, __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.runtime._add_native_handle_getters.cudaGraphNode_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t, 1, "x", 0))) __PYX_ERR(0, 34554, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_24cudaGraphNode_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_24cudaGraphNode_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *__pyx_v_x) {
  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("cudaGraphNode_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaGraphNode_t)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34554, __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.runtime._add_native_handle_getters.cudaGraphNode_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34556
 *     def cudaGraphNode_t_getter(cudaGraphNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphNode_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter)
 *     def cudaUserObject_t_getter(cudaUserObject_t x): return <uintptr_t><void*><cyruntime.cudaUserObject_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter)
 *     def cudaFunction_t_getter(cudaFunction_t x): return <uintptr_t><void*><cyruntime.cudaFunction_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_27cudaUserObject_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_27cudaUserObject_t_getter = {"cudaUserObject_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_27cudaUserObject_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_27cudaUserObject_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t *__pyx_v_x = 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("cudaUserObject_t_getter (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_x_2,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, 34556, __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, 34556, __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, "cudaUserObject_t_getter", 0) < (0)) __PYX_ERR(0, 34556, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaUserObject_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34556, __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, 34556, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaUserObject_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34556, __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.runtime._add_native_handle_getters.cudaUserObject_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t, 1, "x", 0))) __PYX_ERR(0, 34556, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_26cudaUserObject_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_26cudaUserObject_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t *__pyx_v_x) {
  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("cudaUserObject_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaUserObject_t)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34556, __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.runtime._add_native_handle_getters.cudaUserObject_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34558
 *     def cudaUserObject_t_getter(cudaUserObject_t x): return <uintptr_t><void*><cyruntime.cudaUserObject_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter)
 *     def cudaFunction_t_getter(cudaFunction_t x): return <uintptr_t><void*><cyruntime.cudaFunction_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter)
 *     def cudaKernel_t_getter(cudaKernel_t x): return <uintptr_t><void*><cyruntime.cudaKernel_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_29cudaFunction_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_29cudaFunction_t_getter = {"cudaFunction_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_29cudaFunction_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_29cudaFunction_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaFunction_t *__pyx_v_x = 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("cudaFunction_t_getter (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_x_2,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, 34558, __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, 34558, __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, "cudaFunction_t_getter", 0) < (0)) __PYX_ERR(0, 34558, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaFunction_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34558, __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, 34558, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFunction_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaFunction_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34558, __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.runtime._add_native_handle_getters.cudaFunction_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t, 1, "x", 0))) __PYX_ERR(0, 34558, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_28cudaFunction_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_28cudaFunction_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaFunction_t *__pyx_v_x) {
  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("cudaFunction_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaFunction_t)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34558, __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.runtime._add_native_handle_getters.cudaFunction_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34560
 *     def cudaFunction_t_getter(cudaFunction_t x): return <uintptr_t><void*><cyruntime.cudaFunction_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter)
 *     def cudaKernel_t_getter(cudaKernel_t x): return <uintptr_t><void*><cyruntime.cudaKernel_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter)
 *     def cudaLibrary_t_getter(cudaLibrary_t x): return <uintptr_t><void*><cyruntime.cudaLibrary_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_31cudaKernel_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_31cudaKernel_t_getter = {"cudaKernel_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_31cudaKernel_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_31cudaKernel_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_x = 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("cudaKernel_t_getter (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_x_2,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, 34560, __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, 34560, __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, "cudaKernel_t_getter", 0) < (0)) __PYX_ERR(0, 34560, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaKernel_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34560, __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, 34560, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaKernel_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34560, __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.runtime._add_native_handle_getters.cudaKernel_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t, 1, "x", 0))) __PYX_ERR(0, 34560, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_30cudaKernel_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_30cudaKernel_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t *__pyx_v_x) {
  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("cudaKernel_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaKernel_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34560, __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.runtime._add_native_handle_getters.cudaKernel_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34562
 *     def cudaKernel_t_getter(cudaKernel_t x): return <uintptr_t><void*><cyruntime.cudaKernel_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter)
 *     def cudaLibrary_t_getter(cudaLibrary_t x): return <uintptr_t><void*><cyruntime.cudaLibrary_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter)
 *     def cudaMemPool_t_getter(cudaMemPool_t x): return <uintptr_t><void*><cyruntime.cudaMemPool_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_33cudaLibrary_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_33cudaLibrary_t_getter = {"cudaLibrary_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_33cudaLibrary_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_33cudaLibrary_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_x = 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("cudaLibrary_t_getter (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_x_2,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, 34562, __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, 34562, __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, "cudaLibrary_t_getter", 0) < (0)) __PYX_ERR(0, 34562, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLibrary_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34562, __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, 34562, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLibrary_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34562, __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.runtime._add_native_handle_getters.cudaLibrary_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, 1, "x", 0))) __PYX_ERR(0, 34562, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_32cudaLibrary_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_32cudaLibrary_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t *__pyx_v_x) {
  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("cudaLibrary_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaLibrary_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34562, __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.runtime._add_native_handle_getters.cudaLibrary_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34564
 *     def cudaLibrary_t_getter(cudaLibrary_t x): return <uintptr_t><void*><cyruntime.cudaLibrary_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter)
 *     def cudaMemPool_t_getter(cudaMemPool_t x): return <uintptr_t><void*><cyruntime.cudaMemPool_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter)
 *     def cudaGraphExec_t_getter(cudaGraphExec_t x): return <uintptr_t><void*><cyruntime.cudaGraphExec_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_35cudaMemPool_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_35cudaMemPool_t_getter = {"cudaMemPool_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_35cudaMemPool_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_35cudaMemPool_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_x = 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("cudaMemPool_t_getter (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_x_2,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, 34564, __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, 34564, __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, "cudaMemPool_t_getter", 0) < (0)) __PYX_ERR(0, 34564, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaMemPool_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34564, __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, 34564, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaMemPool_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34564, __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.runtime._add_native_handle_getters.cudaMemPool_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t, 1, "x", 0))) __PYX_ERR(0, 34564, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_34cudaMemPool_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_34cudaMemPool_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t *__pyx_v_x) {
  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("cudaMemPool_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaMemPool_t)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34564, __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.runtime._add_native_handle_getters.cudaMemPool_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34566
 *     def cudaMemPool_t_getter(cudaMemPool_t x): return <uintptr_t><void*><cyruntime.cudaMemPool_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter)
 *     def cudaGraphExec_t_getter(cudaGraphExec_t x): return <uintptr_t><void*><cyruntime.cudaGraphExec_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter)
 *     def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphDeviceNode_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_37cudaGraphExec_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_37cudaGraphExec_t_getter = {"cudaGraphExec_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_37cudaGraphExec_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_37cudaGraphExec_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *__pyx_v_x = 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("cudaGraphExec_t_getter (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_x_2,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, 34566, __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, 34566, __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, "cudaGraphExec_t_getter", 0) < (0)) __PYX_ERR(0, 34566, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphExec_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34566, __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, 34566, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphExec_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34566, __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.runtime._add_native_handle_getters.cudaGraphExec_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t, 1, "x", 0))) __PYX_ERR(0, 34566, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_36cudaGraphExec_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_36cudaGraphExec_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t *__pyx_v_x) {
  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("cudaGraphExec_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaGraphExec_t)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34566, __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.runtime._add_native_handle_getters.cudaGraphExec_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34568
 *     def cudaGraphExec_t_getter(cudaGraphExec_t x): return <uintptr_t><void*><cyruntime.cudaGraphExec_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter)
 *     def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphDeviceNode_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter)
 *     def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return <uintptr_t><void*><cyruntime.cudaAsyncCallbackHandle_t>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_39cudaGraphDeviceNode_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_39cudaGraphDeviceNode_t_getter = {"cudaGraphDeviceNode_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_39cudaGraphDeviceNode_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_39cudaGraphDeviceNode_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_x = 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("cudaGraphDeviceNode_t_getter (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_x_2,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, 34568, __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, 34568, __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, "cudaGraphDeviceNode_t_getter", 0) < (0)) __PYX_ERR(0, 34568, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaGraphDeviceNode_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34568, __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, 34568, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaGraphDeviceNode_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34568, __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.runtime._add_native_handle_getters.cudaGraphDeviceNode_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, 1, "x", 0))) __PYX_ERR(0, 34568, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_38cudaGraphDeviceNode_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_38cudaGraphDeviceNode_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *__pyx_v_x) {
  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("cudaGraphDeviceNode_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaGraphDeviceNode_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34568, __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.runtime._add_native_handle_getters.cudaGraphDeviceNode_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34570
 *     def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphDeviceNode_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter)
 *     def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return <uintptr_t><void*><cyruntime.cudaAsyncCallbackHandle_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter)
 *     def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return <uintptr_t><void*><cyruntime.cudaLogsCallbackHandle>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_41cudaAsyncCallbackHandle_t_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_41cudaAsyncCallbackHandle_t_getter = {"cudaAsyncCallbackHandle_t_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_41cudaAsyncCallbackHandle_t_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_41cudaAsyncCallbackHandle_t_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_x = 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("cudaAsyncCallbackHandle_t_getter (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_x_2,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, 34570, __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, 34570, __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, "cudaAsyncCallbackHandle_t_getter", 0) < (0)) __PYX_ERR(0, 34570, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaAsyncCallbackHandle_t_getter", 1, 1, 1, i); __PYX_ERR(0, 34570, __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, 34570, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaAsyncCallbackHandle_t_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34570, __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.runtime._add_native_handle_getters.cudaAsyncCallbackHandle_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t, 1, "x", 0))) __PYX_ERR(0, 34570, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_40cudaAsyncCallbackHandle_t_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_40cudaAsyncCallbackHandle_t_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t *__pyx_v_x) {
  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("cudaAsyncCallbackHandle_t_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaAsyncCallbackHandle_t)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34570, __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.runtime._add_native_handle_getters.cudaAsyncCallbackHandle_t_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34572
 *     def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return <uintptr_t><void*><cyruntime.cudaAsyncCallbackHandle_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter)
 *     def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return <uintptr_t><void*><cyruntime.cudaLogsCallbackHandle>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaLogsCallbackHandle, cudaLogsCallbackHandle_getter)
 *     def EGLImageKHR_getter(EGLImageKHR x): return <uintptr_t><void*><cyruntime.EGLImageKHR>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_43cudaLogsCallbackHandle_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_43cudaLogsCallbackHandle_getter = {"cudaLogsCallbackHandle_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_43cudaLogsCallbackHandle_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_43cudaLogsCallbackHandle_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_x = 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("cudaLogsCallbackHandle_getter (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_x_2,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, 34572, __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, 34572, __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, "cudaLogsCallbackHandle_getter", 0) < (0)) __PYX_ERR(0, 34572, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaLogsCallbackHandle_getter", 1, 1, 1, i); __PYX_ERR(0, 34572, __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, 34572, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaLogsCallbackHandle_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34572, __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.runtime._add_native_handle_getters.cudaLogsCallbackHandle_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle, 1, "x", 0))) __PYX_ERR(0, 34572, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_42cudaLogsCallbackHandle_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_42cudaLogsCallbackHandle_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle *__pyx_v_x) {
  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("cudaLogsCallbackHandle_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((cudaLogsCallbackHandle)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34572, __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.runtime._add_native_handle_getters.cudaLogsCallbackHandle_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34574
 *     def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return <uintptr_t><void*><cyruntime.cudaLogsCallbackHandle>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaLogsCallbackHandle, cudaLogsCallbackHandle_getter)
 *     def EGLImageKHR_getter(EGLImageKHR x): return <uintptr_t><void*><cyruntime.EGLImageKHR>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter)
 *     def EGLStreamKHR_getter(EGLStreamKHR x): return <uintptr_t><void*><cyruntime.EGLStreamKHR>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_45EGLImageKHR_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_45EGLImageKHR_getter = {"EGLImageKHR_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_45EGLImageKHR_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_45EGLImageKHR_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_x = 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("EGLImageKHR_getter (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_x_2,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, 34574, __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, 34574, __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, "EGLImageKHR_getter", 0) < (0)) __PYX_ERR(0, 34574, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("EGLImageKHR_getter", 1, 1, 1, i); __PYX_ERR(0, 34574, __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, 34574, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("EGLImageKHR_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34574, __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.runtime._add_native_handle_getters.EGLImageKHR_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR, 1, "x", 0))) __PYX_ERR(0, 34574, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_44EGLImageKHR_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_44EGLImageKHR_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR *__pyx_v_x) {
  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("EGLImageKHR_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((__pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34574, __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.runtime._add_native_handle_getters.EGLImageKHR_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34576
 *     def EGLImageKHR_getter(EGLImageKHR x): return <uintptr_t><void*><cyruntime.EGLImageKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter)
 *     def EGLStreamKHR_getter(EGLStreamKHR x): return <uintptr_t><void*><cyruntime.EGLStreamKHR>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter)
 *     def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cyruntime.EGLSyncKHR>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_47EGLStreamKHR_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_47EGLStreamKHR_getter = {"EGLStreamKHR_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_47EGLStreamKHR_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_47EGLStreamKHR_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_x = 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("EGLStreamKHR_getter (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_x_2,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, 34576, __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, 34576, __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, "EGLStreamKHR_getter", 0) < (0)) __PYX_ERR(0, 34576, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("EGLStreamKHR_getter", 1, 1, 1, i); __PYX_ERR(0, 34576, __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, 34576, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("EGLStreamKHR_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34576, __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.runtime._add_native_handle_getters.EGLStreamKHR_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR, 1, "x", 0))) __PYX_ERR(0, 34576, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_46EGLStreamKHR_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_46EGLStreamKHR_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR *__pyx_v_x) {
  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("EGLStreamKHR_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((__pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34576, __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.runtime._add_native_handle_getters.EGLStreamKHR_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34578
 *     def EGLStreamKHR_getter(EGLStreamKHR x): return <uintptr_t><void*><cyruntime.EGLStreamKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter)
 *     def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cyruntime.EGLSyncKHR>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter)
 *     def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return <uintptr_t><void*><cyruntime.cudaEglStreamConnection>(x._pvt_ptr[0])
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_49EGLSyncKHR_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_49EGLSyncKHR_getter = {"EGLSyncKHR_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_49EGLSyncKHR_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_49EGLSyncKHR_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_x = 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("EGLSyncKHR_getter (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_x_2,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, 34578, __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, 34578, __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, "EGLSyncKHR_getter", 0) < (0)) __PYX_ERR(0, 34578, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("EGLSyncKHR_getter", 1, 1, 1, i); __PYX_ERR(0, 34578, __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, 34578, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("EGLSyncKHR_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34578, __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.runtime._add_native_handle_getters.EGLSyncKHR_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR, 1, "x", 0))) __PYX_ERR(0, 34578, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_48EGLSyncKHR_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_48EGLSyncKHR_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR *__pyx_v_x) {
  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("EGLSyncKHR_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((__pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR)(__pyx_v_x->_pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34578, __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.runtime._add_native_handle_getters.EGLSyncKHR_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34580
 *     def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cyruntime.EGLSyncKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter)
 *     def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return <uintptr_t><void*><cyruntime.cudaEglStreamConnection>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter)
 *     return 0
*/

/* Python wrapper */
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_51cudaEglStreamConnection_getter(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 PyMethodDef __pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_51cudaEglStreamConnection_getter = {"cudaEglStreamConnection_getter", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_51cudaEglStreamConnection_getter, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_4cuda_8bindings_7runtime_26_add_native_handle_getters_51cudaEglStreamConnection_getter(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
) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *__pyx_v_x = 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("cudaEglStreamConnection_getter (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_x_2,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, 34580, __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, 34580, __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, "cudaEglStreamConnection_getter", 0) < (0)) __PYX_ERR(0, 34580, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cudaEglStreamConnection_getter", 1, 1, 1, i); __PYX_ERR(0, 34580, __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, 34580, __pyx_L3_error)
    }
    __pyx_v_x = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cudaEglStreamConnection_getter", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 34580, __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.runtime._add_native_handle_getters.cudaEglStreamConnection_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_x), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection, 1, "x", 0))) __PYX_ERR(0, 34580, __pyx_L1_error)
  __pyx_r = __pyx_pf_4cuda_8bindings_7runtime_26_add_native_handle_getters_50cudaEglStreamConnection_getter(__pyx_self, __pyx_v_x);

  /* 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_7runtime_26_add_native_handle_getters_50cudaEglStreamConnection_getter(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection *__pyx_v_x) {
  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("cudaEglStreamConnection_getter", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_FromSize_t(((uintptr_t)((void *)((__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection)(__pyx_v_x->__pyx_base._pvt_ptr[0]))))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34580, __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.runtime._add_native_handle_getters.cudaEglStreamConnection_getter", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cuda/bindings/runtime.pyx":34528
 *     raise TypeError("Unknown type: " + str(objType))
 * 
 * cdef int _add_native_handle_getters() except?-1:             # <<<<<<<<<<<<<<
 *     from cuda.bindings.utils import _add_cuda_native_handle_getter
 *     def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return <uintptr_t><void*><cyruntime.cudaDevResourceDesc_t>(x._pvt_ptr[0])
*/

static int __pyx_f_4cuda_8bindings_7runtime__add_native_handle_getters(void) {
  PyObject *__pyx_v__add_cuda_native_handle_getter = NULL;
  PyObject *__pyx_v_cudaDevResourceDesc_t_getter = 0;
  PyObject *__pyx_v_cudaExecutionContext_t_getter = 0;
  PyObject *__pyx_v_cudaArray_t_getter = 0;
  PyObject *__pyx_v_cudaArray_const_t_getter = 0;
  PyObject *__pyx_v_cudaMipmappedArray_t_getter = 0;
  PyObject *__pyx_v_cudaMipmappedArray_const_t_getter = 0;
  PyObject *__pyx_v_cudaStream_t_getter = 0;
  PyObject *__pyx_v_cudaEvent_t_getter = 0;
  PyObject *__pyx_v_cudaGraphicsResource_t_getter = 0;
  PyObject *__pyx_v_cudaExternalMemory_t_getter = 0;
  PyObject *__pyx_v_cudaExternalSemaphore_t_getter = 0;
  PyObject *__pyx_v_cudaGraph_t_getter = 0;
  PyObject *__pyx_v_cudaGraphNode_t_getter = 0;
  PyObject *__pyx_v_cudaUserObject_t_getter = 0;
  PyObject *__pyx_v_cudaFunction_t_getter = 0;
  PyObject *__pyx_v_cudaKernel_t_getter = 0;
  PyObject *__pyx_v_cudaLibrary_t_getter = 0;
  PyObject *__pyx_v_cudaMemPool_t_getter = 0;
  PyObject *__pyx_v_cudaGraphExec_t_getter = 0;
  PyObject *__pyx_v_cudaGraphDeviceNode_t_getter = 0;
  PyObject *__pyx_v_cudaAsyncCallbackHandle_t_getter = 0;
  PyObject *__pyx_v_cudaLogsCallbackHandle_getter = 0;
  PyObject *__pyx_v_EGLImageKHR_getter = 0;
  PyObject *__pyx_v_EGLStreamKHR_getter = 0;
  PyObject *__pyx_v_EGLSyncKHR_getter = 0;
  PyObject *__pyx_v_cudaEglStreamConnection_getter = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  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_RefNannySetupContext("_add_native_handle_getters", 0);

  /* "cuda/bindings/runtime.pyx":34529
 * 
 * cdef int _add_native_handle_getters() except?-1:
 *     from cuda.bindings.utils import _add_cuda_native_handle_getter             # <<<<<<<<<<<<<<
 *     def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return <uintptr_t><void*><cyruntime.cudaDevResourceDesc_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaDevResourceDesc_t, cudaDevResourceDesc_t_getter)
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_add_cuda_native_handle_getter};
    __pyx_t_2 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_cuda_bindings_utils, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34529, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_t_2;
  __Pyx_GOTREF(__pyx_t_1);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_add_cuda_native_handle_getter};
    __pyx_t_3 = 0; {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_1, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34529, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      switch (__pyx_t_3) {
        case 0:
        __Pyx_INCREF(__pyx_t_4);
        __pyx_v__add_cuda_native_handle_getter = __pyx_t_4;
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34530
 * cdef int _add_native_handle_getters() except?-1:
 *     from cuda.bindings.utils import _add_cuda_native_handle_getter
 *     def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return <uintptr_t><void*><cyruntime.cudaDevResourceDesc_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaDevResourceDesc_t, cudaDevResourceDesc_t_getter)
 *     def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return <uintptr_t><void*><cyruntime.cudaExecutionContext_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_1cudaDevResourceDesc_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[138])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaDevResourceDesc_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34531
 *     from cuda.bindings.utils import _add_cuda_native_handle_getter
 *     def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return <uintptr_t><void*><cyruntime.cudaDevResourceDesc_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaDevResourceDesc_t, cudaDevResourceDesc_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return <uintptr_t><void*><cyruntime.cudaExecutionContext_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExecutionContext_t, cudaExecutionContext_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t), __pyx_v_cudaDevResourceDesc_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34532
 *     def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return <uintptr_t><void*><cyruntime.cudaDevResourceDesc_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaDevResourceDesc_t, cudaDevResourceDesc_t_getter)
 *     def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return <uintptr_t><void*><cyruntime.cudaExecutionContext_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaExecutionContext_t, cudaExecutionContext_t_getter)
 *     def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_3cudaExecutionContext_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[139])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaExecutionContext_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34533
 *     _add_cuda_native_handle_getter(cudaDevResourceDesc_t, cudaDevResourceDesc_t_getter)
 *     def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return <uintptr_t><void*><cyruntime.cudaExecutionContext_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExecutionContext_t, cudaExecutionContext_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t), __pyx_v_cudaExecutionContext_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34533, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34534
 *     def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return <uintptr_t><void*><cyruntime.cudaExecutionContext_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExecutionContext_t, cudaExecutionContext_t_getter)
 *     def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter)
 *     def cudaArray_const_t_getter(cudaArray_const_t x): return <uintptr_t><void*><cyruntime.cudaArray_const_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_5cudaArray_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[140])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaArray_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34535
 *     _add_cuda_native_handle_getter(cudaExecutionContext_t, cudaExecutionContext_t_getter)
 *     def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaArray_const_t_getter(cudaArray_const_t x): return <uintptr_t><void*><cyruntime.cudaArray_const_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t), __pyx_v_cudaArray_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34535, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34536
 *     def cudaArray_t_getter(cudaArray_t x): return <uintptr_t><void*><cyruntime.cudaArray_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter)
 *     def cudaArray_const_t_getter(cudaArray_const_t x): return <uintptr_t><void*><cyruntime.cudaArray_const_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter)
 *     def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_7cudaArray_const_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[141])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaArray_const_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34537
 *     _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter)
 *     def cudaArray_const_t_getter(cudaArray_const_t x): return <uintptr_t><void*><cyruntime.cudaArray_const_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t), __pyx_v_cudaArray_const_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34538
 *     def cudaArray_const_t_getter(cudaArray_const_t x): return <uintptr_t><void*><cyruntime.cudaArray_const_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter)
 *     def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter)
 *     def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_const_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_9cudaMipmappedArray_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_5, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[142])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaMipmappedArray_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34539
 *     _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter)
 *     def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_const_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t), __pyx_v_cudaMipmappedArray_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34539, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34540
 *     def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter)
 *     def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_const_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter)
 *     def cudaStream_t_getter(cudaStream_t x): return <uintptr_t><void*><cyruntime.cudaStream_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_11cudaMipmappedArray_const_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_6, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[143])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34540, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaMipmappedArray_const_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34541
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter)
 *     def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_const_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaStream_t_getter(cudaStream_t x): return <uintptr_t><void*><cyruntime.cudaStream_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t), __pyx_v_cudaMipmappedArray_const_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34542
 *     def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return <uintptr_t><void*><cyruntime.cudaMipmappedArray_const_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter)
 *     def cudaStream_t_getter(cudaStream_t x): return <uintptr_t><void*><cyruntime.cudaStream_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter)
 *     def cudaEvent_t_getter(cudaEvent_t x): return <uintptr_t><void*><cyruntime.cudaEvent_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_13cudaStream_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_7, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[144])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaStream_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34543
 *     _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter)
 *     def cudaStream_t_getter(cudaStream_t x): return <uintptr_t><void*><cyruntime.cudaStream_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaEvent_t_getter(cudaEvent_t x): return <uintptr_t><void*><cyruntime.cudaEvent_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t), __pyx_v_cudaStream_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34543, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34544
 *     def cudaStream_t_getter(cudaStream_t x): return <uintptr_t><void*><cyruntime.cudaStream_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter)
 *     def cudaEvent_t_getter(cudaEvent_t x): return <uintptr_t><void*><cyruntime.cudaEvent_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter)
 *     def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return <uintptr_t><void*><cyruntime.cudaGraphicsResource_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_15cudaEvent_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_8, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[145])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaEvent_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34545
 *     _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter)
 *     def cudaEvent_t_getter(cudaEvent_t x): return <uintptr_t><void*><cyruntime.cudaEvent_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return <uintptr_t><void*><cyruntime.cudaGraphicsResource_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t), __pyx_v_cudaEvent_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34546
 *     def cudaEvent_t_getter(cudaEvent_t x): return <uintptr_t><void*><cyruntime.cudaEvent_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter)
 *     def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return <uintptr_t><void*><cyruntime.cudaGraphicsResource_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter)
 *     def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return <uintptr_t><void*><cyruntime.cudaExternalMemory_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_17cudaGraphicsResource_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_9, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[146])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaGraphicsResource_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34547
 *     _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter)
 *     def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return <uintptr_t><void*><cyruntime.cudaGraphicsResource_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return <uintptr_t><void*><cyruntime.cudaExternalMemory_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t), __pyx_v_cudaGraphicsResource_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34547, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34548
 *     def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return <uintptr_t><void*><cyruntime.cudaGraphicsResource_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter)
 *     def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return <uintptr_t><void*><cyruntime.cudaExternalMemory_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter)
 *     def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return <uintptr_t><void*><cyruntime.cudaExternalSemaphore_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_19cudaExternalMemory_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_10, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[147])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaExternalMemory_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34549
 *     _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter)
 *     def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return <uintptr_t><void*><cyruntime.cudaExternalMemory_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return <uintptr_t><void*><cyruntime.cudaExternalSemaphore_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t), __pyx_v_cudaExternalMemory_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34550
 *     def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return <uintptr_t><void*><cyruntime.cudaExternalMemory_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter)
 *     def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return <uintptr_t><void*><cyruntime.cudaExternalSemaphore_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter)
 *     def cudaGraph_t_getter(cudaGraph_t x): return <uintptr_t><void*><cyruntime.cudaGraph_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_21cudaExternalSemaphore_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_11, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[148])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaExternalSemaphore_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34551
 *     _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter)
 *     def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return <uintptr_t><void*><cyruntime.cudaExternalSemaphore_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaGraph_t_getter(cudaGraph_t x): return <uintptr_t><void*><cyruntime.cudaGraph_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t), __pyx_v_cudaExternalSemaphore_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34552
 *     def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return <uintptr_t><void*><cyruntime.cudaExternalSemaphore_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter)
 *     def cudaGraph_t_getter(cudaGraph_t x): return <uintptr_t><void*><cyruntime.cudaGraph_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter)
 *     def cudaGraphNode_t_getter(cudaGraphNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphNode_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_23cudaGraph_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_12, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[149])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaGraph_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34553
 *     _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter)
 *     def cudaGraph_t_getter(cudaGraph_t x): return <uintptr_t><void*><cyruntime.cudaGraph_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaGraphNode_t_getter(cudaGraphNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphNode_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t), __pyx_v_cudaGraph_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34553, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34554
 *     def cudaGraph_t_getter(cudaGraph_t x): return <uintptr_t><void*><cyruntime.cudaGraph_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter)
 *     def cudaGraphNode_t_getter(cudaGraphNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphNode_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter)
 *     def cudaUserObject_t_getter(cudaUserObject_t x): return <uintptr_t><void*><cyruntime.cudaUserObject_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_25cudaGraphNode_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_13, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[150])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34554, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaGraphNode_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34555
 *     _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter)
 *     def cudaGraphNode_t_getter(cudaGraphNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphNode_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaUserObject_t_getter(cudaUserObject_t x): return <uintptr_t><void*><cyruntime.cudaUserObject_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t), __pyx_v_cudaGraphNode_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34555, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34556
 *     def cudaGraphNode_t_getter(cudaGraphNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphNode_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter)
 *     def cudaUserObject_t_getter(cudaUserObject_t x): return <uintptr_t><void*><cyruntime.cudaUserObject_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter)
 *     def cudaFunction_t_getter(cudaFunction_t x): return <uintptr_t><void*><cyruntime.cudaFunction_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_27cudaUserObject_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_14, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[151])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaUserObject_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34557
 *     _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter)
 *     def cudaUserObject_t_getter(cudaUserObject_t x): return <uintptr_t><void*><cyruntime.cudaUserObject_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaFunction_t_getter(cudaFunction_t x): return <uintptr_t><void*><cyruntime.cudaFunction_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t), __pyx_v_cudaUserObject_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34557, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34558
 *     def cudaUserObject_t_getter(cudaUserObject_t x): return <uintptr_t><void*><cyruntime.cudaUserObject_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter)
 *     def cudaFunction_t_getter(cudaFunction_t x): return <uintptr_t><void*><cyruntime.cudaFunction_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter)
 *     def cudaKernel_t_getter(cudaKernel_t x): return <uintptr_t><void*><cyruntime.cudaKernel_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_29cudaFunction_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_15, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[152])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaFunction_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34559
 *     _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter)
 *     def cudaFunction_t_getter(cudaFunction_t x): return <uintptr_t><void*><cyruntime.cudaFunction_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaKernel_t_getter(cudaKernel_t x): return <uintptr_t><void*><cyruntime.cudaKernel_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t), __pyx_v_cudaFunction_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34560
 *     def cudaFunction_t_getter(cudaFunction_t x): return <uintptr_t><void*><cyruntime.cudaFunction_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter)
 *     def cudaKernel_t_getter(cudaKernel_t x): return <uintptr_t><void*><cyruntime.cudaKernel_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter)
 *     def cudaLibrary_t_getter(cudaLibrary_t x): return <uintptr_t><void*><cyruntime.cudaLibrary_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_31cudaKernel_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_16, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[153])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaKernel_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34561
 *     _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter)
 *     def cudaKernel_t_getter(cudaKernel_t x): return <uintptr_t><void*><cyruntime.cudaKernel_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaLibrary_t_getter(cudaLibrary_t x): return <uintptr_t><void*><cyruntime.cudaLibrary_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t), __pyx_v_cudaKernel_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34561, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34562
 *     def cudaKernel_t_getter(cudaKernel_t x): return <uintptr_t><void*><cyruntime.cudaKernel_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter)
 *     def cudaLibrary_t_getter(cudaLibrary_t x): return <uintptr_t><void*><cyruntime.cudaLibrary_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter)
 *     def cudaMemPool_t_getter(cudaMemPool_t x): return <uintptr_t><void*><cyruntime.cudaMemPool_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_33cudaLibrary_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_17, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[154])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaLibrary_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34563
 *     _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter)
 *     def cudaLibrary_t_getter(cudaLibrary_t x): return <uintptr_t><void*><cyruntime.cudaLibrary_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaMemPool_t_getter(cudaMemPool_t x): return <uintptr_t><void*><cyruntime.cudaMemPool_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t), __pyx_v_cudaLibrary_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34563, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34564
 *     def cudaLibrary_t_getter(cudaLibrary_t x): return <uintptr_t><void*><cyruntime.cudaLibrary_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter)
 *     def cudaMemPool_t_getter(cudaMemPool_t x): return <uintptr_t><void*><cyruntime.cudaMemPool_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter)
 *     def cudaGraphExec_t_getter(cudaGraphExec_t x): return <uintptr_t><void*><cyruntime.cudaGraphExec_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_35cudaMemPool_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_18, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[155])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaMemPool_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34565
 *     _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter)
 *     def cudaMemPool_t_getter(cudaMemPool_t x): return <uintptr_t><void*><cyruntime.cudaMemPool_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaGraphExec_t_getter(cudaGraphExec_t x): return <uintptr_t><void*><cyruntime.cudaGraphExec_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t), __pyx_v_cudaMemPool_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34566
 *     def cudaMemPool_t_getter(cudaMemPool_t x): return <uintptr_t><void*><cyruntime.cudaMemPool_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter)
 *     def cudaGraphExec_t_getter(cudaGraphExec_t x): return <uintptr_t><void*><cyruntime.cudaGraphExec_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter)
 *     def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphDeviceNode_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_37cudaGraphExec_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_19, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[156])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaGraphExec_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34567
 *     _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter)
 *     def cudaGraphExec_t_getter(cudaGraphExec_t x): return <uintptr_t><void*><cyruntime.cudaGraphExec_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphDeviceNode_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t), __pyx_v_cudaGraphExec_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34568
 *     def cudaGraphExec_t_getter(cudaGraphExec_t x): return <uintptr_t><void*><cyruntime.cudaGraphExec_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter)
 *     def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphDeviceNode_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter)
 *     def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return <uintptr_t><void*><cyruntime.cudaAsyncCallbackHandle_t>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_39cudaGraphDeviceNode_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_20, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[157])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaGraphDeviceNode_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34569
 *     _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter)
 *     def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphDeviceNode_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return <uintptr_t><void*><cyruntime.cudaAsyncCallbackHandle_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t), __pyx_v_cudaGraphDeviceNode_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34570
 *     def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return <uintptr_t><void*><cyruntime.cudaGraphDeviceNode_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter)
 *     def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return <uintptr_t><void*><cyruntime.cudaAsyncCallbackHandle_t>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter)
 *     def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return <uintptr_t><void*><cyruntime.cudaLogsCallbackHandle>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_41cudaAsyncCallbackHandle_t_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_21, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[158])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaAsyncCallbackHandle_t_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34571
 *     _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter)
 *     def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return <uintptr_t><void*><cyruntime.cudaAsyncCallbackHandle_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter)             # <<<<<<<<<<<<<<
 *     def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return <uintptr_t><void*><cyruntime.cudaLogsCallbackHandle>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaLogsCallbackHandle, cudaLogsCallbackHandle_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t), __pyx_v_cudaAsyncCallbackHandle_t_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34572
 *     def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return <uintptr_t><void*><cyruntime.cudaAsyncCallbackHandle_t>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter)
 *     def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return <uintptr_t><void*><cyruntime.cudaLogsCallbackHandle>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaLogsCallbackHandle, cudaLogsCallbackHandle_getter)
 *     def EGLImageKHR_getter(EGLImageKHR x): return <uintptr_t><void*><cyruntime.EGLImageKHR>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_43cudaLogsCallbackHandle_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_22, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[159])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaLogsCallbackHandle_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34573
 *     _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter)
 *     def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return <uintptr_t><void*><cyruntime.cudaLogsCallbackHandle>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaLogsCallbackHandle, cudaLogsCallbackHandle_getter)             # <<<<<<<<<<<<<<
 *     def EGLImageKHR_getter(EGLImageKHR x): return <uintptr_t><void*><cyruntime.EGLImageKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle), __pyx_v_cudaLogsCallbackHandle_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34574
 *     def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return <uintptr_t><void*><cyruntime.cudaLogsCallbackHandle>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaLogsCallbackHandle, cudaLogsCallbackHandle_getter)
 *     def EGLImageKHR_getter(EGLImageKHR x): return <uintptr_t><void*><cyruntime.EGLImageKHR>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter)
 *     def EGLStreamKHR_getter(EGLStreamKHR x): return <uintptr_t><void*><cyruntime.EGLStreamKHR>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_45EGLImageKHR_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_23, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[160])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_EGLImageKHR_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34575
 *     _add_cuda_native_handle_getter(cudaLogsCallbackHandle, cudaLogsCallbackHandle_getter)
 *     def EGLImageKHR_getter(EGLImageKHR x): return <uintptr_t><void*><cyruntime.EGLImageKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter)             # <<<<<<<<<<<<<<
 *     def EGLStreamKHR_getter(EGLStreamKHR x): return <uintptr_t><void*><cyruntime.EGLStreamKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR), __pyx_v_EGLImageKHR_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34576
 *     def EGLImageKHR_getter(EGLImageKHR x): return <uintptr_t><void*><cyruntime.EGLImageKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter)
 *     def EGLStreamKHR_getter(EGLStreamKHR x): return <uintptr_t><void*><cyruntime.EGLStreamKHR>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter)
 *     def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cyruntime.EGLSyncKHR>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_47EGLStreamKHR_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_24, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[161])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34576, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_EGLStreamKHR_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34577
 *     _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter)
 *     def EGLStreamKHR_getter(EGLStreamKHR x): return <uintptr_t><void*><cyruntime.EGLStreamKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter)             # <<<<<<<<<<<<<<
 *     def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cyruntime.EGLSyncKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter)
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR), __pyx_v_EGLStreamKHR_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34578
 *     def EGLStreamKHR_getter(EGLStreamKHR x): return <uintptr_t><void*><cyruntime.EGLStreamKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter)
 *     def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cyruntime.EGLSyncKHR>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter)
 *     def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return <uintptr_t><void*><cyruntime.cudaEglStreamConnection>(x._pvt_ptr[0])
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_49EGLSyncKHR_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_25, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[162])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_EGLSyncKHR_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34579
 *     _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter)
 *     def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cyruntime.EGLSyncKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter)             # <<<<<<<<<<<<<<
 *     def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return <uintptr_t><void*><cyruntime.cudaEglStreamConnection>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_5 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR), __pyx_v_EGLSyncKHR_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34580
 *     def EGLSyncKHR_getter(EGLSyncKHR x): return <uintptr_t><void*><cyruntime.EGLSyncKHR>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter)
 *     def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return <uintptr_t><void*><cyruntime.cudaEglStreamConnection>(x._pvt_ptr[0])             # <<<<<<<<<<<<<<
 *     _add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter)
 *     return 0
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_add_native_handle_getters_51cudaEglStreamConnection_getter, 0, __pyx_mstate_global->__pyx_n_u_add_native_handle_getters_local_26, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[163])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cudaEglStreamConnection_getter = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34581
 *     _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter)
 *     def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return <uintptr_t><void*><cyruntime.cudaEglStreamConnection>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter)             # <<<<<<<<<<<<<<
 *     return 0
 * _add_native_handle_getters()
*/
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v__add_cuda_native_handle_getter);
  __pyx_t_4 = __pyx_v__add_cuda_native_handle_getter; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, ((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection), __pyx_v_cudaEglStreamConnection_getter};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cuda/bindings/runtime.pyx":34582
 *     def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return <uintptr_t><void*><cyruntime.cudaEglStreamConnection>(x._pvt_ptr[0])
 *     _add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter)
 *     return 0             # <<<<<<<<<<<<<<
 * _add_native_handle_getters()
 * 
*/
  __pyx_r = 0;
  goto __pyx_L0;

  /* "cuda/bindings/runtime.pyx":34528
 *     raise TypeError("Unknown type: " + str(objType))
 * 
 * cdef int _add_native_handle_getters() except?-1:             # <<<<<<<<<<<<<<
 *     from cuda.bindings.utils import _add_cuda_native_handle_getter
 *     def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return <uintptr_t><void*><cyruntime.cudaDevResourceDesc_t>(x._pvt_ptr[0])
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cuda.bindings.runtime._add_native_handle_getters", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v__add_cuda_native_handle_getter);
  __Pyx_XDECREF(__pyx_v_cudaDevResourceDesc_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaExecutionContext_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaArray_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaArray_const_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaMipmappedArray_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaMipmappedArray_const_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaStream_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaEvent_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaGraphicsResource_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaExternalMemory_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaExternalSemaphore_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaGraph_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaGraphNode_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaUserObject_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaFunction_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaKernel_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaLibrary_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaMemPool_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaGraphExec_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaGraphDeviceNode_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaAsyncCallbackHandle_t_getter);
  __Pyx_XDECREF(__pyx_v_cudaLogsCallbackHandle_getter);
  __Pyx_XDECREF(__pyx_v_EGLImageKHR_getter);
  __Pyx_XDECREF(__pyx_v_EGLStreamKHR_getter);
  __Pyx_XDECREF(__pyx_v_EGLSyncKHR_getter);
  __Pyx_XDECREF(__pyx_v_cudaEglStreamConnection_getter);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
/* #### Code section: module_exttypes ### */

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperKernelParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)o);
  p->_pybuffer.obj = NULL;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperKernelParams(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperKernelParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19_HelperKernelParams_ckernelParams(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_13ckernelParams_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperKernelParams[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_6__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperKernelParams_5__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperKernelParams_8__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperKernelParams_7__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperKernelParams[] = {
  {"ckernelParams", __pyx_getprop_4cuda_8bindings_7runtime_19_HelperKernelParams_ckernelParams, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperKernelParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperKernelParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperKernelParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperKernelParams},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperKernelParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperKernelParams_spec = {
  "cuda.bindings.runtime._HelperKernelParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime__HelperKernelParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperKernelParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperKernelParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperKernelParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperKernelParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperKernelParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperKernelParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperInputVoidPtr(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr *)o);
  p->_pybuffer.obj = NULL;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperInputVoidPtr(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperInputVoidPtr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperInputVoidPtr[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_4__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_6__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperInputVoidPtr[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperInputVoidPtr},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperInputVoidPtr},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperInputVoidPtr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperInputVoidPtr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr_spec = {
  "cuda.bindings.runtime._HelperInputVoidPtr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperInputVoidPtr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperInputVoidPtr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperInputVoidPtr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperInputVoidPtr, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperInputVoidPtr, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperInputVoidPtr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmemPool_attribute(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)o);
  p->_cuuint64_t_val = ((struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmemPool_attribute(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmemPool_attribute) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_cuuint64_t_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUmemPool_attribute(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_cuuint64_t_val) {
    e = (*v)(((PyObject *)p->_cuuint64_t_val), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUmemPool_attribute(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute *)o;
  tmp = ((PyObject*)p->_cuuint64_t_val);
  p->_cuuint64_t_val = ((struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCUmemPool_attribute[] = {
  {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_4pyObj},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCUmemPool_attribute[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmemPool_attribute},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUmemPool_attribute},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUmemPool_attribute},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCUmemPool_attribute},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCUmemPool_attribute},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmemPool_attribute},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute_spec = {
  "cuda.bindings.runtime._HelperCUmemPool_attribute",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCUmemPool_attribute", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemPool_attribute), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmem_range_attribute(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmem_range_attribute(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmem_range_attribute) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCUmem_range_attribute[] = {
  {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_4pyObj},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCUmem_range_attribute[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmem_range_attribute},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCUmem_range_attribute},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCUmem_range_attribute},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmem_range_attribute},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute_spec = {
  "cuda.bindings.runtime._HelperCUmem_range_attribute",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCUmem_range_attribute", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmem_range_attribute), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmem_range_attribute, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCUmem_range_attribute, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCUmem_range_attribute, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmem_range_attribute, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUpointer_attribute(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)o);
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *)Py_None); Py_INCREF(Py_None);
  p->_devptr = ((struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *)Py_None); Py_INCREF(Py_None);
  p->_token = ((struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS *)Py_None); Py_INCREF(Py_None);
  p->_mempool = ((struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUpointer_attribute(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUpointer_attribute) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_ctx);
  Py_CLEAR(p->_devptr);
  Py_CLEAR(p->_token);
  Py_CLEAR(p->_mempool);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUpointer_attribute(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_ctx) {
    e = (*v)(((PyObject *)p->_ctx), a); if (e) return e;
  }
  if (p->_devptr) {
    e = (*v)(((PyObject *)p->_devptr), a); if (e) return e;
  }
  if (p->_token) {
    e = (*v)(((PyObject *)p->_token), a); if (e) return e;
  }
  if (p->_mempool) {
    e = (*v)(((PyObject *)p->_mempool), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUpointer_attribute(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute *)o;
  tmp = ((PyObject*)p->_ctx);
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_6driver_CUcontext *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_devptr);
  p->_devptr = ((struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_token);
  p->_token = ((struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_mempool);
  p->_mempool = ((struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCUpointer_attribute[] = {
  {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_4pyObj},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCUpointer_attribute[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUpointer_attribute},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUpointer_attribute},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUpointer_attribute},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCUpointer_attribute},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCUpointer_attribute},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUpointer_attribute},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute_spec = {
  "cuda.bindings.runtime._HelperCUpointer_attribute",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCUpointer_attribute", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUpointer_attribute), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUpointer_attribute, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUpointer_attribute, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUpointer_attribute, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCUpointer_attribute, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCUpointer_attribute, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCUpointer_attribute, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)o);
  p->_cuuint64_t_val = ((struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_cuuint64_t_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_cuuint64_t_val) {
    e = (*v)(((PyObject *)p->_cuuint64_t_val), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute *)o;
  tmp = ((PyObject*)p->_cuuint64_t_val);
  p->_cuuint64_t_val = ((struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute[] = {
  {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_4pyObj},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute_spec = {
  "cuda.bindings.runtime._HelperCUgraphMem_attribute",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCUgraphMem_attribute", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUjit_option(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)o);
  __Pyx_default_placement_construct(&(p->_charstarstar));
  p->_voidstarstar = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUjit_option(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUjit_option) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_charstarstar);
  Py_CLEAR(p->_voidstarstar);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUjit_option(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_voidstarstar) {
    e = (*v)(((PyObject *)p->_voidstarstar), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUjit_option(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option *)o;
  tmp = ((PyObject*)p->_voidstarstar);
  p->_voidstarstar = ((struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19_HelperCUjit_option_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCUjit_option[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperCUjit_option_4__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19_HelperCUjit_option_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19_HelperCUjit_option_6__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCUjit_option[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_19_HelperCUjit_option_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUjit_option},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUjit_option},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUjit_option},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCUjit_option},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCUjit_option},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUjit_option},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option_spec = {
  "cuda.bindings.runtime._HelperCUjit_option",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCUjit_option", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUjit_option), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUjit_option, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUjit_option, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUjit_option, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCUjit_option, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCUjit_option, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCUjit_option, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCudaJitOption(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCudaJitOption(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCudaJitOption) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20_HelperCudaJitOption_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCudaJitOption[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20_HelperCudaJitOption_4__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20_HelperCudaJitOption_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20_HelperCudaJitOption_6__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCudaJitOption[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_20_HelperCudaJitOption_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCudaJitOption},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCudaJitOption},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCudaJitOption},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCudaJitOption},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption_spec = {
  "cuda.bindings.runtime._HelperCudaJitOption",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCudaJitOption", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaJitOption), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCudaJitOption, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCudaJitOption, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCudaJitOption, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCudaJitOption, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUlibraryOption(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUlibraryOption(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUlibraryOption) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCUlibraryOption[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_4__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_6__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCUlibraryOption[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUlibraryOption},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCUlibraryOption},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCUlibraryOption},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUlibraryOption},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption_spec = {
  "cuda.bindings.runtime._HelperCUlibraryOption",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCUlibraryOption", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUlibraryOption), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUlibraryOption, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCUlibraryOption, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCUlibraryOption, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCUlibraryOption, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCudaLibraryOption(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCudaLibraryOption(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCudaLibraryOption) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCudaLibraryOption[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_4__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_6__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCudaLibraryOption[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCudaLibraryOption},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCudaLibraryOption},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCudaLibraryOption},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCudaLibraryOption},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption_spec = {
  "cuda.bindings.runtime._HelperCudaLibraryOption",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCudaLibraryOption", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCudaLibraryOption), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCudaLibraryOption, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCudaLibraryOption, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCudaLibraryOption, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCudaLibraryOption, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)o);
  p->_mem_fabric_handle = ((struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_mem_fabric_handle);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_mem_fabric_handle) {
    e = (*v)(((PyObject *)p->_mem_fabric_handle), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *p = (struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType *)o;
  tmp = ((PyObject*)p->_mem_fabric_handle);
  p->_mem_fabric_handle = ((struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType[] = {
  {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_5pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_4pyObj},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_7__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_9__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType_spec = {
  "cuda.bindings.runtime._HelperCUmemAllocationHandleType",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCUmemAllocationHandleType", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_5__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_4__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_7__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_6__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper_spec = {
  "cuda.bindings.runtime._InputVoidPtrPtrHelper",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_InputVoidPtrPtrHelper", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUcoredumpSettings(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUcoredumpSettings(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUcoredumpSettings) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_cptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4cptr_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime__HelperCUcoredumpSettings[] = {
  {"size", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_5size, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_4size},
  {"pyObj", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_7pyObj, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_6pyObj},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_9__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_8__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_11__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_10__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime__HelperCUcoredumpSettings[] = {
  {"cptr", __pyx_getprop_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_cptr, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUcoredumpSettings},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime__HelperCUcoredumpSettings},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime__HelperCUcoredumpSettings},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime__HelperCUcoredumpSettings},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings_spec = {
  "cuda.bindings.runtime._HelperCUcoredumpSettings",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""_HelperCUcoredumpSettings", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime__HelperCUcoredumpSettings), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime__HelperCUcoredumpSettings, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime__HelperCUcoredumpSettings, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime__HelperCUcoredumpSettings, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime__HelperCUcoredumpSettings, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResourceDesc_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResourceDesc_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResourceDesc_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaDevResourceDesc_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaDevResourceDesc_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResourceDesc_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaDevResourceDesc_t(*args, **kwargs)\n\nAn opaque descriptor handle. The descriptor encapsulates multiple created and configured resources. Created via ::cudaDeviceResourceGenerateDesc\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaDevResourceDesc_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaDevResourceDesc_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResourceDesc_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t_spec = {
  "cuda.bindings.runtime.cudaDevResourceDesc_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaDevResourceDesc_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDevResourceDesc_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResourceDesc_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResourceDesc_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaDevResourceDesc_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaDevResourceDesc_t(*args, **kwargs)\n\nAn opaque descriptor handle. The descriptor encapsulates multiple created and configured resources. Created via ::cudaDeviceResourceGenerateDesc\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaDevResourceDesc_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaDevResourceDesc_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResourceDesc_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExecutionContext_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExecutionContext_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExecutionContext_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExecutionContext_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExecutionContext_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaExecutionContext_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaExecutionContext_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaExecutionContext_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExecutionContext_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExecutionContext_t(*args, **kwargs)\n\nAn opaque handle to a CUDA execution context. It represents an execution context created via CUDA Runtime APIs such as cudaGreenCtxCreate.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExecutionContext_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExecutionContext_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExecutionContext_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t_spec = {
  "cuda.bindings.runtime.cudaExecutionContext_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaExecutionContext_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExecutionContext_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExecutionContext_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaExecutionContext_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExecutionContext_t(*args, **kwargs)\n\nAn opaque handle to a CUDA execution context. It represents an execution context created via CUDA Runtime APIs such as cudaGreenCtxCreate.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExecutionContext_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExecutionContext_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_22cudaExecutionContext_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExecutionContext_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaArray_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArray_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArray_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaArray_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaArray_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11cudaArray_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11cudaArray_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11cudaArray_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaArray_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArray_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaArray_t(*args, **kwargs)\n\nCUDA array\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaArray_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaArray_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaArray_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaArray_t_spec = {
  "cuda.bindings.runtime.cudaArray_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaArray_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaArray_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaArray_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaArray_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArray_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaArray_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaArray_t(*args, **kwargs)\n\nCUDA array\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaArray_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaArray_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11cudaArray_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaArray_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaArray_const_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArray_const_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArray_const_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaArray_const_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaArray_const_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaArray_const_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaArray_const_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaArray_const_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArray_const_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaArray_const_t(*args, **kwargs)\n\nCUDA array (as source copy argument)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaArray_const_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaArray_const_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaArray_const_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t_spec = {
  "cuda.bindings.runtime.cudaArray_const_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaArray_const_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaArray_const_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_const_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArray_const_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaArray_const_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaArray_const_t(*args, **kwargs)\n\nCUDA array (as source copy argument)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaArray_const_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaArray_const_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_17cudaArray_const_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaArray_const_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMipmappedArray_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMipmappedArray_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMipmappedArray_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaMipmappedArray_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMipmappedArray_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMipmappedArray_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMipmappedArray_t(*args, **kwargs)\n\nCUDA mipmapped array\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaMipmappedArray_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMipmappedArray_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMipmappedArray_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t_spec = {
  "cuda.bindings.runtime.cudaMipmappedArray_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaMipmappedArray_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMipmappedArray_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMipmappedArray_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaMipmappedArray_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaMipmappedArray_t(*args, **kwargs)\n\nCUDA mipmapped array\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaMipmappedArray_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMipmappedArray_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMipmappedArray_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMipmappedArray_const_t(*args, **kwargs)\n\nCUDA mipmapped array (as source argument)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t_spec = {
  "cuda.bindings.runtime.cudaMipmappedArray_const_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaMipmappedArray_const_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMipmappedArray_const_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaMipmappedArray_const_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaMipmappedArray_const_t(*args, **kwargs)\n\nCUDA mipmapped array (as source argument)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphicsResource_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphicsResource_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphicsResource_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaGraphicsResource_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaGraphicsResource_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphicsResource_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaGraphicsResource_t(*args, **kwargs)\n\nCUDA graphics resource types\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaGraphicsResource_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaGraphicsResource_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphicsResource_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t_spec = {
  "cuda.bindings.runtime.cudaGraphicsResource_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaGraphicsResource_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphicsResource_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphicsResource_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphicsResource_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaGraphicsResource_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaGraphicsResource_t(*args, **kwargs)\n\nCUDA graphics resource types\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaGraphicsResource_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaGraphicsResource_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphicsResource_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemory_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemory_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemory_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExternalMemory_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemory_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaExternalMemory_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaExternalMemory_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaExternalMemory_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemory_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalMemory_t(*args, **kwargs)\n\nCUDA external memory\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExternalMemory_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemory_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemory_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t_spec = {
  "cuda.bindings.runtime.cudaExternalMemory_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaExternalMemory_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalMemory_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemory_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemory_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaExternalMemory_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExternalMemory_t(*args, **kwargs)\n\nCUDA external memory\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExternalMemory_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemory_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaExternalMemory_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemory_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphore_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphore_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphore_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExternalSemaphore_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphore_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphore_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphore_t(*args, **kwargs)\n\nCUDA external semaphore\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExternalSemaphore_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphore_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphore_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t_spec = {
  "cuda.bindings.runtime.cudaExternalSemaphore_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaExternalSemaphore_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalSemaphore_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphore_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaExternalSemaphore_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExternalSemaphore_t(*args, **kwargs)\n\nCUDA external semaphore\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernel_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernel_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernel_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaKernel_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaKernel_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaKernel_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaKernel_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaKernel_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaKernel_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernel_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaKernel_t(*args, **kwargs)\n\nCUDA kernel\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaKernel_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaKernel_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernel_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaKernel_t_spec = {
  "cuda.bindings.runtime.cudaKernel_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaKernel_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaKernel_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaKernel_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaKernel_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernel_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernel_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaKernel_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaKernel_t(*args, **kwargs)\n\nCUDA kernel\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaKernel_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaKernel_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12cudaKernel_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaKernel_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLibrary_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLibrary_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLibrary_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaLibrary_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaLibrary_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13cudaLibrary_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13cudaLibrary_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13cudaLibrary_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLibrary_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaLibrary_t(*args, **kwargs)\n\nCUDA library\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaLibrary_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaLibrary_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLibrary_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t_spec = {
  "cuda.bindings.runtime.cudaLibrary_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaLibrary_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLibrary_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLibrary_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLibrary_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaLibrary_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaLibrary_t(*args, **kwargs)\n\nCUDA library\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaLibrary_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaLibrary_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13cudaLibrary_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLibrary_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaGraphDeviceNode_t(*args, **kwargs)\n\nCUDA device node handle for device-side node update\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t_spec = {
  "cuda.bindings.runtime.cudaGraphDeviceNode_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaGraphDeviceNode_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphDeviceNode_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaGraphDeviceNode_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaGraphDeviceNode_t(*args, **kwargs)\n\nCUDA device node handle for device-side node update\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaAsyncCallbackHandle_t(*args, **kwargs)\n\nCUDA async callback handle\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t_spec = {
  "cuda.bindings.runtime.cudaAsyncCallbackHandle_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaAsyncCallbackHandle_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaAsyncCallbackHandle_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaAsyncCallbackHandle_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaAsyncCallbackHandle_t(*args, **kwargs)\n\nCUDA async callback handle\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogsCallbackHandle(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogsCallbackHandle(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogsCallbackHandle) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaLogsCallbackHandle(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaLogsCallbackHandle[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogsCallbackHandle},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaLogsCallbackHandle(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaLogsCallbackHandle},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaLogsCallbackHandle},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogsCallbackHandle},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle_spec = {
  "cuda.bindings.runtime.cudaLogsCallbackHandle",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaLogsCallbackHandle = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLogsCallbackHandle", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallbackHandle), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogsCallbackHandle, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaLogsCallbackHandle, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaLogsCallbackHandle(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_cudaLogsCallbackHandle, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaLogsCallbackHandle, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLogsCallbackHandle, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_EGLImageKHR(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLImageKHR(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLImageKHR) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLImageKHR(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_EGLImageKHR[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11EGLImageKHR_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11EGLImageKHR_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11EGLImageKHR_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_EGLImageKHR_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLImageKHR},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("EGLImageKHR(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLImageKHR},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_EGLImageKHR},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_EGLImageKHR},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_EGLImageKHR_spec = {
  "cuda.bindings.runtime.EGLImageKHR",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_EGLImageKHR_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_EGLImageKHR = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_EGLImageKHR = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""EGLImageKHR", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_EGLImageKHR), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLImageKHR, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_EGLImageKHR, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("EGLImageKHR(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLImageKHR, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_EGLImageKHR, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11EGLImageKHR_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_EGLImageKHR, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_EGLStreamKHR(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLStreamKHR(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLStreamKHR) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLStreamKHR(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_EGLStreamKHR[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12EGLStreamKHR_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12EGLStreamKHR_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12EGLStreamKHR_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLStreamKHR},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("EGLStreamKHR(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLStreamKHR},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_EGLStreamKHR},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_EGLStreamKHR},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR_spec = {
  "cuda.bindings.runtime.EGLStreamKHR",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_EGLStreamKHR = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""EGLStreamKHR", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_EGLStreamKHR), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLStreamKHR, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_EGLStreamKHR, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("EGLStreamKHR(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLStreamKHR, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_EGLStreamKHR, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12EGLStreamKHR_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_EGLStreamKHR, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_EGLSyncKHR(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLSyncKHR(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLSyncKHR) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLSyncKHR(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret);
        Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_EGLSyncKHR[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_15getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10EGLSyncKHR_14getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_17__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10EGLSyncKHR_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_19__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10EGLSyncKHR_18__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLSyncKHR},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_13__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_7__index__},
  {Py_tp_hash, (void *)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_11__hash__},
  {Py_tp_doc, (void *)PyDoc_STR("EGLSyncKHR(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_richcompare, (void *)__pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLSyncKHR},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_EGLSyncKHR},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_EGLSyncKHR},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR_spec = {
  "cuda.bindings.runtime.EGLSyncKHR",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_EGLSyncKHR = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_13__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""EGLSyncKHR", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_EGLSyncKHR), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLSyncKHR, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_EGLSyncKHR, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("EGLSyncKHR(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_4cuda_8bindings_7runtime_EGLSyncKHR, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_EGLSyncKHR, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_10EGLSyncKHR_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_EGLSyncKHR, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostFn_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostFn_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostFn_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaHostFn_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaHostFn_t_10getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaHostFn_t_12__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaHostFn_t_14__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostFn_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_9__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_7__index__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaHostFn_t(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaHostFn_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostFn_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t_spec = {
  "cuda.bindings.runtime.cudaHostFn_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaHostFn_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_9__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaHostFn_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostFn_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaHostFn_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaHostFn_t(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaHostFn_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12cudaHostFn_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaHostFn_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncCallback(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncCallback(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncCallback) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaAsyncCallback[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaAsyncCallback_10getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaAsyncCallback_12__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaAsyncCallback_14__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncCallback},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_9__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_7__index__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaAsyncCallback(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaAsyncCallback},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncCallback},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback_spec = {
  "cuda.bindings.runtime.cudaAsyncCallback",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaAsyncCallback = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_9__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaAsyncCallback", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncCallback), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncCallback, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaAsyncCallback, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaAsyncCallback(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaAsyncCallback, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_17cudaAsyncCallback_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncCallback, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaStreamCallback_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStreamCallback_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStreamCallback_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaStreamCallback_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaStreamCallback_t_10getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaStreamCallback_t_12__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaStreamCallback_t_14__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStreamCallback_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_9__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_7__index__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaStreamCallback_t(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaStreamCallback_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaStreamCallback_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t_spec = {
  "cuda.bindings.runtime.cudaStreamCallback_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaStreamCallback_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_9__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaStreamCallback_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamCallback_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStreamCallback_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaStreamCallback_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaStreamCallback_t(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaStreamCallback_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaStreamCallback_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaStreamCallback_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogsCallback_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogsCallback_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogsCallback_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaLogsCallback_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_11getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaLogsCallback_t_10getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_13__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaLogsCallback_t_12__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_15__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaLogsCallback_t_14__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogsCallback_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_9__int__},
  {Py_nb_index, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_7__index__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaLogsCallback_t(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaLogsCallback_t},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogsCallback_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t_spec = {
  "cuda.bindings.runtime.cudaLogsCallback_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaLogsCallback_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_9__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  __pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_7__index__, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLogsCallback_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogsCallback_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogsCallback_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaLogsCallback_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaLogsCallback_t(*args, **kwargs)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaLogsCallback_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_18cudaLogsCallback_t_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLogsCallback_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_dim3(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_4dim3_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_dim3(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_dim3) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_4dim3_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_4dim3_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_4dim3_1x_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_4dim3_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_4dim3_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_4dim3_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_4dim3_1y_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_4dim3_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_4dim3_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_4dim3_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_4dim3_1z_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_4dim3_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_4dim3_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_dim3[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_4dim3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_4dim3_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_4dim3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_4dim3_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_4dim3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_4dim3_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_dim3[] = {
  {"x", __pyx_getprop_4cuda_8bindings_7runtime_4dim3_x, __pyx_setprop_4cuda_8bindings_7runtime_4dim3_x, 0, 0},
  {"y", __pyx_getprop_4cuda_8bindings_7runtime_4dim3_y, __pyx_setprop_4cuda_8bindings_7runtime_4dim3_y, 0, 0},
  {"z", __pyx_getprop_4cuda_8bindings_7runtime_4dim3_z, __pyx_setprop_4cuda_8bindings_7runtime_4dim3_z, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_dim3_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_dim3},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_4dim3_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("dim3(void_ptr _ptr=0)\n\nAttributes\n----------\nx : unsigned int\n\ny : unsigned int\n\nz : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_dim3},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_dim3},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_4dim3_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_dim3},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_dim3_spec = {
  "cuda.bindings.runtime.dim3",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_dim3),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_dim3_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_dim3 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""dim3", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_dim3), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_dim3, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_4dim3_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("dim3(void_ptr _ptr=0)\n\nAttributes\n----------\nx : unsigned int\n\ny : unsigned int\n\nz : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_dim3, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_dim3, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_4dim3_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_dim3, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaChannelFormatDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaChannelFormatDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaChannelFormatDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_w(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_w(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1w_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_f(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_f(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_1f_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaChannelFormatDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaChannelFormatDesc[] = {
  {"x", __pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_x, __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_x, 0, 0},
  {"y", __pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_y, __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_y, 0, 0},
  {"z", __pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_z, __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_z, 0, 0},
  {"w", __pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_w, __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_w, 0, 0},
  {"f", __pyx_getprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_f, __pyx_setprop_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_f, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaChannelFormatDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaChannelFormatDesc(void_ptr _ptr=0)\n\nCUDA Channel format descriptor\n\nAttributes\n----------\nx : int\n    x\ny : int\n    y\nz : int\n    z\nw : int\n    w\nf : cudaChannelFormatKind\n    Channel format kind\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaChannelFormatDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaChannelFormatDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaChannelFormatDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc_spec = {
  "cuda.bindings.runtime.cudaChannelFormatDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaChannelFormatDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaChannelFormatDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaChannelFormatDesc(void_ptr _ptr=0)\n\nCUDA Channel format descriptor\n\nAttributes\n----------\nx : int\n    x\ny : int\n    y\nz : int\n    z\nw : int\n    w\nf : cudaChannelFormatKind\n    Channel format kind\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaChannelFormatDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaChannelFormatDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaChannelFormatDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct0(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct0(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct0) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct0_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5width_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct0_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5width_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct0_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_6height_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct0_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_6height_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct0_depth(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5depth_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct0_depth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_5depth_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct0[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct0_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct0_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct0_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct0[] = {
  {"width", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct0_width, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct0_width, 0, 0},
  {"height", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct0_height, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct0_height, 0, 0},
  {"depth", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct0_depth, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct0_depth, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct0_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct0},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct0(void_ptr _ptr)\n\nAttributes\n----------\nwidth : unsigned int\n\nheight : unsigned int\n\ndepth : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct0},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct0},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct0},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct0_spec = {
  "cuda.bindings.runtime.anon_struct0",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct0_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct0 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct0", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct0, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct0(void_ptr _ptr)\n\nAttributes\n----------\nwidth : unsigned int\n\nheight : unsigned int\n\ndepth : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct0, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct0_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct0, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaArraySparseProperties(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_tileExtent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArraySparseProperties(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArraySparseProperties) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_tileExtent);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaArraySparseProperties(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_tileExtent) {
    e = (*v)(((PyObject *)p->_tileExtent), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaArraySparseProperties(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties *)o;
  tmp = ((PyObject*)p->_tileExtent);
  p->_tileExtent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct0 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_tileExtent(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_tileExtent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10tileExtent_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_miptailFirstLevel(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_miptailFirstLevel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_17miptailFirstLevel_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_miptailSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_miptailSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11miptailSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaArraySparseProperties[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaArraySparseProperties_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaArraySparseProperties_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaArraySparseProperties_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaArraySparseProperties[] = {
  {"tileExtent", __pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_tileExtent, __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_tileExtent, 0, 0},
  {"miptailFirstLevel", __pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_miptailFirstLevel, __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_miptailFirstLevel, 0, 0},
  {"miptailSize", __pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_miptailSize, __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_miptailSize, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_flags, __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_flags, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_reserved, __pyx_setprop_4cuda_8bindings_7runtime_25cudaArraySparseProperties_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArraySparseProperties},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaArraySparseProperties(void_ptr _ptr=0)\n\nSparse CUDA array and CUDA mipmapped array properties\n\nAttributes\n----------\ntileExtent : anon_struct0\n\nmiptailFirstLevel : unsigned int\n    First mip level at which the mip tail begins\nmiptailSize : unsigned long long\n    Total size of the mip tail.\nflags : unsigned int\n    Flags will either be zero or cudaArraySparsePropertiesSingleMipTail\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaArraySparseProperties},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaArraySparseProperties},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaArraySparseProperties},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaArraySparseProperties},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaArraySparseProperties},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties_spec = {
  "cuda.bindings.runtime.cudaArraySparseProperties",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaArraySparseProperties", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArraySparseProperties), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArraySparseProperties, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaArraySparseProperties(void_ptr _ptr=0)\n\nSparse CUDA array and CUDA mipmapped array properties\n\nAttributes\n----------\ntileExtent : anon_struct0\n\nmiptailFirstLevel : unsigned int\n    First mip level at which the mip tail begins\nmiptailSize : unsigned long long\n    Total size of the mip tail.\nflags : unsigned int\n    Flags will either be zero or cudaArraySparsePropertiesSingleMipTail\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaArraySparseProperties, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaArraySparseProperties, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaArraySparseProperties, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaArraySparseProperties, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_25cudaArraySparseProperties_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaArraySparseProperties, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_size(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_4size_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_alignment(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_alignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9alignment_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements[] = {
  {"size", __pyx_getprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_size, __pyx_setprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_size, 0, 0},
  {"alignment", __pyx_getprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_alignment, __pyx_setprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_alignment, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_reserved, __pyx_setprop_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaArrayMemoryRequirements(void_ptr _ptr=0)\n\nCUDA array and CUDA mipmapped array memory requirements\n\nAttributes\n----------\nsize : size_t\n    Total size of the array.\nalignment : size_t\n    Alignment necessary for mapping the array.\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements_spec = {
  "cuda.bindings.runtime.cudaArrayMemoryRequirements",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaArrayMemoryRequirements", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaArrayMemoryRequirements(void_ptr _ptr=0)\n\nCUDA array and CUDA mipmapped array memory requirements\n\nAttributes\n----------\nsize : size_t\n    Total size of the array.\nalignment : size_t\n    Alignment necessary for mapping the array.\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaPitchedPtr(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPitchedPtr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPitchedPtr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_ptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_ptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3ptr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_pitch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_pitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5pitch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_xsize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_xsize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5xsize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_ysize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_ysize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_5ysize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaPitchedPtr[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaPitchedPtr_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaPitchedPtr_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaPitchedPtr_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaPitchedPtr[] = {
  {"ptr", __pyx_getprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_ptr, __pyx_setprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_ptr, 0, 0},
  {"pitch", __pyx_getprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_pitch, __pyx_setprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_pitch, 0, 0},
  {"xsize", __pyx_getprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_xsize, __pyx_setprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_xsize, 0, 0},
  {"ysize", __pyx_getprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_ysize, __pyx_setprop_4cuda_8bindings_7runtime_14cudaPitchedPtr_ysize, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPitchedPtr},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaPitchedPtr(void_ptr _ptr=0)\n\nCUDA Pitched memory pointer  ::make_cudaPitchedPtr\n\nAttributes\n----------\nptr : Any\n    Pointer to allocated memory\npitch : size_t\n    Pitch of allocated memory in bytes\nxsize : size_t\n    Logical width of allocation in elements\nysize : size_t\n    Logical height of allocation in elements\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaPitchedPtr},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaPitchedPtr},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaPitchedPtr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr_spec = {
  "cuda.bindings.runtime.cudaPitchedPtr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaPitchedPtr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPitchedPtr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaPitchedPtr(void_ptr _ptr=0)\n\nCUDA Pitched memory pointer  ::make_cudaPitchedPtr\n\nAttributes\n----------\nptr : Any\n    Pointer to allocated memory\npitch : size_t\n    Pitch of allocated memory in bytes\nxsize : size_t\n    Logical width of allocation in elements\nysize : size_t\n    Logical height of allocation in elements\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaPitchedPtr, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaPitchedPtr, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_14cudaPitchedPtr_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaPitchedPtr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExtent(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExtent(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExtent) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_10cudaExtent_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5width_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_10cudaExtent_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5width_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_10cudaExtent_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_6height_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_10cudaExtent_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_6height_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_10cudaExtent_depth(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5depth_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_10cudaExtent_depth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_5depth_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExtent[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10cudaExtent_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10cudaExtent_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_10cudaExtent_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExtent[] = {
  {"width", __pyx_getprop_4cuda_8bindings_7runtime_10cudaExtent_width, __pyx_setprop_4cuda_8bindings_7runtime_10cudaExtent_width, 0, 0},
  {"height", __pyx_getprop_4cuda_8bindings_7runtime_10cudaExtent_height, __pyx_setprop_4cuda_8bindings_7runtime_10cudaExtent_height, 0, 0},
  {"depth", __pyx_getprop_4cuda_8bindings_7runtime_10cudaExtent_depth, __pyx_setprop_4cuda_8bindings_7runtime_10cudaExtent_depth, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExtent_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExtent},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExtent(void_ptr _ptr=0)\n\nCUDA extent  ::make_cudaExtent\n\nAttributes\n----------\nwidth : size_t\n    Width in elements when referring to array memory, in bytes when\n    referring to linear memory\nheight : size_t\n    Height in elements\ndepth : size_t\n    Depth in elements\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExtent},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExtent},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExtent},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExtent_spec = {
  "cuda.bindings.runtime.cudaExtent",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExtent_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExtent = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExtent", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExtent, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExtent(void_ptr _ptr=0)\n\nCUDA extent  ::make_cudaExtent\n\nAttributes\n----------\nwidth : size_t\n    Width in elements when referring to array memory, in bytes when\n    referring to linear memory\nheight : size_t\n    Height in elements\ndepth : size_t\n    Depth in elements\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExtent, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExtent, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_10cudaExtent_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExtent, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaPos(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPos(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPos) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_7cudaPos_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1x_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_7cudaPos_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_7cudaPos_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1y_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_7cudaPos_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_7cudaPos_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1z_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_7cudaPos_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaPos[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_7cudaPos_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_7cudaPos_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_7cudaPos_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaPos[] = {
  {"x", __pyx_getprop_4cuda_8bindings_7runtime_7cudaPos_x, __pyx_setprop_4cuda_8bindings_7runtime_7cudaPos_x, 0, 0},
  {"y", __pyx_getprop_4cuda_8bindings_7runtime_7cudaPos_y, __pyx_setprop_4cuda_8bindings_7runtime_7cudaPos_y, 0, 0},
  {"z", __pyx_getprop_4cuda_8bindings_7runtime_7cudaPos_z, __pyx_setprop_4cuda_8bindings_7runtime_7cudaPos_z, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaPos_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPos},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaPos(void_ptr _ptr=0)\n\nCUDA 3D position  ::make_cudaPos\n\nAttributes\n----------\nx : size_t\n    x\ny : size_t\n    y\nz : size_t\n    z\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaPos},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaPos},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_7cudaPos_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaPos},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaPos_spec = {
  "cuda.bindings.runtime.cudaPos",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaPos_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaPos = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaPos", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPos, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaPos(void_ptr _ptr=0)\n\nCUDA 3D position  ::make_cudaPos\n\nAttributes\n----------\nx : size_t\n    x\ny : size_t\n    y\nz : size_t\n    z\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaPos, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaPos, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_7cudaPos_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaPos, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DParms(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_srcArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  p->_srcPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)Py_None); Py_INCREF(Py_None);
  p->_srcPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None);
  p->_dstArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  p->_dstPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)Py_None); Py_INCREF(Py_None);
  p->_dstPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None);
  p->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DParms(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DParms) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_srcArray);
  Py_CLEAR(p->_srcPos);
  Py_CLEAR(p->_srcPtr);
  Py_CLEAR(p->_dstArray);
  Py_CLEAR(p->_dstPos);
  Py_CLEAR(p->_dstPtr);
  Py_CLEAR(p->_extent);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DParms(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_srcArray) {
    e = (*v)(((PyObject *)p->_srcArray), a); if (e) return e;
  }
  if (p->_srcPos) {
    e = (*v)(((PyObject *)p->_srcPos), a); if (e) return e;
  }
  if (p->_srcPtr) {
    e = (*v)(((PyObject *)p->_srcPtr), a); if (e) return e;
  }
  if (p->_dstArray) {
    e = (*v)(((PyObject *)p->_dstArray), a); if (e) return e;
  }
  if (p->_dstPos) {
    e = (*v)(((PyObject *)p->_dstPos), a); if (e) return e;
  }
  if (p->_dstPtr) {
    e = (*v)(((PyObject *)p->_dstPtr), a); if (e) return e;
  }
  if (p->_extent) {
    e = (*v)(((PyObject *)p->_extent), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DParms(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)o;
  tmp = ((PyObject*)p->_srcArray);
  p->_srcArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_srcPos);
  p->_srcPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_srcPtr);
  p->_srcPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_dstArray);
  p->_dstArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_dstPos);
  p->_dstPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_dstPtr);
  p->_dstPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_extent);
  p->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8srcArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcPos(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcPos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPos_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcPtr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6srcPtr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_8dstArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstPos(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstPos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPos_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstPtr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6dstPtr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_extent(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_extent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6extent_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_kind(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_kind(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_4kind_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DParms[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DParms[] = {
  {"srcArray", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcArray, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcArray, 0, 0},
  {"srcPos", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcPos, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcPos, 0, 0},
  {"srcPtr", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcPtr, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_srcPtr, 0, 0},
  {"dstArray", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstArray, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstArray, 0, 0},
  {"dstPos", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstPos, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstPos, 0, 0},
  {"dstPtr", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstPtr, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_dstPtr, 0, 0},
  {"extent", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_extent, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_extent, 0, 0},
  {"kind", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_kind, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_kind, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DParms},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpy3DParms(void_ptr _ptr=0)\n\nCUDA 3D memory copying parameters\n\nAttributes\n----------\nsrcArray : cudaArray_t\n    Source memory address\nsrcPos : cudaPos\n    Source position offset\nsrcPtr : cudaPitchedPtr\n    Pitched source memory address\ndstArray : cudaArray_t\n    Destination memory address\ndstPos : cudaPos\n    Destination position offset\ndstPtr : cudaPitchedPtr\n    Pitched destination memory address\nextent : cudaExtent\n    Requested memory copy size\nkind : cudaMemcpyKind\n    Type of transfer\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DParms},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DParms},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DParms},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DParms},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DParms},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms_spec = {
  "cuda.bindings.runtime.cudaMemcpy3DParms",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemcpy3DParms", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DParms, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemcpy3DParms(void_ptr _ptr=0)\n\nCUDA 3D memory copying parameters\n\nAttributes\n----------\nsrcArray : cudaArray_t\n    Source memory address\nsrcPos : cudaPos\n    Source position offset\nsrcPtr : cudaPitchedPtr\n    Pitched source memory address\ndstArray : cudaArray_t\n    Destination memory address\ndstPos : cudaPos\n    Destination position offset\ndstPtr : cudaPitchedPtr\n    Pitched destination memory address\nextent : cudaExtent\n    Requested memory copy size\nkind : cudaMemcpyKind\n    Type of transfer\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DParms, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DParms, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DParms, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DParms, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DParms, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpyNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)Py_None); Py_INCREF(Py_None);
  p->_copyParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpyNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpyNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_ctx);
  Py_CLEAR(p->_copyParams);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpyNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_ctx) {
    e = (*v)(((PyObject *)p->_ctx), a); if (e) return e;
  }
  if (p->_copyParams) {
    e = (*v)(((PyObject *)p->_copyParams), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpyNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)o;
  tmp = ((PyObject*)p->_ctx);
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_copyParams);
  p->_copyParams = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DParms *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_ctx(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_ctx(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3ctx_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_copyParams(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_copyParams(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10copyParams_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpyNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpyNodeParams[] = {
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_flags, __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_flags, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_reserved, __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_reserved, 0, 0},
  {"ctx", __pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_ctx, __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_ctx, 0, 0},
  {"copyParams", __pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_copyParams, __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_copyParams, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpyNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpyNodeParams(void_ptr _ptr=0)\n\nMemcpy node parameters\n\nAttributes\n----------\nflags : int\n    Must be zero\nreserved : int\n    Must be zero\nctx : cudaExecutionContext_t\n    Context in which to run the memcpy. If NULL will try to use the\n    current context.\ncopyParams : cudaMemcpy3DParms\n    Parameters for the memory copy\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpyNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpyNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemcpyNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpyNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpyNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams_spec = {
  "cuda.bindings.runtime.cudaMemcpyNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemcpyNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemcpyNodeParams(void_ptr _ptr=0)\n\nMemcpy node parameters\n\nAttributes\n----------\nflags : int\n    Must be zero\nreserved : int\n    Must be zero\nctx : cudaExecutionContext_t\n    Context in which to run the memcpy. If NULL will try to use the\n    current context.\ncopyParams : cudaMemcpy3DParms\n    Parameters for the memory copy\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_srcArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  p->_srcPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)Py_None); Py_INCREF(Py_None);
  p->_srcPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None);
  p->_dstArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  p->_dstPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)Py_None); Py_INCREF(Py_None);
  p->_dstPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None);
  p->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_srcArray);
  Py_CLEAR(p->_srcPos);
  Py_CLEAR(p->_srcPtr);
  Py_CLEAR(p->_dstArray);
  Py_CLEAR(p->_dstPos);
  Py_CLEAR(p->_dstPtr);
  Py_CLEAR(p->_extent);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_srcArray) {
    e = (*v)(((PyObject *)p->_srcArray), a); if (e) return e;
  }
  if (p->_srcPos) {
    e = (*v)(((PyObject *)p->_srcPos), a); if (e) return e;
  }
  if (p->_srcPtr) {
    e = (*v)(((PyObject *)p->_srcPtr), a); if (e) return e;
  }
  if (p->_dstArray) {
    e = (*v)(((PyObject *)p->_dstArray), a); if (e) return e;
  }
  if (p->_dstPos) {
    e = (*v)(((PyObject *)p->_dstPos), a); if (e) return e;
  }
  if (p->_dstPtr) {
    e = (*v)(((PyObject *)p->_dstPtr), a); if (e) return e;
  }
  if (p->_extent) {
    e = (*v)(((PyObject *)p->_extent), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms *)o;
  tmp = ((PyObject*)p->_srcArray);
  p->_srcArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_srcPos);
  p->_srcPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_srcPtr);
  p->_srcPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_dstArray);
  p->_dstArray = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_dstPos);
  p->_dstPos = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPos *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_dstPtr);
  p->_dstPtr = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPitchedPtr *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_extent);
  p->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8srcArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcPos(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcPos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPos_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcPtr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6srcPtr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcDevice(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcDevice(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9srcDevice_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_8dstArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstPos(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstPos(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPos_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstPtr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6dstPtr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstDevice(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstDevice(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9dstDevice_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_extent(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_extent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6extent_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms[] = {
  {"srcArray", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcArray, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcArray, 0, 0},
  {"srcPos", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcPos, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcPos, 0, 0},
  {"srcPtr", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcPtr, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcPtr, 0, 0},
  {"srcDevice", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcDevice, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_srcDevice, 0, 0},
  {"dstArray", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstArray, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstArray, 0, 0},
  {"dstPos", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstPos, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstPos, 0, 0},
  {"dstPtr", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstPtr, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstPtr, 0, 0},
  {"dstDevice", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstDevice, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_dstDevice, 0, 0},
  {"extent", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_extent, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_extent, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpy3DPeerParms(void_ptr _ptr=0)\n\nCUDA 3D cross-device memory copying parameters\n\nAttributes\n----------\nsrcArray : cudaArray_t\n    Source memory address\nsrcPos : cudaPos\n    Source position offset\nsrcPtr : cudaPitchedPtr\n    Pitched source memory address\nsrcDevice : int\n    Source device\ndstArray : cudaArray_t\n    Destination memory address\ndstPos : cudaPos\n    Destination position offset\ndstPtr : cudaPitchedPtr\n    Pitched destination memory address\ndstDevice : int\n    Destination device\nextent : cudaExtent\n    Requested memory copy size\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms_spec = {
  "cuda.bindings.runtime.cudaMemcpy3DPeerParms",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemcpy3DPeerParms", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemcpy3DPeerParms(void_ptr _ptr=0)\n\nCUDA 3D cross-device memory copying parameters\n\nAttributes\n----------\nsrcArray : cudaArray_t\n    Source memory address\nsrcPos : cudaPos\n    Source position offset\nsrcPtr : cudaPitchedPtr\n    Pitched source memory address\nsrcDevice : int\n    Source device\ndstArray : cudaArray_t\n    Destination memory address\ndstPos : cudaPos\n    Destination position offset\ndstPtr : cudaPitchedPtr\n    Pitched destination memory address\ndstDevice : int\n    Destination device\nextent : cudaExtent\n    Requested memory copy size\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemsetParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemsetParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemsetParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_dst(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_dst(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3dst_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_pitch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_pitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5pitch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_elementSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_elementSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11elementSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_5width_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_6height_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemsetParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemsetParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemsetParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemsetParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemsetParams[] = {
  {"dst", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_dst, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_dst, 0, 0},
  {"pitch", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_pitch, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_pitch, 0, 0},
  {"value", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_value, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_value, 0, 0},
  {"elementSize", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_elementSize, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_elementSize, 0, 0},
  {"width", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_width, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_width, 0, 0},
  {"height", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemsetParams_height, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemsetParams_height, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemsetParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemsetParams(void_ptr _ptr=0)\n\nCUDA Memset node parameters\n\nAttributes\n----------\ndst : Any\n    Destination device pointer\npitch : size_t\n    Pitch of destination device pointer. Unused if height is 1\nvalue : unsigned int\n    Value to be set\nelementSize : unsigned int\n    Size of each element in bytes. Must be 1, 2, or 4.\nwidth : size_t\n    Width of the row in elements\nheight : size_t\n    Number of rows\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemsetParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemsetParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemsetParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams_spec = {
  "cuda.bindings.runtime.cudaMemsetParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemsetParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemsetParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaMemsetParams(void_ptr _ptr=0)\n\nCUDA Memset node parameters\n\nAttributes\n----------\ndst : Any\n    Destination device pointer\npitch : size_t\n    Pitch of destination device pointer. Unused if height is 1\nvalue : unsigned int\n    Value to be set\nelementSize : unsigned int\n    Size of each element in bytes. Must be 1, 2, or 4.\nwidth : size_t\n    Width of the row in elements\nheight : size_t\n    Number of rows\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemsetParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemsetParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_16cudaMemsetParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemsetParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemsetParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemsetParamsV2(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemsetParamsV2) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_ctx);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemsetParamsV2(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_ctx) {
    e = (*v)(((PyObject *)p->_ctx), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemsetParamsV2(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)o;
  tmp = ((PyObject*)p->_ctx);
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_dst(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_dst(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3dst_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_pitch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_pitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5pitch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_elementSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_elementSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11elementSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_5width_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6height_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_ctx(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_ctx(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3ctx_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemsetParamsV2[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemsetParamsV2[] = {
  {"dst", __pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_dst, __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_dst, 0, 0},
  {"pitch", __pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_pitch, __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_pitch, 0, 0},
  {"value", __pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_value, __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_value, 0, 0},
  {"elementSize", __pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_elementSize, __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_elementSize, 0, 0},
  {"width", __pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_width, __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_width, 0, 0},
  {"height", __pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_height, __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_height, 0, 0},
  {"ctx", __pyx_getprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_ctx, __pyx_setprop_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_ctx, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemsetParamsV2},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemsetParamsV2(void_ptr _ptr=0)\n\nCUDA Memset node parameters\n\nAttributes\n----------\ndst : Any\n    Destination device pointer\npitch : size_t\n    Pitch of destination device pointer. Unused if height is 1\nvalue : unsigned int\n    Value to be set\nelementSize : unsigned int\n    Size of each element in bytes. Must be 1, 2, or 4.\nwidth : size_t\n    Width of the row in elements\nheight : size_t\n    Number of rows\nctx : cudaExecutionContext_t\n    Context in which to run the memset. If NULL will try to use the\n    current context.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemsetParamsV2},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemsetParamsV2},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemsetParamsV2},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemsetParamsV2},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemsetParamsV2},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2_spec = {
  "cuda.bindings.runtime.cudaMemsetParamsV2",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemsetParamsV2", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemsetParamsV2, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemsetParamsV2(void_ptr _ptr=0)\n\nCUDA Memset node parameters\n\nAttributes\n----------\ndst : Any\n    Destination device pointer\npitch : size_t\n    Pitch of destination device pointer. Unused if height is 1\nvalue : unsigned int\n    Value to be set\nelementSize : unsigned int\n    Size of each element in bytes. Must be 1, 2, or 4.\nwidth : size_t\n    Width of the row in elements\nheight : size_t\n    Number of rows\nctx : cudaExecutionContext_t\n    Context in which to run the memset. If NULL will try to use the\n    current context.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemsetParamsV2, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemsetParamsV2, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemsetParamsV2, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemsetParamsV2, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemsetParamsV2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaAccessPolicyWindow(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAccessPolicyWindow(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAccessPolicyWindow) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_base_ptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_base_ptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8base_ptr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_num_bytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_num_bytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9num_bytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_hitRatio(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_hitRatio(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8hitRatio_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_hitProp(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_hitProp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7hitProp_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_missProp(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_missProp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_8missProp_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaAccessPolicyWindow[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaAccessPolicyWindow[] = {
  {"base_ptr", __pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_base_ptr, __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_base_ptr, 0, 0},
  {"num_bytes", __pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_num_bytes, __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_num_bytes, 0, 0},
  {"hitRatio", __pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_hitRatio, __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_hitRatio, 0, 0},
  {"hitProp", __pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_hitProp, __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_hitProp, 0, 0},
  {"missProp", __pyx_getprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_missProp, __pyx_setprop_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_missProp, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAccessPolicyWindow},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaAccessPolicyWindow(void_ptr _ptr=0)\n\nSpecifies an access policy for a window, a contiguous extent of\nmemory beginning at base_ptr and ending at base_ptr + num_bytes.\nPartition into many segments and assign segments such that. sum of\n\"hit segments\" / window == approx. ratio. sum of \"miss segments\" /\nwindow == approx 1-ratio. Segments and ratio specifications are\nfitted to the capabilities of the architecture. Accesses in a hit\nsegment apply the hitProp access policy. Accesses in a miss segment\napply the missProp access policy.\n\nAttributes\n----------\nbase_ptr : Any\n    Starting address of the access policy window. CUDA driver may align\n    it.\nnum_bytes : size_t\n    Size in bytes of the window policy. CUDA driver may restrict the\n    maximum size and alignment.\nhitRatio : float\n    hitRatio specifies percentage of lines assigned hitProp, rest are\n    assigned missProp.\nhitProp : cudaAccessProperty\n    ::CUaccessProperty set for hit.\nmissProp : cudaAccessProperty\n    ::CUaccessProperty set for miss. Must be either NORMAL or\n    STREAMING.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaAccessPolicyWindow},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaAccessPolicyWindow},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaAccessPolicyWindow},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow_spec = {
  "cuda.bindings.runtime.cudaAccessPolicyWindow",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaAccessPolicyWindow", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAccessPolicyWindow, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaAccessPolicyWindow(void_ptr _ptr=0)\n\nSpecifies an access policy for a window, a contiguous extent of\nmemory beginning at base_ptr and ending at base_ptr + num_bytes.\nPartition into many segments and assign segments such that. sum of\n\"hit segments\" / window == approx. ratio. sum of \"miss segments\" /\nwindow == approx 1-ratio. Segments and ratio specifications are\nfitted to the capabilities of the architecture. Accesses in a hit\nsegment apply the hitProp access policy. Accesses in a miss segment\napply the missProp access policy.\n\nAttributes\n----------\nbase_ptr : Any\n    Starting address of the access policy window. CUDA driver may align\n    it.\nnum_bytes : size_t\n    Size in bytes of the window policy. CUDA driver may restrict the\n    maximum size and alignment.\nhitRatio : float\n    hitRatio specifies percentage of lines assigned hitProp, rest are\n    assigned missProp.\nhitProp : cudaAccessProperty\n    ::CUaccessProperty set for hit.\nmissProp : cudaAccessProperty\n    ::CUaccessProperty set for miss. Must be either NORMAL or\n    STREAMING.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaAccessPolicyWindow, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaAccessPolicyWindow, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaAccessPolicyWindow, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_fn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_fn);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaHostNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_fn) {
    e = (*v)(((PyObject *)p->_fn), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaHostNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams *)o;
  tmp = ((PyObject*)p->_fn);
  p->_fn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaHostNodeParams_fn(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaHostNodeParams_fn(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_2fn_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaHostNodeParams_userData(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaHostNodeParams_userData(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_8userData_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaHostNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaHostNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaHostNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaHostNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaHostNodeParams[] = {
  {"fn", __pyx_getprop_4cuda_8bindings_7runtime_18cudaHostNodeParams_fn, __pyx_setprop_4cuda_8bindings_7runtime_18cudaHostNodeParams_fn, 0, 0},
  {"userData", __pyx_getprop_4cuda_8bindings_7runtime_18cudaHostNodeParams_userData, __pyx_setprop_4cuda_8bindings_7runtime_18cudaHostNodeParams_userData, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaHostNodeParams(void_ptr _ptr=0)\n\nCUDA host node parameters\n\nAttributes\n----------\nfn : cudaHostFn_t\n    The function to call when the node executes\nuserData : Any\n    Argument to pass to the function\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaHostNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaHostNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaHostNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaHostNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams_spec = {
  "cuda.bindings.runtime.cudaHostNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaHostNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaHostNodeParams(void_ptr _ptr=0)\n\nCUDA host node parameters\n\nAttributes\n----------\nfn : cudaHostFn_t\n    The function to call when the node executes\nuserData : Any\n    Argument to pass to the function\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaHostNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaHostNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaHostNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaHostNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_18cudaHostNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaHostNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_fn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostNodeParamsV2(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostNodeParamsV2) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_fn);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaHostNodeParamsV2(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_fn) {
    e = (*v)(((PyObject *)p->_fn), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaHostNodeParamsV2(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)o;
  tmp = ((PyObject*)p->_fn);
  p->_fn = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostFn_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_fn(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_fn(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_2fn_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_userData(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_userData(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_8userData_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaHostNodeParamsV2[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaHostNodeParamsV2[] = {
  {"fn", __pyx_getprop_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_fn, __pyx_setprop_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_fn, 0, 0},
  {"userData", __pyx_getprop_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_userData, __pyx_setprop_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_userData, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostNodeParamsV2},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaHostNodeParamsV2(void_ptr _ptr=0)\n\nCUDA host node parameters\n\nAttributes\n----------\nfn : cudaHostFn_t\n    The function to call when the node executes\nuserData : Any\n    Argument to pass to the function\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaHostNodeParamsV2},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaHostNodeParamsV2},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaHostNodeParamsV2},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaHostNodeParamsV2},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaHostNodeParamsV2},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2_spec = {
  "cuda.bindings.runtime.cudaHostNodeParamsV2",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaHostNodeParamsV2", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaHostNodeParamsV2(void_ptr _ptr=0)\n\nCUDA host node parameters\n\nAttributes\n----------\nfn : cudaHostFn_t\n    The function to call when the node executes\nuserData : Any\n    Argument to pass to the function\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct1(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)o);
  p->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct1(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct1) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_array);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_array) {
    e = (*v)(((PyObject *)p->_array), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)o;
  tmp = ((PyObject*)p->_array);
  p->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct1_array(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5array_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct1_array(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_5array_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct1[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct1_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct1_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct1_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct1[] = {
  {"array", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct1_array, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct1_array, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct1_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct1},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct1(void_ptr _ptr)\n\nAttributes\n----------\narray : cudaArray_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct1},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct1},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct1},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct1},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct1},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct1_spec = {
  "cuda.bindings.runtime.anon_struct1",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct1_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct1", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct1, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct1(void_ptr _ptr)\n\nAttributes\n----------\narray : cudaArray_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct1, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct1, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct1, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct1_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct2(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)o);
  p->_mipmap = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct2(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct2) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_mipmap);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct2(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_mipmap) {
    e = (*v)(((PyObject *)p->_mipmap), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct2(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)o;
  tmp = ((PyObject*)p->_mipmap);
  p->_mipmap = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMipmappedArray_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct2_mipmap(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct2_mipmap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_6mipmap_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct2[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct2_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct2_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct2_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct2[] = {
  {"mipmap", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct2_mipmap, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct2_mipmap, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct2_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct2},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct2(void_ptr _ptr)\n\nAttributes\n----------\nmipmap : cudaMipmappedArray_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct2},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct2},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct2},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct2},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct2},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct2_spec = {
  "cuda.bindings.runtime.anon_struct2",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct2_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct2", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct2, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct2(void_ptr _ptr)\n\nAttributes\n----------\nmipmap : cudaMipmappedArray_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct2, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct2, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct2, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct2, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct2_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct3(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)o);
  p->_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct3(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct3) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_desc);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct3(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_desc) {
    e = (*v)(((PyObject *)p->_desc), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct3(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)o;
  tmp = ((PyObject*)p->_desc);
  p->_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct3_devPtr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct3_devPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_6devPtr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct3_desc(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_4desc_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct3_desc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_4desc_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct3_sizeInBytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct3_sizeInBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11sizeInBytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct3[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct3_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct3_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct3_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct3[] = {
  {"devPtr", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct3_devPtr, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct3_devPtr, 0, 0},
  {"desc", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct3_desc, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct3_desc, 0, 0},
  {"sizeInBytes", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct3_sizeInBytes, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct3_sizeInBytes, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct3_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct3},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct3(void_ptr _ptr)\n\nAttributes\n----------\ndevPtr : Any\n\ndesc : cudaChannelFormatDesc\n\nsizeInBytes : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct3},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct3},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct3},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct3},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct3},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct3_spec = {
  "cuda.bindings.runtime.anon_struct3",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct3_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct3 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct3", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct3, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct3(void_ptr _ptr)\n\nAttributes\n----------\ndevPtr : Any\n\ndesc : cudaChannelFormatDesc\n\nsizeInBytes : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct3, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct3, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct3, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct3, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct3_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct3, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct4(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)o);
  p->_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct4(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct4) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_desc);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct4(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_desc) {
    e = (*v)(((PyObject *)p->_desc), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct4(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)o;
  tmp = ((PyObject*)p->_desc);
  p->_desc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_devPtr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_devPtr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6devPtr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_desc(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_4desc_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_desc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_4desc_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5width_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_5width_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6height_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_6height_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_pitchInBytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_pitchInBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_12pitchInBytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct4[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct4_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct4_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct4_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct4[] = {
  {"devPtr", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_devPtr, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_devPtr, 0, 0},
  {"desc", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_desc, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_desc, 0, 0},
  {"width", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_width, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_width, 0, 0},
  {"height", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_height, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_height, 0, 0},
  {"pitchInBytes", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct4_pitchInBytes, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct4_pitchInBytes, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct4_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct4},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct4(void_ptr _ptr)\n\nAttributes\n----------\ndevPtr : Any\n\ndesc : cudaChannelFormatDesc\n\nwidth : size_t\n\nheight : size_t\n\npitchInBytes : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct4},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct4},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct4},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct4},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct4},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct4_spec = {
  "cuda.bindings.runtime.anon_struct4",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct4_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct4 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct4", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct4, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct4(void_ptr _ptr)\n\nAttributes\n----------\ndevPtr : Any\n\ndesc : cudaChannelFormatDesc\n\nwidth : size_t\n\nheight : size_t\n\npitchInBytes : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct4, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct4, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct4, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct4, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct4_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct4, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct5(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct5(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct5) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct5_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct5_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct5[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct5_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct5_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct5_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct5[] = {
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct5_reserved, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct5_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct5_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct5},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct5(void_ptr _ptr)\n\nAttributes\n----------\nreserved : list[int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct5},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct5},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct5},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct5_spec = {
  "cuda.bindings.runtime.anon_struct5",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct5_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct5 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct5", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct5, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct5(void_ptr _ptr)\n\nAttributes\n----------\nreserved : list[int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct5, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct5, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct5_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct5, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union0(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)o);
  p->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)Py_None); Py_INCREF(Py_None);
  p->_mipmap = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)Py_None); Py_INCREF(Py_None);
  p->_linear = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)Py_None); Py_INCREF(Py_None);
  p->_pitch2D = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)Py_None); Py_INCREF(Py_None);
  p->_reserved = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union0(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union0) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_array);
  Py_CLEAR(p->_mipmap);
  Py_CLEAR(p->_linear);
  Py_CLEAR(p->_pitch2D);
  Py_CLEAR(p->_reserved);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union0(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_array) {
    e = (*v)(((PyObject *)p->_array), a); if (e) return e;
  }
  if (p->_mipmap) {
    e = (*v)(((PyObject *)p->_mipmap), a); if (e) return e;
  }
  if (p->_linear) {
    e = (*v)(((PyObject *)p->_linear), a); if (e) return e;
  }
  if (p->_pitch2D) {
    e = (*v)(((PyObject *)p->_pitch2D), a); if (e) return e;
  }
  if (p->_reserved) {
    e = (*v)(((PyObject *)p->_reserved), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union0(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)o;
  tmp = ((PyObject*)p->_array);
  p->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct1 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_mipmap);
  p->_mipmap = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct2 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_linear);
  p->_linear = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct3 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_pitch2D);
  p->_pitch2D = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct4 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_reserved);
  p->_reserved = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct5 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_array(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5array_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_array(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_5array_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_mipmap(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6mipmap_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_mipmap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6mipmap_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_linear(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6linear_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_linear(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_6linear_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_pitch2D(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_pitch2D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7pitch2D_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union0[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union0_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union0_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union0_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union0[] = {
  {"array", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_array, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_array, 0, 0},
  {"mipmap", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_mipmap, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_mipmap, 0, 0},
  {"linear", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_linear, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_linear, 0, 0},
  {"pitch2D", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_pitch2D, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_pitch2D, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union0_reserved, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union0_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union0_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union0},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union0(void_ptr _ptr)\n\nAttributes\n----------\narray : anon_struct1\n\nmipmap : anon_struct2\n\nlinear : anon_struct3\n\npitch2D : anon_struct4\n\nreserved : anon_struct5\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union0},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_union0},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union0},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union0},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union0_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union0},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union0_spec = {
  "cuda.bindings.runtime.anon_union0",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_union0_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union0 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union0", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union0, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_union0(void_ptr _ptr)\n\nAttributes\n----------\narray : anon_struct1\n\nmipmap : anon_struct2\n\nlinear : anon_struct3\n\npitch2D : anon_struct4\n\nreserved : anon_struct5\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union0, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union0, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union0_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union0, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaResourceDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)o);
  p->_res = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaResourceDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaResourceDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_res);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaResourceDesc(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_res) {
    e = (*v)(((PyObject *)p->_res), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaResourceDesc(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc *)o;
  tmp = ((PyObject*)p->_res);
  p->_res = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union0 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaResourceDesc_resType(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaResourceDesc_resType(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7resType_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaResourceDesc_res(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaResourceDesc_res(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3res_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaResourceDesc_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaResourceDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaResourceDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaResourceDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaResourceDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaResourceDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaResourceDesc[] = {
  {"resType", __pyx_getprop_4cuda_8bindings_7runtime_16cudaResourceDesc_resType, __pyx_setprop_4cuda_8bindings_7runtime_16cudaResourceDesc_resType, 0, 0},
  {"res", __pyx_getprop_4cuda_8bindings_7runtime_16cudaResourceDesc_res, __pyx_setprop_4cuda_8bindings_7runtime_16cudaResourceDesc_res, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_16cudaResourceDesc_flags, __pyx_setprop_4cuda_8bindings_7runtime_16cudaResourceDesc_flags, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaResourceDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaResourceDesc(void_ptr _ptr=0)\n\nCUDA resource descriptor\n\nAttributes\n----------\nresType : cudaResourceType\n    Resource type\nres : anon_union0\n\nflags : unsigned int\n    Flags (must be zero)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaResourceDesc},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaResourceDesc},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaResourceDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaResourceDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaResourceDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc_spec = {
  "cuda.bindings.runtime.cudaResourceDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaResourceDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaResourceDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaResourceDesc(void_ptr _ptr=0)\n\nCUDA resource descriptor\n\nAttributes\n----------\nresType : cudaResourceType\n    Resource type\nres : anon_union0\n\nflags : unsigned int\n    Flags (must be zero)\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaResourceDesc, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaResourceDesc, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaResourceDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaResourceDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_16cudaResourceDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaResourceDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaResourceViewDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaResourceViewDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaResourceViewDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_format(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_format(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6format_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5width_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6height_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_depth(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_depth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_5depth_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_firstMipmapLevel(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_firstMipmapLevel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_16firstMipmapLevel_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_lastMipmapLevel(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_lastMipmapLevel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_15lastMipmapLevel_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_firstLayer(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_firstLayer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10firstLayer_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_lastLayer(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_lastLayer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9lastLayer_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaResourceViewDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaResourceViewDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaResourceViewDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaResourceViewDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaResourceViewDesc[] = {
  {"format", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_format, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_format, 0, 0},
  {"width", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_width, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_width, 0, 0},
  {"height", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_height, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_height, 0, 0},
  {"depth", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_depth, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_depth, 0, 0},
  {"firstMipmapLevel", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_firstMipmapLevel, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_firstMipmapLevel, 0, 0},
  {"lastMipmapLevel", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_lastMipmapLevel, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_lastMipmapLevel, 0, 0},
  {"firstLayer", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_firstLayer, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_firstLayer, 0, 0},
  {"lastLayer", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_lastLayer, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_lastLayer, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_reserved, __pyx_setprop_4cuda_8bindings_7runtime_20cudaResourceViewDesc_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaResourceViewDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaResourceViewDesc(void_ptr _ptr=0)\n\nCUDA resource view descriptor\n\nAttributes\n----------\nformat : cudaResourceViewFormat\n    Resource view format\nwidth : size_t\n    Width of the resource view\nheight : size_t\n    Height of the resource view\ndepth : size_t\n    Depth of the resource view\nfirstMipmapLevel : unsigned int\n    First defined mipmap level\nlastMipmapLevel : unsigned int\n    Last defined mipmap level\nfirstLayer : unsigned int\n    First layer index\nlastLayer : unsigned int\n    Last layer index\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaResourceViewDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaResourceViewDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaResourceViewDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc_spec = {
  "cuda.bindings.runtime.cudaResourceViewDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaResourceViewDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaResourceViewDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaResourceViewDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaResourceViewDesc(void_ptr _ptr=0)\n\nCUDA resource view descriptor\n\nAttributes\n----------\nformat : cudaResourceViewFormat\n    Resource view format\nwidth : size_t\n    Width of the resource view\nheight : size_t\n    Height of the resource view\ndepth : size_t\n    Depth of the resource view\nfirstMipmapLevel : unsigned int\n    First defined mipmap level\nlastMipmapLevel : unsigned int\n    Last defined mipmap level\nfirstLayer : unsigned int\n    First layer index\nlastLayer : unsigned int\n    Last layer index\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaResourceViewDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaResourceViewDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaResourceViewDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaResourceViewDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaPointerAttributes(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPointerAttributes(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPointerAttributes) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_device(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_device(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_6device_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_devicePointer(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_devicePointer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13devicePointer_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_hostPointer(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_hostPointer(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11hostPointer_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaPointerAttributes[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaPointerAttributes_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaPointerAttributes_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaPointerAttributes_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaPointerAttributes[] = {
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_type, __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_type, 0, 0},
  {"device", __pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_device, __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_device, 0, 0},
  {"devicePointer", __pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_devicePointer, __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_devicePointer, 0, 0},
  {"hostPointer", __pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_hostPointer, __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_hostPointer, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_reserved, __pyx_setprop_4cuda_8bindings_7runtime_21cudaPointerAttributes_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPointerAttributes},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaPointerAttributes(void_ptr _ptr=0)\n\nCUDA pointer attributes\n\nAttributes\n----------\ntype : cudaMemoryType\n    The type of memory - cudaMemoryTypeUnregistered,\n    cudaMemoryTypeHost, cudaMemoryTypeDevice or cudaMemoryTypeManaged.\ndevice : int\n    The device against which the memory was allocated or registered. If\n    the memory type is cudaMemoryTypeDevice then this identifies the\n    device on which the memory referred physically resides. If the\n    memory type is cudaMemoryTypeHost or::cudaMemoryTypeManaged then\n    this identifies the device which was current when the memory was\n    allocated or registered (and if that device is deinitialized then\n    this allocation will vanish with that device's state).\ndevicePointer : Any\n    The address which may be dereferenced on the current device to\n    access the memory or NULL if no such address exists.\nhostPointer : Any\n    The address which may be dereferenced on the host to access the\n    memory or NULL if no such address exists.  CUDA doesn't check if\n    unregistered memory is allocated so this field may contain invalid\n    pointer if an invalid pointer has been passed to CUDA.\nreserved : list[long]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaPointerAttributes},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaPointerAttributes},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaPointerAttributes},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes_spec = {
  "cuda.bindings.runtime.cudaPointerAttributes",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaPointerAttributes", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaPointerAttributes), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaPointerAttributes, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaPointerAttributes(void_ptr _ptr=0)\n\nCUDA pointer attributes\n\nAttributes\n----------\ntype : cudaMemoryType\n    The type of memory - cudaMemoryTypeUnregistered,\n    cudaMemoryTypeHost, cudaMemoryTypeDevice or cudaMemoryTypeManaged.\ndevice : int\n    The device against which the memory was allocated or registered. If\n    the memory type is cudaMemoryTypeDevice then this identifies the\n    device on which the memory referred physically resides. If the\n    memory type is cudaMemoryTypeHost or::cudaMemoryTypeManaged then\n    this identifies the device which was current when the memory was\n    allocated or registered (and if that device is deinitialized then\n    this allocation will vanish with that device's state).\ndevicePointer : Any\n    The address which may be dereferenced on the current device to\n    access the memory or NULL if no such address exists.\nhostPointer : Any\n    The address which may be dereferenced on the host to access the\n    memory or NULL if no such address exists.  CUDA doesn't check if\n    unregistered memory is allocated so this field may contain invalid\n    pointer if an invalid pointer has been passed to CUDA.\nreserved : list[long]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaPointerAttributes, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaPointerAttributes, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_21cudaPointerAttributes_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaPointerAttributes, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaFuncAttributes(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFuncAttributes(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFuncAttributes) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_sharedSizeBytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_sharedSizeBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_15sharedSizeBytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_constSizeBytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_constSizeBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14constSizeBytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_localSizeBytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_localSizeBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_14localSizeBytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_maxThreadsPerBlock(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_maxThreadsPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_18maxThreadsPerBlock_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_numRegs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_numRegs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7numRegs_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_ptxVersion(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_ptxVersion(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_10ptxVersion_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_binaryVersion(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_binaryVersion(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13binaryVersion_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_cacheModeCA(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_cacheModeCA(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11cacheModeCA_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_maxDynamicSharedSizeBytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_maxDynamicSharedSizeBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_25maxDynamicSharedSizeBytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_preferredShmemCarveout(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_preferredShmemCarveout(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_22preferredShmemCarveout_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_clusterDimMustBeSet(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_clusterDimMustBeSet(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_19clusterDimMustBeSet_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterWidth(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterWidth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterWidth_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterHeight(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterHeight(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_21requiredClusterHeight_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterDepth(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterDepth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_20requiredClusterDepth_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_clusterSchedulingPolicyPreference(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_clusterSchedulingPolicyPreference(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_33clusterSchedulingPolicyPreference_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_nonPortableClusterSizeAllowed(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_nonPortableClusterSizeAllowed(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_29nonPortableClusterSizeAllowed_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaFuncAttributes[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaFuncAttributes_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaFuncAttributes_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaFuncAttributes_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaFuncAttributes[] = {
  {"sharedSizeBytes", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_sharedSizeBytes, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_sharedSizeBytes, 0, 0},
  {"constSizeBytes", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_constSizeBytes, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_constSizeBytes, 0, 0},
  {"localSizeBytes", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_localSizeBytes, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_localSizeBytes, 0, 0},
  {"maxThreadsPerBlock", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_maxThreadsPerBlock, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_maxThreadsPerBlock, 0, 0},
  {"numRegs", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_numRegs, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_numRegs, 0, 0},
  {"ptxVersion", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_ptxVersion, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_ptxVersion, 0, 0},
  {"binaryVersion", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_binaryVersion, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_binaryVersion, 0, 0},
  {"cacheModeCA", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_cacheModeCA, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_cacheModeCA, 0, 0},
  {"maxDynamicSharedSizeBytes", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_maxDynamicSharedSizeBytes, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_maxDynamicSharedSizeBytes, 0, 0},
  {"preferredShmemCarveout", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_preferredShmemCarveout, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_preferredShmemCarveout, 0, 0},
  {"clusterDimMustBeSet", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_clusterDimMustBeSet, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_clusterDimMustBeSet, 0, 0},
  {"requiredClusterWidth", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterWidth, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterWidth, 0, 0},
  {"requiredClusterHeight", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterHeight, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterHeight, 0, 0},
  {"requiredClusterDepth", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterDepth, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_requiredClusterDepth, 0, 0},
  {"clusterSchedulingPolicyPreference", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_clusterSchedulingPolicyPreference, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_clusterSchedulingPolicyPreference, 0, 0},
  {"nonPortableClusterSizeAllowed", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_nonPortableClusterSizeAllowed, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_nonPortableClusterSizeAllowed, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_reserved, __pyx_setprop_4cuda_8bindings_7runtime_18cudaFuncAttributes_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFuncAttributes},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaFuncAttributes(void_ptr _ptr=0)\n\nCUDA function attributes\n\nAttributes\n----------\nsharedSizeBytes : size_t\n    The size in bytes of statically-allocated shared memory per block\n    required by this function. This does not include dynamically-\n    allocated shared memory requested by the user at runtime.\nconstSizeBytes : size_t\n    The size in bytes of user-allocated constant memory required by\n    this function.\nlocalSizeBytes : size_t\n    The size in bytes of local memory used by each thread of this\n    function.\nmaxThreadsPerBlock : int\n    The maximum number of threads per block, beyond which a launch of\n    the function would fail. This number depends on both the function\n    and the device on which the function is currently loaded.\nnumRegs : int\n    The number of registers used by each thread of this function.\nptxVersion : int\n    The PTX virtual architecture version for which the function was\n    compiled. This value is the major PTX version * 10 + the minor PTX\n    version, so a PTX version 1.3 function would return the value 13.\nbinaryVersion : int\n    The binary architecture version for which the function was\n    compiled. This value is the major binary version * 10 + the minor\n    binary version, so a binary version 1.3 function would return the\n    value 13.\ncacheModeCA : int\n    The attribute to indicate whether the function has been compiled\n    with user specified option \"-Xptxas --dlcm=ca\" set.\nmaxDynamicSharedSizeBytes : int\n    The maximum size in bytes of dynamic shared memory per block for\n    this function. Any launch must have a dynamic shared memory size\n    smaller than this value.\npreferredShmemCarveout : int\n    On devices where the L1 cache and shared memory use the same\n    hardware resources, this sets the shared memory carveout\n    preference, in percent of the maximum shared memory. Refer to\n    cudaDevAttrMaxSharedMemoryPerMultiprocessor. This is only a hint,\n    and the driver can choose"" a different ratio if required to execute\n    the function. See cudaFuncSetAttribute\nclusterDimMustBeSet : int\n    If this attribute is set, the kernel must launch with a valid\n    cluster dimension specified.\nrequiredClusterWidth : int\n    The required cluster width/height/depth in blocks. The values must\n    either all be 0 or all be positive. The validity of the cluster\n    dimensions is otherwise checked at launch time.  If the value is\n    set during compile time, it cannot be set at runtime. Setting it at\n    runtime should return cudaErrorNotPermitted. See\n    cudaFuncSetAttribute\nrequiredClusterHeight : int\n\nrequiredClusterDepth : int\n\nclusterSchedulingPolicyPreference : int\n    The block scheduling policy of a function. See cudaFuncSetAttribute\nnonPortableClusterSizeAllowed : int\n    Whether the function can be launched with non-portable cluster\n    size. 1 is allowed, 0 is disallowed. A non-portable cluster size\n    may only function on the specific SKUs the program is tested on.\n    The launch might fail if the program is run on a different hardware\n    platform.  CUDA API provides cudaOccupancyMaxActiveClusters to\n    assist with checking whether the desired size can be launched on\n    the current device.  Portable Cluster Size  A portable cluster size\n    is guaranteed to be functional on all compute capabilities higher\n    than the target compute capability. The portable cluster size for\n    sm_90 is 8 blocks per cluster. This value may increase for future\n    compute capabilities.  The specific hardware unit may support\n    higher cluster sizes that\342\200\231s not guaranteed to be portable. See\n    cudaFuncSetAttribute\nreserved : list[int]\n    Reserved for future use.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaFuncAttributes},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaFuncAttributes},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaFuncAttributes},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes_spec = {
  "cuda.bindings.runtime.cudaFuncAttributes",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaFuncAttributes", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFuncAttributes), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFuncAttributes, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaFuncAttributes(void_ptr _ptr=0)\n\nCUDA function attributes\n\nAttributes\n----------\nsharedSizeBytes : size_t\n    The size in bytes of statically-allocated shared memory per block\n    required by this function. This does not include dynamically-\n    allocated shared memory requested by the user at runtime.\nconstSizeBytes : size_t\n    The size in bytes of user-allocated constant memory required by\n    this function.\nlocalSizeBytes : size_t\n    The size in bytes of local memory used by each thread of this\n    function.\nmaxThreadsPerBlock : int\n    The maximum number of threads per block, beyond which a launch of\n    the function would fail. This number depends on both the function\n    and the device on which the function is currently loaded.\nnumRegs : int\n    The number of registers used by each thread of this function.\nptxVersion : int\n    The PTX virtual architecture version for which the function was\n    compiled. This value is the major PTX version * 10 + the minor PTX\n    version, so a PTX version 1.3 function would return the value 13.\nbinaryVersion : int\n    The binary architecture version for which the function was\n    compiled. This value is the major binary version * 10 + the minor\n    binary version, so a binary version 1.3 function would return the\n    value 13.\ncacheModeCA : int\n    The attribute to indicate whether the function has been compiled\n    with user specified option \"-Xptxas --dlcm=ca\" set.\nmaxDynamicSharedSizeBytes : int\n    The maximum size in bytes of dynamic shared memory per block for\n    this function. Any launch must have a dynamic shared memory size\n    smaller than this value.\npreferredShmemCarveout : int\n    On devices where the L1 cache and shared memory use the same\n    hardware resources, this sets the shared memory carveout\n    preference, in percent of the maximum shared memory. Refer to\n    cudaDevAttrMaxSharedMemoryPerMultiprocessor. This is only a hint,\n    and the driver can choose"" a different ratio if required to execute\n    the function. See cudaFuncSetAttribute\nclusterDimMustBeSet : int\n    If this attribute is set, the kernel must launch with a valid\n    cluster dimension specified.\nrequiredClusterWidth : int\n    The required cluster width/height/depth in blocks. The values must\n    either all be 0 or all be positive. The validity of the cluster\n    dimensions is otherwise checked at launch time.  If the value is\n    set during compile time, it cannot be set at runtime. Setting it at\n    runtime should return cudaErrorNotPermitted. See\n    cudaFuncSetAttribute\nrequiredClusterHeight : int\n\nrequiredClusterDepth : int\n\nclusterSchedulingPolicyPreference : int\n    The block scheduling policy of a function. See cudaFuncSetAttribute\nnonPortableClusterSizeAllowed : int\n    Whether the function can be launched with non-portable cluster\n    size. 1 is allowed, 0 is disallowed. A non-portable cluster size\n    may only function on the specific SKUs the program is tested on.\n    The launch might fail if the program is run on a different hardware\n    platform.  CUDA API provides cudaOccupancyMaxActiveClusters to\n    assist with checking whether the desired size can be launched on\n    the current device.  Portable Cluster Size  A portable cluster size\n    is guaranteed to be functional on all compute capabilities higher\n    than the target compute capability. The portable cluster size for\n    sm_90 is 8 blocks per cluster. This value may increase for future\n    compute capabilities.  The specific hardware unit may support\n    higher cluster sizes that\342\200\231s not guaranteed to be portable. See\n    cudaFuncSetAttribute\nreserved : list[int]\n    Reserved for future use.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaFuncAttributes, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaFuncAttributes, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_18cudaFuncAttributes_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaFuncAttributes, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemLocation(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemLocation(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemLocation) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaMemLocation_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaMemLocation_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaMemLocation_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_2id_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaMemLocation_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_2id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemLocation[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaMemLocation_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaMemLocation_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaMemLocation_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemLocation[] = {
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_15cudaMemLocation_type, __pyx_setprop_4cuda_8bindings_7runtime_15cudaMemLocation_type, 0, 0},
  {"id", __pyx_getprop_4cuda_8bindings_7runtime_15cudaMemLocation_id, __pyx_setprop_4cuda_8bindings_7runtime_15cudaMemLocation_id, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemLocation_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemLocation},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemLocation(void_ptr _ptr=0)\n\nSpecifies a memory location.  To specify a gpu, set type =\ncudaMemLocationTypeDevice and set id = the gpu's device ordinal. To\nspecify a cpu NUMA node, set type = cudaMemLocationTypeHostNuma and\nset id = host NUMA node id.\n\nAttributes\n----------\ntype : cudaMemLocationType\n    Specifies the location type, which modifies the meaning of id.\nid : int\n    identifier for a given this location's ::CUmemLocationType.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemLocation},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemLocation},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemLocation},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemLocation_spec = {
  "cuda.bindings.runtime.cudaMemLocation",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemLocation_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemLocation = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemLocation", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemLocation, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaMemLocation(void_ptr _ptr=0)\n\nSpecifies a memory location.  To specify a gpu, set type =\ncudaMemLocationTypeDevice and set id = the gpu's device ordinal. To\nspecify a cpu NUMA node, set type = cudaMemLocationTypeHostNuma and\nset id = host NUMA node id.\n\nAttributes\n----------\ntype : cudaMemLocationType\n    Specifies the location type, which modifies the meaning of id.\nid : int\n    identifier for a given this location's ::CUmemLocationType.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemLocation, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemLocation, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_15cudaMemLocation_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemLocation, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAccessDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAccessDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAccessDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_location);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAccessDesc(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_location) {
    e = (*v)(((PyObject *)p->_location), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAccessDesc(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc *)o;
  tmp = ((PyObject*)p->_location);
  p->_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemAccessDesc_location(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemAccessDesc_location(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_8location_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaMemAccessDesc_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemAccessDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemAccessDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemAccessDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemAccessDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaMemAccessDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemAccessDesc[] = {
  {"location", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemAccessDesc_location, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemAccessDesc_location, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_17cudaMemAccessDesc_flags, __pyx_setprop_4cuda_8bindings_7runtime_17cudaMemAccessDesc_flags, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAccessDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemAccessDesc(void_ptr _ptr=0)\n\nMemory access descriptor\n\nAttributes\n----------\nlocation : cudaMemLocation\n    Location on which the request is to change it's accessibility\nflags : cudaMemAccessFlags\n    ::CUmemProt accessibility flags to set on the request\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAccessDesc},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAccessDesc},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemAccessDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemAccessDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAccessDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc_spec = {
  "cuda.bindings.runtime.cudaMemAccessDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemAccessDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAccessDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAccessDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemAccessDesc(void_ptr _ptr=0)\n\nMemory access descriptor\n\nAttributes\n----------\nlocation : cudaMemLocation\n    Location on which the request is to change it's accessibility\nflags : cudaMemAccessFlags\n    ::CUmemProt accessibility flags to set on the request\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAccessDesc, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAccessDesc, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemAccessDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemAccessDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_17cudaMemAccessDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAccessDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPoolProps(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPoolProps(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPoolProps) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_location);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemPoolProps(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_location) {
    e = (*v)(((PyObject *)p->_location), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemPoolProps(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)o;
  tmp = ((PyObject*)p->_location);
  p->_location = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_allocType(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_allocType(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9allocType_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_handleTypes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_handleTypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11handleTypes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_location(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_location(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8location_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_win32SecurityAttributes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_win32SecurityAttributes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_23win32SecurityAttributes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_maxSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_maxSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7maxSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_usage(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_usage(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_5usage_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemPoolProps[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemPoolProps_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemPoolProps_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16cudaMemPoolProps_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemPoolProps[] = {
  {"allocType", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_allocType, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_allocType, 0, 0},
  {"handleTypes", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_handleTypes, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_handleTypes, 0, 0},
  {"location", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_location, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_location, 0, 0},
  {"win32SecurityAttributes", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_win32SecurityAttributes, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_win32SecurityAttributes, 0, 0},
  {"maxSize", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_maxSize, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_maxSize, 0, 0},
  {"usage", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_usage, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_usage, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_reserved, __pyx_setprop_4cuda_8bindings_7runtime_16cudaMemPoolProps_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPoolProps},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemPoolProps(void_ptr _ptr=0)\n\nSpecifies the properties of allocations made from the pool.\n\nAttributes\n----------\nallocType : cudaMemAllocationType\n    Allocation type. Currently must be specified as\n    cudaMemAllocationTypePinned\nhandleTypes : cudaMemAllocationHandleType\n    Handle types that will be supported by allocations from the pool.\nlocation : cudaMemLocation\n    Location allocations should reside.\nwin32SecurityAttributes : Any\n    Windows-specific LPSECURITYATTRIBUTES required when\n    cudaMemHandleTypeWin32 is specified. This security attribute\n    defines the scope of which exported allocations may be tranferred\n    to other processes. In all other cases, this field is required to\n    be zero.\nmaxSize : size_t\n    Maximum pool size. When set to 0, defaults to a system dependent\n    value.\nusage : unsigned short\n    Bitmask indicating intended usage for the pool.\nreserved : bytes\n    reserved for future use, must be 0\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemPoolProps},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemPoolProps},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemPoolProps},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemPoolProps},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPoolProps},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps_spec = {
  "cuda.bindings.runtime.cudaMemPoolProps",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemPoolProps", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPoolProps, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemPoolProps(void_ptr _ptr=0)\n\nSpecifies the properties of allocations made from the pool.\n\nAttributes\n----------\nallocType : cudaMemAllocationType\n    Allocation type. Currently must be specified as\n    cudaMemAllocationTypePinned\nhandleTypes : cudaMemAllocationHandleType\n    Handle types that will be supported by allocations from the pool.\nlocation : cudaMemLocation\n    Location allocations should reside.\nwin32SecurityAttributes : Any\n    Windows-specific LPSECURITYATTRIBUTES required when\n    cudaMemHandleTypeWin32 is specified. This security attribute\n    defines the scope of which exported allocations may be tranferred\n    to other processes. In all other cases, this field is required to\n    be zero.\nmaxSize : size_t\n    Maximum pool size. When set to 0, defaults to a system dependent\n    value.\nusage : unsigned short\n    Bitmask indicating intended usage for the pool.\nreserved : bytes\n    reserved for future use, must be 0\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemPoolProps, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemPoolProps, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemPoolProps, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemPoolProps, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_16cudaMemPoolProps_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPoolProps, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData[] = {
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_reserved, __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemPoolPtrExportData(void_ptr _ptr=0)\n\nOpaque data for exporting a pool allocation\n\nAttributes\n----------\nreserved : bytes\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData_spec = {
  "cuda.bindings.runtime.cudaMemPoolPtrExportData",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemPoolPtrExportData", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaMemPoolPtrExportData(void_ptr _ptr=0)\n\nOpaque data for exporting a pool allocation\n\nAttributes\n----------\nreserved : bytes\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAllocNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_poolProps = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAllocNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAllocNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_poolProps);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAllocNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_poolProps) {
    e = (*v)(((PyObject *)p->_poolProps), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAllocNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams *)o;
  tmp = ((PyObject*)p->_poolProps);
  p->_poolProps = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_poolProps(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_poolProps(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9poolProps_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_accessDescs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_accessDescs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11accessDescs_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_accessDescCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_accessDescCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_15accessDescCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_bytesize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_bytesize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_8bytesize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_dptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_dptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_4dptr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemAllocNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemAllocNodeParams[] = {
  {"poolProps", __pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_poolProps, __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_poolProps, 0, 0},
  {"accessDescs", __pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_accessDescs, __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_accessDescs, 0, 0},
  {"accessDescCount", __pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_accessDescCount, __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_accessDescCount, 0, 0},
  {"bytesize", __pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_bytesize, __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_bytesize, 0, 0},
  {"dptr", __pyx_getprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_dptr, __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_dptr, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAllocNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemAllocNodeParams(void_ptr _ptr=0)\n\nMemory allocation node parameters\n\nAttributes\n----------\npoolProps : cudaMemPoolProps\n    in: location where the allocation should reside (specified in\n    ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is\n    not supported. in: array of memory access descriptors. Used to\n    describe peer GPU access\naccessDescs : cudaMemAccessDesc\n    in: number of memory access descriptors. Must not exceed the number\n    of GPUs.\naccessDescCount : size_t\n    in: Number of `accessDescs`s\nbytesize : size_t\n    in: size in bytes of the requested allocation\ndptr : Any\n    out: address of the allocation returned by CUDA\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAllocNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAllocNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemAllocNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemAllocNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAllocNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams_spec = {
  "cuda.bindings.runtime.cudaMemAllocNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemAllocNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemAllocNodeParams(void_ptr _ptr=0)\n\nMemory allocation node parameters\n\nAttributes\n----------\npoolProps : cudaMemPoolProps\n    in: location where the allocation should reside (specified in\n    ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is\n    not supported. in: array of memory access descriptors. Used to\n    describe peer GPU access\naccessDescs : cudaMemAccessDesc\n    in: number of memory access descriptors. Must not exceed the number\n    of GPUs.\naccessDescCount : size_t\n    in: Number of `accessDescs`s\nbytesize : size_t\n    in: size in bytes of the requested allocation\ndptr : Any\n    out: address of the allocation returned by CUDA\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_poolProps = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_poolProps);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_poolProps) {
    e = (*v)(((PyObject *)p->_poolProps), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)o;
  tmp = ((PyObject*)p->_poolProps);
  p->_poolProps = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPoolProps *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_poolProps(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_poolProps(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9poolProps_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_accessDescs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_accessDescs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11accessDescs_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_accessDescCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_accessDescCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_15accessDescCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_bytesize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_bytesize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_8bytesize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_dptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_dptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_4dptr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2[] = {
  {"poolProps", __pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_poolProps, __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_poolProps, 0, 0},
  {"accessDescs", __pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_accessDescs, __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_accessDescs, 0, 0},
  {"accessDescCount", __pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_accessDescCount, __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_accessDescCount, 0, 0},
  {"bytesize", __pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_bytesize, __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_bytesize, 0, 0},
  {"dptr", __pyx_getprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_dptr, __pyx_setprop_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_dptr, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemAllocNodeParamsV2(void_ptr _ptr=0)\n\nMemory allocation node parameters\n\nAttributes\n----------\npoolProps : cudaMemPoolProps\n    in: location where the allocation should reside (specified in\n    ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is\n    not supported. in: array of memory access descriptors. Used to\n    describe peer GPU access\naccessDescs : cudaMemAccessDesc\n    in: number of memory access descriptors. Must not exceed the number\n    of GPUs.\naccessDescCount : size_t\n    in: Number of `accessDescs`s\nbytesize : size_t\n    in: size in bytes of the requested allocation\ndptr : Any\n    out: address of the allocation returned by CUDA\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2_spec = {
  "cuda.bindings.runtime.cudaMemAllocNodeParamsV2",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemAllocNodeParamsV2", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemAllocNodeParamsV2(void_ptr _ptr=0)\n\nMemory allocation node parameters\n\nAttributes\n----------\npoolProps : cudaMemPoolProps\n    in: location where the allocation should reside (specified in\n    ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is\n    not supported. in: array of memory access descriptors. Used to\n    describe peer GPU access\naccessDescs : cudaMemAccessDesc\n    in: number of memory access descriptors. Must not exceed the number\n    of GPUs.\naccessDescCount : size_t\n    in: Number of `accessDescs`s\nbytesize : size_t\n    in: size in bytes of the requested allocation\ndptr : Any\n    out: address of the allocation returned by CUDA\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFreeNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFreeNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFreeNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_dptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_dptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_4dptr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemFreeNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemFreeNodeParams[] = {
  {"dptr", __pyx_getprop_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_dptr, __pyx_setprop_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_dptr, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFreeNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemFreeNodeParams(void_ptr _ptr=0)\n\nMemory free node parameters\n\nAttributes\n----------\ndptr : Any\n    in: the pointer to free\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemFreeNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemFreeNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFreeNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams_spec = {
  "cuda.bindings.runtime.cudaMemFreeNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemFreeNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFreeNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaMemFreeNodeParams(void_ptr _ptr=0)\n\nMemory free node parameters\n\nAttributes\n----------\ndptr : Any\n    in: the pointer to free\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemFreeNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemFreeNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFreeNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpyAttributes(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_srcLocHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  p->_dstLocHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpyAttributes(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpyAttributes) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_srcLocHint);
  Py_CLEAR(p->_dstLocHint);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpyAttributes(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_srcLocHint) {
    e = (*v)(((PyObject *)p->_srcLocHint), a); if (e) return e;
  }
  if (p->_dstLocHint) {
    e = (*v)(((PyObject *)p->_dstLocHint), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpyAttributes(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes *)o;
  tmp = ((PyObject*)p->_srcLocHint);
  p->_srcLocHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_dstLocHint);
  p->_dstLocHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_srcAccessOrder(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_srcAccessOrder(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_14srcAccessOrder_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_srcLocHint(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_srcLocHint(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10srcLocHint_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_dstLocHint(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_dstLocHint(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10dstLocHint_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpyAttributes[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpyAttributes[] = {
  {"srcAccessOrder", __pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_srcAccessOrder, __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_srcAccessOrder, 0, 0},
  {"srcLocHint", __pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_srcLocHint, __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_srcLocHint, 0, 0},
  {"dstLocHint", __pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_dstLocHint, __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_dstLocHint, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_flags, __pyx_setprop_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_flags, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpyAttributes},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpyAttributes(void_ptr _ptr=0)\n\nAttributes specific to copies within a batch. For more details on\nusage see cudaMemcpyBatchAsync.\n\nAttributes\n----------\nsrcAccessOrder : cudaMemcpySrcAccessOrder\n    Source access ordering to be observed for copies with this\n    attribute.\nsrcLocHint : cudaMemLocation\n    Hint location for the source operand. Ignored when the pointers are\n    not managed memory or memory allocated outside CUDA.\ndstLocHint : cudaMemLocation\n    Hint location for the destination operand. Ignored when the\n    pointers are not managed memory or memory allocated outside CUDA.\nflags : unsigned int\n    Additional flags for copies with this attribute. See\n    cudaMemcpyFlags.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpyAttributes},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpyAttributes},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemcpyAttributes},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpyAttributes},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpyAttributes},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes_spec = {
  "cuda.bindings.runtime.cudaMemcpyAttributes",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemcpyAttributes", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyAttributes), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpyAttributes, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemcpyAttributes(void_ptr _ptr=0)\n\nAttributes specific to copies within a batch. For more details on\nusage see cudaMemcpyBatchAsync.\n\nAttributes\n----------\nsrcAccessOrder : cudaMemcpySrcAccessOrder\n    Source access ordering to be observed for copies with this\n    attribute.\nsrcLocHint : cudaMemLocation\n    Hint location for the source operand. Ignored when the pointers are\n    not managed memory or memory allocated outside CUDA.\ndstLocHint : cudaMemLocation\n    Hint location for the destination operand. Ignored when the\n    pointers are not managed memory or memory allocated outside CUDA.\nflags : unsigned int\n    Additional flags for copies with this attribute. See\n    cudaMemcpyFlags.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpyAttributes, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpyAttributes, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpyAttributes, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpyAttributes, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpyAttributes, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaOffset3D(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaOffset3D(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaOffset3D) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12cudaOffset3D_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1x_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12cudaOffset3D_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12cudaOffset3D_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1y_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12cudaOffset3D_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12cudaOffset3D_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1z_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12cudaOffset3D_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaOffset3D[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaOffset3D_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaOffset3D_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12cudaOffset3D_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaOffset3D[] = {
  {"x", __pyx_getprop_4cuda_8bindings_7runtime_12cudaOffset3D_x, __pyx_setprop_4cuda_8bindings_7runtime_12cudaOffset3D_x, 0, 0},
  {"y", __pyx_getprop_4cuda_8bindings_7runtime_12cudaOffset3D_y, __pyx_setprop_4cuda_8bindings_7runtime_12cudaOffset3D_y, 0, 0},
  {"z", __pyx_getprop_4cuda_8bindings_7runtime_12cudaOffset3D_z, __pyx_setprop_4cuda_8bindings_7runtime_12cudaOffset3D_z, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaOffset3D_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaOffset3D},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaOffset3D(void_ptr _ptr=0)\n\nStruct representing offset into a cudaArray_t in elements\n\nAttributes\n----------\nx : size_t\n\ny : size_t\n\nz : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaOffset3D},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaOffset3D},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaOffset3D},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaOffset3D_spec = {
  "cuda.bindings.runtime.cudaOffset3D",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaOffset3D_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaOffset3D = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaOffset3D", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaOffset3D, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaOffset3D(void_ptr _ptr=0)\n\nStruct representing offset into a cudaArray_t in elements\n\nAttributes\n----------\nx : size_t\n\ny : size_t\n\nz : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaOffset3D, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaOffset3D, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12cudaOffset3D_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaOffset3D, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct6(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)o);
  p->_locHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct6(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct6) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_locHint);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct6(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_locHint) {
    e = (*v)(((PyObject *)p->_locHint), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct6(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)o;
  tmp = ((PyObject*)p->_locHint);
  p->_locHint = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemLocation *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct6_ptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3ptr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct6_ptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3ptr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct6_rowLength(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct6_rowLength(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9rowLength_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct6_layerHeight(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct6_layerHeight(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11layerHeight_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct6_locHint(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7locHint_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct6_locHint(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7locHint_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct6[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct6_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct6_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct6_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct6[] = {
  {"ptr", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct6_ptr, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct6_ptr, 0, 0},
  {"rowLength", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct6_rowLength, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct6_rowLength, 0, 0},
  {"layerHeight", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct6_layerHeight, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct6_layerHeight, 0, 0},
  {"locHint", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct6_locHint, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct6_locHint, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct6_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct6},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct6(void_ptr _ptr)\n\nAttributes\n----------\nptr : Any\n\nrowLength : size_t\n\nlayerHeight : size_t\n\nlocHint : cudaMemLocation\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct6},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct6},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct6},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct6},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct6},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct6_spec = {
  "cuda.bindings.runtime.anon_struct6",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct6_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct6 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct6", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct6, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct6(void_ptr _ptr)\n\nAttributes\n----------\nptr : Any\n\nrowLength : size_t\n\nlayerHeight : size_t\n\nlocHint : cudaMemLocation\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct6, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct6, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct6, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct6, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct6_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct6, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct7(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)o);
  p->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  p->_offset = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct7(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct7) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_array);
  Py_CLEAR(p->_offset);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct7(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_array) {
    e = (*v)(((PyObject *)p->_array), a); if (e) return e;
  }
  if (p->_offset) {
    e = (*v)(((PyObject *)p->_offset), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct7(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)o;
  tmp = ((PyObject*)p->_array);
  p->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaArray_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_offset);
  p->_offset = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaOffset3D *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct7_array(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5array_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct7_array(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_5array_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct7_offset(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_6offset_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct7_offset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_6offset_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct7[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct7_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct7_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct7_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct7[] = {
  {"array", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct7_array, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct7_array, 0, 0},
  {"offset", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct7_offset, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct7_offset, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct7_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct7},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct7(void_ptr _ptr)\n\nAttributes\n----------\narray : cudaArray_t\n\noffset : cudaOffset3D\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct7},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct7},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct7},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct7},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct7},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct7_spec = {
  "cuda.bindings.runtime.anon_struct7",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct7_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct7 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct7", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct7, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct7(void_ptr _ptr)\n\nAttributes\n----------\narray : cudaArray_t\n\noffset : cudaOffset3D\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct7, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct7, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct7, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct7, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct7_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct7, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union1(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)o);
  p->_ptr = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)Py_None); Py_INCREF(Py_None);
  p->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union1(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union1) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_ptr);
  Py_CLEAR(p->_array);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union1(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_ptr) {
    e = (*v)(((PyObject *)p->_ptr), a); if (e) return e;
  }
  if (p->_array) {
    e = (*v)(((PyObject *)p->_array), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union1(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)o;
  tmp = ((PyObject*)p->_ptr);
  p->_ptr = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct6 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_array);
  p->_array = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct7 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union1_ptr(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3ptr_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union1_ptr(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3ptr_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union1_array(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5array_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union1_array(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_5array_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union1[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union1_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union1_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union1_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union1[] = {
  {"ptr", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union1_ptr, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union1_ptr, 0, 0},
  {"array", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union1_array, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union1_array, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union1_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union1},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union1(void_ptr _ptr)\n\nAttributes\n----------\nptr : anon_struct6\n\narray : anon_struct7\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union1},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_union1},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union1},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union1},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union1},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union1_spec = {
  "cuda.bindings.runtime.anon_union1",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_union1_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union1 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union1", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union1, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_union1(void_ptr _ptr)\n\nAttributes\n----------\nptr : anon_struct6\n\narray : anon_struct7\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union1, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union1, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union1, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union1, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union1_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union1, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DOperand(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)o);
  p->_op = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DOperand(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DOperand) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_op);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DOperand(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_op) {
    e = (*v)(((PyObject *)p->_op), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DOperand(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)o;
  tmp = ((PyObject*)p->_op);
  p->_op = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union1 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_op(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_op(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_2op_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DOperand[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DOperand[] = {
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_type, __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_type, 0, 0},
  {"op", __pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_op, __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_op, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DOperand},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpy3DOperand(void_ptr _ptr=0)\n\nStruct representing an operand for copy with cudaMemcpy3DBatchAsync\n\nAttributes\n----------\ntype : cudaMemcpy3DOperandType\n\nop : anon_union1\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DOperand},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DOperand},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DOperand},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DOperand},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DOperand},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand_spec = {
  "cuda.bindings.runtime.cudaMemcpy3DOperand",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemcpy3DOperand", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemcpy3DOperand(void_ptr _ptr=0)\n\nStruct representing an operand for copy with cudaMemcpy3DBatchAsync\n\nAttributes\n----------\ntype : cudaMemcpy3DOperandType\n\nop : anon_union1\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_src = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)Py_None); Py_INCREF(Py_None);
  p->_dst = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)Py_None); Py_INCREF(Py_None);
  p->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_src);
  Py_CLEAR(p->_dst);
  Py_CLEAR(p->_extent);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_src) {
    e = (*v)(((PyObject *)p->_src), a); if (e) return e;
  }
  if (p->_dst) {
    e = (*v)(((PyObject *)p->_dst), a); if (e) return e;
  }
  if (p->_extent) {
    e = (*v)(((PyObject *)p->_extent), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp *)o;
  tmp = ((PyObject*)p->_src);
  p->_src = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_dst);
  p->_dst = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DOperand *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_extent);
  p->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_src(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_src(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3src_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_dst(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_dst(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3dst_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_extent(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_extent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6extent_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_srcAccessOrder(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_srcAccessOrder(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_14srcAccessOrder_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp[] = {
  {"src", __pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_src, __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_src, 0, 0},
  {"dst", __pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_dst, __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_dst, 0, 0},
  {"extent", __pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_extent, __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_extent, 0, 0},
  {"srcAccessOrder", __pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_srcAccessOrder, __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_srcAccessOrder, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_flags, __pyx_setprop_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_flags, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemcpy3DBatchOp(void_ptr _ptr=0)\n\nAttributes\n----------\nsrc : cudaMemcpy3DOperand\n    Source memcpy operand.\ndst : cudaMemcpy3DOperand\n    Destination memcpy operand.\nextent : cudaExtent\n    Extents of the memcpy between src and dst. The width, height and\n    depth components must not be 0.\nsrcAccessOrder : cudaMemcpySrcAccessOrder\n    Source access ordering to be observed for copy from src to dst.\nflags : unsigned int\n    Additional flags for copy from src to dst. See cudaMemcpyFlags.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp_spec = {
  "cuda.bindings.runtime.cudaMemcpy3DBatchOp",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemcpy3DBatchOp", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaMemcpy3DBatchOp(void_ptr _ptr=0)\n\nAttributes\n----------\nsrc : cudaMemcpy3DOperand\n    Source memcpy operand.\ndst : cudaMemcpy3DOperand\n    Destination memcpy operand.\nextent : cudaExtent\n    Extents of the memcpy between src and dst. The width, height and\n    depth components must not be 0.\nsrcAccessOrder : cudaMemcpySrcAccessOrder\n    Source access ordering to be observed for copy from src to dst.\nflags : unsigned int\n    Additional flags for copy from src to dst. See cudaMemcpyFlags.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_CUuuid_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_CUuuid_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_CUuuid_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_9CUuuid_st_bytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_5bytes_1__get__(o);
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_CUuuid_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9CUuuid_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9CUuuid_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9CUuuid_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_CUuuid_st[] = {
  {"bytes", __pyx_getprop_4cuda_8bindings_7runtime_9CUuuid_st_bytes, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_CUuuid_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_CUuuid_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("CUuuid_st(void_ptr _ptr=0)\n\nAttributes\n----------\nbytes : bytes\n    < CUDA definition of UUID\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_CUuuid_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_CUuuid_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_CUuuid_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_CUuuid_st_spec = {
  "cuda.bindings.runtime.CUuuid_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_CUuuid_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_CUuuid_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""CUuuid_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_CUuuid_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("CUuuid_st(void_ptr _ptr=0)\n\nAttributes\n----------\nbytes : bytes\n    < CUDA definition of UUID\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_CUuuid_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_CUuuid_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_CUuuid_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDeviceProp(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_uuid = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDeviceProp(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDeviceProp) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_uuid);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaDeviceProp(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_uuid) {
    e = (*v)(((PyObject *)p->_uuid), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaDeviceProp(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp *)o;
  tmp = ((PyObject*)p->_uuid);
  p->_uuid = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4name_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_uuid(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_uuid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4uuid_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_luid(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_luid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_4luid_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_luidDeviceNodeMask(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_luidDeviceNodeMask(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18luidDeviceNodeMask_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_totalGlobalMem(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_totalGlobalMem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14totalGlobalMem_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerBlock(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17sharedMemPerBlock_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_regsPerBlock(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_regsPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12regsPerBlock_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_warpSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_warpSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8warpSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memPitch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memPitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8memPitch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsPerBlock(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxThreadsPerBlock_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsDim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13maxThreadsDim_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxGridSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxGridSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11maxGridSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_totalConstMem(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_totalConstMem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13totalConstMem_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_major(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_major(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5major_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_minor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_minor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_5minor_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_textureAlignment(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_textureAlignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16textureAlignment_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_texturePitchAlignment(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_texturePitchAlignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21texturePitchAlignment_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_multiProcessorCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_multiProcessorCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19multiProcessorCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_integrated(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_integrated(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10integrated_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_canMapHostMemory(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_canMapHostMemory(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16canMapHostMemory_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1D(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture1D_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1DMipmap(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1DMipmap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture1DMipmap_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2D(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture2D_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DMipmap(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DMipmap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DMipmap_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DLinear(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DLinear(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DLinear_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DGather(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DGather(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_18maxTexture2DGather_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture3D(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture3D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxTexture3D_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture3DAlt(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture3DAlt(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15maxTexture3DAlt_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTextureCubemap(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTextureCubemap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxTextureCubemap_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1DLayered(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1DLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture1DLayered_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DLayered(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxTexture2DLayered_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTextureCubemapLayered(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTextureCubemapLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxTextureCubemapLayered_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface1D(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface1D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface1D_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface2D(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface2D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface2D_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface3D(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface3D(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12maxSurface3D_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface1DLayered(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface1DLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface1DLayered_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface2DLayered(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface2DLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_19maxSurface2DLayered_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurfaceCubemap(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurfaceCubemap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17maxSurfaceCubemap_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurfaceCubemapLayered(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurfaceCubemapLayered(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24maxSurfaceCubemapLayered_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_surfaceAlignment(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_surfaceAlignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16surfaceAlignment_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_concurrentKernels(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_concurrentKernels(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17concurrentKernels_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_ECCEnabled(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_ECCEnabled(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10ECCEnabled_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciBusID(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciBusID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8pciBusID_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciDeviceID(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciDeviceID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDeviceID_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciDomainID(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciDomainID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11pciDomainID_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_tccDriver(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_tccDriver(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9tccDriver_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_asyncEngineCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_asyncEngineCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16asyncEngineCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_unifiedAddressing(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_unifiedAddressing(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17unifiedAddressing_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryBusWidth(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryBusWidth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14memoryBusWidth_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_l2CacheSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_l2CacheSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11l2CacheSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_persistingL2CacheMaxSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_persistingL2CacheMaxSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24persistingL2CacheMaxSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsPerMultiProcessor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsPerMultiProcessor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27maxThreadsPerMultiProcessor_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_streamPrioritiesSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_streamPrioritiesSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25streamPrioritiesSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_globalL1CacheSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_globalL1CacheSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22globalL1CacheSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_localL1CacheSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_localL1CacheSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21localL1CacheSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerMultiprocessor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerMultiprocessor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26sharedMemPerMultiprocessor_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_regsPerMultiprocessor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_regsPerMultiprocessor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21regsPerMultiprocessor_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_managedMemory(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_managedMemory(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13managedMemory_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_isMultiGpuBoard(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_isMultiGpuBoard(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_15isMultiGpuBoard_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_multiGpuBoardGroupID(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_multiGpuBoardGroupID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20multiGpuBoardGroupID_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNativeAtomicSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNativeAtomicSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25hostNativeAtomicSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pageableMemoryAccess(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pageableMemoryAccess(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20pageableMemoryAccess_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_concurrentManagedAccess(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_concurrentManagedAccess(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23concurrentManagedAccess_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_computePreemptionSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_computePreemptionSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26computePreemptionSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_canUseHostPointerForRegisteredMem(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_canUseHostPointerForRegisteredMem(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33canUseHostPointerForRegisteredMem_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_cooperativeLaunch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_cooperativeLaunch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17cooperativeLaunch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerBlockOptin(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerBlockOptin(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22sharedMemPerBlockOptin_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pageableMemoryAccessUsesHostPageTables(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pageableMemoryAccessUsesHostPageTables(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_38pageableMemoryAccessUsesHostPageTables_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_directManagedMemAccessFromHost(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_directManagedMemAccessFromHost(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30directManagedMemAccessFromHost_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxBlocksPerMultiProcessor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxBlocksPerMultiProcessor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_26maxBlocksPerMultiProcessor_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_accessPolicyMaxWindowSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_accessPolicyMaxWindowSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25accessPolicyMaxWindowSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_reservedSharedMemPerBlock(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_reservedSharedMemPerBlock(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_25reservedSharedMemPerBlock_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostRegisterSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostRegisterSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_21hostRegisterSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sparseCudaArraySupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sparseCudaArraySupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_24sparseCudaArraySupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostRegisterReadOnlySupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostRegisterReadOnlySupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostRegisterReadOnlySupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_timelineSemaphoreInteropSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_timelineSemaphoreInteropSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33timelineSemaphoreInteropSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryPoolsSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryPoolsSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_20memoryPoolsSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMASupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMASupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_22gpuDirectRDMASupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMAFlushWritesOptions(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMAFlushWritesOptions(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_31gpuDirectRDMAFlushWritesOptions_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMAWritesOrdering(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMAWritesOrdering(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_27gpuDirectRDMAWritesOrdering_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryPoolSupportedHandleTypes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryPoolSupportedHandleTypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_30memoryPoolSupportedHandleTypes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deferredMappingCudaArraySupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deferredMappingCudaArraySupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_33deferredMappingCudaArraySupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_ipcEventSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_ipcEventSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17ipcEventSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_clusterLaunch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_clusterLaunch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13clusterLaunch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_unifiedFunctionPointers(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_unifiedFunctionPointers(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_23unifiedFunctionPointers_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deviceNumaConfig(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deviceNumaConfig(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_16deviceNumaConfig_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deviceNumaId(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deviceNumaId(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_12deviceNumaId_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_mpsEnabled(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_mpsEnabled(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10mpsEnabled_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNumaId(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNumaId(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_10hostNumaId_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuPciDeviceID(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuPciDeviceID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_14gpuPciDeviceID_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuPciSubsystemID(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuPciSubsystemID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_17gpuPciSubsystemID_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNumaMultinodeIpcSupported(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNumaMultinodeIpcSupported(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_29hostNumaMultinodeIpcSupported_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaDeviceProp[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaDeviceProp_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaDeviceProp_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_14cudaDeviceProp_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaDeviceProp[] = {
  {"name", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_name, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_name, 0, 0},
  {"uuid", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_uuid, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_uuid, 0, 0},
  {"luid", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_luid, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_luid, 0, 0},
  {"luidDeviceNodeMask", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_luidDeviceNodeMask, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_luidDeviceNodeMask, 0, 0},
  {"totalGlobalMem", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_totalGlobalMem, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_totalGlobalMem, 0, 0},
  {"sharedMemPerBlock", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerBlock, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerBlock, 0, 0},
  {"regsPerBlock", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_regsPerBlock, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_regsPerBlock, 0, 0},
  {"warpSize", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_warpSize, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_warpSize, 0, 0},
  {"memPitch", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memPitch, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memPitch, 0, 0},
  {"maxThreadsPerBlock", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsPerBlock, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsPerBlock, 0, 0},
  {"maxThreadsDim", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsDim, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsDim, 0, 0},
  {"maxGridSize", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxGridSize, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxGridSize, 0, 0},
  {"totalConstMem", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_totalConstMem, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_totalConstMem, 0, 0},
  {"major", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_major, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_major, 0, 0},
  {"minor", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_minor, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_minor, 0, 0},
  {"textureAlignment", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_textureAlignment, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_textureAlignment, 0, 0},
  {"texturePitchAlignment", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_texturePitchAlignment, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_texturePitchAlignment, 0, 0},
  {"multiProcessorCount", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_multiProcessorCount, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_multiProcessorCount, 0, 0},
  {"integrated", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_integrated, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_integrated, 0, 0},
  {"canMapHostMemory", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_canMapHostMemory, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_canMapHostMemory, 0, 0},
  {"maxTexture1D", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1D, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1D, 0, 0},
  {"maxTexture1DMipmap", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1DMipmap, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1DMipmap, 0, 0},
  {"maxTexture2D", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2D, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2D, 0, 0},
  {"maxTexture2DMipmap", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DMipmap, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DMipmap, 0, 0},
  {"maxTexture2DLinear", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DLinear, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DLinear, 0, 0},
  {"maxTexture2DGather", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DGather, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DGather, 0, 0},
  {"maxTexture3D", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture3D, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture3D, 0, 0},
  {"maxTexture3DAlt", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture3DAlt, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture3DAlt, 0, 0},
  {"maxTextureCubemap", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTextureCubemap, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTextureCubemap, 0, 0},
  {"maxTexture1DLayered", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1DLayered, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture1DLayered, 0, 0},
  {"maxTexture2DLayered", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DLayered, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTexture2DLayered, 0, 0},
  {"maxTextureCubemapLayered", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTextureCubemapLayered, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxTextureCubemapLayered, 0, 0},
  {"maxSurface1D", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface1D, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface1D, 0, 0},
  {"maxSurface2D", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface2D, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface2D, 0, 0},
  {"maxSurface3D", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface3D, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface3D, 0, 0},
  {"maxSurface1DLayered", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface1DLayered, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface1DLayered, 0, 0},
  {"maxSurface2DLayered", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface2DLayered, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurface2DLayered, 0, 0},
  {"maxSurfaceCubemap", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurfaceCubemap, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurfaceCubemap, 0, 0},
  {"maxSurfaceCubemapLayered", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurfaceCubemapLayered, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxSurfaceCubemapLayered, 0, 0},
  {"surfaceAlignment", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_surfaceAlignment, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_surfaceAlignment, 0, 0},
  {"concurrentKernels", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_concurrentKernels, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_concurrentKernels, 0, 0},
  {"ECCEnabled", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_ECCEnabled, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_ECCEnabled, 0, 0},
  {"pciBusID", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciBusID, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciBusID, 0, 0},
  {"pciDeviceID", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciDeviceID, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciDeviceID, 0, 0},
  {"pciDomainID", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciDomainID, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pciDomainID, 0, 0},
  {"tccDriver", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_tccDriver, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_tccDriver, 0, 0},
  {"asyncEngineCount", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_asyncEngineCount, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_asyncEngineCount, 0, 0},
  {"unifiedAddressing", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_unifiedAddressing, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_unifiedAddressing, 0, 0},
  {"memoryBusWidth", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryBusWidth, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryBusWidth, 0, 0},
  {"l2CacheSize", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_l2CacheSize, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_l2CacheSize, 0, 0},
  {"persistingL2CacheMaxSize", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_persistingL2CacheMaxSize, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_persistingL2CacheMaxSize, 0, 0},
  {"maxThreadsPerMultiProcessor", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsPerMultiProcessor, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxThreadsPerMultiProcessor, 0, 0},
  {"streamPrioritiesSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_streamPrioritiesSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_streamPrioritiesSupported, 0, 0},
  {"globalL1CacheSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_globalL1CacheSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_globalL1CacheSupported, 0, 0},
  {"localL1CacheSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_localL1CacheSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_localL1CacheSupported, 0, 0},
  {"sharedMemPerMultiprocessor", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerMultiprocessor, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerMultiprocessor, 0, 0},
  {"regsPerMultiprocessor", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_regsPerMultiprocessor, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_regsPerMultiprocessor, 0, 0},
  {"managedMemory", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_managedMemory, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_managedMemory, 0, 0},
  {"isMultiGpuBoard", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_isMultiGpuBoard, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_isMultiGpuBoard, 0, 0},
  {"multiGpuBoardGroupID", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_multiGpuBoardGroupID, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_multiGpuBoardGroupID, 0, 0},
  {"hostNativeAtomicSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNativeAtomicSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNativeAtomicSupported, 0, 0},
  {"pageableMemoryAccess", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pageableMemoryAccess, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pageableMemoryAccess, 0, 0},
  {"concurrentManagedAccess", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_concurrentManagedAccess, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_concurrentManagedAccess, 0, 0},
  {"computePreemptionSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_computePreemptionSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_computePreemptionSupported, 0, 0},
  {"canUseHostPointerForRegisteredMem", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_canUseHostPointerForRegisteredMem, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_canUseHostPointerForRegisteredMem, 0, 0},
  {"cooperativeLaunch", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_cooperativeLaunch, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_cooperativeLaunch, 0, 0},
  {"sharedMemPerBlockOptin", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerBlockOptin, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sharedMemPerBlockOptin, 0, 0},
  {"pageableMemoryAccessUsesHostPageTables", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pageableMemoryAccessUsesHostPageTables, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_pageableMemoryAccessUsesHostPageTables, 0, 0},
  {"directManagedMemAccessFromHost", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_directManagedMemAccessFromHost, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_directManagedMemAccessFromHost, 0, 0},
  {"maxBlocksPerMultiProcessor", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxBlocksPerMultiProcessor, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_maxBlocksPerMultiProcessor, 0, 0},
  {"accessPolicyMaxWindowSize", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_accessPolicyMaxWindowSize, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_accessPolicyMaxWindowSize, 0, 0},
  {"reservedSharedMemPerBlock", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_reservedSharedMemPerBlock, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_reservedSharedMemPerBlock, 0, 0},
  {"hostRegisterSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostRegisterSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostRegisterSupported, 0, 0},
  {"sparseCudaArraySupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sparseCudaArraySupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_sparseCudaArraySupported, 0, 0},
  {"hostRegisterReadOnlySupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostRegisterReadOnlySupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostRegisterReadOnlySupported, 0, 0},
  {"timelineSemaphoreInteropSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_timelineSemaphoreInteropSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_timelineSemaphoreInteropSupported, 0, 0},
  {"memoryPoolsSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryPoolsSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryPoolsSupported, 0, 0},
  {"gpuDirectRDMASupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMASupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMASupported, 0, 0},
  {"gpuDirectRDMAFlushWritesOptions", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMAFlushWritesOptions, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMAFlushWritesOptions, 0, 0},
  {"gpuDirectRDMAWritesOrdering", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMAWritesOrdering, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuDirectRDMAWritesOrdering, 0, 0},
  {"memoryPoolSupportedHandleTypes", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryPoolSupportedHandleTypes, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_memoryPoolSupportedHandleTypes, 0, 0},
  {"deferredMappingCudaArraySupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deferredMappingCudaArraySupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deferredMappingCudaArraySupported, 0, 0},
  {"ipcEventSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_ipcEventSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_ipcEventSupported, 0, 0},
  {"clusterLaunch", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_clusterLaunch, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_clusterLaunch, 0, 0},
  {"unifiedFunctionPointers", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_unifiedFunctionPointers, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_unifiedFunctionPointers, 0, 0},
  {"deviceNumaConfig", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deviceNumaConfig, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deviceNumaConfig, 0, 0},
  {"deviceNumaId", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deviceNumaId, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_deviceNumaId, 0, 0},
  {"mpsEnabled", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_mpsEnabled, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_mpsEnabled, 0, 0},
  {"hostNumaId", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNumaId, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNumaId, 0, 0},
  {"gpuPciDeviceID", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuPciDeviceID, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuPciDeviceID, 0, 0},
  {"gpuPciSubsystemID", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuPciSubsystemID, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_gpuPciSubsystemID, 0, 0},
  {"hostNumaMultinodeIpcSupported", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNumaMultinodeIpcSupported, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_hostNumaMultinodeIpcSupported, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_14cudaDeviceProp_reserved, __pyx_setprop_4cuda_8bindings_7runtime_14cudaDeviceProp_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDeviceProp},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaDeviceProp(void_ptr _ptr=0)\n\nCUDA device properties\n\nAttributes\n----------\nname : bytes\n    ASCII string identifying device\nuuid : cudaUUID_t\n    16-byte unique identifier\nluid : bytes\n    8-byte locally unique identifier. Value is undefined on TCC and\n    non-Windows platforms\nluidDeviceNodeMask : unsigned int\n    LUID device node mask. Value is undefined on TCC and non-Windows\n    platforms\ntotalGlobalMem : size_t\n    Global memory available on device in bytes\nsharedMemPerBlock : size_t\n    Shared memory available per block in bytes\nregsPerBlock : int\n    32-bit registers available per block\nwarpSize : int\n    Warp size in threads\nmemPitch : size_t\n    Maximum pitch in bytes allowed by memory copies\nmaxThreadsPerBlock : int\n    Maximum number of threads per block\nmaxThreadsDim : list[int]\n    Maximum size of each dimension of a block\nmaxGridSize : list[int]\n    Maximum size of each dimension of a grid\ntotalConstMem : size_t\n    Constant memory available on device in bytes\nmajor : int\n    Major compute capability\nminor : int\n    Minor compute capability\ntextureAlignment : size_t\n    Alignment requirement for textures\ntexturePitchAlignment : size_t\n    Pitch alignment requirement for texture references bound to pitched\n    memory\nmultiProcessorCount : int\n    Number of multiprocessors on device\nintegrated : int\n    Device is integrated as opposed to discrete\ncanMapHostMemory : int\n    Device can map host memory with\n    cudaHostAlloc/cudaHostGetDevicePointer\nmaxTexture1D : int\n    Maximum 1D texture size\nmaxTexture1DMipmap : int\n    Maximum 1D mipmapped texture size\nmaxTexture2D : list[int]\n    Maximum 2D texture dimensions\nmaxTexture2DMipmap : list[int]\n    Maximum 2D mipmapped texture dimensions\nmaxTexture2DLinear : list[int]\n    Maximum dimensions (width, height, pitch) for 2D textures bound to\n    pitched memory\nmaxTexture2DGather : list[int]\n    Maximum 2D texture dimensions if texture gather ope""rations have to\n    be performed\nmaxTexture3D : list[int]\n    Maximum 3D texture dimensions\nmaxTexture3DAlt : list[int]\n    Maximum alternate 3D texture dimensions\nmaxTextureCubemap : int\n    Maximum Cubemap texture dimensions\nmaxTexture1DLayered : list[int]\n    Maximum 1D layered texture dimensions\nmaxTexture2DLayered : list[int]\n    Maximum 2D layered texture dimensions\nmaxTextureCubemapLayered : list[int]\n    Maximum Cubemap layered texture dimensions\nmaxSurface1D : int\n    Maximum 1D surface size\nmaxSurface2D : list[int]\n    Maximum 2D surface dimensions\nmaxSurface3D : list[int]\n    Maximum 3D surface dimensions\nmaxSurface1DLayered : list[int]\n    Maximum 1D layered surface dimensions\nmaxSurface2DLayered : list[int]\n    Maximum 2D layered surface dimensions\nmaxSurfaceCubemap : int\n    Maximum Cubemap surface dimensions\nmaxSurfaceCubemapLayered : list[int]\n    Maximum Cubemap layered surface dimensions\nsurfaceAlignment : size_t\n    Alignment requirements for surfaces\nconcurrentKernels : int\n    Device can possibly execute multiple kernels concurrently\nECCEnabled : int\n    Device has ECC support enabled\npciBusID : int\n    PCI bus ID of the device\npciDeviceID : int\n    PCI device ID of the device\npciDomainID : int\n    PCI domain ID of the device\ntccDriver : int\n    1 if device is a Tesla device using TCC driver, 0 otherwise\nasyncEngineCount : int\n    Number of asynchronous engines\nunifiedAddressing : int\n    Device shares a unified address space with the host\nmemoryBusWidth : int\n    Global memory bus width in bits\nl2CacheSize : int\n    Size of L2 cache in bytes\npersistingL2CacheMaxSize : int\n    Device's maximum l2 persisting lines capacity setting in bytes\nmaxThreadsPerMultiProcessor : int\n    Maximum resident threads per multiprocessor\nstreamPrioritiesSupported : int\n    Device supports stream priorities\nglobalL1CacheSupported : int\n    Device supports caching globals in L1\nlocalL1CacheSupported : int""\n    Device supports caching locals in L1\nsharedMemPerMultiprocessor : size_t\n    Shared memory available per multiprocessor in bytes\nregsPerMultiprocessor : int\n    32-bit registers available per multiprocessor\nmanagedMemory : int\n    Device supports allocating managed memory on this system\nisMultiGpuBoard : int\n    Device is on a multi-GPU board\nmultiGpuBoardGroupID : int\n    Unique identifier for a group of devices on the same multi-GPU\n    board\nhostNativeAtomicSupported : int\n    Link between the device and the host supports native atomic\n    operations\npageableMemoryAccess : int\n    Device supports coherently accessing pageable memory without\n    calling cudaHostRegister on it\nconcurrentManagedAccess : int\n    Device can coherently access managed memory concurrently with the\n    CPU\ncomputePreemptionSupported : int\n    Device supports Compute Preemption\ncanUseHostPointerForRegisteredMem : int\n    Device can access host registered memory at the same virtual\n    address as the CPU\ncooperativeLaunch : int\n    Device supports launching cooperative kernels via\n    cudaLaunchCooperativeKernel\nsharedMemPerBlockOptin : size_t\n    Per device maximum shared memory per block usable by special opt in\npageableMemoryAccessUsesHostPageTables : int\n    Device accesses pageable memory via the host's page tables\ndirectManagedMemAccessFromHost : int\n    Host can directly access managed memory on the device without\n    migration.\nmaxBlocksPerMultiProcessor : int\n    Maximum number of resident blocks per multiprocessor\naccessPolicyMaxWindowSize : int\n    The maximum value of cudaAccessPolicyWindow::num_bytes.\nreservedSharedMemPerBlock : size_t\n    Shared memory reserved by CUDA driver per block in bytes\nhostRegisterSupported : int\n    Device supports host memory registration via cudaHostRegister.\nsparseCudaArraySupported : int\n    1 if the device supports sparse CUDA arrays and sparse CUDA\n    mipmapped arrays, 0 otherwise\nhostRegist""erReadOnlySupported : int\n    Device supports using the cudaHostRegister flag\n    cudaHostRegisterReadOnly to register memory that must be mapped as\n    read-only to the GPU\ntimelineSemaphoreInteropSupported : int\n    External timeline semaphore interop is supported on the device\nmemoryPoolsSupported : int\n    1 if the device supports using the cudaMallocAsync and cudaMemPool\n    family of APIs, 0 otherwise\ngpuDirectRDMASupported : int\n    1 if the device supports GPUDirect RDMA APIs, 0 otherwise\ngpuDirectRDMAFlushWritesOptions : unsigned int\n    Bitmask to be interpreted according to the\n    cudaFlushGPUDirectRDMAWritesOptions enum\ngpuDirectRDMAWritesOrdering : int\n    See the cudaGPUDirectRDMAWritesOrdering enum for numerical values\nmemoryPoolSupportedHandleTypes : unsigned int\n    Bitmask of handle types supported with mempool-based IPC\ndeferredMappingCudaArraySupported : int\n    1 if the device supports deferred mapping CUDA arrays and CUDA\n    mipmapped arrays\nipcEventSupported : int\n    Device supports IPC Events.\nclusterLaunch : int\n    Indicates device supports cluster launch\nunifiedFunctionPointers : int\n    Indicates device supports unified pointers\ndeviceNumaConfig : int\n    NUMA configuration of a device: value is of type\n    cudaDeviceNumaConfig enum\ndeviceNumaId : int\n    NUMA node ID of the GPU memory\nmpsEnabled : int\n    Indicates if contexts created on this device will be shared via MPS\nhostNumaId : int\n    NUMA ID of the host node closest to the device or -1 when system\n    does not support NUMA\ngpuPciDeviceID : unsigned int\n    The combined 16-bit PCI device ID and 16-bit PCI vendor ID\ngpuPciSubsystemID : unsigned int\n    The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem\n    vendor ID\nhostNumaMultinodeIpcSupported : int\n    1 if the device supports HostNuma location IPC between nodes in a\n    multi-node system.\nreserved : list[int]\n    Reserved for future use\n\nMethods\n-------\ngetPtr()""\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaDeviceProp},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaDeviceProp},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaDeviceProp},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaDeviceProp},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDeviceProp},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp_spec = {
  "cuda.bindings.runtime.cudaDeviceProp",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDeviceProp", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDeviceProp), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDeviceProp, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaDeviceProp(void_ptr _ptr=0)\n\nCUDA device properties\n\nAttributes\n----------\nname : bytes\n    ASCII string identifying device\nuuid : cudaUUID_t\n    16-byte unique identifier\nluid : bytes\n    8-byte locally unique identifier. Value is undefined on TCC and\n    non-Windows platforms\nluidDeviceNodeMask : unsigned int\n    LUID device node mask. Value is undefined on TCC and non-Windows\n    platforms\ntotalGlobalMem : size_t\n    Global memory available on device in bytes\nsharedMemPerBlock : size_t\n    Shared memory available per block in bytes\nregsPerBlock : int\n    32-bit registers available per block\nwarpSize : int\n    Warp size in threads\nmemPitch : size_t\n    Maximum pitch in bytes allowed by memory copies\nmaxThreadsPerBlock : int\n    Maximum number of threads per block\nmaxThreadsDim : list[int]\n    Maximum size of each dimension of a block\nmaxGridSize : list[int]\n    Maximum size of each dimension of a grid\ntotalConstMem : size_t\n    Constant memory available on device in bytes\nmajor : int\n    Major compute capability\nminor : int\n    Minor compute capability\ntextureAlignment : size_t\n    Alignment requirement for textures\ntexturePitchAlignment : size_t\n    Pitch alignment requirement for texture references bound to pitched\n    memory\nmultiProcessorCount : int\n    Number of multiprocessors on device\nintegrated : int\n    Device is integrated as opposed to discrete\ncanMapHostMemory : int\n    Device can map host memory with\n    cudaHostAlloc/cudaHostGetDevicePointer\nmaxTexture1D : int\n    Maximum 1D texture size\nmaxTexture1DMipmap : int\n    Maximum 1D mipmapped texture size\nmaxTexture2D : list[int]\n    Maximum 2D texture dimensions\nmaxTexture2DMipmap : list[int]\n    Maximum 2D mipmapped texture dimensions\nmaxTexture2DLinear : list[int]\n    Maximum dimensions (width, height, pitch) for 2D textures bound to\n    pitched memory\nmaxTexture2DGather : list[int]\n    Maximum 2D texture dimensions if texture gather ope""rations have to\n    be performed\nmaxTexture3D : list[int]\n    Maximum 3D texture dimensions\nmaxTexture3DAlt : list[int]\n    Maximum alternate 3D texture dimensions\nmaxTextureCubemap : int\n    Maximum Cubemap texture dimensions\nmaxTexture1DLayered : list[int]\n    Maximum 1D layered texture dimensions\nmaxTexture2DLayered : list[int]\n    Maximum 2D layered texture dimensions\nmaxTextureCubemapLayered : list[int]\n    Maximum Cubemap layered texture dimensions\nmaxSurface1D : int\n    Maximum 1D surface size\nmaxSurface2D : list[int]\n    Maximum 2D surface dimensions\nmaxSurface3D : list[int]\n    Maximum 3D surface dimensions\nmaxSurface1DLayered : list[int]\n    Maximum 1D layered surface dimensions\nmaxSurface2DLayered : list[int]\n    Maximum 2D layered surface dimensions\nmaxSurfaceCubemap : int\n    Maximum Cubemap surface dimensions\nmaxSurfaceCubemapLayered : list[int]\n    Maximum Cubemap layered surface dimensions\nsurfaceAlignment : size_t\n    Alignment requirements for surfaces\nconcurrentKernels : int\n    Device can possibly execute multiple kernels concurrently\nECCEnabled : int\n    Device has ECC support enabled\npciBusID : int\n    PCI bus ID of the device\npciDeviceID : int\n    PCI device ID of the device\npciDomainID : int\n    PCI domain ID of the device\ntccDriver : int\n    1 if device is a Tesla device using TCC driver, 0 otherwise\nasyncEngineCount : int\n    Number of asynchronous engines\nunifiedAddressing : int\n    Device shares a unified address space with the host\nmemoryBusWidth : int\n    Global memory bus width in bits\nl2CacheSize : int\n    Size of L2 cache in bytes\npersistingL2CacheMaxSize : int\n    Device's maximum l2 persisting lines capacity setting in bytes\nmaxThreadsPerMultiProcessor : int\n    Maximum resident threads per multiprocessor\nstreamPrioritiesSupported : int\n    Device supports stream priorities\nglobalL1CacheSupported : int\n    Device supports caching globals in L1\nlocalL1CacheSupported : int""\n    Device supports caching locals in L1\nsharedMemPerMultiprocessor : size_t\n    Shared memory available per multiprocessor in bytes\nregsPerMultiprocessor : int\n    32-bit registers available per multiprocessor\nmanagedMemory : int\n    Device supports allocating managed memory on this system\nisMultiGpuBoard : int\n    Device is on a multi-GPU board\nmultiGpuBoardGroupID : int\n    Unique identifier for a group of devices on the same multi-GPU\n    board\nhostNativeAtomicSupported : int\n    Link between the device and the host supports native atomic\n    operations\npageableMemoryAccess : int\n    Device supports coherently accessing pageable memory without\n    calling cudaHostRegister on it\nconcurrentManagedAccess : int\n    Device can coherently access managed memory concurrently with the\n    CPU\ncomputePreemptionSupported : int\n    Device supports Compute Preemption\ncanUseHostPointerForRegisteredMem : int\n    Device can access host registered memory at the same virtual\n    address as the CPU\ncooperativeLaunch : int\n    Device supports launching cooperative kernels via\n    cudaLaunchCooperativeKernel\nsharedMemPerBlockOptin : size_t\n    Per device maximum shared memory per block usable by special opt in\npageableMemoryAccessUsesHostPageTables : int\n    Device accesses pageable memory via the host's page tables\ndirectManagedMemAccessFromHost : int\n    Host can directly access managed memory on the device without\n    migration.\nmaxBlocksPerMultiProcessor : int\n    Maximum number of resident blocks per multiprocessor\naccessPolicyMaxWindowSize : int\n    The maximum value of cudaAccessPolicyWindow::num_bytes.\nreservedSharedMemPerBlock : size_t\n    Shared memory reserved by CUDA driver per block in bytes\nhostRegisterSupported : int\n    Device supports host memory registration via cudaHostRegister.\nsparseCudaArraySupported : int\n    1 if the device supports sparse CUDA arrays and sparse CUDA\n    mipmapped arrays, 0 otherwise\nhostRegist""erReadOnlySupported : int\n    Device supports using the cudaHostRegister flag\n    cudaHostRegisterReadOnly to register memory that must be mapped as\n    read-only to the GPU\ntimelineSemaphoreInteropSupported : int\n    External timeline semaphore interop is supported on the device\nmemoryPoolsSupported : int\n    1 if the device supports using the cudaMallocAsync and cudaMemPool\n    family of APIs, 0 otherwise\ngpuDirectRDMASupported : int\n    1 if the device supports GPUDirect RDMA APIs, 0 otherwise\ngpuDirectRDMAFlushWritesOptions : unsigned int\n    Bitmask to be interpreted according to the\n    cudaFlushGPUDirectRDMAWritesOptions enum\ngpuDirectRDMAWritesOrdering : int\n    See the cudaGPUDirectRDMAWritesOrdering enum for numerical values\nmemoryPoolSupportedHandleTypes : unsigned int\n    Bitmask of handle types supported with mempool-based IPC\ndeferredMappingCudaArraySupported : int\n    1 if the device supports deferred mapping CUDA arrays and CUDA\n    mipmapped arrays\nipcEventSupported : int\n    Device supports IPC Events.\nclusterLaunch : int\n    Indicates device supports cluster launch\nunifiedFunctionPointers : int\n    Indicates device supports unified pointers\ndeviceNumaConfig : int\n    NUMA configuration of a device: value is of type\n    cudaDeviceNumaConfig enum\ndeviceNumaId : int\n    NUMA node ID of the GPU memory\nmpsEnabled : int\n    Indicates if contexts created on this device will be shared via MPS\nhostNumaId : int\n    NUMA ID of the host node closest to the device or -1 when system\n    does not support NUMA\ngpuPciDeviceID : unsigned int\n    The combined 16-bit PCI device ID and 16-bit PCI vendor ID\ngpuPciSubsystemID : unsigned int\n    The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem\n    vendor ID\nhostNumaMultinodeIpcSupported : int\n    1 if the device supports HostNuma location IPC between nodes in a\n    multi-node system.\nreserved : list[int]\n    Reserved for future use\n\nMethods\n-------\ngetPtr()""\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaDeviceProp, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaDeviceProp, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaDeviceProp, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaDeviceProp, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_14cudaDeviceProp_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDeviceProp, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcEventHandle_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcEventHandle_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcEventHandle_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaIpcEventHandle_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaIpcEventHandle_st[] = {
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_reserved, __pyx_setprop_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcEventHandle_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaIpcEventHandle_st(void_ptr _ptr=0)\n\nCUDA IPC event handle\n\nAttributes\n----------\nreserved : bytes\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaIpcEventHandle_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaIpcEventHandle_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcEventHandle_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st_spec = {
  "cuda.bindings.runtime.cudaIpcEventHandle_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaIpcEventHandle_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcEventHandle_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaIpcEventHandle_st(void_ptr _ptr=0)\n\nCUDA IPC event handle\n\nAttributes\n----------\nreserved : bytes\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaIpcEventHandle_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaIpcEventHandle_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcEventHandle_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcMemHandle_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcMemHandle_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcMemHandle_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaIpcMemHandle_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaIpcMemHandle_st[] = {
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_reserved, __pyx_setprop_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcMemHandle_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaIpcMemHandle_st(void_ptr _ptr=0)\n\nCUDA IPC memory handle\n\nAttributes\n----------\nreserved : bytes\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaIpcMemHandle_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaIpcMemHandle_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcMemHandle_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st_spec = {
  "cuda.bindings.runtime.cudaIpcMemHandle_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaIpcMemHandle_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcMemHandle_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaIpcMemHandle_st(void_ptr _ptr=0)\n\nCUDA IPC memory handle\n\nAttributes\n----------\nreserved : bytes\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaIpcMemHandle_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaIpcMemHandle_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcMemHandle_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFabricHandle_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFabricHandle_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFabricHandle_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaMemFabricHandle_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaMemFabricHandle_st[] = {
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_reserved, __pyx_setprop_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFabricHandle_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaMemFabricHandle_st(void_ptr _ptr=0)\n\nAttributes\n----------\nreserved : bytes\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaMemFabricHandle_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaMemFabricHandle_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFabricHandle_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st_spec = {
  "cuda.bindings.runtime.cudaMemFabricHandle_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemFabricHandle_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFabricHandle_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaMemFabricHandle_st(void_ptr _ptr=0)\n\nAttributes\n----------\nreserved : bytes\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaMemFabricHandle_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaMemFabricHandle_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFabricHandle_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct8(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct8(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct8) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct8_handle(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_6handle_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct8_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_6handle_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct8_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_4name_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct8_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_4name_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct8[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct8_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct8_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct8_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct8[] = {
  {"handle", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct8_handle, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct8_handle, 0, 0},
  {"name", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct8_name, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct8_name, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct8_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct8},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct8(void_ptr _ptr)\n\nAttributes\n----------\nhandle : Any\n\nname : Any\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct8},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct8},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct8},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct8_spec = {
  "cuda.bindings.runtime.anon_struct8",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct8_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct8 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct8", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct8, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct8(void_ptr _ptr)\n\nAttributes\n----------\nhandle : Any\n\nname : Any\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct8, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct8, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct8_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct8, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union2(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)o);
  p->_win32 = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union2(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union2) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_win32);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union2(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_win32) {
    e = (*v)(((PyObject *)p->_win32), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union2(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)o;
  tmp = ((PyObject*)p->_win32);
  p->_win32 = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct8 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union2_fd(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_2fd_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union2_fd(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_2fd_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union2_win32(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5win32_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union2_win32(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_5win32_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union2_nvSciBufObject(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union2_nvSciBufObject(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_14nvSciBufObject_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union2[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union2_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union2_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union2_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union2[] = {
  {"fd", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union2_fd, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union2_fd, 0, 0},
  {"win32", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union2_win32, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union2_win32, 0, 0},
  {"nvSciBufObject", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union2_nvSciBufObject, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union2_nvSciBufObject, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union2_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union2},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union2(void_ptr _ptr)\n\nAttributes\n----------\nfd : int\n\nwin32 : anon_struct8\n\nnvSciBufObject : Any\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union2},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_union2},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union2},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union2},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union2_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union2},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union2_spec = {
  "cuda.bindings.runtime.anon_union2",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_union2_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union2", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union2, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_union2(void_ptr _ptr)\n\nAttributes\n----------\nfd : int\n\nwin32 : anon_struct8\n\nnvSciBufObject : Any\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union2, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union2, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union2, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union2, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union2_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)o);
  p->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_handle);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_handle) {
    e = (*v)(((PyObject *)p->_handle), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc *)o;
  tmp = ((PyObject*)p->_handle);
  p->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union2 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_handle(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6handle_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_size(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_4size_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc[] = {
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_type, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_type, 0, 0},
  {"handle", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_handle, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_handle, 0, 0},
  {"size", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_size, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_size, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_flags, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_flags, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_reserved, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalMemoryHandleDesc(void_ptr _ptr=0)\n\nExternal memory handle descriptor\n\nAttributes\n----------\ntype : cudaExternalMemoryHandleType\n    Type of the handle\nhandle : anon_union2\n\nsize : unsigned long long\n    Size of the memory allocation\nflags : unsigned int\n    Flags must either be zero or cudaExternalMemoryDedicated\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc_spec = {
  "cuda.bindings.runtime.cudaExternalMemoryHandleDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalMemoryHandleDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaExternalMemoryHandleDesc(void_ptr _ptr=0)\n\nExternal memory handle descriptor\n\nAttributes\n----------\ntype : cudaExternalMemoryHandleType\n    Type of the handle\nhandle : anon_union2\n\nsize : unsigned long long\n    Size of the memory allocation\nflags : unsigned int\n    Flags must either be zero or cudaExternalMemoryDedicated\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_offset(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_offset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6offset_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_size(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_4size_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc[] = {
  {"offset", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_offset, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_offset, 0, 0},
  {"size", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_size, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_size, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_flags, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_flags, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_reserved, __pyx_setprop_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalMemoryBufferDesc(void_ptr _ptr=0)\n\nExternal memory buffer descriptor\n\nAttributes\n----------\noffset : unsigned long long\n    Offset into the memory object where the buffer's base is\nsize : unsigned long long\n    Size of the buffer\nflags : unsigned int\n    Flags reserved for future use. Must be zero.\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc_spec = {
  "cuda.bindings.runtime.cudaExternalMemoryBufferDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalMemoryBufferDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExternalMemoryBufferDesc(void_ptr _ptr=0)\n\nExternal memory buffer descriptor\n\nAttributes\n----------\noffset : unsigned long long\n    Offset into the memory object where the buffer's base is\nsize : unsigned long long\n    Size of the buffer\nflags : unsigned int\n    Flags reserved for future use. Must be zero.\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_formatDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None);
  p->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_formatDesc);
  Py_CLEAR(p->_extent);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_formatDesc) {
    e = (*v)(((PyObject *)p->_formatDesc), a); if (e) return e;
  }
  if (p->_extent) {
    e = (*v)(((PyObject *)p->_extent), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc *)o;
  tmp = ((PyObject*)p->_formatDesc);
  p->_formatDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_extent);
  p->_extent = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExtent *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_offset(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_offset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6offset_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_formatDesc(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_formatDesc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10formatDesc_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_extent(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_extent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6extent_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_numLevels(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_numLevels(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9numLevels_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc[] = {
  {"offset", __pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_offset, __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_offset, 0, 0},
  {"formatDesc", __pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_formatDesc, __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_formatDesc, 0, 0},
  {"extent", __pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_extent, __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_extent, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_flags, __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_flags, 0, 0},
  {"numLevels", __pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_numLevels, __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_numLevels, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_reserved, __pyx_setprop_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalMemoryMipmappedArrayDesc(void_ptr _ptr=0)\n\nExternal memory mipmap descriptor\n\nAttributes\n----------\noffset : unsigned long long\n    Offset into the memory object where the base level of the mipmap\n    chain is.\nformatDesc : cudaChannelFormatDesc\n    Format of base level of the mipmap chain\nextent : cudaExtent\n    Dimensions of base level of the mipmap chain\nflags : unsigned int\n    Flags associated with CUDA mipmapped arrays. See\n    cudaMallocMipmappedArray\nnumLevels : unsigned int\n    Total number of levels in the mipmap chain\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc_spec = {
  "cuda.bindings.runtime.cudaExternalMemoryMipmappedArrayDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalMemoryMipmappedArrayDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaExternalMemoryMipmappedArrayDesc(void_ptr _ptr=0)\n\nExternal memory mipmap descriptor\n\nAttributes\n----------\noffset : unsigned long long\n    Offset into the memory object where the base level of the mipmap\n    chain is.\nformatDesc : cudaChannelFormatDesc\n    Format of base level of the mipmap chain\nextent : cudaExtent\n    Dimensions of base level of the mipmap chain\nflags : unsigned int\n    Flags associated with CUDA mipmapped arrays. See\n    cudaMallocMipmappedArray\nnumLevels : unsigned int\n    Total number of levels in the mipmap chain\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct9(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct9(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct9) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct9_handle(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_6handle_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct9_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_6handle_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_struct9_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_4name_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct9_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_4name_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct9[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct9_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct9_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_struct9_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct9[] = {
  {"handle", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct9_handle, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct9_handle, 0, 0},
  {"name", __pyx_getprop_4cuda_8bindings_7runtime_12anon_struct9_name, __pyx_setprop_4cuda_8bindings_7runtime_12anon_struct9_name, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct9_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct9},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct9(void_ptr _ptr)\n\nAttributes\n----------\nhandle : Any\n\nname : Any\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct9},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct9},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct9},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct9_spec = {
  "cuda.bindings.runtime.anon_struct9",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct9_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct9 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct9", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct9, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct9(void_ptr _ptr)\n\nAttributes\n----------\nhandle : Any\n\nname : Any\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct9, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct9, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_struct9_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct9, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union3(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)o);
  p->_win32 = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union3(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union3) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_win32);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union3(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_win32) {
    e = (*v)(((PyObject *)p->_win32), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union3(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)o;
  tmp = ((PyObject*)p->_win32);
  p->_win32 = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct9 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union3_fd(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_2fd_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union3_fd(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_2fd_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union3_win32(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5win32_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union3_win32(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_5win32_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union3_nvSciSyncObj(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union3_nvSciSyncObj(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_12nvSciSyncObj_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union3[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union3_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union3_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union3_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union3[] = {
  {"fd", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union3_fd, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union3_fd, 0, 0},
  {"win32", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union3_win32, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union3_win32, 0, 0},
  {"nvSciSyncObj", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union3_nvSciSyncObj, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union3_nvSciSyncObj, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union3_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union3},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union3(void_ptr _ptr)\n\nAttributes\n----------\nfd : int\n\nwin32 : anon_struct9\n\nnvSciSyncObj : Any\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union3},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_union3},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union3},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union3},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union3_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union3},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union3_spec = {
  "cuda.bindings.runtime.anon_union3",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_union3_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union3 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union3", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union3, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_union3(void_ptr _ptr)\n\nAttributes\n----------\nfd : int\n\nwin32 : anon_struct9\n\nnvSciSyncObj : Any\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union3, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union3, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union3, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union3, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union3_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union3, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)o);
  p->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_handle);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_handle) {
    e = (*v)(((PyObject *)p->_handle), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc *)o;
  tmp = ((PyObject*)p->_handle);
  p->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union3 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_handle(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6handle_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc[] = {
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_type, __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_type, 0, 0},
  {"handle", __pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_handle, __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_handle, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_flags, __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_flags, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_reserved, __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreHandleDesc(void_ptr _ptr=0)\n\nExternal semaphore handle descriptor\n\nAttributes\n----------\ntype : cudaExternalSemaphoreHandleType\n    Type of the handle\nhandle : anon_union3\n\nflags : unsigned int\n    Flags reserved for the future. Must be zero.\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc_spec = {
  "cuda.bindings.runtime.cudaExternalSemaphoreHandleDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalSemaphoreHandleDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaExternalSemaphoreHandleDesc(void_ptr _ptr=0)\n\nExternal semaphore handle descriptor\n\nAttributes\n----------\ntype : cudaExternalSemaphoreHandleType\n    Type of the handle\nhandle : anon_union3\n\nflags : unsigned int\n    Flags reserved for the future. Must be zero.\nreserved : list[unsigned int]\n    Must be zero\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct10(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct10(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct10) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct10_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5value_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct10_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct10[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct10_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct10_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct10_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct10[] = {
  {"value", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct10_value, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct10_value, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct10_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct10},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct10(void_ptr _ptr)\n\nAttributes\n----------\nvalue : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct10},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct10},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct10},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct10_spec = {
  "cuda.bindings.runtime.anon_struct10",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct10_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct10 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct10", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct10, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct10(void_ptr _ptr)\n\nAttributes\n----------\nvalue : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct10, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct10, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct10_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct10, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union4(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union4(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union4) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union4_fence(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5fence_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union4_fence(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_5fence_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union4_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union4_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union4[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union4_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union4_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union4_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union4[] = {
  {"fence", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union4_fence, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union4_fence, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union4_reserved, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union4_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union4_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union4},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union4(void_ptr _ptr)\n\nAttributes\n----------\nfence : Any\n\nreserved : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union4},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union4},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union4_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union4},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union4_spec = {
  "cuda.bindings.runtime.anon_union4",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_union4_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union4 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union4", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union4, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_union4(void_ptr _ptr)\n\nAttributes\n----------\nfence : Any\n\nreserved : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union4, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union4, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union4_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union4, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct11(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct11(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct11) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct11_key(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3key_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct11_key(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3key_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct11[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct11_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct11_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct11_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct11[] = {
  {"key", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct11_key, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct11_key, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct11_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct11},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct11(void_ptr _ptr)\n\nAttributes\n----------\nkey : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct11},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct11},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct11},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct11_spec = {
  "cuda.bindings.runtime.anon_struct11",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct11_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct11 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct11", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct11, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct11(void_ptr _ptr)\n\nAttributes\n----------\nkey : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct11, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct11, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct11_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct11, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct12(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)o);
  p->_fence = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)Py_None); Py_INCREF(Py_None);
  p->_nvSciSync = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)Py_None); Py_INCREF(Py_None);
  p->_keyedMutex = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct12(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct12) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_fence);
  Py_CLEAR(p->_nvSciSync);
  Py_CLEAR(p->_keyedMutex);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct12(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_fence) {
    e = (*v)(((PyObject *)p->_fence), a); if (e) return e;
  }
  if (p->_nvSciSync) {
    e = (*v)(((PyObject *)p->_nvSciSync), a); if (e) return e;
  }
  if (p->_keyedMutex) {
    e = (*v)(((PyObject *)p->_keyedMutex), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct12(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)o;
  tmp = ((PyObject*)p->_fence);
  p->_fence = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct10 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_nvSciSync);
  p->_nvSciSync = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union4 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_keyedMutex);
  p->_keyedMutex = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct11 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct12_fence(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5fence_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct12_fence(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_5fence_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct12_nvSciSync(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct12_nvSciSync(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9nvSciSync_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct12_keyedMutex(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct12_keyedMutex(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_10keyedMutex_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct12_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct12_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct12[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct12_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct12_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct12_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct12[] = {
  {"fence", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct12_fence, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct12_fence, 0, 0},
  {"nvSciSync", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct12_nvSciSync, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct12_nvSciSync, 0, 0},
  {"keyedMutex", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct12_keyedMutex, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct12_keyedMutex, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct12_reserved, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct12_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct12_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct12},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct12(void_ptr _ptr)\n\nAttributes\n----------\nfence : anon_struct10\n\nnvSciSync : anon_union4\n\nkeyedMutex : anon_struct11\n\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct12},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct12},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct12},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct12},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct12},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct12_spec = {
  "cuda.bindings.runtime.anon_struct12",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct12_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct12 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct12", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct12, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct12(void_ptr _ptr)\n\nAttributes\n----------\nfence : anon_struct10\n\nnvSciSync : anon_union4\n\nkeyedMutex : anon_struct11\n\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct12, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct12, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct12, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct12, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct12_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct12, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_params = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_params);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_params) {
    e = (*v)(((PyObject *)p->_params), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams *)o;
  tmp = ((PyObject*)p->_params);
  p->_params = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct12 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_params(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_params(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6params_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams[] = {
  {"params", __pyx_getprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_params, __pyx_setprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_params, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_flags, __pyx_setprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_flags, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_reserved, __pyx_setprop_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreSignalParams(void_ptr _ptr=0)\n\nExternal semaphore signal parameters, compatible with driver type\n\nAttributes\n----------\nparams : anon_struct12\n\nflags : unsigned int\n    Only when cudaExternalSemaphoreSignalParams is used to signal a\n    cudaExternalSemaphore_t of type\n    cudaExternalSemaphoreHandleTypeNvSciSync, the valid flag is\n    cudaExternalSemaphoreSignalSkipNvSciBufMemSync: which indicates\n    that while signaling the cudaExternalSemaphore_t, no memory\n    synchronization operations should be performed for any external\n    memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For\n    all other types of cudaExternalSemaphore_t, flags must be zero.\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams_spec = {
  "cuda.bindings.runtime.cudaExternalSemaphoreSignalParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalSemaphoreSignalParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaExternalSemaphoreSignalParams(void_ptr _ptr=0)\n\nExternal semaphore signal parameters, compatible with driver type\n\nAttributes\n----------\nparams : anon_struct12\n\nflags : unsigned int\n    Only when cudaExternalSemaphoreSignalParams is used to signal a\n    cudaExternalSemaphore_t of type\n    cudaExternalSemaphoreHandleTypeNvSciSync, the valid flag is\n    cudaExternalSemaphoreSignalSkipNvSciBufMemSync: which indicates\n    that while signaling the cudaExternalSemaphore_t, no memory\n    synchronization operations should be performed for any external\n    memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For\n    all other types of cudaExternalSemaphore_t, flags must be zero.\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct13(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct13(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct13) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct13_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5value_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct13_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct13[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct13_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct13_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct13_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct13[] = {
  {"value", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct13_value, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct13_value, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct13_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct13},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct13(void_ptr _ptr)\n\nAttributes\n----------\nvalue : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct13},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct13},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct13},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct13_spec = {
  "cuda.bindings.runtime.anon_struct13",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct13_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct13 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct13", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct13, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct13(void_ptr _ptr)\n\nAttributes\n----------\nvalue : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct13, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct13, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct13_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct13, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union5(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union5(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union5) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union5_fence(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5fence_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union5_fence(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_5fence_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union5_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union5_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union5[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union5_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union5_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union5_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union5[] = {
  {"fence", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union5_fence, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union5_fence, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union5_reserved, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union5_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union5_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union5},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union5(void_ptr _ptr)\n\nAttributes\n----------\nfence : Any\n\nreserved : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union5},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union5},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union5_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union5},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union5_spec = {
  "cuda.bindings.runtime.anon_union5",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_union5_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union5 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union5", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union5, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_union5(void_ptr _ptr)\n\nAttributes\n----------\nfence : Any\n\nreserved : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union5, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union5, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union5_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union5, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct14(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct14(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct14) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct14_key(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3key_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct14_key(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3key_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct14_timeoutMs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct14_timeoutMs(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9timeoutMs_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct14[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct14_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct14_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct14_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct14[] = {
  {"key", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct14_key, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct14_key, 0, 0},
  {"timeoutMs", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct14_timeoutMs, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct14_timeoutMs, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct14_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct14},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct14(void_ptr _ptr)\n\nAttributes\n----------\nkey : unsigned long long\n\ntimeoutMs : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct14},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct14},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct14},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct14_spec = {
  "cuda.bindings.runtime.anon_struct14",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct14_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct14 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct14", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct14, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct14(void_ptr _ptr)\n\nAttributes\n----------\nkey : unsigned long long\n\ntimeoutMs : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct14, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct14, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct14_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct14, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct15(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)o);
  p->_fence = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)Py_None); Py_INCREF(Py_None);
  p->_nvSciSync = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)Py_None); Py_INCREF(Py_None);
  p->_keyedMutex = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct15(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct15) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_fence);
  Py_CLEAR(p->_nvSciSync);
  Py_CLEAR(p->_keyedMutex);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct15(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_fence) {
    e = (*v)(((PyObject *)p->_fence), a); if (e) return e;
  }
  if (p->_nvSciSync) {
    e = (*v)(((PyObject *)p->_nvSciSync), a); if (e) return e;
  }
  if (p->_keyedMutex) {
    e = (*v)(((PyObject *)p->_keyedMutex), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct15(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)o;
  tmp = ((PyObject*)p->_fence);
  p->_fence = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct13 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_nvSciSync);
  p->_nvSciSync = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union5 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_keyedMutex);
  p->_keyedMutex = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct14 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct15_fence(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5fence_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct15_fence(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_5fence_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct15_nvSciSync(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct15_nvSciSync(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9nvSciSync_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct15_keyedMutex(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct15_keyedMutex(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_10keyedMutex_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct15_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct15_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct15[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct15_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct15_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct15_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct15[] = {
  {"fence", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct15_fence, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct15_fence, 0, 0},
  {"nvSciSync", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct15_nvSciSync, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct15_nvSciSync, 0, 0},
  {"keyedMutex", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct15_keyedMutex, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct15_keyedMutex, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct15_reserved, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct15_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct15_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct15},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct15(void_ptr _ptr)\n\nAttributes\n----------\nfence : anon_struct13\n\nnvSciSync : anon_union5\n\nkeyedMutex : anon_struct14\n\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct15},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct15},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct15},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct15},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct15},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct15_spec = {
  "cuda.bindings.runtime.anon_struct15",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct15_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct15 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct15", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct15, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct15(void_ptr _ptr)\n\nAttributes\n----------\nfence : anon_struct13\n\nnvSciSync : anon_union5\n\nkeyedMutex : anon_struct14\n\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct15, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct15, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct15, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct15, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct15_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct15, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_params = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_params);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_params) {
    e = (*v)(((PyObject *)p->_params), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams *)o;
  tmp = ((PyObject*)p->_params);
  p->_params = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct15 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_params(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_params(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6params_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams[] = {
  {"params", __pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_params, __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_params, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_flags, __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_flags, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_reserved, __pyx_setprop_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreWaitParams(void_ptr _ptr=0)\n\nExternal semaphore wait parameters, compatible with driver type\n\nAttributes\n----------\nparams : anon_struct15\n\nflags : unsigned int\n    Only when cudaExternalSemaphoreSignalParams is used to signal a\n    cudaExternalSemaphore_t of type\n    cudaExternalSemaphoreHandleTypeNvSciSync, the valid flag is\n    cudaExternalSemaphoreSignalSkipNvSciBufMemSync: which indicates\n    that while waiting for the cudaExternalSemaphore_t, no memory\n    synchronization operations should be performed for any external\n    memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For\n    all other types of cudaExternalSemaphore_t, flags must be zero.\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams_spec = {
  "cuda.bindings.runtime.cudaExternalSemaphoreWaitParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalSemaphoreWaitParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaExternalSemaphoreWaitParams(void_ptr _ptr=0)\n\nExternal semaphore wait parameters, compatible with driver type\n\nAttributes\n----------\nparams : anon_struct15\n\nflags : unsigned int\n    Only when cudaExternalSemaphoreSignalParams is used to signal a\n    cudaExternalSemaphore_t of type\n    cudaExternalSemaphoreHandleTypeNvSciSync, the valid flag is\n    cudaExternalSemaphoreSignalSkipNvSciBufMemSync: which indicates\n    that while waiting for the cudaExternalSemaphore_t, no memory\n    synchronization operations should be performed for any external\n    memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For\n    all other types of cudaExternalSemaphore_t, flags must be zero.\nreserved : list[unsigned int]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResource(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResource(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResource) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaDevSmResource_smCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaDevSmResource_smCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7smCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaDevSmResource_minSmPartitionSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaDevSmResource_minSmPartitionSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_18minSmPartitionSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaDevSmResource_smCoscheduledAlignment(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaDevSmResource_smCoscheduledAlignment(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_22smCoscheduledAlignment_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_17cudaDevSmResource_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_17cudaDevSmResource_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaDevSmResource[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaDevSmResource_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaDevSmResource_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17cudaDevSmResource_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaDevSmResource[] = {
  {"smCount", __pyx_getprop_4cuda_8bindings_7runtime_17cudaDevSmResource_smCount, __pyx_setprop_4cuda_8bindings_7runtime_17cudaDevSmResource_smCount, 0, 0},
  {"minSmPartitionSize", __pyx_getprop_4cuda_8bindings_7runtime_17cudaDevSmResource_minSmPartitionSize, __pyx_setprop_4cuda_8bindings_7runtime_17cudaDevSmResource_minSmPartitionSize, 0, 0},
  {"smCoscheduledAlignment", __pyx_getprop_4cuda_8bindings_7runtime_17cudaDevSmResource_smCoscheduledAlignment, __pyx_setprop_4cuda_8bindings_7runtime_17cudaDevSmResource_smCoscheduledAlignment, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_17cudaDevSmResource_flags, __pyx_setprop_4cuda_8bindings_7runtime_17cudaDevSmResource_flags, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResource},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaDevSmResource(void_ptr _ptr=0)\n\nData for SM-related resources All parameters in this structure are\nOUTPUT only. Do not write to any of the fields in this structure.\n\nAttributes\n----------\nsmCount : unsigned int\n    The amount of streaming multiprocessors available in this resource.\nminSmPartitionSize : unsigned int\n    The minimum number of streaming multiprocessors required to\n    partition this resource.\nsmCoscheduledAlignment : unsigned int\n    The number of streaming multiprocessors in this resource that are\n    guaranteed to be co-scheduled on the same GPU processing cluster.\n    smCount will be a multiple of this value, unless the backfill flag\n    is set.\nflags : unsigned int\n    The flags set on this SM resource. For available flags see\n    ::cudaDevSmResourceGroup_flags.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaDevSmResource},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaDevSmResource},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResource},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource_spec = {
  "cuda.bindings.runtime.cudaDevSmResource",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDevSmResource", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResource, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaDevSmResource(void_ptr _ptr=0)\n\nData for SM-related resources All parameters in this structure are\nOUTPUT only. Do not write to any of the fields in this structure.\n\nAttributes\n----------\nsmCount : unsigned int\n    The amount of streaming multiprocessors available in this resource.\nminSmPartitionSize : unsigned int\n    The minimum number of streaming multiprocessors required to\n    partition this resource.\nsmCoscheduledAlignment : unsigned int\n    The number of streaming multiprocessors in this resource that are\n    guaranteed to be co-scheduled on the same GPU processing cluster.\n    smCount will be a multiple of this value, unless the backfill flag\n    is set.\nflags : unsigned int\n    The flags set on this SM resource. For available flags see\n    ::cudaDevSmResourceGroup_flags.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaDevSmResource, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaDevSmResource, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_17cudaDevSmResource_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResource, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_device(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_device(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6device_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_wqConcurrencyLimit(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_wqConcurrencyLimit(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_18wqConcurrencyLimit_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_sharingScope(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_sharingScope(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12sharingScope_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource[] = {
  {"device", __pyx_getprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_device, __pyx_setprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_device, 0, 0},
  {"wqConcurrencyLimit", __pyx_getprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_wqConcurrencyLimit, __pyx_setprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_wqConcurrencyLimit, 0, 0},
  {"sharingScope", __pyx_getprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_sharingScope, __pyx_setprop_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_sharingScope, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaDevWorkqueueConfigResource(void_ptr _ptr=0)\n\nData for workqueue configuration related resources\n\nAttributes\n----------\ndevice : int\n    The device on which the workqueue resources are available\nwqConcurrencyLimit : unsigned int\n    The expected maximum number of concurrent stream-ordered workloads\nsharingScope : cudaDevWorkqueueConfigScope\n    The sharing scope for the workqueue resources\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource_spec = {
  "cuda.bindings.runtime.cudaDevWorkqueueConfigResource",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDevWorkqueueConfigResource", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaDevWorkqueueConfigResource(void_ptr _ptr=0)\n\nData for workqueue configuration related resources\n\nAttributes\n----------\ndevice : int\n    The device on which the workqueue resources are available\nwqConcurrencyLimit : unsigned int\n    The expected maximum number of concurrent stream-ordered workloads\nsharingScope : cudaDevWorkqueueConfigScope\n    The sharing scope for the workqueue resources\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevWorkqueueResource(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevWorkqueueResource(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevWorkqueueResource) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaDevWorkqueueResource[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaDevWorkqueueResource[] = {
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_reserved, __pyx_setprop_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevWorkqueueResource},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaDevWorkqueueResource(void_ptr _ptr=0)\n\nHandle to a pre-existing workqueue related resource\n\nAttributes\n----------\nreserved : bytes\n    Reserved for future use\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaDevWorkqueueResource},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaDevWorkqueueResource},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevWorkqueueResource},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource_spec = {
  "cuda.bindings.runtime.cudaDevWorkqueueResource",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDevWorkqueueResource", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevWorkqueueResource, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaDevWorkqueueResource(void_ptr _ptr=0)\n\nHandle to a pre-existing workqueue related resource\n\nAttributes\n----------\nreserved : bytes\n    Reserved for future use\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaDevWorkqueueResource, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaDevWorkqueueResource, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDevWorkqueueResource, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_smCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_smCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7smCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_coscheduledSmCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_coscheduledSmCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_18coscheduledSmCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_preferredCoscheduledSmCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_preferredCoscheduledSmCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_27preferredCoscheduledSmCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st[] = {
  {"smCount", __pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_smCount, __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_smCount, 0, 0},
  {"coscheduledSmCount", __pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_coscheduledSmCount, __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_coscheduledSmCount, 0, 0},
  {"preferredCoscheduledSmCount", __pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_preferredCoscheduledSmCount, __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_preferredCoscheduledSmCount, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_flags, __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_flags, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_reserved, __pyx_setprop_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaDevSmResourceGroupParams_st(void_ptr _ptr=0)\n\nInput data for splitting SMs\n\nAttributes\n----------\nsmCount : unsigned int\n    The amount of SMs available in this resource.\ncoscheduledSmCount : unsigned int\n    The amount of co-scheduled SMs grouped together for locality\n    purposes.\npreferredCoscheduledSmCount : unsigned int\n    When possible, combine co-scheduled groups together into larger\n    groups of this size.\nflags : unsigned int\n    Combination of `cudaDevSmResourceGroup_flags` values to indicate\n    this this group is created.\nreserved : list[unsigned int]\n    Reserved for future use - ensure this is is zero initialized.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st_spec = {
  "cuda.bindings.runtime.cudaDevSmResourceGroupParams_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDevSmResourceGroupParams_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaDevSmResourceGroupParams_st(void_ptr _ptr=0)\n\nInput data for splitting SMs\n\nAttributes\n----------\nsmCount : unsigned int\n    The amount of SMs available in this resource.\ncoscheduledSmCount : unsigned int\n    The amount of co-scheduled SMs grouped together for locality\n    purposes.\npreferredCoscheduledSmCount : unsigned int\n    When possible, combine co-scheduled groups together into larger\n    groups of this size.\nflags : unsigned int\n    Combination of `cudaDevSmResourceGroup_flags` values to indicate\n    this this group is created.\nreserved : list[unsigned int]\n    Reserved for future use - ensure this is is zero initialized.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResource_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)o);
  p->_sm = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)Py_None); Py_INCREF(Py_None);
  p->_wqConfig = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)Py_None); Py_INCREF(Py_None);
  p->_wq = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResource_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResource_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_sm);
  Py_CLEAR(p->_wqConfig);
  Py_CLEAR(p->_wq);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaDevResource_st(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_sm) {
    e = (*v)(((PyObject *)p->_sm), a); if (e) return e;
  }
  if (p->_wqConfig) {
    e = (*v)(((PyObject *)p->_wqConfig), a); if (e) return e;
  }
  if (p->_wq) {
    e = (*v)(((PyObject *)p->_wq), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaDevResource_st(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st *)o;
  tmp = ((PyObject*)p->_sm);
  p->_sm = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResource *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_wqConfig);
  p->_wqConfig = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_wq);
  p->_wq = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevWorkqueueResource *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st__internal_padding(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st__internal_padding(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_17_internal_padding_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_sm(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_sm(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2sm_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_wqConfig(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_wqConfig(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_8wqConfig_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_wq(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_wq(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_2wq_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st__oversize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st__oversize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9_oversize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_nextResource(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_nextResource(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_12nextResource_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaDevResource_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaDevResource_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaDevResource_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_18cudaDevResource_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaDevResource_st[] = {
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_type, __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_type, 0, 0},
  {"_internal_padding", __pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st__internal_padding, __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st__internal_padding, 0, 0},
  {"sm", __pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_sm, __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_sm, 0, 0},
  {"wqConfig", __pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_wqConfig, __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_wqConfig, 0, 0},
  {"wq", __pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_wq, __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_wq, 0, 0},
  {"_oversize", __pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st__oversize, __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st__oversize, 0, 0},
  {"nextResource", __pyx_getprop_4cuda_8bindings_7runtime_18cudaDevResource_st_nextResource, __pyx_setprop_4cuda_8bindings_7runtime_18cudaDevResource_st_nextResource, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResource_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaDevResource_st(void_ptr _ptr=0)\n\nA tagged union describing different resources identified by the\ntype field. This structure should not be directly modified outside\nof the API that created it. struct enumcudaDevResourceTypetype;\nunion structcudaDevSmResourcesm;\nstructcudaDevWorkqueueConfigResourcewqConfig;\nstructcudaDevWorkqueueResourcewq; ; ;  - If `typename` is\n`cudaDevResourceTypeInvalid`, this resoure is not valid and cannot\nbe further accessed.    - If `typename` is `cudaDevResourceTypeSm`,\nthe cudaDevSmResource structure `sm` is filled in. For example,\n`sm.smCount` will reflect the amount of streaming multiprocessors\navailable in this resource.    - If `typename` is\n`cudaDevResourceTypeWorkqueueConfig`, the\ncudaDevWorkqueueConfigResource structure `wqConfig` is filled in.\n- If `typename` is `cudaDevResourceTypeWorkqueue`, the\ncudaDevWorkqueueResource structure `wq` is filled in.\n\nAttributes\n----------\ntype : cudaDevResourceType\n    Type of resource, dictates which union field was last set\n_internal_padding : bytes\n\nsm : cudaDevSmResource\n    Resource corresponding to cudaDevResourceTypeSm `typename`.\nwqConfig : cudaDevWorkqueueConfigResource\n    Resource corresponding to cudaDevResourceTypeWorkqueueConfig\n    `typename`.\nwq : cudaDevWorkqueueResource\n    Resource corresponding to cudaDevResourceTypeWorkqueue `typename`.\n_oversize : bytes\n\nnextResource : cudaDevResource_st\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaDevResource_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaDevResource_st},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaDevResource_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaDevResource_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResource_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st_spec = {
  "cuda.bindings.runtime.cudaDevResource_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDevResource_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaDevResource_st(void_ptr _ptr=0)\n\nA tagged union describing different resources identified by the\ntype field. This structure should not be directly modified outside\nof the API that created it. struct enumcudaDevResourceTypetype;\nunion structcudaDevSmResourcesm;\nstructcudaDevWorkqueueConfigResourcewqConfig;\nstructcudaDevWorkqueueResourcewq; ; ;  - If `typename` is\n`cudaDevResourceTypeInvalid`, this resoure is not valid and cannot\nbe further accessed.    - If `typename` is `cudaDevResourceTypeSm`,\nthe cudaDevSmResource structure `sm` is filled in. For example,\n`sm.smCount` will reflect the amount of streaming multiprocessors\navailable in this resource.    - If `typename` is\n`cudaDevResourceTypeWorkqueueConfig`, the\ncudaDevWorkqueueConfigResource structure `wqConfig` is filled in.\n- If `typename` is `cudaDevResourceTypeWorkqueue`, the\ncudaDevWorkqueueResource structure `wq` is filled in.\n\nAttributes\n----------\ntype : cudaDevResourceType\n    Type of resource, dictates which union field was last set\n_internal_padding : bytes\n\nsm : cudaDevSmResource\n    Resource corresponding to cudaDevResourceTypeSm `typename`.\nwqConfig : cudaDevWorkqueueConfigResource\n    Resource corresponding to cudaDevResourceTypeWorkqueueConfig\n    `typename`.\nwq : cudaDevWorkqueueResource\n    Resource corresponding to cudaDevResourceTypeWorkqueue `typename`.\n_oversize : bytes\n\nnextResource : cudaDevResource_st\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_functionTable(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_functionTable(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13functionTable_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_functionWindowSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_functionWindowSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_18functionWindowSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_dataTable(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_dataTable(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9dataTable_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_dataWindowSize(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_dataWindowSize(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_14dataWindowSize_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable[] = {
  {"functionTable", __pyx_getprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_functionTable, __pyx_setprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_functionTable, 0, 0},
  {"functionWindowSize", __pyx_getprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_functionWindowSize, __pyx_setprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_functionWindowSize, 0, 0},
  {"dataTable", __pyx_getprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_dataTable, __pyx_setprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_dataTable, 0, 0},
  {"dataWindowSize", __pyx_getprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_dataWindowSize, __pyx_setprop_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_dataWindowSize, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudalibraryHostUniversalFunctionAndDataTable(void_ptr _ptr=0)\n\nAttributes\n----------\nfunctionTable : Any\n\nfunctionWindowSize : size_t\n\ndataTable : Any\n\ndataWindowSize : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable_spec = {
  "cuda.bindings.runtime.cudalibraryHostUniversalFunctionAndDataTable",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudalibraryHostUniversalFunctionAndDataTable", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudalibraryHostUniversalFunctionAndDataTable(void_ptr _ptr=0)\n\nAttributes\n----------\nfunctionTable : Any\n\nfunctionWindowSize : size_t\n\ndataTable : Any\n\ndataWindowSize : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernelNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  p->_blockDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  p->_cykernelParams = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernelNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernelNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_gridDim);
  Py_CLEAR(p->_blockDim);
  Py_CLEAR(p->_cykernelParams);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaKernelNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_gridDim) {
    e = (*v)(((PyObject *)p->_gridDim), a); if (e) return e;
  }
  if (p->_blockDim) {
    e = (*v)(((PyObject *)p->_blockDim), a); if (e) return e;
  }
  if (p->_cykernelParams) {
    e = (*v)(((PyObject *)p->_cykernelParams), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaKernelNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams *)o;
  tmp = ((PyObject*)p->_gridDim);
  p->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_blockDim);
  p->_blockDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_cykernelParams);
  p->_cykernelParams = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_func(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_func(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_4func_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_gridDim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_gridDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7gridDim_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_blockDim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_blockDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_8blockDim_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_sharedMemBytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_sharedMemBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_14sharedMemBytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_kernelParams(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_kernelParams(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12kernelParams_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_extra(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_extra(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_5extra_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaKernelNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaKernelNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaKernelNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaKernelNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaKernelNodeParams[] = {
  {"func", __pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_func, __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_func, 0, 0},
  {"gridDim", __pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_gridDim, __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_gridDim, 0, 0},
  {"blockDim", __pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_blockDim, __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_blockDim, 0, 0},
  {"sharedMemBytes", __pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_sharedMemBytes, __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_sharedMemBytes, 0, 0},
  {"kernelParams", __pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_kernelParams, __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_kernelParams, 0, 0},
  {"extra", __pyx_getprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_extra, __pyx_setprop_4cuda_8bindings_7runtime_20cudaKernelNodeParams_extra, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernelNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaKernelNodeParams(void_ptr _ptr=0)\n\nCUDA GPU kernel node parameters\n\nAttributes\n----------\nfunc : Any\n    Kernel to launch\ngridDim : dim3\n    Grid dimensions\nblockDim : dim3\n    Block dimensions\nsharedMemBytes : unsigned int\n    Dynamic shared-memory size per thread block in bytes\nkernelParams : Any\n    Array of pointers to individual kernel arguments\nextra : Any\n    Pointer to kernel arguments in the \"extra\" format\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaKernelNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaKernelNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaKernelNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaKernelNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernelNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams_spec = {
  "cuda.bindings.runtime.cudaKernelNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaKernelNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernelNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaKernelNodeParams(void_ptr _ptr=0)\n\nCUDA GPU kernel node parameters\n\nAttributes\n----------\nfunc : Any\n    Kernel to launch\ngridDim : dim3\n    Grid dimensions\nblockDim : dim3\n    Block dimensions\nsharedMemBytes : unsigned int\n    Dynamic shared-memory size per thread block in bytes\nkernelParams : Any\n    Array of pointers to individual kernel arguments\nextra : Any\n    Pointer to kernel arguments in the \"extra\" format\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaKernelNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaKernelNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaKernelNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaKernelNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaKernelNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaKernelNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  p->_blockDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  p->_cykernelParams = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)Py_None); Py_INCREF(Py_None);
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_gridDim);
  Py_CLEAR(p->_blockDim);
  Py_CLEAR(p->_cykernelParams);
  Py_CLEAR(p->_ctx);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_gridDim) {
    e = (*v)(((PyObject *)p->_gridDim), a); if (e) return e;
  }
  if (p->_blockDim) {
    e = (*v)(((PyObject *)p->_blockDim), a); if (e) return e;
  }
  if (p->_cykernelParams) {
    e = (*v)(((PyObject *)p->_cykernelParams), a); if (e) return e;
  }
  if (p->_ctx) {
    e = (*v)(((PyObject *)p->_ctx), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)o;
  tmp = ((PyObject*)p->_gridDim);
  p->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_blockDim);
  p->_blockDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_cykernelParams);
  p->_cykernelParams = ((struct __pyx_obj_4cuda_8bindings_7runtime__HelperKernelParams *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_ctx);
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_func(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_func(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_4func_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_gridDim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_gridDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7gridDim_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_blockDim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_blockDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_8blockDim_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_sharedMemBytes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_sharedMemBytes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_14sharedMemBytes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_kernelParams(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_kernelParams(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12kernelParams_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_extra(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_extra(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_5extra_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_ctx(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_ctx(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3ctx_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2[] = {
  {"func", __pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_func, __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_func, 0, 0},
  {"gridDim", __pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_gridDim, __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_gridDim, 0, 0},
  {"blockDim", __pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_blockDim, __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_blockDim, 0, 0},
  {"sharedMemBytes", __pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_sharedMemBytes, __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_sharedMemBytes, 0, 0},
  {"kernelParams", __pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_kernelParams, __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_kernelParams, 0, 0},
  {"extra", __pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_extra, __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_extra, 0, 0},
  {"ctx", __pyx_getprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_ctx, __pyx_setprop_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_ctx, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaKernelNodeParamsV2(void_ptr _ptr=0)\n\nCUDA GPU kernel node parameters\n\nAttributes\n----------\nfunc : Any\n    Kernel to launch\ngridDim : dim3\n    Grid dimensions\nblockDim : dim3\n    Block dimensions\nsharedMemBytes : unsigned int\n    Dynamic shared-memory size per thread block in bytes\nkernelParams : Any\n    Array of pointers to individual kernel arguments\nextra : Any\n    Pointer to kernel arguments in the \"extra\" format\nctx : cudaExecutionContext_t\n    Context in which to run the kernel. If NULL will try to use the\n    current context.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2_spec = {
  "cuda.bindings.runtime.cudaKernelNodeParamsV2",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaKernelNodeParamsV2", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaKernelNodeParamsV2(void_ptr _ptr=0)\n\nCUDA GPU kernel node parameters\n\nAttributes\n----------\nfunc : Any\n    Kernel to launch\ngridDim : dim3\n    Grid dimensions\nblockDim : dim3\n    Block dimensions\nsharedMemBytes : unsigned int\n    Dynamic shared-memory size per thread block in bytes\nkernelParams : Any\n    Array of pointers to individual kernel arguments\nextra : Any\n    Pointer to kernel arguments in the \"extra\" format\nctx : cudaExecutionContext_t\n    Context in which to run the kernel. If NULL will try to use the\n    current context.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_extSemArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_extSemArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11extSemArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_paramsArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_paramsArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11paramsArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_numExtSems(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_numExtSems(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10numExtSems_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams[] = {
  {"extSemArray", __pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_extSemArray, __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_extSemArray, 0, 0},
  {"paramsArray", __pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_paramsArray, __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_paramsArray, 0, 0},
  {"numExtSems", __pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_numExtSems, __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_numExtSems, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreSignalNodeParams(void_ptr _ptr=0)\n\nExternal semaphore signal node parameters\n\nAttributes\n----------\nextSemArray : cudaExternalSemaphore_t\n    Array of external semaphore handles.\nparamsArray : cudaExternalSemaphoreSignalParams\n    Array of external semaphore signal parameters.\nnumExtSems : unsigned int\n    Number of handles and parameters supplied in extSemArray and\n    paramsArray.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams_spec = {
  "cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalSemaphoreSignalNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExternalSemaphoreSignalNodeParams(void_ptr _ptr=0)\n\nExternal semaphore signal node parameters\n\nAttributes\n----------\nextSemArray : cudaExternalSemaphore_t\n    Array of external semaphore handles.\nparamsArray : cudaExternalSemaphoreSignalParams\n    Array of external semaphore signal parameters.\nnumExtSems : unsigned int\n    Number of handles and parameters supplied in extSemArray and\n    paramsArray.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_extSemArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_extSemArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11extSemArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_paramsArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_paramsArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11paramsArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_numExtSems(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_numExtSems(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10numExtSems_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2[] = {
  {"extSemArray", __pyx_getprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_extSemArray, __pyx_setprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_extSemArray, 0, 0},
  {"paramsArray", __pyx_getprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_paramsArray, __pyx_setprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_paramsArray, 0, 0},
  {"numExtSems", __pyx_getprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_numExtSems, __pyx_setprop_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_numExtSems, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreSignalNodeParamsV2(void_ptr _ptr=0)\n\nExternal semaphore signal node parameters\n\nAttributes\n----------\nextSemArray : cudaExternalSemaphore_t\n    Array of external semaphore handles.\nparamsArray : cudaExternalSemaphoreSignalParams\n    Array of external semaphore signal parameters.\nnumExtSems : unsigned int\n    Number of handles and parameters supplied in extSemArray and\n    paramsArray.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2_spec = {
  "cuda.bindings.runtime.cudaExternalSemaphoreSignalNodeParamsV2",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalSemaphoreSignalNodeParamsV2", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExternalSemaphoreSignalNodeParamsV2(void_ptr _ptr=0)\n\nExternal semaphore signal node parameters\n\nAttributes\n----------\nextSemArray : cudaExternalSemaphore_t\n    Array of external semaphore handles.\nparamsArray : cudaExternalSemaphoreSignalParams\n    Array of external semaphore signal parameters.\nnumExtSems : unsigned int\n    Number of handles and parameters supplied in extSemArray and\n    paramsArray.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_extSemArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_extSemArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11extSemArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_paramsArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_paramsArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11paramsArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_numExtSems(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_numExtSems(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10numExtSems_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams[] = {
  {"extSemArray", __pyx_getprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_extSemArray, __pyx_setprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_extSemArray, 0, 0},
  {"paramsArray", __pyx_getprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_paramsArray, __pyx_setprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_paramsArray, 0, 0},
  {"numExtSems", __pyx_getprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_numExtSems, __pyx_setprop_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_numExtSems, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreWaitNodeParams(void_ptr _ptr=0)\n\nExternal semaphore wait node parameters\n\nAttributes\n----------\nextSemArray : cudaExternalSemaphore_t\n    Array of external semaphore handles.\nparamsArray : cudaExternalSemaphoreWaitParams\n    Array of external semaphore wait parameters.\nnumExtSems : unsigned int\n    Number of handles and parameters supplied in extSemArray and\n    paramsArray.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams_spec = {
  "cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalSemaphoreWaitNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExternalSemaphoreWaitNodeParams(void_ptr _ptr=0)\n\nExternal semaphore wait node parameters\n\nAttributes\n----------\nextSemArray : cudaExternalSemaphore_t\n    Array of external semaphore handles.\nparamsArray : cudaExternalSemaphoreWaitParams\n    Array of external semaphore wait parameters.\nnumExtSems : unsigned int\n    Number of handles and parameters supplied in extSemArray and\n    paramsArray.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_extSemArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_extSemArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11extSemArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_paramsArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_paramsArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11paramsArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_numExtSems(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_numExtSems(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10numExtSems_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2[] = {
  {"extSemArray", __pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_extSemArray, __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_extSemArray, 0, 0},
  {"paramsArray", __pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_paramsArray, __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_paramsArray, 0, 0},
  {"numExtSems", __pyx_getprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_numExtSems, __pyx_setprop_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_numExtSems, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaExternalSemaphoreWaitNodeParamsV2(void_ptr _ptr=0)\n\nExternal semaphore wait node parameters\n\nAttributes\n----------\nextSemArray : cudaExternalSemaphore_t\n    Array of external semaphore handles.\nparamsArray : cudaExternalSemaphoreWaitParams\n    Array of external semaphore wait parameters.\nnumExtSems : unsigned int\n    Number of handles and parameters supplied in extSemArray and\n    paramsArray.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2_spec = {
  "cuda.bindings.runtime.cudaExternalSemaphoreWaitNodeParamsV2",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaExternalSemaphoreWaitNodeParamsV2", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaExternalSemaphoreWaitNodeParamsV2(void_ptr _ptr=0)\n\nExternal semaphore wait node parameters\n\nAttributes\n----------\nextSemArray : cudaExternalSemaphore_t\n    Array of external semaphore handles.\nparamsArray : cudaExternalSemaphoreWaitParams\n    Array of external semaphore wait parameters.\nnumExtSems : unsigned int\n    Number of handles and parameters supplied in extSemArray and\n    paramsArray.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaConditionalNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)Py_None); Py_INCREF(Py_None);
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaConditionalNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaConditionalNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_handle);
  Py_CLEAR(p->_ctx);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaConditionalNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_handle) {
    e = (*v)(((PyObject *)p->_handle), a); if (e) return e;
  }
  if (p->_ctx) {
    e = (*v)(((PyObject *)p->_ctx), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaConditionalNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)o;
  tmp = ((PyObject*)p->_handle);
  p->_handle = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_ctx);
  p->_ctx = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExecutionContext_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_handle(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_handle(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6handle_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_size(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_4size_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_phGraph_out(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11phGraph_out_1__get__(o);
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_ctx(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_ctx(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3ctx_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaConditionalNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaConditionalNodeParams[] = {
  {"handle", __pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_handle, __pyx_setprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_handle, 0, 0},
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_type, __pyx_setprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_type, 0, 0},
  {"size", __pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_size, __pyx_setprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_size, 0, 0},
  {"phGraph_out", __pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_phGraph_out, 0, 0, 0},
  {"ctx", __pyx_getprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_ctx, __pyx_setprop_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_ctx, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaConditionalNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaConditionalNodeParams(void_ptr _ptr=0)\n\nCUDA conditional node parameters\n\nAttributes\n----------\nhandle : cudaGraphConditionalHandle\n    Conditional node handle. Handles must be created in advance of\n    creating the node using cudaGraphConditionalHandleCreate.\ntype : cudaGraphConditionalNodeType\n    Type of conditional node.\nsize : unsigned int\n    Size of graph output array. Allowed values are 1 for\n    cudaGraphCondTypeWhile, 1 or 2 for cudaGraphCondTypeIf, or any\n    value greater than zero for cudaGraphCondTypeSwitch.\nphGraph_out : cudaGraph_t\n    CUDA-owned array populated with conditional node child graphs\n    during creation of the node. Valid for the lifetime of the\n    conditional node. The contents of the graph(s) are subject to the\n    following constraints:   - Allowed node types are kernel nodes,\n    empty nodes, child graphs, memsets, memcopies, and conditionals.\n    This applies recursively to child graphs and conditional bodies.\n    - All kernels, including kernels in nested conditionals or child\n    graphs at any level, must belong to the same CUDA context.\n    These graphs may be populated using graph node creation APIs or\n    cudaStreamBeginCaptureToGraph. cudaGraphCondTypeIf: phGraph_out[0]\n    is executed when the condition is non-zero. If `size` == 2,\n    phGraph_out[1] will be executed when the condition is zero.\n    cudaGraphCondTypeWhile: phGraph_out[0] is executed as long as the\n    condition is non-zero. cudaGraphCondTypeSwitch: phGraph_out[n] is\n    executed when the condition is equal to n. If the condition >=\n    `size`, no body graph is executed.\nctx : cudaExecutionContext_t\n    CUDA Execution Context\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaConditionalNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaConditionalNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaConditionalNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaConditionalNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaConditionalNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams_spec = {
  "cuda.bindings.runtime.cudaConditionalNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaConditionalNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaConditionalNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaConditionalNodeParams(void_ptr _ptr=0)\n\nCUDA conditional node parameters\n\nAttributes\n----------\nhandle : cudaGraphConditionalHandle\n    Conditional node handle. Handles must be created in advance of\n    creating the node using cudaGraphConditionalHandleCreate.\ntype : cudaGraphConditionalNodeType\n    Type of conditional node.\nsize : unsigned int\n    Size of graph output array. Allowed values are 1 for\n    cudaGraphCondTypeWhile, 1 or 2 for cudaGraphCondTypeIf, or any\n    value greater than zero for cudaGraphCondTypeSwitch.\nphGraph_out : cudaGraph_t\n    CUDA-owned array populated with conditional node child graphs\n    during creation of the node. Valid for the lifetime of the\n    conditional node. The contents of the graph(s) are subject to the\n    following constraints:   - Allowed node types are kernel nodes,\n    empty nodes, child graphs, memsets, memcopies, and conditionals.\n    This applies recursively to child graphs and conditional bodies.\n    - All kernels, including kernels in nested conditionals or child\n    graphs at any level, must belong to the same CUDA context.\n    These graphs may be populated using graph node creation APIs or\n    cudaStreamBeginCaptureToGraph. cudaGraphCondTypeIf: phGraph_out[0]\n    is executed when the condition is non-zero. If `size` == 2,\n    phGraph_out[1] will be executed when the condition is zero.\n    cudaGraphCondTypeWhile: phGraph_out[0] is executed as long as the\n    condition is non-zero. cudaGraphCondTypeSwitch: phGraph_out[n] is\n    executed when the condition is equal to n. If the condition >=\n    `size`, no body graph is executed.\nctx : cudaExecutionContext_t\n    CUDA Execution Context\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaConditionalNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaConditionalNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaConditionalNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaConditionalNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaConditionalNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaChildGraphNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_graph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaChildGraphNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaChildGraphNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_graph);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaChildGraphNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_graph) {
    e = (*v)(((PyObject *)p->_graph), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaChildGraphNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)o;
  tmp = ((PyObject*)p->_graph);
  p->_graph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_graph(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_graph(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_5graph_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_ownership(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_ownership(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9ownership_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaChildGraphNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaChildGraphNodeParams[] = {
  {"graph", __pyx_getprop_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_graph, __pyx_setprop_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_graph, 0, 0},
  {"ownership", __pyx_getprop_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_ownership, __pyx_setprop_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_ownership, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaChildGraphNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaChildGraphNodeParams(void_ptr _ptr=0)\n\nChild graph node parameters\n\nAttributes\n----------\ngraph : cudaGraph_t\n    The child graph to clone into the node for node creation, or a\n    handle to the graph owned by the node for node query. The graph\n    must not contain conditional nodes. Graphs containing memory\n    allocation or memory free nodes must set the ownership to be moved\n    to the parent.\nownership : cudaGraphChildGraphNodeOwnership\n    The ownership relationship of the child graph node.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaChildGraphNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaChildGraphNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaChildGraphNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaChildGraphNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaChildGraphNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams_spec = {
  "cuda.bindings.runtime.cudaChildGraphNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaChildGraphNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaChildGraphNodeParams(void_ptr _ptr=0)\n\nChild graph node parameters\n\nAttributes\n----------\ngraph : cudaGraph_t\n    The child graph to clone into the node for node creation, or a\n    handle to the graph owned by the node for node query. The graph\n    must not contain conditional nodes. Graphs containing memory\n    allocation or memory free nodes must set the ownership to be moved\n    to the parent.\nownership : cudaGraphChildGraphNodeOwnership\n    The ownership relationship of the child graph node.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEventRecordNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEventRecordNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEventRecordNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_event);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEventRecordNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_event) {
    e = (*v)(((PyObject *)p->_event), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEventRecordNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)o;
  tmp = ((PyObject*)p->_event);
  p->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_event(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_event(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_5event_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaEventRecordNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaEventRecordNodeParams[] = {
  {"event", __pyx_getprop_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_event, __pyx_setprop_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_event, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEventRecordNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaEventRecordNodeParams(void_ptr _ptr=0)\n\nEvent record node parameters\n\nAttributes\n----------\nevent : cudaEvent_t\n    The event to record when the node executes\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEventRecordNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaEventRecordNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaEventRecordNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaEventRecordNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaEventRecordNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams_spec = {
  "cuda.bindings.runtime.cudaEventRecordNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaEventRecordNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaEventRecordNodeParams(void_ptr _ptr=0)\n\nEvent record node parameters\n\nAttributes\n----------\nevent : cudaEvent_t\n    The event to record when the node executes\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEventWaitNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEventWaitNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEventWaitNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_event);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEventWaitNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_event) {
    e = (*v)(((PyObject *)p->_event), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEventWaitNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)o;
  tmp = ((PyObject*)p->_event);
  p->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_event(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_event(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_5event_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaEventWaitNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaEventWaitNodeParams[] = {
  {"event", __pyx_getprop_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_event, __pyx_setprop_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_event, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEventWaitNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaEventWaitNodeParams(void_ptr _ptr=0)\n\nEvent wait node parameters\n\nAttributes\n----------\nevent : cudaEvent_t\n    The event to wait on from the node\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEventWaitNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaEventWaitNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaEventWaitNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaEventWaitNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaEventWaitNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams_spec = {
  "cuda.bindings.runtime.cudaEventWaitNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaEventWaitNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaEventWaitNodeParams(void_ptr _ptr=0)\n\nEvent wait node parameters\n\nAttributes\n----------\nevent : cudaEvent_t\n    The event to wait on from the node\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphNodeParams(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)o);
  p->_kernel = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  p->_memcpy = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)Py_None); Py_INCREF(Py_None);
  p->_memset = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)Py_None); Py_INCREF(Py_None);
  p->_host = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  p->_graph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)Py_None); Py_INCREF(Py_None);
  p->_eventWait = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)Py_None); Py_INCREF(Py_None);
  p->_eventRecord = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)Py_None); Py_INCREF(Py_None);
  p->_extSemSignal = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  p->_extSemWait = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  p->_alloc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  p->_free = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)Py_None); Py_INCREF(Py_None);
  p->_conditional = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNodeParams(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNodeParams) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_kernel);
  Py_CLEAR(p->_memcpy);
  Py_CLEAR(p->_memset);
  Py_CLEAR(p->_host);
  Py_CLEAR(p->_graph);
  Py_CLEAR(p->_eventWait);
  Py_CLEAR(p->_eventRecord);
  Py_CLEAR(p->_extSemSignal);
  Py_CLEAR(p->_extSemWait);
  Py_CLEAR(p->_alloc);
  Py_CLEAR(p->_free);
  Py_CLEAR(p->_conditional);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphNodeParams(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_kernel) {
    e = (*v)(((PyObject *)p->_kernel), a); if (e) return e;
  }
  if (p->_memcpy) {
    e = (*v)(((PyObject *)p->_memcpy), a); if (e) return e;
  }
  if (p->_memset) {
    e = (*v)(((PyObject *)p->_memset), a); if (e) return e;
  }
  if (p->_host) {
    e = (*v)(((PyObject *)p->_host), a); if (e) return e;
  }
  if (p->_graph) {
    e = (*v)(((PyObject *)p->_graph), a); if (e) return e;
  }
  if (p->_eventWait) {
    e = (*v)(((PyObject *)p->_eventWait), a); if (e) return e;
  }
  if (p->_eventRecord) {
    e = (*v)(((PyObject *)p->_eventRecord), a); if (e) return e;
  }
  if (p->_extSemSignal) {
    e = (*v)(((PyObject *)p->_extSemSignal), a); if (e) return e;
  }
  if (p->_extSemWait) {
    e = (*v)(((PyObject *)p->_extSemWait), a); if (e) return e;
  }
  if (p->_alloc) {
    e = (*v)(((PyObject *)p->_alloc), a); if (e) return e;
  }
  if (p->_free) {
    e = (*v)(((PyObject *)p->_free), a); if (e) return e;
  }
  if (p->_conditional) {
    e = (*v)(((PyObject *)p->_conditional), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphNodeParams(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams *)o;
  tmp = ((PyObject*)p->_kernel);
  p->_kernel = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_memcpy);
  p->_memcpy = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemcpyNodeParams *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_memset);
  p->_memset = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemsetParamsV2 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_host);
  p->_host = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_graph);
  p->_graph = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChildGraphNodeParams *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_eventWait);
  p->_eventWait = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventWaitNodeParams *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_eventRecord);
  p->_eventRecord = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEventRecordNodeParams *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_extSemSignal);
  p->_extSemSignal = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_extSemWait);
  p->_extSemWait = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_alloc);
  p->_alloc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_free);
  p->_free = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFreeNodeParams *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_conditional);
  p->_conditional = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaConditionalNodeParams *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved0(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved0(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved0_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved1(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved1(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved1_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_kernel(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_kernel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6kernel_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_memcpy(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_memcpy(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memcpy_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_memset(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_memset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6memset_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_host(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_host(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4host_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_graph(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_graph(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5graph_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_eventWait(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_eventWait(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9eventWait_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_eventRecord(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_eventRecord(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11eventRecord_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_extSemSignal(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_extSemSignal(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12extSemSignal_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_extSemWait(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_extSemWait(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10extSemWait_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_alloc(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_alloc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_5alloc_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_free(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_free(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_4free_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_conditional(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_conditional(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11conditional_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved2(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved2(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9reserved2_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaGraphNodeParams[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaGraphNodeParams_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaGraphNodeParams_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaGraphNodeParams_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphNodeParams[] = {
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_type, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_type, 0, 0},
  {"reserved0", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved0, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved0, 0, 0},
  {"reserved1", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved1, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved1, 0, 0},
  {"kernel", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_kernel, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_kernel, 0, 0},
  {"memcpy", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_memcpy, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_memcpy, 0, 0},
  {"memset", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_memset, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_memset, 0, 0},
  {"host", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_host, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_host, 0, 0},
  {"graph", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_graph, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_graph, 0, 0},
  {"eventWait", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_eventWait, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_eventWait, 0, 0},
  {"eventRecord", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_eventRecord, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_eventRecord, 0, 0},
  {"extSemSignal", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_extSemSignal, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_extSemSignal, 0, 0},
  {"extSemWait", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_extSemWait, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_extSemWait, 0, 0},
  {"alloc", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_alloc, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_alloc, 0, 0},
  {"free", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_free, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_free, 0, 0},
  {"conditional", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_conditional, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_conditional, 0, 0},
  {"reserved2", __pyx_getprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved2, __pyx_setprop_4cuda_8bindings_7runtime_19cudaGraphNodeParams_reserved2, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNodeParams},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaGraphNodeParams(void_ptr _ptr=0)\n\nGraph node parameters. See cudaGraphAddNode.\n\nAttributes\n----------\ntype : cudaGraphNodeType\n    Type of the node\nreserved0 : list[int]\n    Reserved. Must be zero.\nreserved1 : list[long long]\n    Padding. Unused bytes must be zero.\nkernel : cudaKernelNodeParamsV2\n    Kernel node parameters.\nmemcpy : cudaMemcpyNodeParams\n    Memcpy node parameters.\nmemset : cudaMemsetParamsV2\n    Memset node parameters.\nhost : cudaHostNodeParamsV2\n    Host node parameters.\ngraph : cudaChildGraphNodeParams\n    Child graph node parameters.\neventWait : cudaEventWaitNodeParams\n    Event wait node parameters.\neventRecord : cudaEventRecordNodeParams\n    Event record node parameters.\nextSemSignal : cudaExternalSemaphoreSignalNodeParamsV2\n    External semaphore signal node parameters.\nextSemWait : cudaExternalSemaphoreWaitNodeParamsV2\n    External semaphore wait node parameters.\nalloc : cudaMemAllocNodeParamsV2\n    Memory allocation node parameters.\nfree : cudaMemFreeNodeParams\n    Memory free node parameters.\nconditional : cudaConditionalNodeParams\n    Conditional node parameters.\nreserved2 : long long\n    Reserved bytes. Must be zero.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphNodeParams},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphNodeParams},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaGraphNodeParams},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaGraphNodeParams},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphNodeParams},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams_spec = {
  "cuda.bindings.runtime.cudaGraphNodeParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphNodeParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNodeParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNodeParams, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaGraphNodeParams(void_ptr _ptr=0)\n\nGraph node parameters. See cudaGraphAddNode.\n\nAttributes\n----------\ntype : cudaGraphNodeType\n    Type of the node\nreserved0 : list[int]\n    Reserved. Must be zero.\nreserved1 : list[long long]\n    Padding. Unused bytes must be zero.\nkernel : cudaKernelNodeParamsV2\n    Kernel node parameters.\nmemcpy : cudaMemcpyNodeParams\n    Memcpy node parameters.\nmemset : cudaMemsetParamsV2\n    Memset node parameters.\nhost : cudaHostNodeParamsV2\n    Host node parameters.\ngraph : cudaChildGraphNodeParams\n    Child graph node parameters.\neventWait : cudaEventWaitNodeParams\n    Event wait node parameters.\neventRecord : cudaEventRecordNodeParams\n    Event record node parameters.\nextSemSignal : cudaExternalSemaphoreSignalNodeParamsV2\n    External semaphore signal node parameters.\nextSemWait : cudaExternalSemaphoreWaitNodeParamsV2\n    External semaphore wait node parameters.\nalloc : cudaMemAllocNodeParamsV2\n    Memory allocation node parameters.\nfree : cudaMemFreeNodeParams\n    Memory free node parameters.\nconditional : cudaConditionalNodeParams\n    Conditional node parameters.\nreserved2 : long long\n    Reserved bytes. Must be zero.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphNodeParams, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphNodeParams, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaGraphNodeParams, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphNodeParams, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_19cudaGraphNodeParams_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphNodeParams, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphEdgeData_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphEdgeData_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphEdgeData_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_from_port(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_from_port(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9from_port_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_to_port(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_to_port(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7to_port_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaGraphEdgeData_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphEdgeData_st[] = {
  {"from_port", __pyx_getprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_from_port, __pyx_setprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_from_port, 0, 0},
  {"to_port", __pyx_getprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_to_port, __pyx_setprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_to_port, 0, 0},
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_type, __pyx_setprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_type, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_reserved, __pyx_setprop_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphEdgeData_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaGraphEdgeData_st(void_ptr _ptr=0)\n\nOptional annotation for edges in a CUDA graph. Note, all edges\nimplicitly have annotations and default to a zero-initialized value\nif not specified. A zero-initialized struct indicates a standard\nfull serialization of two nodes with memory visibility.\n\nAttributes\n----------\nfrom_port : bytes\n    This indicates when the dependency is triggered from the upstream\n    node on the edge. The meaning is specfic to the node type. A value\n    of 0 in all cases means full completion of the upstream node, with\n    memory visibility to the downstream node or portion thereof\n    (indicated by `to_port`).   Only kernel nodes define non-zero\n    ports. A kernel node can use the following output port types:\n    cudaGraphKernelNodePortDefault,\n    cudaGraphKernelNodePortProgrammatic, or\n    cudaGraphKernelNodePortLaunchCompletion.\nto_port : bytes\n    This indicates what portion of the downstream node is dependent on\n    the upstream node or portion thereof (indicated by `from_port`).\n    The meaning is specific to the node type. A value of 0 in all cases\n    means the entirety of the downstream node is dependent on the\n    upstream work.   Currently no node types define non-zero ports.\n    Accordingly, this field must be set to zero.\ntype : bytes\n    This should be populated with a value from\n    ::cudaGraphDependencyType. (It is typed as char due to compiler-\n    specific layout of bitfields.) See ::cudaGraphDependencyType.\nreserved : bytes\n    These bytes are unused and must be zeroed. This ensures\n    compatibility if additional fields are added in the future.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaGraphEdgeData_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaGraphEdgeData_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphEdgeData_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st_spec = {
  "cuda.bindings.runtime.cudaGraphEdgeData_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphEdgeData_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphEdgeData_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaGraphEdgeData_st(void_ptr _ptr=0)\n\nOptional annotation for edges in a CUDA graph. Note, all edges\nimplicitly have annotations and default to a zero-initialized value\nif not specified. A zero-initialized struct indicates a standard\nfull serialization of two nodes with memory visibility.\n\nAttributes\n----------\nfrom_port : bytes\n    This indicates when the dependency is triggered from the upstream\n    node on the edge. The meaning is specfic to the node type. A value\n    of 0 in all cases means full completion of the upstream node, with\n    memory visibility to the downstream node or portion thereof\n    (indicated by `to_port`).   Only kernel nodes define non-zero\n    ports. A kernel node can use the following output port types:\n    cudaGraphKernelNodePortDefault,\n    cudaGraphKernelNodePortProgrammatic, or\n    cudaGraphKernelNodePortLaunchCompletion.\nto_port : bytes\n    This indicates what portion of the downstream node is dependent on\n    the upstream node or portion thereof (indicated by `from_port`).\n    The meaning is specific to the node type. A value of 0 in all cases\n    means the entirety of the downstream node is dependent on the\n    upstream work.   Currently no node types define non-zero ports.\n    Accordingly, this field must be set to zero.\ntype : bytes\n    This should be populated with a value from\n    ::cudaGraphDependencyType. (It is typed as char due to compiler-\n    specific layout of bitfields.) See ::cudaGraphDependencyType.\nreserved : bytes\n    These bytes are unused and must be zeroed. This ensures\n    compatibility if additional fields are added in the future.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaGraphEdgeData_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphEdgeData_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphEdgeData_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_uploadStream = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *)Py_None); Py_INCREF(Py_None);
  p->_errNode_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_uploadStream);
  Py_CLEAR(p->_errNode_out);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_uploadStream) {
    e = (*v)(((PyObject *)p->_uploadStream), a); if (e) return e;
  }
  if (p->_errNode_out) {
    e = (*v)(((PyObject *)p->_errNode_out), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st *)o;
  tmp = ((PyObject*)p->_uploadStream);
  p->_uploadStream = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_errNode_out);
  p->_errNode_out = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_uploadStream(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_uploadStream(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12uploadStream_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_errNode_out(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_errNode_out(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11errNode_out_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_result_out(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_result_out(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10result_out_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st[] = {
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_flags, __pyx_setprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_flags, 0, 0},
  {"uploadStream", __pyx_getprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_uploadStream, __pyx_setprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_uploadStream, 0, 0},
  {"errNode_out", __pyx_getprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_errNode_out, __pyx_setprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_errNode_out, 0, 0},
  {"result_out", __pyx_getprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_result_out, __pyx_setprop_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_result_out, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaGraphInstantiateParams_st(void_ptr _ptr=0)\n\nGraph instantiation parameters\n\nAttributes\n----------\nflags : unsigned long long\n    Instantiation flags\nuploadStream : cudaStream_t\n    Upload stream\nerrNode_out : cudaGraphNode_t\n    The node which caused instantiation to fail, if any\nresult_out : cudaGraphInstantiateResult\n    Whether instantiation was successful. If it failed, the reason why\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st_spec = {
  "cuda.bindings.runtime.cudaGraphInstantiateParams_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphInstantiateParams_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaGraphInstantiateParams_st(void_ptr _ptr=0)\n\nGraph instantiation parameters\n\nAttributes\n----------\nflags : unsigned long long\n    Instantiation flags\nuploadStream : cudaStream_t\n    Upload stream\nerrNode_out : cudaGraphNode_t\n    The node which caused instantiation to fail, if any\nresult_out : cudaGraphInstantiateResult\n    Whether instantiation was successful. If it failed, the reason why\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_errorNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None);
  p->_errorFromNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_errorNode);
  Py_CLEAR(p->_errorFromNode);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_errorNode) {
    e = (*v)(((PyObject *)p->_errorNode), a); if (e) return e;
  }
  if (p->_errorFromNode) {
    e = (*v)(((PyObject *)p->_errorFromNode), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st *)o;
  tmp = ((PyObject*)p->_errorNode);
  p->_errorNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_errorFromNode);
  p->_errorFromNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_result(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_result(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6result_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_errorNode(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_errorNode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9errorNode_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_errorFromNode(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_errorFromNode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13errorFromNode_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st[] = {
  {"result", __pyx_getprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_result, __pyx_setprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_result, 0, 0},
  {"errorNode", __pyx_getprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_errorNode, __pyx_setprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_errorNode, 0, 0},
  {"errorFromNode", __pyx_getprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_errorFromNode, __pyx_setprop_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_errorFromNode, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaGraphExecUpdateResultInfo_st(void_ptr _ptr=0)\n\nResult information returned by cudaGraphExecUpdate\n\nAttributes\n----------\nresult : cudaGraphExecUpdateResult\n    Gives more specific detail when a cuda graph update fails.\nerrorNode : cudaGraphNode_t\n    The \"to node\" of the error edge when the topologies do not match.\n    The error node when the error is associated with a specific node.\n    NULL when the error is generic.\nerrorFromNode : cudaGraphNode_t\n    The from node of error edge when the topologies do not match.\n    Otherwise NULL.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st_spec = {
  "cuda.bindings.runtime.cudaGraphExecUpdateResultInfo_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphExecUpdateResultInfo_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaGraphExecUpdateResultInfo_st(void_ptr _ptr=0)\n\nResult information returned by cudaGraphExecUpdate\n\nAttributes\n----------\nresult : cudaGraphExecUpdateResult\n    Gives more specific detail when a cuda graph update fails.\nerrorNode : cudaGraphNode_t\n    The \"to node\" of the error edge when the topologies do not match.\n    The error node when the error is associated with a specific node.\n    NULL when the error is generic.\nerrorFromNode : cudaGraphNode_t\n    The from node of error edge when the topologies do not match.\n    Otherwise NULL.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct16(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct16(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct16) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct16_pValue(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6pValue_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct16_pValue(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6pValue_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct16_offset(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6offset_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct16_offset(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_6offset_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct16_size(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_4size_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct16_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_4size_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct16[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct16_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct16_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct16_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct16[] = {
  {"pValue", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct16_pValue, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct16_pValue, 0, 0},
  {"offset", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct16_offset, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct16_offset, 0, 0},
  {"size", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct16_size, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct16_size, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct16_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct16},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct16(void_ptr _ptr)\n\nAttributes\n----------\npValue : Any\n\noffset : size_t\n\nsize : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct16},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct16},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct16},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct16_spec = {
  "cuda.bindings.runtime.anon_struct16",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct16_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct16 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct16", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct16, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct16(void_ptr _ptr)\n\nAttributes\n----------\npValue : Any\n\noffset : size_t\n\nsize : size_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct16, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct16, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct16_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct16, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union8(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)o);
  p->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  p->_param = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union8(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union8) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_gridDim);
  Py_CLEAR(p->_param);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union8(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_gridDim) {
    e = (*v)(((PyObject *)p->_gridDim), a); if (e) return e;
  }
  if (p->_param) {
    e = (*v)(((PyObject *)p->_param), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union8(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)o;
  tmp = ((PyObject*)p->_gridDim);
  p->_gridDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_dim3 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_param);
  p->_param = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct16 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union8_gridDim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7gridDim_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union8_gridDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7gridDim_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union8_param(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5param_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union8_param(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_5param_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union8_isEnabled(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union8_isEnabled(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9isEnabled_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union8[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union8_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union8_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union8_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union8[] = {
  {"gridDim", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union8_gridDim, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union8_gridDim, 0, 0},
  {"param", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union8_param, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union8_param, 0, 0},
  {"isEnabled", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union8_isEnabled, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union8_isEnabled, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union8_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union8},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union8(void_ptr _ptr)\n\nAttributes\n----------\ngridDim : dim3\n\nparam : anon_struct16\n\nisEnabled : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union8},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_union8},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union8},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union8},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union8_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union8},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union8_spec = {
  "cuda.bindings.runtime.anon_union8",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_union8_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union8 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union8", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union8, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_union8(void_ptr _ptr)\n\nAttributes\n----------\ngridDim : dim3\n\nparam : anon_struct16\n\nisEnabled : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union8, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union8, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union8, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union8, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union8_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union8, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)o);
  p->_node = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)Py_None); Py_INCREF(Py_None);
  p->_updateData = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_node);
  Py_CLEAR(p->_updateData);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_node) {
    e = (*v)(((PyObject *)p->_node), a); if (e) return e;
  }
  if (p->_updateData) {
    e = (*v)(((PyObject *)p->_updateData), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate *)o;
  tmp = ((PyObject*)p->_node);
  p->_node = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_updateData);
  p->_updateData = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union8 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_node(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_node(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_4node_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_field(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_field(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_5field_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_updateData(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_updateData(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10updateData_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate[] = {
  {"node", __pyx_getprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_node, __pyx_setprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_node, 0, 0},
  {"field", __pyx_getprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_field, __pyx_setprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_field, 0, 0},
  {"updateData", __pyx_getprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_updateData, __pyx_setprop_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_updateData, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaGraphKernelNodeUpdate(void_ptr _ptr=0)\n\nStruct to specify a single node update to pass as part of a larger\narray to ::cudaGraphKernelNodeUpdatesApply\n\nAttributes\n----------\nnode : cudaGraphDeviceNode_t\n    Node to update\nfield : cudaGraphKernelNodeField\n    Which type of update to apply. Determines how updateData is\n    interpreted\nupdateData : anon_union8\n    Update data to apply. Which field is used depends on field's value\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate_spec = {
  "cuda.bindings.runtime.cudaGraphKernelNodeUpdate",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphKernelNodeUpdate", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaGraphKernelNodeUpdate(void_ptr _ptr=0)\n\nStruct to specify a single node update to pass as part of a larger\narray to ::cudaGraphKernelNodeUpdatesApply\n\nAttributes\n----------\nnode : cudaGraphDeviceNode_t\n    Node to update\nfield : cudaGraphKernelNodeField\n    Which type of update to apply. Determines how updateData is\n    interpreted\nupdateData : anon_union8\n    Update data to apply. Which field is used depends on field's value\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_default_(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_default_(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_8default__3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_remote(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_remote(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6remote_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st[] = {
  {"default_", __pyx_getprop_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_default_, __pyx_setprop_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_default_, 0, 0},
  {"remote", __pyx_getprop_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_remote, __pyx_setprop_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_remote, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaLaunchMemSyncDomainMap_st(void_ptr _ptr=0)\n\nMemory Synchronization Domain map  See cudaLaunchMemSyncDomain.  By\ndefault, kernels are launched in domain 0. Kernel launched with\ncudaLaunchMemSyncDomainRemote will have a different domain ID. User\nmay also alter the domain ID with ::cudaLaunchMemSyncDomainMap for\na specific stream / graph node / kernel launch. See\ncudaLaunchAttributeMemSyncDomainMap.  Domain ID range is available\nthrough cudaDevAttrMemSyncDomainCount.\n\nAttributes\n----------\ndefault_ : bytes\n    The default domain ID to use for designated kernels\nremote : bytes\n    The remote domain ID to use for designated kernels\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st_spec = {
  "cuda.bindings.runtime.cudaLaunchMemSyncDomainMap_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLaunchMemSyncDomainMap_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaLaunchMemSyncDomainMap_st(void_ptr _ptr=0)\n\nMemory Synchronization Domain map  See cudaLaunchMemSyncDomain.  By\ndefault, kernels are launched in domain 0. Kernel launched with\ncudaLaunchMemSyncDomainRemote will have a different domain ID. User\nmay also alter the domain ID with ::cudaLaunchMemSyncDomainMap for\na specific stream / graph node / kernel launch. See\ncudaLaunchAttributeMemSyncDomainMap.  Domain ID range is available\nthrough cudaDevAttrMemSyncDomainCount.\n\nAttributes\n----------\ndefault_ : bytes\n    The default domain ID to use for designated kernels\nremote : bytes\n    The remote domain ID to use for designated kernels\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct17(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct17(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct17) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct17_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1x_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct17_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct17_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1y_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct17_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct17_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1z_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct17_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct17[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct17_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct17_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct17_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct17[] = {
  {"x", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct17_x, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct17_x, 0, 0},
  {"y", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct17_y, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct17_y, 0, 0},
  {"z", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct17_z, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct17_z, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct17_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct17},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct17(void_ptr _ptr)\n\nAttributes\n----------\nx : unsigned int\n\ny : unsigned int\n\nz : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct17},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct17},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct17},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct17_spec = {
  "cuda.bindings.runtime.anon_struct17",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct17_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct17 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct17", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct17, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct17(void_ptr _ptr)\n\nAttributes\n----------\nx : unsigned int\n\ny : unsigned int\n\nz : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct17, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct17, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct17_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct17, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct18(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)o);
  p->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct18(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct18) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_event);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct18(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_event) {
    e = (*v)(((PyObject *)p->_event), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct18(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)o;
  tmp = ((PyObject*)p->_event);
  p->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct18_event(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5event_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct18_event(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5event_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct18_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct18_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct18_triggerAtBlockStart(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct18_triggerAtBlockStart(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_19triggerAtBlockStart_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct18[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct18_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct18_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct18_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct18[] = {
  {"event", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct18_event, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct18_event, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct18_flags, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct18_flags, 0, 0},
  {"triggerAtBlockStart", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct18_triggerAtBlockStart, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct18_triggerAtBlockStart, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct18_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct18},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct18(void_ptr _ptr)\n\nAttributes\n----------\nevent : cudaEvent_t\n\nflags : int\n\ntriggerAtBlockStart : int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct18},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct18},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct18},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct18},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct18},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct18_spec = {
  "cuda.bindings.runtime.anon_struct18",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct18_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct18 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct18", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct18, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct18(void_ptr _ptr)\n\nAttributes\n----------\nevent : cudaEvent_t\n\nflags : int\n\ntriggerAtBlockStart : int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct18, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct18, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct18, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct18, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct18_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct18, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct19(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct19(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct19) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct19_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1x_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct19_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct19_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1y_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct19_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct19_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1z_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct19_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct19[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct19_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct19_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct19_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct19[] = {
  {"x", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct19_x, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct19_x, 0, 0},
  {"y", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct19_y, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct19_y, 0, 0},
  {"z", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct19_z, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct19_z, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct19_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct19},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct19(void_ptr _ptr)\n\nAttributes\n----------\nx : unsigned int\n\ny : unsigned int\n\nz : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct19},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct19},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct19},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct19_spec = {
  "cuda.bindings.runtime.anon_struct19",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct19_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct19 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct19", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct19, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct19(void_ptr _ptr)\n\nAttributes\n----------\nx : unsigned int\n\ny : unsigned int\n\nz : unsigned int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct19, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct19, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct19_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct19, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct20(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)o);
  p->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct20(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct20) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_event);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct20(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_event) {
    e = (*v)(((PyObject *)p->_event), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct20(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)o;
  tmp = ((PyObject*)p->_event);
  p->_event = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct20_event(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5event_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct20_event(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5event_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct20_flags(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5flags_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct20_flags(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_5flags_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct20[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct20_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct20_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct20_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct20[] = {
  {"event", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct20_event, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct20_event, 0, 0},
  {"flags", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct20_flags, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct20_flags, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct20_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct20},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct20(void_ptr _ptr)\n\nAttributes\n----------\nevent : cudaEvent_t\n\nflags : int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct20},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct20},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct20},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct20},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct20},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct20_spec = {
  "cuda.bindings.runtime.anon_struct20",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct20_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct20 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct20", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct20, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct20(void_ptr _ptr)\n\nAttributes\n----------\nevent : cudaEvent_t\n\nflags : int\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct20, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct20, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct20, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct20, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct20_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct20, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct21(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)o);
  p->_devNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct21(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct21) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_devNode);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct21(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_devNode) {
    e = (*v)(((PyObject *)p->_devNode), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct21(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)o;
  tmp = ((PyObject*)p->_devNode);
  p->_devNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct21_deviceUpdatable(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct21_deviceUpdatable(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_15deviceUpdatable_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct21_devNode(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7devNode_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct21_devNode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7devNode_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct21[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct21_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct21_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct21_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct21[] = {
  {"deviceUpdatable", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct21_deviceUpdatable, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct21_deviceUpdatable, 0, 0},
  {"devNode", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct21_devNode, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct21_devNode, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct21_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct21},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct21(void_ptr _ptr)\n\nAttributes\n----------\ndeviceUpdatable : int\n\ndevNode : cudaGraphDeviceNode_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct21},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct21},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct21},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct21},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct21},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct21_spec = {
  "cuda.bindings.runtime.anon_struct21",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct21_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct21 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct21", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct21, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_struct21(void_ptr _ptr)\n\nAttributes\n----------\ndeviceUpdatable : int\n\ndevNode : cudaGraphDeviceNode_t\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_struct21, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_struct21, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct21, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct21, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct21_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct21, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttributeValue(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)o);
  p->_accessPolicyWindow = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)Py_None); Py_INCREF(Py_None);
  p->_clusterDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)Py_None); Py_INCREF(Py_None);
  p->_programmaticEvent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)Py_None); Py_INCREF(Py_None);
  p->_memSyncDomainMap = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap *)Py_None); Py_INCREF(Py_None);
  p->_preferredClusterDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)Py_None); Py_INCREF(Py_None);
  p->_launchCompletionEvent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)Py_None); Py_INCREF(Py_None);
  p->_deviceUpdatableKernelNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttributeValue(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttributeValue) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_accessPolicyWindow);
  Py_CLEAR(p->_clusterDim);
  Py_CLEAR(p->_programmaticEvent);
  Py_CLEAR(p->_memSyncDomainMap);
  Py_CLEAR(p->_preferredClusterDim);
  Py_CLEAR(p->_launchCompletionEvent);
  Py_CLEAR(p->_deviceUpdatableKernelNode);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttributeValue(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_accessPolicyWindow) {
    e = (*v)(((PyObject *)p->_accessPolicyWindow), a); if (e) return e;
  }
  if (p->_clusterDim) {
    e = (*v)(((PyObject *)p->_clusterDim), a); if (e) return e;
  }
  if (p->_programmaticEvent) {
    e = (*v)(((PyObject *)p->_programmaticEvent), a); if (e) return e;
  }
  if (p->_memSyncDomainMap) {
    e = (*v)(((PyObject *)p->_memSyncDomainMap), a); if (e) return e;
  }
  if (p->_preferredClusterDim) {
    e = (*v)(((PyObject *)p->_preferredClusterDim), a); if (e) return e;
  }
  if (p->_launchCompletionEvent) {
    e = (*v)(((PyObject *)p->_launchCompletionEvent), a); if (e) return e;
  }
  if (p->_deviceUpdatableKernelNode) {
    e = (*v)(((PyObject *)p->_deviceUpdatableKernelNode), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttributeValue(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)o;
  tmp = ((PyObject*)p->_accessPolicyWindow);
  p->_accessPolicyWindow = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAccessPolicyWindow *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_clusterDim);
  p->_clusterDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct17 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_programmaticEvent);
  p->_programmaticEvent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct18 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_memSyncDomainMap);
  p->_memSyncDomainMap = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_preferredClusterDim);
  p->_preferredClusterDim = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct19 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_launchCompletionEvent);
  p->_launchCompletionEvent = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct20 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_deviceUpdatableKernelNode);
  p->_deviceUpdatableKernelNode = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct21 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_pad(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_pad(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3pad_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_accessPolicyWindow(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_accessPolicyWindow(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_18accessPolicyWindow_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_cooperative(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_cooperative(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11cooperative_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_syncPolicy(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_syncPolicy(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10syncPolicy_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_clusterDim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_clusterDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10clusterDim_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_clusterSchedulingPolicyPreference(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_clusterSchedulingPolicyPreference(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_33clusterSchedulingPolicyPreference_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_programmaticStreamSerializationAllowed(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_programmaticStreamSerializationAllowed(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_38programmaticStreamSerializationAllowed_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_programmaticEvent(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_programmaticEvent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17programmaticEvent_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_priority(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_priority(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_8priority_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_memSyncDomainMap(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_memSyncDomainMap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_16memSyncDomainMap_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_memSyncDomain(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_memSyncDomain(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13memSyncDomain_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_preferredClusterDim(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_preferredClusterDim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_19preferredClusterDim_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_launchCompletionEvent(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_launchCompletionEvent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_21launchCompletionEvent_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_deviceUpdatableKernelNode(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_deviceUpdatableKernelNode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_25deviceUpdatableKernelNode_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_sharedMemCarveout(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_sharedMemCarveout(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_17sharedMemCarveout_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_nvlinkUtilCentricScheduling(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_nvlinkUtilCentricScheduling(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_27nvlinkUtilCentricScheduling_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaLaunchAttributeValue[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchAttributeValue[] = {
  {"pad", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_pad, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_pad, 0, 0},
  {"accessPolicyWindow", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_accessPolicyWindow, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_accessPolicyWindow, 0, 0},
  {"cooperative", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_cooperative, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_cooperative, 0, 0},
  {"syncPolicy", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_syncPolicy, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_syncPolicy, 0, 0},
  {"clusterDim", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_clusterDim, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_clusterDim, 0, 0},
  {"clusterSchedulingPolicyPreference", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_clusterSchedulingPolicyPreference, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_clusterSchedulingPolicyPreference, 0, 0},
  {"programmaticStreamSerializationAllowed", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_programmaticStreamSerializationAllowed, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_programmaticStreamSerializationAllowed, 0, 0},
  {"programmaticEvent", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_programmaticEvent, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_programmaticEvent, 0, 0},
  {"priority", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_priority, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_priority, 0, 0},
  {"memSyncDomainMap", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_memSyncDomainMap, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_memSyncDomainMap, 0, 0},
  {"memSyncDomain", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_memSyncDomain, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_memSyncDomain, 0, 0},
  {"preferredClusterDim", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_preferredClusterDim, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_preferredClusterDim, 0, 0},
  {"launchCompletionEvent", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_launchCompletionEvent, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_launchCompletionEvent, 0, 0},
  {"deviceUpdatableKernelNode", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_deviceUpdatableKernelNode, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_deviceUpdatableKernelNode, 0, 0},
  {"sharedMemCarveout", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_sharedMemCarveout, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_sharedMemCarveout, 0, 0},
  {"nvlinkUtilCentricScheduling", __pyx_getprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_nvlinkUtilCentricScheduling, __pyx_setprop_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_nvlinkUtilCentricScheduling, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaLaunchAttributeValue(void_ptr _ptr=0)\n\nLaunch attributes union; used as value field of\n::cudaLaunchAttribute\n\nAttributes\n----------\npad : bytes\n\naccessPolicyWindow : cudaAccessPolicyWindow\n    Value of launch attribute cudaLaunchAttributeAccessPolicyWindow.\ncooperative : int\n    Value of launch attribute cudaLaunchAttributeCooperative. Nonzero\n    indicates a cooperative kernel (see cudaLaunchCooperativeKernel).\nsyncPolicy : cudaSynchronizationPolicy\n    Value of launch attribute cudaLaunchAttributeSynchronizationPolicy.\n    ::cudaSynchronizationPolicy for work queued up in this stream.\nclusterDim : anon_struct17\n    Value of launch attribute cudaLaunchAttributeClusterDimension that\n    represents the desired cluster dimensions for the kernel. Opaque\n    type with the following fields: - `x` - The X dimension of the\n    cluster, in blocks. Must be a divisor of the grid X dimension.    -\n    `y` - The Y dimension of the cluster, in blocks. Must be a divisor\n    of the grid Y dimension.    - `z` - The Z dimension of the cluster,\n    in blocks. Must be a divisor of the grid Z dimension.\nclusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy\n    Value of launch attribute\n    cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster\n    scheduling policy preference for the kernel.\nprogrammaticStreamSerializationAllowed : int\n    Value of launch attribute\n    cudaLaunchAttributeProgrammaticStreamSerialization.\nprogrammaticEvent : anon_struct18\n    Value of launch attribute cudaLaunchAttributeProgrammaticEvent with\n    the following fields: - `cudaEvent_t` event - Event to fire when\n    all blocks trigger it.    - `int` flags; - Event record flags, see\n    cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal.\n    - `int` triggerAtBlockStart - If this is set to non-0, each block\n    launch will automatically trigger the event.\npriority : int\n    Value of launch attribute cudaLaunchAttributePriority. Execu""tion\n    priority of the kernel.\nmemSyncDomainMap : cudaLaunchMemSyncDomainMap\n    Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See\n    ::cudaLaunchMemSyncDomainMap.\nmemSyncDomain : cudaLaunchMemSyncDomain\n    Value of launch attribute cudaLaunchAttributeMemSyncDomain. See\n    cudaLaunchMemSyncDomain.\npreferredClusterDim : anon_struct19\n    Value of launch attribute\n    cudaLaunchAttributePreferredClusterDimension that represents the\n    desired preferred cluster dimensions for the kernel. Opaque type\n    with the following fields: - `x` - The X dimension of the preferred\n    cluster, in blocks. Must be a divisor of the grid X dimension, and\n    must be a multiple of the `x` field of\n    cudaLaunchAttributeValue::clusterDim.    - `y` - The Y dimension of\n    the preferred cluster, in blocks. Must be a divisor of the grid Y\n    dimension, and must be a multiple of the `y` field of\n    cudaLaunchAttributeValue::clusterDim.    - `z` - The Z dimension of\n    the preferred cluster, in blocks. Must be equal to the `z` field of\n    cudaLaunchAttributeValue::clusterDim.\nlaunchCompletionEvent : anon_struct20\n    Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent\n    with the following fields: - `cudaEvent_t` event - Event to fire\n    when the last block launches.    - `int` flags - Event record\n    flags, see cudaEventRecordWithFlags. Does not accept\n    cudaEventRecordExternal.\ndeviceUpdatableKernelNode : anon_struct21\n    Value of launch attribute\n    cudaLaunchAttributeDeviceUpdatableKernelNode with the following\n    fields: - `int` deviceUpdatable - Whether or not the resulting\n    kernel node should be device-updatable.    -\n    `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the\n    various device-side update functions.\nsharedMemCarveout : unsigned int\n    Value of launch attribute\n    cudaLaunchAttributePreferredSharedMemoryCarveout.\nnvlinkUtilCentricScheduling : unsigned int\n    Val""ue of launch attribute\n    cudaLaunchAttributeNvlinkUtilCentricScheduling.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue_spec = {
  "cuda.bindings.runtime.cudaLaunchAttributeValue",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLaunchAttributeValue", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaLaunchAttributeValue(void_ptr _ptr=0)\n\nLaunch attributes union; used as value field of\n::cudaLaunchAttribute\n\nAttributes\n----------\npad : bytes\n\naccessPolicyWindow : cudaAccessPolicyWindow\n    Value of launch attribute cudaLaunchAttributeAccessPolicyWindow.\ncooperative : int\n    Value of launch attribute cudaLaunchAttributeCooperative. Nonzero\n    indicates a cooperative kernel (see cudaLaunchCooperativeKernel).\nsyncPolicy : cudaSynchronizationPolicy\n    Value of launch attribute cudaLaunchAttributeSynchronizationPolicy.\n    ::cudaSynchronizationPolicy for work queued up in this stream.\nclusterDim : anon_struct17\n    Value of launch attribute cudaLaunchAttributeClusterDimension that\n    represents the desired cluster dimensions for the kernel. Opaque\n    type with the following fields: - `x` - The X dimension of the\n    cluster, in blocks. Must be a divisor of the grid X dimension.    -\n    `y` - The Y dimension of the cluster, in blocks. Must be a divisor\n    of the grid Y dimension.    - `z` - The Z dimension of the cluster,\n    in blocks. Must be a divisor of the grid Z dimension.\nclusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy\n    Value of launch attribute\n    cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster\n    scheduling policy preference for the kernel.\nprogrammaticStreamSerializationAllowed : int\n    Value of launch attribute\n    cudaLaunchAttributeProgrammaticStreamSerialization.\nprogrammaticEvent : anon_struct18\n    Value of launch attribute cudaLaunchAttributeProgrammaticEvent with\n    the following fields: - `cudaEvent_t` event - Event to fire when\n    all blocks trigger it.    - `int` flags; - Event record flags, see\n    cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal.\n    - `int` triggerAtBlockStart - If this is set to non-0, each block\n    launch will automatically trigger the event.\npriority : int\n    Value of launch attribute cudaLaunchAttributePriority. Execu""tion\n    priority of the kernel.\nmemSyncDomainMap : cudaLaunchMemSyncDomainMap\n    Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See\n    ::cudaLaunchMemSyncDomainMap.\nmemSyncDomain : cudaLaunchMemSyncDomain\n    Value of launch attribute cudaLaunchAttributeMemSyncDomain. See\n    cudaLaunchMemSyncDomain.\npreferredClusterDim : anon_struct19\n    Value of launch attribute\n    cudaLaunchAttributePreferredClusterDimension that represents the\n    desired preferred cluster dimensions for the kernel. Opaque type\n    with the following fields: - `x` - The X dimension of the preferred\n    cluster, in blocks. Must be a divisor of the grid X dimension, and\n    must be a multiple of the `x` field of\n    cudaLaunchAttributeValue::clusterDim.    - `y` - The Y dimension of\n    the preferred cluster, in blocks. Must be a divisor of the grid Y\n    dimension, and must be a multiple of the `y` field of\n    cudaLaunchAttributeValue::clusterDim.    - `z` - The Z dimension of\n    the preferred cluster, in blocks. Must be equal to the `z` field of\n    cudaLaunchAttributeValue::clusterDim.\nlaunchCompletionEvent : anon_struct20\n    Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent\n    with the following fields: - `cudaEvent_t` event - Event to fire\n    when the last block launches.    - `int` flags - Event record\n    flags, see cudaEventRecordWithFlags. Does not accept\n    cudaEventRecordExternal.\ndeviceUpdatableKernelNode : anon_struct21\n    Value of launch attribute\n    cudaLaunchAttributeDeviceUpdatableKernelNode with the following\n    fields: - `int` deviceUpdatable - Whether or not the resulting\n    kernel node should be device-updatable.    -\n    `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the\n    various device-side update functions.\nsharedMemCarveout : unsigned int\n    Value of launch attribute\n    cudaLaunchAttributePreferredSharedMemoryCarveout.\nnvlinkUtilCentricScheduling : unsigned int\n    Val""ue of launch attribute\n    cudaLaunchAttributeNvlinkUtilCentricScheduling.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttribute_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_val = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttribute_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttribute_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttribute_st(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_val) {
    e = (*v)(((PyObject *)p->_val), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttribute_st(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st *)o;
  tmp = ((PyObject*)p->_val);
  p->_val = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttributeValue *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_2id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_val(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_val(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3val_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaLaunchAttribute_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchAttribute_st[] = {
  {"id", __pyx_getprop_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_id, __pyx_setprop_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_id, 0, 0},
  {"val", __pyx_getprop_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_val, __pyx_setprop_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_val, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaLaunchAttribute_st(void_ptr _ptr=0)\n\nLaunch attribute\n\nAttributes\n----------\nid : cudaLaunchAttributeID\n    Attribute to set\nval : cudaLaunchAttributeValue\n    Value of the attribute\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st_spec = {
  "cuda.bindings.runtime.cudaLaunchAttribute_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLaunchAttribute_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaLaunchAttribute_st(void_ptr _ptr=0)\n\nLaunch attribute\n\nAttributes\n----------\nid : cudaLaunchAttributeID\n    Attribute to set\nval : cudaLaunchAttributeValue\n    Value of the attribute\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct22(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct22(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct22) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_13anon_struct22_bytesOverBudget(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct22_bytesOverBudget(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_15bytesOverBudget_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_struct22[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct22_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct22_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_13anon_struct22_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_struct22[] = {
  {"bytesOverBudget", __pyx_getprop_4cuda_8bindings_7runtime_13anon_struct22_bytesOverBudget, __pyx_setprop_4cuda_8bindings_7runtime_13anon_struct22_bytesOverBudget, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_struct22_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct22},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_struct22(void_ptr _ptr)\n\nAttributes\n----------\nbytesOverBudget : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_struct22},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_struct22},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_struct22},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_struct22_spec = {
  "cuda.bindings.runtime.anon_struct22",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_struct22_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_struct22 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_struct22", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_struct22, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_struct22(void_ptr _ptr)\n\nAttributes\n----------\nbytesOverBudget : unsigned long long\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_struct22, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_struct22, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_13anon_struct22_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_struct22, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union9(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)o);
  p->_overBudget = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union9(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union9) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_overBudget);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union9(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_overBudget) {
    e = (*v)(((PyObject *)p->_overBudget), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union9(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *p = (struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)o;
  tmp = ((PyObject*)p->_overBudget);
  p->_overBudget = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_struct22 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_11anon_union9_overBudget(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_10overBudget_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_11anon_union9_overBudget(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_10overBudget_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union9[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union9_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union9_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_11anon_union9_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union9[] = {
  {"overBudget", __pyx_getprop_4cuda_8bindings_7runtime_11anon_union9_overBudget, __pyx_setprop_4cuda_8bindings_7runtime_11anon_union9_overBudget, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union9_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union9},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union9(void_ptr _ptr)\n\nAttributes\n----------\noverBudget : anon_struct22\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union9},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_anon_union9},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union9},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union9},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_11anon_union9_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union9},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union9_spec = {
  "cuda.bindings.runtime.anon_union9",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_anon_union9_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union9 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union9", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union9, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("anon_union9(void_ptr _ptr)\n\nAttributes\n----------\noverBudget : anon_struct22\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_anon_union9, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_anon_union9, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union9, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union9, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_11anon_union9_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union9, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)o);
  p->_info = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_info);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_info) {
    e = (*v)(((PyObject *)p->_info), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo *)o;
  tmp = ((PyObject*)p->_info);
  p->_info = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union9 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_info(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_info(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_4info_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo[] = {
  {"type", __pyx_getprop_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_type, __pyx_setprop_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_type, 0, 0},
  {"info", __pyx_getprop_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_info, __pyx_setprop_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_info, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaAsyncNotificationInfo(void_ptr _ptr=0)\n\nInformation describing an async notification event\n\nAttributes\n----------\ntype : cudaAsyncNotificationType\n    The type of notification being sent\ninfo : anon_union9\n    Information about the notification. `typename` must be checked in\n    order to interpret this field.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_spec = {
  "cuda.bindings.runtime.cudaAsyncNotificationInfo",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaAsyncNotificationInfo", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaAsyncNotificationInfo(void_ptr _ptr=0)\n\nInformation describing an async notification event\n\nAttributes\n----------\ntype : cudaAsyncNotificationType\n    The type of notification being sent\ninfo : anon_union9\n    Information about the notification. `typename` must be checked in\n    order to interpret this field.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaTextureDesc(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaTextureDesc(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaTextureDesc) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_addressMode(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_addressMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11addressMode_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_filterMode(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_filterMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_10filterMode_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_readMode(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_readMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_8readMode_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_sRGB(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_sRGB(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_4sRGB_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_borderColor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_borderColor(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11borderColor_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_normalizedCoords(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_normalizedCoords(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16normalizedCoords_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_maxAnisotropy(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_maxAnisotropy(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13maxAnisotropy_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_mipmapFilterMode(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_mipmapFilterMode(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_16mipmapFilterMode_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_mipmapLevelBias(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_mipmapLevelBias(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15mipmapLevelBias_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_minMipmapLevelClamp(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_minMipmapLevelClamp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19minMipmapLevelClamp_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_maxMipmapLevelClamp(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_maxMipmapLevelClamp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_19maxMipmapLevelClamp_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_disableTrilinearOptimization(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_disableTrilinearOptimization(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_28disableTrilinearOptimization_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_seamlessCubemap(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_seamlessCubemap(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_15seamlessCubemap_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaTextureDesc[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaTextureDesc_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaTextureDesc_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaTextureDesc_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaTextureDesc[] = {
  {"addressMode", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_addressMode, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_addressMode, 0, 0},
  {"filterMode", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_filterMode, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_filterMode, 0, 0},
  {"readMode", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_readMode, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_readMode, 0, 0},
  {"sRGB", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_sRGB, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_sRGB, 0, 0},
  {"borderColor", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_borderColor, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_borderColor, 0, 0},
  {"normalizedCoords", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_normalizedCoords, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_normalizedCoords, 0, 0},
  {"maxAnisotropy", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_maxAnisotropy, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_maxAnisotropy, 0, 0},
  {"mipmapFilterMode", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_mipmapFilterMode, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_mipmapFilterMode, 0, 0},
  {"mipmapLevelBias", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_mipmapLevelBias, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_mipmapLevelBias, 0, 0},
  {"minMipmapLevelClamp", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_minMipmapLevelClamp, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_minMipmapLevelClamp, 0, 0},
  {"maxMipmapLevelClamp", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_maxMipmapLevelClamp, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_maxMipmapLevelClamp, 0, 0},
  {"disableTrilinearOptimization", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_disableTrilinearOptimization, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_disableTrilinearOptimization, 0, 0},
  {"seamlessCubemap", __pyx_getprop_4cuda_8bindings_7runtime_15cudaTextureDesc_seamlessCubemap, __pyx_setprop_4cuda_8bindings_7runtime_15cudaTextureDesc_seamlessCubemap, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaTextureDesc},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaTextureDesc(void_ptr _ptr=0)\n\nCUDA texture descriptor\n\nAttributes\n----------\naddressMode : list[cudaTextureAddressMode]\n    Texture address mode for up to 3 dimensions\nfilterMode : cudaTextureFilterMode\n    Texture filter mode\nreadMode : cudaTextureReadMode\n    Texture read mode\nsRGB : int\n    Perform sRGB->linear conversion during texture read\nborderColor : list[float]\n    Texture Border Color\nnormalizedCoords : int\n    Indicates whether texture reads are normalized or not\nmaxAnisotropy : unsigned int\n    Limit to the anisotropy ratio\nmipmapFilterMode : cudaTextureFilterMode\n    Mipmap filter mode\nmipmapLevelBias : float\n    Offset applied to the supplied mipmap level\nminMipmapLevelClamp : float\n    Lower end of the mipmap level range to clamp access to\nmaxMipmapLevelClamp : float\n    Upper end of the mipmap level range to clamp access to\ndisableTrilinearOptimization : int\n    Disable any trilinear filtering optimizations.\nseamlessCubemap : int\n    Enable seamless cube map filtering.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaTextureDesc},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaTextureDesc},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaTextureDesc},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc_spec = {
  "cuda.bindings.runtime.cudaTextureDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaTextureDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaTextureDesc, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("cudaTextureDesc(void_ptr _ptr=0)\n\nCUDA texture descriptor\n\nAttributes\n----------\naddressMode : list[cudaTextureAddressMode]\n    Texture address mode for up to 3 dimensions\nfilterMode : cudaTextureFilterMode\n    Texture filter mode\nreadMode : cudaTextureReadMode\n    Texture read mode\nsRGB : int\n    Perform sRGB->linear conversion during texture read\nborderColor : list[float]\n    Texture Border Color\nnormalizedCoords : int\n    Indicates whether texture reads are normalized or not\nmaxAnisotropy : unsigned int\n    Limit to the anisotropy ratio\nmipmapFilterMode : cudaTextureFilterMode\n    Mipmap filter mode\nmipmapLevelBias : float\n    Offset applied to the supplied mipmap level\nminMipmapLevelClamp : float\n    Lower end of the mipmap level range to clamp access to\nmaxMipmapLevelClamp : float\n    Upper end of the mipmap level range to clamp access to\ndisableTrilinearOptimization : int\n    Disable any trilinear filtering optimizations.\nseamlessCubemap : int\n    Enable seamless cube map filtering.\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaTextureDesc, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaTextureDesc, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_15cudaTextureDesc_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaTextureDesc, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)o);
  __Pyx_default_placement_construct(&(p->_pvt_val));
  p->_channelDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_pvt_val);
  Py_CLEAR(p->_channelDesc);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_channelDesc) {
    e = (*v)(((PyObject *)p->_channelDesc), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st *)o;
  tmp = ((PyObject*)p->_channelDesc);
  p->_channelDesc = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaChannelFormatDesc *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_width(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5width_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_height(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6height_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_depth(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_depth(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5depth_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_pitch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_pitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_5pitch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_numChannels(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_numChannels(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11numChannels_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_channelDesc(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_channelDesc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11channelDesc_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_reserved(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_reserved(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_8reserved_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st[] = {
  {"width", __pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_width, __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_width, 0, 0},
  {"height", __pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_height, __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_height, 0, 0},
  {"depth", __pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_depth, __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_depth, 0, 0},
  {"pitch", __pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_pitch, __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_pitch, 0, 0},
  {"numChannels", __pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_numChannels, __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_numChannels, 0, 0},
  {"channelDesc", __pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_channelDesc, __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_channelDesc, 0, 0},
  {"reserved", __pyx_getprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_reserved, __pyx_setprop_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_reserved, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaEglPlaneDesc_st(void_ptr _ptr=0)\n\nCUDA EGL Plane Descriptor - structure defining each plane of a CUDA\nEGLFrame\n\nAttributes\n----------\nwidth : unsigned int\n    Width of plane\nheight : unsigned int\n    Height of plane\ndepth : unsigned int\n    Depth of plane\npitch : unsigned int\n    Pitch of plane\nnumChannels : unsigned int\n    Number of channels for the plane\nchannelDesc : cudaChannelFormatDesc\n    Channel Format Descriptor\nreserved : list[unsigned int]\n    Reserved for future use\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st_spec = {
  "cuda.bindings.runtime.cudaEglPlaneDesc_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaEglPlaneDesc_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaEglPlaneDesc_st(void_ptr _ptr=0)\n\nCUDA EGL Plane Descriptor - structure defining each plane of a CUDA\nEGLFrame\n\nAttributes\n----------\nwidth : unsigned int\n    Width of plane\nheight : unsigned int\n    Height of plane\ndepth : unsigned int\n    Depth of plane\npitch : unsigned int\n    Pitch of plane\nnumChannels : unsigned int\n    Number of channels for the plane\nchannelDesc : cudaChannelFormatDesc\n    Channel Format Descriptor\nreserved : list[unsigned int]\n    Reserved for future use\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_anon_union10(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union10(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union10) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_union10_pArray(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pArray_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_union10_pArray(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pArray_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_12anon_union10_pPitch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pPitch_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_12anon_union10_pPitch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_6pPitch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_anon_union10[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_union10_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_union10_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_12anon_union10_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_anon_union10[] = {
  {"pArray", __pyx_getprop_4cuda_8bindings_7runtime_12anon_union10_pArray, __pyx_setprop_4cuda_8bindings_7runtime_12anon_union10_pArray, 0, 0},
  {"pPitch", __pyx_getprop_4cuda_8bindings_7runtime_12anon_union10_pPitch, __pyx_setprop_4cuda_8bindings_7runtime_12anon_union10_pPitch, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_anon_union10_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union10},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("anon_union10(void_ptr _ptr)\n\nAttributes\n----------\npArray : list[cudaArray_t]\n\npPitch : list[cudaPitchedPtr]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_anon_union10},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_anon_union10},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_12anon_union10_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_anon_union10},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_anon_union10_spec = {
  "cuda.bindings.runtime.anon_union10",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_anon_union10_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_anon_union10 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""anon_union10", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_anon_union10, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("anon_union10(void_ptr _ptr)\n\nAttributes\n----------\npArray : list[cudaArray_t]\n\npPitch : list[cudaPitchedPtr]\n\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_anon_union10, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_anon_union10, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_12anon_union10_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_anon_union10, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglFrame_st(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)o);
  p->_frame = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)Py_None); Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglFrame_st(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglFrame_st) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_frame);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglFrame_st(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_frame) {
    e = (*v)(((PyObject *)p->_frame), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglFrame_st(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st *)o;
  tmp = ((PyObject*)p->_frame);
  p->_frame = ((struct __pyx_obj_4cuda_8bindings_7runtime_anon_union10 *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_frame(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_frame(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_5frame_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_planeDesc(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_planeDesc(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9planeDesc_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_planeCount(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_planeCount(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_10planeCount_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_frameType(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_frameType(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9frameType_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_eglColorFormat(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_1__get__(o);
}

static int __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_eglColorFormat(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_14eglColorFormat_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaEglFrame_st[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_7getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaEglFrame_st_6getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaEglFrame_st_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaEglFrame_st_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4cuda_8bindings_7runtime_cudaEglFrame_st[] = {
  {"frame", __pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_frame, __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_frame, 0, 0},
  {"planeDesc", __pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_planeDesc, __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_planeDesc, 0, 0},
  {"planeCount", __pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_planeCount, __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_planeCount, 0, 0},
  {"frameType", __pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_frameType, __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_frameType, 0, 0},
  {"eglColorFormat", __pyx_getprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_eglColorFormat, __pyx_setprop_4cuda_8bindings_7runtime_15cudaEglFrame_st_eglColorFormat, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("cudaEglFrame_st(void_ptr _ptr=0)\n\nCUDA EGLFrame Descriptor - structure defining one frame of EGL.\nEach frame may contain one or more planes depending on whether the\nsurface is Multiplanar or not. Each plane of EGLFrame is\nrepresented by cudaEglPlaneDesc which is defined as:\ntypedefstructcudaEglPlaneDesc_st unsignedintwidth;\nunsignedintheight; unsignedintdepth; unsignedintpitch;\nunsignedintnumChannels; structcudaChannelFormatDescchannelDesc;\nunsignedintreserved[4]; cudaEglPlaneDesc;\n\nAttributes\n----------\nframe : anon_union10\n\nplaneDesc : list[cudaEglPlaneDesc]\n    CUDA EGL Plane Descriptor cudaEglPlaneDesc\nplaneCount : unsigned int\n    Number of planes\nframeType : cudaEglFrameType\n    Array or Pitch\neglColorFormat : cudaEglColorFormat\n    CUDA EGL Color Format\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {Py_tp_getset, (void *)__pyx_getsets_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {Py_tp_init, (void *)__pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_3__init__},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st_spec = {
  "cuda.bindings.runtime.cudaEglFrame_st",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaEglFrame_st", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame_st), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("cudaEglFrame_st(void_ptr _ptr=0)\n\nCUDA EGLFrame Descriptor - structure defining one frame of EGL.\nEach frame may contain one or more planes depending on whether the\nsurface is Multiplanar or not. Each plane of EGLFrame is\nrepresented by cudaEglPlaneDesc which is defined as:\ntypedefstructcudaEglPlaneDesc_st unsignedintwidth;\nunsignedintheight; unsignedintdepth; unsignedintpitch;\nunsignedintnumChannels; structcudaChannelFormatDescchannelDesc;\nunsignedintreserved[4]; cudaEglPlaneDesc;\n\nAttributes\n----------\nframe : anon_union10\n\nplaneDesc : list[cudaEglPlaneDesc]\n    CUDA EGL Plane Descriptor cudaEglPlaneDesc\nplaneCount : unsigned int\n    Number of planes\nframeType : cudaEglFrameType\n    Array or Pitch\neglColorFormat : cudaEglColorFormat\n    CUDA EGL Color Format\n\nMethods\n-------\ngetPtr()\n    Get memory address of class instance"), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_CUuuid_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_CUuuid_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Attributes\n    ----------\n    bytes : bytes\n        < CUDA definition of UUID\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_CUuuid_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_CUuuid_spec = {
  "cuda.bindings.runtime.CUuuid",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_CUuuid_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_CUuuid = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""CUuuid", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_CUuuid), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_CUuuid_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    Attributes\n    ----------\n    bytes : bytes\n        < CUDA definition of UUID\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_CUuuid_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaUUID_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_CUuuid_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Attributes\n    ----------\n    bytes : bytes\n        < CUDA definition of UUID\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_CUuuid_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaUUID_t_spec = {
  "cuda.bindings.runtime.cudaUUID_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaUUID_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaUUID_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaUUID_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaUUID_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_CUuuid_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    Attributes\n    ----------\n    bytes : bytes\n        < CUDA definition of UUID\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_9CUuuid_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_CUuuid_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcEventHandle_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    CUDA IPC event handle\n\n    Attributes\n    ----------\n    reserved : bytes\n\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcEventHandle_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t_spec = {
  "cuda.bindings.runtime.cudaIpcEventHandle_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaIpcEventHandle_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcEventHandle_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcEventHandle_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    CUDA IPC event handle\n\n    Attributes\n    ----------\n    reserved : bytes\n\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcEventHandle_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcMemHandle_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    CUDA IPC memory handle\n\n    Attributes\n    ----------\n    reserved : bytes\n\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcMemHandle_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t_spec = {
  "cuda.bindings.runtime.cudaIpcMemHandle_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaIpcMemHandle_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaIpcMemHandle_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaIpcMemHandle_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    CUDA IPC memory handle\n\n    Attributes\n    ----------\n    reserved : bytes\n\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaIpcMemHandle_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFabricHandle_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Attributes\n    ----------\n    reserved : bytes\n\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFabricHandle_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t_spec = {
  "cuda.bindings.runtime.cudaMemFabricHandle_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemFabricHandle_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemFabricHandle_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemFabricHandle_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    Attributes\n    ----------\n    reserved : bytes\n\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemFabricHandle_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Input data for splitting SMs\n\n    Attributes\n    ----------\n    smCount : unsigned int\n        The amount of SMs available in this resource.\n    coscheduledSmCount : unsigned int\n        The amount of co-scheduled SMs grouped together for locality\n        purposes.\n    preferredCoscheduledSmCount : unsigned int\n        When possible, combine co-scheduled groups together into larger\n        groups of this size.\n    flags : unsigned int\n        Combination of `cudaDevSmResourceGroup_flags` values to indicate\n        this this group is created.\n    reserved : list[unsigned int]\n        Reserved for future use - ensure this is is zero initialized.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_spec = {
  "cuda.bindings.runtime.cudaDevSmResourceGroupParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDevSmResourceGroupParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    Input data for splitting SMs\n\n    Attributes\n    ----------\n    smCount : unsigned int\n        The amount of SMs available in this resource.\n    coscheduledSmCount : unsigned int\n        The amount of co-scheduled SMs grouped together for locality\n        purposes.\n    preferredCoscheduledSmCount : unsigned int\n        When possible, combine co-scheduled groups together into larger\n        groups of this size.\n    flags : unsigned int\n        Combination of `cudaDevSmResourceGroup_flags` values to indicate\n        this this group is created.\n    reserved : list[unsigned int]\n        Reserved for future use - ensure this is is zero initialized.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaDevResource_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResource_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    A tagged union describing different resources identified by the\n    type field. This structure should not be directly modified outside\n    of the API that created it. struct enumcudaDevResourceTypetype;\n    union structcudaDevSmResourcesm;\n    structcudaDevWorkqueueConfigResourcewqConfig;\n    structcudaDevWorkqueueResourcewq; ; ;  - If `typename` is\n    `cudaDevResourceTypeInvalid`, this resoure is not valid and cannot\n    be further accessed.    - If `typename` is `cudaDevResourceTypeSm`,\n    the cudaDevSmResource structure `sm` is filled in. For example,\n    `sm.smCount` will reflect the amount of streaming multiprocessors\n    available in this resource.    - If `typename` is\n    `cudaDevResourceTypeWorkqueueConfig`, the\n    cudaDevWorkqueueConfigResource structure `wqConfig` is filled in.\n    - If `typename` is `cudaDevResourceTypeWorkqueue`, the\n    cudaDevWorkqueueResource structure `wq` is filled in.\n\n    Attributes\n    ----------\n    type : cudaDevResourceType\n        Type of resource, dictates which union field was last set\n    _internal_padding : bytes\n\n    sm : cudaDevSmResource\n        Resource corresponding to cudaDevResourceTypeSm `typename`.\n    wqConfig : cudaDevWorkqueueConfigResource\n        Resource corresponding to cudaDevResourceTypeWorkqueueConfig\n        `typename`.\n    wq : cudaDevWorkqueueResource\n        Resource corresponding to cudaDevResourceTypeWorkqueue `typename`.\n    _oversize : bytes\n\n    nextResource : cudaDevResource_st\n\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaDevResource_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaDevResource_st},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResource_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaDevResource_spec = {
  "cuda.bindings.runtime.cudaDevResource",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaDevResource_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaDevResource = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaDevResource", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaDevResource), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    A tagged union describing different resources identified by the\n    type field. This structure should not be directly modified outside\n    of the API that created it. struct enumcudaDevResourceTypetype;\n    union structcudaDevSmResourcesm;\n    structcudaDevWorkqueueConfigResourcewqConfig;\n    structcudaDevWorkqueueResourcewq; ; ;  - If `typename` is\n    `cudaDevResourceTypeInvalid`, this resoure is not valid and cannot\n    be further accessed.    - If `typename` is `cudaDevResourceTypeSm`,\n    the cudaDevSmResource structure `sm` is filled in. For example,\n    `sm.smCount` will reflect the amount of streaming multiprocessors\n    available in this resource.    - If `typename` is\n    `cudaDevResourceTypeWorkqueueConfig`, the\n    cudaDevWorkqueueConfigResource structure `wqConfig` is filled in.\n    - If `typename` is `cudaDevResourceTypeWorkqueue`, the\n    cudaDevWorkqueueResource structure `wq` is filled in.\n\n    Attributes\n    ----------\n    type : cudaDevResourceType\n        Type of resource, dictates which union field was last set\n    _internal_padding : bytes\n\n    sm : cudaDevSmResource\n        Resource corresponding to cudaDevResourceTypeSm `typename`.\n    wqConfig : cudaDevWorkqueueConfigResource\n        Resource corresponding to cudaDevResourceTypeWorkqueueConfig\n        `typename`.\n    wq : cudaDevWorkqueueResource\n        Resource corresponding to cudaDevResourceTypeWorkqueue `typename`.\n    _oversize : bytes\n\n    nextResource : cudaDevResource_st\n\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_18cudaDevResource_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaDevResource_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphEdgeData_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Optional annotation for edges in a CUDA graph. Note, all edges\n    implicitly have annotations and default to a zero-initialized value\n    if not specified. A zero-initialized struct indicates a standard\n    full serialization of two nodes with memory visibility.\n\n    Attributes\n    ----------\n    from_port : bytes\n        This indicates when the dependency is triggered from the upstream\n        node on the edge. The meaning is specfic to the node type. A value\n        of 0 in all cases means full completion of the upstream node, with\n        memory visibility to the downstream node or portion thereof\n        (indicated by `to_port`).   Only kernel nodes define non-zero\n        ports. A kernel node can use the following output port types:\n        cudaGraphKernelNodePortDefault,\n        cudaGraphKernelNodePortProgrammatic, or\n        cudaGraphKernelNodePortLaunchCompletion.\n    to_port : bytes\n        This indicates what portion of the downstream node is dependent on\n        the upstream node or portion thereof (indicated by `from_port`).\n        The meaning is specific to the node type. A value of 0 in all cases\n        means the entirety of the downstream node is dependent on the\n        upstream work.   Currently no node types define non-zero ports.\n        Accordingly, this field must be set to zero.\n    type : bytes\n        This should be populated with a value from\n        ::cudaGraphDependencyType. (It is typed as char due to compiler-\n        specific layout of bitfields.) See ::cudaGraphDependencyType.\n    reserved : bytes\n        These bytes are unused and must be zeroed. This ensures\n        compatibility if additional fields are added in the future.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphEdgeData_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_spec = {
  "cuda.bindings.runtime.cudaGraphEdgeData",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphEdgeData", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphEdgeData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphEdgeData_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    Optional annotation for edges in a CUDA graph. Note, all edges\n    implicitly have annotations and default to a zero-initialized value\n    if not specified. A zero-initialized struct indicates a standard\n    full serialization of two nodes with memory visibility.\n\n    Attributes\n    ----------\n    from_port : bytes\n        This indicates when the dependency is triggered from the upstream\n        node on the edge. The meaning is specfic to the node type. A value\n        of 0 in all cases means full completion of the upstream node, with\n        memory visibility to the downstream node or portion thereof\n        (indicated by `to_port`).   Only kernel nodes define non-zero\n        ports. A kernel node can use the following output port types:\n        cudaGraphKernelNodePortDefault,\n        cudaGraphKernelNodePortProgrammatic, or\n        cudaGraphKernelNodePortLaunchCompletion.\n    to_port : bytes\n        This indicates what portion of the downstream node is dependent on\n        the upstream node or portion thereof (indicated by `from_port`).\n        The meaning is specific to the node type. A value of 0 in all cases\n        means the entirety of the downstream node is dependent on the\n        upstream work.   Currently no node types define non-zero ports.\n        Accordingly, this field must be set to zero.\n    type : bytes\n        This should be populated with a value from\n        ::cudaGraphDependencyType. (It is typed as char due to compiler-\n        specific layout of bitfields.) See ::cudaGraphDependencyType.\n    reserved : bytes\n        These bytes are unused and must be zeroed. This ensures\n        compatibility if additional fields are added in the future.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphEdgeData_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Graph instantiation parameters\n\n    Attributes\n    ----------\n    flags : unsigned long long\n        Instantiation flags\n    uploadStream : cudaStream_t\n        Upload stream\n    errNode_out : cudaGraphNode_t\n        The node which caused instantiation to fail, if any\n    result_out : cudaGraphInstantiateResult\n        Whether instantiation was successful. If it failed, the reason why\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_spec = {
  "cuda.bindings.runtime.cudaGraphInstantiateParams",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphInstantiateParams", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphInstantiateParams), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    Graph instantiation parameters\n\n    Attributes\n    ----------\n    flags : unsigned long long\n        Instantiation flags\n    uploadStream : cudaStream_t\n        Upload stream\n    errNode_out : cudaGraphNode_t\n        The node which caused instantiation to fail, if any\n    result_out : cudaGraphInstantiateResult\n        Whether instantiation was successful. If it failed, the reason why\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Result information returned by cudaGraphExecUpdate\n\n    Attributes\n    ----------\n    result : cudaGraphExecUpdateResult\n        Gives more specific detail when a cuda graph update fails.\n    errorNode : cudaGraphNode_t\n        The \"to node\" of the error edge when the topologies do not match.\n        The error node when the error is associated with a specific node.\n        NULL when the error is generic.\n    errorFromNode : cudaGraphNode_t\n        The from node of error edge when the topologies do not match.\n        Otherwise NULL.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_spec = {
  "cuda.bindings.runtime.cudaGraphExecUpdateResultInfo",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphExecUpdateResultInfo", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    Result information returned by cudaGraphExecUpdate\n\n    Attributes\n    ----------\n    result : cudaGraphExecUpdateResult\n        Gives more specific detail when a cuda graph update fails.\n    errorNode : cudaGraphNode_t\n        The \"to node\" of the error edge when the topologies do not match.\n        The error node when the error is associated with a specific node.\n        NULL when the error is generic.\n    errorFromNode : cudaGraphNode_t\n        The from node of error edge when the topologies do not match.\n        Otherwise NULL.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Memory Synchronization Domain map  See cudaLaunchMemSyncDomain.  By\n    default, kernels are launched in domain 0. Kernel launched with\n    cudaLaunchMemSyncDomainRemote will have a different domain ID. User\n    may also alter the domain ID with ::cudaLaunchMemSyncDomainMap for\n    a specific stream / graph node / kernel launch. See\n    cudaLaunchAttributeMemSyncDomainMap.  Domain ID range is available\n    through cudaDevAttrMemSyncDomainCount.\n\n    Attributes\n    ----------\n    default_ : bytes\n        The default domain ID to use for designated kernels\n    remote : bytes\n        The remote domain ID to use for designated kernels\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_spec = {
  "cuda.bindings.runtime.cudaLaunchMemSyncDomainMap",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLaunchMemSyncDomainMap", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    Memory Synchronization Domain map  See cudaLaunchMemSyncDomain.  By\n    default, kernels are launched in domain 0. Kernel launched with\n    cudaLaunchMemSyncDomainRemote will have a different domain ID. User\n    may also alter the domain ID with ::cudaLaunchMemSyncDomainMap for\n    a specific stream / graph node / kernel launch. See\n    cudaLaunchAttributeMemSyncDomainMap.  Domain ID range is available\n    through cudaDevAttrMemSyncDomainCount.\n\n    Attributes\n    ----------\n    default_ : bytes\n        The default domain ID to use for designated kernels\n    remote : bytes\n        The remote domain ID to use for designated kernels\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Launch attribute\n\n    Attributes\n    ----------\n    id : cudaLaunchAttributeID\n        Attribute to set\n    val : cudaLaunchAttributeValue\n        Value of the attribute\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttribute_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_spec = {
  "cuda.bindings.runtime.cudaLaunchAttribute",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLaunchAttribute", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLaunchAttribute), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    Launch attribute\n\n    Attributes\n    ----------\n    id : cudaLaunchAttributeID\n        Attribute to set\n    val : cudaLaunchAttributeValue\n        Value of the attribute\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Information describing an async notification event\n\n    Attributes\n    ----------\n    type : cudaAsyncNotificationType\n        The type of notification being sent\n    info : anon_union9\n        Information about the notification. `typename` must be checked in\n        order to interpret this field.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t_spec = {
  "cuda.bindings.runtime.cudaAsyncNotificationInfo_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaAsyncNotificationInfo_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    Information describing an async notification event\n\n    Attributes\n    ----------\n    type : cudaAsyncNotificationType\n        The type of notification being sent\n    info : anon_union9\n        Information about the notification. `typename` must be checked in\n        order to interpret this field.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Launch attributes union; used as value field of\n    ::cudaLaunchAttribute\n\n    Attributes\n    ----------\n    pad : bytes\n\n    accessPolicyWindow : cudaAccessPolicyWindow\n        Value of launch attribute cudaLaunchAttributeAccessPolicyWindow.\n    cooperative : int\n        Value of launch attribute cudaLaunchAttributeCooperative. Nonzero\n        indicates a cooperative kernel (see cudaLaunchCooperativeKernel).\n    syncPolicy : cudaSynchronizationPolicy\n        Value of launch attribute cudaLaunchAttributeSynchronizationPolicy.\n        ::cudaSynchronizationPolicy for work queued up in this stream.\n    clusterDim : anon_struct17\n        Value of launch attribute cudaLaunchAttributeClusterDimension that\n        represents the desired cluster dimensions for the kernel. Opaque\n        type with the following fields: - `x` - The X dimension of the\n        cluster, in blocks. Must be a divisor of the grid X dimension.    -\n        `y` - The Y dimension of the cluster, in blocks. Must be a divisor\n        of the grid Y dimension.    - `z` - The Z dimension of the cluster,\n        in blocks. Must be a divisor of the grid Z dimension.\n    clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy\n        Value of launch attribute\n        cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster\n        scheduling policy preference for the kernel.\n    programmaticStreamSerializationAllowed : int\n        Value of launch attribute\n        cudaLaunchAttributeProgrammaticStreamSerialization.\n    programmaticEvent : anon_struct18\n        Value of launch attribute cudaLaunchAttributeProgrammaticEvent with\n        the following fields: - `cudaEvent_t` event - Event to fire when\n        all blocks trigger it.    - `int` flags; - Event record flags, see\n        cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal.\n        - `int` triggerAtBlockStart - If this is set to non-0, each block\n        launch will automatically tri""gger the event.\n    priority : int\n        Value of launch attribute cudaLaunchAttributePriority. Execution\n        priority of the kernel.\n    memSyncDomainMap : cudaLaunchMemSyncDomainMap\n        Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See\n        ::cudaLaunchMemSyncDomainMap.\n    memSyncDomain : cudaLaunchMemSyncDomain\n        Value of launch attribute cudaLaunchAttributeMemSyncDomain. See\n        cudaLaunchMemSyncDomain.\n    preferredClusterDim : anon_struct19\n        Value of launch attribute\n        cudaLaunchAttributePreferredClusterDimension that represents the\n        desired preferred cluster dimensions for the kernel. Opaque type\n        with the following fields: - `x` - The X dimension of the preferred\n        cluster, in blocks. Must be a divisor of the grid X dimension, and\n        must be a multiple of the `x` field of\n        cudaLaunchAttributeValue::clusterDim.    - `y` - The Y dimension of\n        the preferred cluster, in blocks. Must be a divisor of the grid Y\n        dimension, and must be a multiple of the `y` field of\n        cudaLaunchAttributeValue::clusterDim.    - `z` - The Z dimension of\n        the preferred cluster, in blocks. Must be equal to the `z` field of\n        cudaLaunchAttributeValue::clusterDim.\n    launchCompletionEvent : anon_struct20\n        Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent\n        with the following fields: - `cudaEvent_t` event - Event to fire\n        when the last block launches.    - `int` flags - Event record\n        flags, see cudaEventRecordWithFlags. Does not accept\n        cudaEventRecordExternal.\n    deviceUpdatableKernelNode : anon_struct21\n        Value of launch attribute\n        cudaLaunchAttributeDeviceUpdatableKernelNode with the following\n        fields: - `int` deviceUpdatable - Whether or not the resulting\n        kernel node should be device-updatable.    -\n        `cudaGraphDeviceNode_t` devNode - Returns a hand""le to pass to the\n        various device-side update functions.\n    sharedMemCarveout : unsigned int\n        Value of launch attribute\n        cudaLaunchAttributePreferredSharedMemoryCarveout.\n    nvlinkUtilCentricScheduling : unsigned int\n        Value of launch attribute\n        cudaLaunchAttributeNvlinkUtilCentricScheduling.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue_spec = {
  "cuda.bindings.runtime.cudaStreamAttrValue",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaStreamAttrValue", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStreamAttrValue), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    Launch attributes union; used as value field of\n    ::cudaLaunchAttribute\n\n    Attributes\n    ----------\n    pad : bytes\n\n    accessPolicyWindow : cudaAccessPolicyWindow\n        Value of launch attribute cudaLaunchAttributeAccessPolicyWindow.\n    cooperative : int\n        Value of launch attribute cudaLaunchAttributeCooperative. Nonzero\n        indicates a cooperative kernel (see cudaLaunchCooperativeKernel).\n    syncPolicy : cudaSynchronizationPolicy\n        Value of launch attribute cudaLaunchAttributeSynchronizationPolicy.\n        ::cudaSynchronizationPolicy for work queued up in this stream.\n    clusterDim : anon_struct17\n        Value of launch attribute cudaLaunchAttributeClusterDimension that\n        represents the desired cluster dimensions for the kernel. Opaque\n        type with the following fields: - `x` - The X dimension of the\n        cluster, in blocks. Must be a divisor of the grid X dimension.    -\n        `y` - The Y dimension of the cluster, in blocks. Must be a divisor\n        of the grid Y dimension.    - `z` - The Z dimension of the cluster,\n        in blocks. Must be a divisor of the grid Z dimension.\n    clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy\n        Value of launch attribute\n        cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster\n        scheduling policy preference for the kernel.\n    programmaticStreamSerializationAllowed : int\n        Value of launch attribute\n        cudaLaunchAttributeProgrammaticStreamSerialization.\n    programmaticEvent : anon_struct18\n        Value of launch attribute cudaLaunchAttributeProgrammaticEvent with\n        the following fields: - `cudaEvent_t` event - Event to fire when\n        all blocks trigger it.    - `int` flags; - Event record flags, see\n        cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal.\n        - `int` triggerAtBlockStart - If this is set to non-0, each block\n        launch will automatically tri""gger the event.\n    priority : int\n        Value of launch attribute cudaLaunchAttributePriority. Execution\n        priority of the kernel.\n    memSyncDomainMap : cudaLaunchMemSyncDomainMap\n        Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See\n        ::cudaLaunchMemSyncDomainMap.\n    memSyncDomain : cudaLaunchMemSyncDomain\n        Value of launch attribute cudaLaunchAttributeMemSyncDomain. See\n        cudaLaunchMemSyncDomain.\n    preferredClusterDim : anon_struct19\n        Value of launch attribute\n        cudaLaunchAttributePreferredClusterDimension that represents the\n        desired preferred cluster dimensions for the kernel. Opaque type\n        with the following fields: - `x` - The X dimension of the preferred\n        cluster, in blocks. Must be a divisor of the grid X dimension, and\n        must be a multiple of the `x` field of\n        cudaLaunchAttributeValue::clusterDim.    - `y` - The Y dimension of\n        the preferred cluster, in blocks. Must be a divisor of the grid Y\n        dimension, and must be a multiple of the `y` field of\n        cudaLaunchAttributeValue::clusterDim.    - `z` - The Z dimension of\n        the preferred cluster, in blocks. Must be equal to the `z` field of\n        cudaLaunchAttributeValue::clusterDim.\n    launchCompletionEvent : anon_struct20\n        Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent\n        with the following fields: - `cudaEvent_t` event - Event to fire\n        when the last block launches.    - `int` flags - Event record\n        flags, see cudaEventRecordWithFlags. Does not accept\n        cudaEventRecordExternal.\n    deviceUpdatableKernelNode : anon_struct21\n        Value of launch attribute\n        cudaLaunchAttributeDeviceUpdatableKernelNode with the following\n        fields: - `int` deviceUpdatable - Whether or not the resulting\n        kernel node should be device-updatable.    -\n        `cudaGraphDeviceNode_t` devNode - Returns a hand""le to pass to the\n        various device-side update functions.\n    sharedMemCarveout : unsigned int\n        Value of launch attribute\n        cudaLaunchAttributePreferredSharedMemoryCarveout.\n    nvlinkUtilCentricScheduling : unsigned int\n        Value of launch attribute\n        cudaLaunchAttributeNvlinkUtilCentricScheduling.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Launch attributes union; used as value field of\n    ::cudaLaunchAttribute\n\n    Attributes\n    ----------\n    pad : bytes\n\n    accessPolicyWindow : cudaAccessPolicyWindow\n        Value of launch attribute cudaLaunchAttributeAccessPolicyWindow.\n    cooperative : int\n        Value of launch attribute cudaLaunchAttributeCooperative. Nonzero\n        indicates a cooperative kernel (see cudaLaunchCooperativeKernel).\n    syncPolicy : cudaSynchronizationPolicy\n        Value of launch attribute cudaLaunchAttributeSynchronizationPolicy.\n        ::cudaSynchronizationPolicy for work queued up in this stream.\n    clusterDim : anon_struct17\n        Value of launch attribute cudaLaunchAttributeClusterDimension that\n        represents the desired cluster dimensions for the kernel. Opaque\n        type with the following fields: - `x` - The X dimension of the\n        cluster, in blocks. Must be a divisor of the grid X dimension.    -\n        `y` - The Y dimension of the cluster, in blocks. Must be a divisor\n        of the grid Y dimension.    - `z` - The Z dimension of the cluster,\n        in blocks. Must be a divisor of the grid Z dimension.\n    clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy\n        Value of launch attribute\n        cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster\n        scheduling policy preference for the kernel.\n    programmaticStreamSerializationAllowed : int\n        Value of launch attribute\n        cudaLaunchAttributeProgrammaticStreamSerialization.\n    programmaticEvent : anon_struct18\n        Value of launch attribute cudaLaunchAttributeProgrammaticEvent with\n        the following fields: - `cudaEvent_t` event - Event to fire when\n        all blocks trigger it.    - `int` flags; - Event record flags, see\n        cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal.\n        - `int` triggerAtBlockStart - If this is set to non-0, each block\n        launch will automatically tri""gger the event.\n    priority : int\n        Value of launch attribute cudaLaunchAttributePriority. Execution\n        priority of the kernel.\n    memSyncDomainMap : cudaLaunchMemSyncDomainMap\n        Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See\n        ::cudaLaunchMemSyncDomainMap.\n    memSyncDomain : cudaLaunchMemSyncDomain\n        Value of launch attribute cudaLaunchAttributeMemSyncDomain. See\n        cudaLaunchMemSyncDomain.\n    preferredClusterDim : anon_struct19\n        Value of launch attribute\n        cudaLaunchAttributePreferredClusterDimension that represents the\n        desired preferred cluster dimensions for the kernel. Opaque type\n        with the following fields: - `x` - The X dimension of the preferred\n        cluster, in blocks. Must be a divisor of the grid X dimension, and\n        must be a multiple of the `x` field of\n        cudaLaunchAttributeValue::clusterDim.    - `y` - The Y dimension of\n        the preferred cluster, in blocks. Must be a divisor of the grid Y\n        dimension, and must be a multiple of the `y` field of\n        cudaLaunchAttributeValue::clusterDim.    - `z` - The Z dimension of\n        the preferred cluster, in blocks. Must be equal to the `z` field of\n        cudaLaunchAttributeValue::clusterDim.\n    launchCompletionEvent : anon_struct20\n        Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent\n        with the following fields: - `cudaEvent_t` event - Event to fire\n        when the last block launches.    - `int` flags - Event record\n        flags, see cudaEventRecordWithFlags. Does not accept\n        cudaEventRecordExternal.\n    deviceUpdatableKernelNode : anon_struct21\n        Value of launch attribute\n        cudaLaunchAttributeDeviceUpdatableKernelNode with the following\n        fields: - `int` deviceUpdatable - Whether or not the resulting\n        kernel node should be device-updatable.    -\n        `cudaGraphDeviceNode_t` devNode - Returns a hand""le to pass to the\n        various device-side update functions.\n    sharedMemCarveout : unsigned int\n        Value of launch attribute\n        cudaLaunchAttributePreferredSharedMemoryCarveout.\n    nvlinkUtilCentricScheduling : unsigned int\n        Value of launch attribute\n        cudaLaunchAttributeNvlinkUtilCentricScheduling.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttributeValue},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue_spec = {
  "cuda.bindings.runtime.cudaKernelNodeAttrValue",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaKernelNodeAttrValue", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    Launch attributes union; used as value field of\n    ::cudaLaunchAttribute\n\n    Attributes\n    ----------\n    pad : bytes\n\n    accessPolicyWindow : cudaAccessPolicyWindow\n        Value of launch attribute cudaLaunchAttributeAccessPolicyWindow.\n    cooperative : int\n        Value of launch attribute cudaLaunchAttributeCooperative. Nonzero\n        indicates a cooperative kernel (see cudaLaunchCooperativeKernel).\n    syncPolicy : cudaSynchronizationPolicy\n        Value of launch attribute cudaLaunchAttributeSynchronizationPolicy.\n        ::cudaSynchronizationPolicy for work queued up in this stream.\n    clusterDim : anon_struct17\n        Value of launch attribute cudaLaunchAttributeClusterDimension that\n        represents the desired cluster dimensions for the kernel. Opaque\n        type with the following fields: - `x` - The X dimension of the\n        cluster, in blocks. Must be a divisor of the grid X dimension.    -\n        `y` - The Y dimension of the cluster, in blocks. Must be a divisor\n        of the grid Y dimension.    - `z` - The Z dimension of the cluster,\n        in blocks. Must be a divisor of the grid Z dimension.\n    clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy\n        Value of launch attribute\n        cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster\n        scheduling policy preference for the kernel.\n    programmaticStreamSerializationAllowed : int\n        Value of launch attribute\n        cudaLaunchAttributeProgrammaticStreamSerialization.\n    programmaticEvent : anon_struct18\n        Value of launch attribute cudaLaunchAttributeProgrammaticEvent with\n        the following fields: - `cudaEvent_t` event - Event to fire when\n        all blocks trigger it.    - `int` flags; - Event record flags, see\n        cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal.\n        - `int` triggerAtBlockStart - If this is set to non-0, each block\n        launch will automatically tri""gger the event.\n    priority : int\n        Value of launch attribute cudaLaunchAttributePriority. Execution\n        priority of the kernel.\n    memSyncDomainMap : cudaLaunchMemSyncDomainMap\n        Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See\n        ::cudaLaunchMemSyncDomainMap.\n    memSyncDomain : cudaLaunchMemSyncDomain\n        Value of launch attribute cudaLaunchAttributeMemSyncDomain. See\n        cudaLaunchMemSyncDomain.\n    preferredClusterDim : anon_struct19\n        Value of launch attribute\n        cudaLaunchAttributePreferredClusterDimension that represents the\n        desired preferred cluster dimensions for the kernel. Opaque type\n        with the following fields: - `x` - The X dimension of the preferred\n        cluster, in blocks. Must be a divisor of the grid X dimension, and\n        must be a multiple of the `x` field of\n        cudaLaunchAttributeValue::clusterDim.    - `y` - The Y dimension of\n        the preferred cluster, in blocks. Must be a divisor of the grid Y\n        dimension, and must be a multiple of the `y` field of\n        cudaLaunchAttributeValue::clusterDim.    - `z` - The Z dimension of\n        the preferred cluster, in blocks. Must be equal to the `z` field of\n        cudaLaunchAttributeValue::clusterDim.\n    launchCompletionEvent : anon_struct20\n        Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent\n        with the following fields: - `cudaEvent_t` event - Event to fire\n        when the last block launches.    - `int` flags - Event record\n        flags, see cudaEventRecordWithFlags. Does not accept\n        cudaEventRecordExternal.\n    deviceUpdatableKernelNode : anon_struct21\n        Value of launch attribute\n        cudaLaunchAttributeDeviceUpdatableKernelNode with the following\n        fields: - `int` deviceUpdatable - Whether or not the resulting\n        kernel node should be device-updatable.    -\n        `cudaGraphDeviceNode_t` devNode - Returns a hand""le to pass to the\n        various device-side update functions.\n    sharedMemCarveout : unsigned int\n        Value of launch attribute\n        cudaLaunchAttributePreferredSharedMemoryCarveout.\n    nvlinkUtilCentricScheduling : unsigned int\n        Value of launch attribute\n        cudaLaunchAttributeNvlinkUtilCentricScheduling.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    CUDA EGL Plane Descriptor - structure defining each plane of a CUDA\n    EGLFrame\n\n    Attributes\n    ----------\n    width : unsigned int\n        Width of plane\n    height : unsigned int\n        Height of plane\n    depth : unsigned int\n        Depth of plane\n    pitch : unsigned int\n        Pitch of plane\n    numChannels : unsigned int\n        Number of channels for the plane\n    channelDesc : cudaChannelFormatDesc\n        Channel Format Descriptor\n    reserved : list[unsigned int]\n        Reserved for future use\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_spec = {
  "cuda.bindings.runtime.cudaEglPlaneDesc",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaEglPlaneDesc", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglPlaneDesc), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    CUDA EGL Plane Descriptor - structure defining each plane of a CUDA\n    EGLFrame\n\n    Attributes\n    ----------\n    width : unsigned int\n        Width of plane\n    height : unsigned int\n        Height of plane\n    depth : unsigned int\n        Depth of plane\n    pitch : unsigned int\n        Pitch of plane\n    numChannels : unsigned int\n        Number of channels for the plane\n    channelDesc : cudaChannelFormatDesc\n        Channel Format Descriptor\n    reserved : list[unsigned int]\n        Reserved for future use\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {Py_tp_doc, (void *)PyDoc_STR("\n    CUDA EGLFrame Descriptor - structure defining one frame of EGL.\n    Each frame may contain one or more planes depending on whether the\n    surface is Multiplanar or not. Each plane of EGLFrame is\n    represented by cudaEglPlaneDesc which is defined as:\n    typedefstructcudaEglPlaneDesc_st unsignedintwidth;\n    unsignedintheight; unsignedintdepth; unsignedintpitch;\n    unsignedintnumChannels; structcudaChannelFormatDescchannelDesc;\n    unsignedintreserved[4]; cudaEglPlaneDesc;\n\n    Attributes\n    ----------\n    frame : anon_union10\n\n    planeDesc : list[cudaEglPlaneDesc]\n        CUDA EGL Plane Descriptor cudaEglPlaneDesc\n    planeCount : unsigned int\n        Number of planes\n    frameType : cudaEglFrameType\n        Array or Pitch\n    eglColorFormat : cudaEglColorFormat\n        CUDA EGL Color Format\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {Py_tp_clear, (void *)__pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglFrame_st},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_spec = {
  "cuda.bindings.runtime.cudaEglFrame",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaEglFrame = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaEglFrame", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglFrame), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_9__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    CUDA EGLFrame Descriptor - structure defining one frame of EGL.\n    Each frame may contain one or more planes depending on whether the\n    surface is Multiplanar or not. Each plane of EGLFrame is\n    represented by cudaEglPlaneDesc which is defined as:\n    typedefstructcudaEglPlaneDesc_st unsignedintwidth;\n    unsignedintheight; unsignedintdepth; unsignedintpitch;\n    unsignedintnumChannels; structcudaChannelFormatDescchannelDesc;\n    unsignedintreserved[4]; cudaEglPlaneDesc;\n\n    Attributes\n    ----------\n    frame : anon_union10\n\n    planeDesc : list[cudaEglPlaneDesc]\n        CUDA EGL Plane Descriptor cudaEglPlaneDesc\n    planeCount : unsigned int\n        Number of planes\n    frameType : cudaEglFrameType\n        Array or Pitch\n    eglColorFormat : cudaEglColorFormat\n        CUDA EGL Color Format\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n    "), /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_traverse*/
  __pyx_tp_clear_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_4cuda_8bindings_7runtime_15cudaEglFrame_st_3__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaEglFrame_st, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaStream_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStream_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStream_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStream_t);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaStream_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStream_t},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA stream\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaStream_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaStream_t_spec = {
  "cuda.bindings.runtime.cudaStream_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaStream_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaStream_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaStream_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaStream_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaStream_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA stream\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaStream_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEvent_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEvent_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEvent_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEvent_t);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaEvent_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEvent_t},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA event types\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaEvent_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaEvent_t_spec = {
  "cuda.bindings.runtime.cudaEvent_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaEvent_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaEvent_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaEvent_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEvent_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEvent_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA event types\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaEvent_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraph_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraph_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraph_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraph_t);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraph_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraph_t},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA graph\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraph_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraph_t_spec = {
  "cuda.bindings.runtime.cudaGraph_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraph_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraph_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraph_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraph_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraph_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA graph\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraph_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphNode_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNode_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNode_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNode_t);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNode_t},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA graph node.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphNode_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t_spec = {
  "cuda.bindings.runtime.cudaGraphNode_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphNode_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphNode_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphNode_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA graph node.\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphNode_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaUserObject_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaUserObject_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaUserObject_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaUserObject_t);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaUserObject_t},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA user object for graphs\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaUserObject_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t_spec = {
  "cuda.bindings.runtime.cudaUserObject_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaUserObject_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaUserObject_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaUserObject_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA user object for graphs\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaUserObject_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaFunction_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUfunction, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFunction_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFunction_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUfunction)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUfunction, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFunction_t);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaFunction_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFunction_t},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA function\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaFunction_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaFunction_t_spec = {
  "cuda.bindings.runtime.cudaFunction_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFunction_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaFunction_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaFunction_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaFunction_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaFunction_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaFunction_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA function\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaFunction_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPool_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPool_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPool_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPool_t);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPool_t},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA memory pool\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPool_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t_spec = {
  "cuda.bindings.runtime.cudaMemPool_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaMemPool_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaMemPool_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaMemPool_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA memory pool\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaMemPool_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExec_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExec_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExec_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExec_t);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExec_t},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA executable (launchable) graph\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExec_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t_spec = {
  "cuda.bindings.runtime.cudaGraphExec_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphExec_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphExec_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphExec_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA executable (launchable) graph\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphExec_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglStreamConnection(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection, tp_new, newfunc)(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglStreamConnection(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglStreamConnection) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  #if !CYTHON_USE_MODULE_STATE
  if (likely(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection)) __Pyx_PyType_GetSlot(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection, tp_dealloc, destructor)(o); else
  #endif
  __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglStreamConnection);
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglStreamConnection},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA EGLSream Connection\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaEglStreamConnection},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection_spec = {
  "cuda.bindings.runtime.cudaEglStreamConnection",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaEglStreamConnection", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaEglStreamConnection), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaEglStreamConnection, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA EGLSream Connection\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaEglStreamConnection, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphConditionalHandle(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphConditionalHandle(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphConditionalHandle) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaGraphConditionalHandle[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphConditionalHandle},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    CUDA handle for conditional graph nodes\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaGraphConditionalHandle},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphConditionalHandle},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle_spec = {
  "cuda.bindings.runtime.cudaGraphConditionalHandle",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaGraphConditionalHandle = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaGraphConditionalHandle", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaGraphConditionalHandle), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaGraphConditionalHandle, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaGraphConditionalHandle, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    CUDA handle for conditional graph nodes\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaGraphConditionalHandle, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaGraphConditionalHandle, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogIterator(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogIterator(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogIterator) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaLogIterator[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaLogIterator_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaLogIterator_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15cudaLogIterator_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaLogIterator_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogIterator},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaLogIterator},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaLogIterator},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaLogIterator_spec = {
  "cuda.bindings.runtime.cudaLogIterator",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaLogIterator_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaLogIterator = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaLogIterator = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaLogIterator", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaLogIterator), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaLogIterator, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_15cudaLogIterator_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaLogIterator, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaLogIterator, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaLogIterator, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaSurfaceObject_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaSurfaceObject_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaSurfaceObject_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaSurfaceObject_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaSurfaceObject_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    An opaque value that represents a CUDA Surface object\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaSurfaceObject_t},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaSurfaceObject_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t_spec = {
  "cuda.bindings.runtime.cudaSurfaceObject_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaSurfaceObject_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaSurfaceObject_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaSurfaceObject_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaSurfaceObject_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaSurfaceObject_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    An opaque value that represents a CUDA Surface object\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaSurfaceObject_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaSurfaceObject_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaTextureObject_t(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaTextureObject_t(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaTextureObject_t) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaTextureObject_t[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaTextureObject_t_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaTextureObject_t_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_19cudaTextureObject_t_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaTextureObject_t},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    An opaque value that represents a CUDA texture object\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaTextureObject_t},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaTextureObject_t},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t_spec = {
  "cuda.bindings.runtime.cudaTextureObject_t",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_cudaTextureObject_t = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaTextureObject_t", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaTextureObject_t), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaTextureObject_t, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_19cudaTextureObject_t_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_cudaTextureObject_t, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    An opaque value that represents a CUDA texture object\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaTextureObject_t, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaTextureObject_t, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_GLenum(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_6GLenum_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_GLenum(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_GLenum) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_6GLenum_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_GLenum[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLenum_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLenum_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLenum_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLenum_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLenum_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLenum_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_GLenum_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_GLenum},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_6GLenum_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_6GLenum_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_GLenum},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_GLenum},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_GLenum_spec = {
  "cuda.bindings.runtime.GLenum",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_GLenum_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_GLenum = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_6GLenum_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_GLenum = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""GLenum", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_GLenum), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_GLenum, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_6GLenum_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_GLenum, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_GLenum, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_GLenum, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_GLuint(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_6GLuint_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_GLuint(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_GLuint) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_6GLuint_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_GLuint[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLuint_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLuint_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLuint_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLuint_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6GLuint_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6GLuint_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_GLuint_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_GLuint},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_6GLuint_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_6GLuint_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_GLuint},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_GLuint},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_GLuint_spec = {
  "cuda.bindings.runtime.GLuint",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_GLuint_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_GLuint = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_6GLuint_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_GLuint = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""GLuint", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_GLuint), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_GLuint, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_6GLuint_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_GLuint, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_GLuint, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_GLuint, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_EGLint(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_6EGLint_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLint(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLint) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_6EGLint_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_EGLint[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6EGLint_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6EGLint_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6EGLint_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6EGLint_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_6EGLint_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_6EGLint_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_EGLint_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLint},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_6EGLint_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_6EGLint_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_EGLint},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_EGLint},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_EGLint_spec = {
  "cuda.bindings.runtime.EGLint",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_EGLint_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_EGLint = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_6EGLint_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_EGLint = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""EGLint", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_EGLint), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_EGLint, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_6EGLint_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_EGLint, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_EGLint, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_EGLint, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_VdpDevice(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpDevice(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpDevice) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_VdpDevice[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9VdpDevice_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9VdpDevice_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_9VdpDevice_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_VdpDevice_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpDevice},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_VdpDevice},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_VdpDevice},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_VdpDevice_spec = {
  "cuda.bindings.runtime.VdpDevice",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_VdpDevice_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_VdpDevice = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_VdpDevice = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""VdpDevice", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_VdpDevice), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpDevice, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_9VdpDevice_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_VdpDevice, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_VdpDevice, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_VdpDevice, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_VdpGetProcAddress(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpGetProcAddress(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpGetProcAddress) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_VdpGetProcAddress[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17VdpGetProcAddress_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17VdpGetProcAddress_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_17VdpGetProcAddress_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpGetProcAddress},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_VdpGetProcAddress},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_VdpGetProcAddress},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress_spec = {
  "cuda.bindings.runtime.VdpGetProcAddress",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_VdpGetProcAddress = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""VdpGetProcAddress", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_VdpGetProcAddress), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpGetProcAddress, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_17VdpGetProcAddress_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_VdpGetProcAddress, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_VdpGetProcAddress, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_VdpGetProcAddress, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_VdpVideoSurface(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpVideoSurface(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpVideoSurface) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_VdpVideoSurface[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15VdpVideoSurface_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15VdpVideoSurface_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_15VdpVideoSurface_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpVideoSurface},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_VdpVideoSurface},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_VdpVideoSurface},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface_spec = {
  "cuda.bindings.runtime.VdpVideoSurface",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_VdpVideoSurface = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""VdpVideoSurface", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_VdpVideoSurface), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpVideoSurface, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_15VdpVideoSurface_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_VdpVideoSurface, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_VdpVideoSurface, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_VdpVideoSurface, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_VdpOutputSurface(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpOutputSurface(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpOutputSurface) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_VdpOutputSurface[] = {
  {"getPtr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_9getPtr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16VdpOutputSurface_8getPtr},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_11__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16VdpOutputSurface_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_13__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_16VdpOutputSurface_12__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpOutputSurface},
  {Py_tp_repr, (void *)__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_5__repr__},
  {Py_nb_int, (void *)__pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_7__int__},
  {Py_tp_doc, (void *)PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_VdpOutputSurface},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_VdpOutputSurface},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface_spec = {
  "cuda.bindings.runtime.VdpOutputSurface",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface_slots,
};
#else

static PyNumberMethods __pyx_tp_as_number_VdpOutputSurface = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_bool*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  __pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_7__int__, /*nb_int*/
  0, /*nb_long (reserved)*/
  0, /*nb_float*/
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  0, /*nb_matrix_multiply*/
  0, /*nb_inplace_matrix_multiply*/
};

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""VdpOutputSurface", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_VdpOutputSurface), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_VdpOutputSurface, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_4cuda_8bindings_7runtime_16VdpOutputSurface_5__repr__, /*tp_repr*/
  &__pyx_tp_as_number_VdpOutputSurface, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n\n    Methods\n    -------\n    getPtr()\n        Get memory address of class instance\n\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_VdpOutputSurface, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_VdpOutputSurface, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *)o);
  __Pyx_default_placement_construct(&(p->_allocated));
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *p = (struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_1__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  __Pyx_call_destructor(p->_allocated);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal[] = {
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_3__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_2__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_5__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_4__setstate_cython__},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal},
  {Py_tp_methods, (void *)__pyx_methods_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal_spec = {
  "cuda.bindings.runtime.cudaBindingsRuntimeGlobal",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""cudaBindingsRuntimeGlobal", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct__genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct__genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_1_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_1_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_2_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_2_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_3_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_3_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_4_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_4_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_5_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_5_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_6_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_6_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_7_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_7_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_8_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_8_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_9_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_9_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_10_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_10_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_11_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_11_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_12_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_12_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_13_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_13_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_14_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_14_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_15_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_15_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_16_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_16_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_17_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_17_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_18_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_18_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_19_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_19_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_20_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_20_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_21_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_21_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_22_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_22_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_23_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_23_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_24_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_24_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_25_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_25_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_26_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_26_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_27_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_27_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_28_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_28_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_29_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_29_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_30_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_30_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_31_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_31_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_32_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_32_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_33_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_33_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_34_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_34_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_35_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_35_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_36_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_36_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_37_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_37_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_38_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_38_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_39_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_39_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_40_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_40_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_41_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_41_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_42_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_42_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_43_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_43_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_44_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_44_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_45_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_45_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_46_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_46_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_47_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_47_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_48_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_48_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_49_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_49_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_50_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_50_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_51_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_51_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_52_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_52_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_53_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_53_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_54_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_54_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_55_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_55_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_56_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_56_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_57_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_57_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_58_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_58_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_59_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_59_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_60_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_60_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_61_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_61_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_62_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_62_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_63_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_63_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_64_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_64_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_65_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_65_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_66_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_66_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_67_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_67_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_68_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_68_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_69_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_69_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_70_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_70_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_71_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_71_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_72_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_72_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_73_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_73_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_74_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_74_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_75_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_75_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_76_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_76_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_77_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_77_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_78_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_78_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_79_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_79_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_80_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_80_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_81_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_81_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_82_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_82_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_83_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_83_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_84_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_84_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_85_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_85_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_86_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_86_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_k);
  Py_CLEAR(p->__pyx_v_v);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_k) {
    e = (*v)(p->__pyx_v_k, a); if (e) return e;
  }
  if (p->__pyx_v_v) {
    e = (*v)(p->__pyx_v_v, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_87_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_87_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_88_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_88_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_89_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_89_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_90_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_90_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_91_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_91_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_92_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_92_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_93_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_93_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_94_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_94_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_95_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_95_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_96_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_96_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_97_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_97_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_98_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_98_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_99_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_99_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_100_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_100_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_101_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_101_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_102_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_102_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_103_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_103_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_104_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_104_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_105_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_105_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_106_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_106_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_107_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_107_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_108_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_108_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_109_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_109_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_110_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_110_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_111_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_111_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_112_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_112_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_113_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_113_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_114_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_114_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_115_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_115_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_116_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_116_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_117_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_117_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_118_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_118_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_119_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_119_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_120_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_120_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_121_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_121_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_122_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_122_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_123_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_123_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_124_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_124_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_125_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_125_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_126_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_126_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_127_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_127_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_128_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_128_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_129_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_129_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_130_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_130_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_131_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_131_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_132_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_132_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_133_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_133_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_134_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_134_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_135_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_135_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_136_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_136_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr[--__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr(PyObject *o) {
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v__x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr, sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr[__pyx_mstate_global->__pyx_freecount_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr++] = ((struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *p = (struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v__x) {
    e = (*v)(p->__pyx_v__x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr_spec = {
  "cuda.bindings.runtime.__pyx_scope_struct_137_genexpr",
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "cuda.bindings.runtime.""__pyx_scope_struct_137_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

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_7runtime_m_global = ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *)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);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperKernelParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams)) __PYX_ERR(1, 20, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperKernelParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams) < (0)) __PYX_ERR(1, 20, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams = &__pyx_type_4cuda_8bindings_7runtime__HelperKernelParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams) < (0)) __PYX_ERR(1, 20, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperKernelParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams) < (0)) __PYX_ERR(1, 20, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams) < (0)) __PYX_ERR(1, 20, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr)) __PYX_ERR(1, 129, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr) < (0)) __PYX_ERR(1, 129, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr = &__pyx_type_4cuda_8bindings_7runtime__HelperInputVoidPtr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr) < (0)) __PYX_ERR(1, 129, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperInputVoidPtr, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr) < (0)) __PYX_ERR(1, 129, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperInputVoidPtr) < (0)) __PYX_ERR(1, 129, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute)) __PYX_ERR(1, 157, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute) < (0)) __PYX_ERR(1, 157, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute = &__pyx_type_4cuda_8bindings_7runtime__HelperCUmemPool_attribute;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute) < (0)) __PYX_ERR(1, 157, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCUmemPool_attribute, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute) < (0)) __PYX_ERR(1, 157, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute) < (0)) __PYX_ERR(1, 157, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute)) __PYX_ERR(1, 201, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute) < (0)) __PYX_ERR(1, 201, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute = &__pyx_type_4cuda_8bindings_7runtime__HelperCUmem_range_attribute;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute) < (0)) __PYX_ERR(1, 201, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCUmem_range_attribute, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute) < (0)) __PYX_ERR(1, 201, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute) < (0)) __PYX_ERR(1, 201, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute)) __PYX_ERR(1, 233, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute) < (0)) __PYX_ERR(1, 233, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute = &__pyx_type_4cuda_8bindings_7runtime__HelperCUpointer_attribute;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute) < (0)) __PYX_ERR(1, 233, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCUpointer_attribute, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute) < (0)) __PYX_ERR(1, 233, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute) < (0)) __PYX_ERR(1, 233, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute)) __PYX_ERR(1, 325, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute) < (0)) __PYX_ERR(1, 325, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute = &__pyx_type_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute) < (0)) __PYX_ERR(1, 325, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCUgraphMem_attribute, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute) < (0)) __PYX_ERR(1, 325, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute) < (0)) __PYX_ERR(1, 325, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option)) __PYX_ERR(1, 358, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option) < (0)) __PYX_ERR(1, 358, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option = &__pyx_type_4cuda_8bindings_7runtime__HelperCUjit_option;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option) < (0)) __PYX_ERR(1, 358, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCUjit_option, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option) < (0)) __PYX_ERR(1, 358, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUjit_option) < (0)) __PYX_ERR(1, 358, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption)) __PYX_ERR(1, 420, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption) < (0)) __PYX_ERR(1, 420, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption = &__pyx_type_4cuda_8bindings_7runtime__HelperCudaJitOption;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption) < (0)) __PYX_ERR(1, 420, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCudaJitOption, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption) < (0)) __PYX_ERR(1, 420, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaJitOption) < (0)) __PYX_ERR(1, 420, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption)) __PYX_ERR(1, 462, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption) < (0)) __PYX_ERR(1, 462, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption = &__pyx_type_4cuda_8bindings_7runtime__HelperCUlibraryOption;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption) < (0)) __PYX_ERR(1, 462, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCUlibraryOption, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption) < (0)) __PYX_ERR(1, 462, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUlibraryOption) < (0)) __PYX_ERR(1, 462, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption)) __PYX_ERR(1, 482, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption) < (0)) __PYX_ERR(1, 482, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption = &__pyx_type_4cuda_8bindings_7runtime__HelperCudaLibraryOption;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption) < (0)) __PYX_ERR(1, 482, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCudaLibraryOption, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption) < (0)) __PYX_ERR(1, 482, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCudaLibraryOption) < (0)) __PYX_ERR(1, 482, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType)) __PYX_ERR(1, 502, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType) < (0)) __PYX_ERR(1, 502, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType = &__pyx_type_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType) < (0)) __PYX_ERR(1, 502, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCUmemAllocationHandleType, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType) < (0)) __PYX_ERR(1, 502, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType) < (0)) __PYX_ERR(1, 502, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper)) __PYX_ERR(1, 544, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper) < (0)) __PYX_ERR(1, 544, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper = &__pyx_type_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper) < (0)) __PYX_ERR(1, 544, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_InputVoidPtrPtrHelper, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper) < (0)) __PYX_ERR(1, 544, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__InputVoidPtrPtrHelper) < (0)) __PYX_ERR(1, 544, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings)) __PYX_ERR(1, 557, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings) < (0)) __PYX_ERR(1, 557, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings = &__pyx_type_4cuda_8bindings_7runtime__HelperCUcoredumpSettings;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings) < (0)) __PYX_ERR(1, 557, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_HelperCUcoredumpSettings, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings) < (0)) __PYX_ERR(1, 557, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings) < (0)) __PYX_ERR(1, 557, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t)) __PYX_ERR(0, 4406, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t) < (0)) __PYX_ERR(0, 4406, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t = &__pyx_type_4cuda_8bindings_7runtime_cudaDevResourceDesc_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t) < (0)) __PYX_ERR(0, 4406, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDevResourceDesc_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t) < (0)) __PYX_ERR(0, 4406, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t) < (0)) __PYX_ERR(0, 4406, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t)) __PYX_ERR(0, 4440, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t) < (0)) __PYX_ERR(0, 4440, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t = &__pyx_type_4cuda_8bindings_7runtime_cudaExecutionContext_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t) < (0)) __PYX_ERR(0, 4440, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExecutionContext_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t) < (0)) __PYX_ERR(0, 4440, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t) < (0)) __PYX_ERR(0, 4440, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaArray_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t)) __PYX_ERR(0, 4474, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaArray_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t) < (0)) __PYX_ERR(0, 4474, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t = &__pyx_type_4cuda_8bindings_7runtime_cudaArray_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t) < (0)) __PYX_ERR(0, 4474, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaArray_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t) < (0)) __PYX_ERR(0, 4474, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t) < (0)) __PYX_ERR(0, 4474, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t)) __PYX_ERR(0, 4508, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t) < (0)) __PYX_ERR(0, 4508, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t = &__pyx_type_4cuda_8bindings_7runtime_cudaArray_const_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t) < (0)) __PYX_ERR(0, 4508, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaArray_const_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t) < (0)) __PYX_ERR(0, 4508, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t) < (0)) __PYX_ERR(0, 4508, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t)) __PYX_ERR(0, 4542, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t) < (0)) __PYX_ERR(0, 4542, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t = &__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t) < (0)) __PYX_ERR(0, 4542, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArray_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t) < (0)) __PYX_ERR(0, 4542, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t) < (0)) __PYX_ERR(0, 4542, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t)) __PYX_ERR(0, 4576, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t) < (0)) __PYX_ERR(0, 4576, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t = &__pyx_type_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t) < (0)) __PYX_ERR(0, 4576, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArray_const_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t) < (0)) __PYX_ERR(0, 4576, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t) < (0)) __PYX_ERR(0, 4576, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t)) __PYX_ERR(0, 4610, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t) < (0)) __PYX_ERR(0, 4610, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphicsResource_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t) < (0)) __PYX_ERR(0, 4610, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResource_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t) < (0)) __PYX_ERR(0, 4610, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t) < (0)) __PYX_ERR(0, 4610, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t)) __PYX_ERR(0, 4644, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t) < (0)) __PYX_ERR(0, 4644, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemory_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t) < (0)) __PYX_ERR(0, 4644, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalMemory_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t) < (0)) __PYX_ERR(0, 4644, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t) < (0)) __PYX_ERR(0, 4644, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t)) __PYX_ERR(0, 4678, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t) < (0)) __PYX_ERR(0, 4678, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphore_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t) < (0)) __PYX_ERR(0, 4678, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphore_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t) < (0)) __PYX_ERR(0, 4678, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t) < (0)) __PYX_ERR(0, 4678, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaKernel_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t)) __PYX_ERR(0, 4712, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaKernel_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t) < (0)) __PYX_ERR(0, 4712, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t = &__pyx_type_4cuda_8bindings_7runtime_cudaKernel_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t) < (0)) __PYX_ERR(0, 4712, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaKernel_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t) < (0)) __PYX_ERR(0, 4712, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t) < (0)) __PYX_ERR(0, 4712, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t)) __PYX_ERR(0, 4746, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t) < (0)) __PYX_ERR(0, 4746, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t = &__pyx_type_4cuda_8bindings_7runtime_cudaLibrary_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t) < (0)) __PYX_ERR(0, 4746, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLibrary_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t) < (0)) __PYX_ERR(0, 4746, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t) < (0)) __PYX_ERR(0, 4746, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t)) __PYX_ERR(0, 4780, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t) < (0)) __PYX_ERR(0, 4780, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t) < (0)) __PYX_ERR(0, 4780, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphDeviceNode_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t) < (0)) __PYX_ERR(0, 4780, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t) < (0)) __PYX_ERR(0, 4780, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t)) __PYX_ERR(0, 4814, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t) < (0)) __PYX_ERR(0, 4814, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t = &__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t) < (0)) __PYX_ERR(0, 4814, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaAsyncCallbackHandle_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t) < (0)) __PYX_ERR(0, 4814, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t) < (0)) __PYX_ERR(0, 4814, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle)) __PYX_ERR(0, 4848, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle) < (0)) __PYX_ERR(0, 4848, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle = &__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallbackHandle;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle) < (0)) __PYX_ERR(0, 4848, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLogsCallbackHandle_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle) < (0)) __PYX_ERR(0, 4848, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle) < (0)) __PYX_ERR(0, 4848, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_EGLImageKHR_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR)) __PYX_ERR(0, 4880, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_EGLImageKHR_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR) < (0)) __PYX_ERR(0, 4880, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR = &__pyx_type_4cuda_8bindings_7runtime_EGLImageKHR;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR) < (0)) __PYX_ERR(0, 4880, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_EGLImageKHR_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR) < (0)) __PYX_ERR(0, 4880, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR) < (0)) __PYX_ERR(0, 4880, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR)) __PYX_ERR(0, 4912, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR) < (0)) __PYX_ERR(0, 4912, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR = &__pyx_type_4cuda_8bindings_7runtime_EGLStreamKHR;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR) < (0)) __PYX_ERR(0, 4912, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_EGLStreamKHR_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR) < (0)) __PYX_ERR(0, 4912, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR) < (0)) __PYX_ERR(0, 4912, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR)) __PYX_ERR(0, 4944, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR) < (0)) __PYX_ERR(0, 4944, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR = &__pyx_type_4cuda_8bindings_7runtime_EGLSyncKHR;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR) < (0)) __PYX_ERR(0, 4944, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_EGLSyncKHR_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR) < (0)) __PYX_ERR(0, 4944, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR) < (0)) __PYX_ERR(0, 4944, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t)) __PYX_ERR(0, 4976, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t) < (0)) __PYX_ERR(0, 4976, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t = &__pyx_type_4cuda_8bindings_7runtime_cudaHostFn_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t) < (0)) __PYX_ERR(0, 4976, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaHostFn_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t) < (0)) __PYX_ERR(0, 4976, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t) < (0)) __PYX_ERR(0, 4976, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback)) __PYX_ERR(0, 5002, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback) < (0)) __PYX_ERR(0, 5002, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback = &__pyx_type_4cuda_8bindings_7runtime_cudaAsyncCallback;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback) < (0)) __PYX_ERR(0, 5002, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaAsyncCallback_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback) < (0)) __PYX_ERR(0, 5002, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback) < (0)) __PYX_ERR(0, 5002, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t)) __PYX_ERR(0, 5028, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t) < (0)) __PYX_ERR(0, 5028, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t = &__pyx_type_4cuda_8bindings_7runtime_cudaStreamCallback_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t) < (0)) __PYX_ERR(0, 5028, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaStreamCallback_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t) < (0)) __PYX_ERR(0, 5028, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t) < (0)) __PYX_ERR(0, 5028, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t)) __PYX_ERR(0, 5054, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t) < (0)) __PYX_ERR(0, 5054, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t = &__pyx_type_4cuda_8bindings_7runtime_cudaLogsCallback_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t) < (0)) __PYX_ERR(0, 5054, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLogsCallback_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t) < (0)) __PYX_ERR(0, 5054, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t) < (0)) __PYX_ERR(0, 5054, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_dim3_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3)) __PYX_ERR(0, 5080, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_dim3_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3) < (0)) __PYX_ERR(0, 5080, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3 = &__pyx_type_4cuda_8bindings_7runtime_dim3;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3) < (0)) __PYX_ERR(0, 5080, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_dim3, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3) < (0)) __PYX_ERR(0, 5080, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_dim3) < (0)) __PYX_ERR(0, 5080, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc)) __PYX_ERR(0, 5144, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc) < (0)) __PYX_ERR(0, 5144, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaChannelFormatDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc) < (0)) __PYX_ERR(0, 5144, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc) < (0)) __PYX_ERR(0, 5144, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc) < (0)) __PYX_ERR(0, 5144, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct0_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0)) __PYX_ERR(0, 5236, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct0_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0) < (0)) __PYX_ERR(0, 5236, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct0;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0) < (0)) __PYX_ERR(0, 5236, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct0, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0) < (0)) __PYX_ERR(0, 5236, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0) < (0)) __PYX_ERR(0, 5236, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties)) __PYX_ERR(0, 5298, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties) < (0)) __PYX_ERR(0, 5298, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties = &__pyx_type_4cuda_8bindings_7runtime_cudaArraySparseProperties;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties) < (0)) __PYX_ERR(0, 5298, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaArraySparseProperties, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties) < (0)) __PYX_ERR(0, 5298, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties) < (0)) __PYX_ERR(0, 5298, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements)) __PYX_ERR(0, 5389, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements) < (0)) __PYX_ERR(0, 5389, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements = &__pyx_type_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements) < (0)) __PYX_ERR(0, 5389, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaArrayMemoryRequirements, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements) < (0)) __PYX_ERR(0, 5389, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements) < (0)) __PYX_ERR(0, 5389, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr)) __PYX_ERR(0, 5455, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr) < (0)) __PYX_ERR(0, 5455, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr = &__pyx_type_4cuda_8bindings_7runtime_cudaPitchedPtr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr) < (0)) __PYX_ERR(0, 5455, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaPitchedPtr, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr) < (0)) __PYX_ERR(0, 5455, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr) < (0)) __PYX_ERR(0, 5455, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExtent_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent)) __PYX_ERR(0, 5534, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExtent_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent) < (0)) __PYX_ERR(0, 5534, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent = &__pyx_type_4cuda_8bindings_7runtime_cudaExtent;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent) < (0)) __PYX_ERR(0, 5534, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExtent, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent) < (0)) __PYX_ERR(0, 5534, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent) < (0)) __PYX_ERR(0, 5534, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaPos_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos)) __PYX_ERR(0, 5601, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaPos_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos) < (0)) __PYX_ERR(0, 5601, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos = &__pyx_type_4cuda_8bindings_7runtime_cudaPos;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos) < (0)) __PYX_ERR(0, 5601, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaPos, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos) < (0)) __PYX_ERR(0, 5601, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos) < (0)) __PYX_ERR(0, 5601, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms)) __PYX_ERR(0, 5667, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 5667, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms = &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DParms;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 5667, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DParms, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 5667, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 5667, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams)) __PYX_ERR(0, 5820, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams) < (0)) __PYX_ERR(0, 5820, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams) < (0)) __PYX_ERR(0, 5820, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemcpyNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams) < (0)) __PYX_ERR(0, 5820, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams) < (0)) __PYX_ERR(0, 5820, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms)) __PYX_ERR(0, 5910, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms) < (0)) __PYX_ERR(0, 5910, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms = &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms) < (0)) __PYX_ERR(0, 5910, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DPeerParms, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms) < (0)) __PYX_ERR(0, 5910, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms) < (0)) __PYX_ERR(0, 5910, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams)) __PYX_ERR(0, 6073, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams) < (0)) __PYX_ERR(0, 6073, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams = &__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams) < (0)) __PYX_ERR(0, 6073, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemsetParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams) < (0)) __PYX_ERR(0, 6073, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams) < (0)) __PYX_ERR(0, 6073, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2)) __PYX_ERR(0, 6176, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2) < (0)) __PYX_ERR(0, 6176, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2 = &__pyx_type_4cuda_8bindings_7runtime_cudaMemsetParamsV2;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2) < (0)) __PYX_ERR(0, 6176, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemsetParamsV2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2) < (0)) __PYX_ERR(0, 6176, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2) < (0)) __PYX_ERR(0, 6176, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow)) __PYX_ERR(0, 6302, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow) < (0)) __PYX_ERR(0, 6302, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow = &__pyx_type_4cuda_8bindings_7runtime_cudaAccessPolicyWindow;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow) < (0)) __PYX_ERR(0, 6302, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaAccessPolicyWindow, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow) < (0)) __PYX_ERR(0, 6302, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow) < (0)) __PYX_ERR(0, 6302, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams)) __PYX_ERR(0, 6408, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams) < (0)) __PYX_ERR(0, 6408, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams) < (0)) __PYX_ERR(0, 6408, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaHostNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams) < (0)) __PYX_ERR(0, 6408, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams) < (0)) __PYX_ERR(0, 6408, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2)) __PYX_ERR(0, 6473, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2) < (0)) __PYX_ERR(0, 6473, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2 = &__pyx_type_4cuda_8bindings_7runtime_cudaHostNodeParamsV2;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2) < (0)) __PYX_ERR(0, 6473, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaHostNodeParamsV2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2) < (0)) __PYX_ERR(0, 6473, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2) < (0)) __PYX_ERR(0, 6473, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct1_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1)) __PYX_ERR(0, 6538, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct1_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1) < (0)) __PYX_ERR(0, 6538, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct1;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1) < (0)) __PYX_ERR(0, 6538, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct1, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1) < (0)) __PYX_ERR(0, 6538, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1) < (0)) __PYX_ERR(0, 6538, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct2_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2)) __PYX_ERR(0, 6586, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct2_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2) < (0)) __PYX_ERR(0, 6586, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct2;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2) < (0)) __PYX_ERR(0, 6586, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2) < (0)) __PYX_ERR(0, 6586, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2) < (0)) __PYX_ERR(0, 6586, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct3_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3)) __PYX_ERR(0, 6634, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct3_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3) < (0)) __PYX_ERR(0, 6634, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct3;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3) < (0)) __PYX_ERR(0, 6634, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct3, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3) < (0)) __PYX_ERR(0, 6634, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3) < (0)) __PYX_ERR(0, 6634, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct4_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4)) __PYX_ERR(0, 6698, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct4_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4) < (0)) __PYX_ERR(0, 6698, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct4;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4) < (0)) __PYX_ERR(0, 6698, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct4, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4) < (0)) __PYX_ERR(0, 6698, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4) < (0)) __PYX_ERR(0, 6698, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct5_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5)) __PYX_ERR(0, 6786, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct5_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5) < (0)) __PYX_ERR(0, 6786, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct5;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5) < (0)) __PYX_ERR(0, 6786, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct5, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5) < (0)) __PYX_ERR(0, 6786, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5) < (0)) __PYX_ERR(0, 6786, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union0_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0)) __PYX_ERR(0, 6824, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union0_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0) < (0)) __PYX_ERR(0, 6824, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0 = &__pyx_type_4cuda_8bindings_7runtime_anon_union0;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0) < (0)) __PYX_ERR(0, 6824, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union0, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0) < (0)) __PYX_ERR(0, 6824, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0) < (0)) __PYX_ERR(0, 6824, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc)) __PYX_ERR(0, 6915, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc) < (0)) __PYX_ERR(0, 6915, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaResourceDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc) < (0)) __PYX_ERR(0, 6915, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaResourceDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc) < (0)) __PYX_ERR(0, 6915, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc) < (0)) __PYX_ERR(0, 6915, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc)) __PYX_ERR(0, 6986, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc) < (0)) __PYX_ERR(0, 6986, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaResourceViewDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc) < (0)) __PYX_ERR(0, 6986, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaResourceViewDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc) < (0)) __PYX_ERR(0, 6986, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc) < (0)) __PYX_ERR(0, 6986, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes)) __PYX_ERR(0, 7126, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes) < (0)) __PYX_ERR(0, 7126, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes = &__pyx_type_4cuda_8bindings_7runtime_cudaPointerAttributes;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes) < (0)) __PYX_ERR(0, 7126, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaPointerAttributes, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes) < (0)) __PYX_ERR(0, 7126, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes) < (0)) __PYX_ERR(0, 7126, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes)) __PYX_ERR(0, 7231, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes) < (0)) __PYX_ERR(0, 7231, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes = &__pyx_type_4cuda_8bindings_7runtime_cudaFuncAttributes;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes) < (0)) __PYX_ERR(0, 7231, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributes, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes) < (0)) __PYX_ERR(0, 7231, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes) < (0)) __PYX_ERR(0, 7231, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemLocation_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation)) __PYX_ERR(0, 7502, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemLocation_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation) < (0)) __PYX_ERR(0, 7502, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation = &__pyx_type_4cuda_8bindings_7runtime_cudaMemLocation;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation) < (0)) __PYX_ERR(0, 7502, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemLocation, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation) < (0)) __PYX_ERR(0, 7502, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation) < (0)) __PYX_ERR(0, 7502, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc)) __PYX_ERR(0, 7561, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc) < (0)) __PYX_ERR(0, 7561, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaMemAccessDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc) < (0)) __PYX_ERR(0, 7561, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemAccessDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc) < (0)) __PYX_ERR(0, 7561, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc) < (0)) __PYX_ERR(0, 7561, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps)) __PYX_ERR(0, 7618, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps) < (0)) __PYX_ERR(0, 7618, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps = &__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolProps;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps) < (0)) __PYX_ERR(0, 7618, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemPoolProps, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps) < (0)) __PYX_ERR(0, 7618, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps) < (0)) __PYX_ERR(0, 7618, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData)) __PYX_ERR(0, 7747, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData) < (0)) __PYX_ERR(0, 7747, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData = &__pyx_type_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData) < (0)) __PYX_ERR(0, 7747, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemPoolPtrExportData, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData) < (0)) __PYX_ERR(0, 7747, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData) < (0)) __PYX_ERR(0, 7747, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams)) __PYX_ERR(0, 7792, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams) < (0)) __PYX_ERR(0, 7792, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams) < (0)) __PYX_ERR(0, 7792, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemAllocNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams) < (0)) __PYX_ERR(0, 7792, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams) < (0)) __PYX_ERR(0, 7792, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2)) __PYX_ERR(0, 7905, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2) < (0)) __PYX_ERR(0, 7905, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2 = &__pyx_type_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2) < (0)) __PYX_ERR(0, 7905, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemAllocNodeParamsV2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2) < (0)) __PYX_ERR(0, 7905, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2) < (0)) __PYX_ERR(0, 7905, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams)) __PYX_ERR(0, 8018, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams) < (0)) __PYX_ERR(0, 8018, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaMemFreeNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams) < (0)) __PYX_ERR(0, 8018, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemFreeNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams) < (0)) __PYX_ERR(0, 8018, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams) < (0)) __PYX_ERR(0, 8018, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes)) __PYX_ERR(0, 8061, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes) < (0)) __PYX_ERR(0, 8061, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes = &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpyAttributes;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes) < (0)) __PYX_ERR(0, 8061, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemcpyAttributes, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes) < (0)) __PYX_ERR(0, 8061, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes) < (0)) __PYX_ERR(0, 8061, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaOffset3D_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D)) __PYX_ERR(0, 8148, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaOffset3D_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D) < (0)) __PYX_ERR(0, 8148, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D = &__pyx_type_4cuda_8bindings_7runtime_cudaOffset3D;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D) < (0)) __PYX_ERR(0, 8148, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaOffset3D, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D) < (0)) __PYX_ERR(0, 8148, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D) < (0)) __PYX_ERR(0, 8148, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct6_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6)) __PYX_ERR(0, 8214, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct6_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6) < (0)) __PYX_ERR(0, 8214, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct6;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6) < (0)) __PYX_ERR(0, 8214, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct6, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6) < (0)) __PYX_ERR(0, 8214, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6) < (0)) __PYX_ERR(0, 8214, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct7_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7)) __PYX_ERR(0, 8290, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct7_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7) < (0)) __PYX_ERR(0, 8290, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct7;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7) < (0)) __PYX_ERR(0, 8290, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct7, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7) < (0)) __PYX_ERR(0, 8290, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7) < (0)) __PYX_ERR(0, 8290, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union1_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1)) __PYX_ERR(0, 8351, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union1_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1) < (0)) __PYX_ERR(0, 8351, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1 = &__pyx_type_4cuda_8bindings_7runtime_anon_union1;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1) < (0)) __PYX_ERR(0, 8351, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union1, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1) < (0)) __PYX_ERR(0, 8351, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1) < (0)) __PYX_ERR(0, 8351, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand)) __PYX_ERR(0, 8403, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand) < (0)) __PYX_ERR(0, 8403, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand = &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DOperand;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand) < (0)) __PYX_ERR(0, 8403, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperand, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand) < (0)) __PYX_ERR(0, 8403, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand) < (0)) __PYX_ERR(0, 8403, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp)) __PYX_ERR(0, 8462, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp) < (0)) __PYX_ERR(0, 8462, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp = &__pyx_type_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp) < (0)) __PYX_ERR(0, 8462, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DBatchOp, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp) < (0)) __PYX_ERR(0, 8462, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp) < (0)) __PYX_ERR(0, 8462, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_CUuuid_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st)) __PYX_ERR(0, 8556, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_CUuuid_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st) < (0)) __PYX_ERR(0, 8556, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st = &__pyx_type_4cuda_8bindings_7runtime_CUuuid_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st) < (0)) __PYX_ERR(0, 8556, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_CUuuid_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st) < (0)) __PYX_ERR(0, 8556, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st) < (0)) __PYX_ERR(0, 8556, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp)) __PYX_ERR(0, 8593, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp) < (0)) __PYX_ERR(0, 8593, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp = &__pyx_type_4cuda_8bindings_7runtime_cudaDeviceProp;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp) < (0)) __PYX_ERR(0, 8593, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDeviceProp, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp) < (0)) __PYX_ERR(0, 8593, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp) < (0)) __PYX_ERR(0, 8593, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st)) __PYX_ERR(0, 9775, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st) < (0)) __PYX_ERR(0, 9775, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st = &__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st) < (0)) __PYX_ERR(0, 9775, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaIpcEventHandle_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st) < (0)) __PYX_ERR(0, 9775, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st) < (0)) __PYX_ERR(0, 9775, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st)) __PYX_ERR(0, 9828, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st) < (0)) __PYX_ERR(0, 9828, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st = &__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st) < (0)) __PYX_ERR(0, 9828, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaIpcMemHandle_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st) < (0)) __PYX_ERR(0, 9828, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st) < (0)) __PYX_ERR(0, 9828, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st)) __PYX_ERR(0, 9881, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st) < (0)) __PYX_ERR(0, 9881, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st = &__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st) < (0)) __PYX_ERR(0, 9881, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemFabricHandle_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st) < (0)) __PYX_ERR(0, 9881, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st) < (0)) __PYX_ERR(0, 9881, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct8_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8)) __PYX_ERR(0, 9932, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct8_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8) < (0)) __PYX_ERR(0, 9932, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct8;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8) < (0)) __PYX_ERR(0, 9932, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct8, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8) < (0)) __PYX_ERR(0, 9932, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8) < (0)) __PYX_ERR(0, 9932, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union2_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2)) __PYX_ERR(0, 9984, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union2_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2) < (0)) __PYX_ERR(0, 9984, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2 = &__pyx_type_4cuda_8bindings_7runtime_anon_union2;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2) < (0)) __PYX_ERR(0, 9984, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2) < (0)) __PYX_ERR(0, 9984, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2) < (0)) __PYX_ERR(0, 9984, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc)) __PYX_ERR(0, 10048, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc) < (0)) __PYX_ERR(0, 10048, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc) < (0)) __PYX_ERR(0, 10048, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc) < (0)) __PYX_ERR(0, 10048, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc) < (0)) __PYX_ERR(0, 10048, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc)) __PYX_ERR(0, 10143, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc) < (0)) __PYX_ERR(0, 10143, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc) < (0)) __PYX_ERR(0, 10143, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryBufferDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc) < (0)) __PYX_ERR(0, 10143, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc) < (0)) __PYX_ERR(0, 10143, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc)) __PYX_ERR(0, 10221, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc) < (0)) __PYX_ERR(0, 10221, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc) < (0)) __PYX_ERR(0, 10221, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryMipmappedArray, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc) < (0)) __PYX_ERR(0, 10221, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc) < (0)) __PYX_ERR(0, 10221, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct9_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9)) __PYX_ERR(0, 10327, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct9_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9) < (0)) __PYX_ERR(0, 10327, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct9;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9) < (0)) __PYX_ERR(0, 10327, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct9, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9) < (0)) __PYX_ERR(0, 10327, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9) < (0)) __PYX_ERR(0, 10327, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union3_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3)) __PYX_ERR(0, 10379, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union3_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3) < (0)) __PYX_ERR(0, 10379, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3 = &__pyx_type_4cuda_8bindings_7runtime_anon_union3;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3) < (0)) __PYX_ERR(0, 10379, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union3, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3) < (0)) __PYX_ERR(0, 10379, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3) < (0)) __PYX_ERR(0, 10379, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc)) __PYX_ERR(0, 10443, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc) < (0)) __PYX_ERR(0, 10443, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc) < (0)) __PYX_ERR(0, 10443, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc) < (0)) __PYX_ERR(0, 10443, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc) < (0)) __PYX_ERR(0, 10443, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct10_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10)) __PYX_ERR(0, 10526, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct10_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10) < (0)) __PYX_ERR(0, 10526, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct10;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10) < (0)) __PYX_ERR(0, 10526, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct10, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10) < (0)) __PYX_ERR(0, 10526, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10) < (0)) __PYX_ERR(0, 10526, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union4_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4)) __PYX_ERR(0, 10564, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union4_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4) < (0)) __PYX_ERR(0, 10564, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4 = &__pyx_type_4cuda_8bindings_7runtime_anon_union4;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4) < (0)) __PYX_ERR(0, 10564, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union4, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4) < (0)) __PYX_ERR(0, 10564, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4) < (0)) __PYX_ERR(0, 10564, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct11_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11)) __PYX_ERR(0, 10615, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct11_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11) < (0)) __PYX_ERR(0, 10615, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct11;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11) < (0)) __PYX_ERR(0, 10615, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct11, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11) < (0)) __PYX_ERR(0, 10615, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11) < (0)) __PYX_ERR(0, 10615, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct12_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12)) __PYX_ERR(0, 10653, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct12_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12) < (0)) __PYX_ERR(0, 10653, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct12;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12) < (0)) __PYX_ERR(0, 10653, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct12, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12) < (0)) __PYX_ERR(0, 10653, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12) < (0)) __PYX_ERR(0, 10653, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams)) __PYX_ERR(0, 10730, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams) < (0)) __PYX_ERR(0, 10730, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams) < (0)) __PYX_ERR(0, 10730, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalParam, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams) < (0)) __PYX_ERR(0, 10730, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams) < (0)) __PYX_ERR(0, 10730, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct13_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13)) __PYX_ERR(0, 10804, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct13_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13) < (0)) __PYX_ERR(0, 10804, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct13;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13) < (0)) __PYX_ERR(0, 10804, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct13, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13) < (0)) __PYX_ERR(0, 10804, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13) < (0)) __PYX_ERR(0, 10804, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union5_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5)) __PYX_ERR(0, 10842, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union5_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5) < (0)) __PYX_ERR(0, 10842, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5 = &__pyx_type_4cuda_8bindings_7runtime_anon_union5;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5) < (0)) __PYX_ERR(0, 10842, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union5, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5) < (0)) __PYX_ERR(0, 10842, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5) < (0)) __PYX_ERR(0, 10842, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct14_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14)) __PYX_ERR(0, 10893, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct14_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14) < (0)) __PYX_ERR(0, 10893, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct14;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14) < (0)) __PYX_ERR(0, 10893, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct14, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14) < (0)) __PYX_ERR(0, 10893, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14) < (0)) __PYX_ERR(0, 10893, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct15_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15)) __PYX_ERR(0, 10943, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct15_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15) < (0)) __PYX_ERR(0, 10943, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct15;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15) < (0)) __PYX_ERR(0, 10943, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct15, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15) < (0)) __PYX_ERR(0, 10943, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15) < (0)) __PYX_ERR(0, 10943, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams)) __PYX_ERR(0, 11020, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams) < (0)) __PYX_ERR(0, 11020, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams) < (0)) __PYX_ERR(0, 11020, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams) < (0)) __PYX_ERR(0, 11020, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams) < (0)) __PYX_ERR(0, 11020, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource)) __PYX_ERR(0, 11094, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource) < (0)) __PYX_ERR(0, 11094, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource = &__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResource;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource) < (0)) __PYX_ERR(0, 11094, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDevSmResource, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource) < (0)) __PYX_ERR(0, 11094, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource) < (0)) __PYX_ERR(0, 11094, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource)) __PYX_ERR(0, 11178, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource) < (0)) __PYX_ERR(0, 11178, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource = &__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource) < (0)) __PYX_ERR(0, 11178, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigResource, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource) < (0)) __PYX_ERR(0, 11178, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource) < (0)) __PYX_ERR(0, 11178, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource)) __PYX_ERR(0, 11246, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource) < (0)) __PYX_ERR(0, 11246, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource = &__pyx_type_4cuda_8bindings_7runtime_cudaDevWorkqueueResource;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource) < (0)) __PYX_ERR(0, 11246, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueResource, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource) < (0)) __PYX_ERR(0, 11246, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource) < (0)) __PYX_ERR(0, 11246, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st)) __PYX_ERR(0, 11291, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st) < (0)) __PYX_ERR(0, 11291, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st = &__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st) < (0)) __PYX_ERR(0, 11291, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroupParams_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st) < (0)) __PYX_ERR(0, 11291, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st) < (0)) __PYX_ERR(0, 11291, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st)) __PYX_ERR(0, 11384, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st) < (0)) __PYX_ERR(0, 11384, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st = &__pyx_type_4cuda_8bindings_7runtime_cudaDevResource_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st) < (0)) __PYX_ERR(0, 11384, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDevResource_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st) < (0)) __PYX_ERR(0, 11384, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st) < (0)) __PYX_ERR(0, 11384, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable)) __PYX_ERR(0, 11543, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable) < (0)) __PYX_ERR(0, 11543, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable = &__pyx_type_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable) < (0)) __PYX_ERR(0, 11543, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudalibraryHostUniversalFunction, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable) < (0)) __PYX_ERR(0, 11543, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable) < (0)) __PYX_ERR(0, 11543, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams)) __PYX_ERR(0, 11621, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams) < (0)) __PYX_ERR(0, 11621, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams) < (0)) __PYX_ERR(0, 11621, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams) < (0)) __PYX_ERR(0, 11621, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams) < (0)) __PYX_ERR(0, 11621, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2)) __PYX_ERR(0, 11727, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2) < (0)) __PYX_ERR(0, 11727, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2 = &__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2) < (0)) __PYX_ERR(0, 11727, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeParamsV2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2) < (0)) __PYX_ERR(0, 11727, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2) < (0)) __PYX_ERR(0, 11727, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams)) __PYX_ERR(0, 11856, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams) < (0)) __PYX_ERR(0, 11856, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams) < (0)) __PYX_ERR(0, 11856, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalNodeP, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams) < (0)) __PYX_ERR(0, 11856, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams) < (0)) __PYX_ERR(0, 11856, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2)) __PYX_ERR(0, 11957, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2) < (0)) __PYX_ERR(0, 11957, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2 = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2) < (0)) __PYX_ERR(0, 11957, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalNodeP_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2) < (0)) __PYX_ERR(0, 11957, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2) < (0)) __PYX_ERR(0, 11957, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams)) __PYX_ERR(0, 12058, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams) < (0)) __PYX_ERR(0, 12058, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams) < (0)) __PYX_ERR(0, 12058, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitNodePar, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams) < (0)) __PYX_ERR(0, 12058, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams) < (0)) __PYX_ERR(0, 12058, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2)) __PYX_ERR(0, 12159, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2) < (0)) __PYX_ERR(0, 12159, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2 = &__pyx_type_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2) < (0)) __PYX_ERR(0, 12159, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitNodePar_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2) < (0)) __PYX_ERR(0, 12159, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2) < (0)) __PYX_ERR(0, 12159, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams)) __PYX_ERR(0, 12260, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams) < (0)) __PYX_ERR(0, 12260, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaConditionalNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams) < (0)) __PYX_ERR(0, 12260, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaConditionalNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams) < (0)) __PYX_ERR(0, 12260, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams) < (0)) __PYX_ERR(0, 12260, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams)) __PYX_ERR(0, 12389, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams) < (0)) __PYX_ERR(0, 12389, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaChildGraphNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams) < (0)) __PYX_ERR(0, 12389, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaChildGraphNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams) < (0)) __PYX_ERR(0, 12389, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams) < (0)) __PYX_ERR(0, 12389, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams)) __PYX_ERR(0, 12459, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams) < (0)) __PYX_ERR(0, 12459, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaEventRecordNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams) < (0)) __PYX_ERR(0, 12459, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaEventRecordNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams) < (0)) __PYX_ERR(0, 12459, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams) < (0)) __PYX_ERR(0, 12459, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams)) __PYX_ERR(0, 12511, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams) < (0)) __PYX_ERR(0, 12511, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaEventWaitNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams) < (0)) __PYX_ERR(0, 12511, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaEventWaitNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams) < (0)) __PYX_ERR(0, 12511, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams) < (0)) __PYX_ERR(0, 12511, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams)) __PYX_ERR(0, 12563, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams) < (0)) __PYX_ERR(0, 12563, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphNodeParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams) < (0)) __PYX_ERR(0, 12563, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams) < (0)) __PYX_ERR(0, 12563, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams) < (0)) __PYX_ERR(0, 12563, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st)) __PYX_ERR(0, 12801, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st) < (0)) __PYX_ERR(0, 12801, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st) < (0)) __PYX_ERR(0, 12801, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphEdgeData_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st) < (0)) __PYX_ERR(0, 12801, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st) < (0)) __PYX_ERR(0, 12801, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st)) __PYX_ERR(0, 12901, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st) < (0)) __PYX_ERR(0, 12901, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st) < (0)) __PYX_ERR(0, 12901, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateParams_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st) < (0)) __PYX_ERR(0, 12901, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st) < (0)) __PYX_ERR(0, 12901, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st)) __PYX_ERR(0, 13001, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st) < (0)) __PYX_ERR(0, 13001, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st) < (0)) __PYX_ERR(0, 13001, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResultInfo_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st) < (0)) __PYX_ERR(0, 13001, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st) < (0)) __PYX_ERR(0, 13001, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct16_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16)) __PYX_ERR(0, 13092, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct16_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16) < (0)) __PYX_ERR(0, 13092, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct16;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16) < (0)) __PYX_ERR(0, 13092, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct16, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16) < (0)) __PYX_ERR(0, 13092, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16) < (0)) __PYX_ERR(0, 13092, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union8_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8)) __PYX_ERR(0, 13155, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union8_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8) < (0)) __PYX_ERR(0, 13155, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8 = &__pyx_type_4cuda_8bindings_7runtime_anon_union8;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8) < (0)) __PYX_ERR(0, 13155, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union8, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8) < (0)) __PYX_ERR(0, 13155, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8) < (0)) __PYX_ERR(0, 13155, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate)) __PYX_ERR(0, 13219, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate) < (0)) __PYX_ERR(0, 13219, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate) < (0)) __PYX_ERR(0, 13219, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeUpdate, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate) < (0)) __PYX_ERR(0, 13219, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate) < (0)) __PYX_ERR(0, 13219, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st)) __PYX_ERR(0, 13302, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st) < (0)) __PYX_ERR(0, 13302, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st = &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st) < (0)) __PYX_ERR(0, 13302, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomainMap_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st) < (0)) __PYX_ERR(0, 13302, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st) < (0)) __PYX_ERR(0, 13302, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct17_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17)) __PYX_ERR(0, 13362, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct17_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17) < (0)) __PYX_ERR(0, 13362, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct17;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17) < (0)) __PYX_ERR(0, 13362, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct17, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17) < (0)) __PYX_ERR(0, 13362, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17) < (0)) __PYX_ERR(0, 13362, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct18_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18)) __PYX_ERR(0, 13424, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct18_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18) < (0)) __PYX_ERR(0, 13424, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct18;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18) < (0)) __PYX_ERR(0, 13424, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct18, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18) < (0)) __PYX_ERR(0, 13424, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18) < (0)) __PYX_ERR(0, 13424, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct19_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19)) __PYX_ERR(0, 13496, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct19_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19) < (0)) __PYX_ERR(0, 13496, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct19;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19) < (0)) __PYX_ERR(0, 13496, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct19, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19) < (0)) __PYX_ERR(0, 13496, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19) < (0)) __PYX_ERR(0, 13496, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct20_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20)) __PYX_ERR(0, 13558, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct20_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20) < (0)) __PYX_ERR(0, 13558, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct20;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20) < (0)) __PYX_ERR(0, 13558, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct20, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20) < (0)) __PYX_ERR(0, 13558, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20) < (0)) __PYX_ERR(0, 13558, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct21_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21)) __PYX_ERR(0, 13618, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct21_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21) < (0)) __PYX_ERR(0, 13618, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct21;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21) < (0)) __PYX_ERR(0, 13618, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct21, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21) < (0)) __PYX_ERR(0, 13618, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21) < (0)) __PYX_ERR(0, 13618, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue)) __PYX_ERR(0, 13678, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue) < (0)) __PYX_ERR(0, 13678, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue = &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttributeValue;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue) < (0)) __PYX_ERR(0, 13678, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeValue, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue) < (0)) __PYX_ERR(0, 13678, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue) < (0)) __PYX_ERR(0, 13678, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st)) __PYX_ERR(0, 13966, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st) < (0)) __PYX_ERR(0, 13966, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st = &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st) < (0)) __PYX_ERR(0, 13966, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttribute_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st) < (0)) __PYX_ERR(0, 13966, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st) < (0)) __PYX_ERR(0, 13966, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_struct22_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22)) __PYX_ERR(0, 14023, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_struct22_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22) < (0)) __PYX_ERR(0, 14023, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22 = &__pyx_type_4cuda_8bindings_7runtime_anon_struct22;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22) < (0)) __PYX_ERR(0, 14023, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_struct22, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22) < (0)) __PYX_ERR(0, 14023, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22) < (0)) __PYX_ERR(0, 14023, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union9_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9)) __PYX_ERR(0, 14061, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union9_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9) < (0)) __PYX_ERR(0, 14061, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9 = &__pyx_type_4cuda_8bindings_7runtime_anon_union9;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9) < (0)) __PYX_ERR(0, 14061, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union9, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9) < (0)) __PYX_ERR(0, 14061, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9) < (0)) __PYX_ERR(0, 14061, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo)) __PYX_ERR(0, 14100, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo) < (0)) __PYX_ERR(0, 14100, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo = &__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo) < (0)) __PYX_ERR(0, 14100, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationInfo, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo) < (0)) __PYX_ERR(0, 14100, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo) < (0)) __PYX_ERR(0, 14100, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc)) __PYX_ERR(0, 14160, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc) < (0)) __PYX_ERR(0, 14160, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaTextureDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc) < (0)) __PYX_ERR(0, 14160, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaTextureDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc) < (0)) __PYX_ERR(0, 14160, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc) < (0)) __PYX_ERR(0, 14160, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st)) __PYX_ERR(0, 14352, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st) < (0)) __PYX_ERR(0, 14352, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st = &__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st) < (0)) __PYX_ERR(0, 14352, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaEglPlaneDesc_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st) < (0)) __PYX_ERR(0, 14352, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st) < (0)) __PYX_ERR(0, 14352, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10 = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_anon_union10_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10)) __PYX_ERR(0, 14468, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_anon_union10_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10) < (0)) __PYX_ERR(0, 14468, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10 = &__pyx_type_4cuda_8bindings_7runtime_anon_union10;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10) < (0)) __PYX_ERR(0, 14468, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_anon_union10, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10) < (0)) __PYX_ERR(0, 14468, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10) < (0)) __PYX_ERR(0, 14468, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st)) __PYX_ERR(0, 14530, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st) < (0)) __PYX_ERR(0, 14530, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st = &__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_st;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st) < (0)) __PYX_ERR(0, 14530, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaEglFrame_st, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st) < (0)) __PYX_ERR(0, 14530, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st) < (0)) __PYX_ERR(0, 14530, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_CUuuid_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid)) __PYX_ERR(3, 3035, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_CUuuid_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid) < (0)) __PYX_ERR(3, 3035, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid = &__pyx_type_4cuda_8bindings_7runtime_CUuuid;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid) < (0)) __PYX_ERR(3, 3035, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_CUuuid, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid) < (0)) __PYX_ERR(3, 3035, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaUUID_t_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t)) __PYX_ERR(3, 3049, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaUUID_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t) < (0)) __PYX_ERR(3, 3049, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t = &__pyx_type_4cuda_8bindings_7runtime_cudaUUID_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t) < (0)) __PYX_ERR(3, 3049, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaUUID_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUUID_t) < (0)) __PYX_ERR(3, 3049, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t)) __PYX_ERR(3, 3063, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t) < (0)) __PYX_ERR(3, 3063, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t = &__pyx_type_4cuda_8bindings_7runtime_cudaIpcEventHandle_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t) < (0)) __PYX_ERR(3, 3063, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaIpcEventHandle_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_t) < (0)) __PYX_ERR(3, 3063, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t)) __PYX_ERR(3, 3079, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t) < (0)) __PYX_ERR(3, 3079, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t = &__pyx_type_4cuda_8bindings_7runtime_cudaIpcMemHandle_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t) < (0)) __PYX_ERR(3, 3079, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaIpcMemHandle_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_t) < (0)) __PYX_ERR(3, 3079, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t)) __PYX_ERR(3, 3095, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t) < (0)) __PYX_ERR(3, 3095, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t = &__pyx_type_4cuda_8bindings_7runtime_cudaMemFabricHandle_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t) < (0)) __PYX_ERR(3, 3095, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemFabricHandle_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_t) < (0)) __PYX_ERR(3, 3095, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams)) __PYX_ERR(3, 3109, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams) < (0)) __PYX_ERR(3, 3109, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams = &__pyx_type_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams) < (0)) __PYX_ERR(3, 3109, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroupParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams) < (0)) __PYX_ERR(3, 3109, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaDevResource_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource)) __PYX_ERR(3, 3136, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaDevResource_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource) < (0)) __PYX_ERR(3, 3136, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource = &__pyx_type_4cuda_8bindings_7runtime_cudaDevResource;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource) < (0)) __PYX_ERR(3, 3136, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaDevResource, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource) < (0)) __PYX_ERR(3, 3136, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData)) __PYX_ERR(3, 3179, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData) < (0)) __PYX_ERR(3, 3179, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphEdgeData;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData) < (0)) __PYX_ERR(3, 3179, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphEdgeData, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData) < (0)) __PYX_ERR(3, 3179, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams)) __PYX_ERR(3, 3220, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams) < (0)) __PYX_ERR(3, 3220, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphInstantiateParams;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams) < (0)) __PYX_ERR(3, 3220, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateParams, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams) < (0)) __PYX_ERR(3, 3220, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo)) __PYX_ERR(3, 3242, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo) < (0)) __PYX_ERR(3, 3242, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo) < (0)) __PYX_ERR(3, 3242, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResultInfo, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo) < (0)) __PYX_ERR(3, 3242, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap)) __PYX_ERR(3, 3265, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap) < (0)) __PYX_ERR(3, 3265, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap = &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap) < (0)) __PYX_ERR(3, 3265, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomainMap, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap) < (0)) __PYX_ERR(3, 3265, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute)) __PYX_ERR(3, 3289, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute) < (0)) __PYX_ERR(3, 3289, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute = &__pyx_type_4cuda_8bindings_7runtime_cudaLaunchAttribute;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute) < (0)) __PYX_ERR(3, 3289, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttribute, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute) < (0)) __PYX_ERR(3, 3289, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t)) __PYX_ERR(3, 3307, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t) < (0)) __PYX_ERR(3, 3307, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t = &__pyx_type_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t) < (0)) __PYX_ERR(3, 3307, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationInfo_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo_t) < (0)) __PYX_ERR(3, 3307, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue)) __PYX_ERR(3, 3326, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue) < (0)) __PYX_ERR(3, 3326, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue = &__pyx_type_4cuda_8bindings_7runtime_cudaStreamAttrValue;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue) < (0)) __PYX_ERR(3, 3326, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaStreamAttrValue, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamAttrValue) < (0)) __PYX_ERR(3, 3326, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue)) __PYX_ERR(3, 3414, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue) < (0)) __PYX_ERR(3, 3414, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue = &__pyx_type_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue) < (0)) __PYX_ERR(3, 3414, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttrValue, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeAttrValue) < (0)) __PYX_ERR(3, 3414, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc)) __PYX_ERR(3, 3502, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc) < (0)) __PYX_ERR(3, 3502, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc = &__pyx_type_4cuda_8bindings_7runtime_cudaEglPlaneDesc;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc) < (0)) __PYX_ERR(3, 3502, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaEglPlaneDesc, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc) < (0)) __PYX_ERR(3, 3502, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame)) __PYX_ERR(3, 3531, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame) < (0)) __PYX_ERR(3, 3531, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame = &__pyx_type_4cuda_8bindings_7runtime_cudaEglFrame;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame) < (0)) __PYX_ERR(3, 3531, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaEglFrame, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame) < (0)) __PYX_ERR(3, 3531, __pyx_L1_error)
  __pyx_t_1 = PyImport_ImportModule("cuda.bindings.driver"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstream = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstream",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstream), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstream),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstream), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstream),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstream), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstream),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstream) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaStream_t_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t)) __PYX_ERR(3, 3562, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaStream_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t) < (0)) __PYX_ERR(3, 3562, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t = &__pyx_type_4cuda_8bindings_7runtime_cudaStream_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUstream;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t) < (0)) __PYX_ERR(3, 3562, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaStream_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaStream_t) < (0)) __PYX_ERR(3, 3562, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUevent = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUevent",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUevent), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUevent),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUevent), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUevent),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUevent), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUevent),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUevent) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaEvent_t_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t)) __PYX_ERR(3, 3575, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaEvent_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t) < (0)) __PYX_ERR(3, 3575, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t = &__pyx_type_4cuda_8bindings_7runtime_cudaEvent_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUevent;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t) < (0)) __PYX_ERR(3, 3575, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaEvent_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEvent_t) < (0)) __PYX_ERR(3, 3575, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraph = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraph",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraph), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraph),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraph), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraph),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraph), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraph),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraph) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraph_t_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t)) __PYX_ERR(3, 3588, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraph_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t) < (0)) __PYX_ERR(3, 3588, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t = &__pyx_type_4cuda_8bindings_7runtime_cudaGraph_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraph;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t) < (0)) __PYX_ERR(3, 3588, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraph_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraph_t) < (0)) __PYX_ERR(3, 3588, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphNode",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNode),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t)) __PYX_ERR(3, 3601, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t) < (0)) __PYX_ERR(3, 3601, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphNode_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNode;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t) < (0)) __PYX_ERR(3, 3601, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphNode_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNode_t) < (0)) __PYX_ERR(3, 3601, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUuserObject",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuserObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t)) __PYX_ERR(3, 3614, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t) < (0)) __PYX_ERR(3, 3614, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t = &__pyx_type_4cuda_8bindings_7runtime_cudaUserObject_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUuserObject;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t) < (0)) __PYX_ERR(3, 3614, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaUserObject_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaUserObject_t) < (0)) __PYX_ERR(3, 3614, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUfunction = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUfunction",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUfunction), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUfunction),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUfunction), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUfunction),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUfunction), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUfunction),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUfunction) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUfunction); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaFunction_t_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t)) __PYX_ERR(3, 3627, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaFunction_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t) < (0)) __PYX_ERR(3, 3627, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t = &__pyx_type_4cuda_8bindings_7runtime_cudaFunction_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUfunction;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t) < (0)) __PYX_ERR(3, 3627, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaFunction_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaFunction_t) < (0)) __PYX_ERR(3, 3627, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemoryPool",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemoryPool),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t)) __PYX_ERR(3, 3640, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t) < (0)) __PYX_ERR(3, 3640, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t = &__pyx_type_4cuda_8bindings_7runtime_cudaMemPool_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUmemoryPool;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t) < (0)) __PYX_ERR(3, 3640, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaMemPool_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPool_t) < (0)) __PYX_ERR(3, 3640, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphExec",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExec),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t)) __PYX_ERR(3, 3653, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t) < (0)) __PYX_ERR(3, 3653, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphExec_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExec;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t) < (0)) __PYX_ERR(3, 3653, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphExec_t, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExec_t) < (0)) __PYX_ERR(3, 3653, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUeglStreamConnection",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglStreamConnection),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_2 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection_spec, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection)) __PYX_ERR(3, 3666, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection) < (0)) __PYX_ERR(3, 3666, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection = &__pyx_type_4cuda_8bindings_7runtime_cudaEglStreamConnection;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection->tp_base = __pyx_mstate_global->__pyx_ptype_4cuda_8bindings_6driver_CUeglStreamConnection;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection) < (0)) __PYX_ERR(3, 3666, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaEglStreamConnection, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglStreamConnection) < (0)) __PYX_ERR(3, 3666, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle)) __PYX_ERR(0, 14641, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle) < (0)) __PYX_ERR(0, 14641, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle = &__pyx_type_4cuda_8bindings_7runtime_cudaGraphConditionalHandle;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle) < (0)) __PYX_ERR(0, 14641, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandle_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle) < (0)) __PYX_ERR(0, 14641, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle) < (0)) __PYX_ERR(0, 14641, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaLogIterator_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator)) __PYX_ERR(0, 14668, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaLogIterator_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator) < (0)) __PYX_ERR(0, 14668, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator = &__pyx_type_4cuda_8bindings_7runtime_cudaLogIterator;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator) < (0)) __PYX_ERR(0, 14668, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaLogIterator_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator) < (0)) __PYX_ERR(0, 14668, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator) < (0)) __PYX_ERR(0, 14668, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t)) __PYX_ERR(0, 14693, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t) < (0)) __PYX_ERR(0, 14693, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t = &__pyx_type_4cuda_8bindings_7runtime_cudaSurfaceObject_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t) < (0)) __PYX_ERR(0, 14693, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaSurfaceObject_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t) < (0)) __PYX_ERR(0, 14693, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t) < (0)) __PYX_ERR(0, 14693, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t)) __PYX_ERR(0, 14720, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t) < (0)) __PYX_ERR(0, 14720, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t = &__pyx_type_4cuda_8bindings_7runtime_cudaTextureObject_t;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t) < (0)) __PYX_ERR(0, 14720, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaTextureObject_t_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t) < (0)) __PYX_ERR(0, 14720, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t) < (0)) __PYX_ERR(0, 14720, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_GLenum_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum)) __PYX_ERR(0, 14747, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_GLenum_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum) < (0)) __PYX_ERR(0, 14747, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum = &__pyx_type_4cuda_8bindings_7runtime_GLenum;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum) < (0)) __PYX_ERR(0, 14747, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_GLenum_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum) < (0)) __PYX_ERR(0, 14747, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLenum) < (0)) __PYX_ERR(0, 14747, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_GLuint_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint)) __PYX_ERR(0, 14772, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_GLuint_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint) < (0)) __PYX_ERR(0, 14772, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint = &__pyx_type_4cuda_8bindings_7runtime_GLuint;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint) < (0)) __PYX_ERR(0, 14772, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_GLuint_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint) < (0)) __PYX_ERR(0, 14772, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_GLuint) < (0)) __PYX_ERR(0, 14772, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_EGLint_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint)) __PYX_ERR(0, 14797, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_EGLint_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint) < (0)) __PYX_ERR(0, 14797, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint = &__pyx_type_4cuda_8bindings_7runtime_EGLint;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint) < (0)) __PYX_ERR(0, 14797, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_EGLint_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint) < (0)) __PYX_ERR(0, 14797, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_EGLint) < (0)) __PYX_ERR(0, 14797, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_VdpDevice_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice)) __PYX_ERR(0, 14822, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_VdpDevice_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice) < (0)) __PYX_ERR(0, 14822, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice = &__pyx_type_4cuda_8bindings_7runtime_VdpDevice;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice) < (0)) __PYX_ERR(0, 14822, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_VdpDevice_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice) < (0)) __PYX_ERR(0, 14822, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice) < (0)) __PYX_ERR(0, 14822, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress)) __PYX_ERR(0, 14847, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress) < (0)) __PYX_ERR(0, 14847, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress = &__pyx_type_4cuda_8bindings_7runtime_VdpGetProcAddress;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress) < (0)) __PYX_ERR(0, 14847, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_VdpGetProcAddress_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress) < (0)) __PYX_ERR(0, 14847, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress) < (0)) __PYX_ERR(0, 14847, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface)) __PYX_ERR(0, 14872, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface) < (0)) __PYX_ERR(0, 14872, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface = &__pyx_type_4cuda_8bindings_7runtime_VdpVideoSurface;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface) < (0)) __PYX_ERR(0, 14872, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_VdpVideoSurface_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface) < (0)) __PYX_ERR(0, 14872, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface) < (0)) __PYX_ERR(0, 14872, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface)) __PYX_ERR(0, 14897, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface) < (0)) __PYX_ERR(0, 14897, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface = &__pyx_type_4cuda_8bindings_7runtime_VdpOutputSurface;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface) < (0)) __PYX_ERR(0, 14897, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_VdpOutputSurface_2, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface) < (0)) __PYX_ERR(0, 14897, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface) < (0)) __PYX_ERR(0, 14897, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal)) __PYX_ERR(0, 34247, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal) < (0)) __PYX_ERR(0, 34247, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal = &__pyx_type_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal) < (0)) __PYX_ERR(0, 34247, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_cudaBindingsRuntimeGlobal, (PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal) < (0)) __PYX_ERR(0, 34247, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal) < (0)) __PYX_ERR(0, 34247, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr)) __PYX_ERR(0, 1026, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr) < (0)) __PYX_ERR(0, 1026, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr) < (0)) __PYX_ERR(0, 1026, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct__genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr)) __PYX_ERR(0, 1044, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr) < (0)) __PYX_ERR(0, 1044, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr) < (0)) __PYX_ERR(0, 1044, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_1_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr)) __PYX_ERR(0, 1073, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr) < (0)) __PYX_ERR(0, 1073, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr) < (0)) __PYX_ERR(0, 1073, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_2_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr)) __PYX_ERR(0, 1103, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr) < (0)) __PYX_ERR(0, 1103, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr) < (0)) __PYX_ERR(0, 1103, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_3_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr)) __PYX_ERR(0, 1299, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr) < (0)) __PYX_ERR(0, 1299, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr) < (0)) __PYX_ERR(0, 1299, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_4_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr)) __PYX_ERR(0, 1309, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr) < (0)) __PYX_ERR(0, 1309, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr) < (0)) __PYX_ERR(0, 1309, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_5_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr)) __PYX_ERR(0, 1318, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr) < (0)) __PYX_ERR(0, 1318, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr) < (0)) __PYX_ERR(0, 1318, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_6_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr)) __PYX_ERR(0, 1358, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr) < (0)) __PYX_ERR(0, 1358, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr) < (0)) __PYX_ERR(0, 1358, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_7_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr)) __PYX_ERR(0, 1366, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr) < (0)) __PYX_ERR(0, 1366, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr) < (0)) __PYX_ERR(0, 1366, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_8_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr)) __PYX_ERR(0, 1373, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr) < (0)) __PYX_ERR(0, 1373, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr) < (0)) __PYX_ERR(0, 1373, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_9_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr)) __PYX_ERR(0, 1382, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr) < (0)) __PYX_ERR(0, 1382, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr) < (0)) __PYX_ERR(0, 1382, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_10_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr)) __PYX_ERR(0, 1390, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr) < (0)) __PYX_ERR(0, 1390, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr) < (0)) __PYX_ERR(0, 1390, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_11_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr)) __PYX_ERR(0, 1403, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr) < (0)) __PYX_ERR(0, 1403, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr) < (0)) __PYX_ERR(0, 1403, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_12_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr)) __PYX_ERR(0, 1426, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr) < (0)) __PYX_ERR(0, 1426, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr) < (0)) __PYX_ERR(0, 1426, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_13_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr)) __PYX_ERR(0, 1867, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr) < (0)) __PYX_ERR(0, 1867, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr) < (0)) __PYX_ERR(0, 1867, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_14_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr)) __PYX_ERR(0, 1984, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr) < (0)) __PYX_ERR(0, 1984, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr) < (0)) __PYX_ERR(0, 1984, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_15_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr)) __PYX_ERR(0, 2003, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr) < (0)) __PYX_ERR(0, 2003, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr) < (0)) __PYX_ERR(0, 2003, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_16_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr)) __PYX_ERR(0, 2026, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr) < (0)) __PYX_ERR(0, 2026, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr) < (0)) __PYX_ERR(0, 2026, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_17_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr)) __PYX_ERR(0, 2043, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr) < (0)) __PYX_ERR(0, 2043, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr) < (0)) __PYX_ERR(0, 2043, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_18_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr)) __PYX_ERR(0, 2061, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr) < (0)) __PYX_ERR(0, 2061, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr) < (0)) __PYX_ERR(0, 2061, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_19_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr)) __PYX_ERR(0, 2073, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr) < (0)) __PYX_ERR(0, 2073, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr) < (0)) __PYX_ERR(0, 2073, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_20_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr)) __PYX_ERR(0, 2084, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr) < (0)) __PYX_ERR(0, 2084, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr) < (0)) __PYX_ERR(0, 2084, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_21_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr)) __PYX_ERR(0, 2102, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr) < (0)) __PYX_ERR(0, 2102, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr) < (0)) __PYX_ERR(0, 2102, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_22_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr)) __PYX_ERR(0, 2115, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr) < (0)) __PYX_ERR(0, 2115, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr) < (0)) __PYX_ERR(0, 2115, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_23_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr)) __PYX_ERR(0, 2126, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr) < (0)) __PYX_ERR(0, 2126, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr) < (0)) __PYX_ERR(0, 2126, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_24_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr)) __PYX_ERR(0, 2137, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr) < (0)) __PYX_ERR(0, 2137, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr) < (0)) __PYX_ERR(0, 2137, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_25_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr)) __PYX_ERR(0, 2159, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr) < (0)) __PYX_ERR(0, 2159, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr) < (0)) __PYX_ERR(0, 2159, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_26_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr)) __PYX_ERR(0, 2175, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr) < (0)) __PYX_ERR(0, 2175, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr) < (0)) __PYX_ERR(0, 2175, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_27_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr)) __PYX_ERR(0, 2200, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr) < (0)) __PYX_ERR(0, 2200, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr) < (0)) __PYX_ERR(0, 2200, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_28_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr)) __PYX_ERR(0, 2219, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr) < (0)) __PYX_ERR(0, 2219, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr) < (0)) __PYX_ERR(0, 2219, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_29_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr)) __PYX_ERR(0, 2331, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr) < (0)) __PYX_ERR(0, 2331, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr) < (0)) __PYX_ERR(0, 2331, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_30_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr)) __PYX_ERR(0, 2365, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr) < (0)) __PYX_ERR(0, 2365, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr) < (0)) __PYX_ERR(0, 2365, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_31_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr)) __PYX_ERR(0, 2384, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr) < (0)) __PYX_ERR(0, 2384, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr) < (0)) __PYX_ERR(0, 2384, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_32_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr)) __PYX_ERR(0, 2394, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr) < (0)) __PYX_ERR(0, 2394, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr) < (0)) __PYX_ERR(0, 2394, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_33_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr)) __PYX_ERR(0, 2411, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr) < (0)) __PYX_ERR(0, 2411, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr) < (0)) __PYX_ERR(0, 2411, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_34_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr)) __PYX_ERR(0, 2434, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr) < (0)) __PYX_ERR(0, 2434, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr) < (0)) __PYX_ERR(0, 2434, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_35_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr)) __PYX_ERR(0, 2463, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr) < (0)) __PYX_ERR(0, 2463, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr) < (0)) __PYX_ERR(0, 2463, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_36_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr)) __PYX_ERR(0, 2490, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr) < (0)) __PYX_ERR(0, 2490, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr) < (0)) __PYX_ERR(0, 2490, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_37_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr)) __PYX_ERR(0, 2523, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr) < (0)) __PYX_ERR(0, 2523, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr) < (0)) __PYX_ERR(0, 2523, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_38_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr)) __PYX_ERR(0, 2539, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr) < (0)) __PYX_ERR(0, 2539, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr) < (0)) __PYX_ERR(0, 2539, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_39_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr)) __PYX_ERR(0, 2559, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr) < (0)) __PYX_ERR(0, 2559, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr) < (0)) __PYX_ERR(0, 2559, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_40_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr)) __PYX_ERR(0, 2573, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr) < (0)) __PYX_ERR(0, 2573, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr) < (0)) __PYX_ERR(0, 2573, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_41_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr)) __PYX_ERR(0, 2584, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr) < (0)) __PYX_ERR(0, 2584, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr) < (0)) __PYX_ERR(0, 2584, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_42_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr)) __PYX_ERR(0, 3005, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr) < (0)) __PYX_ERR(0, 3005, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr) < (0)) __PYX_ERR(0, 3005, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_43_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr)) __PYX_ERR(0, 3053, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr) < (0)) __PYX_ERR(0, 3053, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr) < (0)) __PYX_ERR(0, 3053, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_44_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr)) __PYX_ERR(0, 3078, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr) < (0)) __PYX_ERR(0, 3078, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr) < (0)) __PYX_ERR(0, 3078, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_45_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr)) __PYX_ERR(0, 3094, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr) < (0)) __PYX_ERR(0, 3094, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr) < (0)) __PYX_ERR(0, 3094, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_46_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr)) __PYX_ERR(0, 3110, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr) < (0)) __PYX_ERR(0, 3110, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr) < (0)) __PYX_ERR(0, 3110, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_47_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr)) __PYX_ERR(0, 3134, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr) < (0)) __PYX_ERR(0, 3134, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr) < (0)) __PYX_ERR(0, 3134, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_48_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr)) __PYX_ERR(0, 3159, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr) < (0)) __PYX_ERR(0, 3159, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr) < (0)) __PYX_ERR(0, 3159, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_49_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr)) __PYX_ERR(0, 3172, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr) < (0)) __PYX_ERR(0, 3172, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr) < (0)) __PYX_ERR(0, 3172, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_50_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr)) __PYX_ERR(0, 3205, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr) < (0)) __PYX_ERR(0, 3205, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr) < (0)) __PYX_ERR(0, 3205, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_51_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr)) __PYX_ERR(0, 3220, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr) < (0)) __PYX_ERR(0, 3220, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr) < (0)) __PYX_ERR(0, 3220, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_52_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr)) __PYX_ERR(0, 3243, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr) < (0)) __PYX_ERR(0, 3243, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr) < (0)) __PYX_ERR(0, 3243, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_53_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr)) __PYX_ERR(0, 3263, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr) < (0)) __PYX_ERR(0, 3263, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr) < (0)) __PYX_ERR(0, 3263, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_54_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr)) __PYX_ERR(0, 3277, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr) < (0)) __PYX_ERR(0, 3277, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr) < (0)) __PYX_ERR(0, 3277, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_55_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr)) __PYX_ERR(0, 3308, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr) < (0)) __PYX_ERR(0, 3308, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr) < (0)) __PYX_ERR(0, 3308, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_56_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr)) __PYX_ERR(0, 3347, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr) < (0)) __PYX_ERR(0, 3347, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr) < (0)) __PYX_ERR(0, 3347, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_57_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr)) __PYX_ERR(0, 3356, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr) < (0)) __PYX_ERR(0, 3356, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr) < (0)) __PYX_ERR(0, 3356, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_58_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr)) __PYX_ERR(0, 3365, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr) < (0)) __PYX_ERR(0, 3365, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr) < (0)) __PYX_ERR(0, 3365, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_59_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr)) __PYX_ERR(0, 3382, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr) < (0)) __PYX_ERR(0, 3382, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr) < (0)) __PYX_ERR(0, 3382, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_60_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr)) __PYX_ERR(0, 3397, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr) < (0)) __PYX_ERR(0, 3397, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr) < (0)) __PYX_ERR(0, 3397, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_61_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr)) __PYX_ERR(0, 3527, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr) < (0)) __PYX_ERR(0, 3527, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr) < (0)) __PYX_ERR(0, 3527, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_62_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr)) __PYX_ERR(0, 3548, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr) < (0)) __PYX_ERR(0, 3548, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr) < (0)) __PYX_ERR(0, 3548, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_63_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr)) __PYX_ERR(0, 3564, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr) < (0)) __PYX_ERR(0, 3564, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr) < (0)) __PYX_ERR(0, 3564, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_64_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr)) __PYX_ERR(0, 3578, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr) < (0)) __PYX_ERR(0, 3578, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr) < (0)) __PYX_ERR(0, 3578, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_65_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr)) __PYX_ERR(0, 3594, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr) < (0)) __PYX_ERR(0, 3594, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr) < (0)) __PYX_ERR(0, 3594, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_66_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr)) __PYX_ERR(0, 3604, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr) < (0)) __PYX_ERR(0, 3604, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr) < (0)) __PYX_ERR(0, 3604, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_67_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr)) __PYX_ERR(0, 3625, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr) < (0)) __PYX_ERR(0, 3625, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr) < (0)) __PYX_ERR(0, 3625, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_68_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr)) __PYX_ERR(0, 3696, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr) < (0)) __PYX_ERR(0, 3696, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr) < (0)) __PYX_ERR(0, 3696, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_69_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr)) __PYX_ERR(0, 3719, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr) < (0)) __PYX_ERR(0, 3719, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr) < (0)) __PYX_ERR(0, 3719, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_70_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr)) __PYX_ERR(0, 3758, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr) < (0)) __PYX_ERR(0, 3758, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr) < (0)) __PYX_ERR(0, 3758, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_71_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr)) __PYX_ERR(0, 3778, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr) < (0)) __PYX_ERR(0, 3778, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr) < (0)) __PYX_ERR(0, 3778, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_72_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr)) __PYX_ERR(0, 3796, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr) < (0)) __PYX_ERR(0, 3796, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr) < (0)) __PYX_ERR(0, 3796, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_73_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr)) __PYX_ERR(0, 3813, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr) < (0)) __PYX_ERR(0, 3813, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr) < (0)) __PYX_ERR(0, 3813, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_74_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr)) __PYX_ERR(0, 3854, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr) < (0)) __PYX_ERR(0, 3854, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr) < (0)) __PYX_ERR(0, 3854, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_75_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr)) __PYX_ERR(0, 3882, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr) < (0)) __PYX_ERR(0, 3882, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr) < (0)) __PYX_ERR(0, 3882, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_76_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr)) __PYX_ERR(0, 3895, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr) < (0)) __PYX_ERR(0, 3895, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr) < (0)) __PYX_ERR(0, 3895, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_77_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr)) __PYX_ERR(0, 3911, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr) < (0)) __PYX_ERR(0, 3911, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr) < (0)) __PYX_ERR(0, 3911, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_78_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr)) __PYX_ERR(0, 3924, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr) < (0)) __PYX_ERR(0, 3924, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr) < (0)) __PYX_ERR(0, 3924, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_79_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr)) __PYX_ERR(0, 3943, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr) < (0)) __PYX_ERR(0, 3943, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr) < (0)) __PYX_ERR(0, 3943, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_80_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr)) __PYX_ERR(0, 3956, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr) < (0)) __PYX_ERR(0, 3956, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr) < (0)) __PYX_ERR(0, 3956, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_81_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr)) __PYX_ERR(0, 3969, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr) < (0)) __PYX_ERR(0, 3969, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr) < (0)) __PYX_ERR(0, 3969, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_82_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr)) __PYX_ERR(0, 3978, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr) < (0)) __PYX_ERR(0, 3978, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr) < (0)) __PYX_ERR(0, 3978, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_83_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr)) __PYX_ERR(0, 3996, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr) < (0)) __PYX_ERR(0, 3996, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr) < (0)) __PYX_ERR(0, 3996, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_84_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr)) __PYX_ERR(0, 4012, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr) < (0)) __PYX_ERR(0, 4012, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr) < (0)) __PYX_ERR(0, 4012, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_85_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr)) __PYX_ERR(0, 4208, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr) < (0)) __PYX_ERR(0, 4208, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr) < (0)) __PYX_ERR(0, 4208, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_86_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr)) __PYX_ERR(0, 4404, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr) < (0)) __PYX_ERR(0, 4404, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr) < (0)) __PYX_ERR(0, 4404, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_87_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr)) __PYX_ERR(0, 16151, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr) < (0)) __PYX_ERR(0, 16151, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr) < (0)) __PYX_ERR(0, 16151, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_88_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr)) __PYX_ERR(0, 16466, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr) < (0)) __PYX_ERR(0, 16466, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr) < (0)) __PYX_ERR(0, 16466, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_89_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr)) __PYX_ERR(0, 17700, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr) < (0)) __PYX_ERR(0, 17700, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr) < (0)) __PYX_ERR(0, 17700, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_90_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr)) __PYX_ERR(0, 17703, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr) < (0)) __PYX_ERR(0, 17703, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr) < (0)) __PYX_ERR(0, 17703, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_91_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr)) __PYX_ERR(0, 18066, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr) < (0)) __PYX_ERR(0, 18066, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr) < (0)) __PYX_ERR(0, 18066, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_92_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr)) __PYX_ERR(0, 18069, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr) < (0)) __PYX_ERR(0, 18069, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr) < (0)) __PYX_ERR(0, 18069, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_93_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr)) __PYX_ERR(0, 19077, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr) < (0)) __PYX_ERR(0, 19077, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr) < (0)) __PYX_ERR(0, 19077, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_94_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr)) __PYX_ERR(0, 19080, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr) < (0)) __PYX_ERR(0, 19080, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr) < (0)) __PYX_ERR(0, 19080, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_95_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr)) __PYX_ERR(0, 19203, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr) < (0)) __PYX_ERR(0, 19203, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr) < (0)) __PYX_ERR(0, 19203, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_96_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr)) __PYX_ERR(0, 19206, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr) < (0)) __PYX_ERR(0, 19206, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr) < (0)) __PYX_ERR(0, 19206, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_97_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr)) __PYX_ERR(0, 22062, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr) < (0)) __PYX_ERR(0, 22062, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr) < (0)) __PYX_ERR(0, 22062, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_98_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr)) __PYX_ERR(0, 22065, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr) < (0)) __PYX_ERR(0, 22065, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr) < (0)) __PYX_ERR(0, 22065, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_99_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr)) __PYX_ERR(0, 22067, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr) < (0)) __PYX_ERR(0, 22067, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr) < (0)) __PYX_ERR(0, 22067, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_100_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr)) __PYX_ERR(0, 22208, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr) < (0)) __PYX_ERR(0, 22208, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr) < (0)) __PYX_ERR(0, 22208, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_101_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr)) __PYX_ERR(0, 22962, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr) < (0)) __PYX_ERR(0, 22962, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr) < (0)) __PYX_ERR(0, 22962, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_102_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr)) __PYX_ERR(0, 22965, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr) < (0)) __PYX_ERR(0, 22965, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr) < (0)) __PYX_ERR(0, 22965, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_103_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr)) __PYX_ERR(0, 22967, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr) < (0)) __PYX_ERR(0, 22967, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr) < (0)) __PYX_ERR(0, 22967, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_104_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr)) __PYX_ERR(0, 23052, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr) < (0)) __PYX_ERR(0, 23052, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr) < (0)) __PYX_ERR(0, 23052, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_105_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr)) __PYX_ERR(0, 23147, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr) < (0)) __PYX_ERR(0, 23147, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr) < (0)) __PYX_ERR(0, 23147, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_106_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr)) __PYX_ERR(0, 23150, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr) < (0)) __PYX_ERR(0, 23150, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr) < (0)) __PYX_ERR(0, 23150, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_107_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr)) __PYX_ERR(0, 23152, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr) < (0)) __PYX_ERR(0, 23152, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr) < (0)) __PYX_ERR(0, 23152, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_108_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr)) __PYX_ERR(0, 23579, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr) < (0)) __PYX_ERR(0, 23579, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr) < (0)) __PYX_ERR(0, 23579, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_109_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr)) __PYX_ERR(0, 23581, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr) < (0)) __PYX_ERR(0, 23581, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr) < (0)) __PYX_ERR(0, 23581, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_110_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr)) __PYX_ERR(0, 24243, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr) < (0)) __PYX_ERR(0, 24243, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr) < (0)) __PYX_ERR(0, 24243, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_111_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr)) __PYX_ERR(0, 26308, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr) < (0)) __PYX_ERR(0, 26308, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr) < (0)) __PYX_ERR(0, 26308, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_112_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr)) __PYX_ERR(0, 26586, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr) < (0)) __PYX_ERR(0, 26586, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr) < (0)) __PYX_ERR(0, 26586, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_113_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr)) __PYX_ERR(0, 26675, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr) < (0)) __PYX_ERR(0, 26675, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr) < (0)) __PYX_ERR(0, 26675, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_114_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr)) __PYX_ERR(0, 26876, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr) < (0)) __PYX_ERR(0, 26876, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr) < (0)) __PYX_ERR(0, 26876, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_115_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr)) __PYX_ERR(0, 27016, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr) < (0)) __PYX_ERR(0, 27016, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr) < (0)) __PYX_ERR(0, 27016, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_116_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr)) __PYX_ERR(0, 27167, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr) < (0)) __PYX_ERR(0, 27167, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr) < (0)) __PYX_ERR(0, 27167, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_117_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr)) __PYX_ERR(0, 27277, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr) < (0)) __PYX_ERR(0, 27277, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr) < (0)) __PYX_ERR(0, 27277, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_118_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr)) __PYX_ERR(0, 27354, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr) < (0)) __PYX_ERR(0, 27354, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr) < (0)) __PYX_ERR(0, 27354, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_119_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr)) __PYX_ERR(0, 27513, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr) < (0)) __PYX_ERR(0, 27513, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr) < (0)) __PYX_ERR(0, 27513, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_120_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr)) __PYX_ERR(0, 27660, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr) < (0)) __PYX_ERR(0, 27660, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr) < (0)) __PYX_ERR(0, 27660, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_121_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr)) __PYX_ERR(0, 27808, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr) < (0)) __PYX_ERR(0, 27808, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr) < (0)) __PYX_ERR(0, 27808, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_122_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr)) __PYX_ERR(0, 27995, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr) < (0)) __PYX_ERR(0, 27995, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr) < (0)) __PYX_ERR(0, 27995, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_123_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr)) __PYX_ERR(0, 28121, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr) < (0)) __PYX_ERR(0, 28121, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr) < (0)) __PYX_ERR(0, 28121, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_124_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr)) __PYX_ERR(0, 29012, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr) < (0)) __PYX_ERR(0, 29012, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr) < (0)) __PYX_ERR(0, 29012, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_125_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr)) __PYX_ERR(0, 29015, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr) < (0)) __PYX_ERR(0, 29015, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr) < (0)) __PYX_ERR(0, 29015, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_126_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr)) __PYX_ERR(0, 29018, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr) < (0)) __PYX_ERR(0, 29018, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr) < (0)) __PYX_ERR(0, 29018, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_127_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr)) __PYX_ERR(0, 29105, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr) < (0)) __PYX_ERR(0, 29105, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr) < (0)) __PYX_ERR(0, 29105, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_128_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr)) __PYX_ERR(0, 29108, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr) < (0)) __PYX_ERR(0, 29108, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr) < (0)) __PYX_ERR(0, 29108, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_129_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr)) __PYX_ERR(0, 29111, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr) < (0)) __PYX_ERR(0, 29111, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr) < (0)) __PYX_ERR(0, 29111, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_130_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr)) __PYX_ERR(0, 30992, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr) < (0)) __PYX_ERR(0, 30992, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr) < (0)) __PYX_ERR(0, 30992, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_131_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr)) __PYX_ERR(0, 30995, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr) < (0)) __PYX_ERR(0, 30995, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr) < (0)) __PYX_ERR(0, 30995, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_132_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr)) __PYX_ERR(0, 31518, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr) < (0)) __PYX_ERR(0, 31518, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr) < (0)) __PYX_ERR(0, 31518, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_133_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr)) __PYX_ERR(0, 31522, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr) < (0)) __PYX_ERR(0, 31522, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr) < (0)) __PYX_ERR(0, 31522, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_134_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr)) __PYX_ERR(0, 31615, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr) < (0)) __PYX_ERR(0, 31615, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr) < (0)) __PYX_ERR(0, 31615, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_135_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr)) __PYX_ERR(0, 31619, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr) < (0)) __PYX_ERR(0, 31619, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr) < (0)) __PYX_ERR(0, 31619, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_136_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr)) __PYX_ERR(0, 32400, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr_spec, __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr) < (0)) __PYX_ERR(0, 32400, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr = &__pyx_type_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr) < (0)) __PYX_ERR(0, 32400, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4cuda_8bindings_7runtime___pyx_scope_struct_137_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_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_type_import_code", 0);
  /*--- Type import code ---*/
  __pyx_t_1 = PyImport_ImportModule("cuda.bindings.driver"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperKernelParams = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperKernelParams",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperKernelParams),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperKernelParams) __PYX_ERR(4, 9, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperInputVoidPtr = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperInputVoidPtr",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperInputVoidPtr), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperInputVoidPtr),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperInputVoidPtr), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperInputVoidPtr),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperInputVoidPtr), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperInputVoidPtr),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperInputVoidPtr) __PYX_ERR(4, 17, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemPool_attribute = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCUmemPool_attribute",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemPool_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemPool_attribute),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemPool_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemPool_attribute),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemPool_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemPool_attribute),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemPool_attribute) __PYX_ERR(4, 22, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmem_range_attribute = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCUmem_range_attribute",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmem_range_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmem_range_attribute),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmem_range_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmem_range_attribute),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmem_range_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmem_range_attribute),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmem_range_attribute) __PYX_ERR(4, 31, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUpointer_attribute = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCUpointer_attribute",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUpointer_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUpointer_attribute),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUpointer_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUpointer_attribute),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUpointer_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUpointer_attribute),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUpointer_attribute) __PYX_ERR(4, 40, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUgraphMem_attribute = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCUgraphMem_attribute",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUgraphMem_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUgraphMem_attribute),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUgraphMem_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUgraphMem_attribute),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUgraphMem_attribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUgraphMem_attribute),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUgraphMem_attribute) __PYX_ERR(4, 56, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUjit_option = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCUjit_option",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUjit_option), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUjit_option),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUjit_option), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUjit_option),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUjit_option), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUjit_option),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUjit_option) __PYX_ERR(4, 64, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCudaJitOption = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCudaJitOption",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaJitOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaJitOption),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaJitOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaJitOption),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaJitOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaJitOption),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCudaJitOption) __PYX_ERR(4, 79, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUlibraryOption = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCUlibraryOption",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUlibraryOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUlibraryOption),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUlibraryOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUlibraryOption),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUlibraryOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUlibraryOption),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUlibraryOption) __PYX_ERR(4, 91, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCudaLibraryOption = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCudaLibraryOption",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaLibraryOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaLibraryOption),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaLibraryOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaLibraryOption),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaLibraryOption), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCudaLibraryOption),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCudaLibraryOption) __PYX_ERR(4, 98, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCUmemAllocationHandleType",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUmemAllocationHandleType) __PYX_ERR(4, 105, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__InputVoidPtrPtrHelper = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_InputVoidPtrPtrHelper",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__InputVoidPtrPtrHelper),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__InputVoidPtrPtrHelper) __PYX_ERR(4, 115, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUcoredumpSettings = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "_HelperCUcoredumpSettings",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUcoredumpSettings), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUcoredumpSettings),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUcoredumpSettings), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUcoredumpSettings),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUcoredumpSettings), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver__HelperCUcoredumpSettings),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver__HelperCUcoredumpSettings) __PYX_ERR(4, 118, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcontext = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcontext",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcontext), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcontext),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcontext), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcontext),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcontext), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcontext),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcontext) __PYX_ERR(5, 9, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmodule = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmodule",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmodule), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmodule),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmodule), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmodule),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmodule), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmodule),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmodule) __PYX_ERR(5, 23, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlibrary = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlibrary",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibrary), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibrary),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibrary), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibrary),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibrary), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibrary),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlibrary) __PYX_ERR(5, 51, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUkernel = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUkernel",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernel), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernel),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernel), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernel),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernel), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernel),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUkernel) __PYX_ERR(5, 65, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUarray = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUarray",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarray), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarray),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarray), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarray),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarray), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarray),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUarray) __PYX_ERR(5, 79, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmipmappedArray = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmipmappedArray",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmipmappedArray),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmipmappedArray) __PYX_ERR(5, 93, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtexref = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUtexref",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexref), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexref),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexref), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexref),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexref), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexref),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtexref) __PYX_ERR(5, 107, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUsurfref = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUsurfref",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfref), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfref),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfref), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfref),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfref), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfref),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUsurfref) __PYX_ERR(5, 121, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphicsResource = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphicsResource",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphicsResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphicsResource),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphicsResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphicsResource),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphicsResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphicsResource),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphicsResource) __PYX_ERR(5, 163, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexternalMemory = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUexternalMemory",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalMemory), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalMemory),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalMemory), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalMemory),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalMemory), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalMemory),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexternalMemory) __PYX_ERR(5, 177, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexternalSemaphore = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUexternalSemaphore",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalSemaphore),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalSemaphore),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalSemaphore), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexternalSemaphore),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexternalSemaphore) __PYX_ERR(5, 191, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphDeviceNode = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphDeviceNode",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphDeviceNode),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphDeviceNode) __PYX_ERR(5, 275, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallbackHandle = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUasyncCallbackHandle",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallbackHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallbackHandle),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallbackHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallbackHandle),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallbackHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallbackHandle),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallbackHandle) __PYX_ERR(5, 289, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgreenCtx = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgreenCtx",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgreenCtx), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgreenCtx),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgreenCtx), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgreenCtx),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgreenCtx), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgreenCtx),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgreenCtx) __PYX_ERR(5, 303, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlinkState = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlinkState",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlinkState), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlinkState),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlinkState), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlinkState),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlinkState), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlinkState),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlinkState) __PYX_ERR(5, 317, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevResourceDesc = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevResourceDesc",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResourceDesc), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResourceDesc),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResourceDesc), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResourceDesc),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResourceDesc), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResourceDesc),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevResourceDesc) __PYX_ERR(5, 330, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallbackHandle = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlogsCallbackHandle",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallbackHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallbackHandle),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallbackHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallbackHandle),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallbackHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallbackHandle),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallbackHandle) __PYX_ERR(5, 344, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_EGLImageKHR = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "EGLImageKHR",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLImageKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLImageKHR),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLImageKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLImageKHR),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLImageKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLImageKHR),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_EGLImageKHR) __PYX_ERR(5, 370, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_EGLStreamKHR = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "EGLStreamKHR",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLStreamKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLStreamKHR),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLStreamKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLStreamKHR),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLStreamKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLStreamKHR),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_EGLStreamKHR) __PYX_ERR(5, 382, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_EGLSyncKHR = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "EGLSyncKHR",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLSyncKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLSyncKHR),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLSyncKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLSyncKHR),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLSyncKHR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLSyncKHR),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_EGLSyncKHR) __PYX_ERR(5, 394, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallback = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUasyncCallback",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallback),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallback),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncCallback),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUasyncCallback) __PYX_ERR(5, 406, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUhostFn = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUhostFn",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUhostFn),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUhostFn) __PYX_ERR(5, 418, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamCallback = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamCallback",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamCallback),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamCallback),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamCallback),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamCallback) __PYX_ERR(5, 430, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUoccupancyB2DSize = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUoccupancyB2DSize",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoccupancyB2DSize), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoccupancyB2DSize),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoccupancyB2DSize), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoccupancyB2DSize),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoccupancyB2DSize), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoccupancyB2DSize),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUoccupancyB2DSize) __PYX_ERR(5, 442, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallback = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlogsCallback",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallback),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallback),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallback), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogsCallback),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlogsCallback) __PYX_ERR(5, 454, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUuuid_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUuuid_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUuuid_st) __PYX_ERR(5, 466, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemFabricHandle_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_st) __PYX_ERR(5, 481, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUipcEventHandle_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_st) __PYX_ERR(5, 501, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUipcMemHandle_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_st) __PYX_ERR(5, 518, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamMemOpWaitValueParams_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWaitValueParams_st) __PYX_ERR(5, 535, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamMemOpWriteValueParams_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpWriteValueParams_st) __PYX_ERR(5, 563, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamMemOpFlushRemoteWritesParams_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpFlushRemoteWritesParams_st) __PYX_ERR(5, 591, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamMemOpMemoryBarrierParams_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpMemoryBarrierParams_st) __PYX_ERR(5, 607, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamMemOpAtomicReductionParams_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamMemOpAtomicReductionParams_st) __PYX_ERR(5, 623, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamBatchMemOpParams_union",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_union) __PYX_ERR(5, 652, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st) __PYX_ERR(5, 689, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st) __PYX_ERR(5, 716, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct0 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct0",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct0),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct0) __PYX_ERR(5, 742, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union2) __PYX_ERR(5, 756, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUasyncNotificationInfo_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo_st) __PYX_ERR(5, 771, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevprop_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_st) __PYX_ERR(5, 792, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUaccessPolicyWindow_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_st) __PYX_ERR(5, 827, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_KERNEL_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_st) __PYX_ERR(5, 864, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_KERNEL_NODE_PARAMS_v2_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2_st) __PYX_ERR(5, 901, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_KERNEL_NODE_PARAMS_v3_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3_st) __PYX_ERR(5, 946, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMSET_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_st) __PYX_ERR(5, 991, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMSET_NODE_PARAMS_v2_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2_st) __PYX_ERR(5, 1019, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_HOST_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_st) __PYX_ERR(5, 1050, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_HOST_NODE_PARAMS_v2_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2_st) __PYX_ERR(5, 1070, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_CONDITIONAL_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CONDITIONAL_NODE_PARAMS) __PYX_ERR(5, 1090, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphEdgeData_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData_st) __PYX_ERR(5, 1138, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_GRAPH_INSTANTIATE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS_st) __PYX_ERR(5, 1180, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlaunchMemSyncDomainMap_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap_st) __PYX_ERR(5, 1206, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct1) __PYX_ERR(5, 1231, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct2) __PYX_ERR(5, 1249, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct3 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct3",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct3),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct3) __PYX_ERR(5, 1268, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct4 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct4",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct4),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct4) __PYX_ERR(5, 1285, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct5 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct5",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct5),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct5) __PYX_ERR(5, 1303, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue_union = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlaunchAttributeValue_union",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue_union),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue_union) __PYX_ERR(5, 1320, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlaunchAttribute_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute_st) __PYX_ERR(5, 1415, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlaunchConfig_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig_st) __PYX_ERR(5, 1435, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUexecAffinitySmCount_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_st) __PYX_ERR(5, 1473, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union3 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union3",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union3),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union3),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union3),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union3) __PYX_ERR(5, 1490, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUexecAffinityParam_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_st) __PYX_ERR(5, 1505, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUctxCigParam_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam_st) __PYX_ERR(5, 1525, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUctxCreateParams_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams_st) __PYX_ERR(5, 1544, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlibraryHostUniversalFunctionAndDataTable_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable_st) __PYX_ERR(5, 1570, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY2D_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_st) __PYX_ERR(5, 1591, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_st) __PYX_ERR(5, 1642, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D_PEER_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_st) __PYX_ERR(5, 1712, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS_st) __PYX_ERR(5, 1785, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_DESCRIPTOR_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_st) __PYX_ERR(5, 1810, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY3D_DESCRIPTOR_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_st) __PYX_ERR(5, 1833, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct6 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct6",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct6),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct6) __PYX_ERR(5, 1860, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_SPARSE_PROPERTIES_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_st) __PYX_ERR(5, 1878, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_MEMORY_REQUIREMENTS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_st) __PYX_ERR(5, 1905, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct7 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct7",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct7),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct7) __PYX_ERR(5, 1926, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct8 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct8",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct8),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct8) __PYX_ERR(5, 1941, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct9 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct9",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct9),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct9) __PYX_ERR(5, 1956, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct10 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct10",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct10),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct10) __PYX_ERR(5, 1977, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct11 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct11",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct11),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct11) __PYX_ERR(5, 2002, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union4 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union4",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union4), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union4),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union4), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union4),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union4), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union4),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union4) __PYX_ERR(5, 2016, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_RESOURCE_DESC_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_st) __PYX_ERR(5, 2043, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_TEXTURE_DESC_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_st) __PYX_ERR(5, 2065, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_RESOURCE_VIEW_DESC_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_st) __PYX_ERR(5, 2100, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUtensorMap_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap_st) __PYX_ERR(5, 2133, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st) __PYX_ERR(5, 2151, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_LAUNCH_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_st) __PYX_ERR(5, 2170, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct12 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct12",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct12),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct12) __PYX_ERR(5, 2208, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union5 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union5",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union5), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union5),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union5), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union5),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union5), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union5),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union5) __PYX_ERR(5, 2224, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st) __PYX_ERR(5, 2243, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st) __PYX_ERR(5, 2269, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st) __PYX_ERR(5, 2292, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct13 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct13",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct13),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct13) __PYX_ERR(5, 2317, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union6 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union6",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union6), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union6),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union6), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union6),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union6), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union6),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union6) __PYX_ERR(5, 2333, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st) __PYX_ERR(5, 2352, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct14 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct14",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct14),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct14) __PYX_ERR(5, 2376, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union7 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union7",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union7), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union7),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union7), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union7),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union7), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union7),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union7) __PYX_ERR(5, 2390, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct15 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct15",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct15),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct15) __PYX_ERR(5, 2406, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct16 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct16",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct16),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct16) __PYX_ERR(5, 2420, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st) __PYX_ERR(5, 2443, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct17 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct17",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct17),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct17) __PYX_ERR(5, 2472, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union8 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union8",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union8), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union8),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union8), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union8),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union8), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union8),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union8) __PYX_ERR(5, 2486, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct18 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct18",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct18),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct18) __PYX_ERR(5, 2502, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct19 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct19",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct19),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct19) __PYX_ERR(5, 2518, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st) __PYX_ERR(5, 2541, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st) __PYX_ERR(5, 2570, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st) __PYX_ERR(5, 2596, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_WAIT_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_st) __PYX_ERR(5, 2622, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st) __PYX_ERR(5, 2648, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union9 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union9",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union9), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union9),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union9), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union9),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union9), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union9),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union9) __PYX_ERR(5, 2674, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct20 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct20",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct20),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct20) __PYX_ERR(5, 2692, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct21 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct21",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct21),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct21) __PYX_ERR(5, 2720, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union10 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union10",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union10), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union10),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union10), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union10),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union10), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union10),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union10) __PYX_ERR(5, 2738, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union11 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union11",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union11), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union11),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union11), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union11),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union11), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union11),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union11) __PYX_ERR(5, 2756, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUarrayMapInfo_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_st) __PYX_ERR(5, 2771, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemLocation_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_st) __PYX_ERR(5, 2812, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct22 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct22",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct22),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct22) __PYX_ERR(5, 2831, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemAllocationProp_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_st) __PYX_ERR(5, 2851, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmulticastObjectProp_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_st) __PYX_ERR(5, 2882, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemAccessDesc_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_st) __PYX_ERR(5, 2908, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphExecUpdateResultInfo_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_st) __PYX_ERR(5, 2928, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemPoolProps_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_st) __PYX_ERR(5, 2954, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemPoolPtrExportData_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_st) __PYX_ERR(5, 2990, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemcpyAttributes_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_st) __PYX_ERR(5, 3007, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUoffset3D_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_st) __PYX_ERR(5, 3036, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUextent3D_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_st) __PYX_ERR(5, 3057, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct23 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct23",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct23),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct23) __PYX_ERR(5, 3078, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct24 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_struct24",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_struct24),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_struct24) __PYX_ERR(5, 3100, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union12 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union12",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union12), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union12),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union12), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union12),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union12), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union12),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union12) __PYX_ERR(5, 3118, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemcpy3DOperand_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_st) __PYX_ERR(5, 3136, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D_BATCH_OP_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_st) __PYX_ERR(5, 3156, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEM_ALLOC_NODE_PARAMS_v1_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1_st) __PYX_ERR(5, 3183, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEM_ALLOC_NODE_PARAMS_v2_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2_st) __PYX_ERR(5, 3216, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEM_FREE_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS_st) __PYX_ERR(5, 3249, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_CHILD_GRAPH_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS_st) __PYX_ERR(5, 3267, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EVENT_RECORD_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS_st) __PYX_ERR(5, 3291, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EVENT_WAIT_NODE_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS_st) __PYX_ERR(5, 3309, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphNodeParams_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams_st) __PYX_ERR(5, 3327, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointLockArgs_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs_st) __PYX_ERR(5, 3389, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointCheckpointArgs_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs_st) __PYX_ERR(5, 3411, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointGpuPair_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair_st) __PYX_ERR(5, 3428, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointRestoreArgs_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs_st) __PYX_ERR(5, 3449, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointUnlockArgs_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs_st) __PYX_ERR(5, 3476, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemDecompressParams_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams_st) __PYX_ERR(5, 3493, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevSmResource_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource_st) __PYX_ERR(5, 3532, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevWorkqueueConfigResource_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource_st) __PYX_ERR(5, 3558, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevWorkqueueResource_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource_st) __PYX_ERR(5, 3578, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CU_DEV_SM_RESOURCE_GROUP_PARAMS_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS_st) __PYX_ERR(5, 3593, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevResource_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_st) __PYX_ERR(5, 3619, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union15 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "anon_union15",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union15), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union15),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union15), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union15),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_anon_union15), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_anon_union15),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_anon_union15) __PYX_ERR(5, 3653, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_st = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUeglFrame_st",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_st),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_st) __PYX_ERR(5, 3669, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdeviceptr",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr) __PYX_ERR(5, 3707, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevice = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevice",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevice) __PYX_ERR(5, 3721, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtexObject = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUtexObject",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtexObject) __PYX_ERR(5, 3735, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUsurfObject",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject) __PYX_ERR(5, 3749, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphConditionalHandle = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphConditionalHandle",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphConditionalHandle),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphConditionalHandle) __PYX_ERR(5, 3763, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUuuid = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUuuid",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUuuid),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUuuid) __PYX_ERR(5, 3775, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemFabricHandle_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle_v1) __PYX_ERR(5, 3789, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemFabricHandle",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemFabricHandle),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemFabricHandle) __PYX_ERR(5, 3808, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUipcEventHandle_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle_v1) __PYX_ERR(5, 3827, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUipcEventHandle",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcEventHandle),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcEventHandle) __PYX_ERR(5, 3843, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUipcMemHandle_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle_v1) __PYX_ERR(5, 3859, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUipcMemHandle",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUipcMemHandle),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUipcMemHandle) __PYX_ERR(5, 3875, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamBatchMemOpParams_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams_v1) __PYX_ERR(5, 3891, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamBatchMemOpParams",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamBatchMemOpParams),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamBatchMemOpParams) __PYX_ERR(5, 3922, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_BATCH_MEM_OP_NODE_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v1) __PYX_ERR(5, 3953, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_BATCH_MEM_OP_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS) __PYX_ERR(5, 3976, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_BATCH_MEM_OP_NODE_PARAMS_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_BATCH_MEM_OP_NODE_PARAMS_v2) __PYX_ERR(5, 3999, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUasyncNotificationInfo",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUasyncNotificationInfo),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUasyncNotificationInfo) __PYX_ERR(5, 4021, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevprop_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop_v1) __PYX_ERR(5, 4040, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevprop",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevprop),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevprop) __PYX_ERR(5, 4074, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUaccessPolicyWindow_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow_v1) __PYX_ERR(5, 4108, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUaccessPolicyWindow",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUaccessPolicyWindow),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUaccessPolicyWindow) __PYX_ERR(5, 4144, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_KERNEL_NODE_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v1) __PYX_ERR(5, 4180, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_KERNEL_NODE_PARAMS_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v2) __PYX_ERR(5, 4214, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_KERNEL_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS) __PYX_ERR(5, 4254, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_KERNEL_NODE_PARAMS_v3",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_KERNEL_NODE_PARAMS_v3) __PYX_ERR(5, 4294, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMSET_NODE_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v1) __PYX_ERR(5, 4334, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMSET_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS) __PYX_ERR(5, 4360, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMSET_NODE_PARAMS_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMSET_NODE_PARAMS_v2) __PYX_ERR(5, 4386, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_HOST_NODE_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v1) __PYX_ERR(5, 4414, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_HOST_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS) __PYX_ERR(5, 4432, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_HOST_NODE_PARAMS_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_HOST_NODE_PARAMS_v2) __PYX_ERR(5, 4450, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphEdgeData",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphEdgeData),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphEdgeData) __PYX_ERR(5, 4468, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_GRAPH_INSTANTIATE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_GRAPH_INSTANTIATE_PARAMS) __PYX_ERR(5, 4509, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlaunchMemSyncDomainMap",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchMemSyncDomainMap) __PYX_ERR(5, 4531, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlaunchAttributeValue",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttributeValue),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttributeValue) __PYX_ERR(5, 4555, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlaunchAttribute",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchAttribute),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchAttribute) __PYX_ERR(5, 4642, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlaunchConfig",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlaunchConfig),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlaunchConfig) __PYX_ERR(5, 4660, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUkernelNodeAttrValue_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue_v1) __PYX_ERR(5, 4694, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUkernelNodeAttrValue",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUkernelNodeAttrValue),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUkernelNodeAttrValue) __PYX_ERR(5, 4781, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamAttrValue_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue_v1) __PYX_ERR(5, 4868, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUstreamAttrValue",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUstreamAttrValue),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUstreamAttrValue) __PYX_ERR(5, 4955, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUexecAffinitySmCount_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount_v1) __PYX_ERR(5, 5042, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUexecAffinitySmCount",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinitySmCount),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinitySmCount) __PYX_ERR(5, 5058, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUexecAffinityParam_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam_v1) __PYX_ERR(5, 5074, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUexecAffinityParam",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUexecAffinityParam),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUexecAffinityParam) __PYX_ERR(5, 5092, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUctxCigParam",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCigParam),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUctxCigParam) __PYX_ERR(5, 5110, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUctxCreateParams",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUctxCreateParams),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUctxCreateParams) __PYX_ERR(5, 5128, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlibraryHostUniversalFunctionAndDataTable",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlibraryHostUniversalFunctionAndDataTable) __PYX_ERR(5, 5149, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY2D_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D_v2) __PYX_ERR(5, 5169, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY2D",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY2D),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY2D) __PYX_ERR(5, 5215, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_v2) __PYX_ERR(5, 5261, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D) __PYX_ERR(5, 5326, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D_PEER_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER_v1) __PYX_ERR(5, 5391, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D_PEER",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_PEER) __PYX_ERR(5, 5457, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY_NODE_PARAMS) __PYX_ERR(5, 5523, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_DESCRIPTOR_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR_v2) __PYX_ERR(5, 5545, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_DESCRIPTOR",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_DESCRIPTOR) __PYX_ERR(5, 5567, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY3D_DESCRIPTOR_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR_v2) __PYX_ERR(5, 5589, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY3D_DESCRIPTOR",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY3D_DESCRIPTOR) __PYX_ERR(5, 5615, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_SPARSE_PROPERTIES_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES_v1) __PYX_ERR(5, 5641, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_SPARSE_PROPERTIES",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_SPARSE_PROPERTIES) __PYX_ERR(5, 5666, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_MEMORY_REQUIREMENTS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS_v1) __PYX_ERR(5, 5691, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_ARRAY_MEMORY_REQUIREMENTS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_ARRAY_MEMORY_REQUIREMENTS) __PYX_ERR(5, 5711, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_RESOURCE_DESC_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC_v1) __PYX_ERR(5, 5731, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_RESOURCE_DESC",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_DESC) __PYX_ERR(5, 5751, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_TEXTURE_DESC_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC_v1) __PYX_ERR(5, 5771, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_TEXTURE_DESC",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_TEXTURE_DESC) __PYX_ERR(5, 5805, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_RESOURCE_VIEW_DESC_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC_v1) __PYX_ERR(5, 5839, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_RESOURCE_VIEW_DESC",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_RESOURCE_VIEW_DESC) __PYX_ERR(5, 5871, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUtensorMap",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtensorMap),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtensorMap) __PYX_ERR(5, 5903, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1) __PYX_ERR(5, 5920, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_POINTER_ATTRIBUTE_P2P_TOKENS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_POINTER_ATTRIBUTE_P2P_TOKENS) __PYX_ERR(5, 5938, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_LAUNCH_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS_v1) __PYX_ERR(5, 5956, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_LAUNCH_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_LAUNCH_PARAMS) __PYX_ERR(5, 5990, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1) __PYX_ERR(5, 6024, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_HANDLE_DESC",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_HANDLE_DESC) __PYX_ERR(5, 6048, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1) __PYX_ERR(5, 6072, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_BUFFER_DESC",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_BUFFER_DESC) __PYX_ERR(5, 6094, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1) __PYX_ERR(5, 6116, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC) __PYX_ERR(5, 6139, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1) __PYX_ERR(5, 6162, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC) __PYX_ERR(5, 6184, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1) __PYX_ERR(5, 6206, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) __PYX_ERR(5, 6233, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1) __PYX_ERR(5, 6260, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) __PYX_ERR(5, 6287, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1) __PYX_ERR(5, 6314, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS) __PYX_ERR(5, 6335, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2) __PYX_ERR(5, 6356, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1) __PYX_ERR(5, 6377, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_WAIT_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS) __PYX_ERR(5, 6398, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2) __PYX_ERR(5, 6419, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemGenericAllocationHandle",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle) __PYX_ERR(5, 6440, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUarrayMapInfo_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo_v1) __PYX_ERR(5, 6452, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUarrayMapInfo",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUarrayMapInfo),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUarrayMapInfo) __PYX_ERR(5, 6489, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemLocation_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation_v1) __PYX_ERR(5, 6526, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemLocation",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemLocation),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemLocation) __PYX_ERR(5, 6544, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemAllocationProp_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp_v1) __PYX_ERR(5, 6562, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemAllocationProp",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAllocationProp),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAllocationProp) __PYX_ERR(5, 6590, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmulticastObjectProp_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp_v1) __PYX_ERR(5, 6618, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmulticastObjectProp",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmulticastObjectProp),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmulticastObjectProp) __PYX_ERR(5, 6643, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemAccessDesc_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc_v1) __PYX_ERR(5, 6668, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemAccessDesc",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemAccessDesc),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemAccessDesc) __PYX_ERR(5, 6686, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphExecUpdateResultInfo_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo_v1) __PYX_ERR(5, 6704, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphExecUpdateResultInfo",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphExecUpdateResultInfo) __PYX_ERR(5, 6727, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemPoolProps_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps_v1) __PYX_ERR(5, 6750, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemPoolProps",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolProps),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolProps) __PYX_ERR(5, 6784, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemPoolPtrExportData_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData_v1) __PYX_ERR(5, 6818, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemPoolPtrExportData",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemPoolPtrExportData),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemPoolPtrExportData) __PYX_ERR(5, 6834, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemcpyAttributes_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes_v1) __PYX_ERR(5, 6850, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemcpyAttributes",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpyAttributes),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpyAttributes) __PYX_ERR(5, 6876, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUoffset3D_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D_v1) __PYX_ERR(5, 6902, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUoffset3D",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUoffset3D),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUoffset3D) __PYX_ERR(5, 6922, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUextent3D_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D_v1) __PYX_ERR(5, 6942, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUextent3D",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUextent3D),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUextent3D) __PYX_ERR(5, 6962, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemcpy3DOperand_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand_v1) __PYX_ERR(5, 6982, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemcpy3DOperand",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemcpy3DOperand),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemcpy3DOperand) __PYX_ERR(5, 7000, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D_BATCH_OP_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP_v1) __PYX_ERR(5, 7018, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEMCPY3D_BATCH_OP",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEMCPY3D_BATCH_OP) __PYX_ERR(5, 7041, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEM_ALLOC_NODE_PARAMS_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v1) __PYX_ERR(5, 7064, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEM_ALLOC_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS) __PYX_ERR(5, 7092, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEM_ALLOC_NODE_PARAMS_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_ALLOC_NODE_PARAMS_v2) __PYX_ERR(5, 7120, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_MEM_FREE_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_MEM_FREE_NODE_PARAMS) __PYX_ERR(5, 7148, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_CHILD_GRAPH_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_CHILD_GRAPH_NODE_PARAMS) __PYX_ERR(5, 7164, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EVENT_RECORD_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_RECORD_NODE_PARAMS) __PYX_ERR(5, 7186, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUDA_EVENT_WAIT_NODE_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUDA_EVENT_WAIT_NODE_PARAMS) __PYX_ERR(5, 7202, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUgraphNodeParams",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUgraphNodeParams),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUgraphNodeParams) __PYX_ERR(5, 7218, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointLockArgs",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointLockArgs),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointLockArgs) __PYX_ERR(5, 7266, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointCheckpointArgs",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointCheckpointArgs) __PYX_ERR(5, 7287, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointGpuPair",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointGpuPair),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointGpuPair) __PYX_ERR(5, 7303, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointRestoreArgs",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointRestoreArgs),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointRestoreArgs) __PYX_ERR(5, 7321, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUcheckpointUnlockArgs",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUcheckpointUnlockArgs),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUcheckpointUnlockArgs) __PYX_ERR(5, 7344, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemDecompressParams",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemDecompressParams),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemDecompressParams) __PYX_ERR(5, 7360, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevSmResource",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevSmResource),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevSmResource) __PYX_ERR(5, 7398, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevWorkqueueConfigResource",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueConfigResource) __PYX_ERR(5, 7423, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevWorkqueueResource",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevWorkqueueResource),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevWorkqueueResource) __PYX_ERR(5, 7441, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CU_DEV_SM_RESOURCE_GROUP_PARAMS",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CU_DEV_SM_RESOURCE_GROUP_PARAMS) __PYX_ERR(5, 7455, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevResource_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource_v1) __PYX_ERR(5, 7480, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevResource",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevResource),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevResource) __PYX_ERR(5, 7508, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUeglFrame_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame_v1) __PYX_ERR(5, 7536, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUeglFrame",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUeglFrame),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUeglFrame) __PYX_ERR(5, 7572, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_cuuint32_t = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "cuuint32_t",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_cuuint32_t),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_cuuint32_t) __PYX_ERR(5, 7608, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_cuuint64_t = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "cuuint64_t",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_cuuint64_t),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_cuuint64_t) __PYX_ERR(5, 7620, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr_v2 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdeviceptr_v2",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr_v2),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr_v2),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr_v2), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdeviceptr_v2),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdeviceptr_v2) __PYX_ERR(5, 7632, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevice_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUdevice_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUdevice_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUdevice_v1) __PYX_ERR(5, 7646, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtexObject_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUtexObject_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUtexObject_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUtexObject_v1) __PYX_ERR(5, 7660, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUsurfObject_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUsurfObject_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUsurfObject_v1) __PYX_ERR(5, 7674, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1 = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUmemGenericAllocationHandle_v1",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUmemGenericAllocationHandle_v1) __PYX_ERR(5, 7688, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlogIterator = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "CUlogIterator",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogIterator), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogIterator),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogIterator), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogIterator),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_CUlogIterator), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_CUlogIterator),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_CUlogIterator) __PYX_ERR(5, 7700, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_GLenum = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "GLenum",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_GLenum), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_GLenum),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_GLenum), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_GLenum),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_GLenum), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_GLenum),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_GLenum) __PYX_ERR(5, 7712, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_GLuint = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "GLuint",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_GLuint), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_GLuint),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_GLuint), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_GLuint),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_GLuint), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_GLuint),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_GLuint) __PYX_ERR(5, 7724, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_EGLint = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "EGLint",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLint), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLint),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLint), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLint),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_EGLint), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_EGLint),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_EGLint) __PYX_ERR(5, 7736, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_VdpDevice = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "VdpDevice",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpDevice), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpDevice),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpDevice), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpDevice),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpDevice), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpDevice),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_VdpDevice) __PYX_ERR(5, 7748, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_VdpGetProcAddress = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "VdpGetProcAddress",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpGetProcAddress), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpGetProcAddress),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpGetProcAddress), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpGetProcAddress),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpGetProcAddress), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpGetProcAddress),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_VdpGetProcAddress) __PYX_ERR(5, 7760, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_VdpVideoSurface = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "VdpVideoSurface",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpVideoSurface), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpVideoSurface),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpVideoSurface), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpVideoSurface),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpVideoSurface), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpVideoSurface),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_VdpVideoSurface) __PYX_ERR(5, 7772, __pyx_L1_error)
  __pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_VdpOutputSurface = __Pyx_ImportType_3_2_2(__pyx_t_1, "cuda.bindings.driver", "VdpOutputSurface",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpOutputSurface), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpOutputSurface),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpOutputSurface), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpOutputSurface),
  #else
  sizeof(struct __pyx_obj_4cuda_8bindings_6driver_VdpOutputSurface), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(struct __pyx_obj_4cuda_8bindings_6driver_VdpOutputSurface),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_4cuda_8bindings_6driver_VdpOutputSurface) __PYX_ERR(5, 7784, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_2_2(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
  sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(PyTypeObject),
  #elif CYTHON_COMPILING_IN_LIMITED_API
  0, 0,
  #else
  sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_2_2(PyHeapTypeObject),
  #endif
  __Pyx_ImportType_CheckSize_Warn_3_2_2); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(6, 9, __pyx_L1_error)
  __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_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);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  {
    __pyx_t_1 = PyImport_ImportModule("cuda.bindings.cyruntime"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_char_const_cudaError_t_cudaError);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 20388;
    void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetErrorName, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetErrorString, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedEglFrame, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerDisconnect, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerDisconnect, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerConnect, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerConnect, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerConnectWithFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerReturnFrame, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamProducerPresentFrame, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerAcquireFrame, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEGLStreamConsumerReleaseFrame, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetPCIBusId, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDriverEntryPoint, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDriverEntryPointByVersion, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetPlane, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsSubResourceGetMappedArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetMipmappedArrayLevel, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc3DArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFreeArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyArrayToArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DArrayToArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyToArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyToArrayAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DToArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DToArrayAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDevSmResourceSplitByCount, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDevSmResourceSplit, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDevResourceGenerateDesc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreateFromEGLSync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcOpenEventHandle, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventCreateWithFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventDestroy, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventQuery, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventSynchronize, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventRecord, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventRecordWithFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGreenCtxCreate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetExecutionCtx, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxDestroy, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxSynchronize, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetDevResource, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxRecordEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxWaitEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetId, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaImportExternalMemory, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyExternalMemory, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaImportExternalSemaphore, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaSignalExternalSemaphoresAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaWaitExternalSemaphoresAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyExternalSemaphore, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphConditionalHandleCreate_v2, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphConditionalHandleCreate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiateWithParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphInstantiateWithFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecDestroy, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecEventRecordNodeSetEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecEventWaitNodeSetEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecChildGraphNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecExternalSemaphoresSignalNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecExternalSemaphoresWaitNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecHostNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecKernelNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemcpyNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemsetNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetEnabled, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeSetEnabled, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecMemcpyNodeSetParams1D, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecUpdate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphLaunch, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphUpload, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecGetFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExecGetId, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeFindInClone, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEmptyNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEventRecordNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddEventWaitNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddChildGraphNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddExternalSemaphoresSignalNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddExternalSemaphoresWaitNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddHostNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddKernelNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemAllocNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemcpyNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemsetNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemFreeNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddMemcpyNode1D, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDestroyNode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeGetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeSetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventRecordNodeGetEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventWaitNodeGetEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventRecordNodeSetEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphEventWaitNodeSetEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetDependencies, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetDependentNodes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeCopyAttributes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphChildGraphNodeGetGraph, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetContainingGraph, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetType, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresSignalNodeGetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresSignalNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresWaitNodeGetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphExternalSemaphoresWaitNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphHostNodeGetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphHostNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeGetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphKernelNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemAllocNodeGetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeGetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemsetNodeGetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemsetNodeSetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetToolsId, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphNodeGetLocalId, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemFreeNodeGetParams, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphMemcpyNodeSetParams1D, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphClone, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphCreate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDestroy, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphDebugDotPrint, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetEdges, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetNodes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetRootNodes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphAddDependencies, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphRemoveDependencies, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphReleaseUserObject, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphRetainUserObject, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphGetId, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsUnregisterResource, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceSetMapFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcGetEventHandle, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcGetMemHandle, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetKernel, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryEnumerateKernels, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetKernel, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaKernelSetAttributeForDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryLoadFromFile, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryLoadData, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryUnload, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsDumpToMemory, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsDumpToFile, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsCurrent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsUnregisterCallback, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLogsRegisterCallback, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetDefaultMemPool, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetMemPool, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetDefaultMemPool, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetMemPool, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolCreate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolImportFromShareableHandle, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolDestroy, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolGetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolSetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolTrimTo, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolSetAccess, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExternalMemoryGetMappedMipmappedArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedMipmappedArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocMipmappedArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFreeMipmappedArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxStreamCreate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreateWithFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCreateWithPriority, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamDestroy, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamQuery, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamSynchronize, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamSetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetDevResource, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamWaitEvent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamUpdateCaptureDependencies, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamEndCapture, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamBeginCaptureToGraph, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLaunchHostFunc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamAddCallback, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamCopyAttributes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamBeginCapture, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamIsCapturing, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetCaptureInfo, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetPriority, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetId, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamGetFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaStreamAttachMemAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaCreateSurfaceObject, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDestroySurfaceObject, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaCreateTextureObject, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDestroyTextureObject, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectCreate, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectRelease, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaUserObjectRetain, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceFlushGPUDirectRDMAWrites, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetCacheConfig, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetCacheConfig, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetLimit, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolGetAccess, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetSharedMemConfig, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetSharedMemConfig, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaThreadExchangeStreamCaptureMode, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaEventElapsedTime, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDriverGetVersion, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceCount, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaRuntimeGetVersion, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_getLocalRuntimeVersion, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaVDPAUGetDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetByPCIBusId, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExecutionCtxGetDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetP2PAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetStreamPriorityRange, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceCanAccessPeer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaChooseDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyMaxActiveBlocksPerMultiprocessor, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceDisablePeerAccess, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGraphMemTrim, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaSetDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaVDPAUSetVDPAUDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceRegisterAsyncNotification, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceUnregisterAsyncNotification, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetDevResource, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsMapResources, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsUnmapResources, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetMemPool, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetGraphMemAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSetGraphMemAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceEnablePeerAccess, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaInitDevice, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetLimit, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemGetInfo, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetTexture1DLinearMaxWidth, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaOccupancyAvailableDynamicSMemPerBlock, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DBatchAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetMemoryRequirements, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMipmappedArrayGetMemoryRequirements, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetSparseProperties, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMipmappedArrayGetSparseProperties, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetChannelDesc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaArrayGetInfo, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceProperties, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFuncGetAttributes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsEGLRegisterImage, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsGLRegisterImage, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsGLRegisterBuffer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsVDPAURegisterOutputSurface, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsVDPAURegisterVideoSurface, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemSetMemPool, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolExportPointer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3D, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DPeer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy3DPeerAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc3D, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset3D, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset3DAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaPointerGetAttributes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetSurfaceObjectResourceDesc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectResourceDesc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectResourceViewDesc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetTextureObjectTextureDesc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetDeviceFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetKernelCount, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetHostAtomicCapabilities, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetP2PAtomicCapabilities, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGLGetDevices, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaHostGetFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaSetDeviceFlags, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFree, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFreeHost, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaHostUnregister, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcCloseMemHandle, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaExternalMemoryGetMappedBuffer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaIpcOpenMemHandle, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetUnifiedFunction, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolImportPointer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGraphicsResourceGetMappedPointer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetGlobal, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaLibraryGetManaged, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemRangeGetAttributes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocPitch, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemDiscardAndPrefetchBatchAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPrefetchBatchAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemDiscardBatchAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMalloc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocHost, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocFromPoolAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaHostAlloc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMallocManaged, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaHostGetDevicePointer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyFromArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyFromArrayAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPoolExportToShareableHandle, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFreeAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceGetNvSciSyncAttributes, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemsetAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyPeer, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyPeerAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DFromArray, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DFromArrayAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemRangeGetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset2D, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemset2DAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaHostRegister, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2D, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy2DAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpy, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetExportTable, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemcpyBatchAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetAttribute, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetCacheConfig, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaFuncSetSharedMemConfig, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemAdvise, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaMemPrefetchAsync, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaCtxResetPersistingL2Cache, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceReset, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaDeviceSynchronize, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaGetLastError, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaPeekAtLastError, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaProfilerStart, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaProfilerStop, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_cudaCreateChannelDesc, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_make_cudaExtent, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_make_cudaPitchedPtr, (void (**)(void))&__pyx_f_4cuda_8bindings_9cyruntime_make_cudaPos, (void (**)(void)) NULL};
    void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportFunction_3_2_2(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_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;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_runtime(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_runtime},
  #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,
      "runtime",
      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_runtime(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_runtime(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_runtime(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;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  size_t __pyx_t_21;
  size_t __pyx_t_22;
  int __pyx_t_23;
  int __pyx_t_24;
  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 'runtime' 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 "runtime" 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_runtime", 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__runtime) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name_3, __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.runtime")) {
      if (unlikely((PyDict_SetItemString(modules, "cuda.bindings.runtime", __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);
  (void)__Pyx_modinit_function_export_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_type_init_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_type_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Execution code ---*/

  /* "cuda/bindings/runtime.pyx":5
 * 
 * # This code was automatically generated with version 13.1.0. Do not modify it directly.
 * from typing import Any, Optional             # <<<<<<<<<<<<<<
 * from enum import IntEnum
 * import cython
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Any,__pyx_mstate_global->__pyx_n_u_Optional};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_typing, __pyx_imported_names, 2, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Any,__pyx_mstate_global->__pyx_n_u_Optional};
    for (__pyx_t_3=0; __pyx_t_3 < 2; __pyx_t_3++) {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 5, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":6
 * # This code was automatically generated with version 13.1.0. Do not modify it directly.
 * from typing import Any, Optional
 * from enum import IntEnum             # <<<<<<<<<<<<<<
 * import cython
 * import ctypes
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_IntEnum};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_enum, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_IntEnum};
    __pyx_t_3 = 0; {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 6, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":8
 * from enum import IntEnum
 * import cython
 * import ctypes             # <<<<<<<<<<<<<<
 * from libc.stdlib cimport calloc, malloc, free
 * from libc cimport string
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_ctypes_2, 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_ctypes_2, __pyx_t_2) < (0)) __PYX_ERR(0, 8, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":17
 * from cpython.buffer cimport PyObject_CheckBuffer, PyObject_GetBuffer, PyBuffer_Release, PyBUF_SIMPLE, PyBUF_ANY_CONTIGUOUS
 * from cpython.bytes cimport PyBytes_FromStringAndSize
 * import cuda.bindings.driver             # <<<<<<<<<<<<<<
 * from libcpp.map cimport map
 * 
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_cuda_bindings_driver, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __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_cuda, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":20
 * from libcpp.map cimport map
 * 
 * import cuda.bindings.driver as _driver             # <<<<<<<<<<<<<<
 * _driver = _driver.__dict__
 * include "_lib/utils.pxi"
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_cuda_bindings_driver, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error)
  __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_bindings);
  Py_DECREF(__pyx_t_1);
  if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_driver_2);
  Py_DECREF(__pyx_t_1);
  if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_5;
  __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_driver, __pyx_t_2) < (0)) __PYX_ERR(0, 20, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cuda/bindings/runtime.pyx":21
 * 
 * import cuda.bindings.driver as _driver
 * _driver = _driver.__dict__             # <<<<<<<<<<<<<<
 * include "_lib/utils.pxi"
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_driver); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_dict); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_driver, __pyx_t_4) < (0)) __PYX_ERR(0, 21, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":9
 * from libc.stddef cimport wchar_t
 * from libc.string cimport memcpy
 * from enum import Enum as _Enum             # <<<<<<<<<<<<<<
 * import ctypes as _ctypes
 * cimport cuda.bindings.cydriver as cydriver
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Enum_2};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_enum, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 9, __pyx_L1_error)
  }
  __pyx_t_4 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_4);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Enum_2};
    __pyx_t_3 = 0; {
      __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_4, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 9, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      switch (__pyx_t_3) {
        case 0:
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Enum, __pyx_t_2) < (0)) __PYX_ERR(1, 9, __pyx_L1_error)
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":10
 * from libc.string cimport memcpy
 * from enum import Enum as _Enum
 * import ctypes as _ctypes             # <<<<<<<<<<<<<<
 * cimport cuda.bindings.cydriver as cydriver
 * cimport cuda.bindings._lib.param_packer as param_packer
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_ctypes_2, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 10, __pyx_L1_error)
  __pyx_t_4 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ctypes, __pyx_t_4) < (0)) __PYX_ERR(1, 10, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":22
 * cdef class _HelperKernelParams:
 *     supported_types = { # excluding void_p and None, which are handled specially
 *         _ctypes.c_bool,             # <<<<<<<<<<<<<<
 *         _ctypes.c_char,
 *         _ctypes.c_wchar,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_bool); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":23
 *     supported_types = { # excluding void_p and None, which are handled specially
 *         _ctypes.c_bool,
 *         _ctypes.c_char,             # <<<<<<<<<<<<<<
 *         _ctypes.c_wchar,
 *         _ctypes.c_byte,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_char); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":24
 *         _ctypes.c_bool,
 *         _ctypes.c_char,
 *         _ctypes.c_wchar,             # <<<<<<<<<<<<<<
 *         _ctypes.c_byte,
 *         _ctypes.c_ubyte,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_wchar); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":25
 *         _ctypes.c_char,
 *         _ctypes.c_wchar,
 *         _ctypes.c_byte,             # <<<<<<<<<<<<<<
 *         _ctypes.c_ubyte,
 *         _ctypes.c_short,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 25, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_byte); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 25, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":26
 *         _ctypes.c_wchar,
 *         _ctypes.c_byte,
 *         _ctypes.c_ubyte,             # <<<<<<<<<<<<<<
 *         _ctypes.c_short,
 *         _ctypes.c_ushort,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_ubyte); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":27
 *         _ctypes.c_byte,
 *         _ctypes.c_ubyte,
 *         _ctypes.c_short,             # <<<<<<<<<<<<<<
 *         _ctypes.c_ushort,
 *         _ctypes.c_int,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_short); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":28
 *         _ctypes.c_ubyte,
 *         _ctypes.c_short,
 *         _ctypes.c_ushort,             # <<<<<<<<<<<<<<
 *         _ctypes.c_int,
 *         _ctypes.c_uint,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_ushort); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":29
 *         _ctypes.c_short,
 *         _ctypes.c_ushort,
 *         _ctypes.c_int,             # <<<<<<<<<<<<<<
 *         _ctypes.c_uint,
 *         _ctypes.c_long,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_int); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":30
 *         _ctypes.c_ushort,
 *         _ctypes.c_int,
 *         _ctypes.c_uint,             # <<<<<<<<<<<<<<
 *         _ctypes.c_long,
 *         _ctypes.c_ulong,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_uint); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":31
 *         _ctypes.c_int,
 *         _ctypes.c_uint,
 *         _ctypes.c_long,             # <<<<<<<<<<<<<<
 *         _ctypes.c_ulong,
 *         _ctypes.c_longlong,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_long); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_14);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":32
 *         _ctypes.c_uint,
 *         _ctypes.c_long,
 *         _ctypes.c_ulong,             # <<<<<<<<<<<<<<
 *         _ctypes.c_longlong,
 *         _ctypes.c_ulonglong,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_ulong); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_15);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":33
 *         _ctypes.c_long,
 *         _ctypes.c_ulong,
 *         _ctypes.c_longlong,             # <<<<<<<<<<<<<<
 *         _ctypes.c_ulonglong,
 *         _ctypes.c_size_t,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_longlong); if (unlikely(!__pyx_t_16)) __PYX_ERR(1, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":34
 *         _ctypes.c_ulong,
 *         _ctypes.c_longlong,
 *         _ctypes.c_ulonglong,             # <<<<<<<<<<<<<<
 *         _ctypes.c_size_t,
 *         _ctypes.c_float,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_ulonglong); if (unlikely(!__pyx_t_17)) __PYX_ERR(1, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":35
 *         _ctypes.c_longlong,
 *         _ctypes.c_ulonglong,
 *         _ctypes.c_size_t,             # <<<<<<<<<<<<<<
 *         _ctypes.c_float,
 *         _ctypes.c_double
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_size_t); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":36
 *         _ctypes.c_ulonglong,
 *         _ctypes.c_size_t,
 *         _ctypes.c_float,             # <<<<<<<<<<<<<<
 *         _ctypes.c_double
 *     }
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_float); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":37
 *         _ctypes.c_size_t,
 *         _ctypes.c_float,
 *         _ctypes.c_double             # <<<<<<<<<<<<<<
 *     }
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_c_double); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PySet_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PySet_Add(__pyx_t_4, __pyx_t_2) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_6) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_7) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_8) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_9) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_10) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_11) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_12) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_13) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_14) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_15) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_16) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_17) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_18) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_19) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PySet_Add(__pyx_t_4, __pyx_t_20) < (0)) __PYX_ERR(1, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams, __pyx_mstate_global->__pyx_n_u_supported_types, __pyx_t_4) < (0)) __PYX_ERR(1, 21, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":40
 *     }
 * 
 *     max_param_size = max(_ctypes.sizeof(max(_HelperKernelParams.supported_types, key=lambda t:_ctypes.sizeof(t))), sizeof(void_ptr))             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self, kernelParams):
*/
  __pyx_t_21 = (sizeof(__pyx_t_4cuda_8bindings_7runtime_void_ptr));
  __pyx_t_20 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_ctypes); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_sizeof); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_17 = NULL;
  __pyx_t_16 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams), __pyx_mstate_global->__pyx_n_u_supported_types); if (unlikely(!__pyx_t_16)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19_HelperKernelParams_4lambda, 0, __pyx_mstate_global->__pyx_n_u_HelperKernelParams_lambda, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[164])); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_15);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_15);
  #endif
  __pyx_t_22 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_17, __pyx_t_16};
    __pyx_t_14 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 40, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_key_2, __pyx_t_15, __pyx_t_14, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 40, __pyx_L1_error)
    __pyx_t_19 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_builtin_max, __pyx_callargs+__pyx_t_22, (2-__pyx_t_22) | (__pyx_t_22*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_14);
    __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 40, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_19);
  }
  __pyx_t_22 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_20, __pyx_t_19};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_18, __pyx_callargs+__pyx_t_22, (2-__pyx_t_22) | (__pyx_t_22*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0;
    __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
    __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 40, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_19 = __Pyx_PyLong_FromSize_t(__pyx_t_21); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyObject_RichCompare(__pyx_t_19, __pyx_t_4, Py_GT); __Pyx_XGOTREF(__pyx_t_20); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_23 = __Pyx_PyObject_IsTrue(__pyx_t_20); if (unlikely((__pyx_t_23 < 0))) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (__pyx_t_23) {
    __pyx_t_20 = __Pyx_PyLong_FromSize_t(__pyx_t_21); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 40, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_20);
    __pyx_t_18 = __pyx_t_20;
    __pyx_t_20 = 0;
  } else {
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_18 = __pyx_t_4;
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_t_18;
  __Pyx_INCREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperKernelParams, __pyx_mstate_global->__pyx_n_u_max_param_size, __pyx_t_4) < (0)) __PYX_ERR(1, 40, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19_HelperKernelParams_6__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperKernelParams___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[165])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19_HelperKernelParams_8__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperKernelParams___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[166])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperInputVoidPtr___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[167])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19_HelperInputVoidPtr_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperInputVoidPtr___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[168])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":186
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_5pyObj, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmemPool_attribute_pyObj, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[169])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 186, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemPool_attribute, __pyx_mstate_global->__pyx_n_u_pyObj, __pyx_t_4) < (0)) __PYX_ERR(1, 186, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmemPool_attribute___red, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[170])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUmemPool_attribute_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmemPool_attribute___set, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[171])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":223
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,
 *                           cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_5pyObj, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmem_range_attribute_pyO, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[172])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmem_range_attribute, __pyx_mstate_global->__pyx_n_u_pyObj, __pyx_t_4) < (0)) __PYX_ERR(1, 223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmem_range_attribute___r, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[173])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28_HelperCUmem_range_attribute_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmem_range_attribute___s, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[174])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":294
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_5pyObj, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUpointer_attribute_pyObj, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[175])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUpointer_attribute, __pyx_mstate_global->__pyx_n_u_pyObj, __pyx_t_4) < (0)) __PYX_ERR(1, 294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUpointer_attribute___red, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[176])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26_HelperCUpointer_attribute_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUpointer_attribute___set, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[177])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":348
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_5pyObj, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUgraphMem_attribute_pyOb, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[178])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUgraphMem_attribute, __pyx_mstate_global->__pyx_n_u_pyObj, __pyx_t_4) < (0)) __PYX_ERR(1, 348, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUgraphMem_attribute___re, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[179])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_27_HelperCUgraphMem_attribute_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUgraphMem_attribute___se, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[180])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19_HelperCUjit_option_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUjit_option___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[181])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19_HelperCUjit_option_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUjit_option___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[182])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20_HelperCudaJitOption_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCudaJitOption___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[183])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20_HelperCudaJitOption_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCudaJitOption___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[184])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUlibraryOption___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[185])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22_HelperCUlibraryOption_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUlibraryOption___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[186])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCudaLibraryOption___reduc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[187])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24_HelperCudaLibraryOption_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCudaLibraryOption___setst, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[188])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":528
 *         return <void_ptr>self._cptr
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         if False:
 *             pass
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_5pyObj, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmemAllocationHandleType_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[189])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUmemAllocationHandleType, __pyx_mstate_global->__pyx_n_u_pyObj, __pyx_t_4) < (0)) __PYX_ERR(1, 528, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmemAllocationHandleType_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[190])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_32_HelperCUmemAllocationHandleType_9__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUmemAllocationHandleType_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[191])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_5__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_InputVoidPtrPtrHelper___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[192])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22_InputVoidPtrPtrHelper_7__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_InputVoidPtrPtrHelper___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[193])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":590
 *         return <void_ptr>self._cptr
 * 
 *     def size(self):             # <<<<<<<<<<<<<<
 *         return self._size
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_5size, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUcoredumpSettings_size, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[194])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings, __pyx_mstate_global->__pyx_n_u_size_2, __pyx_t_4) < (0)) __PYX_ERR(1, 590, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/_lib/utils.pxi":593
 *         return self._size
 * 
 *     def pyObj(self):             # <<<<<<<<<<<<<<
 *         assert(self._is_getter == True)
 *         if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_7pyObj, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUcoredumpSettings_pyObj, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[195])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime__HelperCUcoredumpSettings, __pyx_mstate_global->__pyx_n_u_pyObj, __pyx_t_4) < (0)) __PYX_ERR(1, 593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_9__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUcoredumpSettings___redu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[196])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25_HelperCUcoredumpSettings_11__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_HelperCUcoredumpSettings___sets, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[197])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":49
 * 
 * #: Default page-locked allocation flag
 * cudaHostAllocDefault = cyruntime.cudaHostAllocDefault             # <<<<<<<<<<<<<<
 * 
 * #: Pinned memory accessible by all CUDA contexts
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostAllocDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostAllocDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":52
 * 
 * #: Pinned memory accessible by all CUDA contexts
 * cudaHostAllocPortable = cyruntime.cudaHostAllocPortable             # <<<<<<<<<<<<<<
 * 
 * #: Map allocation into device space
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostAllocPortable); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 52, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostAllocPortable, __pyx_t_4) < (0)) __PYX_ERR(0, 52, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":55
 * 
 * #: Map allocation into device space
 * cudaHostAllocMapped = cyruntime.cudaHostAllocMapped             # <<<<<<<<<<<<<<
 * 
 * #: Write-combined memory
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostAllocMapped); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostAllocMapped, __pyx_t_4) < (0)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":58
 * 
 * #: Write-combined memory
 * cudaHostAllocWriteCombined = cyruntime.cudaHostAllocWriteCombined             # <<<<<<<<<<<<<<
 * 
 * #: Default host memory registration flag
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostAllocWriteCombined); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostAllocWriteCombined, __pyx_t_4) < (0)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":61
 * 
 * #: Default host memory registration flag
 * cudaHostRegisterDefault = cyruntime.cudaHostRegisterDefault             # <<<<<<<<<<<<<<
 * 
 * #: Pinned memory accessible by all CUDA contexts
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostRegisterDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":64
 * 
 * #: Pinned memory accessible by all CUDA contexts
 * cudaHostRegisterPortable = cyruntime.cudaHostRegisterPortable             # <<<<<<<<<<<<<<
 * 
 * #: Map registered memory into device space
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterPortable); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostRegisterPortable, __pyx_t_4) < (0)) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":67
 * 
 * #: Map registered memory into device space
 * cudaHostRegisterMapped = cyruntime.cudaHostRegisterMapped             # <<<<<<<<<<<<<<
 * 
 * #: Memory-mapped I/O space
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterMapped); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostRegisterMapped, __pyx_t_4) < (0)) __PYX_ERR(0, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":70
 * 
 * #: Memory-mapped I/O space
 * cudaHostRegisterIoMemory = cyruntime.cudaHostRegisterIoMemory             # <<<<<<<<<<<<<<
 * 
 * #: Memory-mapped read-only
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterIoMemory); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostRegisterIoMemory, __pyx_t_4) < (0)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":73
 * 
 * #: Memory-mapped read-only
 * cudaHostRegisterReadOnly = cyruntime.cudaHostRegisterReadOnly             # <<<<<<<<<<<<<<
 * 
 * #: Default peer addressing enable flag
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaHostRegisterReadOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostRegisterReadOnly, __pyx_t_4) < (0)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":76
 * 
 * #: Default peer addressing enable flag
 * cudaPeerAccessDefault = cyruntime.cudaPeerAccessDefault             # <<<<<<<<<<<<<<
 * 
 * #: Default stream flag
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaPeerAccessDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaPeerAccessDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 76, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":79
 * 
 * #: Default stream flag
 * cudaStreamDefault = cyruntime.cudaStreamDefault             # <<<<<<<<<<<<<<
 * 
 * #: Stream does not synchronize with stream 0 (the NULL stream)
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 79, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":82
 * 
 * #: Stream does not synchronize with stream 0 (the NULL stream)
 * cudaStreamNonBlocking = cyruntime.cudaStreamNonBlocking             # <<<<<<<<<<<<<<
 * 
 * #: Legacy stream handle
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamNonBlocking); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamNonBlocking, __pyx_t_4) < (0)) __PYX_ERR(0, 82, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":90
 * #:
 * #: See details of the \link_sync_behavior
 * cudaStreamLegacy = cyruntime.cudaStreamLegacy             # <<<<<<<<<<<<<<
 * 
 * #: Per-thread stream handle
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamLegacy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamLegacy, __pyx_t_4) < (0)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":98
 * #:
 * #: See details of the \link_sync_behavior
 * cudaStreamPerThread = cyruntime.cudaStreamPerThread             # <<<<<<<<<<<<<<
 * 
 * #: Default event flag
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamPerThread); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamPerThread, __pyx_t_4) < (0)) __PYX_ERR(0, 98, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":101
 * 
 * #: Default event flag
 * cudaEventDefault = cyruntime.cudaEventDefault             # <<<<<<<<<<<<<<
 * 
 * #: Event uses blocking synchronization
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEventDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 101, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":104
 * 
 * #: Event uses blocking synchronization
 * cudaEventBlockingSync = cyruntime.cudaEventBlockingSync             # <<<<<<<<<<<<<<
 * 
 * #: Event will not record timing data
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEventBlockingSync); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventBlockingSync, __pyx_t_4) < (0)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":107
 * 
 * #: Event will not record timing data
 * cudaEventDisableTiming = cyruntime.cudaEventDisableTiming             # <<<<<<<<<<<<<<
 * 
 * #: Event is suitable for interprocess use. cudaEventDisableTiming must be
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEventDisableTiming); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventDisableTiming, __pyx_t_4) < (0)) __PYX_ERR(0, 107, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":111
 * #: Event is suitable for interprocess use. cudaEventDisableTiming must be
 * #: set
 * cudaEventInterprocess = cyruntime.cudaEventInterprocess             # <<<<<<<<<<<<<<
 * 
 * #: Default event record flag
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEventInterprocess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventInterprocess, __pyx_t_4) < (0)) __PYX_ERR(0, 111, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":114
 * 
 * #: Default event record flag
 * cudaEventRecordDefault = cyruntime.cudaEventRecordDefault             # <<<<<<<<<<<<<<
 * 
 * #: Event is captured in the graph as an external event node when performing
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEventRecordDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventRecordDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 114, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":118
 * #: Event is captured in the graph as an external event node when performing
 * #: stream capture
 * cudaEventRecordExternal = cyruntime.cudaEventRecordExternal             # <<<<<<<<<<<<<<
 * 
 * #: Default event wait flag
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEventRecordExternal); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventRecordExternal, __pyx_t_4) < (0)) __PYX_ERR(0, 118, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":121
 * 
 * #: Default event wait flag
 * cudaEventWaitDefault = cyruntime.cudaEventWaitDefault             # <<<<<<<<<<<<<<
 * 
 * #: Event is captured in the graph as an external event node when performing
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEventWaitDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventWaitDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":125
 * #: Event is captured in the graph as an external event node when performing
 * #: stream capture
 * cudaEventWaitExternal = cyruntime.cudaEventWaitExternal             # <<<<<<<<<<<<<<
 * 
 * #: Device flag - Automatic scheduling
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEventWaitExternal); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventWaitExternal, __pyx_t_4) < (0)) __PYX_ERR(0, 125, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":128
 * 
 * #: Device flag - Automatic scheduling
 * cudaDeviceScheduleAuto = cyruntime.cudaDeviceScheduleAuto             # <<<<<<<<<<<<<<
 * 
 * #: Device flag - Spin default scheduling
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleAuto); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceScheduleAuto, __pyx_t_4) < (0)) __PYX_ERR(0, 128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":131
 * 
 * #: Device flag - Spin default scheduling
 * cudaDeviceScheduleSpin = cyruntime.cudaDeviceScheduleSpin             # <<<<<<<<<<<<<<
 * 
 * #: Device flag - Yield default scheduling
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleSpin); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceScheduleSpin, __pyx_t_4) < (0)) __PYX_ERR(0, 131, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":134
 * 
 * #: Device flag - Yield default scheduling
 * cudaDeviceScheduleYield = cyruntime.cudaDeviceScheduleYield             # <<<<<<<<<<<<<<
 * 
 * #: Device flag - Use blocking synchronization
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleYield); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceScheduleYield, __pyx_t_4) < (0)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":137
 * 
 * #: Device flag - Use blocking synchronization
 * cudaDeviceScheduleBlockingSync = cyruntime.cudaDeviceScheduleBlockingSync             # <<<<<<<<<<<<<<
 * 
 * #: Device flag - Use blocking synchronization [Deprecated]
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleBlockingSync); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceScheduleBlockingSync, __pyx_t_4) < (0)) __PYX_ERR(0, 137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":140
 * 
 * #: Device flag - Use blocking synchronization [Deprecated]
 * cudaDeviceBlockingSync = cyruntime.cudaDeviceBlockingSync             # <<<<<<<<<<<<<<
 * 
 * #: Device schedule flags mask
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceBlockingSync); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceBlockingSync, __pyx_t_4) < (0)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":143
 * 
 * #: Device schedule flags mask
 * cudaDeviceScheduleMask = cyruntime.cudaDeviceScheduleMask             # <<<<<<<<<<<<<<
 * 
 * #: Device flag - Support mapped pinned allocations
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceScheduleMask); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceScheduleMask, __pyx_t_4) < (0)) __PYX_ERR(0, 143, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":146
 * 
 * #: Device flag - Support mapped pinned allocations
 * cudaDeviceMapHost = cyruntime.cudaDeviceMapHost             # <<<<<<<<<<<<<<
 * 
 * #: Device flag - Keep local memory allocation after launch
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceMapHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceMapHost, __pyx_t_4) < (0)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":149
 * 
 * #: Device flag - Keep local memory allocation after launch
 * cudaDeviceLmemResizeToMax = cyruntime.cudaDeviceLmemResizeToMax             # <<<<<<<<<<<<<<
 * 
 * #: Device flag - Ensure synchronous memory operations on this context will
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceLmemResizeToMax); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceLmemResizeToMax, __pyx_t_4) < (0)) __PYX_ERR(0, 149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":153
 * #: Device flag - Ensure synchronous memory operations on this context will
 * #: synchronize
 * cudaDeviceSyncMemops = cyruntime.cudaDeviceSyncMemops             # <<<<<<<<<<<<<<
 * 
 * #: Device flags mask
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceSyncMemops); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceSyncMemops, __pyx_t_4) < (0)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":156
 * 
 * #: Device flags mask
 * cudaDeviceMask = cyruntime.cudaDeviceMask             # <<<<<<<<<<<<<<
 * 
 * #: Default CUDA array allocation flag
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaDeviceMask); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceMask, __pyx_t_4) < (0)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":159
 * 
 * #: Default CUDA array allocation flag
 * cudaArrayDefault = cyruntime.cudaArrayDefault             # <<<<<<<<<<<<<<
 * 
 * #: Must be set in cudaMalloc3DArray to create a layered CUDA array
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArrayDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":162
 * 
 * #: Must be set in cudaMalloc3DArray to create a layered CUDA array
 * cudaArrayLayered = cyruntime.cudaArrayLayered             # <<<<<<<<<<<<<<
 * 
 * #: Must be set in cudaMallocArray or cudaMalloc3DArray in order to bind
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArrayLayered); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayLayered, __pyx_t_4) < (0)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":166
 * #: Must be set in cudaMallocArray or cudaMalloc3DArray in order to bind
 * #: surfaces to the CUDA array
 * cudaArraySurfaceLoadStore = cyruntime.cudaArraySurfaceLoadStore             # <<<<<<<<<<<<<<
 * 
 * #: Must be set in cudaMalloc3DArray to create a cubemap CUDA array
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArraySurfaceLoadStore); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArraySurfaceLoadStore, __pyx_t_4) < (0)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":169
 * 
 * #: Must be set in cudaMalloc3DArray to create a cubemap CUDA array
 * cudaArrayCubemap = cyruntime.cudaArrayCubemap             # <<<<<<<<<<<<<<
 * 
 * #: Must be set in cudaMallocArray or cudaMalloc3DArray in order to perform
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArrayCubemap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayCubemap, __pyx_t_4) < (0)) __PYX_ERR(0, 169, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":173
 * #: Must be set in cudaMallocArray or cudaMalloc3DArray in order to perform
 * #: texture gather operations on the CUDA array
 * cudaArrayTextureGather = cyruntime.cudaArrayTextureGather             # <<<<<<<<<<<<<<
 * 
 * #: Must be set in cudaExternalMemoryGetMappedMipmappedArray if the
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArrayTextureGather); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayTextureGather, __pyx_t_4) < (0)) __PYX_ERR(0, 173, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":177
 * #: Must be set in cudaExternalMemoryGetMappedMipmappedArray if the
 * #: mipmapped array is used as a color target in a graphics API
 * cudaArrayColorAttachment = cyruntime.cudaArrayColorAttachment             # <<<<<<<<<<<<<<
 * 
 * #: Must be set in cudaMallocArray, cudaMalloc3DArray or
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArrayColorAttachment); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayColorAttachment, __pyx_t_4) < (0)) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":182
 * #: cudaMallocMipmappedArray in order to create a sparse CUDA array or CUDA
 * #: mipmapped array
 * cudaArraySparse = cyruntime.cudaArraySparse             # <<<<<<<<<<<<<<
 * 
 * #: Must be set in cudaMallocArray, cudaMalloc3DArray or
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArraySparse); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArraySparse, __pyx_t_4) < (0)) __PYX_ERR(0, 182, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":187
 * #: cudaMallocMipmappedArray in order to create a deferred mapping CUDA
 * #: array or CUDA mipmapped array
 * cudaArrayDeferredMapping = cyruntime.cudaArrayDeferredMapping             # <<<<<<<<<<<<<<
 * 
 * #: Automatically enable peer access between remote devices as needed
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArrayDeferredMapping); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayDeferredMapping, __pyx_t_4) < (0)) __PYX_ERR(0, 187, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":190
 * 
 * #: Automatically enable peer access between remote devices as needed
 * cudaIpcMemLazyEnablePeerAccess = cyruntime.cudaIpcMemLazyEnablePeerAccess             # <<<<<<<<<<<<<<
 * 
 * #: Memory can be accessed by any stream on any device
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaIpcMemLazyEnablePeerAccess); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaIpcMemLazyEnablePeerAccess, __pyx_t_4) < (0)) __PYX_ERR(0, 190, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":193
 * 
 * #: Memory can be accessed by any stream on any device
 * cudaMemAttachGlobal = cyruntime.cudaMemAttachGlobal             # <<<<<<<<<<<<<<
 * 
 * #: Memory cannot be accessed by any stream on any device
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaMemAttachGlobal); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemAttachGlobal, __pyx_t_4) < (0)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":196
 * 
 * #: Memory cannot be accessed by any stream on any device
 * cudaMemAttachHost = cyruntime.cudaMemAttachHost             # <<<<<<<<<<<<<<
 * 
 * #: Memory can only be accessed by a single stream on the associated device
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaMemAttachHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemAttachHost, __pyx_t_4) < (0)) __PYX_ERR(0, 196, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":199
 * 
 * #: Memory can only be accessed by a single stream on the associated device
 * cudaMemAttachSingle = cyruntime.cudaMemAttachSingle             # <<<<<<<<<<<<<<
 * 
 * #: Default behavior
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaMemAttachSingle); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemAttachSingle, __pyx_t_4) < (0)) __PYX_ERR(0, 199, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":202
 * 
 * #: Default behavior
 * cudaOccupancyDefault = cyruntime.cudaOccupancyDefault             # <<<<<<<<<<<<<<
 * 
 * #: Assume global caching is enabled and cannot be automatically turned off
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaOccupancyDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaOccupancyDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 202, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":205
 * 
 * #: Assume global caching is enabled and cannot be automatically turned off
 * cudaOccupancyDisableCachingOverride = cyruntime.cudaOccupancyDisableCachingOverride             # <<<<<<<<<<<<<<
 * 
 * #: Device id that represents the CPU
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaOccupancyDisableCachingOverride); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaOccupancyDisableCachingOverr, __pyx_t_4) < (0)) __PYX_ERR(0, 205, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":208
 * 
 * #: Device id that represents the CPU
 * cudaCpuDeviceId = cyruntime.cudaCpuDeviceId             # <<<<<<<<<<<<<<
 * 
 * #: Device id that represents an invalid device
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaCpuDeviceId); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaCpuDeviceId, __pyx_t_4) < (0)) __PYX_ERR(0, 208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":211
 * 
 * #: Device id that represents an invalid device
 * cudaInvalidDeviceId = cyruntime.cudaInvalidDeviceId             # <<<<<<<<<<<<<<
 * 
 * #: Tell the CUDA runtime that DeviceFlags is being set in cudaInitDevice
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaInvalidDeviceId); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaInvalidDeviceId, __pyx_t_4) < (0)) __PYX_ERR(0, 211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":215
 * #: Tell the CUDA runtime that DeviceFlags is being set in cudaInitDevice
 * #: call
 * cudaInitDeviceFlagsAreValid = cyruntime.cudaInitDeviceFlagsAreValid             # <<<<<<<<<<<<<<
 * 
 * #: Indicates that the layered sparse CUDA array or CUDA mipmapped array has
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaInitDeviceFlagsAreValid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaInitDeviceFlagsAreValid, __pyx_t_4) < (0)) __PYX_ERR(0, 215, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":219
 * #: Indicates that the layered sparse CUDA array or CUDA mipmapped array has
 * #: a single mip tail region for all layers
 * cudaArraySparsePropertiesSingleMipTail = cyruntime.cudaArraySparsePropertiesSingleMipTail             # <<<<<<<<<<<<<<
 * 
 * #: This flag, if set, indicates that the memory will be used as a buffer
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaArraySparsePropertiesSingleMipTail); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArraySparsePropertiesSingleM, __pyx_t_4) < (0)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":223
 * #: This flag, if set, indicates that the memory will be used as a buffer
 * #: for hardware accelerated decompression.
 * cudaMemPoolCreateUsageHwDecompress = cyruntime.cudaMemPoolCreateUsageHwDecompress             # <<<<<<<<<<<<<<
 * 
 * #: CUDA IPC Handle Size
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaMemPoolCreateUsageHwDecompress); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolCreateUsageHwDecompre, __pyx_t_4) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":226
 * 
 * #: CUDA IPC Handle Size
 * CUDA_IPC_HANDLE_SIZE = cyruntime.CUDA_IPC_HANDLE_SIZE             # <<<<<<<<<<<<<<
 * 
 * #: Indicates that the external memory object is a dedicated resource
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_CUDA_IPC_HANDLE_SIZE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_CUDA_IPC_HANDLE_SIZE, __pyx_t_4) < (0)) __PYX_ERR(0, 226, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":229
 * 
 * #: Indicates that the external memory object is a dedicated resource
 * cudaExternalMemoryDedicated = cyruntime.cudaExternalMemoryDedicated             # <<<<<<<<<<<<<<
 * 
 * #: When the /p flags parameter of
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaExternalMemoryDedicated); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryDedicated, __pyx_t_4) < (0)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":239
 * #: performed by default to ensure data coherency with other importers of
 * #: the same NvSciBuf memory objects.
 * cudaExternalSemaphoreSignalSkipNvSciBufMemSync = cyruntime.cudaExternalSemaphoreSignalSkipNvSciBufMemSync             # <<<<<<<<<<<<<<
 * 
 * #: When the /p flags parameter of
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaExternalSemaphoreSignalSkipNvSciBufMemSync); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalSkipN, __pyx_t_4) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":249
 * #: performed by default to ensure data coherency with other importers of
 * #: the same NvSciBuf memory objects.
 * cudaExternalSemaphoreWaitSkipNvSciBufMemSync = cyruntime.cudaExternalSemaphoreWaitSkipNvSciBufMemSync             # <<<<<<<<<<<<<<
 * 
 * #: When /p flags of :py:obj:`~.cudaDeviceGetNvSciSyncAttributes` is set to
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaExternalSemaphoreWaitSkipNvSciBufMemSync); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitSkipNvS, __pyx_t_4) < (0)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":254
 * #: this, it indicates that application need signaler specific NvSciSyncAttr
 * #: to be filled by :py:obj:`~.cudaDeviceGetNvSciSyncAttributes`.
 * cudaNvSciSyncAttrSignal = cyruntime.cudaNvSciSyncAttrSignal             # <<<<<<<<<<<<<<
 * 
 * #: When /p flags of :py:obj:`~.cudaDeviceGetNvSciSyncAttributes` is set to
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaNvSciSyncAttrSignal); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaNvSciSyncAttrSignal, __pyx_t_4) < (0)) __PYX_ERR(0, 254, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":259
 * #: this, it indicates that application need waiter specific NvSciSyncAttr
 * #: to be filled by :py:obj:`~.cudaDeviceGetNvSciSyncAttributes`.
 * cudaNvSciSyncAttrWait = cyruntime.cudaNvSciSyncAttrWait             # <<<<<<<<<<<<<<
 * 
 * #: This port activates when the kernel has finished executing.
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaNvSciSyncAttrWait); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaNvSciSyncAttrWait, __pyx_t_4) < (0)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":262
 * 
 * #: This port activates when the kernel has finished executing.
 * cudaGraphKernelNodePortDefault = cyruntime.cudaGraphKernelNodePortDefault             # <<<<<<<<<<<<<<
 * 
 * #: This port activates when all blocks of the kernel have performed
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaGraphKernelNodePortDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 262, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodePortDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 262, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":268
 * #: used with edge type :py:obj:`~.cudaGraphDependencyTypeProgrammatic`. See
 * #: also :py:obj:`~.cudaLaunchAttributeProgrammaticEvent`.
 * cudaGraphKernelNodePortProgrammatic = cyruntime.cudaGraphKernelNodePortProgrammatic             # <<<<<<<<<<<<<<
 * 
 * #: This port activates when all blocks of the kernel have begun execution.
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaGraphKernelNodePortProgrammatic); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodePortProgramma, __pyx_t_4) < (0)) __PYX_ERR(0, 268, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":272
 * #: This port activates when all blocks of the kernel have begun execution.
 * #: See also :py:obj:`~.cudaLaunchAttributeLaunchCompletionEvent`.
 * cudaGraphKernelNodePortLaunchCompletion = cyruntime.cudaGraphKernelNodePortLaunchCompletion             # <<<<<<<<<<<<<<
 * 
 * cudaStreamAttributeAccessPolicyWindow = cyruntime.cudaStreamAttributeAccessPolicyWindow
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaGraphKernelNodePortLaunchCompletion); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodePortLaunchCom, __pyx_t_4) < (0)) __PYX_ERR(0, 272, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":274
 * cudaGraphKernelNodePortLaunchCompletion = cyruntime.cudaGraphKernelNodePortLaunchCompletion
 * 
 * cudaStreamAttributeAccessPolicyWindow = cyruntime.cudaStreamAttributeAccessPolicyWindow             # <<<<<<<<<<<<<<
 * 
 * cudaStreamAttributeSynchronizationPolicy = cyruntime.cudaStreamAttributeSynchronizationPolicy
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamAttributeAccessPolicyW, __pyx_t_4) < (0)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":276
 * cudaStreamAttributeAccessPolicyWindow = cyruntime.cudaStreamAttributeAccessPolicyWindow
 * 
 * cudaStreamAttributeSynchronizationPolicy = cyruntime.cudaStreamAttributeSynchronizationPolicy             # <<<<<<<<<<<<<<
 * 
 * cudaStreamAttributeMemSyncDomainMap = cyruntime.cudaStreamAttributeMemSyncDomainMap
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributeSynchronizationPolicy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamAttributeSynchronizati, __pyx_t_4) < (0)) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":278
 * cudaStreamAttributeSynchronizationPolicy = cyruntime.cudaStreamAttributeSynchronizationPolicy
 * 
 * cudaStreamAttributeMemSyncDomainMap = cyruntime.cudaStreamAttributeMemSyncDomainMap             # <<<<<<<<<<<<<<
 * 
 * cudaStreamAttributeMemSyncDomain = cyruntime.cudaStreamAttributeMemSyncDomain
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamAttributeMemSyncDomain, __pyx_t_4) < (0)) __PYX_ERR(0, 278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":280
 * cudaStreamAttributeMemSyncDomainMap = cyruntime.cudaStreamAttributeMemSyncDomainMap
 * 
 * cudaStreamAttributeMemSyncDomain = cyruntime.cudaStreamAttributeMemSyncDomain             # <<<<<<<<<<<<<<
 * 
 * cudaStreamAttributePriority = cyruntime.cudaStreamAttributePriority
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributeMemSyncDomain); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamAttributeMemSyncDomain_2, __pyx_t_4) < (0)) __PYX_ERR(0, 280, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":282
 * cudaStreamAttributeMemSyncDomain = cyruntime.cudaStreamAttributeMemSyncDomain
 * 
 * cudaStreamAttributePriority = cyruntime.cudaStreamAttributePriority             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributeAccessPolicyWindow = cyruntime.cudaKernelNodeAttributeAccessPolicyWindow
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaStreamAttributePriority); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamAttributePriority, __pyx_t_4) < (0)) __PYX_ERR(0, 282, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":284
 * cudaStreamAttributePriority = cyruntime.cudaStreamAttributePriority
 * 
 * cudaKernelNodeAttributeAccessPolicyWindow = cyruntime.cudaKernelNodeAttributeAccessPolicyWindow             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributeCooperative = cyruntime.cudaKernelNodeAttributeCooperative
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributeAccessPol, __pyx_t_4) < (0)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":286
 * cudaKernelNodeAttributeAccessPolicyWindow = cyruntime.cudaKernelNodeAttributeAccessPolicyWindow
 * 
 * cudaKernelNodeAttributeCooperative = cyruntime.cudaKernelNodeAttributeCooperative             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributePriority = cyruntime.cudaKernelNodeAttributePriority
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeCooperative); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributeCooperati, __pyx_t_4) < (0)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":288
 * cudaKernelNodeAttributeCooperative = cyruntime.cudaKernelNodeAttributeCooperative
 * 
 * cudaKernelNodeAttributePriority = cyruntime.cudaKernelNodeAttributePriority             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributeClusterDimension = cyruntime.cudaKernelNodeAttributeClusterDimension
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributePriority); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributePriority, __pyx_t_4) < (0)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":290
 * cudaKernelNodeAttributePriority = cyruntime.cudaKernelNodeAttributePriority
 * 
 * cudaKernelNodeAttributeClusterDimension = cyruntime.cudaKernelNodeAttributeClusterDimension             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributeClusterSchedulingPolicyPreference = cyruntime.cudaKernelNodeAttributeClusterSchedulingPolicyPreference
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeClusterDimension); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributeClusterDi, __pyx_t_4) < (0)) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":292
 * cudaKernelNodeAttributeClusterDimension = cyruntime.cudaKernelNodeAttributeClusterDimension
 * 
 * cudaKernelNodeAttributeClusterSchedulingPolicyPreference = cyruntime.cudaKernelNodeAttributeClusterSchedulingPolicyPreference             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributeMemSyncDomainMap = cyruntime.cudaKernelNodeAttributeMemSyncDomainMap
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributeClusterSc, __pyx_t_4) < (0)) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":294
 * cudaKernelNodeAttributeClusterSchedulingPolicyPreference = cyruntime.cudaKernelNodeAttributeClusterSchedulingPolicyPreference
 * 
 * cudaKernelNodeAttributeMemSyncDomainMap = cyruntime.cudaKernelNodeAttributeMemSyncDomainMap             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributeMemSyncDomain = cyruntime.cudaKernelNodeAttributeMemSyncDomain
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributeMemSyncDo, __pyx_t_4) < (0)) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":296
 * cudaKernelNodeAttributeMemSyncDomainMap = cyruntime.cudaKernelNodeAttributeMemSyncDomainMap
 * 
 * cudaKernelNodeAttributeMemSyncDomain = cyruntime.cudaKernelNodeAttributeMemSyncDomain             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributePreferredSharedMemoryCarveout = cyruntime.cudaKernelNodeAttributePreferredSharedMemoryCarveout
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeMemSyncDomain); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributeMemSyncDo_2, __pyx_t_4) < (0)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":298
 * cudaKernelNodeAttributeMemSyncDomain = cyruntime.cudaKernelNodeAttributeMemSyncDomain
 * 
 * cudaKernelNodeAttributePreferredSharedMemoryCarveout = cyruntime.cudaKernelNodeAttributePreferredSharedMemoryCarveout             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributeDeviceUpdatableKernelNode = cyruntime.cudaKernelNodeAttributeDeviceUpdatableKernelNode
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributePreferred, __pyx_t_4) < (0)) __PYX_ERR(0, 298, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":300
 * cudaKernelNodeAttributePreferredSharedMemoryCarveout = cyruntime.cudaKernelNodeAttributePreferredSharedMemoryCarveout
 * 
 * cudaKernelNodeAttributeDeviceUpdatableKernelNode = cyruntime.cudaKernelNodeAttributeDeviceUpdatableKernelNode             # <<<<<<<<<<<<<<
 * 
 * cudaKernelNodeAttributeNvlinkUtilCentricScheduling = cyruntime.cudaKernelNodeAttributeNvlinkUtilCentricScheduling
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeDeviceUpdatableKernelNode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributeDeviceUpd, __pyx_t_4) < (0)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":302
 * cudaKernelNodeAttributeDeviceUpdatableKernelNode = cyruntime.cudaKernelNodeAttributeDeviceUpdatableKernelNode
 * 
 * cudaKernelNodeAttributeNvlinkUtilCentricScheduling = cyruntime.cudaKernelNodeAttributeNvlinkUtilCentricScheduling             # <<<<<<<<<<<<<<
 * 
 * cudaSurfaceType1D = cyruntime.cudaSurfaceType1D
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaKernelNodeAttributeNvlinkUtilCentricScheduling); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttributeNvlinkUti, __pyx_t_4) < (0)) __PYX_ERR(0, 302, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":304
 * cudaKernelNodeAttributeNvlinkUtilCentricScheduling = cyruntime.cudaKernelNodeAttributeNvlinkUtilCentricScheduling
 * 
 * cudaSurfaceType1D = cyruntime.cudaSurfaceType1D             # <<<<<<<<<<<<<<
 * 
 * cudaSurfaceType2D = cyruntime.cudaSurfaceType2D
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType1D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceType1D, __pyx_t_4) < (0)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":306
 * cudaSurfaceType1D = cyruntime.cudaSurfaceType1D
 * 
 * cudaSurfaceType2D = cyruntime.cudaSurfaceType2D             # <<<<<<<<<<<<<<
 * 
 * cudaSurfaceType3D = cyruntime.cudaSurfaceType3D
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType2D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceType2D, __pyx_t_4) < (0)) __PYX_ERR(0, 306, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":308
 * cudaSurfaceType2D = cyruntime.cudaSurfaceType2D
 * 
 * cudaSurfaceType3D = cyruntime.cudaSurfaceType3D             # <<<<<<<<<<<<<<
 * 
 * cudaSurfaceTypeCubemap = cyruntime.cudaSurfaceTypeCubemap
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType3D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceType3D, __pyx_t_4) < (0)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":310
 * cudaSurfaceType3D = cyruntime.cudaSurfaceType3D
 * 
 * cudaSurfaceTypeCubemap = cyruntime.cudaSurfaceTypeCubemap             # <<<<<<<<<<<<<<
 * 
 * cudaSurfaceType1DLayered = cyruntime.cudaSurfaceType1DLayered
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceTypeCubemap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceTypeCubemap, __pyx_t_4) < (0)) __PYX_ERR(0, 310, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":312
 * cudaSurfaceTypeCubemap = cyruntime.cudaSurfaceTypeCubemap
 * 
 * cudaSurfaceType1DLayered = cyruntime.cudaSurfaceType1DLayered             # <<<<<<<<<<<<<<
 * 
 * cudaSurfaceType2DLayered = cyruntime.cudaSurfaceType2DLayered
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType1DLayered); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceType1DLayered, __pyx_t_4) < (0)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":314
 * cudaSurfaceType1DLayered = cyruntime.cudaSurfaceType1DLayered
 * 
 * cudaSurfaceType2DLayered = cyruntime.cudaSurfaceType2DLayered             # <<<<<<<<<<<<<<
 * 
 * cudaSurfaceTypeCubemapLayered = cyruntime.cudaSurfaceTypeCubemapLayered
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceType2DLayered); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceType2DLayered, __pyx_t_4) < (0)) __PYX_ERR(0, 314, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":316
 * cudaSurfaceType2DLayered = cyruntime.cudaSurfaceType2DLayered
 * 
 * cudaSurfaceTypeCubemapLayered = cyruntime.cudaSurfaceTypeCubemapLayered             # <<<<<<<<<<<<<<
 * 
 * cudaTextureType1D = cyruntime.cudaTextureType1D
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaSurfaceTypeCubemapLayered); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceTypeCubemapLayered, __pyx_t_4) < (0)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":318
 * cudaSurfaceTypeCubemapLayered = cyruntime.cudaSurfaceTypeCubemapLayered
 * 
 * cudaTextureType1D = cyruntime.cudaTextureType1D             # <<<<<<<<<<<<<<
 * 
 * cudaTextureType2D = cyruntime.cudaTextureType2D
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType1D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureType1D, __pyx_t_4) < (0)) __PYX_ERR(0, 318, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":320
 * cudaTextureType1D = cyruntime.cudaTextureType1D
 * 
 * cudaTextureType2D = cyruntime.cudaTextureType2D             # <<<<<<<<<<<<<<
 * 
 * cudaTextureType3D = cyruntime.cudaTextureType3D
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType2D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureType2D, __pyx_t_4) < (0)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":322
 * cudaTextureType2D = cyruntime.cudaTextureType2D
 * 
 * cudaTextureType3D = cyruntime.cudaTextureType3D             # <<<<<<<<<<<<<<
 * 
 * cudaTextureTypeCubemap = cyruntime.cudaTextureTypeCubemap
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType3D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureType3D, __pyx_t_4) < (0)) __PYX_ERR(0, 322, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":324
 * cudaTextureType3D = cyruntime.cudaTextureType3D
 * 
 * cudaTextureTypeCubemap = cyruntime.cudaTextureTypeCubemap             # <<<<<<<<<<<<<<
 * 
 * cudaTextureType1DLayered = cyruntime.cudaTextureType1DLayered
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaTextureTypeCubemap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureTypeCubemap, __pyx_t_4) < (0)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":326
 * cudaTextureTypeCubemap = cyruntime.cudaTextureTypeCubemap
 * 
 * cudaTextureType1DLayered = cyruntime.cudaTextureType1DLayered             # <<<<<<<<<<<<<<
 * 
 * cudaTextureType2DLayered = cyruntime.cudaTextureType2DLayered
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType1DLayered); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureType1DLayered, __pyx_t_4) < (0)) __PYX_ERR(0, 326, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":328
 * cudaTextureType1DLayered = cyruntime.cudaTextureType1DLayered
 * 
 * cudaTextureType2DLayered = cyruntime.cudaTextureType2DLayered             # <<<<<<<<<<<<<<
 * 
 * cudaTextureTypeCubemapLayered = cyruntime.cudaTextureTypeCubemapLayered
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaTextureType2DLayered); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureType2DLayered, __pyx_t_4) < (0)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":330
 * cudaTextureType2DLayered = cyruntime.cudaTextureType2DLayered
 * 
 * cudaTextureTypeCubemapLayered = cyruntime.cudaTextureTypeCubemapLayered             # <<<<<<<<<<<<<<
 * 
 * #: CUDA Runtime API Version
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaTextureTypeCubemapLayered); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureTypeCubemapLayered, __pyx_t_4) < (0)) __PYX_ERR(0, 330, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":333
 * 
 * #: CUDA Runtime API Version
 * CUDART_VERSION = cyruntime.CUDART_VERSION             # <<<<<<<<<<<<<<
 * 
 * __CUDART_API_VERSION = cyruntime.__CUDART_API_VERSION
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_CUDART_VERSION); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_CUDART_VERSION, __pyx_t_4) < (0)) __PYX_ERR(0, 333, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":335
 * CUDART_VERSION = cyruntime.CUDART_VERSION
 * 
 * __CUDART_API_VERSION = cyruntime.__CUDART_API_VERSION             # <<<<<<<<<<<<<<
 * 
 * #: Maximum number of planes per frame
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime___CUDART_API_VERSION); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_CUDART_API_VERSION, __pyx_t_4) < (0)) __PYX_ERR(0, 335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":338
 * 
 * #: Maximum number of planes per frame
 * CUDA_EGL_MAX_PLANES = cyruntime.CUDA_EGL_MAX_PLANES             # <<<<<<<<<<<<<<
 * 
 * class cudaError_t(IntEnum):
*/
  __pyx_t_4 = __Pyx_PyLong_From___pyx_anon_enum(__pyx_e_4cuda_8bindings_9cyruntime_CUDA_EGL_MAX_PLANES); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_CUDA_EGL_MAX_PLANES, __pyx_t_4) < (0)) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":340
 * CUDA_EGL_MAX_PLANES = cyruntime.CUDA_EGL_MAX_PLANES
 * 
 * class cudaError_t(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     impl_private CUDA error types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaError_t, __pyx_mstate_global->__pyx_n_u_cudaError_t, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_impl_private_CUDA_error_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 340, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":348
 *     #: this also means that the operation being queried is complete (see
 *     #: :py:obj:`~.cudaEventQuery()` and :py:obj:`~.cudaStreamQuery()`).
 *     cudaSuccess = cyruntime.cudaError.cudaSuccess             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that one or more of the parameters passed to the API
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaSuccess); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaSuccess, __pyx_t_18) < (0)) __PYX_ERR(0, 348, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":352
 *     #: This indicates that one or more of the parameters passed to the API
 *     #: call is not within an acceptable range of values.
 *     cudaErrorInvalidValue = cyruntime.cudaError.cudaErrorInvalidValue             # <<<<<<<<<<<<<<
 * 
 *     #: The API call failed because it was unable to allocate enough memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidValue); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidValue, __pyx_t_18) < (0)) __PYX_ERR(0, 352, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":356
 *     #: The API call failed because it was unable to allocate enough memory
 *     #: or other resources to perform the requested operation.
 *     cudaErrorMemoryAllocation = cyruntime.cudaError.cudaErrorMemoryAllocation             # <<<<<<<<<<<<<<
 * 
 *     #: The API call failed because the CUDA driver and runtime could not be
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMemoryAllocation); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMemoryAllocation, __pyx_t_18) < (0)) __PYX_ERR(0, 356, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":360
 *     #: The API call failed because the CUDA driver and runtime could not be
 *     #: initialized.
 *     cudaErrorInitializationError = cyruntime.cudaError.cudaErrorInitializationError             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a CUDA Runtime API call cannot be executed
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInitializationError); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInitializationError, __pyx_t_18) < (0)) __PYX_ERR(0, 360, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":365
 *     #: because it is being called during process shut down, at a point in
 *     #: time after CUDA driver has been unloaded.
 *     cudaErrorCudartUnloading = cyruntime.cudaError.cudaErrorCudartUnloading             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates profiler is not initialized for this run. This can
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorCudartUnloading); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorCudartUnloading, __pyx_t_18) < (0)) __PYX_ERR(0, 365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":370
 *     #: happen when the application is running with external profiling tools
 *     #: like visual profiler.
 *     cudaErrorProfilerDisabled = cyruntime.cudaError.cudaErrorProfilerDisabled             # <<<<<<<<<<<<<<
 * 
 *     #: [Deprecated]
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorProfilerDisabled); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorProfilerDisabled, __pyx_t_18) < (0)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":373
 * 
 *     #: [Deprecated]
 *     cudaErrorProfilerNotInitialized = cyruntime.cudaError.cudaErrorProfilerNotInitialized             # <<<<<<<<<<<<<<
 * 
 *     #: [Deprecated]
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorProfilerNotInitialized); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorProfilerNotInitialized, __pyx_t_18) < (0)) __PYX_ERR(0, 373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":376
 * 
 *     #: [Deprecated]
 *     cudaErrorProfilerAlreadyStarted = cyruntime.cudaError.cudaErrorProfilerAlreadyStarted             # <<<<<<<<<<<<<<
 * 
 *     #: [Deprecated]
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorProfilerAlreadyStarted); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorProfilerAlreadyStarted, __pyx_t_18) < (0)) __PYX_ERR(0, 376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":379
 * 
 *     #: [Deprecated]
 *     cudaErrorProfilerAlreadyStopped = cyruntime.cudaError.cudaErrorProfilerAlreadyStopped             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a kernel launch is requesting resources that can
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorProfilerAlreadyStopped); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorProfilerAlreadyStopped, __pyx_t_18) < (0)) __PYX_ERR(0, 379, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":386
 *     #: as will requesting too many threads or blocks. See
 *     #: :py:obj:`~.cudaDeviceProp` for more device limitations.
 *     cudaErrorInvalidConfiguration = cyruntime.cudaError.cudaErrorInvalidConfiguration             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that one or more of the pitch-related parameters
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidConfiguration); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidConfiguration, __pyx_t_18) < (0)) __PYX_ERR(0, 386, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":390
 *     #: This indicates that one or more of the pitch-related parameters
 *     #: passed to the API call is not within the acceptable range for pitch.
 *     cudaErrorInvalidPitchValue = cyruntime.cudaError.cudaErrorInvalidPitchValue             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the symbol name/identifier passed to the API
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidPitchValue); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidPitchValue, __pyx_t_18) < (0)) __PYX_ERR(0, 390, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":394
 *     #: This indicates that the symbol name/identifier passed to the API
 *     #: call is not a valid name or identifier.
 *     cudaErrorInvalidSymbol = cyruntime.cudaError.cudaErrorInvalidSymbol             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that at least one host pointer passed to the API call
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidSymbol); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidSymbol, __pyx_t_18) < (0)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":398
 *     #: This indicates that at least one host pointer passed to the API call
 *     #: is not a valid host pointer. [Deprecated]
 *     cudaErrorInvalidHostPointer = cyruntime.cudaError.cudaErrorInvalidHostPointer             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that at least one device pointer passed to the API
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidHostPointer); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidHostPointer, __pyx_t_18) < (0)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":402
 *     #: This indicates that at least one device pointer passed to the API
 *     #: call is not a valid device pointer. [Deprecated]
 *     cudaErrorInvalidDevicePointer = cyruntime.cudaError.cudaErrorInvalidDevicePointer             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the texture passed to the API call is not a
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidDevicePointer); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidDevicePointer, __pyx_t_18) < (0)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":406
 *     #: This indicates that the texture passed to the API call is not a
 *     #: valid texture.
 *     cudaErrorInvalidTexture = cyruntime.cudaError.cudaErrorInvalidTexture             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the texture binding is not valid. This occurs if
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidTexture); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidTexture, __pyx_t_18) < (0)) __PYX_ERR(0, 406, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":411
 *     #: you call :py:obj:`~.cudaGetTextureAlignmentOffset()` with an unbound
 *     #: texture.
 *     cudaErrorInvalidTextureBinding = cyruntime.cudaError.cudaErrorInvalidTextureBinding             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the channel descriptor passed to the API call is
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidTextureBinding); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidTextureBinding, __pyx_t_18) < (0)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":417
 *     #: specified by :py:obj:`~.cudaChannelFormatKind`, or if one of the
 *     #: dimensions is invalid.
 *     cudaErrorInvalidChannelDescriptor = cyruntime.cudaError.cudaErrorInvalidChannelDescriptor             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the direction of the memcpy passed to the API
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidChannelDescriptor); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidChannelDescripto, __pyx_t_18) < (0)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":422
 *     #: call is not one of the types specified by
 *     #: :py:obj:`~.cudaMemcpyKind`.
 *     cudaErrorInvalidMemcpyDirection = cyruntime.cudaError.cudaErrorInvalidMemcpyDirection             # <<<<<<<<<<<<<<
 * 
 *     #: This indicated that the user has taken the address of a constant
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidMemcpyDirection); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidMemcpyDirection, __pyx_t_18) < (0)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":427
 *     #: variable, which was forbidden up until the CUDA 3.1 release.
 *     #: [Deprecated]
 *     cudaErrorAddressOfConstant = cyruntime.cudaError.cudaErrorAddressOfConstant             # <<<<<<<<<<<<<<
 * 
 *     #: This indicated that a texture fetch was not able to be performed.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorAddressOfConstant); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorAddressOfConstant, __pyx_t_18) < (0)) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":432
 *     #: This was previously used for device emulation of texture operations.
 *     #: [Deprecated]
 *     cudaErrorTextureFetchFailed = cyruntime.cudaError.cudaErrorTextureFetchFailed             # <<<<<<<<<<<<<<
 * 
 *     #: This indicated that a texture was not bound for access. This was
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorTextureFetchFailed); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorTextureFetchFailed, __pyx_t_18) < (0)) __PYX_ERR(0, 432, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":437
 *     #: previously used for device emulation of texture operations.
 *     #: [Deprecated]
 *     cudaErrorTextureNotBound = cyruntime.cudaError.cudaErrorTextureNotBound             # <<<<<<<<<<<<<<
 * 
 *     #: This indicated that a synchronization operation had failed. This was
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorTextureNotBound); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorTextureNotBound, __pyx_t_18) < (0)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":441
 *     #: This indicated that a synchronization operation had failed. This was
 *     #: previously used for some device emulation functions. [Deprecated]
 *     cudaErrorSynchronizationError = cyruntime.cudaError.cudaErrorSynchronizationError             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a non-float texture was being accessed with
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSynchronizationError); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 441, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSynchronizationError, __pyx_t_18) < (0)) __PYX_ERR(0, 441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":445
 *     #: This indicates that a non-float texture was being accessed with
 *     #: linear filtering. This is not supported by CUDA.
 *     cudaErrorInvalidFilterSetting = cyruntime.cudaError.cudaErrorInvalidFilterSetting             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that an attempt was made to read an unsupported data
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidFilterSetting); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidFilterSetting, __pyx_t_18) < (0)) __PYX_ERR(0, 445, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":449
 *     #: This indicates that an attempt was made to read an unsupported data
 *     #: type as a normalized float. This is not supported by CUDA.
 *     cudaErrorInvalidNormSetting = cyruntime.cudaError.cudaErrorInvalidNormSetting             # <<<<<<<<<<<<<<
 * 
 *     #: Mixing of device and device emulation code was not allowed.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidNormSetting); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidNormSetting, __pyx_t_18) < (0)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":453
 *     #: Mixing of device and device emulation code was not allowed.
 *     #: [Deprecated]
 *     cudaErrorMixedDeviceExecution = cyruntime.cudaError.cudaErrorMixedDeviceExecution             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the API call is not yet implemented. Production
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMixedDeviceExecution); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMixedDeviceExecution, __pyx_t_18) < (0)) __PYX_ERR(0, 453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":457
 *     #: This indicates that the API call is not yet implemented. Production
 *     #: releases of CUDA will never return this error. [Deprecated]
 *     cudaErrorNotYetImplemented = cyruntime.cudaError.cudaErrorNotYetImplemented             # <<<<<<<<<<<<<<
 * 
 *     #: This indicated that an emulated device pointer exceeded the 32-bit
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNotYetImplemented); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNotYetImplemented, __pyx_t_18) < (0)) __PYX_ERR(0, 457, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":461
 *     #: This indicated that an emulated device pointer exceeded the 32-bit
 *     #: address range. [Deprecated]
 *     cudaErrorMemoryValueTooLarge = cyruntime.cudaError.cudaErrorMemoryValueTooLarge             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the CUDA driver that the application has loaded
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMemoryValueTooLarge); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMemoryValueTooLarge, __pyx_t_18) < (0)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":466
 *     #: is a stub library. Applications that run with the stub rather than a
 *     #: real driver loaded will result in CUDA API returning this error.
 *     cudaErrorStubLibrary = cyruntime.cudaError.cudaErrorStubLibrary             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the installed NVIDIA CUDA driver is older than
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStubLibrary); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStubLibrary, __pyx_t_18) < (0)) __PYX_ERR(0, 466, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":472
 *     #: Users should install an updated NVIDIA display driver to allow the
 *     #: application to run.
 *     cudaErrorInsufficientDriver = cyruntime.cudaError.cudaErrorInsufficientDriver             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the API call requires a newer CUDA driver than
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInsufficientDriver); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInsufficientDriver, __pyx_t_18) < (0)) __PYX_ERR(0, 472, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":477
 *     #: the one currently installed. Users should install an updated NVIDIA
 *     #: CUDA driver to allow the API call to succeed.
 *     cudaErrorCallRequiresNewerDriver = cyruntime.cudaError.cudaErrorCallRequiresNewerDriver             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the surface passed to the API call is not a
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorCallRequiresNewerDriver); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorCallRequiresNewerDriver, __pyx_t_18) < (0)) __PYX_ERR(0, 477, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":481
 *     #: This indicates that the surface passed to the API call is not a
 *     #: valid surface.
 *     cudaErrorInvalidSurface = cyruntime.cudaError.cudaErrorInvalidSurface             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that multiple global or constant variables (across
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidSurface); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 481, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidSurface, __pyx_t_18) < (0)) __PYX_ERR(0, 481, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":486
 *     #: separate CUDA source files in the application) share the same string
 *     #: name.
 *     cudaErrorDuplicateVariableName = cyruntime.cudaError.cudaErrorDuplicateVariableName             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that multiple textures (across separate CUDA source
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorDuplicateVariableName); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorDuplicateVariableName, __pyx_t_18) < (0)) __PYX_ERR(0, 486, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":490
 *     #: This indicates that multiple textures (across separate CUDA source
 *     #: files in the application) share the same string name.
 *     cudaErrorDuplicateTextureName = cyruntime.cudaError.cudaErrorDuplicateTextureName             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that multiple surfaces (across separate CUDA source
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorDuplicateTextureName); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorDuplicateTextureName, __pyx_t_18) < (0)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":494
 *     #: This indicates that multiple surfaces (across separate CUDA source
 *     #: files in the application) share the same string name.
 *     cudaErrorDuplicateSurfaceName = cyruntime.cudaError.cudaErrorDuplicateSurfaceName             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that all CUDA devices are busy or unavailable at the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorDuplicateSurfaceName); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorDuplicateSurfaceName, __pyx_t_18) < (0)) __PYX_ERR(0, 494, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":503
 *     #: starting. They can also be unavailable due to memory constraints on
 *     #: a device that already has active CUDA work being performed.
 *     cudaErrorDevicesUnavailable = cyruntime.cudaError.cudaErrorDevicesUnavailable             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the current context is not compatible with this
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorDevicesUnavailable); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorDevicesUnavailable, __pyx_t_18) < (0)) __PYX_ERR(0, 503, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":514
 *     #: context has been destroyed. Please see :py:obj:`~.Interactions`with
 *     #: the CUDA Driver API" for more information.
 *     cudaErrorIncompatibleDriverContext = cyruntime.cudaError.cudaErrorIncompatibleDriverContext             # <<<<<<<<<<<<<<
 * 
 *     #: The device function being invoked (usually via
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorIncompatibleDriverContext); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorIncompatibleDriverConte, __pyx_t_18) < (0)) __PYX_ERR(0, 514, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":519
 *     #: :py:obj:`~.cudaLaunchKernel()`) was not previously configured via
 *     #: the :py:obj:`~.cudaConfigureCall()` function.
 *     cudaErrorMissingConfiguration = cyruntime.cudaError.cudaErrorMissingConfiguration             # <<<<<<<<<<<<<<
 * 
 *     #: This indicated that a previous kernel launch failed. This was
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMissingConfiguration); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMissingConfiguration, __pyx_t_18) < (0)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":524
 *     #: previously used for device emulation of kernel launches.
 *     #: [Deprecated]
 *     cudaErrorPriorLaunchFailure = cyruntime.cudaError.cudaErrorPriorLaunchFailure             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that a device runtime grid launch did not occur
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorPriorLaunchFailure); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 524, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorPriorLaunchFailure, __pyx_t_18) < (0)) __PYX_ERR(0, 524, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":529
 *     #: because the depth of the child grid would exceed the maximum
 *     #: supported number of nested grid launches.
 *     cudaErrorLaunchMaxDepthExceeded = cyruntime.cudaError.cudaErrorLaunchMaxDepthExceeded             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that a grid launch did not occur because the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLaunchMaxDepthExceeded); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLaunchMaxDepthExceeded, __pyx_t_18) < (0)) __PYX_ERR(0, 529, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":535
 *     #: runtime. Kernels launched via the device runtime only support
 *     #: textures created with the Texture Object API's.
 *     cudaErrorLaunchFileScopedTex = cyruntime.cudaError.cudaErrorLaunchFileScopedTex             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that a grid launch did not occur because the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLaunchFileScopedTex); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLaunchFileScopedTex, __pyx_t_18) < (0)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":541
 *     #: runtime. Kernels launched via the device runtime only support
 *     #: surfaces created with the Surface Object API's.
 *     cudaErrorLaunchFileScopedSurf = cyruntime.cudaError.cudaErrorLaunchFileScopedSurf             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that a call to
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLaunchFileScopedSurf); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLaunchFileScopedSurf, __pyx_t_18) < (0)) __PYX_ERR(0, 541, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":558
 *     #: :py:obj:`~.cudaDeviceSynchronize` made from device runtime is only
 *     #: supported on devices of compute capability < 9.0.
 *     cudaErrorSyncDepthExceeded = cyruntime.cudaError.cudaErrorSyncDepthExceeded             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that a device runtime grid launch failed
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSyncDepthExceeded); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSyncDepthExceeded, __pyx_t_18) < (0)) __PYX_ERR(0, 558, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":569
 *     #: of pending device runtime launches will require the runtime to
 *     #: reserve device memory that cannot be used for user allocations.
 *     cudaErrorLaunchPendingCountExceeded = cyruntime.cudaError.cudaErrorLaunchPendingCountExceeded             # <<<<<<<<<<<<<<
 * 
 *     #: The requested device function does not exist or is not compiled for
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLaunchPendingCountExceeded); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLaunchPendingCountExcee, __pyx_t_18) < (0)) __PYX_ERR(0, 569, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":573
 *     #: The requested device function does not exist or is not compiled for
 *     #: the proper device architecture.
 *     cudaErrorInvalidDeviceFunction = cyruntime.cudaError.cudaErrorInvalidDeviceFunction             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that no CUDA-capable devices were detected by the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidDeviceFunction); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidDeviceFunction, __pyx_t_18) < (0)) __PYX_ERR(0, 573, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":577
 *     #: This indicates that no CUDA-capable devices were detected by the
 *     #: installed CUDA driver.
 *     cudaErrorNoDevice = cyruntime.cudaError.cudaErrorNoDevice             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the device ordinal supplied by the user does not
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNoDevice); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNoDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":582
 *     #: correspond to a valid CUDA device or that the action requested is
 *     #: invalid for the specified device.
 *     cudaErrorInvalidDevice = cyruntime.cudaError.cudaErrorInvalidDevice             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the device doesn't have a valid Grid License.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidDevice); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":585
 * 
 *     #: This indicates that the device doesn't have a valid Grid License.
 *     cudaErrorDeviceNotLicensed = cyruntime.cudaError.cudaErrorDeviceNotLicensed             # <<<<<<<<<<<<<<
 * 
 *     #: By default, the CUDA runtime may perform a minimal set of self-
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorDeviceNotLicensed); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorDeviceNotLicensed, __pyx_t_18) < (0)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":592
 *     #: least one of these tests has failed and the validity of either the
 *     #: runtime or the driver could not be established.
 *     cudaErrorSoftwareValidityNotEstablished = cyruntime.cudaError.cudaErrorSoftwareValidityNotEstablished             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates an internal startup failure in the CUDA runtime.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSoftwareValidityNotEstablished); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSoftwareValidityNotEsta, __pyx_t_18) < (0)) __PYX_ERR(0, 592, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":595
 * 
 *     #: This indicates an internal startup failure in the CUDA runtime.
 *     cudaErrorStartupFailure = cyruntime.cudaError.cudaErrorStartupFailure             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the device kernel image is invalid.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStartupFailure); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStartupFailure, __pyx_t_18) < (0)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":598
 * 
 *     #: This indicates that the device kernel image is invalid.
 *     cudaErrorInvalidKernelImage = cyruntime.cudaError.cudaErrorInvalidKernelImage             # <<<<<<<<<<<<<<
 * 
 *     #: This most frequently indicates that there is no context bound to the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidKernelImage); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidKernelImage, __pyx_t_18) < (0)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":606
 *     #: if a user mixes different API versions (i.e. 3010 context with 3020
 *     #: API calls). See :py:obj:`~.cuCtxGetApiVersion()` for more details.
 *     cudaErrorDeviceUninitialized = cyruntime.cudaError.cudaErrorDeviceUninitialized             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the buffer object could not be mapped.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorDeviceUninitialized); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorDeviceUninitialized, __pyx_t_18) < (0)) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":609
 * 
 *     #: This indicates that the buffer object could not be mapped.
 *     cudaErrorMapBufferObjectFailed = cyruntime.cudaError.cudaErrorMapBufferObjectFailed             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the buffer object could not be unmapped.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMapBufferObjectFailed); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMapBufferObjectFailed, __pyx_t_18) < (0)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":612
 * 
 *     #: This indicates that the buffer object could not be unmapped.
 *     cudaErrorUnmapBufferObjectFailed = cyruntime.cudaError.cudaErrorUnmapBufferObjectFailed             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the specified array is currently mapped and thus
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorUnmapBufferObjectFailed); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorUnmapBufferObjectFailed, __pyx_t_18) < (0)) __PYX_ERR(0, 612, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":616
 *     #: This indicates that the specified array is currently mapped and thus
 *     #: cannot be destroyed.
 *     cudaErrorArrayIsMapped = cyruntime.cudaError.cudaErrorArrayIsMapped             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the resource is already mapped.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorArrayIsMapped); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorArrayIsMapped, __pyx_t_18) < (0)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":619
 * 
 *     #: This indicates that the resource is already mapped.
 *     cudaErrorAlreadyMapped = cyruntime.cudaError.cudaErrorAlreadyMapped             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that there is no kernel image available that is
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorAlreadyMapped); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorAlreadyMapped, __pyx_t_18) < (0)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":625
 *     #: generation options for a particular CUDA source file that do not
 *     #: include the corresponding device configuration.
 *     cudaErrorNoKernelImageForDevice = cyruntime.cudaError.cudaErrorNoKernelImageForDevice             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a resource has already been acquired.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNoKernelImageForDevice); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNoKernelImageForDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 625, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":628
 * 
 *     #: This indicates that a resource has already been acquired.
 *     cudaErrorAlreadyAcquired = cyruntime.cudaError.cudaErrorAlreadyAcquired             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a resource is not mapped.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorAlreadyAcquired); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorAlreadyAcquired, __pyx_t_18) < (0)) __PYX_ERR(0, 628, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":631
 * 
 *     #: This indicates that a resource is not mapped.
 *     cudaErrorNotMapped = cyruntime.cudaError.cudaErrorNotMapped             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a mapped resource is not available for access as
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNotMapped); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNotMapped, __pyx_t_18) < (0)) __PYX_ERR(0, 631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":635
 *     #: This indicates that a mapped resource is not available for access as
 *     #: an array.
 *     cudaErrorNotMappedAsArray = cyruntime.cudaError.cudaErrorNotMappedAsArray             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a mapped resource is not available for access as
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNotMappedAsArray); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNotMappedAsArray, __pyx_t_18) < (0)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":639
 *     #: This indicates that a mapped resource is not available for access as
 *     #: a pointer.
 *     cudaErrorNotMappedAsPointer = cyruntime.cudaError.cudaErrorNotMappedAsPointer             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that an uncorrectable ECC error was detected during
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNotMappedAsPointer); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNotMappedAsPointer, __pyx_t_18) < (0)) __PYX_ERR(0, 639, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":643
 *     #: This indicates that an uncorrectable ECC error was detected during
 *     #: execution.
 *     cudaErrorECCUncorrectable = cyruntime.cudaError.cudaErrorECCUncorrectable             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the :py:obj:`~.cudaLimit` passed to the API call
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorECCUncorrectable); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorECCUncorrectable, __pyx_t_18) < (0)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":647
 *     #: This indicates that the :py:obj:`~.cudaLimit` passed to the API call
 *     #: is not supported by the active device.
 *     cudaErrorUnsupportedLimit = cyruntime.cudaError.cudaErrorUnsupportedLimit             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a call tried to access an exclusive-thread
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorUnsupportedLimit); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorUnsupportedLimit, __pyx_t_18) < (0)) __PYX_ERR(0, 647, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":651
 *     #: This indicates that a call tried to access an exclusive-thread
 *     #: device that is already in use by a different thread.
 *     cudaErrorDeviceAlreadyInUse = cyruntime.cudaError.cudaErrorDeviceAlreadyInUse             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that P2P access is not supported across the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorDeviceAlreadyInUse); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 651, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorDeviceAlreadyInUse, __pyx_t_18) < (0)) __PYX_ERR(0, 651, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":655
 *     #: This error indicates that P2P access is not supported across the
 *     #: given devices.
 *     cudaErrorPeerAccessUnsupported = cyruntime.cudaError.cudaErrorPeerAccessUnsupported             # <<<<<<<<<<<<<<
 * 
 *     #: A PTX compilation failed. The runtime may fall back to compiling PTX
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorPeerAccessUnsupported); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorPeerAccessUnsupported, __pyx_t_18) < (0)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":660
 *     #: if an application does not contain a suitable binary for the current
 *     #: device.
 *     cudaErrorInvalidPtx = cyruntime.cudaError.cudaErrorInvalidPtx             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates an error with the OpenGL or DirectX context.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidPtx); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidPtx, __pyx_t_18) < (0)) __PYX_ERR(0, 660, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":663
 * 
 *     #: This indicates an error with the OpenGL or DirectX context.
 *     cudaErrorInvalidGraphicsContext = cyruntime.cudaError.cudaErrorInvalidGraphicsContext             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that an uncorrectable NVLink error was detected
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidGraphicsContext); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidGraphicsContext, __pyx_t_18) < (0)) __PYX_ERR(0, 663, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":667
 *     #: This indicates that an uncorrectable NVLink error was detected
 *     #: during the execution.
 *     cudaErrorNvlinkUncorrectable = cyruntime.cudaError.cudaErrorNvlinkUncorrectable             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the PTX JIT compiler library was not found. The
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNvlinkUncorrectable); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNvlinkUncorrectable, __pyx_t_18) < (0)) __PYX_ERR(0, 667, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":673
 *     #: fall back to compiling PTX if an application does not contain a
 *     #: suitable binary for the current device.
 *     cudaErrorJitCompilerNotFound = cyruntime.cudaError.cudaErrorJitCompilerNotFound             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the provided PTX was compiled with an
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorJitCompilerNotFound); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 673, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorJitCompilerNotFound, __pyx_t_18) < (0)) __PYX_ERR(0, 673, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":679
 *     #: was generated by a compiler newer than what is supported by the CUDA
 *     #: driver and PTX JIT compiler.
 *     cudaErrorUnsupportedPtxVersion = cyruntime.cudaError.cudaErrorUnsupportedPtxVersion             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the JIT compilation was disabled. The JIT
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorUnsupportedPtxVersion); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorUnsupportedPtxVersion, __pyx_t_18) < (0)) __PYX_ERR(0, 679, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":685
 *     #: if an application does not contain a suitable binary for the current
 *     #: device.
 *     cudaErrorJitCompilationDisabled = cyruntime.cudaError.cudaErrorJitCompilationDisabled             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the provided execution affinity is not supported
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorJitCompilationDisabled); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 685, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorJitCompilationDisabled, __pyx_t_18) < (0)) __PYX_ERR(0, 685, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":689
 *     #: This indicates that the provided execution affinity is not supported
 *     #: by the device.
 *     cudaErrorUnsupportedExecAffinity = cyruntime.cudaError.cudaErrorUnsupportedExecAffinity             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the code to be compiled by the PTX JIT contains
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorUnsupportedExecAffinity); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorUnsupportedExecAffinity, __pyx_t_18) < (0)) __PYX_ERR(0, 689, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":693
 *     #: This indicates that the code to be compiled by the PTX JIT contains
 *     #: unsupported call to cudaDeviceSynchronize.
 *     cudaErrorUnsupportedDevSideSync = cyruntime.cudaError.cudaErrorUnsupportedDevSideSync             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that an exception occurred on the device that is now
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorUnsupportedDevSideSync); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorUnsupportedDevSideSync, __pyx_t_18) < (0)) __PYX_ERR(0, 693, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":702
 *     #: same error. To continue using CUDA, the process must be terminated
 *     #: and relaunched.
 *     cudaErrorContained = cyruntime.cudaError.cudaErrorContained             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the device kernel source is invalid.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorContained); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorContained, __pyx_t_18) < (0)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":705
 * 
 *     #: This indicates that the device kernel source is invalid.
 *     cudaErrorInvalidSource = cyruntime.cudaError.cudaErrorInvalidSource             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the file specified was not found.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidSource); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidSource, __pyx_t_18) < (0)) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":708
 * 
 *     #: This indicates that the file specified was not found.
 *     cudaErrorFileNotFound = cyruntime.cudaError.cudaErrorFileNotFound             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a link to a shared object failed to resolve.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorFileNotFound); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorFileNotFound, __pyx_t_18) < (0)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":711
 * 
 *     #: This indicates that a link to a shared object failed to resolve.
 *     cudaErrorSharedObjectSymbolNotFound = cyruntime.cudaError.cudaErrorSharedObjectSymbolNotFound             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that initialization of a shared object failed.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSharedObjectSymbolNotFound); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSharedObjectSymbolNotFo, __pyx_t_18) < (0)) __PYX_ERR(0, 711, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":714
 * 
 *     #: This indicates that initialization of a shared object failed.
 *     cudaErrorSharedObjectInitFailed = cyruntime.cudaError.cudaErrorSharedObjectInitFailed             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that an OS call failed.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSharedObjectInitFailed); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSharedObjectInitFailed, __pyx_t_18) < (0)) __PYX_ERR(0, 714, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":717
 * 
 *     #: This error indicates that an OS call failed.
 *     cudaErrorOperatingSystem = cyruntime.cudaError.cudaErrorOperatingSystem             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a resource handle passed to the API call was not
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorOperatingSystem); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorOperatingSystem, __pyx_t_18) < (0)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":722
 *     #: valid. Resource handles are opaque types like
 *     #: :py:obj:`~.cudaStream_t` and :py:obj:`~.cudaEvent_t`.
 *     cudaErrorInvalidResourceHandle = cyruntime.cudaError.cudaErrorInvalidResourceHandle             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a resource required by the API call is not in a
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidResourceHandle); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 722, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidResourceHandle, __pyx_t_18) < (0)) __PYX_ERR(0, 722, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":726
 *     #: This indicates that a resource required by the API call is not in a
 *     #: valid state to perform the requested operation.
 *     cudaErrorIllegalState = cyruntime.cudaError.cudaErrorIllegalState             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates an attempt was made to introspect an object in a way
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorIllegalState); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorIllegalState, __pyx_t_18) < (0)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":733
 *     #: version used to introspect it or omission of optional return
 *     #: arguments.
 *     cudaErrorLossyQuery = cyruntime.cudaError.cudaErrorLossyQuery             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a named symbol was not found. Examples of
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLossyQuery); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLossyQuery, __pyx_t_18) < (0)) __PYX_ERR(0, 733, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":738
 *     #: symbols are global/constant variable names, driver function names,
 *     #: texture names, and surface names.
 *     cudaErrorSymbolNotFound = cyruntime.cudaError.cudaErrorSymbolNotFound             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that asynchronous operations issued previously have
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSymbolNotFound); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSymbolNotFound, __pyx_t_18) < (0)) __PYX_ERR(0, 738, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":745
 *     #: completion). Calls that may return this value include
 *     #: :py:obj:`~.cudaEventQuery()` and :py:obj:`~.cudaStreamQuery()`.
 *     cudaErrorNotReady = cyruntime.cudaError.cudaErrorNotReady             # <<<<<<<<<<<<<<
 * 
 *     #: The device encountered a load or store instruction on an invalid
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNotReady); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNotReady, __pyx_t_18) < (0)) __PYX_ERR(0, 745, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":751
 *     #: any further CUDA work will return the same error. To continue using
 *     #: CUDA, the process must be terminated and relaunched.
 *     cudaErrorIllegalAddress = cyruntime.cudaError.cudaErrorIllegalAddress             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a launch did not occur because it did not have
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorIllegalAddress); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 751, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorIllegalAddress, __pyx_t_18) < (0)) __PYX_ERR(0, 751, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":759
 *     #: the device kernel, or the kernel launch specifies too many threads
 *     #: for the kernel's register count.
 *     cudaErrorLaunchOutOfResources = cyruntime.cudaError.cudaErrorLaunchOutOfResources             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the device kernel took too long to execute. This
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLaunchOutOfResources); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLaunchOutOfResources, __pyx_t_18) < (0)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":767
 *     #: work will return the same error. To continue using CUDA, the process
 *     #: must be terminated and relaunched.
 *     cudaErrorLaunchTimeout = cyruntime.cudaError.cudaErrorLaunchTimeout             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates a kernel launch that uses an incompatible
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLaunchTimeout); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLaunchTimeout, __pyx_t_18) < (0)) __PYX_ERR(0, 767, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":771
 *     #: This error indicates a kernel launch that uses an incompatible
 *     #: texturing mode.
 *     cudaErrorLaunchIncompatibleTexturing = cyruntime.cudaError.cudaErrorLaunchIncompatibleTexturing             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that a call to
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLaunchIncompatibleTexturing); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLaunchIncompatibleTextu, __pyx_t_18) < (0)) __PYX_ERR(0, 771, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":777
 *     #: addressing on from a context which has already had peer addressing
 *     #: enabled.
 *     cudaErrorPeerAccessAlreadyEnabled = cyruntime.cudaError.cudaErrorPeerAccessAlreadyEnabled             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that :py:obj:`~.cudaDeviceDisablePeerAccess()`
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorPeerAccessAlreadyEnabled); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorPeerAccessAlreadyEnable, __pyx_t_18) < (0)) __PYX_ERR(0, 777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":782
 *     #: is trying to disable peer addressing which has not been enabled yet
 *     #: via :py:obj:`~.cudaDeviceEnablePeerAccess()`.
 *     cudaErrorPeerAccessNotEnabled = cyruntime.cudaError.cudaErrorPeerAccessNotEnabled             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the user has called
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorPeerAccessNotEnabled); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 782, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorPeerAccessNotEnabled, __pyx_t_18) < (0)) __PYX_ERR(0, 782, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":795
 *     #: interoperability and there is an existing :py:obj:`~.CUcontext`
 *     #: active on the host thread.
 *     cudaErrorSetOnActiveProcess = cyruntime.cudaError.cudaErrorSetOnActiveProcess             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the context current to the calling thread
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSetOnActiveProcess); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSetOnActiveProcess, __pyx_t_18) < (0)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":800
 *     #: has been destroyed using :py:obj:`~.cuCtxDestroy`, or is a primary
 *     #: context which has not yet been initialized.
 *     cudaErrorContextIsDestroyed = cyruntime.cudaError.cudaErrorContextIsDestroyed             # <<<<<<<<<<<<<<
 * 
 *     #: An assert triggered in device code during kernel execution. The
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorContextIsDestroyed); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorContextIsDestroyed, __pyx_t_18) < (0)) __PYX_ERR(0, 800, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":806
 *     #: To continue using CUDA, the process must be terminated and
 *     #: relaunched.
 *     cudaErrorAssert = cyruntime.cudaError.cudaErrorAssert             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the hardware resources required to enable
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorAssert); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 806, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorAssert, __pyx_t_18) < (0)) __PYX_ERR(0, 806, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":811
 *     #: peer access have been exhausted for one or more of the devices
 *     #: passed to :py:obj:`~.cudaEnablePeerAccess()`.
 *     cudaErrorTooManyPeers = cyruntime.cudaError.cudaErrorTooManyPeers             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the memory range passed to
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorTooManyPeers); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorTooManyPeers, __pyx_t_18) < (0)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":815
 *     #: This error indicates that the memory range passed to
 *     #: :py:obj:`~.cudaHostRegister()` has already been registered.
 *     cudaErrorHostMemoryAlreadyRegistered = cyruntime.cudaError.cudaErrorHostMemoryAlreadyRegistered             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the pointer passed to
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorHostMemoryAlreadyRegistered); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorHostMemoryAlreadyRegist, __pyx_t_18) < (0)) __PYX_ERR(0, 815, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":820
 *     #: :py:obj:`~.cudaHostUnregister()` does not correspond to any
 *     #: currently registered memory region.
 *     cudaErrorHostMemoryNotRegistered = cyruntime.cudaError.cudaErrorHostMemoryNotRegistered             # <<<<<<<<<<<<<<
 * 
 *     #: Device encountered an error in the call stack during kernel
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorHostMemoryNotRegistered); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorHostMemoryNotRegistered, __pyx_t_18) < (0)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":827
 *     #: further CUDA work will return the same error. To continue using
 *     #: CUDA, the process must be terminated and relaunched.
 *     cudaErrorHardwareStackError = cyruntime.cudaError.cudaErrorHardwareStackError             # <<<<<<<<<<<<<<
 * 
 *     #: The device encountered an illegal instruction during kernel
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorHardwareStackError); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorHardwareStackError, __pyx_t_18) < (0)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":833
 *     #: further CUDA work will return the same error. To continue using
 *     #: CUDA, the process must be terminated and relaunched.
 *     cudaErrorIllegalInstruction = cyruntime.cudaError.cudaErrorIllegalInstruction             # <<<<<<<<<<<<<<
 * 
 *     #: The device encountered a load or store instruction on a memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorIllegalInstruction); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorIllegalInstruction, __pyx_t_18) < (0)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":840
 *     #: error. To continue using CUDA, the process must be terminated and
 *     #: relaunched.
 *     cudaErrorMisalignedAddress = cyruntime.cudaError.cudaErrorMisalignedAddress             # <<<<<<<<<<<<<<
 * 
 *     #: While executing a kernel, the device encountered an instruction
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMisalignedAddress); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMisalignedAddress, __pyx_t_18) < (0)) __PYX_ERR(0, 840, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":849
 *     #: error. To continue using CUDA, the process must be terminated and
 *     #: relaunched.
 *     cudaErrorInvalidAddressSpace = cyruntime.cudaError.cudaErrorInvalidAddressSpace             # <<<<<<<<<<<<<<
 * 
 *     #: The device encountered an invalid program counter. This leaves the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidAddressSpace); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 849, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidAddressSpace, __pyx_t_18) < (0)) __PYX_ERR(0, 849, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":855
 *     #: return the same error. To continue using CUDA, the process must be
 *     #: terminated and relaunched.
 *     cudaErrorInvalidPc = cyruntime.cudaError.cudaErrorInvalidPc             # <<<<<<<<<<<<<<
 * 
 *     #: An exception occurred on the device while executing a kernel. Common
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidPc); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidPc, __pyx_t_18) < (0)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":865
 *     #: error. To continue using CUDA, the process must be terminated and
 *     #: relaunched.
 *     cudaErrorLaunchFailure = cyruntime.cudaError.cudaErrorLaunchFailure             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the number of blocks launched per grid for
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorLaunchFailure); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorLaunchFailure, __pyx_t_18) < (0)) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":875
 *     #: times the number of multiprocessors as specified by the device
 *     #: attribute :py:obj:`~.cudaDevAttrMultiProcessorCount`.
 *     cudaErrorCooperativeLaunchTooLarge = cyruntime.cudaError.cudaErrorCooperativeLaunchTooLarge             # <<<<<<<<<<<<<<
 * 
 *     #: An exception occurred on the device while exiting a kernel using
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorCooperativeLaunchTooLarge); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorCooperativeLaunchTooLar, __pyx_t_18) < (0)) __PYX_ERR(0, 875, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":882
 *     #: CUDA work will return the same error. To continue using CUDA, the
 *     #: process must be terminated and relaunched.
 *     cudaErrorTensorMemoryLeak = cyruntime.cudaError.cudaErrorTensorMemoryLeak             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates the attempted operation is not permitted.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorTensorMemoryLeak); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorTensorMemoryLeak, __pyx_t_18) < (0)) __PYX_ERR(0, 882, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":885
 * 
 *     #: This error indicates the attempted operation is not permitted.
 *     cudaErrorNotPermitted = cyruntime.cudaError.cudaErrorNotPermitted             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates the attempted operation is not supported on the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNotPermitted); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNotPermitted, __pyx_t_18) < (0)) __PYX_ERR(0, 885, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":889
 *     #: This error indicates the attempted operation is not supported on the
 *     #: current system or device.
 *     cudaErrorNotSupported = cyruntime.cudaError.cudaErrorNotSupported             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the system is not yet ready to start any
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorNotSupported); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 889, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorNotSupported, __pyx_t_18) < (0)) __PYX_ERR(0, 889, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":896
 *     #: running. More information about this error can be found in the
 *     #: system specific user guide.
 *     cudaErrorSystemNotReady = cyruntime.cudaError.cudaErrorSystemNotReady             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that there is a mismatch between the versions
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSystemNotReady); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 896, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSystemNotReady, __pyx_t_18) < (0)) __PYX_ERR(0, 896, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":901
 *     #: of the display driver and the CUDA driver. Refer to the
 *     #: compatibility documentation for supported versions.
 *     cudaErrorSystemDriverMismatch = cyruntime.cudaError.cudaErrorSystemDriverMismatch             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the system was upgraded to run with
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorSystemDriverMismatch); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorSystemDriverMismatch, __pyx_t_18) < (0)) __PYX_ERR(0, 901, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":909
 *     #: supported hardware is visible during initialization via the
 *     #: CUDA_VISIBLE_DEVICES environment variable.
 *     cudaErrorCompatNotSupportedOnDevice = cyruntime.cudaError.cudaErrorCompatNotSupportedOnDevice             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the MPS client failed to connect to the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorCompatNotSupportedOnDevice); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorCompatNotSupportedOnDev, __pyx_t_18) < (0)) __PYX_ERR(0, 909, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":913
 *     #: This error indicates that the MPS client failed to connect to the
 *     #: MPS control daemon or the MPS server.
 *     cudaErrorMpsConnectionFailed = cyruntime.cudaError.cudaErrorMpsConnectionFailed             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the remote procedural call between the MPS
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMpsConnectionFailed); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMpsConnectionFailed, __pyx_t_18) < (0)) __PYX_ERR(0, 913, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":917
 *     #: This error indicates that the remote procedural call between the MPS
 *     #: server and the MPS client failed.
 *     cudaErrorMpsRpcFailure = cyruntime.cudaError.cudaErrorMpsRpcFailure             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the MPS server is not ready to accept new
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMpsRpcFailure); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMpsRpcFailure, __pyx_t_18) < (0)) __PYX_ERR(0, 917, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":922
 *     #: MPS client requests. This error can be returned when the MPS server
 *     #: is in the process of recovering from a fatal failure.
 *     cudaErrorMpsServerNotReady = cyruntime.cudaError.cudaErrorMpsServerNotReady             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the hardware resources required to create
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMpsServerNotReady); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMpsServerNotReady, __pyx_t_18) < (0)) __PYX_ERR(0, 922, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":926
 *     #: This error indicates that the hardware resources required to create
 *     #: MPS client have been exhausted.
 *     cudaErrorMpsMaxClientsReached = cyruntime.cudaError.cudaErrorMpsMaxClientsReached             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates the the hardware resources required to device
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMpsMaxClientsReached); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMpsMaxClientsReached, __pyx_t_18) < (0)) __PYX_ERR(0, 926, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":930
 *     #: This error indicates the the hardware resources required to device
 *     #: connections have been exhausted.
 *     cudaErrorMpsMaxConnectionsReached = cyruntime.cudaError.cudaErrorMpsMaxConnectionsReached             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the MPS client has been terminated by the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMpsMaxConnectionsReached); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMpsMaxConnectionsReache, __pyx_t_18) < (0)) __PYX_ERR(0, 930, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":935
 *     #: server. To continue using CUDA, the process must be terminated and
 *     #: relaunched.
 *     cudaErrorMpsClientTerminated = cyruntime.cudaError.cudaErrorMpsClientTerminated             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates, that the program is using CUDA Dynamic
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorMpsClientTerminated); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorMpsClientTerminated, __pyx_t_18) < (0)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":940
 *     #: Parallelism, but the current configuration, like MPS, does not
 *     #: support it.
 *     cudaErrorCdpNotSupported = cyruntime.cudaError.cudaErrorCdpNotSupported             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates, that the program contains an unsupported
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorCdpNotSupported); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorCdpNotSupported, __pyx_t_18) < (0)) __PYX_ERR(0, 940, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":944
 *     #: This error indicates, that the program contains an unsupported
 *     #: interaction between different versions of CUDA Dynamic Parallelism.
 *     cudaErrorCdpVersionMismatch = cyruntime.cudaError.cudaErrorCdpVersionMismatch             # <<<<<<<<<<<<<<
 * 
 *     #: The operation is not permitted when the stream is capturing.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorCdpVersionMismatch); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorCdpVersionMismatch, __pyx_t_18) < (0)) __PYX_ERR(0, 944, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":947
 * 
 *     #: The operation is not permitted when the stream is capturing.
 *     cudaErrorStreamCaptureUnsupported = cyruntime.cudaError.cudaErrorStreamCaptureUnsupported             # <<<<<<<<<<<<<<
 * 
 *     #: The current capture sequence on the stream has been invalidated due
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamCaptureUnsupported); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamCaptureUnsupporte, __pyx_t_18) < (0)) __PYX_ERR(0, 947, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":951
 *     #: The current capture sequence on the stream has been invalidated due
 *     #: to a previous error.
 *     cudaErrorStreamCaptureInvalidated = cyruntime.cudaError.cudaErrorStreamCaptureInvalidated             # <<<<<<<<<<<<<<
 * 
 *     #: The operation would have resulted in a merge of two independent
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamCaptureInvalidated); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamCaptureInvalidate, __pyx_t_18) < (0)) __PYX_ERR(0, 951, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":955
 *     #: The operation would have resulted in a merge of two independent
 *     #: capture sequences.
 *     cudaErrorStreamCaptureMerge = cyruntime.cudaError.cudaErrorStreamCaptureMerge             # <<<<<<<<<<<<<<
 * 
 *     #: The capture was not initiated in this stream.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamCaptureMerge); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 955, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamCaptureMerge, __pyx_t_18) < (0)) __PYX_ERR(0, 955, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":958
 * 
 *     #: The capture was not initiated in this stream.
 *     cudaErrorStreamCaptureUnmatched = cyruntime.cudaError.cudaErrorStreamCaptureUnmatched             # <<<<<<<<<<<<<<
 * 
 *     #: The capture sequence contains a fork that was not joined to the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamCaptureUnmatched); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamCaptureUnmatched, __pyx_t_18) < (0)) __PYX_ERR(0, 958, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":962
 *     #: The capture sequence contains a fork that was not joined to the
 *     #: primary stream.
 *     cudaErrorStreamCaptureUnjoined = cyruntime.cudaError.cudaErrorStreamCaptureUnjoined             # <<<<<<<<<<<<<<
 * 
 *     #: A dependency would have been created which crosses the capture
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamCaptureUnjoined); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamCaptureUnjoined, __pyx_t_18) < (0)) __PYX_ERR(0, 962, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":967
 *     #: sequence boundary. Only implicit in-stream ordering dependencies are
 *     #: allowed to cross the boundary.
 *     cudaErrorStreamCaptureIsolation = cyruntime.cudaError.cudaErrorStreamCaptureIsolation             # <<<<<<<<<<<<<<
 * 
 *     #: The operation would have resulted in a disallowed implicit
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamCaptureIsolation); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamCaptureIsolation, __pyx_t_18) < (0)) __PYX_ERR(0, 967, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":971
 *     #: The operation would have resulted in a disallowed implicit
 *     #: dependency on a current capture sequence from cudaStreamLegacy.
 *     cudaErrorStreamCaptureImplicit = cyruntime.cudaError.cudaErrorStreamCaptureImplicit             # <<<<<<<<<<<<<<
 * 
 *     #: The operation is not permitted on an event which was last recorded
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamCaptureImplicit); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamCaptureImplicit, __pyx_t_18) < (0)) __PYX_ERR(0, 971, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":975
 *     #: The operation is not permitted on an event which was last recorded
 *     #: in a capturing stream.
 *     cudaErrorCapturedEvent = cyruntime.cudaError.cudaErrorCapturedEvent             # <<<<<<<<<<<<<<
 * 
 *     #: A stream capture sequence not initiated with the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorCapturedEvent); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorCapturedEvent, __pyx_t_18) < (0)) __PYX_ERR(0, 975, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":981
 *     #: :py:obj:`~.cudaStreamBeginCapture` was passed to
 *     #: :py:obj:`~.cudaStreamEndCapture` in a different thread.
 *     cudaErrorStreamCaptureWrongThread = cyruntime.cudaError.cudaErrorStreamCaptureWrongThread             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that the wait operation has timed out.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamCaptureWrongThread); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 981, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamCaptureWrongThrea, __pyx_t_18) < (0)) __PYX_ERR(0, 981, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":984
 * 
 *     #: This indicates that the wait operation has timed out.
 *     cudaErrorTimeout = cyruntime.cudaError.cudaErrorTimeout             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the graph update was not performed because
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorTimeout); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorTimeout, __pyx_t_18) < (0)) __PYX_ERR(0, 984, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":989
 *     #: it included changes which violated constraints specific to
 *     #: instantiated graph update.
 *     cudaErrorGraphExecUpdateFailure = cyruntime.cudaError.cudaErrorGraphExecUpdateFailure             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that an async error has occurred in a device outside
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorGraphExecUpdateFailure); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorGraphExecUpdateFailure, __pyx_t_18) < (0)) __PYX_ERR(0, 989, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":998
 *     #: return the same error. To continue using CUDA, the process must be
 *     #: terminated and relaunched.
 *     cudaErrorExternalDevice = cyruntime.cudaError.cudaErrorExternalDevice             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that a kernel launch error has occurred due to
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorExternalDevice); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorExternalDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1002
 *     #: This indicates that a kernel launch error has occurred due to
 *     #: cluster misconfiguration.
 *     cudaErrorInvalidClusterSize = cyruntime.cudaError.cudaErrorInvalidClusterSize             # <<<<<<<<<<<<<<
 * 
 *     #: Indiciates a function handle is not loaded when calling an API that
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidClusterSize); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1002, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidClusterSize, __pyx_t_18) < (0)) __PYX_ERR(0, 1002, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1006
 *     #: Indiciates a function handle is not loaded when calling an API that
 *     #: requires a loaded function.
 *     cudaErrorFunctionNotLoaded = cyruntime.cudaError.cudaErrorFunctionNotLoaded             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates one or more resources passed in are not valid
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorFunctionNotLoaded); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1006, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorFunctionNotLoaded, __pyx_t_18) < (0)) __PYX_ERR(0, 1006, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1010
 *     #: This error indicates one or more resources passed in are not valid
 *     #: resource types for the operation.
 *     cudaErrorInvalidResourceType = cyruntime.cudaError.cudaErrorInvalidResourceType             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates one or more resources are insufficient or non-
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidResourceType); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidResourceType, __pyx_t_18) < (0)) __PYX_ERR(0, 1010, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1014
 *     #: This error indicates one or more resources are insufficient or non-
 *     #: applicable for the operation.
 *     cudaErrorInvalidResourceConfiguration = cyruntime.cudaError.cudaErrorInvalidResourceConfiguration             # <<<<<<<<<<<<<<
 * 
 *     #: This error indicates that the requested operation is not permitted
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorInvalidResourceConfiguration); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorInvalidResourceConfigur, __pyx_t_18) < (0)) __PYX_ERR(0, 1014, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1020
 *     #: green context associated with the stream has been destroyed,
 *     #: limiting the stream's operational capabilities.
 *     cudaErrorStreamDetached = cyruntime.cudaError.cudaErrorStreamDetached             # <<<<<<<<<<<<<<
 * 
 *     #: This indicates that an unknown internal error has occurred.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorStreamDetached); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorStreamDetached, __pyx_t_18) < (0)) __PYX_ERR(0, 1020, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1023
 * 
 *     #: This indicates that an unknown internal error has occurred.
 *     cudaErrorUnknown = cyruntime.cudaError.cudaErrorUnknown             # <<<<<<<<<<<<<<
 *     cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorUnknown); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1023, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorUnknown, __pyx_t_18) < (0)) __PYX_ERR(0, 1023, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1024
 *     #: This indicates that an unknown internal error has occurred.
 *     cudaErrorUnknown = cyruntime.cudaError.cudaErrorUnknown
 *     cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaError_t = dict(((int(v), v) for k, v in cudaError_t.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaError(cudaErrorApiFailureBase); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaErrorApiFailureBase, __pyx_t_18) < (0)) __PYX_ERR(0, 1024, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":340
 * CUDA_EGL_MAX_PLANES = cyruntime.CUDA_EGL_MAX_PLANES
 * 
 * class cudaError_t(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     impl_private CUDA error types
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaError_t, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaError_t, __pyx_t_18) < (0)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1026
 *     cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase
 * 
 * _dict_cudaError_t = dict(((int(v), v) for k, v in cudaError_t.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphDependencyType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaError_t); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_672genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaError_t, __pyx_t_20) < (0)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1028
 * _dict_cudaError_t = dict(((int(v), v) for k, v in cudaError_t.__members__.items()))
 * 
 * class cudaGraphDependencyType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Type annotations that can be applied to graph edges as part of
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDependencyType, __pyx_mstate_global->__pyx_n_u_cudaGraphDependencyType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Type_annotations_that_can_be_ap); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1028, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1035
 * 
 *     #: This is an ordinary dependency.
 *     cudaGraphDependencyTypeDefault = cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeDefault             # <<<<<<<<<<<<<<
 * 
 *     #: This dependency type allows the downstream node to use
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphDependencyType_enum(cudaGraphDependencyTypeDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphDependencyTypeDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 1035, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1042
 *     #: :py:obj:`~.cudaGraphKernelNodePortProgrammatic` or
 *     #: :py:obj:`~.cudaGraphKernelNodePortLaunchCompletion` outgoing port.
 *     cudaGraphDependencyTypeProgrammatic = cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphDependencyType = dict(((int(v), v) for k, v in cudaGraphDependencyType.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphDependencyType_enum(cudaGraphDependencyTypeProgrammatic); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphDependencyTypeProgramma, __pyx_t_4) < (0)) __PYX_ERR(0, 1042, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1028
 * _dict_cudaError_t = dict(((int(v), v) for k, v in cudaError_t.__members__.items()))
 * 
 * class cudaGraphDependencyType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Type annotations that can be applied to graph edges as part of
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphDependencyType, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphDependencyType, __pyx_t_4) < (0)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1044
 *     cudaGraphDependencyTypeProgrammatic = cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic
 * 
 * _dict_cudaGraphDependencyType = dict(((int(v), v) for k, v in cudaGraphDependencyType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphInstantiateResult(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDependencyType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_675genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphDependencyType, __pyx_t_19) < (0)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1046
 * _dict_cudaGraphDependencyType = dict(((int(v), v) for k, v in cudaGraphDependencyType.__members__.items()))
 * 
 * class cudaGraphInstantiateResult(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Graph instantiation results
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateResult, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateResult, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Graph_instantiation_results); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 1046, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1052
 * 
 *     #: Instantiation succeeded
 *     cudaGraphInstantiateSuccess = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateSuccess             # <<<<<<<<<<<<<<
 * 
 *     #: Instantiation failed for an unexpected reason which is described in
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateSuccess); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateSuccess, __pyx_t_20) < (0)) __PYX_ERR(0, 1052, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1056
 *     #: Instantiation failed for an unexpected reason which is described in
 *     #: the return value of the function
 *     cudaGraphInstantiateError = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateError             # <<<<<<<<<<<<<<
 * 
 *     #: Instantiation failed due to invalid structure, such as cycles
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateError); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1056, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateError, __pyx_t_20) < (0)) __PYX_ERR(0, 1056, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1059
 * 
 *     #: Instantiation failed due to invalid structure, such as cycles
 *     cudaGraphInstantiateInvalidStructure = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateInvalidStructure             # <<<<<<<<<<<<<<
 * 
 *     #: Instantiation for device launch failed because the graph contained
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateInvalidStructure); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateInvalidStruc, __pyx_t_20) < (0)) __PYX_ERR(0, 1059, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1063
 *     #: Instantiation for device launch failed because the graph contained
 *     #: an unsupported operation
 *     cudaGraphInstantiateNodeOperationNotSupported = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateNodeOperationNotSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Instantiation for device launch failed due to the nodes belonging to
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateNodeOperationNotSupported); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateNodeOperatio, __pyx_t_20) < (0)) __PYX_ERR(0, 1063, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1067
 *     #: Instantiation for device launch failed due to the nodes belonging to
 *     #: different contexts
 *     cudaGraphInstantiateMultipleDevicesNotSupported = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateMultipleDevicesNotSupported             # <<<<<<<<<<<<<<
 * 
 *     #: One or more conditional handles are not associated with conditional
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateMultipleDevicesNotSupported); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateMultipleDevi, __pyx_t_20) < (0)) __PYX_ERR(0, 1067, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1071
 *     #: One or more conditional handles are not associated with conditional
 *     #: nodes
 *     cudaGraphInstantiateConditionalHandleUnused = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateConditionalHandleUnused             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphInstantiateResult = dict(((int(v), v) for k, v in cudaGraphInstantiateResult.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphInstantiateResult(cudaGraphInstantiateConditionalHandleUnused); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateConditionalH, __pyx_t_20) < (0)) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1046
 * _dict_cudaGraphDependencyType = dict(((int(v), v) for k, v in cudaGraphDependencyType.__members__.items()))
 * 
 * class cudaGraphInstantiateResult(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Graph instantiation results
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateResult, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateResult, __pyx_t_20) < (0)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1073
 *     cudaGraphInstantiateConditionalHandleUnused = cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateConditionalHandleUnused
 * 
 * _dict_cudaGraphInstantiateResult = dict(((int(v), v) for k, v in cudaGraphInstantiateResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLaunchMemSyncDomain(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateResult); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_678genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphInstantiateResult, __pyx_t_18) < (0)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1075
 * _dict_cudaGraphInstantiateResult = dict(((int(v), v) for k, v in cudaGraphInstantiateResult.__members__.items()))
 * 
 * class cudaLaunchMemSyncDomain(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Memory Synchronization Domain  A kernel can be launched in a
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomain, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomain, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Memory_Synchronization_Domain_A); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 1075, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1098
 * 
 *     #: Launch kernels in the default domain
 *     cudaLaunchMemSyncDomainDefault = cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainDefault             # <<<<<<<<<<<<<<
 * 
 *     #: Launch kernels in the remote domain
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchMemSyncDomain(cudaLaunchMemSyncDomainDefault); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomainDefault, __pyx_t_19) < (0)) __PYX_ERR(0, 1098, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1101
 * 
 *     #: Launch kernels in the remote domain
 *     cudaLaunchMemSyncDomainRemote = cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaLaunchMemSyncDomain = dict(((int(v), v) for k, v in cudaLaunchMemSyncDomain.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchMemSyncDomain(cudaLaunchMemSyncDomainRemote); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomainRemote, __pyx_t_19) < (0)) __PYX_ERR(0, 1101, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1075
 * _dict_cudaGraphInstantiateResult = dict(((int(v), v) for k, v in cudaGraphInstantiateResult.__members__.items()))
 * 
 * class cudaLaunchMemSyncDomain(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Memory Synchronization Domain  A kernel can be launched in a
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomain, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomain, __pyx_t_19) < (0)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1103
 *     cudaLaunchMemSyncDomainRemote = cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote
 * 
 * _dict_cudaLaunchMemSyncDomain = dict(((int(v), v) for k, v in cudaLaunchMemSyncDomain.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLaunchAttributeID(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomain); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_681genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaLaunchMemSyncDomain, __pyx_t_4) < (0)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1105
 * _dict_cudaLaunchMemSyncDomain = dict(((int(v), v) for k, v in cudaLaunchMemSyncDomain.__members__.items()))
 * 
 * class cudaLaunchAttributeID(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes enum; used as id field of
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeID, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeID, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Launch_attributes_enum_used_as); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 1105, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1112
 * 
 *     #: Ignored entry, for convenient composition
 *     cudaLaunchAttributeIgnore = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeIgnore); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeIgnore, __pyx_t_18) < (0)) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1116
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.
 *     cudaLaunchAttributeAccessPolicyWindow = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeAccessPolicyW, __pyx_t_18) < (0)) __PYX_ERR(0, 1116, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1120
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.cooperative`.
 *     cudaLaunchAttributeCooperative = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams. See
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeCooperative); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1120, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeCooperative, __pyx_t_18) < (0)) __PYX_ERR(0, 1120, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1124
 *     #: Valid for streams. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.
 *     cudaLaunchAttributeSynchronizationPolicy = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeSynchronizationPolicy); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1124, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeSynchronizati, __pyx_t_18) < (0)) __PYX_ERR(0, 1124, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1128
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.clusterDim`.
 *     cudaLaunchAttributeClusterDimension = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterDimension); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeClusterDimens, __pyx_t_18) < (0)) __PYX_ERR(0, 1128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1132
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.
 *     cudaLaunchAttributeClusterSchedulingPolicyPreference = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Setting
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeClusterSchedu, __pyx_t_18) < (0)) __PYX_ERR(0, 1132, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1143
 *     #: the programmatic sync (cudaGridDependencySynchronize() or equivalent
 *     #: PTX instructions).
 *     cudaLaunchAttributeProgrammaticStreamSerialization = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Set
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticStreamSerialization); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeProgrammaticS, __pyx_t_18) < (0)) __PYX_ERR(0, 1143, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1165
 *     #: The event must disable timing (i.e. must be created with the
 *     #: :py:obj:`~.cudaEventDisableTiming` flag set).
 *     cudaLaunchAttributeProgrammaticEvent = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticEvent); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeProgrammaticE, __pyx_t_18) < (0)) __PYX_ERR(0, 1165, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1169
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.priority`.
 *     cudaLaunchAttributePriority = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePriority); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePriority, __pyx_t_18) < (0)) __PYX_ERR(0, 1169, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1173
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.
 *     cudaLaunchAttributeMemSyncDomainMap = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeMemSyncDomain, __pyx_t_18) < (0)) __PYX_ERR(0, 1173, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1177
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.
 *     cudaLaunchAttributeMemSyncDomain = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes and launches. Set
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomain); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeMemSyncDomain_2, __pyx_t_18) < (0)) __PYX_ERR(0, 1177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1211
 *     #: value physically unable to fit on any particular device is
 *     #: permitted.
 *     cudaLaunchAttributePreferredClusterDimension = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Set
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredClusterDimension); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePreferredClus, __pyx_t_18) < (0)) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1231
 *     #: The event must disable timing (i.e. must be created with the
 *     #: :py:obj:`~.cudaEventDisableTiming` flag set).
 *     cudaLaunchAttributeLaunchCompletionEvent = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. This attribute is graphs-only, and
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeLaunchCompletionEvent); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeLaunchComplet, __pyx_t_18) < (0)) __PYX_ERR(0, 1231, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1264
 *     #: updatable nodes, the graph must be uploaded before it is launched
 *     #: again.
 *     cudaLaunchAttributeDeviceUpdatableKernelNode = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. On devices where the L1 cache and shared memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeDeviceUpdatableKernelNode); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1264, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeDeviceUpdatab, __pyx_t_18) < (0)) __PYX_ERR(0, 1264, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1275
 *     #: only a hint, and the driver can choose a different configuration if
 *     #: required for the launch.
 *     cudaLaunchAttributePreferredSharedMemoryCarveout = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. This attribute is a hint
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePreferredShar, __pyx_t_18) < (0)) __PYX_ERR(0, 1275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1297
 *     #: :py:obj:`~.cudaLaunchAttributeValue.nvlinkUtilCentricScheduling` are
 *     #: 0 (disabled) and 1 (enabled).
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeNvlinkUtilCentricScheduling); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeNvlinkUtilCen, __pyx_t_18) < (0)) __PYX_ERR(0, 1297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1105
 * _dict_cudaLaunchMemSyncDomain = dict(((int(v), v) for k, v in cudaLaunchMemSyncDomain.__members__.items()))
 * 
 * class cudaLaunchAttributeID(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes enum; used as id field of
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeID, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeID, __pyx_t_18) < (0)) __PYX_ERR(0, 1105, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1299
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAsyncNotificationType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeID); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_684genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaLaunchAttributeID, __pyx_t_20) < (0)) __PYX_ERR(0, 1299, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1301
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))
 * 
 * class cudaAsyncNotificationType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Types of async notification that can occur
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationType, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Types_of_async_notification_tha); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1301, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1307
 * 
 *     #: Sent when the process has exceeded its device memory budget
 *     cudaAsyncNotificationTypeOverBudget = cyruntime.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaAsyncNotificationType = dict(((int(v), v) for k, v in cudaAsyncNotificationType.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaAsyncNotificationType_enum(cudaAsyncNotificationTypeOverBudget); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationTypeOverBud, __pyx_t_4) < (0)) __PYX_ERR(0, 1307, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1301
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))
 * 
 * class cudaAsyncNotificationType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Types of async notification that can occur
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationType, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationType, __pyx_t_4) < (0)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1309
 *     cudaAsyncNotificationTypeOverBudget = cyruntime.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget
 * 
 * _dict_cudaAsyncNotificationType = dict(((int(v), v) for k, v in cudaAsyncNotificationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLogLevel(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_687genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaAsyncNotificationType, __pyx_t_19) < (0)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1311
 * _dict_cudaAsyncNotificationType = dict(((int(v), v) for k, v in cudaAsyncNotificationType.__members__.items()))
 * 
 * class cudaLogLevel(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLogLevel, __pyx_mstate_global->__pyx_n_u_cudaLogLevel, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u__8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 1311, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1315
 * 
 *     """
 *     cudaLogLevelError = cyruntime.CUDAlogLevel_enum.cudaLogLevelError             # <<<<<<<<<<<<<<
 *     cudaLogLevelWarning = cyruntime.CUDAlogLevel_enum.cudaLogLevelWarning
 * 
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__CUDAlogLevel_enum(cudaLogLevelError); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLogLevelError, __pyx_t_20) < (0)) __PYX_ERR(0, 1315, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1316
 *     """
 *     cudaLogLevelError = cyruntime.CUDAlogLevel_enum.cudaLogLevelError
 *     cudaLogLevelWarning = cyruntime.CUDAlogLevel_enum.cudaLogLevelWarning             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaLogLevel = dict(((int(v), v) for k, v in cudaLogLevel.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__CUDAlogLevel_enum(cudaLogLevelWarning); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLogLevelWarning, __pyx_t_20) < (0)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1311
 * _dict_cudaAsyncNotificationType = dict(((int(v), v) for k, v in cudaAsyncNotificationType.__members__.items()))
 * 
 * class cudaLogLevel(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaLogLevel, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLogLevel, __pyx_t_20) < (0)) __PYX_ERR(0, 1311, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1318
 *     cudaLogLevelWarning = cyruntime.CUDAlogLevel_enum.cudaLogLevelWarning
 * 
 * _dict_cudaLogLevel = dict(((int(v), v) for k, v in cudaLogLevel.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDataType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLogLevel); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_690genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaLogLevel, __pyx_t_18) < (0)) __PYX_ERR(0, 1318, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1320
 * _dict_cudaLogLevel = dict(((int(v), v) for k, v in cudaLogLevel.__members__.items()))
 * 
 * class cudaDataType(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDataType, __pyx_mstate_global->__pyx_n_u_cudaDataType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, (PyObject *) NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 1320, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1322
 * class cudaDataType(IntEnum):
 *     """"""
 *     CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F             # <<<<<<<<<<<<<<
 *     CUDA_R_64F = cyruntime.cudaDataType_t.CUDA_R_64F
 *     CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_32F); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_32F, __pyx_t_19) < (0)) __PYX_ERR(0, 1322, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1323
 *     """"""
 *     CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F
 *     CUDA_R_64F = cyruntime.cudaDataType_t.CUDA_R_64F             # <<<<<<<<<<<<<<
 *     CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F
 *     CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_64F); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_64F, __pyx_t_19) < (0)) __PYX_ERR(0, 1323, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1324
 *     CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F
 *     CUDA_R_64F = cyruntime.cudaDataType_t.CUDA_R_64F
 *     CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F             # <<<<<<<<<<<<<<
 *     CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I
 *     CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_16F); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_16F, __pyx_t_19) < (0)) __PYX_ERR(0, 1324, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1325
 *     CUDA_R_64F = cyruntime.cudaDataType_t.CUDA_R_64F
 *     CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F
 *     CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I             # <<<<<<<<<<<<<<
 *     CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F
 *     CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_8I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_8I, __pyx_t_19) < (0)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1326
 *     CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F
 *     CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I
 *     CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F             # <<<<<<<<<<<<<<
 *     CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F
 *     CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_32F); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_32F, __pyx_t_19) < (0)) __PYX_ERR(0, 1326, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1327
 *     CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I
 *     CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F
 *     CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F             # <<<<<<<<<<<<<<
 *     CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F
 *     CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_64F); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1327, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_64F, __pyx_t_19) < (0)) __PYX_ERR(0, 1327, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1328
 *     CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F
 *     CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F
 *     CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F             # <<<<<<<<<<<<<<
 *     CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I
 *     CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_16F); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_16F, __pyx_t_19) < (0)) __PYX_ERR(0, 1328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1329
 *     CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F
 *     CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F
 *     CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I             # <<<<<<<<<<<<<<
 *     CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U
 *     CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_8I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_8I, __pyx_t_19) < (0)) __PYX_ERR(0, 1329, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1330
 *     CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F
 *     CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I
 *     CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U             # <<<<<<<<<<<<<<
 *     CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U
 *     CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_8U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_8U, __pyx_t_19) < (0)) __PYX_ERR(0, 1330, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1331
 *     CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I
 *     CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U
 *     CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U             # <<<<<<<<<<<<<<
 *     CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I
 *     CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_8U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_8U, __pyx_t_19) < (0)) __PYX_ERR(0, 1331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1332
 *     CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U
 *     CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U
 *     CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I             # <<<<<<<<<<<<<<
 *     CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I
 *     CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_32I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_32I, __pyx_t_19) < (0)) __PYX_ERR(0, 1332, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1333
 *     CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U
 *     CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I
 *     CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I             # <<<<<<<<<<<<<<
 *     CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U
 *     CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_32I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_32I, __pyx_t_19) < (0)) __PYX_ERR(0, 1333, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1334
 *     CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I
 *     CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I
 *     CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U             # <<<<<<<<<<<<<<
 *     CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U
 *     CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_32U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_32U, __pyx_t_19) < (0)) __PYX_ERR(0, 1334, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1335
 *     CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I
 *     CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U
 *     CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U             # <<<<<<<<<<<<<<
 *     CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF
 *     CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_32U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_32U, __pyx_t_19) < (0)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1336
 *     CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U
 *     CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U
 *     CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF             # <<<<<<<<<<<<<<
 *     CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF
 *     CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_16BF); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_16BF, __pyx_t_19) < (0)) __PYX_ERR(0, 1336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1337
 *     CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U
 *     CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF
 *     CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF             # <<<<<<<<<<<<<<
 *     CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I
 *     CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_16BF); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_16BF, __pyx_t_19) < (0)) __PYX_ERR(0, 1337, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1338
 *     CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF
 *     CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF
 *     CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I             # <<<<<<<<<<<<<<
 *     CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I
 *     CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_4I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_4I, __pyx_t_19) < (0)) __PYX_ERR(0, 1338, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1339
 *     CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF
 *     CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I
 *     CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I             # <<<<<<<<<<<<<<
 *     CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U
 *     CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_4I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_4I, __pyx_t_19) < (0)) __PYX_ERR(0, 1339, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1340
 *     CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I
 *     CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I
 *     CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U             # <<<<<<<<<<<<<<
 *     CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U
 *     CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_4U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_4U, __pyx_t_19) < (0)) __PYX_ERR(0, 1340, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1341
 *     CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I
 *     CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U
 *     CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U             # <<<<<<<<<<<<<<
 *     CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I
 *     CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_4U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_4U, __pyx_t_19) < (0)) __PYX_ERR(0, 1341, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1342
 *     CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U
 *     CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U
 *     CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I             # <<<<<<<<<<<<<<
 *     CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I
 *     CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_16I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_16I, __pyx_t_19) < (0)) __PYX_ERR(0, 1342, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1343
 *     CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U
 *     CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I
 *     CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I             # <<<<<<<<<<<<<<
 *     CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U
 *     CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_16I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_16I, __pyx_t_19) < (0)) __PYX_ERR(0, 1343, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1344
 *     CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I
 *     CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I
 *     CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U             # <<<<<<<<<<<<<<
 *     CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U
 *     CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_16U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_16U, __pyx_t_19) < (0)) __PYX_ERR(0, 1344, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1345
 *     CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I
 *     CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U
 *     CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U             # <<<<<<<<<<<<<<
 *     CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I
 *     CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_16U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_16U, __pyx_t_19) < (0)) __PYX_ERR(0, 1345, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1346
 *     CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U
 *     CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U
 *     CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I             # <<<<<<<<<<<<<<
 *     CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I
 *     CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_64I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_64I, __pyx_t_19) < (0)) __PYX_ERR(0, 1346, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1347
 *     CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U
 *     CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I
 *     CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I             # <<<<<<<<<<<<<<
 *     CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U
 *     CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_64I); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_64I, __pyx_t_19) < (0)) __PYX_ERR(0, 1347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1348
 *     CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I
 *     CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I
 *     CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U             # <<<<<<<<<<<<<<
 *     CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U
 *     CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_64U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_64U, __pyx_t_19) < (0)) __PYX_ERR(0, 1348, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1349
 *     CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I
 *     CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U
 *     CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U             # <<<<<<<<<<<<<<
 *     CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3
 *     CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_C_64U); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_C_64U, __pyx_t_19) < (0)) __PYX_ERR(0, 1349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1350
 *     CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U
 *     CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U
 *     CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3             # <<<<<<<<<<<<<<
 *     CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3
 *     CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_8F_E4M3); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_8F_E4M3, __pyx_t_19) < (0)) __PYX_ERR(0, 1350, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1351
 *     CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U
 *     CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3
 *     CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3             # <<<<<<<<<<<<<<
 *     CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2
 *     CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_8F_UE4M3); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_8F_UE4M3, __pyx_t_19) < (0)) __PYX_ERR(0, 1351, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1352
 *     CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3
 *     CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3
 *     CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2             # <<<<<<<<<<<<<<
 *     CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0
 *     CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_8F_E5M2); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_8F_E5M2, __pyx_t_19) < (0)) __PYX_ERR(0, 1352, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1353
 *     CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3
 *     CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2
 *     CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0             # <<<<<<<<<<<<<<
 *     CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3
 *     CUDA_R_6F_E3M2 = cyruntime.cudaDataType_t.CUDA_R_6F_E3M2
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_8F_UE8M0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_8F_UE8M0, __pyx_t_19) < (0)) __PYX_ERR(0, 1353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1354
 *     CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2
 *     CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0
 *     CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3             # <<<<<<<<<<<<<<
 *     CUDA_R_6F_E3M2 = cyruntime.cudaDataType_t.CUDA_R_6F_E3M2
 *     CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_6F_E2M3); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_6F_E2M3, __pyx_t_19) < (0)) __PYX_ERR(0, 1354, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1355
 *     CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0
 *     CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3
 *     CUDA_R_6F_E3M2 = cyruntime.cudaDataType_t.CUDA_R_6F_E3M2             # <<<<<<<<<<<<<<
 *     CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_6F_E3M2); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_6F_E3M2, __pyx_t_19) < (0)) __PYX_ERR(0, 1355, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1356
 *     CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3
 *     CUDA_R_6F_E3M2 = cyruntime.cudaDataType_t.CUDA_R_6F_E3M2
 *     CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDataType = dict(((int(v), v) for k, v in cudaDataType.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDataType_t(CUDA_R_4F_E2M1); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_CUDA_R_4F_E2M1, __pyx_t_19) < (0)) __PYX_ERR(0, 1356, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1320
 * _dict_cudaLogLevel = dict(((int(v), v) for k, v in cudaLogLevel.__members__.items()))
 * 
 * class cudaDataType(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDataType, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDataType, __pyx_t_19) < (0)) __PYX_ERR(0, 1320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1358
 *     CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1
 * 
 * _dict_cudaDataType = dict(((int(v), v) for k, v in cudaDataType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationStrategy(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDataType); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_693genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDataType, __pyx_t_4) < (0)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1360
 * _dict_cudaDataType = dict(((int(v), v) for k, v in cudaDataType.__members__.items()))
 * 
 * class cudaEmulationStrategy(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     CUDA_EMULATION_STRATEGY_DEFAULT = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_DEFAULT
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEmulationStrategy, __pyx_mstate_global->__pyx_n_u_cudaEmulationStrategy, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, (PyObject *) NULL); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 1360, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1362
 * class cudaEmulationStrategy(IntEnum):
 *     """"""
 *     CUDA_EMULATION_STRATEGY_DEFAULT = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_DEFAULT             # <<<<<<<<<<<<<<
 *     CUDA_EMULATION_STRATEGY_PERFORMANT = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_PERFORMANT
 *     CUDA_EMULATION_STRATEGY_EAGER = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_EAGER
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaEmulationStrategy_t(CUDA_EMULATION_STRATEGY_DEFAULT); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_STRATEGY_DEFAULT, __pyx_t_18) < (0)) __PYX_ERR(0, 1362, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1363
 *     """"""
 *     CUDA_EMULATION_STRATEGY_DEFAULT = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_DEFAULT
 *     CUDA_EMULATION_STRATEGY_PERFORMANT = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_PERFORMANT             # <<<<<<<<<<<<<<
 *     CUDA_EMULATION_STRATEGY_EAGER = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_EAGER
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaEmulationStrategy_t(CUDA_EMULATION_STRATEGY_PERFORMANT); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_STRATEGY_PERFORMA, __pyx_t_18) < (0)) __PYX_ERR(0, 1363, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1364
 *     CUDA_EMULATION_STRATEGY_DEFAULT = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_DEFAULT
 *     CUDA_EMULATION_STRATEGY_PERFORMANT = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_PERFORMANT
 *     CUDA_EMULATION_STRATEGY_EAGER = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_EAGER             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaEmulationStrategy = dict(((int(v), v) for k, v in cudaEmulationStrategy.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaEmulationStrategy_t(CUDA_EMULATION_STRATEGY_EAGER); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_STRATEGY_EAGER, __pyx_t_18) < (0)) __PYX_ERR(0, 1364, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1360
 * _dict_cudaDataType = dict(((int(v), v) for k, v in cudaDataType.__members__.items()))
 * 
 * class cudaEmulationStrategy(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     CUDA_EMULATION_STRATEGY_DEFAULT = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_DEFAULT
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaEmulationStrategy, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEmulationStrategy, __pyx_t_18) < (0)) __PYX_ERR(0, 1360, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1366
 *     CUDA_EMULATION_STRATEGY_EAGER = cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_EAGER
 * 
 * _dict_cudaEmulationStrategy = dict(((int(v), v) for k, v in cudaEmulationStrategy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationMantissaControl(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEmulationStrategy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_696genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaEmulationStrategy, __pyx_t_20) < (0)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1368
 * _dict_cudaEmulationStrategy = dict(((int(v), v) for k, v in cudaEmulationStrategy.__members__.items()))
 * 
 * class cudaEmulationMantissaControl(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaEmulationMantissaControl, __pyx_mstate_global->__pyx_n_u_cudaEmulationMantissaControl, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, (PyObject *) NULL); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1368, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1370
 * class cudaEmulationMantissaControl(IntEnum):
 *     """"""
 *     CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC             # <<<<<<<<<<<<<<
 *     CUDA_EMULATION_MANTISSA_CONTROL_FIXED = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_FIXED
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaEmulationMantissaControl_t(CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_MANTISSA_CONTROL, __pyx_t_4) < (0)) __PYX_ERR(0, 1370, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1371
 *     """"""
 *     CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC
 *     CUDA_EMULATION_MANTISSA_CONTROL_FIXED = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_FIXED             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaEmulationMantissaControl = dict(((int(v), v) for k, v in cudaEmulationMantissaControl.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaEmulationMantissaControl_t(CUDA_EMULATION_MANTISSA_CONTROL_FIXED); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_MANTISSA_CONTROL_2, __pyx_t_4) < (0)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1368
 * _dict_cudaEmulationStrategy = dict(((int(v), v) for k, v in cudaEmulationStrategy.__members__.items()))
 * 
 * class cudaEmulationMantissaControl(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaEmulationMantissaControl, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEmulationMantissaControl, __pyx_t_4) < (0)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1373
 *     CUDA_EMULATION_MANTISSA_CONTROL_FIXED = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_FIXED
 * 
 * _dict_cudaEmulationMantissaControl = dict(((int(v), v) for k, v in cudaEmulationMantissaControl.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEmulationSpecialValuesSupport(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaEmulationMantissaControl); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_699genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaEmulationMantissaContr, __pyx_t_19) < (0)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1375
 * _dict_cudaEmulationMantissaControl = dict(((int(v), v) for k, v in cudaEmulationMantissaControl.__members__.items()))
 * 
 * class cudaEmulationSpecialValuesSupport(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaEmulationSpecialValuesSuppor, __pyx_mstate_global->__pyx_n_u_cudaEmulationSpecialValuesSuppor, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, (PyObject *) NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 1375, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1377
 * class cudaEmulationSpecialValuesSupport(IntEnum):
 *     """"""
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE             # <<<<<<<<<<<<<<
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaEmulationSpecialValuesSupport_t(CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_SPECIAL_VALUES_SU, __pyx_t_20) < (0)) __PYX_ERR(0, 1377, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1378
 *     """"""
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY             # <<<<<<<<<<<<<<
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaEmulationSpecialValuesSupport_t(CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_SPECIAL_VALUES_SU_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1378, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1379
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN             # <<<<<<<<<<<<<<
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT
 * 
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaEmulationSpecialValuesSupport_t(CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_SPECIAL_VALUES_SU_3, __pyx_t_20) < (0)) __PYX_ERR(0, 1379, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1380
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaEmulationSpecialValuesSupport = dict(((int(v), v) for k, v in cudaEmulationSpecialValuesSupport.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaEmulationSpecialValuesSupport_t(CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_CUDA_EMULATION_SPECIAL_VALUES_SU_4, __pyx_t_20) < (0)) __PYX_ERR(0, 1380, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1375
 * _dict_cudaEmulationMantissaControl = dict(((int(v), v) for k, v in cudaEmulationMantissaControl.__members__.items()))
 * 
 * class cudaEmulationSpecialValuesSupport(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaEmulationSpecialValuesSuppor, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEmulationSpecialValuesSuppor, __pyx_t_20) < (0)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1382
 *     CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT
 * 
 * _dict_cudaEmulationSpecialValuesSupport = dict(((int(v), v) for k, v in cudaEmulationSpecialValuesSupport.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class libraryPropertyType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaEmulationSpecialValuesSuppor); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_702genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaEmulationSpecialValues, __pyx_t_18) < (0)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1384
 * _dict_cudaEmulationSpecialValuesSupport = dict(((int(v), v) for k, v in cudaEmulationSpecialValuesSupport.__members__.items()))
 * 
 * class libraryPropertyType(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_libraryPropertyType, __pyx_mstate_global->__pyx_n_u_libraryPropertyType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, (PyObject *) NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 1384, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1386
 * class libraryPropertyType(IntEnum):
 *     """"""
 *     MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION             # <<<<<<<<<<<<<<
 *     MINOR_VERSION = cyruntime.libraryPropertyType_t.MINOR_VERSION
 *     PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__libraryPropertyType_t(MAJOR_VERSION); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_MAJOR_VERSION, __pyx_t_19) < (0)) __PYX_ERR(0, 1386, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1387
 *     """"""
 *     MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION
 *     MINOR_VERSION = cyruntime.libraryPropertyType_t.MINOR_VERSION             # <<<<<<<<<<<<<<
 *     PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__libraryPropertyType_t(MINOR_VERSION); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_MINOR_VERSION, __pyx_t_19) < (0)) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1388
 *     MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION
 *     MINOR_VERSION = cyruntime.libraryPropertyType_t.MINOR_VERSION
 *     PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL             # <<<<<<<<<<<<<<
 * 
 * _dict_libraryPropertyType = dict(((int(v), v) for k, v in libraryPropertyType.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__libraryPropertyType_t(PATCH_LEVEL); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_PATCH_LEVEL, __pyx_t_19) < (0)) __PYX_ERR(0, 1388, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1384
 * _dict_cudaEmulationSpecialValuesSupport = dict(((int(v), v) for k, v in cudaEmulationSpecialValuesSupport.__members__.items()))
 * 
 * class libraryPropertyType(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_libraryPropertyType, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_libraryPropertyType, __pyx_t_19) < (0)) __PYX_ERR(0, 1384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1390
 *     PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL
 * 
 * _dict_libraryPropertyType = dict(((int(v), v) for k, v in libraryPropertyType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglFrameType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_libraryPropertyType); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_705genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_libraryPropertyType, __pyx_t_4) < (0)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1392
 * _dict_libraryPropertyType = dict(((int(v), v) for k, v in libraryPropertyType.__members__.items()))
 * 
 * class cudaEglFrameType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EglFrame type - array or pointer
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglFrameType, __pyx_mstate_global->__pyx_n_u_cudaEglFrameType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_EglFrame_type_array_or_poi); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 1392, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1398
 * 
 *     #: Frame type CUDA array
 *     cudaEglFrameTypeArray = cyruntime.cudaEglFrameType_enum.cudaEglFrameTypeArray             # <<<<<<<<<<<<<<
 * 
 *     #: Frame type CUDA pointer
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglFrameTypeArray); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaEglFrameTypeArray, __pyx_t_18) < (0)) __PYX_ERR(0, 1398, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1401
 * 
 *     #: Frame type CUDA pointer
 *     cudaEglFrameTypePitch = cyruntime.cudaEglFrameType_enum.cudaEglFrameTypePitch             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaEglFrameType = dict(((int(v), v) for k, v in cudaEglFrameType.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglFrameTypePitch); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaEglFrameTypePitch, __pyx_t_18) < (0)) __PYX_ERR(0, 1401, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1392
 * _dict_libraryPropertyType = dict(((int(v), v) for k, v in libraryPropertyType.__members__.items()))
 * 
 * class cudaEglFrameType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EglFrame type - array or pointer
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaEglFrameType, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEglFrameType, __pyx_t_18) < (0)) __PYX_ERR(0, 1392, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1403
 *     cudaEglFrameTypePitch = cyruntime.cudaEglFrameType_enum.cudaEglFrameTypePitch
 * 
 * _dict_cudaEglFrameType = dict(((int(v), v) for k, v in cudaEglFrameType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglResourceLocationFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglFrameType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_708genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaEglFrameType, __pyx_t_20) < (0)) __PYX_ERR(0, 1403, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1405
 * _dict_cudaEglFrameType = dict(((int(v), v) for k, v in cudaEglFrameType.__members__.items()))
 * 
 * class cudaEglResourceLocationFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Resource location flags- sysmem or vidmem  For CUDA context on
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaEglResourceLocationFlags, __pyx_mstate_global->__pyx_n_u_cudaEglResourceLocationFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Resource_location_flags_sysmem); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 1405, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1421
 * 
 *     #: Resource location sysmem
 *     cudaEglResourceLocationSysmem = cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationSysmem             # <<<<<<<<<<<<<<
 * 
 *     #: Resource location vidmem
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglResourceLocationSysmem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaEglResourceLocationSysmem, __pyx_t_4) < (0)) __PYX_ERR(0, 1421, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1424
 * 
 *     #: Resource location vidmem
 *     cudaEglResourceLocationVidmem = cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaEglResourceLocationFlags = dict(((int(v), v) for k, v in cudaEglResourceLocationFlags.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglResourceLocationVidmem); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaEglResourceLocationVidmem, __pyx_t_4) < (0)) __PYX_ERR(0, 1424, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1405
 * _dict_cudaEglFrameType = dict(((int(v), v) for k, v in cudaEglFrameType.__members__.items()))
 * 
 * class cudaEglResourceLocationFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Resource location flags- sysmem or vidmem  For CUDA context on
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaEglResourceLocationFlags, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEglResourceLocationFlags, __pyx_t_4) < (0)) __PYX_ERR(0, 1405, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1426
 *     cudaEglResourceLocationVidmem = cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem
 * 
 * _dict_cudaEglResourceLocationFlags = dict(((int(v), v) for k, v in cudaEglResourceLocationFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaEglColorFormat(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaEglResourceLocationFlags); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_711genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaEglResourceLocationFla, __pyx_t_19) < (0)) __PYX_ERR(0, 1426, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1428
 * _dict_cudaEglResourceLocationFlags = dict(((int(v), v) for k, v in cudaEglResourceLocationFlags.__members__.items()))
 * 
 * class cudaEglColorFormat(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGL Color Format - The different planar and multiplanar
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormat, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormat, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_EGL_Color_Format_The_diffe); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 1428, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1436
 *     #: Y, U, V in three surfaces, each in a separate surface, U/V width =
 *     #: 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYUV420Planar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, UV in two surfaces (UV as one surface) with VU byte ordering,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420Planar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV420Planar, __pyx_t_20) < (0)) __PYX_ERR(0, 1436, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1440
 *     #: Y, UV in two surfaces (UV as one surface) with VU byte ordering,
 *     #: width, height ratio same as YUV420Planar.
 *     cudaEglColorFormatYUV420SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV420SemiPlan, __pyx_t_20) < (0)) __PYX_ERR(0, 1440, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1444
 *     #: Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V
 *     #: height = Y height.
 *     cudaEglColorFormatYUV422Planar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422Planar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, UV in two surfaces with VU byte ordering, width, height ratio
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV422Planar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV422Planar, __pyx_t_20) < (0)) __PYX_ERR(0, 1444, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1448
 *     #: Y, UV in two surfaces with VU byte ordering, width, height ratio
 *     #: same as YUV422Planar.
 *     cudaEglColorFormatYUV422SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: R/G/B/A four channels in one surface with BGRA byte ordering.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV422SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV422SemiPlan, __pyx_t_20) < (0)) __PYX_ERR(0, 1448, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1451
 * 
 *     #: R/G/B/A four channels in one surface with BGRA byte ordering.
 *     cudaEglColorFormatARGB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatARGB             # <<<<<<<<<<<<<<
 * 
 *     #: R/G/B/A four channels in one surface with ABGR byte ordering.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatARGB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatARGB, __pyx_t_20) < (0)) __PYX_ERR(0, 1451, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1454
 * 
 *     #: R/G/B/A four channels in one surface with ABGR byte ordering.
 *     cudaEglColorFormatRGBA = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatRGBA             # <<<<<<<<<<<<<<
 * 
 *     #: single luminance channel in one surface.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatRGBA); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatRGBA, __pyx_t_20) < (0)) __PYX_ERR(0, 1454, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1457
 * 
 *     #: single luminance channel in one surface.
 *     cudaEglColorFormatL = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatL             # <<<<<<<<<<<<<<
 * 
 *     #: single color channel in one surface.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatL, __pyx_t_20) < (0)) __PYX_ERR(0, 1457, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1460
 * 
 *     #: single color channel in one surface.
 *     cudaEglColorFormatR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatR             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in three surfaces, each in a separate surface, U/V width = Y
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatR, __pyx_t_20) < (0)) __PYX_ERR(0, 1460, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1464
 *     #: Y, U, V in three surfaces, each in a separate surface, U/V width = Y
 *     #: width, U/V height = Y height.
 *     cudaEglColorFormatYUV444Planar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444Planar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, UV in two surfaces (UV as one surface) with VU byte ordering,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV444Planar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV444Planar, __pyx_t_20) < (0)) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1468
 *     #: Y, UV in two surfaces (UV as one surface) with VU byte ordering,
 *     #: width, height ratio same as YUV444Planar.
 *     cudaEglColorFormatYUV444SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in one surface, interleaved as UYVY in one channel.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV444SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV444SemiPlan, __pyx_t_20) < (0)) __PYX_ERR(0, 1468, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1471
 * 
 *     #: Y, U, V in one surface, interleaved as UYVY in one channel.
 *     cudaEglColorFormatYUYV422 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUYV422             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in one surface, interleaved as YUYV in one channel.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUYV422); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUYV422, __pyx_t_20) < (0)) __PYX_ERR(0, 1471, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1474
 * 
 *     #: Y, U, V in one surface, interleaved as YUYV in one channel.
 *     cudaEglColorFormatUYVY422 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY422             # <<<<<<<<<<<<<<
 * 
 *     #: R/G/B/A four channels in one surface with RGBA byte ordering.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY422); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatUYVY422, __pyx_t_20) < (0)) __PYX_ERR(0, 1474, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1477
 * 
 *     #: R/G/B/A four channels in one surface with RGBA byte ordering.
 *     cudaEglColorFormatABGR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatABGR             # <<<<<<<<<<<<<<
 * 
 *     #: R/G/B/A four channels in one surface with ARGB byte ordering.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatABGR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatABGR, __pyx_t_20) < (0)) __PYX_ERR(0, 1477, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1480
 * 
 *     #: R/G/B/A four channels in one surface with ARGB byte ordering.
 *     cudaEglColorFormatBGRA = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBGRA             # <<<<<<<<<<<<<<
 * 
 *     #: Alpha color format - one channel in one surface.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBGRA); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBGRA, __pyx_t_20) < (0)) __PYX_ERR(0, 1480, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1483
 * 
 *     #: Alpha color format - one channel in one surface.
 *     cudaEglColorFormatA = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatA             # <<<<<<<<<<<<<<
 * 
 *     #: R/G color format - two channels in one surface with GR byte ordering
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatA); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatA, __pyx_t_20) < (0)) __PYX_ERR(0, 1483, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1486
 * 
 *     #: R/G color format - two channels in one surface with GR byte ordering
 *     cudaEglColorFormatRG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatRG             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V, A four channels in one surface, interleaved as VUYA.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatRG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatRG, __pyx_t_20) < (0)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1489
 * 
 *     #: Y, U, V, A four channels in one surface, interleaved as VUYA.
 *     cudaEglColorFormatAYUV = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatAYUV             # <<<<<<<<<<<<<<
 * 
 *     #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatAYUV); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatAYUV, __pyx_t_20) < (0)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1493
 *     #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V
 *     #: width = Y width, U/V height = Y height.
 *     cudaEglColorFormatYVU444SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU444SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU444SemiPlan, __pyx_t_20) < (0)) __PYX_ERR(0, 1493, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1497
 *     #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V
 *     #: width = 1/2 Y width, U/V height = Y height.
 *     cudaEglColorFormatYVU422SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU422SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU422SemiPlan, __pyx_t_20) < (0)) __PYX_ERR(0, 1497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1501
 *     #: Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V
 *     #: width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYVU420SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y10, V10U10 in two surfaces (VU as one surface) with UV byte
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU420SemiPlan, __pyx_t_20) < (0)) __PYX_ERR(0, 1501, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1505
 *     #: Y10, V10U10 in two surfaces (VU as one surface) with UV byte
 *     #: ordering, U/V width = Y width, U/V height = Y height.
 *     cudaEglColorFormatY10V10U10_444SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y10, V10U10 in two surfaces (VU as one surface) with UV byte
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_444SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_444S, __pyx_t_20) < (0)) __PYX_ERR(0, 1505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1509
 *     #: Y10, V10U10 in two surfaces (VU as one surface) with UV byte
 *     #: ordering, U/V width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatY10V10U10_420SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y12, V12U12 in two surfaces (VU as one surface) with UV byte
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_420S, __pyx_t_20) < (0)) __PYX_ERR(0, 1509, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1513
 *     #: Y12, V12U12 in two surfaces (VU as one surface) with UV byte
 *     #: ordering, U/V width = Y width, U/V height = Y height.
 *     cudaEglColorFormatY12V12U12_444SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y12, V12U12 in two surfaces (VU as one surface) with UV byte
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_444SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY12V12U12_444S, __pyx_t_20) < (0)) __PYX_ERR(0, 1513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1517
 *     #: Y12, V12U12 in two surfaces (VU as one surface) with UV byte
 *     #: ordering, U/V width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatY12V12U12_420SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V in one surface, interleaved as YVYU in one
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_420SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY12V12U12_420S, __pyx_t_20) < (0)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1521
 *     #: Extended Range Y, U, V in one surface, interleaved as YVYU in one
 *     #: channel.
 *     cudaEglColorFormatVYUY_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatVYUY_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V in one surface, interleaved as YUYV in one
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatVYUY_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatVYUY_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1521, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1525
 *     #: Extended Range Y, U, V in one surface, interleaved as YUYV in one
 *     #: channel.
 *     cudaEglColorFormatUYVY_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V in one surface, interleaved as UYVY in one
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatUYVY_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1525, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1529
 *     #: Extended Range Y, U, V in one surface, interleaved as UYVY in one
 *     #: channel.
 *     cudaEglColorFormatYUYV_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUYV_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V in one surface, interleaved as VYUY in one
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUYV_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUYV_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1529, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1533
 *     #: Extended Range Y, U, V in one surface, interleaved as VYUY in one
 *     #: channel.
 *     cudaEglColorFormatYVYU_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVYU_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V, A four channels in one surface, interleaved
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVYU_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVYU_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1537
 *     #: Extended Range Y, U, V, A four channels in one surface, interleaved
 *     #: as AVUY.
 *     cudaEglColorFormatYUVA_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUVA_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V, A four channels in one surface, interleaved
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUVA_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUVA_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1537, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1541
 *     #: Extended Range Y, U, V, A four channels in one surface, interleaved
 *     #: as VUYA.
 *     cudaEglColorFormatAYUV_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatAYUV_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V in three surfaces, U/V width = Y width, U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatAYUV_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatAYUV_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1541, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1545
 *     #: Extended Range Y, U, V in three surfaces, U/V width = Y width, U/V
 *     #: height = Y height.
 *     cudaEglColorFormatYUV444Planar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444Planar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV444Planar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV444Planar_E, __pyx_t_20) < (0)) __PYX_ERR(0, 1545, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1549
 *     #: Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width,
 *     #: U/V height = Y height.
 *     cudaEglColorFormatYUV422Planar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422Planar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV422Planar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV422Planar_E, __pyx_t_20) < (0)) __PYX_ERR(0, 1549, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1553
 *     #: Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width,
 *     #: U/V height = 1/2 Y height.
 *     cudaEglColorFormatYUV420Planar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, UV in two surfaces (UV as one surface) with VU
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420Planar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV420Planar_E, __pyx_t_20) < (0)) __PYX_ERR(0, 1553, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1557
 *     #: Extended Range Y, UV in two surfaces (UV as one surface) with VU
 *     #: byte ordering, U/V width = Y width, U/V height = Y height.
 *     cudaEglColorFormatYUV444SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, UV in two surfaces (UV as one surface) with VU
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV444SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV444SemiPlan_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1557, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1561
 *     #: Extended Range Y, UV in two surfaces (UV as one surface) with VU
 *     #: byte ordering, U/V width = 1/2 Y width, U/V height = Y height.
 *     cudaEglColorFormatYUV422SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, UV in two surfaces (UV as one surface) with VU
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV422SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV422SemiPlan_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1561, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1565
 *     #: Extended Range Y, UV in two surfaces (UV as one surface) with VU
 *     #: byte ordering, U/V width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYUV420SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, V, U in three surfaces, U/V width = Y width, U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV420SemiPlan_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1565, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1569
 *     #: Extended Range Y, V, U in three surfaces, U/V width = Y width, U/V
 *     #: height = Y height.
 *     cudaEglColorFormatYVU444Planar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444Planar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU444Planar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU444Planar_E, __pyx_t_20) < (0)) __PYX_ERR(0, 1569, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1573
 *     #: Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width,
 *     #: U/V height = Y height.
 *     cudaEglColorFormatYVU422Planar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422Planar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU422Planar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU422Planar_E, __pyx_t_20) < (0)) __PYX_ERR(0, 1573, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1577
 *     #: Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width,
 *     #: U/V height = 1/2 Y height.
 *     cudaEglColorFormatYVU420Planar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, VU in two surfaces (VU as one surface) with UV
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420Planar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU420Planar_E, __pyx_t_20) < (0)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1581
 *     #: Extended Range Y, VU in two surfaces (VU as one surface) with UV
 *     #: byte ordering, U/V width = Y width, U/V height = Y height.
 *     cudaEglColorFormatYVU444SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, VU in two surfaces (VU as one surface) with UV
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU444SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU444SemiPlan_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1581, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1585
 *     #: Extended Range Y, VU in two surfaces (VU as one surface) with UV
 *     #: byte ordering, U/V width = 1/2 Y width, U/V height = Y height.
 *     cudaEglColorFormatYVU422SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, VU in two surfaces (VU as one surface) with UV
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU422SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU422SemiPlan_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1589
 *     #: Extended Range Y, VU in two surfaces (VU as one surface) with UV
 *     #: byte ordering, U/V width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYVU420SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer format - one channel in one surface with interleaved RGGB
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU420SemiPlan_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1593
 *     #: Bayer format - one channel in one surface with interleaved RGGB
 *     #: ordering.
 *     cudaEglColorFormatBayerRGGB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerRGGB             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer format - one channel in one surface with interleaved BGGR
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerRGGB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerRGGB, __pyx_t_20) < (0)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1597
 *     #: Bayer format - one channel in one surface with interleaved BGGR
 *     #: ordering.
 *     cudaEglColorFormatBayerBGGR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerBGGR             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer format - one channel in one surface with interleaved GRBG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerBGGR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerBGGR, __pyx_t_20) < (0)) __PYX_ERR(0, 1597, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1601
 *     #: Bayer format - one channel in one surface with interleaved GRBG
 *     #: ordering.
 *     cudaEglColorFormatBayerGRBG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerGRBG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer format - one channel in one surface with interleaved GBRG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerGRBG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerGRBG, __pyx_t_20) < (0)) __PYX_ERR(0, 1601, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1605
 *     #: Bayer format - one channel in one surface with interleaved GBRG
 *     #: ordering.
 *     cudaEglColorFormatBayerGBRG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerGBRG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer10 format - one channel in one surface with interleaved RGGB
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerGBRG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerGBRG, __pyx_t_20) < (0)) __PYX_ERR(0, 1605, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1609
 *     #: Bayer10 format - one channel in one surface with interleaved RGGB
 *     #: ordering. Out of 16 bits, 10 bits used 6 bits No-op.
 *     cudaEglColorFormatBayer10RGGB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10RGGB             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer10 format - one channel in one surface with interleaved BGGR
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10RGGB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer10RGGB, __pyx_t_20) < (0)) __PYX_ERR(0, 1609, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1613
 *     #: Bayer10 format - one channel in one surface with interleaved BGGR
 *     #: ordering. Out of 16 bits, 10 bits used 6 bits No-op.
 *     cudaEglColorFormatBayer10BGGR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10BGGR             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer10 format - one channel in one surface with interleaved GRBG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10BGGR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer10BGGR, __pyx_t_20) < (0)) __PYX_ERR(0, 1613, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1617
 *     #: Bayer10 format - one channel in one surface with interleaved GRBG
 *     #: ordering. Out of 16 bits, 10 bits used 6 bits No-op.
 *     cudaEglColorFormatBayer10GRBG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10GRBG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer10 format - one channel in one surface with interleaved GBRG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10GRBG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer10GRBG, __pyx_t_20) < (0)) __PYX_ERR(0, 1617, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1621
 *     #: Bayer10 format - one channel in one surface with interleaved GBRG
 *     #: ordering. Out of 16 bits, 10 bits used 6 bits No-op.
 *     cudaEglColorFormatBayer10GBRG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10GBRG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved RGGB
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10GBRG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer10GBRG, __pyx_t_20) < (0)) __PYX_ERR(0, 1621, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1625
 *     #: Bayer12 format - one channel in one surface with interleaved RGGB
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12RGGB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12RGGB             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved BGGR
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12RGGB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12RGGB, __pyx_t_20) < (0)) __PYX_ERR(0, 1625, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1629
 *     #: Bayer12 format - one channel in one surface with interleaved BGGR
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12BGGR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12BGGR             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved GRBG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12BGGR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12BGGR, __pyx_t_20) < (0)) __PYX_ERR(0, 1629, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1633
 *     #: Bayer12 format - one channel in one surface with interleaved GRBG
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12GRBG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12GRBG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved GBRG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12GRBG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12GRBG, __pyx_t_20) < (0)) __PYX_ERR(0, 1633, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1637
 *     #: Bayer12 format - one channel in one surface with interleaved GBRG
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12GBRG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12GBRG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer14 format - one channel in one surface with interleaved RGGB
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12GBRG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12GBRG, __pyx_t_20) < (0)) __PYX_ERR(0, 1637, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1641
 *     #: Bayer14 format - one channel in one surface with interleaved RGGB
 *     #: ordering. Out of 16 bits, 14 bits used 2 bits No-op.
 *     cudaEglColorFormatBayer14RGGB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14RGGB             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer14 format - one channel in one surface with interleaved BGGR
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer14RGGB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer14RGGB, __pyx_t_20) < (0)) __PYX_ERR(0, 1641, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1645
 *     #: Bayer14 format - one channel in one surface with interleaved BGGR
 *     #: ordering. Out of 16 bits, 14 bits used 2 bits No-op.
 *     cudaEglColorFormatBayer14BGGR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14BGGR             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer14 format - one channel in one surface with interleaved GRBG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer14BGGR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer14BGGR, __pyx_t_20) < (0)) __PYX_ERR(0, 1645, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1649
 *     #: Bayer14 format - one channel in one surface with interleaved GRBG
 *     #: ordering. Out of 16 bits, 14 bits used 2 bits No-op.
 *     cudaEglColorFormatBayer14GRBG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14GRBG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer14 format - one channel in one surface with interleaved GBRG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer14GRBG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer14GRBG, __pyx_t_20) < (0)) __PYX_ERR(0, 1649, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1653
 *     #: Bayer14 format - one channel in one surface with interleaved GBRG
 *     #: ordering. Out of 16 bits, 14 bits used 2 bits No-op.
 *     cudaEglColorFormatBayer14GBRG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14GBRG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer20 format - one channel in one surface with interleaved RGGB
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer14GBRG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer14GBRG, __pyx_t_20) < (0)) __PYX_ERR(0, 1653, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1657
 *     #: Bayer20 format - one channel in one surface with interleaved RGGB
 *     #: ordering. Out of 32 bits, 20 bits used 12 bits No-op.
 *     cudaEglColorFormatBayer20RGGB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20RGGB             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer20 format - one channel in one surface with interleaved BGGR
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer20RGGB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer20RGGB, __pyx_t_20) < (0)) __PYX_ERR(0, 1657, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1661
 *     #: Bayer20 format - one channel in one surface with interleaved BGGR
 *     #: ordering. Out of 32 bits, 20 bits used 12 bits No-op.
 *     cudaEglColorFormatBayer20BGGR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20BGGR             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer20 format - one channel in one surface with interleaved GRBG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer20BGGR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer20BGGR, __pyx_t_20) < (0)) __PYX_ERR(0, 1661, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1665
 *     #: Bayer20 format - one channel in one surface with interleaved GRBG
 *     #: ordering. Out of 32 bits, 20 bits used 12 bits No-op.
 *     cudaEglColorFormatBayer20GRBG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20GRBG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer20 format - one channel in one surface with interleaved GBRG
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer20GRBG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer20GRBG, __pyx_t_20) < (0)) __PYX_ERR(0, 1665, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1669
 *     #: Bayer20 format - one channel in one surface with interleaved GBRG
 *     #: ordering. Out of 32 bits, 20 bits used 12 bits No-op.
 *     cudaEglColorFormatBayer20GBRG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20GBRG             # <<<<<<<<<<<<<<
 * 
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width = Y
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer20GBRG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer20GBRG, __pyx_t_20) < (0)) __PYX_ERR(0, 1669, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1673
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width = Y
 *     #: width, U/V height = Y height.
 *     cudaEglColorFormatYVU444Planar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444Planar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width =
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU444Planar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1673, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU444Planar, __pyx_t_20) < (0)) __PYX_ERR(0, 1673, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1677
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width =
 *     #: 1/2 Y width, U/V height = Y height.
 *     cudaEglColorFormatYVU422Planar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422Planar             # <<<<<<<<<<<<<<
 * 
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width =
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU422Planar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU422Planar, __pyx_t_20) < (0)) __PYX_ERR(0, 1677, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1681
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width =
 *     #: 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYVU420Planar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar             # <<<<<<<<<<<<<<
 * 
 *     #: Nvidia proprietary Bayer ISP format - one channel in one surface
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420Planar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU420Planar, __pyx_t_20) < (0)) __PYX_ERR(0, 1681, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1686
 *     #: with interleaved RGGB ordering and mapped to opaque integer
 *     #: datatype.
 *     cudaEglColorFormatBayerIspRGGB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspRGGB             # <<<<<<<<<<<<<<
 * 
 *     #: Nvidia proprietary Bayer ISP format - one channel in one surface
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerIspRGGB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerIspRGGB, __pyx_t_20) < (0)) __PYX_ERR(0, 1686, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1691
 *     #: with interleaved BGGR ordering and mapped to opaque integer
 *     #: datatype.
 *     cudaEglColorFormatBayerIspBGGR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspBGGR             # <<<<<<<<<<<<<<
 * 
 *     #: Nvidia proprietary Bayer ISP format - one channel in one surface
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerIspBGGR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerIspBGGR, __pyx_t_20) < (0)) __PYX_ERR(0, 1691, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1696
 *     #: with interleaved GRBG ordering and mapped to opaque integer
 *     #: datatype.
 *     cudaEglColorFormatBayerIspGRBG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspGRBG             # <<<<<<<<<<<<<<
 * 
 *     #: Nvidia proprietary Bayer ISP format - one channel in one surface
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerIspGRBG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerIspGRBG, __pyx_t_20) < (0)) __PYX_ERR(0, 1696, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1701
 *     #: with interleaved GBRG ordering and mapped to opaque integer
 *     #: datatype.
 *     cudaEglColorFormatBayerIspGBRG = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspGBRG             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer format - one channel in one surface with interleaved BCCR
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerIspGBRG); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerIspGBRG, __pyx_t_20) < (0)) __PYX_ERR(0, 1701, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1705
 *     #: Bayer format - one channel in one surface with interleaved BCCR
 *     #: ordering.
 *     cudaEglColorFormatBayerBCCR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerBCCR             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer format - one channel in one surface with interleaved RCCB
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerBCCR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerBCCR, __pyx_t_20) < (0)) __PYX_ERR(0, 1705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1709
 *     #: Bayer format - one channel in one surface with interleaved RCCB
 *     #: ordering.
 *     cudaEglColorFormatBayerRCCB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerRCCB             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer format - one channel in one surface with interleaved CRBC
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerRCCB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerRCCB, __pyx_t_20) < (0)) __PYX_ERR(0, 1709, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1713
 *     #: Bayer format - one channel in one surface with interleaved CRBC
 *     #: ordering.
 *     cudaEglColorFormatBayerCRBC = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerCRBC             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer format - one channel in one surface with interleaved CBRC
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerCRBC); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerCRBC, __pyx_t_20) < (0)) __PYX_ERR(0, 1713, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1717
 *     #: Bayer format - one channel in one surface with interleaved CBRC
 *     #: ordering.
 *     cudaEglColorFormatBayerCBRC = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerCBRC             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer10 format - one channel in one surface with interleaved CCCC
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayerCBRC); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayerCBRC, __pyx_t_20) < (0)) __PYX_ERR(0, 1717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1721
 *     #: Bayer10 format - one channel in one surface with interleaved CCCC
 *     #: ordering. Out of 16 bits, 10 bits used 6 bits No-op.
 *     cudaEglColorFormatBayer10CCCC = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10CCCC             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved BCCR
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer10CCCC); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer10CCCC, __pyx_t_20) < (0)) __PYX_ERR(0, 1721, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1725
 *     #: Bayer12 format - one channel in one surface with interleaved BCCR
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12BCCR = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12BCCR             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved RCCB
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12BCCR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12BCCR, __pyx_t_20) < (0)) __PYX_ERR(0, 1725, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1729
 *     #: Bayer12 format - one channel in one surface with interleaved RCCB
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12RCCB = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12RCCB             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved CRBC
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12RCCB); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12RCCB, __pyx_t_20) < (0)) __PYX_ERR(0, 1729, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1733
 *     #: Bayer12 format - one channel in one surface with interleaved CRBC
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12CRBC = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CRBC             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved CBRC
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12CRBC); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12CRBC, __pyx_t_20) < (0)) __PYX_ERR(0, 1733, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1737
 *     #: Bayer12 format - one channel in one surface with interleaved CBRC
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12CBRC = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CBRC             # <<<<<<<<<<<<<<
 * 
 *     #: Bayer12 format - one channel in one surface with interleaved CCCC
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12CBRC); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1737, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12CBRC, __pyx_t_20) < (0)) __PYX_ERR(0, 1737, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1741
 *     #: Bayer12 format - one channel in one surface with interleaved CCCC
 *     #: ordering. Out of 16 bits, 12 bits used 4 bits No-op.
 *     cudaEglColorFormatBayer12CCCC = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CCCC             # <<<<<<<<<<<<<<
 * 
 *     #: Color format for single Y plane.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatBayer12CCCC); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatBayer12CCCC, __pyx_t_20) < (0)) __PYX_ERR(0, 1741, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1744
 * 
 *     #: Color format for single Y plane.
 *     cudaEglColorFormatY = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY             # <<<<<<<<<<<<<<
 * 
 *     #: Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY, __pyx_t_20) < (0)) __PYX_ERR(0, 1744, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1748
 *     #: Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width,
 *     #: U/V height = 1/2 Y height.
 *     cudaEglColorFormatYUV420SemiPlanar_2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_2020             # <<<<<<<<<<<<<<
 * 
 *     #: Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420SemiPlanar_2020); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV420SemiPlan_3, __pyx_t_20) < (0)) __PYX_ERR(0, 1748, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1752
 *     #: Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width,
 *     #: U/V height = 1/2 Y height.
 *     cudaEglColorFormatYVU420SemiPlanar_2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_2020             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in three surfaces, each in a separate surface, U/V width =
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420SemiPlanar_2020); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU420SemiPlan_3, __pyx_t_20) < (0)) __PYX_ERR(0, 1752, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1756
 *     #: Y, U, V in three surfaces, each in a separate surface, U/V width =
 *     #: 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYUV420Planar_2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_2020             # <<<<<<<<<<<<<<
 * 
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width =
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420Planar_2020); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV420Planar_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1756, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1760
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width =
 *     #: 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYVU420Planar_2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_2020             # <<<<<<<<<<<<<<
 * 
 *     #: Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420Planar_2020); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU420Planar_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1764
 *     #: Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width,
 *     #: U/V height = 1/2 Y height.
 *     cudaEglColorFormatYUV420SemiPlanar_709 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_709             # <<<<<<<<<<<<<<
 * 
 *     #: Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width,
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420SemiPlanar_709); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV420SemiPlan_4, __pyx_t_20) < (0)) __PYX_ERR(0, 1764, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1768
 *     #: Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width,
 *     #: U/V height = 1/2 Y height.
 *     cudaEglColorFormatYVU420SemiPlanar_709 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_709             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in three surfaces, each in a separate surface, U/V width =
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420SemiPlanar_709); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU420SemiPlan_4, __pyx_t_20) < (0)) __PYX_ERR(0, 1768, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1772
 *     #: Y, U, V in three surfaces, each in a separate surface, U/V width =
 *     #: 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYUV420Planar_709 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_709             # <<<<<<<<<<<<<<
 * 
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width =
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUV420Planar_709); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUV420Planar_7, __pyx_t_20) < (0)) __PYX_ERR(0, 1772, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1776
 *     #: Y, V, U in three surfaces, each in a separate surface, U/V width =
 *     #: 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatYVU420Planar_709 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_709             # <<<<<<<<<<<<<<
 * 
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVU420Planar_709); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVU420Planar_7, __pyx_t_20) < (0)) __PYX_ERR(0, 1776, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1780
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
 *     #: width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatY10V10U10_420SemiPlanar_709 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_709             # <<<<<<<<<<<<<<
 * 
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar_709); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_420S_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1780, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1784
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
 *     #: width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_2020             # <<<<<<<<<<<<<<
 * 
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar_2020); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_420S_3, __pyx_t_20) < (0)) __PYX_ERR(0, 1784, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1788
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
 *     #: width, U/V height = Y height.
 *     cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar_2020             # <<<<<<<<<<<<<<
 * 
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_422SemiPlanar_2020); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1788, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_422S, __pyx_t_20) < (0)) __PYX_ERR(0, 1788, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1792
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
 *     #: width, U/V height = Y height.
 *     cudaEglColorFormatY10V10U10_422SemiPlanar = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar             # <<<<<<<<<<<<<<
 * 
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_422SemiPlanar); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1792, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_422S_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1792, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1796
 *     #: Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y
 *     #: width, U/V height = Y height.
 *     cudaEglColorFormatY10V10U10_422SemiPlanar_709 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar_709             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Color format for single Y plane.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_422SemiPlanar_709); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_422S_3, __pyx_t_20) < (0)) __PYX_ERR(0, 1796, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1799
 * 
 *     #: Extended Range Color format for single Y plane.
 *     cudaEglColorFormatY_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Color format for single Y plane.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1799, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1802
 * 
 *     #: Extended Range Color format for single Y plane.
 *     cudaEglColorFormatY_709_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY_709_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Color format for single Y10 plane.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY_709_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY_709_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1802, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1805
 * 
 *     #: Extended Range Color format for single Y10 plane.
 *     cudaEglColorFormatY10_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Color format for single Y10 plane.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1808
 * 
 *     #: Extended Range Color format for single Y10 plane.
 *     cudaEglColorFormatY10_709_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10_709_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Color format for single Y12 plane.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10_709_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10_709_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1808, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1811
 * 
 *     #: Extended Range Color format for single Y12 plane.
 *     cudaEglColorFormatY12_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Color format for single Y12 plane.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY12_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1811, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1814
 * 
 *     #: Extended Range Color format for single Y12 plane.
 *     cudaEglColorFormatY12_709_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12_709_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V, A four channels in one surface, interleaved as AVUY.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12_709_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY12_709_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1817
 * 
 *     #: Y, U, V, A four channels in one surface, interleaved as AVUY.
 *     cudaEglColorFormatYUVA = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUVA             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in one surface, interleaved as YVYU in one channel.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYUVA); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYUVA, __pyx_t_20) < (0)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1820
 * 
 *     #: Y, U, V in one surface, interleaved as YVYU in one channel.
 *     cudaEglColorFormatYVYU = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVYU             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in one surface, interleaved as VYUY in one channel.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatYVYU); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatYVYU, __pyx_t_20) < (0)) __PYX_ERR(0, 1820, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1823
 * 
 *     #: Y, U, V in one surface, interleaved as VYUY in one channel.
 *     cudaEglColorFormatVYUY = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatVYUY             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatVYUY); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatVYUY, __pyx_t_20) < (0)) __PYX_ERR(0, 1823, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1827
 *     #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V
 *     #: width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatY10V10U10_420SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_420S_4, __pyx_t_20) < (0)) __PYX_ERR(0, 1827, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1831
 *     #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V
 *     #: width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_420S_5, __pyx_t_20) < (0)) __PYX_ERR(0, 1831, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1835
 *     #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V
 *     #: width = Y width, U/V height = Y height.
 *     cudaEglColorFormatY10V10U10_444SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_444SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_444S_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1839
 *     #: Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V
 *     #: width = Y width, U/V height = Y height.
 *     cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY10V10U10_444S_3, __pyx_t_20) < (0)) __PYX_ERR(0, 1839, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1843
 *     #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V
 *     #: width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatY12V12U12_420SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_420SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY12V12U12_420S_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1847
 *     #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V
 *     #: width = 1/2 Y width, U/V height = 1/2 Y height.
 *     cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY12V12U12_420S_3, __pyx_t_20) < (0)) __PYX_ERR(0, 1847, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1851
 *     #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V
 *     #: width = Y width, U/V height = Y height.
 *     cudaEglColorFormatY12V12U12_444SemiPlanar_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_444SemiPlanar_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY12V12U12_444S_2, __pyx_t_20) < (0)) __PYX_ERR(0, 1851, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1855
 *     #: Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V
 *     #: width = Y width, U/V height = Y height.
 *     cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in one surface, interleaved as UYVY in one channel.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatY12V12U12_444S_3, __pyx_t_20) < (0)) __PYX_ERR(0, 1855, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1858
 * 
 *     #: Y, U, V in one surface, interleaved as UYVY in one channel.
 *     cudaEglColorFormatUYVY709 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY709             # <<<<<<<<<<<<<<
 * 
 *     #: Extended Range Y, U, V in one surface, interleaved as UYVY in one
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY709); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatUYVY709, __pyx_t_20) < (0)) __PYX_ERR(0, 1858, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1862
 *     #: Extended Range Y, U, V in one surface, interleaved as UYVY in one
 *     #: channel.
 *     cudaEglColorFormatUYVY709_ER = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY709_ER             # <<<<<<<<<<<<<<
 * 
 *     #: Y, U, V in one surface, interleaved as UYVY in one channel.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY709_ER); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatUYVY709_ER, __pyx_t_20) < (0)) __PYX_ERR(0, 1862, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1865
 * 
 *     #: Y, U, V in one surface, interleaved as UYVY in one channel.
 *     cudaEglColorFormatUYVY2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY2020             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaEglColorFormat = dict(((int(v), v) for k, v in cudaEglColorFormat.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(__pyx_e_4cuda_8bindings_9cyruntime_cudaEglColorFormatUYVY2020); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormatUYVY2020, __pyx_t_20) < (0)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":1428
 * _dict_cudaEglResourceLocationFlags = dict(((int(v), v) for k, v in cudaEglResourceLocationFlags.__members__.items()))
 * 
 * class cudaEglColorFormat(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA EGL Color Format - The different planar and multiplanar
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormat, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormat, __pyx_t_20) < (0)) __PYX_ERR(0, 1428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1867
 *     cudaEglColorFormatUYVY2020 = cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY2020
 * 
 * _dict_cudaEglColorFormat = dict(((int(v), v) for k, v in cudaEglColorFormat.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaChannelFormatKind(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaEglColorFormat); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_714genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaEglColorFormat, __pyx_t_18) < (0)) __PYX_ERR(0, 1867, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1869
 * _dict_cudaEglColorFormat = dict(((int(v), v) for k, v in cudaEglColorFormat.__members__.items()))
 * 
 * class cudaChannelFormatKind(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Channel format kind
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKind, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKind, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Channel_format_kind); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 1869, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1875
 * 
 *     #: Signed channel format
 *     cudaChannelFormatKindSigned = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSigned             # <<<<<<<<<<<<<<
 * 
 *     #: Unsigned channel format
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSigned); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSigned, __pyx_t_19) < (0)) __PYX_ERR(0, 1875, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1878
 * 
 *     #: Unsigned channel format
 *     cudaChannelFormatKindUnsigned = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned             # <<<<<<<<<<<<<<
 * 
 *     #: Float channel format
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsigned); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsigned, __pyx_t_19) < (0)) __PYX_ERR(0, 1878, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1881
 * 
 *     #: Float channel format
 *     cudaChannelFormatKindFloat = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindFloat             # <<<<<<<<<<<<<<
 * 
 *     #: No channel format
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindFloat); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindFloat, __pyx_t_19) < (0)) __PYX_ERR(0, 1881, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1884
 * 
 *     #: No channel format
 *     cudaChannelFormatKindNone = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindNone             # <<<<<<<<<<<<<<
 * 
 *     #: Unsigned 8-bit integers, planar 4:2:0 YUV format
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindNone); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindNone, __pyx_t_19) < (0)) __PYX_ERR(0, 1884, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1887
 * 
 *     #: Unsigned 8-bit integers, planar 4:2:0 YUV format
 *     cudaChannelFormatKindNV12 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindNV12             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel unsigned 8-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindNV12); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindNV12, __pyx_t_19) < (0)) __PYX_ERR(0, 1887, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1890
 * 
 *     #: 1 channel unsigned 8-bit normalized integer
 *     cudaChannelFormatKindUnsignedNormalized8X1 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel unsigned 8-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized8X1); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedNor, __pyx_t_19) < (0)) __PYX_ERR(0, 1890, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1893
 * 
 *     #: 2 channel unsigned 8-bit normalized integer
 *     cudaChannelFormatKindUnsignedNormalized8X2 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned 8-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized8X2); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedNor_2, __pyx_t_19) < (0)) __PYX_ERR(0, 1893, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1896
 * 
 *     #: 4 channel unsigned 8-bit normalized integer
 *     cudaChannelFormatKindUnsignedNormalized8X4 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel unsigned 16-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized8X4); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1896, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedNor_3, __pyx_t_19) < (0)) __PYX_ERR(0, 1896, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1899
 * 
 *     #: 1 channel unsigned 16-bit normalized integer
 *     cudaChannelFormatKindUnsignedNormalized16X1 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel unsigned 16-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized16X1); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedNor_4, __pyx_t_19) < (0)) __PYX_ERR(0, 1899, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1902
 * 
 *     #: 2 channel unsigned 16-bit normalized integer
 *     cudaChannelFormatKindUnsignedNormalized16X2 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned 16-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized16X2); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedNor_5, __pyx_t_19) < (0)) __PYX_ERR(0, 1902, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1905
 * 
 *     #: 4 channel unsigned 16-bit normalized integer
 *     cudaChannelFormatKindUnsignedNormalized16X4 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel signed 8-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized16X4); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedNor_6, __pyx_t_19) < (0)) __PYX_ERR(0, 1905, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1908
 * 
 *     #: 1 channel signed 8-bit normalized integer
 *     cudaChannelFormatKindSignedNormalized8X1 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel signed 8-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized8X1); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1908, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedNorma, __pyx_t_19) < (0)) __PYX_ERR(0, 1908, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1911
 * 
 *     #: 2 channel signed 8-bit normalized integer
 *     cudaChannelFormatKindSignedNormalized8X2 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel signed 8-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized8X2); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedNorma_2, __pyx_t_19) < (0)) __PYX_ERR(0, 1911, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1914
 * 
 *     #: 4 channel signed 8-bit normalized integer
 *     cudaChannelFormatKindSignedNormalized8X4 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel signed 16-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized8X4); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedNorma_3, __pyx_t_19) < (0)) __PYX_ERR(0, 1914, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1917
 * 
 *     #: 1 channel signed 16-bit normalized integer
 *     cudaChannelFormatKindSignedNormalized16X1 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel signed 16-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized16X1); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedNorma_4, __pyx_t_19) < (0)) __PYX_ERR(0, 1917, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1920
 * 
 *     #: 2 channel signed 16-bit normalized integer
 *     cudaChannelFormatKindSignedNormalized16X2 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel signed 16-bit normalized integer
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized16X2); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedNorma_5, __pyx_t_19) < (0)) __PYX_ERR(0, 1920, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1923
 * 
 *     #: 4 channel signed 16-bit normalized integer
 *     cudaChannelFormatKindSignedNormalized16X4 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X4             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized block-compressed (BC1 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedNormalized16X4); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedNorma_6, __pyx_t_19) < (0)) __PYX_ERR(0, 1923, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1927
 *     #: 4 channel unsigned normalized block-compressed (BC1 compression)
 *     #: format
 *     cudaChannelFormatKindUnsignedBlockCompressed1 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed1             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized block-compressed (BC1 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed1); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo, __pyx_t_19) < (0)) __PYX_ERR(0, 1927, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1931
 *     #: 4 channel unsigned normalized block-compressed (BC1 compression)
 *     #: format with sRGB encoding
 *     cudaChannelFormatKindUnsignedBlockCompressed1SRGB = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed1SRGB             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized block-compressed (BC2 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed1SRGB); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_2, __pyx_t_19) < (0)) __PYX_ERR(0, 1931, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1935
 *     #: 4 channel unsigned normalized block-compressed (BC2 compression)
 *     #: format
 *     cudaChannelFormatKindUnsignedBlockCompressed2 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized block-compressed (BC2 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed2); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_3, __pyx_t_19) < (0)) __PYX_ERR(0, 1935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1939
 *     #: 4 channel unsigned normalized block-compressed (BC2 compression)
 *     #: format with sRGB encoding
 *     cudaChannelFormatKindUnsignedBlockCompressed2SRGB = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed2SRGB             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized block-compressed (BC3 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed2SRGB); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_4, __pyx_t_19) < (0)) __PYX_ERR(0, 1939, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1943
 *     #: 4 channel unsigned normalized block-compressed (BC3 compression)
 *     #: format
 *     cudaChannelFormatKindUnsignedBlockCompressed3 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed3             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized block-compressed (BC3 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed3); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_5, __pyx_t_19) < (0)) __PYX_ERR(0, 1943, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1947
 *     #: 4 channel unsigned normalized block-compressed (BC3 compression)
 *     #: format with sRGB encoding
 *     cudaChannelFormatKindUnsignedBlockCompressed3SRGB = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed3SRGB             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel unsigned normalized block-compressed (BC4 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed3SRGB); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_6, __pyx_t_19) < (0)) __PYX_ERR(0, 1947, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1951
 *     #: 1 channel unsigned normalized block-compressed (BC4 compression)
 *     #: format
 *     cudaChannelFormatKindUnsignedBlockCompressed4 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel signed normalized block-compressed (BC4 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed4); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_7, __pyx_t_19) < (0)) __PYX_ERR(0, 1951, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1955
 *     #: 1 channel signed normalized block-compressed (BC4 compression)
 *     #: format
 *     cudaChannelFormatKindSignedBlockCompressed4 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed4             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel unsigned normalized block-compressed (BC5 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedBlockCompressed4); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1955, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedBlock, __pyx_t_19) < (0)) __PYX_ERR(0, 1955, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1959
 *     #: 2 channel unsigned normalized block-compressed (BC5 compression)
 *     #: format
 *     cudaChannelFormatKindUnsignedBlockCompressed5 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed5             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel signed normalized block-compressed (BC5 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed5); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_8, __pyx_t_19) < (0)) __PYX_ERR(0, 1959, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1963
 *     #: 2 channel signed normalized block-compressed (BC5 compression)
 *     #: format
 *     cudaChannelFormatKindSignedBlockCompressed5 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed5             # <<<<<<<<<<<<<<
 * 
 *     #: 3 channel unsigned half-float block-compressed (BC6H compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedBlockCompressed5); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedBlock_2, __pyx_t_19) < (0)) __PYX_ERR(0, 1963, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1967
 *     #: 3 channel unsigned half-float block-compressed (BC6H compression)
 *     #: format
 *     cudaChannelFormatKindUnsignedBlockCompressed6H = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed6H             # <<<<<<<<<<<<<<
 * 
 *     #: 3 channel signed half-float block-compressed (BC6H compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed6H); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_9, __pyx_t_19) < (0)) __PYX_ERR(0, 1967, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1971
 *     #: 3 channel signed half-float block-compressed (BC6H compression)
 *     #: format
 *     cudaChannelFormatKindSignedBlockCompressed6H = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed6H             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized block-compressed (BC7 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindSignedBlockCompressed6H); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindSignedBlock_3, __pyx_t_19) < (0)) __PYX_ERR(0, 1971, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1975
 *     #: 4 channel unsigned normalized block-compressed (BC7 compression)
 *     #: format
 *     cudaChannelFormatKindUnsignedBlockCompressed7 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized block-compressed (BC7 compression)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed7); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_10, __pyx_t_19) < (0)) __PYX_ERR(0, 1975, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1979
 *     #: 4 channel unsigned normalized block-compressed (BC7 compression)
 *     #: format with sRGB encoding
 *     cudaChannelFormatKindUnsignedBlockCompressed7SRGB = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7SRGB             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned normalized (10-bit, 10-bit, 10-bit, 2-bit) format
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedBlockCompressed7SRGB); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedBlo_11, __pyx_t_19) < (0)) __PYX_ERR(0, 1979, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1982
 * 
 *     #: 4 channel unsigned normalized (10-bit, 10-bit, 10-bit, 2-bit) format
 *     cudaChannelFormatKindUnsignedNormalized1010102 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized1010102             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaChannelFormatKind = dict(((int(v), v) for k, v in cudaChannelFormatKind.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaChannelFormatKind(cudaChannelFormatKindUnsignedNormalized1010102); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKindUnsignedNor_7, __pyx_t_19) < (0)) __PYX_ERR(0, 1982, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":1869
 * _dict_cudaEglColorFormat = dict(((int(v), v) for k, v in cudaEglColorFormat.__members__.items()))
 * 
 * class cudaChannelFormatKind(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Channel format kind
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKind, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKind, __pyx_t_19) < (0)) __PYX_ERR(0, 1869, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1984
 *     cudaChannelFormatKindUnsignedNormalized1010102 = cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized1010102
 * 
 * _dict_cudaChannelFormatKind = dict(((int(v), v) for k, v in cudaChannelFormatKind.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemoryType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKind); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_717genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaChannelFormatKind, __pyx_t_4) < (0)) __PYX_ERR(0, 1984, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":1986
 * _dict_cudaChannelFormatKind = dict(((int(v), v) for k, v in cudaChannelFormatKind.__members__.items()))
 * 
 * class cudaMemoryType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA memory types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 1986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemoryType, __pyx_mstate_global->__pyx_n_u_cudaMemoryType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_memory_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 1986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 1986, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1992
 * 
 *     #: Unregistered memory
 *     cudaMemoryTypeUnregistered = cyruntime.cudaMemoryType.cudaMemoryTypeUnregistered             # <<<<<<<<<<<<<<
 * 
 *     #: Host memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemoryType(cudaMemoryTypeUnregistered); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemoryTypeUnregistered, __pyx_t_18) < (0)) __PYX_ERR(0, 1992, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1995
 * 
 *     #: Host memory
 *     cudaMemoryTypeHost = cyruntime.cudaMemoryType.cudaMemoryTypeHost             # <<<<<<<<<<<<<<
 * 
 *     #: Device memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemoryType(cudaMemoryTypeHost); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemoryTypeHost, __pyx_t_18) < (0)) __PYX_ERR(0, 1995, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1998
 * 
 *     #: Device memory
 *     cudaMemoryTypeDevice = cyruntime.cudaMemoryType.cudaMemoryTypeDevice             # <<<<<<<<<<<<<<
 * 
 *     #: Managed memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemoryType(cudaMemoryTypeDevice); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemoryTypeDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 1998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2001
 * 
 *     #: Managed memory
 *     cudaMemoryTypeManaged = cyruntime.cudaMemoryType.cudaMemoryTypeManaged             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemoryType = dict(((int(v), v) for k, v in cudaMemoryType.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemoryType(cudaMemoryTypeManaged); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemoryTypeManaged, __pyx_t_18) < (0)) __PYX_ERR(0, 2001, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":1986
 * _dict_cudaChannelFormatKind = dict(((int(v), v) for k, v in cudaChannelFormatKind.__members__.items()))
 * 
 * class cudaMemoryType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA memory types
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemoryType, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemoryType, __pyx_t_18) < (0)) __PYX_ERR(0, 1986, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2003
 *     cudaMemoryTypeManaged = cyruntime.cudaMemoryType.cudaMemoryTypeManaged
 * 
 * _dict_cudaMemoryType = dict(((int(v), v) for k, v in cudaMemoryType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpyKind(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemoryType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_720genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemoryType, __pyx_t_20) < (0)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2005
 * _dict_cudaMemoryType = dict(((int(v), v) for k, v in cudaMemoryType.__members__.items()))
 * 
 * class cudaMemcpyKind(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA memory copy types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_memory_copy_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2005, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2011
 * 
 *     #: Host -> Host
 *     cudaMemcpyHostToHost = cyruntime.cudaMemcpyKind.cudaMemcpyHostToHost             # <<<<<<<<<<<<<<
 * 
 *     #: Host -> Device
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemcpyKind(cudaMemcpyHostToHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemcpyHostToHost, __pyx_t_4) < (0)) __PYX_ERR(0, 2011, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2014
 * 
 *     #: Host -> Device
 *     cudaMemcpyHostToDevice = cyruntime.cudaMemcpyKind.cudaMemcpyHostToDevice             # <<<<<<<<<<<<<<
 * 
 *     #: Device -> Host
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemcpyKind(cudaMemcpyHostToDevice); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemcpyHostToDevice, __pyx_t_4) < (0)) __PYX_ERR(0, 2014, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2017
 * 
 *     #: Device -> Host
 *     cudaMemcpyDeviceToHost = cyruntime.cudaMemcpyKind.cudaMemcpyDeviceToHost             # <<<<<<<<<<<<<<
 * 
 *     #: Device -> Device
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemcpyKind(cudaMemcpyDeviceToHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemcpyDeviceToHost, __pyx_t_4) < (0)) __PYX_ERR(0, 2017, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2020
 * 
 *     #: Device -> Device
 *     cudaMemcpyDeviceToDevice = cyruntime.cudaMemcpyKind.cudaMemcpyDeviceToDevice             # <<<<<<<<<<<<<<
 * 
 *     #: Direction of the transfer is inferred from the pointer values.
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemcpyKind(cudaMemcpyDeviceToDevice); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemcpyDeviceToDevice, __pyx_t_4) < (0)) __PYX_ERR(0, 2020, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2024
 *     #: Direction of the transfer is inferred from the pointer values.
 *     #: Requires unified virtual addressing
 *     cudaMemcpyDefault = cyruntime.cudaMemcpyKind.cudaMemcpyDefault             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemcpyKind = dict(((int(v), v) for k, v in cudaMemcpyKind.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemcpyKind(cudaMemcpyDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemcpyDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 2024, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2005
 * _dict_cudaMemoryType = dict(((int(v), v) for k, v in cudaMemoryType.__members__.items()))
 * 
 * class cudaMemcpyKind(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA memory copy types
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind, __pyx_t_4) < (0)) __PYX_ERR(0, 2005, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2026
 *     cudaMemcpyDefault = cyruntime.cudaMemcpyKind.cudaMemcpyDefault
 * 
 * _dict_cudaMemcpyKind = dict(((int(v), v) for k, v in cudaMemcpyKind.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAccessProperty(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_723genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpyKind, __pyx_t_19) < (0)) __PYX_ERR(0, 2026, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2028
 * _dict_cudaMemcpyKind = dict(((int(v), v) for k, v in cudaMemcpyKind.__members__.items()))
 * 
 * class cudaAccessProperty(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies performance hint with :py:obj:`~.cudaAccessPolicyWindow`
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAccessProperty, __pyx_mstate_global->__pyx_n_u_cudaAccessProperty, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Specifies_performance_hint_with); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 2028, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2035
 * 
 *     #: Normal cache persistence.
 *     cudaAccessPropertyNormal = cyruntime.cudaAccessProperty.cudaAccessPropertyNormal             # <<<<<<<<<<<<<<
 * 
 *     #: Streaming access is less likely to persit from cache.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAccessProperty(cudaAccessPropertyNormal); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAccessPropertyNormal, __pyx_t_20) < (0)) __PYX_ERR(0, 2035, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2038
 * 
 *     #: Streaming access is less likely to persit from cache.
 *     cudaAccessPropertyStreaming = cyruntime.cudaAccessProperty.cudaAccessPropertyStreaming             # <<<<<<<<<<<<<<
 * 
 *     #: Persisting access is more likely to persist in cache.
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAccessProperty(cudaAccessPropertyStreaming); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAccessPropertyStreaming, __pyx_t_20) < (0)) __PYX_ERR(0, 2038, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2041
 * 
 *     #: Persisting access is more likely to persist in cache.
 *     cudaAccessPropertyPersisting = cyruntime.cudaAccessProperty.cudaAccessPropertyPersisting             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaAccessProperty = dict(((int(v), v) for k, v in cudaAccessProperty.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAccessProperty(cudaAccessPropertyPersisting); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAccessPropertyPersisting, __pyx_t_20) < (0)) __PYX_ERR(0, 2041, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2028
 * _dict_cudaMemcpyKind = dict(((int(v), v) for k, v in cudaMemcpyKind.__members__.items()))
 * 
 * class cudaAccessProperty(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies performance hint with :py:obj:`~.cudaAccessPolicyWindow`
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaAccessProperty, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaAccessProperty, __pyx_t_20) < (0)) __PYX_ERR(0, 2028, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2043
 *     cudaAccessPropertyPersisting = cyruntime.cudaAccessProperty.cudaAccessPropertyPersisting
 * 
 * _dict_cudaAccessProperty = dict(((int(v), v) for k, v in cudaAccessProperty.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamCaptureStatus(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAccessProperty); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_726genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaAccessProperty, __pyx_t_18) < (0)) __PYX_ERR(0, 2043, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2045
 * _dict_cudaAccessProperty = dict(((int(v), v) for k, v in cudaAccessProperty.__members__.items()))
 * 
 * class cudaStreamCaptureStatus(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Possible stream capture statuses returned by
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatus, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatus, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Possible_stream_capture_statuse); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 2045, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2052
 * 
 *     #: Stream is not capturing
 *     cudaStreamCaptureStatusNone = cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusNone             # <<<<<<<<<<<<<<
 * 
 *     #: Stream is actively capturing
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaStreamCaptureStatus(cudaStreamCaptureStatusNone); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatusNone, __pyx_t_19) < (0)) __PYX_ERR(0, 2052, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2055
 * 
 *     #: Stream is actively capturing
 *     cudaStreamCaptureStatusActive = cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusActive             # <<<<<<<<<<<<<<
 * 
 *     #: Stream is part of a capture sequence that has been invalidated, but
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaStreamCaptureStatus(cudaStreamCaptureStatusActive); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatusActive, __pyx_t_19) < (0)) __PYX_ERR(0, 2055, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2059
 *     #: Stream is part of a capture sequence that has been invalidated, but
 *     #: not terminated
 *     cudaStreamCaptureStatusInvalidated = cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaStreamCaptureStatus = dict(((int(v), v) for k, v in cudaStreamCaptureStatus.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaStreamCaptureStatus(cudaStreamCaptureStatusInvalidated); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatusInvalidat, __pyx_t_19) < (0)) __PYX_ERR(0, 2059, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2045
 * _dict_cudaAccessProperty = dict(((int(v), v) for k, v in cudaAccessProperty.__members__.items()))
 * 
 * class cudaStreamCaptureStatus(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Possible stream capture statuses returned by
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatus, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatus, __pyx_t_19) < (0)) __PYX_ERR(0, 2045, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2061
 *     cudaStreamCaptureStatusInvalidated = cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated
 * 
 * _dict_cudaStreamCaptureStatus = dict(((int(v), v) for k, v in cudaStreamCaptureStatus.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamCaptureMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureStatus); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_729genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaStreamCaptureStatus, __pyx_t_4) < (0)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2063
 * _dict_cudaStreamCaptureStatus = dict(((int(v), v) for k, v in cudaStreamCaptureStatus.__members__.items()))
 * 
 * class cudaStreamCaptureMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Possible modes for stream capture thread interactions. For more
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Possible_modes_for_stream_captu); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 2063, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2069
 *     :py:obj:`~.cudaThreadExchangeStreamCaptureMode`
 *     """
 *     cudaStreamCaptureModeGlobal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal             # <<<<<<<<<<<<<<
 *     cudaStreamCaptureModeThreadLocal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal
 *     cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaStreamCaptureMode(cudaStreamCaptureModeGlobal); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureModeGlobal, __pyx_t_18) < (0)) __PYX_ERR(0, 2069, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2070
 *     """
 *     cudaStreamCaptureModeGlobal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal
 *     cudaStreamCaptureModeThreadLocal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal             # <<<<<<<<<<<<<<
 *     cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaStreamCaptureMode(cudaStreamCaptureModeThreadLocal); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2070, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureModeThreadLocal, __pyx_t_18) < (0)) __PYX_ERR(0, 2070, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2071
 *     cudaStreamCaptureModeGlobal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal
 *     cudaStreamCaptureModeThreadLocal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal
 *     cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaStreamCaptureMode = dict(((int(v), v) for k, v in cudaStreamCaptureMode.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaStreamCaptureMode(cudaStreamCaptureModeRelaxed); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureModeRelaxed, __pyx_t_18) < (0)) __PYX_ERR(0, 2071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2063
 * _dict_cudaStreamCaptureStatus = dict(((int(v), v) for k, v in cudaStreamCaptureStatus.__members__.items()))
 * 
 * class cudaStreamCaptureMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Possible modes for stream capture thread interactions. For more
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode, __pyx_t_18) < (0)) __PYX_ERR(0, 2063, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2073
 *     cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed
 * 
 * _dict_cudaStreamCaptureMode = dict(((int(v), v) for k, v in cudaStreamCaptureMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSynchronizationPolicy(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_732genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaStreamCaptureMode, __pyx_t_20) < (0)) __PYX_ERR(0, 2073, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2075
 * _dict_cudaStreamCaptureMode = dict(((int(v), v) for k, v in cudaStreamCaptureMode.__members__.items()))
 * 
 * class cudaSynchronizationPolicy(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaSynchronizationPolicy, __pyx_mstate_global->__pyx_n_u_cudaSynchronizationPolicy, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u__8); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2075, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2079
 * 
 *     """
 *     cudaSyncPolicyAuto = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyAuto             # <<<<<<<<<<<<<<
 *     cudaSyncPolicySpin = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicySpin
 *     cudaSyncPolicyYield = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyYield
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaSynchronizationPolicy(cudaSyncPolicyAuto); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSyncPolicyAuto, __pyx_t_4) < (0)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2080
 *     """
 *     cudaSyncPolicyAuto = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyAuto
 *     cudaSyncPolicySpin = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicySpin             # <<<<<<<<<<<<<<
 *     cudaSyncPolicyYield = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyYield
 *     cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaSynchronizationPolicy(cudaSyncPolicySpin); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSyncPolicySpin, __pyx_t_4) < (0)) __PYX_ERR(0, 2080, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2081
 *     cudaSyncPolicyAuto = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyAuto
 *     cudaSyncPolicySpin = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicySpin
 *     cudaSyncPolicyYield = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyYield             # <<<<<<<<<<<<<<
 *     cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaSynchronizationPolicy(cudaSyncPolicyYield); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSyncPolicyYield, __pyx_t_4) < (0)) __PYX_ERR(0, 2081, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2082
 *     cudaSyncPolicySpin = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicySpin
 *     cudaSyncPolicyYield = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyYield
 *     cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaSynchronizationPolicy = dict(((int(v), v) for k, v in cudaSynchronizationPolicy.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaSynchronizationPolicy(cudaSyncPolicyBlockingSync); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSyncPolicyBlockingSync, __pyx_t_4) < (0)) __PYX_ERR(0, 2082, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2075
 * _dict_cudaStreamCaptureMode = dict(((int(v), v) for k, v in cudaStreamCaptureMode.__members__.items()))
 * 
 * class cudaSynchronizationPolicy(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaSynchronizationPolicy, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSynchronizationPolicy, __pyx_t_4) < (0)) __PYX_ERR(0, 2075, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2084
 *     cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync
 * 
 * _dict_cudaSynchronizationPolicy = dict(((int(v), v) for k, v in cudaSynchronizationPolicy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaClusterSchedulingPolicy(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaSynchronizationPolicy); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_735genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaSynchronizationPolicy, __pyx_t_19) < (0)) __PYX_ERR(0, 2084, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2086
 * _dict_cudaSynchronizationPolicy = dict(((int(v), v) for k, v in cudaSynchronizationPolicy.__members__.items()))
 * 
 * class cudaClusterSchedulingPolicy(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Cluster scheduling policies. These may be passed to
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaClusterSchedulingPolicy, __pyx_mstate_global->__pyx_n_u_cudaClusterSchedulingPolicy, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Cluster_scheduling_policies_The); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 2086, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2093
 * 
 *     #: the default policy
 *     cudaClusterSchedulingPolicyDefault = cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyDefault             # <<<<<<<<<<<<<<
 * 
 *     #: spread the blocks within a cluster to the SMs
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaClusterSchedulingPolicy(cudaClusterSchedulingPolicyDefault); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaClusterSchedulingPolicyDefau, __pyx_t_20) < (0)) __PYX_ERR(0, 2093, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2096
 * 
 *     #: spread the blocks within a cluster to the SMs
 *     cudaClusterSchedulingPolicySpread = cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicySpread             # <<<<<<<<<<<<<<
 * 
 *     #: allow the hardware to load-balance the blocks in a cluster to the
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaClusterSchedulingPolicy(cudaClusterSchedulingPolicySpread); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaClusterSchedulingPolicySprea, __pyx_t_20) < (0)) __PYX_ERR(0, 2096, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2100
 *     #: allow the hardware to load-balance the blocks in a cluster to the
 *     #: SMs
 *     cudaClusterSchedulingPolicyLoadBalancing = cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaClusterSchedulingPolicy = dict(((int(v), v) for k, v in cudaClusterSchedulingPolicy.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaClusterSchedulingPolicy(cudaClusterSchedulingPolicyLoadBalancing); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaClusterSchedulingPolicyLoadB, __pyx_t_20) < (0)) __PYX_ERR(0, 2100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2086
 * _dict_cudaSynchronizationPolicy = dict(((int(v), v) for k, v in cudaSynchronizationPolicy.__members__.items()))
 * 
 * class cudaClusterSchedulingPolicy(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Cluster scheduling policies. These may be passed to
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaClusterSchedulingPolicy, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaClusterSchedulingPolicy, __pyx_t_20) < (0)) __PYX_ERR(0, 2086, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2102
 *     cudaClusterSchedulingPolicyLoadBalancing = cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing
 * 
 * _dict_cudaClusterSchedulingPolicy = dict(((int(v), v) for k, v in cudaClusterSchedulingPolicy.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamUpdateCaptureDependenciesFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaClusterSchedulingPolicy); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_738genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaClusterSchedulingPolic, __pyx_t_18) < (0)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2104
 * _dict_cudaClusterSchedulingPolicy = dict(((int(v), v) for k, v in cudaClusterSchedulingPolicy.__members__.items()))
 * 
 * class cudaStreamUpdateCaptureDependenciesFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for :py:obj:`~.cudaStreamUpdateCaptureDependencies`
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc_2, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc_2, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Flags_for_py_obj_cudaStreamUpda); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 2104, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2110
 * 
 *     #: Add new nodes to the dependency set
 *     cudaStreamAddCaptureDependencies = cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamAddCaptureDependencies             # <<<<<<<<<<<<<<
 * 
 *     #: Replace the dependency set with the new nodes
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaStreamUpdateCaptureDependenciesFlags(cudaStreamAddCaptureDependencies); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaStreamAddCaptureDependencies, __pyx_t_19) < (0)) __PYX_ERR(0, 2110, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2113
 * 
 *     #: Replace the dependency set with the new nodes
 *     cudaStreamSetCaptureDependencies = cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaStreamUpdateCaptureDependenciesFlags = dict(((int(v), v) for k, v in cudaStreamUpdateCaptureDependenciesFlags.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaStreamUpdateCaptureDependenciesFlags(cudaStreamSetCaptureDependencies); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaStreamSetCaptureDependencies, __pyx_t_19) < (0)) __PYX_ERR(0, 2113, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2104
 * _dict_cudaClusterSchedulingPolicy = dict(((int(v), v) for k, v in cudaClusterSchedulingPolicy.__members__.items()))
 * 
 * class cudaStreamUpdateCaptureDependenciesFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for :py:obj:`~.cudaStreamUpdateCaptureDependencies`
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc_2, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc_2, __pyx_t_19) < (0)) __PYX_ERR(0, 2104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2115
 *     cudaStreamSetCaptureDependencies = cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies
 * 
 * _dict_cudaStreamUpdateCaptureDependenciesFlags = dict(((int(v), v) for k, v in cudaStreamUpdateCaptureDependenciesFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaUserObjectFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc_2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_741genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaStreamUpdateCaptureDep, __pyx_t_4) < (0)) __PYX_ERR(0, 2115, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2117
 * _dict_cudaStreamUpdateCaptureDependenciesFlags = dict(((int(v), v) for k, v in cudaStreamUpdateCaptureDependenciesFlags.__members__.items()))
 * 
 * class cudaUserObjectFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for user objects for graphs
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaUserObjectFlags, __pyx_mstate_global->__pyx_n_u_cudaUserObjectFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Flags_for_user_objects_for_grap); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 2117, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2124
 *     #: Indicates the destructor execution is not synchronized by any CUDA
 *     #: handle.
 *     cudaUserObjectNoDestructorSync = cyruntime.cudaUserObjectFlags.cudaUserObjectNoDestructorSync             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaUserObjectFlags = dict(((int(v), v) for k, v in cudaUserObjectFlags.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaUserObjectFlags(cudaUserObjectNoDestructorSync); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2124, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaUserObjectNoDestructorSync, __pyx_t_18) < (0)) __PYX_ERR(0, 2124, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2117
 * _dict_cudaStreamUpdateCaptureDependenciesFlags = dict(((int(v), v) for k, v in cudaStreamUpdateCaptureDependenciesFlags.__members__.items()))
 * 
 * class cudaUserObjectFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for user objects for graphs
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaUserObjectFlags, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaUserObjectFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 2117, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2126
 *     cudaUserObjectNoDestructorSync = cyruntime.cudaUserObjectFlags.cudaUserObjectNoDestructorSync
 * 
 * _dict_cudaUserObjectFlags = dict(((int(v), v) for k, v in cudaUserObjectFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaUserObjectRetainFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaUserObjectFlags); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_744genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaUserObjectFlags, __pyx_t_20) < (0)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2128
 * _dict_cudaUserObjectFlags = dict(((int(v), v) for k, v in cudaUserObjectFlags.__members__.items()))
 * 
 * class cudaUserObjectRetainFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for retaining user object references for graphs
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRetainFlags, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRetainFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Flags_for_retaining_user_object); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2128, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2135
 *     #: Transfer references from the caller rather than creating new
 *     #: references.
 *     cudaGraphUserObjectMove = cyruntime.cudaUserObjectRetainFlags.cudaGraphUserObjectMove             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaUserObjectRetainFlags = dict(((int(v), v) for k, v in cudaUserObjectRetainFlags.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaUserObjectRetainFlags(cudaGraphUserObjectMove); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphUserObjectMove, __pyx_t_4) < (0)) __PYX_ERR(0, 2135, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2128
 * _dict_cudaUserObjectFlags = dict(((int(v), v) for k, v in cudaUserObjectFlags.__members__.items()))
 * 
 * class cudaUserObjectRetainFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for retaining user object references for graphs
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRetainFlags, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRetainFlags, __pyx_t_4) < (0)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2137
 *     cudaGraphUserObjectMove = cyruntime.cudaUserObjectRetainFlags.cudaGraphUserObjectMove
 * 
 * _dict_cudaUserObjectRetainFlags = dict(((int(v), v) for k, v in cudaUserObjectRetainFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsRegisterFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRetainFlags); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_747genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaUserObjectRetainFlags, __pyx_t_19) < (0)) __PYX_ERR(0, 2137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2139
 * _dict_cudaUserObjectRetainFlags = dict(((int(v), v) for k, v in cudaUserObjectRetainFlags.__members__.items()))
 * 
 * class cudaGraphicsRegisterFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA graphics interop register flags
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlags, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_graphics_interop_register); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 2139, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2145
 * 
 *     #: Default
 *     cudaGraphicsRegisterFlagsNone = cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsNone             # <<<<<<<<<<<<<<
 * 
 *     #: CUDA will not write to this resource
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsNone); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlagsNone, __pyx_t_20) < (0)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2148
 * 
 *     #: CUDA will not write to this resource
 *     cudaGraphicsRegisterFlagsReadOnly = cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsReadOnly             # <<<<<<<<<<<<<<
 * 
 *     #: CUDA will only write to and will not read from this resource
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsReadOnly); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlagsReadOnl, __pyx_t_20) < (0)) __PYX_ERR(0, 2148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2151
 * 
 *     #: CUDA will only write to and will not read from this resource
 *     cudaGraphicsRegisterFlagsWriteDiscard = cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsWriteDiscard             # <<<<<<<<<<<<<<
 * 
 *     #: CUDA will bind this resource to a surface reference
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsWriteDiscard); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlagsWriteDi, __pyx_t_20) < (0)) __PYX_ERR(0, 2151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2154
 * 
 *     #: CUDA will bind this resource to a surface reference
 *     cudaGraphicsRegisterFlagsSurfaceLoadStore = cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsSurfaceLoadStore             # <<<<<<<<<<<<<<
 * 
 *     #: CUDA will perform texture gather operations on this resource
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsSurfaceLoadStore); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlagsSurface, __pyx_t_20) < (0)) __PYX_ERR(0, 2154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2157
 * 
 *     #: CUDA will perform texture gather operations on this resource
 *     cudaGraphicsRegisterFlagsTextureGather = cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphicsRegisterFlags = dict(((int(v), v) for k, v in cudaGraphicsRegisterFlags.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphicsRegisterFlags(cudaGraphicsRegisterFlagsTextureGather); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlagsTexture, __pyx_t_20) < (0)) __PYX_ERR(0, 2157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2139
 * _dict_cudaUserObjectRetainFlags = dict(((int(v), v) for k, v in cudaUserObjectRetainFlags.__members__.items()))
 * 
 * class cudaGraphicsRegisterFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA graphics interop register flags
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlags, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlags, __pyx_t_20) < (0)) __PYX_ERR(0, 2139, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2159
 *     cudaGraphicsRegisterFlagsTextureGather = cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather
 * 
 * _dict_cudaGraphicsRegisterFlags = dict(((int(v), v) for k, v in cudaGraphicsRegisterFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsMapFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphicsRegisterFlags); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_750genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphicsRegisterFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 2159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2161
 * _dict_cudaGraphicsRegisterFlags = dict(((int(v), v) for k, v in cudaGraphicsRegisterFlags.__members__.items()))
 * 
 * class cudaGraphicsMapFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA graphics interop map flags
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapFlags, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_graphics_interop_map_flags); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 2161, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2167
 * 
 *     #: Default; Assume resource can be read/written
 *     cudaGraphicsMapFlagsNone = cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsNone             # <<<<<<<<<<<<<<
 * 
 *     #: CUDA will not write to this resource
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphicsMapFlags(cudaGraphicsMapFlagsNone); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapFlagsNone, __pyx_t_19) < (0)) __PYX_ERR(0, 2167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2170
 * 
 *     #: CUDA will not write to this resource
 *     cudaGraphicsMapFlagsReadOnly = cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsReadOnly             # <<<<<<<<<<<<<<
 * 
 *     #: CUDA will only write to and will not read from this resource
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphicsMapFlags(cudaGraphicsMapFlagsReadOnly); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapFlagsReadOnly, __pyx_t_19) < (0)) __PYX_ERR(0, 2170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2173
 * 
 *     #: CUDA will only write to and will not read from this resource
 *     cudaGraphicsMapFlagsWriteDiscard = cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphicsMapFlags = dict(((int(v), v) for k, v in cudaGraphicsMapFlags.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphicsMapFlags(cudaGraphicsMapFlagsWriteDiscard); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapFlagsWriteDiscard, __pyx_t_19) < (0)) __PYX_ERR(0, 2173, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2161
 * _dict_cudaGraphicsRegisterFlags = dict(((int(v), v) for k, v in cudaGraphicsRegisterFlags.__members__.items()))
 * 
 * class cudaGraphicsMapFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA graphics interop map flags
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapFlags, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapFlags, __pyx_t_19) < (0)) __PYX_ERR(0, 2161, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2175
 *     cudaGraphicsMapFlagsWriteDiscard = cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard
 * 
 * _dict_cudaGraphicsMapFlags = dict(((int(v), v) for k, v in cudaGraphicsMapFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphicsCubeFace(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapFlags); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_753genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphicsMapFlags, __pyx_t_4) < (0)) __PYX_ERR(0, 2175, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2177
 * _dict_cudaGraphicsMapFlags = dict(((int(v), v) for k, v in cudaGraphicsMapFlags.__members__.items()))
 * 
 * class cudaGraphicsCubeFace(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA graphics interop array indices for cube maps
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFace, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFace, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_graphics_interop_array_ind); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 2177, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2183
 * 
 *     #: Positive X face of cubemap
 *     cudaGraphicsCubeFacePositiveX = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveX             # <<<<<<<<<<<<<<
 * 
 *     #: Negative X face of cubemap
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFacePositiveX); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFacePositiveX, __pyx_t_18) < (0)) __PYX_ERR(0, 2183, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2186
 * 
 *     #: Negative X face of cubemap
 *     cudaGraphicsCubeFaceNegativeX = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeX             # <<<<<<<<<<<<<<
 * 
 *     #: Positive Y face of cubemap
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFaceNegativeX); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2186, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFaceNegativeX, __pyx_t_18) < (0)) __PYX_ERR(0, 2186, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2189
 * 
 *     #: Positive Y face of cubemap
 *     cudaGraphicsCubeFacePositiveY = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveY             # <<<<<<<<<<<<<<
 * 
 *     #: Negative Y face of cubemap
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFacePositiveY); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFacePositiveY, __pyx_t_18) < (0)) __PYX_ERR(0, 2189, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2192
 * 
 *     #: Negative Y face of cubemap
 *     cudaGraphicsCubeFaceNegativeY = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeY             # <<<<<<<<<<<<<<
 * 
 *     #: Positive Z face of cubemap
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFaceNegativeY); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFaceNegativeY, __pyx_t_18) < (0)) __PYX_ERR(0, 2192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2195
 * 
 *     #: Positive Z face of cubemap
 *     cudaGraphicsCubeFacePositiveZ = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveZ             # <<<<<<<<<<<<<<
 * 
 *     #: Negative Z face of cubemap
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFacePositiveZ); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFacePositiveZ, __pyx_t_18) < (0)) __PYX_ERR(0, 2195, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2198
 * 
 *     #: Negative Z face of cubemap
 *     cudaGraphicsCubeFaceNegativeZ = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphicsCubeFace = dict(((int(v), v) for k, v in cudaGraphicsCubeFace.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphicsCubeFace(cudaGraphicsCubeFaceNegativeZ); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFaceNegativeZ, __pyx_t_18) < (0)) __PYX_ERR(0, 2198, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2177
 * _dict_cudaGraphicsMapFlags = dict(((int(v), v) for k, v in cudaGraphicsMapFlags.__members__.items()))
 * 
 * class cudaGraphicsCubeFace(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA graphics interop array indices for cube maps
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFace, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFace, __pyx_t_18) < (0)) __PYX_ERR(0, 2177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2200
 *     cudaGraphicsCubeFaceNegativeZ = cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ
 * 
 * _dict_cudaGraphicsCubeFace = dict(((int(v), v) for k, v in cudaGraphicsCubeFace.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaResourceType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphicsCubeFace); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_756genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphicsCubeFace, __pyx_t_20) < (0)) __PYX_ERR(0, 2200, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2202
 * _dict_cudaGraphicsCubeFace = dict(((int(v), v) for k, v in cudaGraphicsCubeFace.__members__.items()))
 * 
 * class cudaResourceType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA resource types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaResourceType, __pyx_mstate_global->__pyx_n_u_cudaResourceType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_resource_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2202, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2208
 * 
 *     #: Array resource
 *     cudaResourceTypeArray = cyruntime.cudaResourceType.cudaResourceTypeArray             # <<<<<<<<<<<<<<
 * 
 *     #: Mipmapped array resource
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaResourceType(cudaResourceTypeArray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaResourceTypeArray, __pyx_t_4) < (0)) __PYX_ERR(0, 2208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2211
 * 
 *     #: Mipmapped array resource
 *     cudaResourceTypeMipmappedArray = cyruntime.cudaResourceType.cudaResourceTypeMipmappedArray             # <<<<<<<<<<<<<<
 * 
 *     #: Linear resource
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaResourceType(cudaResourceTypeMipmappedArray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaResourceTypeMipmappedArray, __pyx_t_4) < (0)) __PYX_ERR(0, 2211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2214
 * 
 *     #: Linear resource
 *     cudaResourceTypeLinear = cyruntime.cudaResourceType.cudaResourceTypeLinear             # <<<<<<<<<<<<<<
 * 
 *     #: Pitch 2D resource
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaResourceType(cudaResourceTypeLinear); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaResourceTypeLinear, __pyx_t_4) < (0)) __PYX_ERR(0, 2214, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2217
 * 
 *     #: Pitch 2D resource
 *     cudaResourceTypePitch2D = cyruntime.cudaResourceType.cudaResourceTypePitch2D             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaResourceType = dict(((int(v), v) for k, v in cudaResourceType.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaResourceType(cudaResourceTypePitch2D); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaResourceTypePitch2D, __pyx_t_4) < (0)) __PYX_ERR(0, 2217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2202
 * _dict_cudaGraphicsCubeFace = dict(((int(v), v) for k, v in cudaGraphicsCubeFace.__members__.items()))
 * 
 * class cudaResourceType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA resource types
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaResourceType, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaResourceType, __pyx_t_4) < (0)) __PYX_ERR(0, 2202, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2219
 *     cudaResourceTypePitch2D = cyruntime.cudaResourceType.cudaResourceTypePitch2D
 * 
 * _dict_cudaResourceType = dict(((int(v), v) for k, v in cudaResourceType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaResourceViewFormat(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaResourceType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_759genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaResourceType, __pyx_t_19) < (0)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2221
 * _dict_cudaResourceType = dict(((int(v), v) for k, v in cudaResourceType.__members__.items()))
 * 
 * class cudaResourceViewFormat(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture resource view formats
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaResourceViewFormat, __pyx_mstate_global->__pyx_n_u_cudaResourceViewFormat, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_texture_resource_view_form); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 2221, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2227
 * 
 *     #: No resource view format (use underlying resource format)
 *     cudaResViewFormatNone = cyruntime.cudaResourceViewFormat.cudaResViewFormatNone             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel unsigned 8-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatNone); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatNone, __pyx_t_20) < (0)) __PYX_ERR(0, 2227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2230
 * 
 *     #: 1 channel unsigned 8-bit integers
 *     cudaResViewFormatUnsignedChar1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel unsigned 8-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedChar1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedChar1, __pyx_t_20) < (0)) __PYX_ERR(0, 2230, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2233
 * 
 *     #: 2 channel unsigned 8-bit integers
 *     cudaResViewFormatUnsignedChar2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned 8-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedChar2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedChar2, __pyx_t_20) < (0)) __PYX_ERR(0, 2233, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2236
 * 
 *     #: 4 channel unsigned 8-bit integers
 *     cudaResViewFormatUnsignedChar4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel signed 8-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedChar4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedChar4, __pyx_t_20) < (0)) __PYX_ERR(0, 2236, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2239
 * 
 *     #: 1 channel signed 8-bit integers
 *     cudaResViewFormatSignedChar1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel signed 8-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedChar1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedChar1, __pyx_t_20) < (0)) __PYX_ERR(0, 2239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2242
 * 
 *     #: 2 channel signed 8-bit integers
 *     cudaResViewFormatSignedChar2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel signed 8-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedChar2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedChar2, __pyx_t_20) < (0)) __PYX_ERR(0, 2242, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2245
 * 
 *     #: 4 channel signed 8-bit integers
 *     cudaResViewFormatSignedChar4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel unsigned 16-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedChar4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedChar4, __pyx_t_20) < (0)) __PYX_ERR(0, 2245, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2248
 * 
 *     #: 1 channel unsigned 16-bit integers
 *     cudaResViewFormatUnsignedShort1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel unsigned 16-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedShort1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedShort1, __pyx_t_20) < (0)) __PYX_ERR(0, 2248, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2251
 * 
 *     #: 2 channel unsigned 16-bit integers
 *     cudaResViewFormatUnsignedShort2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned 16-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedShort2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedShort2, __pyx_t_20) < (0)) __PYX_ERR(0, 2251, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2254
 * 
 *     #: 4 channel unsigned 16-bit integers
 *     cudaResViewFormatUnsignedShort4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel signed 16-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedShort4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedShort4, __pyx_t_20) < (0)) __PYX_ERR(0, 2254, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2257
 * 
 *     #: 1 channel signed 16-bit integers
 *     cudaResViewFormatSignedShort1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel signed 16-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedShort1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedShort1, __pyx_t_20) < (0)) __PYX_ERR(0, 2257, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2260
 * 
 *     #: 2 channel signed 16-bit integers
 *     cudaResViewFormatSignedShort2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel signed 16-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedShort2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedShort2, __pyx_t_20) < (0)) __PYX_ERR(0, 2260, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2263
 * 
 *     #: 4 channel signed 16-bit integers
 *     cudaResViewFormatSignedShort4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel unsigned 32-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedShort4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedShort4, __pyx_t_20) < (0)) __PYX_ERR(0, 2263, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2266
 * 
 *     #: 1 channel unsigned 32-bit integers
 *     cudaResViewFormatUnsignedInt1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel unsigned 32-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedInt1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedInt1, __pyx_t_20) < (0)) __PYX_ERR(0, 2266, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2269
 * 
 *     #: 2 channel unsigned 32-bit integers
 *     cudaResViewFormatUnsignedInt2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel unsigned 32-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedInt2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedInt2, __pyx_t_20) < (0)) __PYX_ERR(0, 2269, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2272
 * 
 *     #: 4 channel unsigned 32-bit integers
 *     cudaResViewFormatUnsignedInt4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel signed 32-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedInt4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedInt4, __pyx_t_20) < (0)) __PYX_ERR(0, 2272, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2275
 * 
 *     #: 1 channel signed 32-bit integers
 *     cudaResViewFormatSignedInt1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel signed 32-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedInt1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedInt1, __pyx_t_20) < (0)) __PYX_ERR(0, 2275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2278
 * 
 *     #: 2 channel signed 32-bit integers
 *     cudaResViewFormatSignedInt2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel signed 32-bit integers
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedInt2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedInt2, __pyx_t_20) < (0)) __PYX_ERR(0, 2278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2281
 * 
 *     #: 4 channel signed 32-bit integers
 *     cudaResViewFormatSignedInt4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel 16-bit floating point
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedInt4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedInt4, __pyx_t_20) < (0)) __PYX_ERR(0, 2281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2284
 * 
 *     #: 1 channel 16-bit floating point
 *     cudaResViewFormatHalf1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel 16-bit floating point
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatHalf1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatHalf1, __pyx_t_20) < (0)) __PYX_ERR(0, 2284, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2287
 * 
 *     #: 2 channel 16-bit floating point
 *     cudaResViewFormatHalf2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel 16-bit floating point
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatHalf2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatHalf2, __pyx_t_20) < (0)) __PYX_ERR(0, 2287, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2290
 * 
 *     #: 4 channel 16-bit floating point
 *     cudaResViewFormatHalf4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf4             # <<<<<<<<<<<<<<
 * 
 *     #: 1 channel 32-bit floating point
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatHalf4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatHalf4, __pyx_t_20) < (0)) __PYX_ERR(0, 2290, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2293
 * 
 *     #: 1 channel 32-bit floating point
 *     cudaResViewFormatFloat1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat1             # <<<<<<<<<<<<<<
 * 
 *     #: 2 channel 32-bit floating point
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatFloat1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatFloat1, __pyx_t_20) < (0)) __PYX_ERR(0, 2293, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2296
 * 
 *     #: 2 channel 32-bit floating point
 *     cudaResViewFormatFloat2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat2             # <<<<<<<<<<<<<<
 * 
 *     #: 4 channel 32-bit floating point
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatFloat2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatFloat2, __pyx_t_20) < (0)) __PYX_ERR(0, 2296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2299
 * 
 *     #: 4 channel 32-bit floating point
 *     cudaResViewFormatFloat4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat4             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 1
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatFloat4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatFloat4, __pyx_t_20) < (0)) __PYX_ERR(0, 2299, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2302
 * 
 *     #: Block compressed 1
 *     cudaResViewFormatUnsignedBlockCompressed1 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed1             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 2
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedBlockCo, __pyx_t_20) < (0)) __PYX_ERR(0, 2302, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2305
 * 
 *     #: Block compressed 2
 *     cudaResViewFormatUnsignedBlockCompressed2 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed2             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 3
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed2); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedBlockCo_2, __pyx_t_20) < (0)) __PYX_ERR(0, 2305, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2308
 * 
 *     #: Block compressed 3
 *     cudaResViewFormatUnsignedBlockCompressed3 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed3             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 4 unsigned
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed3); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedBlockCo_3, __pyx_t_20) < (0)) __PYX_ERR(0, 2308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2311
 * 
 *     #: Block compressed 4 unsigned
 *     cudaResViewFormatUnsignedBlockCompressed4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed4             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 4 signed
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedBlockCo_4, __pyx_t_20) < (0)) __PYX_ERR(0, 2311, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2314
 * 
 *     #: Block compressed 4 signed
 *     cudaResViewFormatSignedBlockCompressed4 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed4             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 5 unsigned
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedBlockCompressed4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedBlockComp, __pyx_t_20) < (0)) __PYX_ERR(0, 2314, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2317
 * 
 *     #: Block compressed 5 unsigned
 *     cudaResViewFormatUnsignedBlockCompressed5 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed5             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 5 signed
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed5); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedBlockCo_5, __pyx_t_20) < (0)) __PYX_ERR(0, 2317, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2320
 * 
 *     #: Block compressed 5 signed
 *     cudaResViewFormatSignedBlockCompressed5 = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed5             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 6 unsigned half-float
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedBlockCompressed5); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedBlockComp_2, __pyx_t_20) < (0)) __PYX_ERR(0, 2320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2323
 * 
 *     #: Block compressed 6 unsigned half-float
 *     cudaResViewFormatUnsignedBlockCompressed6H = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed6H             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 6 signed half-float
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed6H); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedBlockCo_6, __pyx_t_20) < (0)) __PYX_ERR(0, 2323, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2326
 * 
 *     #: Block compressed 6 signed half-float
 *     cudaResViewFormatSignedBlockCompressed6H = cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed6H             # <<<<<<<<<<<<<<
 * 
 *     #: Block compressed 7
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatSignedBlockCompressed6H); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatSignedBlockComp_3, __pyx_t_20) < (0)) __PYX_ERR(0, 2326, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2329
 * 
 *     #: Block compressed 7
 *     cudaResViewFormatUnsignedBlockCompressed7 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaResourceViewFormat = dict(((int(v), v) for k, v in cudaResourceViewFormat.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaResourceViewFormat(cudaResViewFormatUnsignedBlockCompressed7); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaResViewFormatUnsignedBlockCo_7, __pyx_t_20) < (0)) __PYX_ERR(0, 2329, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2221
 * _dict_cudaResourceType = dict(((int(v), v) for k, v in cudaResourceType.__members__.items()))
 * 
 * class cudaResourceViewFormat(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture resource view formats
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaResourceViewFormat, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaResourceViewFormat, __pyx_t_20) < (0)) __PYX_ERR(0, 2221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2331
 *     cudaResViewFormatUnsignedBlockCompressed7 = cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7
 * 
 * _dict_cudaResourceViewFormat = dict(((int(v), v) for k, v in cudaResourceViewFormat.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFuncAttribute(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaResourceViewFormat); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_762genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaResourceViewFormat, __pyx_t_18) < (0)) __PYX_ERR(0, 2331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2333
 * _dict_cudaResourceViewFormat = dict(((int(v), v) for k, v in cudaResourceViewFormat.__members__.items()))
 * 
 * class cudaFuncAttribute(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA function attributes that can be set using
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFuncAttribute, __pyx_mstate_global->__pyx_n_u_cudaFuncAttribute, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_function_attributes_that_c); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 2333, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2340
 * 
 *     #: Maximum dynamic shared memory size
 *     cudaFuncAttributeMaxDynamicSharedMemorySize = cyruntime.cudaFuncAttribute.cudaFuncAttributeMaxDynamicSharedMemorySize             # <<<<<<<<<<<<<<
 * 
 *     #: Preferred shared memory-L1 cache split
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributeMaxDynamicSharedMemorySize); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributeMaxDynamicShare, __pyx_t_19) < (0)) __PYX_ERR(0, 2340, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2343
 * 
 *     #: Preferred shared memory-L1 cache split
 *     cudaFuncAttributePreferredSharedMemoryCarveout = cyruntime.cudaFuncAttribute.cudaFuncAttributePreferredSharedMemoryCarveout             # <<<<<<<<<<<<<<
 * 
 *     #: Indicator to enforce valid cluster dimension specification on kernel
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributePreferredShared, __pyx_t_19) < (0)) __PYX_ERR(0, 2343, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2347
 *     #: Indicator to enforce valid cluster dimension specification on kernel
 *     #: launch
 *     cudaFuncAttributeClusterDimMustBeSet = cyruntime.cudaFuncAttribute.cudaFuncAttributeClusterDimMustBeSet             # <<<<<<<<<<<<<<
 * 
 *     #: Required cluster width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributeClusterDimMustBeSet); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributeClusterDimMustB, __pyx_t_19) < (0)) __PYX_ERR(0, 2347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2350
 * 
 *     #: Required cluster width
 *     cudaFuncAttributeRequiredClusterWidth = cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Required cluster height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributeRequiredClusterWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributeRequiredCluster, __pyx_t_19) < (0)) __PYX_ERR(0, 2350, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2353
 * 
 *     #: Required cluster height
 *     cudaFuncAttributeRequiredClusterHeight = cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Required cluster depth
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributeRequiredClusterHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributeRequiredCluster_2, __pyx_t_19) < (0)) __PYX_ERR(0, 2353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2356
 * 
 *     #: Required cluster depth
 *     cudaFuncAttributeRequiredClusterDepth = cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterDepth             # <<<<<<<<<<<<<<
 * 
 *     #: Whether non-portable cluster scheduling policy is supported
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributeRequiredClusterDepth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributeRequiredCluster_3, __pyx_t_19) < (0)) __PYX_ERR(0, 2356, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2359
 * 
 *     #: Whether non-portable cluster scheduling policy is supported
 *     cudaFuncAttributeNonPortableClusterSizeAllowed = cyruntime.cudaFuncAttribute.cudaFuncAttributeNonPortableClusterSizeAllowed             # <<<<<<<<<<<<<<
 * 
 *     #: Required cluster scheduling policy preference
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributeNonPortableClusterSizeAllowed); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributeNonPortableClus, __pyx_t_19) < (0)) __PYX_ERR(0, 2359, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2362
 * 
 *     #: Required cluster scheduling policy preference
 *     cudaFuncAttributeClusterSchedulingPolicyPreference = cyruntime.cudaFuncAttribute.cudaFuncAttributeClusterSchedulingPolicyPreference             # <<<<<<<<<<<<<<
 *     cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributeClusterScheduli, __pyx_t_19) < (0)) __PYX_ERR(0, 2362, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2363
 *     #: Required cluster scheduling policy preference
 *     cudaFuncAttributeClusterSchedulingPolicyPreference = cyruntime.cudaFuncAttribute.cudaFuncAttributeClusterSchedulingPolicyPreference
 *     cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaFuncAttribute = dict(((int(v), v) for k, v in cudaFuncAttribute.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFuncAttribute(cudaFuncAttributeMax); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributeMax, __pyx_t_19) < (0)) __PYX_ERR(0, 2363, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2333
 * _dict_cudaResourceViewFormat = dict(((int(v), v) for k, v in cudaResourceViewFormat.__members__.items()))
 * 
 * class cudaFuncAttribute(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA function attributes that can be set using
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaFuncAttribute, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFuncAttribute, __pyx_t_19) < (0)) __PYX_ERR(0, 2333, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2365
 *     cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax
 * 
 * _dict_cudaFuncAttribute = dict(((int(v), v) for k, v in cudaFuncAttribute.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFuncCache(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFuncAttribute); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_765genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaFuncAttribute, __pyx_t_4) < (0)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2367
 * _dict_cudaFuncAttribute = dict(((int(v), v) for k, v in cudaFuncAttribute.__members__.items()))
 * 
 * class cudaFuncCache(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA function cache configurations
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaFuncCache, __pyx_mstate_global->__pyx_n_u_cudaFuncCache, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_function_cache_configurati); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 2367, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2373
 * 
 *     #: Default function cache configuration, no preference
 *     cudaFuncCachePreferNone = cyruntime.cudaFuncCache.cudaFuncCachePreferNone             # <<<<<<<<<<<<<<
 * 
 *     #: Prefer larger shared memory and smaller L1 cache
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaFuncCache(cudaFuncCachePreferNone); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaFuncCachePreferNone, __pyx_t_18) < (0)) __PYX_ERR(0, 2373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2376
 * 
 *     #: Prefer larger shared memory and smaller L1 cache
 *     cudaFuncCachePreferShared = cyruntime.cudaFuncCache.cudaFuncCachePreferShared             # <<<<<<<<<<<<<<
 * 
 *     #: Prefer larger L1 cache and smaller shared memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaFuncCache(cudaFuncCachePreferShared); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaFuncCachePreferShared, __pyx_t_18) < (0)) __PYX_ERR(0, 2376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2379
 * 
 *     #: Prefer larger L1 cache and smaller shared memory
 *     cudaFuncCachePreferL1 = cyruntime.cudaFuncCache.cudaFuncCachePreferL1             # <<<<<<<<<<<<<<
 * 
 *     #: Prefer equal size L1 cache and shared memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaFuncCache(cudaFuncCachePreferL1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaFuncCachePreferL1, __pyx_t_18) < (0)) __PYX_ERR(0, 2379, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2382
 * 
 *     #: Prefer equal size L1 cache and shared memory
 *     cudaFuncCachePreferEqual = cyruntime.cudaFuncCache.cudaFuncCachePreferEqual             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaFuncCache = dict(((int(v), v) for k, v in cudaFuncCache.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaFuncCache(cudaFuncCachePreferEqual); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaFuncCachePreferEqual, __pyx_t_18) < (0)) __PYX_ERR(0, 2382, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2367
 * _dict_cudaFuncAttribute = dict(((int(v), v) for k, v in cudaFuncAttribute.__members__.items()))
 * 
 * class cudaFuncCache(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA function cache configurations
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFuncCache, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFuncCache, __pyx_t_18) < (0)) __PYX_ERR(0, 2367, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2384
 *     cudaFuncCachePreferEqual = cyruntime.cudaFuncCache.cudaFuncCachePreferEqual
 * 
 * _dict_cudaFuncCache = dict(((int(v), v) for k, v in cudaFuncCache.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSharedMemConfig(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaFuncCache); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_768genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaFuncCache, __pyx_t_20) < (0)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2386
 * _dict_cudaFuncCache = dict(((int(v), v) for k, v in cudaFuncCache.__members__.items()))
 * 
 * class cudaSharedMemConfig(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA shared memory configuration [Deprecated]
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaSharedMemConfig, __pyx_mstate_global->__pyx_n_u_cudaSharedMemConfig, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_shared_memory_configuratio); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2386, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2390
 *     CUDA shared memory configuration [Deprecated]
 *     """
 *     cudaSharedMemBankSizeDefault = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeDefault             # <<<<<<<<<<<<<<
 *     cudaSharedMemBankSizeFourByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte
 *     cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaSharedMemConfig(cudaSharedMemBankSizeDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSharedMemBankSizeDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 2390, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2391
 *     """
 *     cudaSharedMemBankSizeDefault = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeDefault
 *     cudaSharedMemBankSizeFourByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte             # <<<<<<<<<<<<<<
 *     cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaSharedMemConfig(cudaSharedMemBankSizeFourByte); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSharedMemBankSizeFourByte, __pyx_t_4) < (0)) __PYX_ERR(0, 2391, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2392
 *     cudaSharedMemBankSizeDefault = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeDefault
 *     cudaSharedMemBankSizeFourByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte
 *     cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaSharedMemConfig = dict(((int(v), v) for k, v in cudaSharedMemConfig.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaSharedMemConfig(cudaSharedMemBankSizeEightByte); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSharedMemBankSizeEightByte, __pyx_t_4) < (0)) __PYX_ERR(0, 2392, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2386
 * _dict_cudaFuncCache = dict(((int(v), v) for k, v in cudaFuncCache.__members__.items()))
 * 
 * class cudaSharedMemConfig(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA shared memory configuration [Deprecated]
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaSharedMemConfig, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSharedMemConfig, __pyx_t_4) < (0)) __PYX_ERR(0, 2386, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2394
 *     cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte
 * 
 * _dict_cudaSharedMemConfig = dict(((int(v), v) for k, v in cudaSharedMemConfig.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSharedCarveout(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaSharedMemConfig); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_771genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaSharedMemConfig, __pyx_t_19) < (0)) __PYX_ERR(0, 2394, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2396
 * _dict_cudaSharedMemConfig = dict(((int(v), v) for k, v in cudaSharedMemConfig.__members__.items()))
 * 
 * class cudaSharedCarveout(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Shared memory carveout configurations. These may be passed to
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaSharedCarveout, __pyx_mstate_global->__pyx_n_u_cudaSharedCarveout, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Shared_memory_carveout_configur); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 2396, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2403
 * 
 *     #: No preference for shared memory or L1 (default)
 *     cudaSharedmemCarveoutDefault = cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutDefault             # <<<<<<<<<<<<<<
 * 
 *     #: Prefer maximum available L1 cache, minimum shared memory
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaSharedCarveout(cudaSharedmemCarveoutDefault); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaSharedmemCarveoutDefault, __pyx_t_20) < (0)) __PYX_ERR(0, 2403, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2406
 * 
 *     #: Prefer maximum available L1 cache, minimum shared memory
 *     cudaSharedmemCarveoutMaxL1 = cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxL1             # <<<<<<<<<<<<<<
 * 
 *     #: Prefer maximum available shared memory, minimum L1 cache
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaSharedCarveout(cudaSharedmemCarveoutMaxL1); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaSharedmemCarveoutMaxL1, __pyx_t_20) < (0)) __PYX_ERR(0, 2406, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2409
 * 
 *     #: Prefer maximum available shared memory, minimum L1 cache
 *     cudaSharedmemCarveoutMaxShared = cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaSharedCarveout = dict(((int(v), v) for k, v in cudaSharedCarveout.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaSharedCarveout(cudaSharedmemCarveoutMaxShared); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaSharedmemCarveoutMaxShared, __pyx_t_20) < (0)) __PYX_ERR(0, 2409, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2396
 * _dict_cudaSharedMemConfig = dict(((int(v), v) for k, v in cudaSharedMemConfig.__members__.items()))
 * 
 * class cudaSharedCarveout(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Shared memory carveout configurations. These may be passed to
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSharedCarveout, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSharedCarveout, __pyx_t_20) < (0)) __PYX_ERR(0, 2396, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2411
 *     cudaSharedmemCarveoutMaxShared = cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared
 * 
 * _dict_cudaSharedCarveout = dict(((int(v), v) for k, v in cudaSharedCarveout.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaComputeMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaSharedCarveout); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_774genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaSharedCarveout, __pyx_t_18) < (0)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2413
 * _dict_cudaSharedCarveout = dict(((int(v), v) for k, v in cudaSharedCarveout.__members__.items()))
 * 
 * class cudaComputeMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device compute modes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaComputeMode, __pyx_mstate_global->__pyx_n_u_cudaComputeMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_device_compute_modes); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 2413, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2420
 *     #: Default compute mode (Multiple threads can use
 *     #: :py:obj:`~.cudaSetDevice()` with this device)
 *     cudaComputeModeDefault = cyruntime.cudaComputeMode.cudaComputeModeDefault             # <<<<<<<<<<<<<<
 * 
 *     #: Compute-exclusive-thread mode (Only one thread in one process will
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaComputeMode(cudaComputeModeDefault); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaComputeModeDefault, __pyx_t_19) < (0)) __PYX_ERR(0, 2420, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2424
 *     #: Compute-exclusive-thread mode (Only one thread in one process will
 *     #: be able to use :py:obj:`~.cudaSetDevice()` with this device)
 *     cudaComputeModeExclusive = cyruntime.cudaComputeMode.cudaComputeModeExclusive             # <<<<<<<<<<<<<<
 * 
 *     #: Compute-prohibited mode (No threads can use
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaComputeMode(cudaComputeModeExclusive); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaComputeModeExclusive, __pyx_t_19) < (0)) __PYX_ERR(0, 2424, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2428
 *     #: Compute-prohibited mode (No threads can use
 *     #: :py:obj:`~.cudaSetDevice()` with this device)
 *     cudaComputeModeProhibited = cyruntime.cudaComputeMode.cudaComputeModeProhibited             # <<<<<<<<<<<<<<
 * 
 *     #: Compute-exclusive-process mode (Many threads in one process will be
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaComputeMode(cudaComputeModeProhibited); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaComputeModeProhibited, __pyx_t_19) < (0)) __PYX_ERR(0, 2428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2432
 *     #: Compute-exclusive-process mode (Many threads in one process will be
 *     #: able to use :py:obj:`~.cudaSetDevice()` with this device)
 *     cudaComputeModeExclusiveProcess = cyruntime.cudaComputeMode.cudaComputeModeExclusiveProcess             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaComputeMode = dict(((int(v), v) for k, v in cudaComputeMode.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaComputeMode(cudaComputeModeExclusiveProcess); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaComputeModeExclusiveProcess, __pyx_t_19) < (0)) __PYX_ERR(0, 2432, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2413
 * _dict_cudaSharedCarveout = dict(((int(v), v) for k, v in cudaSharedCarveout.__members__.items()))
 * 
 * class cudaComputeMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device compute modes
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaComputeMode, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaComputeMode, __pyx_t_19) < (0)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2434
 *     cudaComputeModeExclusiveProcess = cyruntime.cudaComputeMode.cudaComputeModeExclusiveProcess
 * 
 * _dict_cudaComputeMode = dict(((int(v), v) for k, v in cudaComputeMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLimit(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaComputeMode); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_777genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaComputeMode, __pyx_t_4) < (0)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2436
 * _dict_cudaComputeMode = dict(((int(v), v) for k, v in cudaComputeMode.__members__.items()))
 * 
 * class cudaLimit(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Limits
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLimit, __pyx_mstate_global->__pyx_n_u_cudaLimit, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_Limits); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 2436, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2442
 * 
 *     #: GPU thread stack size
 *     cudaLimitStackSize = cyruntime.cudaLimit.cudaLimitStackSize             # <<<<<<<<<<<<<<
 * 
 *     #: GPU printf FIFO size
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLimit(cudaLimitStackSize); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2442, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLimitStackSize, __pyx_t_18) < (0)) __PYX_ERR(0, 2442, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2445
 * 
 *     #: GPU printf FIFO size
 *     cudaLimitPrintfFifoSize = cyruntime.cudaLimit.cudaLimitPrintfFifoSize             # <<<<<<<<<<<<<<
 * 
 *     #: GPU malloc heap size
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLimit(cudaLimitPrintfFifoSize); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLimitPrintfFifoSize, __pyx_t_18) < (0)) __PYX_ERR(0, 2445, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2448
 * 
 *     #: GPU malloc heap size
 *     cudaLimitMallocHeapSize = cyruntime.cudaLimit.cudaLimitMallocHeapSize             # <<<<<<<<<<<<<<
 * 
 *     #: GPU device runtime synchronize depth
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLimit(cudaLimitMallocHeapSize); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLimitMallocHeapSize, __pyx_t_18) < (0)) __PYX_ERR(0, 2448, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2451
 * 
 *     #: GPU device runtime synchronize depth
 *     cudaLimitDevRuntimeSyncDepth = cyruntime.cudaLimit.cudaLimitDevRuntimeSyncDepth             # <<<<<<<<<<<<<<
 * 
 *     #: GPU device runtime pending launch count
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLimit(cudaLimitDevRuntimeSyncDepth); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLimitDevRuntimeSyncDepth, __pyx_t_18) < (0)) __PYX_ERR(0, 2451, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2454
 * 
 *     #: GPU device runtime pending launch count
 *     cudaLimitDevRuntimePendingLaunchCount = cyruntime.cudaLimit.cudaLimitDevRuntimePendingLaunchCount             # <<<<<<<<<<<<<<
 * 
 *     #: A value between 0 and 128 that indicates the maximum fetch
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLimit(cudaLimitDevRuntimePendingLaunchCount); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLimitDevRuntimePendingLaunch, __pyx_t_18) < (0)) __PYX_ERR(0, 2454, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2458
 *     #: A value between 0 and 128 that indicates the maximum fetch
 *     #: granularity of L2 (in Bytes). This is a hint
 *     cudaLimitMaxL2FetchGranularity = cyruntime.cudaLimit.cudaLimitMaxL2FetchGranularity             # <<<<<<<<<<<<<<
 * 
 *     #: A size in bytes for L2 persisting lines cache size
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLimit(cudaLimitMaxL2FetchGranularity); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLimitMaxL2FetchGranularity, __pyx_t_18) < (0)) __PYX_ERR(0, 2458, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2461
 * 
 *     #: A size in bytes for L2 persisting lines cache size
 *     cudaLimitPersistingL2CacheSize = cyruntime.cudaLimit.cudaLimitPersistingL2CacheSize             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaLimit = dict(((int(v), v) for k, v in cudaLimit.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaLimit(cudaLimitPersistingL2CacheSize); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLimitPersistingL2CacheSize, __pyx_t_18) < (0)) __PYX_ERR(0, 2461, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2436
 * _dict_cudaComputeMode = dict(((int(v), v) for k, v in cudaComputeMode.__members__.items()))
 * 
 * class cudaLimit(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Limits
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLimit, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLimit, __pyx_t_18) < (0)) __PYX_ERR(0, 2436, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2463
 *     cudaLimitPersistingL2CacheSize = cyruntime.cudaLimit.cudaLimitPersistingL2CacheSize
 * 
 * _dict_cudaLimit = dict(((int(v), v) for k, v in cudaLimit.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemoryAdvise(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLimit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_780genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaLimit, __pyx_t_20) < (0)) __PYX_ERR(0, 2463, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2465
 * _dict_cudaLimit = dict(((int(v), v) for k, v in cudaLimit.__members__.items()))
 * 
 * class cudaMemoryAdvise(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Memory Advise values
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemoryAdvise, __pyx_mstate_global->__pyx_n_u_cudaMemoryAdvise, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_Memory_Advise_values); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2465, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2471
 * 
 *     #: Data will mostly be read and only occassionally be written to
 *     cudaMemAdviseSetReadMostly = cyruntime.cudaMemoryAdvise.cudaMemAdviseSetReadMostly             # <<<<<<<<<<<<<<
 * 
 *     #: Undo the effect of :py:obj:`~.cudaMemAdviseSetReadMostly`
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemoryAdvise(cudaMemAdviseSetReadMostly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAdviseSetReadMostly, __pyx_t_4) < (0)) __PYX_ERR(0, 2471, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2474
 * 
 *     #: Undo the effect of :py:obj:`~.cudaMemAdviseSetReadMostly`
 *     cudaMemAdviseUnsetReadMostly = cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetReadMostly             # <<<<<<<<<<<<<<
 * 
 *     #: Set the preferred location for the data as the specified device
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemoryAdvise(cudaMemAdviseUnsetReadMostly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAdviseUnsetReadMostly, __pyx_t_4) < (0)) __PYX_ERR(0, 2474, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2477
 * 
 *     #: Set the preferred location for the data as the specified device
 *     cudaMemAdviseSetPreferredLocation = cyruntime.cudaMemoryAdvise.cudaMemAdviseSetPreferredLocation             # <<<<<<<<<<<<<<
 * 
 *     #: Clear the preferred location for the data
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemoryAdvise(cudaMemAdviseSetPreferredLocation); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAdviseSetPreferredLocatio, __pyx_t_4) < (0)) __PYX_ERR(0, 2477, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2480
 * 
 *     #: Clear the preferred location for the data
 *     cudaMemAdviseUnsetPreferredLocation = cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetPreferredLocation             # <<<<<<<<<<<<<<
 * 
 *     #: Data will be accessed by the specified device, so prevent page
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemoryAdvise(cudaMemAdviseUnsetPreferredLocation); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAdviseUnsetPreferredLocat, __pyx_t_4) < (0)) __PYX_ERR(0, 2480, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2484
 *     #: Data will be accessed by the specified device, so prevent page
 *     #: faults as much as possible
 *     cudaMemAdviseSetAccessedBy = cyruntime.cudaMemoryAdvise.cudaMemAdviseSetAccessedBy             # <<<<<<<<<<<<<<
 * 
 *     #: Let the Unified Memory subsystem decide on the page faulting policy
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemoryAdvise(cudaMemAdviseSetAccessedBy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAdviseSetAccessedBy, __pyx_t_4) < (0)) __PYX_ERR(0, 2484, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2488
 *     #: Let the Unified Memory subsystem decide on the page faulting policy
 *     #: for the specified device
 *     cudaMemAdviseUnsetAccessedBy = cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemoryAdvise = dict(((int(v), v) for k, v in cudaMemoryAdvise.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemoryAdvise(cudaMemAdviseUnsetAccessedBy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAdviseUnsetAccessedBy, __pyx_t_4) < (0)) __PYX_ERR(0, 2488, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2465
 * _dict_cudaLimit = dict(((int(v), v) for k, v in cudaLimit.__members__.items()))
 * 
 * class cudaMemoryAdvise(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Memory Advise values
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemoryAdvise, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemoryAdvise, __pyx_t_4) < (0)) __PYX_ERR(0, 2465, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2490
 *     cudaMemAdviseUnsetAccessedBy = cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy
 * 
 * _dict_cudaMemoryAdvise = dict(((int(v), v) for k, v in cudaMemoryAdvise.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemRangeAttribute(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemoryAdvise); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_783genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemoryAdvise, __pyx_t_19) < (0)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2492
 * _dict_cudaMemoryAdvise = dict(((int(v), v) for k, v in cudaMemoryAdvise.__members__.items()))
 * 
 * class cudaMemRangeAttribute(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA range attributes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttribute, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttribute, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_range_attributes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 2492, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2499
 *     #: Whether the range will mostly be read and only occassionally be
 *     #: written to
 *     cudaMemRangeAttributeReadMostly = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeReadMostly             # <<<<<<<<<<<<<<
 * 
 *     #: The preferred location of the range
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeReadMostly); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttributeReadMostly, __pyx_t_20) < (0)) __PYX_ERR(0, 2499, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2502
 * 
 *     #: The preferred location of the range
 *     cudaMemRangeAttributePreferredLocation = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocation             # <<<<<<<<<<<<<<
 * 
 *     #: Memory range has :py:obj:`~.cudaMemAdviseSetAccessedBy` set for
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributePreferredLocation); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttributePreferredLo, __pyx_t_20) < (0)) __PYX_ERR(0, 2502, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2506
 *     #: Memory range has :py:obj:`~.cudaMemAdviseSetAccessedBy` set for
 *     #: specified device
 *     cudaMemRangeAttributeAccessedBy = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeAccessedBy             # <<<<<<<<<<<<<<
 * 
 *     #: The last location to which the range was prefetched
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeAccessedBy); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttributeAccessedBy, __pyx_t_20) < (0)) __PYX_ERR(0, 2506, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2509
 * 
 *     #: The last location to which the range was prefetched
 *     cudaMemRangeAttributeLastPrefetchLocation = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocation             # <<<<<<<<<<<<<<
 * 
 *     #: The preferred location type of the range
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeLastPrefetchLocation); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttributeLastPrefetc, __pyx_t_20) < (0)) __PYX_ERR(0, 2509, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2512
 * 
 *     #: The preferred location type of the range
 *     cudaMemRangeAttributePreferredLocationType = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocationType             # <<<<<<<<<<<<<<
 * 
 *     #: The preferred location id of the range
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributePreferredLocationType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttributePreferredLo_2, __pyx_t_20) < (0)) __PYX_ERR(0, 2512, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2515
 * 
 *     #: The preferred location id of the range
 *     cudaMemRangeAttributePreferredLocationId = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocationId             # <<<<<<<<<<<<<<
 * 
 *     #: The last location type to which the range was prefetched
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributePreferredLocationId); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttributePreferredLo_3, __pyx_t_20) < (0)) __PYX_ERR(0, 2515, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2518
 * 
 *     #: The last location type to which the range was prefetched
 *     cudaMemRangeAttributeLastPrefetchLocationType = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationType             # <<<<<<<<<<<<<<
 * 
 *     #: The last location id to which the range was prefetched
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeLastPrefetchLocationType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttributeLastPrefetc_2, __pyx_t_20) < (0)) __PYX_ERR(0, 2518, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2521
 * 
 *     #: The last location id to which the range was prefetched
 *     cudaMemRangeAttributeLastPrefetchLocationId = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemRangeAttribute = dict(((int(v), v) for k, v in cudaMemRangeAttribute.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemRangeAttribute(cudaMemRangeAttributeLastPrefetchLocationId); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttributeLastPrefetc_3, __pyx_t_20) < (0)) __PYX_ERR(0, 2521, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2492
 * _dict_cudaMemoryAdvise = dict(((int(v), v) for k, v in cudaMemoryAdvise.__members__.items()))
 * 
 * class cudaMemRangeAttribute(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA range attributes
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttribute, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttribute, __pyx_t_20) < (0)) __PYX_ERR(0, 2492, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2523
 *     cudaMemRangeAttributeLastPrefetchLocationId = cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId
 * 
 * _dict_cudaMemRangeAttribute = dict(((int(v), v) for k, v in cudaMemRangeAttribute.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesOptions(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttribute); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_786genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemRangeAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 2523, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2525
 * _dict_cudaMemRangeAttribute = dict(((int(v), v) for k, v in cudaMemRangeAttribute.__members__.items()))
 * 
 * class cudaFlushGPUDirectRDMAWritesOptions(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPUDirect RDMA flush writes APIs supported on the device
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_GPUDirect_RDMA_flush_write); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 2525, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2532
 *     #: :py:obj:`~.cudaDeviceFlushGPUDirectRDMAWrites()` and its CUDA Driver
 *     #: API counterpart are supported on the device.
 *     cudaFlushGPUDirectRDMAWritesOptionHost = cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionHost             # <<<<<<<<<<<<<<
 * 
 *     #: The :py:obj:`~.CU_STREAM_WAIT_VALUE_FLUSH` flag and the
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesOptions(cudaFlushGPUDirectRDMAWritesOptionHost); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti_2, __pyx_t_19) < (0)) __PYX_ERR(0, 2532, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2537
 *     #: :py:obj:`~.CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES` MemOp are supported
 *     #: on the CUDA device.
 *     cudaFlushGPUDirectRDMAWritesOptionMemOps = cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesOptions = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesOptions.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesOptions(cudaFlushGPUDirectRDMAWritesOptionMemOps); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti_3, __pyx_t_19) < (0)) __PYX_ERR(0, 2537, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2525
 * _dict_cudaMemRangeAttribute = dict(((int(v), v) for k, v in cudaMemRangeAttribute.__members__.items()))
 * 
 * class cudaFlushGPUDirectRDMAWritesOptions(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPUDirect RDMA flush writes APIs supported on the device
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti, __pyx_t_19) < (0)) __PYX_ERR(0, 2525, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2539
 *     cudaFlushGPUDirectRDMAWritesOptionMemOps = cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesOptions = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesOptions.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGPUDirectRDMAWritesOrdering(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesOpti); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_789genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaFlushGPUDirectRDMAWrit, __pyx_t_4) < (0)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2541
 * _dict_cudaFlushGPUDirectRDMAWritesOptions = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesOptions.__members__.items()))
 * 
 * class cudaGPUDirectRDMAWritesOrdering(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPUDirect RDMA flush writes ordering features of the device
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGPUDirectRDMAWritesOrdering, __pyx_mstate_global->__pyx_n_u_cudaGPUDirectRDMAWritesOrdering, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_GPUDirect_RDMA_flush_write_2); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 2541, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2549
 *     #: writes. :py:obj:`~.cudaFlushGPUDirectRDMAWrites()` can be leveraged
 *     #: if supported.
 *     cudaGPUDirectRDMAWritesOrderingNone = cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingNone             # <<<<<<<<<<<<<<
 * 
 *     #: Natively, the device can consistently consume GPUDirect RDMA writes,
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGPUDirectRDMAWritesOrdering(cudaGPUDirectRDMAWritesOrderingNone); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGPUDirectRDMAWritesOrderingN, __pyx_t_18) < (0)) __PYX_ERR(0, 2549, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2553
 *     #: Natively, the device can consistently consume GPUDirect RDMA writes,
 *     #: although other CUDA devices may not.
 *     cudaGPUDirectRDMAWritesOrderingOwner = cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingOwner             # <<<<<<<<<<<<<<
 * 
 *     #: Any CUDA device in the system can consistently consume GPUDirect
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGPUDirectRDMAWritesOrdering(cudaGPUDirectRDMAWritesOrderingOwner); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGPUDirectRDMAWritesOrderingO, __pyx_t_18) < (0)) __PYX_ERR(0, 2553, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2557
 *     #: Any CUDA device in the system can consistently consume GPUDirect
 *     #: RDMA writes to this device.
 *     cudaGPUDirectRDMAWritesOrderingAllDevices = cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGPUDirectRDMAWritesOrdering = dict(((int(v), v) for k, v in cudaGPUDirectRDMAWritesOrdering.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGPUDirectRDMAWritesOrdering(cudaGPUDirectRDMAWritesOrderingAllDevices); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGPUDirectRDMAWritesOrderingA, __pyx_t_18) < (0)) __PYX_ERR(0, 2557, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2541
 * _dict_cudaFlushGPUDirectRDMAWritesOptions = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesOptions.__members__.items()))
 * 
 * class cudaGPUDirectRDMAWritesOrdering(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPUDirect RDMA flush writes ordering features of the device
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGPUDirectRDMAWritesOrdering, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGPUDirectRDMAWritesOrdering, __pyx_t_18) < (0)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2559
 *     cudaGPUDirectRDMAWritesOrderingAllDevices = cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices
 * 
 * _dict_cudaGPUDirectRDMAWritesOrdering = dict(((int(v), v) for k, v in cudaGPUDirectRDMAWritesOrdering.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesScope(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGPUDirectRDMAWritesOrdering); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_792genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGPUDirectRDMAWritesOrd, __pyx_t_20) < (0)) __PYX_ERR(0, 2559, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2561
 * _dict_cudaGPUDirectRDMAWritesOrdering = dict(((int(v), v) for k, v in cudaGPUDirectRDMAWritesOrdering.__members__.items()))
 * 
 * class cudaFlushGPUDirectRDMAWritesScope(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPUDirect RDMA flush writes scopes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesScop, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesScop, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_GPUDirect_RDMA_flush_write_3); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 2561, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2568
 *     #: Blocks until remote writes are visible to the CUDA device context
 *     #: owning the data.
 *     cudaFlushGPUDirectRDMAWritesToOwner = cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToOwner             # <<<<<<<<<<<<<<
 * 
 *     #: Blocks until remote writes are visible to all CUDA device contexts.
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesScope(cudaFlushGPUDirectRDMAWritesToOwner); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesToOw, __pyx_t_4) < (0)) __PYX_ERR(0, 2568, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2571
 * 
 *     #: Blocks until remote writes are visible to all CUDA device contexts.
 *     cudaFlushGPUDirectRDMAWritesToAllDevices = cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesScope = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesScope.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesScope(cudaFlushGPUDirectRDMAWritesToAllDevices); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesToAl, __pyx_t_4) < (0)) __PYX_ERR(0, 2571, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":2561
 * _dict_cudaGPUDirectRDMAWritesOrdering = dict(((int(v), v) for k, v in cudaGPUDirectRDMAWritesOrdering.__members__.items()))
 * 
 * class cudaFlushGPUDirectRDMAWritesScope(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPUDirect RDMA flush writes scopes
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesScop, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesScop, __pyx_t_4) < (0)) __PYX_ERR(0, 2561, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2573
 *     cudaFlushGPUDirectRDMAWritesToAllDevices = cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesScope = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaFlushGPUDirectRDMAWritesTarget(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesScop); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_795genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaFlushGPUDirectRDMAWrit_2, __pyx_t_19) < (0)) __PYX_ERR(0, 2573, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2575
 * _dict_cudaFlushGPUDirectRDMAWritesScope = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesScope.__members__.items()))
 * 
 * class cudaFlushGPUDirectRDMAWritesTarget(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPUDirect RDMA flush writes targets
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_GPUDirect_RDMA_flush_write_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 2575, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2582
 *     #: Sets the target for :py:obj:`~.cudaDeviceFlushGPUDirectRDMAWrites()`
 *     #: to the currently active CUDA device context.
 *     cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = cyruntime.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesTarget = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesTarget.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesTarget(cudaFlushGPUDirectRDMAWritesTargetCurrentDevice); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg_2, __pyx_t_20) < (0)) __PYX_ERR(0, 2582, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":2575
 * _dict_cudaFlushGPUDirectRDMAWritesScope = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesScope.__members__.items()))
 * 
 * class cudaFlushGPUDirectRDMAWritesTarget(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GPUDirect RDMA flush writes targets
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg, __pyx_t_20) < (0)) __PYX_ERR(0, 2575, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2584
 *     cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = cyruntime.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice
 * 
 * _dict_cudaFlushGPUDirectRDMAWritesTarget = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesTarget.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceAttr(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_798genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaFlushGPUDirectRDMAWrit_3, __pyx_t_18) < (0)) __PYX_ERR(0, 2584, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":2586
 * _dict_cudaFlushGPUDirectRDMAWritesTarget = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesTarget.__members__.items()))
 * 
 * class cudaDeviceAttr(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device attributes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 2586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDeviceAttr, __pyx_mstate_global->__pyx_n_u_cudaDeviceAttr, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_device_attributes); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 2586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 2586, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2592
 * 
 *     #: Maximum number of threads per block
 *     cudaDevAttrMaxThreadsPerBlock = cyruntime.cudaDeviceAttr.cudaDevAttrMaxThreadsPerBlock             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum block dimension X
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxThreadsPerBlock); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxThreadsPerBlock, __pyx_t_19) < (0)) __PYX_ERR(0, 2592, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2595
 * 
 *     #: Maximum block dimension X
 *     cudaDevAttrMaxBlockDimX = cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimX             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum block dimension Y
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxBlockDimX); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxBlockDimX, __pyx_t_19) < (0)) __PYX_ERR(0, 2595, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2598
 * 
 *     #: Maximum block dimension Y
 *     cudaDevAttrMaxBlockDimY = cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimY             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum block dimension Z
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxBlockDimY); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxBlockDimY, __pyx_t_19) < (0)) __PYX_ERR(0, 2598, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2601
 * 
 *     #: Maximum block dimension Z
 *     cudaDevAttrMaxBlockDimZ = cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimZ             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum grid dimension X
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxBlockDimZ); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxBlockDimZ, __pyx_t_19) < (0)) __PYX_ERR(0, 2601, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2604
 * 
 *     #: Maximum grid dimension X
 *     cudaDevAttrMaxGridDimX = cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimX             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum grid dimension Y
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxGridDimX); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxGridDimX, __pyx_t_19) < (0)) __PYX_ERR(0, 2604, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2607
 * 
 *     #: Maximum grid dimension Y
 *     cudaDevAttrMaxGridDimY = cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimY             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum grid dimension Z
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxGridDimY); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxGridDimY, __pyx_t_19) < (0)) __PYX_ERR(0, 2607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2610
 * 
 *     #: Maximum grid dimension Z
 *     cudaDevAttrMaxGridDimZ = cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimZ             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum shared memory available per block in bytes
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxGridDimZ); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxGridDimZ, __pyx_t_19) < (0)) __PYX_ERR(0, 2610, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2613
 * 
 *     #: Maximum shared memory available per block in bytes
 *     cudaDevAttrMaxSharedMemoryPerBlock = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerBlock             # <<<<<<<<<<<<<<
 * 
 *     #: Memory available on device for constant variables in a CUDA C kernel
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSharedMemoryPerBlock); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSharedMemoryPerBlo, __pyx_t_19) < (0)) __PYX_ERR(0, 2613, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2617
 *     #: Memory available on device for constant variables in a CUDA C kernel
 *     #: in bytes
 *     cudaDevAttrTotalConstantMemory = cyruntime.cudaDeviceAttr.cudaDevAttrTotalConstantMemory             # <<<<<<<<<<<<<<
 * 
 *     #: Warp size in threads
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrTotalConstantMemory); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrTotalConstantMemory, __pyx_t_19) < (0)) __PYX_ERR(0, 2617, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2620
 * 
 *     #: Warp size in threads
 *     cudaDevAttrWarpSize = cyruntime.cudaDeviceAttr.cudaDevAttrWarpSize             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum pitch in bytes allowed by memory copies
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrWarpSize); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrWarpSize, __pyx_t_19) < (0)) __PYX_ERR(0, 2620, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2623
 * 
 *     #: Maximum pitch in bytes allowed by memory copies
 *     cudaDevAttrMaxPitch = cyruntime.cudaDeviceAttr.cudaDevAttrMaxPitch             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum number of 32-bit registers available per block
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxPitch); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxPitch, __pyx_t_19) < (0)) __PYX_ERR(0, 2623, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2626
 * 
 *     #: Maximum number of 32-bit registers available per block
 *     cudaDevAttrMaxRegistersPerBlock = cyruntime.cudaDeviceAttr.cudaDevAttrMaxRegistersPerBlock             # <<<<<<<<<<<<<<
 * 
 *     #: Peak clock frequency in kilohertz
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxRegistersPerBlock); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxRegistersPerBlock, __pyx_t_19) < (0)) __PYX_ERR(0, 2626, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2629
 * 
 *     #: Peak clock frequency in kilohertz
 *     cudaDevAttrClockRate = cyruntime.cudaDeviceAttr.cudaDevAttrClockRate             # <<<<<<<<<<<<<<
 * 
 *     #: Alignment requirement for textures
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrClockRate); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrClockRate, __pyx_t_19) < (0)) __PYX_ERR(0, 2629, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2632
 * 
 *     #: Alignment requirement for textures
 *     cudaDevAttrTextureAlignment = cyruntime.cudaDeviceAttr.cudaDevAttrTextureAlignment             # <<<<<<<<<<<<<<
 * 
 *     #: Device can possibly copy memory and execute a kernel concurrently
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrTextureAlignment); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrTextureAlignment, __pyx_t_19) < (0)) __PYX_ERR(0, 2632, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2635
 * 
 *     #: Device can possibly copy memory and execute a kernel concurrently
 *     cudaDevAttrGpuOverlap = cyruntime.cudaDeviceAttr.cudaDevAttrGpuOverlap             # <<<<<<<<<<<<<<
 * 
 *     #: Number of multiprocessors on device
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrGpuOverlap); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrGpuOverlap, __pyx_t_19) < (0)) __PYX_ERR(0, 2635, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2638
 * 
 *     #: Number of multiprocessors on device
 *     cudaDevAttrMultiProcessorCount = cyruntime.cudaDeviceAttr.cudaDevAttrMultiProcessorCount             # <<<<<<<<<<<<<<
 * 
 *     #: Specifies whether there is a run time limit on kernels
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMultiProcessorCount); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMultiProcessorCount, __pyx_t_19) < (0)) __PYX_ERR(0, 2638, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2641
 * 
 *     #: Specifies whether there is a run time limit on kernels
 *     cudaDevAttrKernelExecTimeout = cyruntime.cudaDeviceAttr.cudaDevAttrKernelExecTimeout             # <<<<<<<<<<<<<<
 * 
 *     #: Device is integrated with host memory
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrKernelExecTimeout); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrKernelExecTimeout, __pyx_t_19) < (0)) __PYX_ERR(0, 2641, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2644
 * 
 *     #: Device is integrated with host memory
 *     cudaDevAttrIntegrated = cyruntime.cudaDeviceAttr.cudaDevAttrIntegrated             # <<<<<<<<<<<<<<
 * 
 *     #: Device can map host memory into CUDA address space
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrIntegrated); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrIntegrated, __pyx_t_19) < (0)) __PYX_ERR(0, 2644, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2647
 * 
 *     #: Device can map host memory into CUDA address space
 *     cudaDevAttrCanMapHostMemory = cyruntime.cudaDeviceAttr.cudaDevAttrCanMapHostMemory             # <<<<<<<<<<<<<<
 * 
 *     #: Compute mode (See :py:obj:`~.cudaComputeMode` for details)
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrCanMapHostMemory); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrCanMapHostMemory, __pyx_t_19) < (0)) __PYX_ERR(0, 2647, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2650
 * 
 *     #: Compute mode (See :py:obj:`~.cudaComputeMode` for details)
 *     cudaDevAttrComputeMode = cyruntime.cudaDeviceAttr.cudaDevAttrComputeMode             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 1D texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrComputeMode); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2650, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrComputeMode, __pyx_t_19) < (0)) __PYX_ERR(0, 2650, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2653
 * 
 *     #: Maximum 1D texture width
 *     cudaDevAttrMaxTexture1DWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture1DWidth, __pyx_t_19) < (0)) __PYX_ERR(0, 2653, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2656
 * 
 *     #: Maximum 2D texture width
 *     cudaDevAttrMaxTexture2DWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D texture height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DWidth, __pyx_t_19) < (0)) __PYX_ERR(0, 2656, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2659
 * 
 *     #: Maximum 2D texture height
 *     cudaDevAttrMaxTexture2DHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 3D texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DHeight, __pyx_t_19) < (0)) __PYX_ERR(0, 2659, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2662
 * 
 *     #: Maximum 3D texture width
 *     cudaDevAttrMaxTexture3DWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 3D texture height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture3DWidth, __pyx_t_19) < (0)) __PYX_ERR(0, 2662, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2665
 * 
 *     #: Maximum 3D texture height
 *     cudaDevAttrMaxTexture3DHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 3D texture depth
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture3DHeight, __pyx_t_19) < (0)) __PYX_ERR(0, 2665, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2668
 * 
 *     #: Maximum 3D texture depth
 *     cudaDevAttrMaxTexture3DDepth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DDepth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D layered texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DDepth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2668, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture3DDepth, __pyx_t_19) < (0)) __PYX_ERR(0, 2668, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2671
 * 
 *     #: Maximum 2D layered texture width
 *     cudaDevAttrMaxTexture2DLayeredWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D layered texture height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLayeredWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DLayeredWi, __pyx_t_19) < (0)) __PYX_ERR(0, 2671, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2674
 * 
 *     #: Maximum 2D layered texture height
 *     cudaDevAttrMaxTexture2DLayeredHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum layers in a 2D layered texture
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLayeredHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2674, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DLayeredHe, __pyx_t_19) < (0)) __PYX_ERR(0, 2674, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2677
 * 
 *     #: Maximum layers in a 2D layered texture
 *     cudaDevAttrMaxTexture2DLayeredLayers = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredLayers             # <<<<<<<<<<<<<<
 * 
 *     #: Alignment requirement for surfaces
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLayeredLayers); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DLayeredLa, __pyx_t_19) < (0)) __PYX_ERR(0, 2677, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2680
 * 
 *     #: Alignment requirement for surfaces
 *     cudaDevAttrSurfaceAlignment = cyruntime.cudaDeviceAttr.cudaDevAttrSurfaceAlignment             # <<<<<<<<<<<<<<
 * 
 *     #: Device can possibly execute multiple kernels concurrently
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrSurfaceAlignment); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrSurfaceAlignment, __pyx_t_19) < (0)) __PYX_ERR(0, 2680, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2683
 * 
 *     #: Device can possibly execute multiple kernels concurrently
 *     cudaDevAttrConcurrentKernels = cyruntime.cudaDeviceAttr.cudaDevAttrConcurrentKernels             # <<<<<<<<<<<<<<
 * 
 *     #: Device has ECC support enabled
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrConcurrentKernels); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrConcurrentKernels, __pyx_t_19) < (0)) __PYX_ERR(0, 2683, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2686
 * 
 *     #: Device has ECC support enabled
 *     cudaDevAttrEccEnabled = cyruntime.cudaDeviceAttr.cudaDevAttrEccEnabled             # <<<<<<<<<<<<<<
 * 
 *     #: PCI bus ID of the device
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrEccEnabled); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrEccEnabled, __pyx_t_19) < (0)) __PYX_ERR(0, 2686, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2689
 * 
 *     #: PCI bus ID of the device
 *     cudaDevAttrPciBusId = cyruntime.cudaDeviceAttr.cudaDevAttrPciBusId             # <<<<<<<<<<<<<<
 * 
 *     #: PCI device ID of the device
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrPciBusId); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrPciBusId, __pyx_t_19) < (0)) __PYX_ERR(0, 2689, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2692
 * 
 *     #: PCI device ID of the device
 *     cudaDevAttrPciDeviceId = cyruntime.cudaDeviceAttr.cudaDevAttrPciDeviceId             # <<<<<<<<<<<<<<
 * 
 *     #: Device is using TCC driver model
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrPciDeviceId); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrPciDeviceId, __pyx_t_19) < (0)) __PYX_ERR(0, 2692, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2695
 * 
 *     #: Device is using TCC driver model
 *     cudaDevAttrTccDriver = cyruntime.cudaDeviceAttr.cudaDevAttrTccDriver             # <<<<<<<<<<<<<<
 * 
 *     #: Peak memory clock frequency in kilohertz
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrTccDriver); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrTccDriver, __pyx_t_19) < (0)) __PYX_ERR(0, 2695, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2698
 * 
 *     #: Peak memory clock frequency in kilohertz
 *     cudaDevAttrMemoryClockRate = cyruntime.cudaDeviceAttr.cudaDevAttrMemoryClockRate             # <<<<<<<<<<<<<<
 * 
 *     #: Global memory bus width in bits
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMemoryClockRate); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMemoryClockRate, __pyx_t_19) < (0)) __PYX_ERR(0, 2698, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2701
 * 
 *     #: Global memory bus width in bits
 *     cudaDevAttrGlobalMemoryBusWidth = cyruntime.cudaDeviceAttr.cudaDevAttrGlobalMemoryBusWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Size of L2 cache in bytes
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrGlobalMemoryBusWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrGlobalMemoryBusWidth, __pyx_t_19) < (0)) __PYX_ERR(0, 2701, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2704
 * 
 *     #: Size of L2 cache in bytes
 *     cudaDevAttrL2CacheSize = cyruntime.cudaDeviceAttr.cudaDevAttrL2CacheSize             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum resident threads per multiprocessor
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrL2CacheSize); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrL2CacheSize, __pyx_t_19) < (0)) __PYX_ERR(0, 2704, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2707
 * 
 *     #: Maximum resident threads per multiprocessor
 *     cudaDevAttrMaxThreadsPerMultiProcessor = cyruntime.cudaDeviceAttr.cudaDevAttrMaxThreadsPerMultiProcessor             # <<<<<<<<<<<<<<
 * 
 *     #: Number of asynchronous engines
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxThreadsPerMultiProcessor); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxThreadsPerMultiPro, __pyx_t_19) < (0)) __PYX_ERR(0, 2707, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2710
 * 
 *     #: Number of asynchronous engines
 *     cudaDevAttrAsyncEngineCount = cyruntime.cudaDeviceAttr.cudaDevAttrAsyncEngineCount             # <<<<<<<<<<<<<<
 * 
 *     #: Device shares a unified address space with the host
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrAsyncEngineCount); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrAsyncEngineCount, __pyx_t_19) < (0)) __PYX_ERR(0, 2710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2713
 * 
 *     #: Device shares a unified address space with the host
 *     cudaDevAttrUnifiedAddressing = cyruntime.cudaDeviceAttr.cudaDevAttrUnifiedAddressing             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 1D layered texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrUnifiedAddressing); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrUnifiedAddressing, __pyx_t_19) < (0)) __PYX_ERR(0, 2713, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2716
 * 
 *     #: Maximum 1D layered texture width
 *     cudaDevAttrMaxTexture1DLayeredWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLayeredWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum layers in a 1D layered texture
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DLayeredWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2716, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture1DLayeredWi, __pyx_t_19) < (0)) __PYX_ERR(0, 2716, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2719
 * 
 *     #: Maximum layers in a 1D layered texture
 *     cudaDevAttrMaxTexture1DLayeredLayers = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLayeredLayers             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D texture width if cudaArrayTextureGather is set
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DLayeredLayers); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture1DLayeredLa, __pyx_t_19) < (0)) __PYX_ERR(0, 2719, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2722
 * 
 *     #: Maximum 2D texture width if cudaArrayTextureGather is set
 *     cudaDevAttrMaxTexture2DGatherWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DGatherWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D texture height if cudaArrayTextureGather is set
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DGatherWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2722, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DGatherWid, __pyx_t_19) < (0)) __PYX_ERR(0, 2722, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2725
 * 
 *     #: Maximum 2D texture height if cudaArrayTextureGather is set
 *     cudaDevAttrMaxTexture2DGatherHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DGatherHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Alternate maximum 3D texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DGatherHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DGatherHei, __pyx_t_19) < (0)) __PYX_ERR(0, 2725, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2728
 * 
 *     #: Alternate maximum 3D texture width
 *     cudaDevAttrMaxTexture3DWidthAlt = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DWidthAlt             # <<<<<<<<<<<<<<
 * 
 *     #: Alternate maximum 3D texture height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DWidthAlt); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture3DWidthAlt, __pyx_t_19) < (0)) __PYX_ERR(0, 2728, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2731
 * 
 *     #: Alternate maximum 3D texture height
 *     cudaDevAttrMaxTexture3DHeightAlt = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DHeightAlt             # <<<<<<<<<<<<<<
 * 
 *     #: Alternate maximum 3D texture depth
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DHeightAlt); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2731, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture3DHeightAlt, __pyx_t_19) < (0)) __PYX_ERR(0, 2731, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2734
 * 
 *     #: Alternate maximum 3D texture depth
 *     cudaDevAttrMaxTexture3DDepthAlt = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DDepthAlt             # <<<<<<<<<<<<<<
 * 
 *     #: PCI domain ID of the device
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture3DDepthAlt); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture3DDepthAlt, __pyx_t_19) < (0)) __PYX_ERR(0, 2734, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2737
 * 
 *     #: PCI domain ID of the device
 *     cudaDevAttrPciDomainId = cyruntime.cudaDeviceAttr.cudaDevAttrPciDomainId             # <<<<<<<<<<<<<<
 * 
 *     #: Pitch alignment requirement for textures
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrPciDomainId); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2737, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrPciDomainId, __pyx_t_19) < (0)) __PYX_ERR(0, 2737, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2740
 * 
 *     #: Pitch alignment requirement for textures
 *     cudaDevAttrTexturePitchAlignment = cyruntime.cudaDeviceAttr.cudaDevAttrTexturePitchAlignment             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum cubemap texture width/height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrTexturePitchAlignment); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrTexturePitchAlignment, __pyx_t_19) < (0)) __PYX_ERR(0, 2740, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2743
 * 
 *     #: Maximum cubemap texture width/height
 *     cudaDevAttrMaxTextureCubemapWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum cubemap layered texture width/height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTextureCubemapWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTextureCubemapWidt, __pyx_t_19) < (0)) __PYX_ERR(0, 2743, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2746
 * 
 *     #: Maximum cubemap layered texture width/height
 *     cudaDevAttrMaxTextureCubemapLayeredWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapLayeredWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum layers in a cubemap layered texture
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTextureCubemapLayeredWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTextureCubemapLaye, __pyx_t_19) < (0)) __PYX_ERR(0, 2746, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2749
 * 
 *     #: Maximum layers in a cubemap layered texture
 *     cudaDevAttrMaxTextureCubemapLayeredLayers = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapLayeredLayers             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 1D surface width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTextureCubemapLayeredLayers); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTextureCubemapLaye_2, __pyx_t_19) < (0)) __PYX_ERR(0, 2749, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2752
 * 
 *     #: Maximum 1D surface width
 *     cudaDevAttrMaxSurface1DWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D surface width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface1DWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface1DWidth, __pyx_t_19) < (0)) __PYX_ERR(0, 2752, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2755
 * 
 *     #: Maximum 2D surface width
 *     cudaDevAttrMaxSurface2DWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D surface height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2755, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface2DWidth, __pyx_t_19) < (0)) __PYX_ERR(0, 2755, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2758
 * 
 *     #: Maximum 2D surface height
 *     cudaDevAttrMaxSurface2DHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 3D surface width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface2DHeight, __pyx_t_19) < (0)) __PYX_ERR(0, 2758, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2761
 * 
 *     #: Maximum 3D surface width
 *     cudaDevAttrMaxSurface3DWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 3D surface height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface3DWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface3DWidth, __pyx_t_19) < (0)) __PYX_ERR(0, 2761, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2764
 * 
 *     #: Maximum 3D surface height
 *     cudaDevAttrMaxSurface3DHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 3D surface depth
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface3DHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface3DHeight, __pyx_t_19) < (0)) __PYX_ERR(0, 2764, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2767
 * 
 *     #: Maximum 3D surface depth
 *     cudaDevAttrMaxSurface3DDepth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DDepth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 1D layered surface width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface3DDepth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface3DDepth, __pyx_t_19) < (0)) __PYX_ERR(0, 2767, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2770
 * 
 *     #: Maximum 1D layered surface width
 *     cudaDevAttrMaxSurface1DLayeredWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DLayeredWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum layers in a 1D layered surface
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface1DLayeredWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface1DLayeredWi, __pyx_t_19) < (0)) __PYX_ERR(0, 2770, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2773
 * 
 *     #: Maximum layers in a 1D layered surface
 *     cudaDevAttrMaxSurface1DLayeredLayers = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DLayeredLayers             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D layered surface width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface1DLayeredLayers); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface1DLayeredLa, __pyx_t_19) < (0)) __PYX_ERR(0, 2773, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2776
 * 
 *     #: Maximum 2D layered surface width
 *     cudaDevAttrMaxSurface2DLayeredWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D layered surface height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DLayeredWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface2DLayeredWi, __pyx_t_19) < (0)) __PYX_ERR(0, 2776, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2779
 * 
 *     #: Maximum 2D layered surface height
 *     cudaDevAttrMaxSurface2DLayeredHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum layers in a 2D layered surface
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DLayeredHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface2DLayeredHe, __pyx_t_19) < (0)) __PYX_ERR(0, 2779, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2782
 * 
 *     #: Maximum layers in a 2D layered surface
 *     cudaDevAttrMaxSurface2DLayeredLayers = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredLayers             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum cubemap surface width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurface2DLayeredLayers); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2782, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurface2DLayeredLa, __pyx_t_19) < (0)) __PYX_ERR(0, 2782, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2785
 * 
 *     #: Maximum cubemap surface width
 *     cudaDevAttrMaxSurfaceCubemapWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum cubemap layered surface width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurfaceCubemapWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurfaceCubemapWidt, __pyx_t_19) < (0)) __PYX_ERR(0, 2785, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2788
 * 
 *     #: Maximum cubemap layered surface width
 *     cudaDevAttrMaxSurfaceCubemapLayeredWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapLayeredWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum layers in a cubemap layered surface
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurfaceCubemapLayeredWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2788, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurfaceCubemapLaye, __pyx_t_19) < (0)) __PYX_ERR(0, 2788, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2791
 * 
 *     #: Maximum layers in a cubemap layered surface
 *     cudaDevAttrMaxSurfaceCubemapLayeredLayers = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapLayeredLayers             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 1D linear texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSurfaceCubemapLayeredLayers); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSurfaceCubemapLaye_2, __pyx_t_19) < (0)) __PYX_ERR(0, 2791, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2794
 * 
 *     #: Maximum 1D linear texture width
 *     cudaDevAttrMaxTexture1DLinearWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLinearWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D linear texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DLinearWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture1DLinearWid, __pyx_t_19) < (0)) __PYX_ERR(0, 2794, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2797
 * 
 *     #: Maximum 2D linear texture width
 *     cudaDevAttrMaxTexture2DLinearWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D linear texture height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLinearWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DLinearWid, __pyx_t_19) < (0)) __PYX_ERR(0, 2797, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2800
 * 
 *     #: Maximum 2D linear texture height
 *     cudaDevAttrMaxTexture2DLinearHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum 2D linear texture pitch in bytes
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLinearHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DLinearHei, __pyx_t_19) < (0)) __PYX_ERR(0, 2800, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2803
 * 
 *     #: Maximum 2D linear texture pitch in bytes
 *     cudaDevAttrMaxTexture2DLinearPitch = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearPitch             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum mipmapped 2D texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DLinearPitch); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DLinearPit, __pyx_t_19) < (0)) __PYX_ERR(0, 2803, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2806
 * 
 *     #: Maximum mipmapped 2D texture width
 *     cudaDevAttrMaxTexture2DMipmappedWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DMipmappedWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum mipmapped 2D texture height
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DMipmappedWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2806, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DMipmapped, __pyx_t_19) < (0)) __PYX_ERR(0, 2806, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2809
 * 
 *     #: Maximum mipmapped 2D texture height
 *     cudaDevAttrMaxTexture2DMipmappedHeight = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DMipmappedHeight             # <<<<<<<<<<<<<<
 * 
 *     #: Major compute capability version number
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture2DMipmappedHeight); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture2DMipmapped_2, __pyx_t_19) < (0)) __PYX_ERR(0, 2809, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2812
 * 
 *     #: Major compute capability version number
 *     cudaDevAttrComputeCapabilityMajor = cyruntime.cudaDeviceAttr.cudaDevAttrComputeCapabilityMajor             # <<<<<<<<<<<<<<
 * 
 *     #: Minor compute capability version number
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrComputeCapabilityMajor); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrComputeCapabilityMajo, __pyx_t_19) < (0)) __PYX_ERR(0, 2812, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2815
 * 
 *     #: Minor compute capability version number
 *     cudaDevAttrComputeCapabilityMinor = cyruntime.cudaDeviceAttr.cudaDevAttrComputeCapabilityMinor             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum mipmapped 1D texture width
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrComputeCapabilityMinor); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrComputeCapabilityMino, __pyx_t_19) < (0)) __PYX_ERR(0, 2815, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2818
 * 
 *     #: Maximum mipmapped 1D texture width
 *     cudaDevAttrMaxTexture1DMipmappedWidth = cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DMipmappedWidth             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports stream priorities
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxTexture1DMipmappedWidth); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxTexture1DMipmapped, __pyx_t_19) < (0)) __PYX_ERR(0, 2818, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2821
 * 
 *     #: Device supports stream priorities
 *     cudaDevAttrStreamPrioritiesSupported = cyruntime.cudaDeviceAttr.cudaDevAttrStreamPrioritiesSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports caching globals in L1
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrStreamPrioritiesSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrStreamPrioritiesSuppo, __pyx_t_19) < (0)) __PYX_ERR(0, 2821, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2824
 * 
 *     #: Device supports caching globals in L1
 *     cudaDevAttrGlobalL1CacheSupported = cyruntime.cudaDeviceAttr.cudaDevAttrGlobalL1CacheSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports caching locals in L1
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrGlobalL1CacheSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrGlobalL1CacheSupporte, __pyx_t_19) < (0)) __PYX_ERR(0, 2824, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2827
 * 
 *     #: Device supports caching locals in L1
 *     cudaDevAttrLocalL1CacheSupported = cyruntime.cudaDeviceAttr.cudaDevAttrLocalL1CacheSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum shared memory available per multiprocessor in bytes
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrLocalL1CacheSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrLocalL1CacheSupported, __pyx_t_19) < (0)) __PYX_ERR(0, 2827, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2830
 * 
 *     #: Maximum shared memory available per multiprocessor in bytes
 *     cudaDevAttrMaxSharedMemoryPerMultiprocessor = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerMultiprocessor             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum number of 32-bit registers available per multiprocessor
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSharedMemoryPerMultiprocessor); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSharedMemoryPerMul, __pyx_t_19) < (0)) __PYX_ERR(0, 2830, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2833
 * 
 *     #: Maximum number of 32-bit registers available per multiprocessor
 *     cudaDevAttrMaxRegistersPerMultiprocessor = cyruntime.cudaDeviceAttr.cudaDevAttrMaxRegistersPerMultiprocessor             # <<<<<<<<<<<<<<
 * 
 *     #: Device can allocate managed memory on this system
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxRegistersPerMultiprocessor); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxRegistersPerMultip, __pyx_t_19) < (0)) __PYX_ERR(0, 2833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2836
 * 
 *     #: Device can allocate managed memory on this system
 *     cudaDevAttrManagedMemory = cyruntime.cudaDeviceAttr.cudaDevAttrManagedMemory             # <<<<<<<<<<<<<<
 * 
 *     #: Device is on a multi-GPU board
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrManagedMemory); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrManagedMemory, __pyx_t_19) < (0)) __PYX_ERR(0, 2836, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2839
 * 
 *     #: Device is on a multi-GPU board
 *     cudaDevAttrIsMultiGpuBoard = cyruntime.cudaDeviceAttr.cudaDevAttrIsMultiGpuBoard             # <<<<<<<<<<<<<<
 * 
 *     #: Unique identifier for a group of devices on the same multi-GPU board
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrIsMultiGpuBoard); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrIsMultiGpuBoard, __pyx_t_19) < (0)) __PYX_ERR(0, 2839, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2842
 * 
 *     #: Unique identifier for a group of devices on the same multi-GPU board
 *     cudaDevAttrMultiGpuBoardGroupID = cyruntime.cudaDeviceAttr.cudaDevAttrMultiGpuBoardGroupID             # <<<<<<<<<<<<<<
 * 
 *     #: Link between the device and the host supports native atomic
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMultiGpuBoardGroupID); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMultiGpuBoardGroupID, __pyx_t_19) < (0)) __PYX_ERR(0, 2842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2846
 *     #: Link between the device and the host supports native atomic
 *     #: operations
 *     cudaDevAttrHostNativeAtomicSupported = cyruntime.cudaDeviceAttr.cudaDevAttrHostNativeAtomicSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Ratio of single precision performance (in floating-point operations
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrHostNativeAtomicSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrHostNativeAtomicSuppo, __pyx_t_19) < (0)) __PYX_ERR(0, 2846, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2850
 *     #: Ratio of single precision performance (in floating-point operations
 *     #: per second) to double precision performance
 *     cudaDevAttrSingleToDoublePrecisionPerfRatio = cyruntime.cudaDeviceAttr.cudaDevAttrSingleToDoublePrecisionPerfRatio             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports coherently accessing pageable memory without calling
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrSingleToDoublePrecisionPerfRatio); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrSingleToDoublePrecisi, __pyx_t_19) < (0)) __PYX_ERR(0, 2850, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2854
 *     #: Device supports coherently accessing pageable memory without calling
 *     #: cudaHostRegister on it
 *     cudaDevAttrPageableMemoryAccess = cyruntime.cudaDeviceAttr.cudaDevAttrPageableMemoryAccess             # <<<<<<<<<<<<<<
 * 
 *     #: Device can coherently access managed memory concurrently with the
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrPageableMemoryAccess); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrPageableMemoryAccess, __pyx_t_19) < (0)) __PYX_ERR(0, 2854, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2858
 *     #: Device can coherently access managed memory concurrently with the
 *     #: CPU
 *     cudaDevAttrConcurrentManagedAccess = cyruntime.cudaDeviceAttr.cudaDevAttrConcurrentManagedAccess             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports Compute Preemption
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrConcurrentManagedAccess); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrConcurrentManagedAcce, __pyx_t_19) < (0)) __PYX_ERR(0, 2858, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2861
 * 
 *     #: Device supports Compute Preemption
 *     cudaDevAttrComputePreemptionSupported = cyruntime.cudaDeviceAttr.cudaDevAttrComputePreemptionSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device can access host registered memory at the same virtual address
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrComputePreemptionSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrComputePreemptionSupp, __pyx_t_19) < (0)) __PYX_ERR(0, 2861, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2865
 *     #: Device can access host registered memory at the same virtual address
 *     #: as the CPU
 *     cudaDevAttrCanUseHostPointerForRegisteredMem = cyruntime.cudaDeviceAttr.cudaDevAttrCanUseHostPointerForRegisteredMem             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved92 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved92
 *     cudaDevAttrReserved93 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved93
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrCanUseHostPointerForRegisteredMem); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrCanUseHostPointerForR, __pyx_t_19) < (0)) __PYX_ERR(0, 2865, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2866
 *     #: as the CPU
 *     cudaDevAttrCanUseHostPointerForRegisteredMem = cyruntime.cudaDeviceAttr.cudaDevAttrCanUseHostPointerForRegisteredMem
 *     cudaDevAttrReserved92 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved92             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved93 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved93
 *     cudaDevAttrReserved94 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved94
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved92); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved92, __pyx_t_19) < (0)) __PYX_ERR(0, 2866, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2867
 *     cudaDevAttrCanUseHostPointerForRegisteredMem = cyruntime.cudaDeviceAttr.cudaDevAttrCanUseHostPointerForRegisteredMem
 *     cudaDevAttrReserved92 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved92
 *     cudaDevAttrReserved93 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved93             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved94 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved94
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved93); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved93, __pyx_t_19) < (0)) __PYX_ERR(0, 2867, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2868
 *     cudaDevAttrReserved92 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved92
 *     cudaDevAttrReserved93 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved93
 *     cudaDevAttrReserved94 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved94             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports launching cooperative kernels via
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved94); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved94, __pyx_t_19) < (0)) __PYX_ERR(0, 2868, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2872
 *     #: Device supports launching cooperative kernels via
 *     #: :py:obj:`~.cudaLaunchCooperativeKernel`
 *     cudaDevAttrCooperativeLaunch = cyruntime.cudaDeviceAttr.cudaDevAttrCooperativeLaunch             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved96 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved96
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrCooperativeLaunch); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrCooperativeLaunch, __pyx_t_19) < (0)) __PYX_ERR(0, 2872, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2873
 *     #: :py:obj:`~.cudaLaunchCooperativeKernel`
 *     cudaDevAttrCooperativeLaunch = cyruntime.cudaDeviceAttr.cudaDevAttrCooperativeLaunch
 *     cudaDevAttrReserved96 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved96             # <<<<<<<<<<<<<<
 * 
 *     #: The maximum optin shared memory per block. This value may vary by
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved96); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved96, __pyx_t_19) < (0)) __PYX_ERR(0, 2873, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2877
 *     #: The maximum optin shared memory per block. This value may vary by
 *     #: chip. See :py:obj:`~.cudaFuncSetAttribute`
 *     cudaDevAttrMaxSharedMemoryPerBlockOptin = cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerBlockOptin             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports flushing of outstanding remote writes.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxSharedMemoryPerBlockOptin); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxSharedMemoryPerBlo_2, __pyx_t_19) < (0)) __PYX_ERR(0, 2877, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2880
 * 
 *     #: Device supports flushing of outstanding remote writes.
 *     cudaDevAttrCanFlushRemoteWrites = cyruntime.cudaDeviceAttr.cudaDevAttrCanFlushRemoteWrites             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports host memory registration via
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrCanFlushRemoteWrites); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrCanFlushRemoteWrites, __pyx_t_19) < (0)) __PYX_ERR(0, 2880, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2884
 *     #: Device supports host memory registration via
 *     #: :py:obj:`~.cudaHostRegister`.
 *     cudaDevAttrHostRegisterSupported = cyruntime.cudaDeviceAttr.cudaDevAttrHostRegisterSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device accesses pageable memory via the host's page tables.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrHostRegisterSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrHostRegisterSupported, __pyx_t_19) < (0)) __PYX_ERR(0, 2884, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2887
 * 
 *     #: Device accesses pageable memory via the host's page tables.
 *     cudaDevAttrPageableMemoryAccessUsesHostPageTables = cyruntime.cudaDeviceAttr.cudaDevAttrPageableMemoryAccessUsesHostPageTables             # <<<<<<<<<<<<<<
 * 
 *     #: Host can directly access managed memory on the device without
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrPageableMemoryAccessUsesHostPageTables); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrPageableMemoryAccessU, __pyx_t_19) < (0)) __PYX_ERR(0, 2887, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2891
 *     #: Host can directly access managed memory on the device without
 *     #: migration.
 *     cudaDevAttrDirectManagedMemAccessFromHost = cyruntime.cudaDeviceAttr.cudaDevAttrDirectManagedMemAccessFromHost             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum number of blocks per multiprocessor
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrDirectManagedMemAccessFromHost); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrDirectManagedMemAcces, __pyx_t_19) < (0)) __PYX_ERR(0, 2891, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2894
 * 
 *     #: Maximum number of blocks per multiprocessor
 *     cudaDevAttrMaxBlocksPerMultiprocessor = cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlocksPerMultiprocessor             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum L2 persisting lines capacity setting in bytes.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxBlocksPerMultiprocessor); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2894, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxBlocksPerMultiproc, __pyx_t_19) < (0)) __PYX_ERR(0, 2894, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2897
 * 
 *     #: Maximum L2 persisting lines capacity setting in bytes.
 *     cudaDevAttrMaxPersistingL2CacheSize = cyruntime.cudaDeviceAttr.cudaDevAttrMaxPersistingL2CacheSize             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum value of :py:obj:`~.cudaAccessPolicyWindow.num_bytes`.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxPersistingL2CacheSize); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxPersistingL2CacheS, __pyx_t_19) < (0)) __PYX_ERR(0, 2897, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2900
 * 
 *     #: Maximum value of :py:obj:`~.cudaAccessPolicyWindow.num_bytes`.
 *     cudaDevAttrMaxAccessPolicyWindowSize = cyruntime.cudaDeviceAttr.cudaDevAttrMaxAccessPolicyWindowSize             # <<<<<<<<<<<<<<
 * 
 *     #: Shared memory reserved by CUDA driver per block in bytes
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMaxAccessPolicyWindowSize); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMaxAccessPolicyWindow, __pyx_t_19) < (0)) __PYX_ERR(0, 2900, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2903
 * 
 *     #: Shared memory reserved by CUDA driver per block in bytes
 *     cudaDevAttrReservedSharedMemoryPerBlock = cyruntime.cudaDeviceAttr.cudaDevAttrReservedSharedMemoryPerBlock             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReservedSharedMemoryPerBlock); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReservedSharedMemoryP, __pyx_t_19) < (0)) __PYX_ERR(0, 2903, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2906
 * 
 *     #: Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays
 *     cudaDevAttrSparseCudaArraySupported = cyruntime.cudaDeviceAttr.cudaDevAttrSparseCudaArraySupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports using the :py:obj:`~.cudaHostRegister` flag
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrSparseCudaArraySupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2906, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrSparseCudaArraySuppor, __pyx_t_19) < (0)) __PYX_ERR(0, 2906, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2911
 *     #: cudaHostRegisterReadOnly to register memory that must be mapped as
 *     #: read-only to the GPU
 *     cudaDevAttrHostRegisterReadOnlySupported = cyruntime.cudaDeviceAttr.cudaDevAttrHostRegisterReadOnlySupported             # <<<<<<<<<<<<<<
 * 
 *     #: External timeline semaphore interop is supported on the device
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrHostRegisterReadOnlySupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrHostRegisterReadOnlyS, __pyx_t_19) < (0)) __PYX_ERR(0, 2911, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2914
 * 
 *     #: External timeline semaphore interop is supported on the device
 *     cudaDevAttrTimelineSemaphoreInteropSupported = cyruntime.cudaDeviceAttr.cudaDevAttrTimelineSemaphoreInteropSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports using the :py:obj:`~.cudaMallocAsync` and
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrTimelineSemaphoreInteropSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrTimelineSemaphoreInte, __pyx_t_19) < (0)) __PYX_ERR(0, 2914, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2918
 *     #: Device supports using the :py:obj:`~.cudaMallocAsync` and
 *     #: :py:obj:`~.cudaMemPool` family of APIs
 *     cudaDevAttrMemoryPoolsSupported = cyruntime.cudaDeviceAttr.cudaDevAttrMemoryPoolsSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMemoryPoolsSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMemoryPoolsSupported, __pyx_t_19) < (0)) __PYX_ERR(0, 2918, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2922
 *     #: Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see
 *     #: https://docs.nvidia.com/cuda/gpudirect-rdma for more information)
 *     cudaDevAttrGPUDirectRDMASupported = cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMASupported             # <<<<<<<<<<<<<<
 * 
 *     #: The returned attribute shall be interpreted as a bitmask, where the
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrGPUDirectRDMASupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrGPUDirectRDMASupporte, __pyx_t_19) < (0)) __PYX_ERR(0, 2922, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2927
 *     #: individual bits are listed in the
 *     #: :py:obj:`~.cudaFlushGPUDirectRDMAWritesOptions` enum
 *     cudaDevAttrGPUDirectRDMAFlushWritesOptions = cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMAFlushWritesOptions             # <<<<<<<<<<<<<<
 * 
 *     #: GPUDirect RDMA writes to the device do not need to be flushed for
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrGPUDirectRDMAFlushWritesOptions); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrGPUDirectRDMAFlushWri, __pyx_t_19) < (0)) __PYX_ERR(0, 2927, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2933
 *     #: :py:obj:`~.cudaGPUDirectRDMAWritesOrdering` for the numerical values
 *     #: returned here.
 *     cudaDevAttrGPUDirectRDMAWritesOrdering = cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMAWritesOrdering             # <<<<<<<<<<<<<<
 * 
 *     #: Handle types supported with mempool based IPC
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrGPUDirectRDMAWritesOrdering); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrGPUDirectRDMAWritesOr, __pyx_t_19) < (0)) __PYX_ERR(0, 2933, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2936
 * 
 *     #: Handle types supported with mempool based IPC
 *     cudaDevAttrMemoryPoolSupportedHandleTypes = cyruntime.cudaDeviceAttr.cudaDevAttrMemoryPoolSupportedHandleTypes             # <<<<<<<<<<<<<<
 * 
 *     #: Indicates device supports cluster launch
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMemoryPoolSupportedHandleTypes); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMemoryPoolSupportedHa, __pyx_t_19) < (0)) __PYX_ERR(0, 2936, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2939
 * 
 *     #: Indicates device supports cluster launch
 *     cudaDevAttrClusterLaunch = cyruntime.cudaDeviceAttr.cudaDevAttrClusterLaunch             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports deferred mapping CUDA arrays and CUDA mipmapped
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrClusterLaunch); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrClusterLaunch, __pyx_t_19) < (0)) __PYX_ERR(0, 2939, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2943
 *     #: Device supports deferred mapping CUDA arrays and CUDA mipmapped
 *     #: arrays
 *     cudaDevAttrDeferredMappingCudaArraySupported = cyruntime.cudaDeviceAttr.cudaDevAttrDeferredMappingCudaArraySupported             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved122 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved122
 *     cudaDevAttrReserved123 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved123
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrDeferredMappingCudaArraySupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrDeferredMappingCudaAr, __pyx_t_19) < (0)) __PYX_ERR(0, 2943, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2944
 *     #: arrays
 *     cudaDevAttrDeferredMappingCudaArraySupported = cyruntime.cudaDeviceAttr.cudaDevAttrDeferredMappingCudaArraySupported
 *     cudaDevAttrReserved122 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved122             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved123 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved123
 *     cudaDevAttrReserved124 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved124
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved122); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved122, __pyx_t_19) < (0)) __PYX_ERR(0, 2944, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2945
 *     cudaDevAttrDeferredMappingCudaArraySupported = cyruntime.cudaDeviceAttr.cudaDevAttrDeferredMappingCudaArraySupported
 *     cudaDevAttrReserved122 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved122
 *     cudaDevAttrReserved123 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved123             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved124 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved124
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved123); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved123, __pyx_t_19) < (0)) __PYX_ERR(0, 2945, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2946
 *     cudaDevAttrReserved122 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved122
 *     cudaDevAttrReserved123 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved123
 *     cudaDevAttrReserved124 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved124             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports IPC Events.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved124); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2946, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved124, __pyx_t_19) < (0)) __PYX_ERR(0, 2946, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2949
 * 
 *     #: Device supports IPC Events.
 *     cudaDevAttrIpcEventSupport = cyruntime.cudaDeviceAttr.cudaDevAttrIpcEventSupport             # <<<<<<<<<<<<<<
 * 
 *     #: Number of memory synchronization domains the device supports.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrIpcEventSupport); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2949, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrIpcEventSupport, __pyx_t_19) < (0)) __PYX_ERR(0, 2949, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2952
 * 
 *     #: Number of memory synchronization domains the device supports.
 *     cudaDevAttrMemSyncDomainCount = cyruntime.cudaDeviceAttr.cudaDevAttrMemSyncDomainCount             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved127 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved127
 *     cudaDevAttrReserved128 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved128
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMemSyncDomainCount); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMemSyncDomainCount, __pyx_t_19) < (0)) __PYX_ERR(0, 2952, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2953
 *     #: Number of memory synchronization domains the device supports.
 *     cudaDevAttrMemSyncDomainCount = cyruntime.cudaDeviceAttr.cudaDevAttrMemSyncDomainCount
 *     cudaDevAttrReserved127 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved127             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved128 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved128
 *     cudaDevAttrReserved129 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved129
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved127); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved127, __pyx_t_19) < (0)) __PYX_ERR(0, 2953, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2954
 *     cudaDevAttrMemSyncDomainCount = cyruntime.cudaDeviceAttr.cudaDevAttrMemSyncDomainCount
 *     cudaDevAttrReserved127 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved127
 *     cudaDevAttrReserved128 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved128             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved129 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved129
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved128); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved128, __pyx_t_19) < (0)) __PYX_ERR(0, 2954, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2955
 *     cudaDevAttrReserved127 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved127
 *     cudaDevAttrReserved128 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved128
 *     cudaDevAttrReserved129 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved129             # <<<<<<<<<<<<<<
 * 
 *     #: NUMA configuration of a device: value is of type
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved129); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2955, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved129, __pyx_t_19) < (0)) __PYX_ERR(0, 2955, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2959
 *     #: NUMA configuration of a device: value is of type
 *     #: :py:obj:`~.cudaDeviceNumaConfig` enum
 *     cudaDevAttrNumaConfig = cyruntime.cudaDeviceAttr.cudaDevAttrNumaConfig             # <<<<<<<<<<<<<<
 * 
 *     #: NUMA node ID of the GPU memory
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrNumaConfig); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrNumaConfig, __pyx_t_19) < (0)) __PYX_ERR(0, 2959, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2962
 * 
 *     #: NUMA node ID of the GPU memory
 *     cudaDevAttrNumaId = cyruntime.cudaDeviceAttr.cudaDevAttrNumaId             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved132 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved132
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrNumaId); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrNumaId, __pyx_t_19) < (0)) __PYX_ERR(0, 2962, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2963
 *     #: NUMA node ID of the GPU memory
 *     cudaDevAttrNumaId = cyruntime.cudaDeviceAttr.cudaDevAttrNumaId
 *     cudaDevAttrReserved132 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved132             # <<<<<<<<<<<<<<
 * 
 *     #: Contexts created on this device will be shared via MPS
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved132); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved132, __pyx_t_19) < (0)) __PYX_ERR(0, 2963, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2966
 * 
 *     #: Contexts created on this device will be shared via MPS
 *     cudaDevAttrMpsEnabled = cyruntime.cudaDeviceAttr.cudaDevAttrMpsEnabled             # <<<<<<<<<<<<<<
 * 
 *     #: NUMA ID of the host node closest to the device or -1 when system
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMpsEnabled); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMpsEnabled, __pyx_t_19) < (0)) __PYX_ERR(0, 2966, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2970
 *     #: NUMA ID of the host node closest to the device or -1 when system
 *     #: does not support NUMA
 *     cudaDevAttrHostNumaId = cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaId             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports CIG with D3D12.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrHostNumaId); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrHostNumaId, __pyx_t_19) < (0)) __PYX_ERR(0, 2970, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2973
 * 
 *     #: Device supports CIG with D3D12.
 *     cudaDevAttrD3D12CigSupported = cyruntime.cudaDeviceAttr.cudaDevAttrD3D12CigSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports CIG with Vulkan.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrD3D12CigSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrD3D12CigSupported, __pyx_t_19) < (0)) __PYX_ERR(0, 2973, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2976
 * 
 *     #: Device supports CIG with Vulkan.
 *     cudaDevAttrVulkanCigSupported = cyruntime.cudaDeviceAttr.cudaDevAttrVulkanCigSupported             # <<<<<<<<<<<<<<
 * 
 *     #: The combined 16-bit PCI device ID and 16-bit PCI vendor ID.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrVulkanCigSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrVulkanCigSupported, __pyx_t_19) < (0)) __PYX_ERR(0, 2976, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2979
 * 
 *     #: The combined 16-bit PCI device ID and 16-bit PCI vendor ID.
 *     cudaDevAttrGpuPciDeviceId = cyruntime.cudaDeviceAttr.cudaDevAttrGpuPciDeviceId             # <<<<<<<<<<<<<<
 * 
 *     #: The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrGpuPciDeviceId); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrGpuPciDeviceId, __pyx_t_19) < (0)) __PYX_ERR(0, 2979, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2983
 *     #: The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor
 *     #: ID.
 *     cudaDevAttrGpuPciSubsystemId = cyruntime.cudaDeviceAttr.cudaDevAttrGpuPciSubsystemId             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved141 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved141
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrGpuPciSubsystemId); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2983, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrGpuPciSubsystemId, __pyx_t_19) < (0)) __PYX_ERR(0, 2983, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2984
 *     #: ID.
 *     cudaDevAttrGpuPciSubsystemId = cyruntime.cudaDeviceAttr.cudaDevAttrGpuPciSubsystemId
 *     cudaDevAttrReserved141 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved141             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports HOST_NUMA location with the
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved141); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved141, __pyx_t_19) < (0)) __PYX_ERR(0, 2984, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2989
 *     #: :py:obj:`~.cudaMallocAsync` and :py:obj:`~.cudaMemPool` family of
 *     #: APIs
 *     cudaDevAttrHostNumaMemoryPoolsSupported = cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaMemoryPoolsSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device supports HostNuma location IPC between nodes in a multi-node
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrHostNumaMemoryPoolsSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrHostNumaMemoryPoolsSu, __pyx_t_19) < (0)) __PYX_ERR(0, 2989, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2993
 *     #: Device supports HostNuma location IPC between nodes in a multi-node
 *     #: system.
 *     cudaDevAttrHostNumaMultinodeIpcSupported = cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaMultinodeIpcSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Device suports HOST location with the :py:obj:`~.cuMemAllocAsync`
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrHostNumaMultinodeIpcSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrHostNumaMultinodeIpcS, __pyx_t_19) < (0)) __PYX_ERR(0, 2993, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2997
 *     #: Device suports HOST location with the :py:obj:`~.cuMemAllocAsync`
 *     #: and :py:obj:`~.cuMemPool` family of APIs
 *     cudaDevAttrHostMemoryPoolsSupported = cyruntime.cudaDeviceAttr.cudaDevAttrHostMemoryPoolsSupported             # <<<<<<<<<<<<<<
 *     cudaDevAttrReserved145 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved145
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrHostMemoryPoolsSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2997, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrHostMemoryPoolsSuppor, __pyx_t_19) < (0)) __PYX_ERR(0, 2997, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2998
 *     #: and :py:obj:`~.cuMemPool` family of APIs
 *     cudaDevAttrHostMemoryPoolsSupported = cyruntime.cudaDeviceAttr.cudaDevAttrHostMemoryPoolsSupported
 *     cudaDevAttrReserved145 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved145             # <<<<<<<<<<<<<<
 * 
 *     #: Link between the device and the host supports only some native
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrReserved145); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrReserved145, __pyx_t_19) < (0)) __PYX_ERR(0, 2998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3002
 *     #: Link between the device and the host supports only some native
 *     #: atomic operations
 *     cudaDevAttrOnlyPartialHostNativeAtomicSupported = cyruntime.cudaDeviceAttr.cudaDevAttrOnlyPartialHostNativeAtomicSupported             # <<<<<<<<<<<<<<
 *     cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrOnlyPartialHostNativeAtomicSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3002, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrOnlyPartialHostNative, __pyx_t_19) < (0)) __PYX_ERR(0, 3002, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3003
 *     #: atomic operations
 *     cudaDevAttrOnlyPartialHostNativeAtomicSupported = cyruntime.cudaDeviceAttr.cudaDevAttrOnlyPartialHostNativeAtomicSupported
 *     cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDeviceAttr = dict(((int(v), v) for k, v in cudaDeviceAttr.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDeviceAttr(cudaDevAttrMax); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevAttrMax, __pyx_t_19) < (0)) __PYX_ERR(0, 3003, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":2586
 * _dict_cudaFlushGPUDirectRDMAWritesTarget = dict(((int(v), v) for k, v in cudaFlushGPUDirectRDMAWritesTarget.__members__.items()))
 * 
 * class cudaDeviceAttr(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device attributes
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDeviceAttr, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 2586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceAttr, __pyx_t_19) < (0)) __PYX_ERR(0, 2586, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3005
 *     cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax
 * 
 * _dict_cudaDeviceAttr = dict(((int(v), v) for k, v in cudaDeviceAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemPoolAttr(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDeviceAttr); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_801genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDeviceAttr, __pyx_t_4) < (0)) __PYX_ERR(0, 3005, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3007
 * _dict_cudaDeviceAttr = dict(((int(v), v) for k, v in cudaDeviceAttr.__members__.items()))
 * 
 * class cudaMemPoolAttr(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA memory pool attributes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttr, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttr, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_memory_pool_attributes); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3007, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3017
 *     #: events and null stream interactions can create the required stream
 *     #: ordered dependencies. (default enabled)
 *     cudaMemPoolReuseFollowEventDependencies = cyruntime.cudaMemPoolAttr.cudaMemPoolReuseFollowEventDependencies             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = int) Allow reuse of already completed frees when there
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemPoolAttr(cudaMemPoolReuseFollowEventDependencies); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemPoolReuseFollowEventDepen, __pyx_t_18) < (0)) __PYX_ERR(0, 3017, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3021
 *     #: (value type = int) Allow reuse of already completed frees when there
 *     #: is no dependency between the free and allocation. (default enabled)
 *     cudaMemPoolReuseAllowOpportunistic = cyruntime.cudaMemPoolAttr.cudaMemPoolReuseAllowOpportunistic             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = int) Allow cuMemAllocAsync to insert new stream
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemPoolAttr(cudaMemPoolReuseAllowOpportunistic); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemPoolReuseAllowOpportunist, __pyx_t_18) < (0)) __PYX_ERR(0, 3021, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3026
 *     #: dependencies in order to establish the stream ordering required to
 *     #: reuse a piece of memory released by cuFreeAsync (default enabled).
 *     cudaMemPoolReuseAllowInternalDependencies = cyruntime.cudaMemPoolAttr.cudaMemPoolReuseAllowInternalDependencies             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = cuuint64_t) Amount of reserved memory in bytes to hold
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemPoolAttr(cudaMemPoolReuseAllowInternalDependencies); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemPoolReuseAllowInternalDep, __pyx_t_18) < (0)) __PYX_ERR(0, 3026, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3033
 *     #: the allocator will try to release memory back to the OS on the next
 *     #: call to stream, event or context synchronize. (default 0)
 *     cudaMemPoolAttrReleaseThreshold = cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReleaseThreshold             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = cuuint64_t) Amount of backing memory currently
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemPoolAttr(cudaMemPoolAttrReleaseThreshold); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttrReleaseThreshold, __pyx_t_18) < (0)) __PYX_ERR(0, 3033, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3037
 *     #: (value type = cuuint64_t) Amount of backing memory currently
 *     #: allocated for the mempool.
 *     cudaMemPoolAttrReservedMemCurrent = cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReservedMemCurrent             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = cuuint64_t) High watermark of backing memory allocated
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemPoolAttr(cudaMemPoolAttrReservedMemCurrent); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttrReservedMemCurren, __pyx_t_18) < (0)) __PYX_ERR(0, 3037, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3042
 *     #: for the mempool since the last time it was reset. High watermark can
 *     #: only be reset to zero.
 *     cudaMemPoolAttrReservedMemHigh = cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReservedMemHigh             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = cuuint64_t) Amount of memory from the pool that is
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemPoolAttr(cudaMemPoolAttrReservedMemHigh); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttrReservedMemHigh, __pyx_t_18) < (0)) __PYX_ERR(0, 3042, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3046
 *     #: (value type = cuuint64_t) Amount of memory from the pool that is
 *     #: currently in use by the application.
 *     cudaMemPoolAttrUsedMemCurrent = cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemCurrent             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = cuuint64_t) High watermark of the amount of memory
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemPoolAttr(cudaMemPoolAttrUsedMemCurrent); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttrUsedMemCurrent, __pyx_t_18) < (0)) __PYX_ERR(0, 3046, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3051
 *     #: from the pool that was in use by the application since the last time
 *     #: it was reset. High watermark can only be reset to zero.
 *     cudaMemPoolAttrUsedMemHigh = cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemPoolAttr = dict(((int(v), v) for k, v in cudaMemPoolAttr.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemPoolAttr(cudaMemPoolAttrUsedMemHigh); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttrUsedMemHigh, __pyx_t_18) < (0)) __PYX_ERR(0, 3051, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3007
 * _dict_cudaDeviceAttr = dict(((int(v), v) for k, v in cudaDeviceAttr.__members__.items()))
 * 
 * class cudaMemPoolAttr(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA memory pool attributes
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttr, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttr, __pyx_t_18) < (0)) __PYX_ERR(0, 3007, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3053
 *     cudaMemPoolAttrUsedMemHigh = cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh
 * 
 * _dict_cudaMemPoolAttr = dict(((int(v), v) for k, v in cudaMemPoolAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemLocationType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_804genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemPoolAttr, __pyx_t_20) < (0)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3055
 * _dict_cudaMemPoolAttr = dict(((int(v), v) for k, v in cudaMemPoolAttr.__members__.items()))
 * 
 * class cudaMemLocationType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the type of location
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemLocationType, __pyx_mstate_global->__pyx_n_u_cudaMemLocationType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Specifies_the_type_of_location); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3055, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3059
 *     Specifies the type of location
 *     """
 *     cudaMemLocationTypeInvalid = cyruntime.cudaMemLocationType.cudaMemLocationTypeInvalid             # <<<<<<<<<<<<<<
 * 
 *     #: Location is unspecified. This is used when creating a managed memory
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemLocationType(cudaMemLocationTypeInvalid); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemLocationTypeInvalid, __pyx_t_4) < (0)) __PYX_ERR(0, 3059, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3063
 *     #: Location is unspecified. This is used when creating a managed memory
 *     #: pool to indicate no preferred location for the pool
 *     cudaMemLocationTypeNone = cyruntime.cudaMemLocationType.cudaMemLocationTypeNone             # <<<<<<<<<<<<<<
 * 
 *     #: Location is a device location, thus id is a device ordinal
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemLocationType(cudaMemLocationTypeNone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemLocationTypeNone, __pyx_t_4) < (0)) __PYX_ERR(0, 3063, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3066
 * 
 *     #: Location is a device location, thus id is a device ordinal
 *     cudaMemLocationTypeDevice = cyruntime.cudaMemLocationType.cudaMemLocationTypeDevice             # <<<<<<<<<<<<<<
 * 
 *     #: Location is host, id is ignored
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemLocationType(cudaMemLocationTypeDevice); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemLocationTypeDevice, __pyx_t_4) < (0)) __PYX_ERR(0, 3066, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3069
 * 
 *     #: Location is host, id is ignored
 *     cudaMemLocationTypeHost = cyruntime.cudaMemLocationType.cudaMemLocationTypeHost             # <<<<<<<<<<<<<<
 * 
 *     #: Location is a host NUMA node, thus id is a host NUMA node id
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemLocationType(cudaMemLocationTypeHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemLocationTypeHost, __pyx_t_4) < (0)) __PYX_ERR(0, 3069, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3072
 * 
 *     #: Location is a host NUMA node, thus id is a host NUMA node id
 *     cudaMemLocationTypeHostNuma = cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNuma             # <<<<<<<<<<<<<<
 * 
 *     #: Location is the host NUMA node closest to the current thread's CPU,
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemLocationType(cudaMemLocationTypeHostNuma); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemLocationTypeHostNuma, __pyx_t_4) < (0)) __PYX_ERR(0, 3072, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3076
 *     #: Location is the host NUMA node closest to the current thread's CPU,
 *     #: id is ignored
 *     cudaMemLocationTypeHostNumaCurrent = cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemLocationType = dict(((int(v), v) for k, v in cudaMemLocationType.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaMemLocationType(cudaMemLocationTypeHostNumaCurrent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemLocationTypeHostNumaCurre, __pyx_t_4) < (0)) __PYX_ERR(0, 3076, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3055
 * _dict_cudaMemPoolAttr = dict(((int(v), v) for k, v in cudaMemPoolAttr.__members__.items()))
 * 
 * class cudaMemLocationType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the type of location
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemLocationType, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemLocationType, __pyx_t_4) < (0)) __PYX_ERR(0, 3055, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3078
 *     cudaMemLocationTypeHostNumaCurrent = cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent
 * 
 * _dict_cudaMemLocationType = dict(((int(v), v) for k, v in cudaMemLocationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAccessFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemLocationType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_807genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemLocationType, __pyx_t_19) < (0)) __PYX_ERR(0, 3078, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3080
 * _dict_cudaMemLocationType = dict(((int(v), v) for k, v in cudaMemLocationType.__members__.items()))
 * 
 * class cudaMemAccessFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the memory protection flags for mapping.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlags, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Specifies_the_memory_protection); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3080, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3086
 * 
 *     #: Default, make the address range not accessible
 *     cudaMemAccessFlagsProtNone = cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtNone             # <<<<<<<<<<<<<<
 * 
 *     #: Make the address range read accessible
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemAccessFlags(cudaMemAccessFlagsProtNone); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlagsProtNone, __pyx_t_20) < (0)) __PYX_ERR(0, 3086, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3089
 * 
 *     #: Make the address range read accessible
 *     cudaMemAccessFlagsProtRead = cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtRead             # <<<<<<<<<<<<<<
 * 
 *     #: Make the address range read-write accessible
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemAccessFlags(cudaMemAccessFlagsProtRead); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlagsProtRead, __pyx_t_20) < (0)) __PYX_ERR(0, 3089, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3092
 * 
 *     #: Make the address range read-write accessible
 *     cudaMemAccessFlagsProtReadWrite = cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemAccessFlags = dict(((int(v), v) for k, v in cudaMemAccessFlags.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemAccessFlags(cudaMemAccessFlagsProtReadWrite); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3092, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlagsProtReadWrite, __pyx_t_20) < (0)) __PYX_ERR(0, 3092, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3080
 * _dict_cudaMemLocationType = dict(((int(v), v) for k, v in cudaMemLocationType.__members__.items()))
 * 
 * class cudaMemAccessFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the memory protection flags for mapping.
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlags, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlags, __pyx_t_20) < (0)) __PYX_ERR(0, 3080, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3094
 *     cudaMemAccessFlagsProtReadWrite = cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite
 * 
 * _dict_cudaMemAccessFlags = dict(((int(v), v) for k, v in cudaMemAccessFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAllocationType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemAccessFlags); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_810genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAccessFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 3094, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3096
 * _dict_cudaMemAccessFlags = dict(((int(v), v) for k, v in cudaMemAccessFlags.__members__.items()))
 * 
 * class cudaMemAllocationType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Defines the allocation types available
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationType, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Defines_the_allocation_types_av); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3096, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3100
 *     Defines the allocation types available
 *     """
 *     cudaMemAllocationTypeInvalid = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeInvalid             # <<<<<<<<<<<<<<
 * 
 *     #: This allocation type is 'pinned', i.e. cannot migrate from its
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemAllocationType(cudaMemAllocationTypeInvalid); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationTypeInvalid, __pyx_t_19) < (0)) __PYX_ERR(0, 3100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3104
 *     #: This allocation type is 'pinned', i.e. cannot migrate from its
 *     #: current location while the application is actively using it
 *     cudaMemAllocationTypePinned = cyruntime.cudaMemAllocationType.cudaMemAllocationTypePinned             # <<<<<<<<<<<<<<
 * 
 *     #: This allocation type is managed memory
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemAllocationType(cudaMemAllocationTypePinned); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationTypePinned, __pyx_t_19) < (0)) __PYX_ERR(0, 3104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3107
 * 
 *     #: This allocation type is managed memory
 *     cudaMemAllocationTypeManaged = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeManaged             # <<<<<<<<<<<<<<
 *     cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemAllocationType(cudaMemAllocationTypeManaged); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationTypeManaged, __pyx_t_19) < (0)) __PYX_ERR(0, 3107, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3108
 *     #: This allocation type is managed memory
 *     cudaMemAllocationTypeManaged = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeManaged
 *     cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemAllocationType = dict(((int(v), v) for k, v in cudaMemAllocationType.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemAllocationType(cudaMemAllocationTypeMax); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationTypeMax, __pyx_t_19) < (0)) __PYX_ERR(0, 3108, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3096
 * _dict_cudaMemAccessFlags = dict(((int(v), v) for k, v in cudaMemAccessFlags.__members__.items()))
 * 
 * class cudaMemAllocationType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Defines the allocation types available
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationType, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationType, __pyx_t_19) < (0)) __PYX_ERR(0, 3096, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3110
 *     cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax
 * 
 * _dict_cudaMemAllocationType = dict(((int(v), v) for k, v in cudaMemAllocationType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemAllocationHandleType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationType); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_813genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAllocationType, __pyx_t_4) < (0)) __PYX_ERR(0, 3110, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3112
 * _dict_cudaMemAllocationType = dict(((int(v), v) for k, v in cudaMemAllocationType.__members__.items()))
 * 
 * class cudaMemAllocationHandleType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for specifying particular handle types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationHandleType, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationHandleType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Flags_for_specifying_particular); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3112, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3118
 * 
 *     #: Does not allow any export mechanism. >
 *     cudaMemHandleTypeNone = cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeNone             # <<<<<<<<<<<<<<
 * 
 *     #: Allows a file descriptor to be used for exporting. Permitted only on
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypeNone); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemHandleTypeNone, __pyx_t_18) < (0)) __PYX_ERR(0, 3118, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3122
 *     #: Allows a file descriptor to be used for exporting. Permitted only on
 *     #: POSIX systems. (int)
 *     cudaMemHandleTypePosixFileDescriptor = cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypePosixFileDescriptor             # <<<<<<<<<<<<<<
 * 
 *     #: Allows a Win32 NT handle to be used for exporting. (HANDLE)
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypePosixFileDescriptor); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemHandleTypePosixFileDescri, __pyx_t_18) < (0)) __PYX_ERR(0, 3122, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3125
 * 
 *     #: Allows a Win32 NT handle to be used for exporting. (HANDLE)
 *     cudaMemHandleTypeWin32 = cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeWin32             # <<<<<<<<<<<<<<
 * 
 *     #: Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypeWin32); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemHandleTypeWin32, __pyx_t_18) < (0)) __PYX_ERR(0, 3125, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3128
 * 
 *     #: Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)
 *     cudaMemHandleTypeWin32Kmt = cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeWin32Kmt             # <<<<<<<<<<<<<<
 * 
 *     #: Allows a fabric handle to be used for exporting.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypeWin32Kmt); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemHandleTypeWin32Kmt, __pyx_t_18) < (0)) __PYX_ERR(0, 3128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3132
 *     #: Allows a fabric handle to be used for exporting.
 *     #: (cudaMemFabricHandle_t)
 *     cudaMemHandleTypeFabric = cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeFabric             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemAllocationHandleType = dict(((int(v), v) for k, v in cudaMemAllocationHandleType.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemAllocationHandleType(cudaMemHandleTypeFabric); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemHandleTypeFabric, __pyx_t_18) < (0)) __PYX_ERR(0, 3132, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3112
 * _dict_cudaMemAllocationType = dict(((int(v), v) for k, v in cudaMemAllocationType.__members__.items()))
 * 
 * class cudaMemAllocationHandleType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for specifying particular handle types
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationHandleType, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationHandleType, __pyx_t_18) < (0)) __PYX_ERR(0, 3112, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3134
 *     cudaMemHandleTypeFabric = cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeFabric
 * 
 * _dict_cudaMemAllocationHandleType = dict(((int(v), v) for k, v in cudaMemAllocationHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphMemAttributeType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationHandleType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_816genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemAllocationHandleTyp, __pyx_t_20) < (0)) __PYX_ERR(0, 3134, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3136
 * _dict_cudaMemAllocationHandleType = dict(((int(v), v) for k, v in cudaMemAllocationHandleType.__members__.items()))
 * 
 * class cudaGraphMemAttributeType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Graph memory attributes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttributeType, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttributeType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Graph_memory_attributes); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3136, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3143
 *     #: (value type = cuuint64_t) Amount of memory, in bytes, currently
 *     #: associated with graphs.
 *     cudaGraphMemAttrUsedMemCurrent = cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrUsedMemCurrent             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = cuuint64_t) High watermark of memory, in bytes,
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphMemAttributeType(cudaGraphMemAttrUsedMemCurrent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttrUsedMemCurrent, __pyx_t_4) < (0)) __PYX_ERR(0, 3143, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3148
 *     #: associated with graphs since the last time it was reset. High
 *     #: watermark can only be reset to zero.
 *     cudaGraphMemAttrUsedMemHigh = cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrUsedMemHigh             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = cuuint64_t) Amount of memory, in bytes, currently
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphMemAttributeType(cudaGraphMemAttrUsedMemHigh); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttrUsedMemHigh, __pyx_t_4) < (0)) __PYX_ERR(0, 3148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3152
 *     #: (value type = cuuint64_t) Amount of memory, in bytes, currently
 *     #: allocated for use by the CUDA graphs asynchronous allocator.
 *     cudaGraphMemAttrReservedMemCurrent = cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemCurrent             # <<<<<<<<<<<<<<
 * 
 *     #: (value type = cuuint64_t) High watermark of memory, in bytes,
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphMemAttributeType(cudaGraphMemAttrReservedMemCurrent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttrReservedMemCurre, __pyx_t_4) < (0)) __PYX_ERR(0, 3152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3157
 *     #: currently allocated for use by the CUDA graphs asynchronous
 *     #: allocator.
 *     cudaGraphMemAttrReservedMemHigh = cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphMemAttributeType = dict(((int(v), v) for k, v in cudaGraphMemAttributeType.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphMemAttributeType(cudaGraphMemAttrReservedMemHigh); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttrReservedMemHigh, __pyx_t_4) < (0)) __PYX_ERR(0, 3157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3136
 * _dict_cudaMemAllocationHandleType = dict(((int(v), v) for k, v in cudaMemAllocationHandleType.__members__.items()))
 * 
 * class cudaGraphMemAttributeType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Graph memory attributes
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttributeType, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttributeType, __pyx_t_4) < (0)) __PYX_ERR(0, 3136, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3159
 *     cudaGraphMemAttrReservedMemHigh = cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh
 * 
 * _dict_cudaGraphMemAttributeType = dict(((int(v), v) for k, v in cudaGraphMemAttributeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpyFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttributeType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_819genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphMemAttributeType, __pyx_t_19) < (0)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3161
 * _dict_cudaGraphMemAttributeType = dict(((int(v), v) for k, v in cudaGraphMemAttributeType.__members__.items()))
 * 
 * class cudaMemcpyFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags to specify for copies within a batch. For more details see
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFlags, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Flags_to_specify_for_copies_wit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3161, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3166
 *     :py:obj:`~.cudaMemcpyBatchAsync`.
 *     """
 *     cudaMemcpyFlagDefault = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagDefault             # <<<<<<<<<<<<<<
 * 
 *     #: Hint to the driver to try and overlap the copy with compute work on
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemcpyFlags(cudaMemcpyFlagDefault); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFlagDefault, __pyx_t_20) < (0)) __PYX_ERR(0, 3166, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3170
 *     #: Hint to the driver to try and overlap the copy with compute work on
 *     #: the SMs.
 *     cudaMemcpyFlagPreferOverlapWithCompute = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagPreferOverlapWithCompute             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemcpyFlags = dict(((int(v), v) for k, v in cudaMemcpyFlags.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaMemcpyFlags(cudaMemcpyFlagPreferOverlapWithCompute); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFlagPreferOverlapWithC, __pyx_t_20) < (0)) __PYX_ERR(0, 3170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3161
 * _dict_cudaGraphMemAttributeType = dict(((int(v), v) for k, v in cudaGraphMemAttributeType.__members__.items()))
 * 
 * class cudaMemcpyFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags to specify for copies within a batch. For more details see
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFlags, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFlags, __pyx_t_20) < (0)) __PYX_ERR(0, 3161, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3172
 *     cudaMemcpyFlagPreferOverlapWithCompute = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagPreferOverlapWithCompute
 * 
 * _dict_cudaMemcpyFlags = dict(((int(v), v) for k, v in cudaMemcpyFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpySrcAccessOrder(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFlags); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_822genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpyFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 3172, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3174
 * _dict_cudaMemcpyFlags = dict(((int(v), v) for k, v in cudaMemcpyFlags.__members__.items()))
 * 
 * class cudaMemcpySrcAccessOrder(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrder, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrder, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u__8); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3174, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3180
 * 
 *     #: Default invalid.
 *     cudaMemcpySrcAccessOrderInvalid = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderInvalid             # <<<<<<<<<<<<<<
 * 
 *     #: Indicates that access to the source pointer must be in stream order.
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder(cudaMemcpySrcAccessOrderInvalid); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrderInvalid, __pyx_t_19) < (0)) __PYX_ERR(0, 3180, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3183
 * 
 *     #: Indicates that access to the source pointer must be in stream order.
 *     cudaMemcpySrcAccessOrderStream = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderStream             # <<<<<<<<<<<<<<
 * 
 *     #: Indicates that access to the source pointer can be out of stream
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder(cudaMemcpySrcAccessOrderStream); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrderStream, __pyx_t_19) < (0)) __PYX_ERR(0, 3183, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3194
 *     #: removes the need for the user to synchronize the stream after the
 *     #: API call.
 *     cudaMemcpySrcAccessOrderDuringApiCall = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderDuringApiCall             # <<<<<<<<<<<<<<
 * 
 *     #: Indicates that access to the source pointer can be out of stream
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder(cudaMemcpySrcAccessOrderDuringApiCall); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrderDuringAp, __pyx_t_19) < (0)) __PYX_ERR(0, 3194, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3202
 *     #: can be accessing the memory. Specifying this flag allows the driver
 *     #: to optimize the copy on certain platforms.
 *     cudaMemcpySrcAccessOrderAny = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderAny             # <<<<<<<<<<<<<<
 *     cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder(cudaMemcpySrcAccessOrderAny); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrderAny, __pyx_t_19) < (0)) __PYX_ERR(0, 3202, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3203
 *     #: to optimize the copy on certain platforms.
 *     cudaMemcpySrcAccessOrderAny = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderAny
 *     cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemcpySrcAccessOrder = dict(((int(v), v) for k, v in cudaMemcpySrcAccessOrder.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder(cudaMemcpySrcAccessOrderMax); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrderMax, __pyx_t_19) < (0)) __PYX_ERR(0, 3203, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3174
 * _dict_cudaMemcpyFlags = dict(((int(v), v) for k, v in cudaMemcpyFlags.__members__.items()))
 * 
 * class cudaMemcpySrcAccessOrder(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrder, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrder, __pyx_t_19) < (0)) __PYX_ERR(0, 3174, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3205
 *     cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax
 * 
 * _dict_cudaMemcpySrcAccessOrder = dict(((int(v), v) for k, v in cudaMemcpySrcAccessOrder.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaMemcpy3DOperandType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaMemcpySrcAccessOrder); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_825genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpySrcAccessOrder, __pyx_t_4) < (0)) __PYX_ERR(0, 3205, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3207
 * _dict_cudaMemcpySrcAccessOrder = dict(((int(v), v) for k, v in cudaMemcpySrcAccessOrder.__members__.items()))
 * 
 * class cudaMemcpy3DOperandType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     These flags allow applications to convey the operand type for
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperandType, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperandType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_These_flags_allow_applications); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3207, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3214
 * 
 *     #: Memcpy operand is a valid pointer.
 *     cudaMemcpyOperandTypePointer = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypePointer             # <<<<<<<<<<<<<<
 * 
 *     #: Memcpy operand is a CUarray.
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemcpy3DOperandType(cudaMemcpyOperandTypePointer); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemcpyOperandTypePointer, __pyx_t_18) < (0)) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3217
 * 
 *     #: Memcpy operand is a CUarray.
 *     cudaMemcpyOperandTypeArray = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeArray             # <<<<<<<<<<<<<<
 *     cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemcpy3DOperandType(cudaMemcpyOperandTypeArray); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemcpyOperandTypeArray, __pyx_t_18) < (0)) __PYX_ERR(0, 3217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3218
 *     #: Memcpy operand is a CUarray.
 *     cudaMemcpyOperandTypeArray = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeArray
 *     cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaMemcpy3DOperandType = dict(((int(v), v) for k, v in cudaMemcpy3DOperandType.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaMemcpy3DOperandType(cudaMemcpyOperandTypeMax); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaMemcpyOperandTypeMax, __pyx_t_18) < (0)) __PYX_ERR(0, 3218, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3207
 * _dict_cudaMemcpySrcAccessOrder = dict(((int(v), v) for k, v in cudaMemcpySrcAccessOrder.__members__.items()))
 * 
 * class cudaMemcpy3DOperandType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     These flags allow applications to convey the operand type for
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperandType, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperandType, __pyx_t_18) < (0)) __PYX_ERR(0, 3207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3220
 *     cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax
 * 
 * _dict_cudaMemcpy3DOperandType = dict(((int(v), v) for k, v in cudaMemcpy3DOperandType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceP2PAttr(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperandType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_828genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaMemcpy3DOperandType, __pyx_t_20) < (0)) __PYX_ERR(0, 3220, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3222
 * _dict_cudaMemcpy3DOperandType = dict(((int(v), v) for k, v in cudaMemcpy3DOperandType.__members__.items()))
 * 
 * class cudaDeviceP2PAttr(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device P2P attributes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDeviceP2PAttr, __pyx_mstate_global->__pyx_n_u_cudaDeviceP2PAttr, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_device_P2P_attributes); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3222, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3229
 *     #: A relative value indicating the performance of the link between two
 *     #: devices
 *     cudaDevP2PAttrPerformanceRank = cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrPerformanceRank             # <<<<<<<<<<<<<<
 * 
 *     #: Peer access is enabled
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrPerformanceRank); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevP2PAttrPerformanceRank, __pyx_t_4) < (0)) __PYX_ERR(0, 3229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3232
 * 
 *     #: Peer access is enabled
 *     cudaDevP2PAttrAccessSupported = cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrAccessSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Native atomic operation over the link supported
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrAccessSupported); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevP2PAttrAccessSupported, __pyx_t_4) < (0)) __PYX_ERR(0, 3232, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3235
 * 
 *     #: Native atomic operation over the link supported
 *     cudaDevP2PAttrNativeAtomicSupported = cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrNativeAtomicSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Accessing CUDA arrays over the link supported
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrNativeAtomicSupported); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevP2PAttrNativeAtomicSuppor, __pyx_t_4) < (0)) __PYX_ERR(0, 3235, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3238
 * 
 *     #: Accessing CUDA arrays over the link supported
 *     cudaDevP2PAttrCudaArrayAccessSupported = cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrCudaArrayAccessSupported             # <<<<<<<<<<<<<<
 * 
 *     #: Only some CUDA-valid atomic operations over the link are supported.
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrCudaArrayAccessSupported); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3238, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevP2PAttrCudaArrayAccessSup, __pyx_t_4) < (0)) __PYX_ERR(0, 3238, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3241
 * 
 *     #: Only some CUDA-valid atomic operations over the link are supported.
 *     cudaDevP2PAttrOnlyPartialNativeAtomicSupported = cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrOnlyPartialNativeAtomicSupported             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDeviceP2PAttr = dict(((int(v), v) for k, v in cudaDeviceP2PAttr.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDeviceP2PAttr(cudaDevP2PAttrOnlyPartialNativeAtomicSupported); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevP2PAttrOnlyPartialNativeA, __pyx_t_4) < (0)) __PYX_ERR(0, 3241, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3222
 * _dict_cudaMemcpy3DOperandType = dict(((int(v), v) for k, v in cudaMemcpy3DOperandType.__members__.items()))
 * 
 * class cudaDeviceP2PAttr(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device P2P attributes
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDeviceP2PAttr, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceP2PAttr, __pyx_t_4) < (0)) __PYX_ERR(0, 3222, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3243
 *     cudaDevP2PAttrOnlyPartialNativeAtomicSupported = cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrOnlyPartialNativeAtomicSupported
 * 
 * _dict_cudaDeviceP2PAttr = dict(((int(v), v) for k, v in cudaDeviceP2PAttr.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAtomicOperation(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDeviceP2PAttr); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_831genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDeviceP2PAttr, __pyx_t_19) < (0)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3245
 * _dict_cudaDeviceP2PAttr = dict(((int(v), v) for k, v in cudaDeviceP2PAttr.__members__.items()))
 * 
 * class cudaAtomicOperation(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA-valid Atomic Operations
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperation, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperation, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_valid_Atomic_Operations); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3245, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3249
 *     CUDA-valid Atomic Operations
 *     """
 *     cudaAtomicOperationIntegerAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerAdd             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationIntegerMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMin
 *     cudaAtomicOperationIntegerMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMax
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationIntegerAdd); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationIntegerAdd, __pyx_t_20) < (0)) __PYX_ERR(0, 3249, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3250
 *     """
 *     cudaAtomicOperationIntegerAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerAdd
 *     cudaAtomicOperationIntegerMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMin             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationIntegerMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMax
 *     cudaAtomicOperationIntegerIncrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerIncrement
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationIntegerMin); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationIntegerMin, __pyx_t_20) < (0)) __PYX_ERR(0, 3250, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3251
 *     cudaAtomicOperationIntegerAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerAdd
 *     cudaAtomicOperationIntegerMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMin
 *     cudaAtomicOperationIntegerMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMax             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationIntegerIncrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerIncrement
 *     cudaAtomicOperationIntegerDecrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerDecrement
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationIntegerMax); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationIntegerMax, __pyx_t_20) < (0)) __PYX_ERR(0, 3251, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3252
 *     cudaAtomicOperationIntegerMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMin
 *     cudaAtomicOperationIntegerMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMax
 *     cudaAtomicOperationIntegerIncrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerIncrement             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationIntegerDecrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerDecrement
 *     cudaAtomicOperationAnd = cyruntime.cudaAtomicOperation.cudaAtomicOperationAnd
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationIntegerIncrement); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationIntegerIncrem, __pyx_t_20) < (0)) __PYX_ERR(0, 3252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3253
 *     cudaAtomicOperationIntegerMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMax
 *     cudaAtomicOperationIntegerIncrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerIncrement
 *     cudaAtomicOperationIntegerDecrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerDecrement             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationAnd = cyruntime.cudaAtomicOperation.cudaAtomicOperationAnd
 *     cudaAtomicOperationOr = cyruntime.cudaAtomicOperation.cudaAtomicOperationOr
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationIntegerDecrement); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationIntegerDecrem, __pyx_t_20) < (0)) __PYX_ERR(0, 3253, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3254
 *     cudaAtomicOperationIntegerIncrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerIncrement
 *     cudaAtomicOperationIntegerDecrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerDecrement
 *     cudaAtomicOperationAnd = cyruntime.cudaAtomicOperation.cudaAtomicOperationAnd             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationOr = cyruntime.cudaAtomicOperation.cudaAtomicOperationOr
 *     cudaAtomicOperationXOR = cyruntime.cudaAtomicOperation.cudaAtomicOperationXOR
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationAnd); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationAnd, __pyx_t_20) < (0)) __PYX_ERR(0, 3254, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3255
 *     cudaAtomicOperationIntegerDecrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerDecrement
 *     cudaAtomicOperationAnd = cyruntime.cudaAtomicOperation.cudaAtomicOperationAnd
 *     cudaAtomicOperationOr = cyruntime.cudaAtomicOperation.cudaAtomicOperationOr             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationXOR = cyruntime.cudaAtomicOperation.cudaAtomicOperationXOR
 *     cudaAtomicOperationExchange = cyruntime.cudaAtomicOperation.cudaAtomicOperationExchange
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationOr); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationOr, __pyx_t_20) < (0)) __PYX_ERR(0, 3255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3256
 *     cudaAtomicOperationAnd = cyruntime.cudaAtomicOperation.cudaAtomicOperationAnd
 *     cudaAtomicOperationOr = cyruntime.cudaAtomicOperation.cudaAtomicOperationOr
 *     cudaAtomicOperationXOR = cyruntime.cudaAtomicOperation.cudaAtomicOperationXOR             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationExchange = cyruntime.cudaAtomicOperation.cudaAtomicOperationExchange
 *     cudaAtomicOperationCAS = cyruntime.cudaAtomicOperation.cudaAtomicOperationCAS
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationXOR); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationXOR, __pyx_t_20) < (0)) __PYX_ERR(0, 3256, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3257
 *     cudaAtomicOperationOr = cyruntime.cudaAtomicOperation.cudaAtomicOperationOr
 *     cudaAtomicOperationXOR = cyruntime.cudaAtomicOperation.cudaAtomicOperationXOR
 *     cudaAtomicOperationExchange = cyruntime.cudaAtomicOperation.cudaAtomicOperationExchange             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationCAS = cyruntime.cudaAtomicOperation.cudaAtomicOperationCAS
 *     cudaAtomicOperationFloatAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatAdd
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationExchange); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationExchange, __pyx_t_20) < (0)) __PYX_ERR(0, 3257, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3258
 *     cudaAtomicOperationXOR = cyruntime.cudaAtomicOperation.cudaAtomicOperationXOR
 *     cudaAtomicOperationExchange = cyruntime.cudaAtomicOperation.cudaAtomicOperationExchange
 *     cudaAtomicOperationCAS = cyruntime.cudaAtomicOperation.cudaAtomicOperationCAS             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationFloatAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatAdd
 *     cudaAtomicOperationFloatMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMin
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationCAS); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationCAS, __pyx_t_20) < (0)) __PYX_ERR(0, 3258, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3259
 *     cudaAtomicOperationExchange = cyruntime.cudaAtomicOperation.cudaAtomicOperationExchange
 *     cudaAtomicOperationCAS = cyruntime.cudaAtomicOperation.cudaAtomicOperationCAS
 *     cudaAtomicOperationFloatAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatAdd             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationFloatMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMin
 *     cudaAtomicOperationFloatMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMax
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationFloatAdd); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationFloatAdd, __pyx_t_20) < (0)) __PYX_ERR(0, 3259, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3260
 *     cudaAtomicOperationCAS = cyruntime.cudaAtomicOperation.cudaAtomicOperationCAS
 *     cudaAtomicOperationFloatAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatAdd
 *     cudaAtomicOperationFloatMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMin             # <<<<<<<<<<<<<<
 *     cudaAtomicOperationFloatMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMax
 * 
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationFloatMin); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationFloatMin, __pyx_t_20) < (0)) __PYX_ERR(0, 3260, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3261
 *     cudaAtomicOperationFloatAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatAdd
 *     cudaAtomicOperationFloatMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMin
 *     cudaAtomicOperationFloatMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMax             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaAtomicOperation = dict(((int(v), v) for k, v in cudaAtomicOperation.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaAtomicOperation(cudaAtomicOperationFloatMax); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationFloatMax, __pyx_t_20) < (0)) __PYX_ERR(0, 3261, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3245
 * _dict_cudaDeviceP2PAttr = dict(((int(v), v) for k, v in cudaDeviceP2PAttr.__members__.items()))
 * 
 * class cudaAtomicOperation(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA-valid Atomic Operations
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperation, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperation, __pyx_t_20) < (0)) __PYX_ERR(0, 3245, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3263
 *     cudaAtomicOperationFloatMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMax
 * 
 * _dict_cudaAtomicOperation = dict(((int(v), v) for k, v in cudaAtomicOperation.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaAtomicOperationCapability(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperation); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_834genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaAtomicOperation, __pyx_t_18) < (0)) __PYX_ERR(0, 3263, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3265
 * _dict_cudaAtomicOperation = dict(((int(v), v) for k, v in cudaAtomicOperation.__members__.items()))
 * 
 * class cudaAtomicOperationCapability(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA-valid Atomic Operation capabilities
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationCapability, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationCapability, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_valid_Atomic_Operation_cap); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3265, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationCapability, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationCapability, __pyx_t_19) < (0)) __PYX_ERR(0, 3265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3277
 * 
 * 
 * _dict_cudaAtomicOperationCapability = dict(((int(v), v) for k, v in cudaAtomicOperationCapability.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaExternalMemoryHandleType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaAtomicOperationCapability); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_837genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaAtomicOperationCapabil, __pyx_t_4) < (0)) __PYX_ERR(0, 3277, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3279
 * _dict_cudaAtomicOperationCapability = dict(((int(v), v) for k, v in cudaAtomicOperationCapability.__members__.items()))
 * 
 * class cudaExternalMemoryHandleType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     External memory handle types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleType, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_External_memory_handle_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3279, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3285
 * 
 *     #: Handle is an opaque file descriptor
 *     cudaExternalMemoryHandleTypeOpaqueFd = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueFd             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is an opaque shared NT handle
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeOpaqueFd); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleTypeOpaq, __pyx_t_18) < (0)) __PYX_ERR(0, 3285, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3288
 * 
 *     #: Handle is an opaque shared NT handle
 *     cudaExternalMemoryHandleTypeOpaqueWin32 = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueWin32             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is an opaque, globally shared handle
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeOpaqueWin32); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleTypeOpaq_2, __pyx_t_18) < (0)) __PYX_ERR(0, 3288, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3291
 * 
 *     #: Handle is an opaque, globally shared handle
 *     cudaExternalMemoryHandleTypeOpaqueWin32Kmt = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueWin32Kmt             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is a D3D12 heap object
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeOpaqueWin32Kmt); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleTypeOpaq_3, __pyx_t_18) < (0)) __PYX_ERR(0, 3291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3294
 * 
 *     #: Handle is a D3D12 heap object
 *     cudaExternalMemoryHandleTypeD3D12Heap = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D12Heap             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is a D3D12 committed resource
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeD3D12Heap); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleTypeD3D1, __pyx_t_18) < (0)) __PYX_ERR(0, 3294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3297
 * 
 *     #: Handle is a D3D12 committed resource
 *     cudaExternalMemoryHandleTypeD3D12Resource = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D12Resource             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is a shared NT handle to a D3D11 resource
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeD3D12Resource); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleTypeD3D1_2, __pyx_t_18) < (0)) __PYX_ERR(0, 3297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3300
 * 
 *     #: Handle is a shared NT handle to a D3D11 resource
 *     cudaExternalMemoryHandleTypeD3D11Resource = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D11Resource             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is a globally shared handle to a D3D11 resource
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeD3D11Resource); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleTypeD3D1_3, __pyx_t_18) < (0)) __PYX_ERR(0, 3300, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3303
 * 
 *     #: Handle is a globally shared handle to a D3D11 resource
 *     cudaExternalMemoryHandleTypeD3D11ResourceKmt = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D11ResourceKmt             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is an NvSciBuf object
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeD3D11ResourceKmt); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleTypeD3D1_4, __pyx_t_18) < (0)) __PYX_ERR(0, 3303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3306
 * 
 *     #: Handle is an NvSciBuf object
 *     cudaExternalMemoryHandleTypeNvSciBuf = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaExternalMemoryHandleType = dict(((int(v), v) for k, v in cudaExternalMemoryHandleType.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(cudaExternalMemoryHandleTypeNvSciBuf); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleTypeNvSc, __pyx_t_18) < (0)) __PYX_ERR(0, 3306, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3279
 * _dict_cudaAtomicOperationCapability = dict(((int(v), v) for k, v in cudaAtomicOperationCapability.__members__.items()))
 * 
 * class cudaExternalMemoryHandleType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     External memory handle types
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleType, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleType, __pyx_t_18) < (0)) __PYX_ERR(0, 3279, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3308
 *     cudaExternalMemoryHandleTypeNvSciBuf = cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf
 * 
 * _dict_cudaExternalMemoryHandleType = dict(((int(v), v) for k, v in cudaExternalMemoryHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaExternalSemaphoreHandleType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_840genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaExternalMemoryHandleTy, __pyx_t_20) < (0)) __PYX_ERR(0, 3308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3310
 * _dict_cudaExternalMemoryHandleType = dict(((int(v), v) for k, v in cudaExternalMemoryHandleType.__members__.items()))
 * 
 * class cudaExternalSemaphoreHandleType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore handle types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleType, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_External_semaphore_handle_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3310, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3316
 * 
 *     #: Handle is an opaque file descriptor
 *     cudaExternalSemaphoreHandleTypeOpaqueFd = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueFd             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is an opaque shared NT handle
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeOpaqueFd); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeO, __pyx_t_4) < (0)) __PYX_ERR(0, 3316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3319
 * 
 *     #: Handle is an opaque shared NT handle
 *     cudaExternalSemaphoreHandleTypeOpaqueWin32 = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueWin32             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is an opaque, globally shared handle
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeOpaqueWin32); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeO_2, __pyx_t_4) < (0)) __PYX_ERR(0, 3319, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3322
 * 
 *     #: Handle is an opaque, globally shared handle
 *     cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is a shared NT handle referencing a D3D12 fence object
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeO_3, __pyx_t_4) < (0)) __PYX_ERR(0, 3322, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3325
 * 
 *     #: Handle is a shared NT handle referencing a D3D12 fence object
 *     cudaExternalSemaphoreHandleTypeD3D12Fence = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeD3D12Fence             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is a shared NT handle referencing a D3D11 fence object
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeD3D12Fence); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeD, __pyx_t_4) < (0)) __PYX_ERR(0, 3325, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3328
 * 
 *     #: Handle is a shared NT handle referencing a D3D11 fence object
 *     cudaExternalSemaphoreHandleTypeD3D11Fence = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeD3D11Fence             # <<<<<<<<<<<<<<
 * 
 *     #: Opaque handle to NvSciSync Object
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeD3D11Fence); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeD_2, __pyx_t_4) < (0)) __PYX_ERR(0, 3328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3331
 * 
 *     #: Opaque handle to NvSciSync Object
 *     cudaExternalSemaphoreHandleTypeNvSciSync = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeNvSciSync             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is a shared NT handle referencing a D3D11 keyed mutex object
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeNvSciSync); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeN, __pyx_t_4) < (0)) __PYX_ERR(0, 3331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3334
 * 
 *     #: Handle is a shared NT handle referencing a D3D11 keyed mutex object
 *     cudaExternalSemaphoreHandleTypeKeyedMutex = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeKeyedMutex             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is a shared KMT handle referencing a D3D11 keyed mutex object
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeKeyedMutex); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeK, __pyx_t_4) < (0)) __PYX_ERR(0, 3334, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3337
 * 
 *     #: Handle is a shared KMT handle referencing a D3D11 keyed mutex object
 *     cudaExternalSemaphoreHandleTypeKeyedMutexKmt = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeKeyedMutexKmt             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is an opaque handle file descriptor referencing a timeline
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeKeyedMutexKmt); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeK_2, __pyx_t_4) < (0)) __PYX_ERR(0, 3337, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3341
 *     #: Handle is an opaque handle file descriptor referencing a timeline
 *     #: semaphore
 *     cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd             # <<<<<<<<<<<<<<
 * 
 *     #: Handle is an opaque handle file descriptor referencing a timeline
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeT, __pyx_t_4) < (0)) __PYX_ERR(0, 3341, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3345
 *     #: Handle is an opaque handle file descriptor referencing a timeline
 *     #: semaphore
 *     cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaExternalSemaphoreHandleType = dict(((int(v), v) for k, v in cudaExternalSemaphoreHandleType.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleTypeT_2, __pyx_t_4) < (0)) __PYX_ERR(0, 3345, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3310
 * _dict_cudaExternalMemoryHandleType = dict(((int(v), v) for k, v in cudaExternalMemoryHandleType.__members__.items()))
 * 
 * class cudaExternalSemaphoreHandleType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     External semaphore handle types
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleType, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleType, __pyx_t_4) < (0)) __PYX_ERR(0, 3310, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3347
 *     cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32
 * 
 * _dict_cudaExternalSemaphoreHandleType = dict(((int(v), v) for k, v in cudaExternalSemaphoreHandleType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevSmResourceGroup_flags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_843genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaExternalSemaphoreHandl, __pyx_t_19) < (0)) __PYX_ERR(0, 3347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3349
 * _dict_cudaExternalSemaphoreHandleType = dict(((int(v), v) for k, v in cudaExternalSemaphoreHandleType.__members__.items()))
 * 
 * class cudaDevSmResourceGroup_flags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroup_flags, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroup_flags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u__8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3349, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3353
 * 
 *     """
 *     cudaDevSmResourceGroupDefault = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupDefault             # <<<<<<<<<<<<<<
 *     cudaDevSmResourceGroupBackfill = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupBackfill
 * 
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaDevSmResourceGroup_flags(cudaDevSmResourceGroupDefault); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroupDefault, __pyx_t_20) < (0)) __PYX_ERR(0, 3353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3354
 *     """
 *     cudaDevSmResourceGroupDefault = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupDefault
 *     cudaDevSmResourceGroupBackfill = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupBackfill             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDevSmResourceGroup_flags = dict(((int(v), v) for k, v in cudaDevSmResourceGroup_flags.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaDevSmResourceGroup_flags(cudaDevSmResourceGroupBackfill); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroupBackfill, __pyx_t_20) < (0)) __PYX_ERR(0, 3354, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3349
 * _dict_cudaExternalSemaphoreHandleType = dict(((int(v), v) for k, v in cudaExternalSemaphoreHandleType.__members__.items()))
 * 
 * class cudaDevSmResourceGroup_flags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroup_flags, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroup_flags, __pyx_t_20) < (0)) __PYX_ERR(0, 3349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3356
 *     cudaDevSmResourceGroupBackfill = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupBackfill
 * 
 * _dict_cudaDevSmResourceGroup_flags = dict(((int(v), v) for k, v in cudaDevSmResourceGroup_flags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevSmResourceSplitByCount_flags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroup_flags); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_846genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDevSmResourceGroup_fla, __pyx_t_18) < (0)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3358
 * _dict_cudaDevSmResourceGroup_flags = dict(((int(v), v) for k, v in cudaDevSmResourceGroup_flags.__members__.items()))
 * 
 * class cudaDevSmResourceSplitByCount_flags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitByCount_fl, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitByCount_fl, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u__8); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3358, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3362
 * 
 *     """
 *     cudaDevSmResourceSplitIgnoreSmCoscheduling = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitIgnoreSmCoscheduling             # <<<<<<<<<<<<<<
 *     cudaDevSmResourceSplitMaxPotentialClusterSize = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitMaxPotentialClusterSize
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDevSmResourceSplitByCount_flags(cudaDevSmResourceSplitIgnoreSmCoscheduling); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitIgnoreSmCo, __pyx_t_19) < (0)) __PYX_ERR(0, 3362, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3363
 *     """
 *     cudaDevSmResourceSplitIgnoreSmCoscheduling = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitIgnoreSmCoscheduling
 *     cudaDevSmResourceSplitMaxPotentialClusterSize = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitMaxPotentialClusterSize             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDevSmResourceSplitByCount_flags = dict(((int(v), v) for k, v in cudaDevSmResourceSplitByCount_flags.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaDevSmResourceSplitByCount_flags(cudaDevSmResourceSplitMaxPotentialClusterSize); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitMaxPotenti, __pyx_t_19) < (0)) __PYX_ERR(0, 3363, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3358
 * _dict_cudaDevSmResourceGroup_flags = dict(((int(v), v) for k, v in cudaDevSmResourceGroup_flags.__members__.items()))
 * 
 * class cudaDevSmResourceSplitByCount_flags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitByCount_fl, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitByCount_fl, __pyx_t_19) < (0)) __PYX_ERR(0, 3358, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3365
 *     cudaDevSmResourceSplitMaxPotentialClusterSize = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitMaxPotentialClusterSize
 * 
 * _dict_cudaDevSmResourceSplitByCount_flags = dict(((int(v), v) for k, v in cudaDevSmResourceSplitByCount_flags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevResourceType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitByCount_fl); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_849genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDevSmResourceSplitByCo, __pyx_t_4) < (0)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3367
 * _dict_cudaDevSmResourceSplitByCount_flags = dict(((int(v), v) for k, v in cudaDevSmResourceSplitByCount_flags.__members__.items()))
 * 
 * class cudaDevResourceType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Type of resource
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDevResourceType, __pyx_mstate_global->__pyx_n_u_cudaDevResourceType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Type_of_resource); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3367, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3371
 *     Type of resource
 *     """
 *     cudaDevResourceTypeInvalid = cyruntime.cudaDevResourceType.cudaDevResourceTypeInvalid             # <<<<<<<<<<<<<<
 * 
 *     #: Streaming multiprocessors related information
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaDevResourceType(cudaDevResourceTypeInvalid); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDevResourceTypeInvalid, __pyx_t_18) < (0)) __PYX_ERR(0, 3371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3374
 * 
 *     #: Streaming multiprocessors related information
 *     cudaDevResourceTypeSm = cyruntime.cudaDevResourceType.cudaDevResourceTypeSm             # <<<<<<<<<<<<<<
 * 
 *     #: Workqueue configuration related information
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaDevResourceType(cudaDevResourceTypeSm); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDevResourceTypeSm, __pyx_t_18) < (0)) __PYX_ERR(0, 3374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3377
 * 
 *     #: Workqueue configuration related information
 *     cudaDevResourceTypeWorkqueueConfig = cyruntime.cudaDevResourceType.cudaDevResourceTypeWorkqueueConfig             # <<<<<<<<<<<<<<
 * 
 *     #: Pre-existing workqueue related information
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaDevResourceType(cudaDevResourceTypeWorkqueueConfig); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDevResourceTypeWorkqueueConf, __pyx_t_18) < (0)) __PYX_ERR(0, 3377, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3380
 * 
 *     #: Pre-existing workqueue related information
 *     cudaDevResourceTypeWorkqueue = cyruntime.cudaDevResourceType.cudaDevResourceTypeWorkqueue             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDevResourceType = dict(((int(v), v) for k, v in cudaDevResourceType.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaDevResourceType(cudaDevResourceTypeWorkqueue); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDevResourceTypeWorkqueue, __pyx_t_18) < (0)) __PYX_ERR(0, 3380, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3367
 * _dict_cudaDevSmResourceSplitByCount_flags = dict(((int(v), v) for k, v in cudaDevSmResourceSplitByCount_flags.__members__.items()))
 * 
 * class cudaDevResourceType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Type of resource
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevResourceType, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDevResourceType, __pyx_t_18) < (0)) __PYX_ERR(0, 3367, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3382
 *     cudaDevResourceTypeWorkqueue = cyruntime.cudaDevResourceType.cudaDevResourceTypeWorkqueue
 * 
 * _dict_cudaDevResourceType = dict(((int(v), v) for k, v in cudaDevResourceType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDevWorkqueueConfigScope(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDevResourceType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_852genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDevResourceType, __pyx_t_20) < (0)) __PYX_ERR(0, 3382, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3384
 * _dict_cudaDevResourceType = dict(((int(v), v) for k, v in cudaDevResourceType.__members__.items()))
 * 
 * class cudaDevWorkqueueConfigScope(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Sharing scope for workqueues
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigScope, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigScope, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Sharing_scope_for_workqueues); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3384, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3391
 *     #: Use all shared workqueue resources on the device. Default driver
 *     #: behaviour.
 *     cudaDevWorkqueueConfigScopeDeviceCtx = cyruntime.cudaDevWorkqueueConfigScope.cudaDevWorkqueueConfigScopeDeviceCtx             # <<<<<<<<<<<<<<
 * 
 *     #: When possible, use non-overlapping workqueue resources with other
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDevWorkqueueConfigScope(cudaDevWorkqueueConfigScopeDeviceCtx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigScopeDevic, __pyx_t_4) < (0)) __PYX_ERR(0, 3391, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3395
 *     #: When possible, use non-overlapping workqueue resources with other
 *     #: balanced green contexts.
 *     cudaDevWorkqueueConfigScopeGreenCtxBalanced = cyruntime.cudaDevWorkqueueConfigScope.cudaDevWorkqueueConfigScopeGreenCtxBalanced             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDevWorkqueueConfigScope = dict(((int(v), v) for k, v in cudaDevWorkqueueConfigScope.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDevWorkqueueConfigScope(cudaDevWorkqueueConfigScopeGreenCtxBalanced); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigScopeGreen, __pyx_t_4) < (0)) __PYX_ERR(0, 3395, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3384
 * _dict_cudaDevResourceType = dict(((int(v), v) for k, v in cudaDevResourceType.__members__.items()))
 * 
 * class cudaDevWorkqueueConfigScope(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Sharing scope for workqueues
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigScope, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigScope, __pyx_t_4) < (0)) __PYX_ERR(0, 3384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3397
 *     cudaDevWorkqueueConfigScopeGreenCtxBalanced = cyruntime.cudaDevWorkqueueConfigScope.cudaDevWorkqueueConfigScopeGreenCtxBalanced
 * 
 * _dict_cudaDevWorkqueueConfigScope = dict(((int(v), v) for k, v in cudaDevWorkqueueConfigScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJitOption(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigScope); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_855genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDevWorkqueueConfigScop, __pyx_t_19) < (0)) __PYX_ERR(0, 3397, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3399
 * _dict_cudaDevWorkqueueConfigScope = dict(((int(v), v) for k, v in cudaDevWorkqueueConfigScope.__members__.items()))
 * 
 * class cudaJitOption(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Online compiler and linker options
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaJitOption, __pyx_mstate_global->__pyx_n_u_cudaJitOption, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Online_compiler_and_linker_opti); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3399, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3407
 *     #: Option type: unsigned int
 *     #: Applies to: compiler only
 *     cudaJitMaxRegisters = cyruntime.cudaJitOption.cudaJitMaxRegisters             # <<<<<<<<<<<<<<
 * 
 *     #: IN: Specifies minimum number of threads per block to target
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitMaxRegisters); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitMaxRegisters, __pyx_t_20) < (0)) __PYX_ERR(0, 3407, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3419
 *     #: Option type: unsigned int
 *     #: Applies to: compiler only
 *     cudaJitThreadsPerBlock = cyruntime.cudaJitOption.cudaJitThreadsPerBlock             # <<<<<<<<<<<<<<
 * 
 *     #: Overwrites the option value with the total wall clock time, in
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitThreadsPerBlock); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitThreadsPerBlock, __pyx_t_20) < (0)) __PYX_ERR(0, 3419, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3425
 *     #: Option type: float
 *     #: Applies to: compiler and linker
 *     cudaJitWallTime = cyruntime.cudaJitOption.cudaJitWallTime             # <<<<<<<<<<<<<<
 * 
 *     #: Pointer to a buffer in which to print any log messages that are
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitWallTime); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitWallTime, __pyx_t_20) < (0)) __PYX_ERR(0, 3425, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3432
 *     #: Option type: char *
 *     #: Applies to: compiler and linker
 *     cudaJitInfoLogBuffer = cyruntime.cudaJitOption.cudaJitInfoLogBuffer             # <<<<<<<<<<<<<<
 * 
 *     #: IN: Log buffer size in bytes. Log messages will be capped at this
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitInfoLogBuffer); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitInfoLogBuffer, __pyx_t_20) < (0)) __PYX_ERR(0, 3432, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3439
 *     #: Option type: unsigned int
 *     #: Applies to: compiler and linker
 *     cudaJitInfoLogBufferSizeBytes = cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes             # <<<<<<<<<<<<<<
 * 
 *     #: Pointer to a buffer in which to print any log messages that reflect
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitInfoLogBufferSizeBytes); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitInfoLogBufferSizeBytes, __pyx_t_20) < (0)) __PYX_ERR(0, 3439, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3446
 *     #: Option type: char *
 *     #: Applies to: compiler and linker
 *     cudaJitErrorLogBuffer = cyruntime.cudaJitOption.cudaJitErrorLogBuffer             # <<<<<<<<<<<<<<
 * 
 *     #: IN: Log buffer size in bytes. Log messages will be capped at this
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitErrorLogBuffer); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitErrorLogBuffer, __pyx_t_20) < (0)) __PYX_ERR(0, 3446, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3453
 *     #: Option type: unsigned int
 *     #: Applies to: compiler and linker
 *     cudaJitErrorLogBufferSizeBytes = cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes             # <<<<<<<<<<<<<<
 * 
 *     #: Level of optimizations to apply to generated code (0 - 4), with 4
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitErrorLogBufferSizeBytes); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitErrorLogBufferSizeBytes, __pyx_t_20) < (0)) __PYX_ERR(0, 3453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3459
 *     #: Option type: unsigned int
 *     #: Applies to: compiler only
 *     cudaJitOptimizationLevel = cyruntime.cudaJitOption.cudaJitOptimizationLevel             # <<<<<<<<<<<<<<
 * 
 *     #: Specifies choice of fallback strategy if matching cubin is not
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitOptimizationLevel); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitOptimizationLevel, __pyx_t_20) < (0)) __PYX_ERR(0, 3459, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3466
 *     #: :py:obj:`~.cudaJit_Fallback`
 *     #: Applies to: compiler only
 *     cudaJitFallbackStrategy = cyruntime.cudaJitOption.cudaJitFallbackStrategy             # <<<<<<<<<<<<<<
 * 
 *     #: Specifies whether to create debug information in output (-g) (0:
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitFallbackStrategy); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitFallbackStrategy, __pyx_t_20) < (0)) __PYX_ERR(0, 3466, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3472
 *     #: Option type: int
 *     #: Applies to: compiler and linker
 *     cudaJitGenerateDebugInfo = cyruntime.cudaJitOption.cudaJitGenerateDebugInfo             # <<<<<<<<<<<<<<
 * 
 *     #: Generate verbose log messages (0: false, default)
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitGenerateDebugInfo); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitGenerateDebugInfo, __pyx_t_20) < (0)) __PYX_ERR(0, 3472, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3477
 *     #: Option type: int
 *     #: Applies to: compiler and linker
 *     cudaJitLogVerbose = cyruntime.cudaJitOption.cudaJitLogVerbose             # <<<<<<<<<<<<<<
 * 
 *     #: Generate line number information (-lineinfo) (0: false, default)
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitLogVerbose); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitLogVerbose, __pyx_t_20) < (0)) __PYX_ERR(0, 3477, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3482
 *     #: Option type: int
 *     #: Applies to: compiler only
 *     cudaJitGenerateLineInfo = cyruntime.cudaJitOption.cudaJitGenerateLineInfo             # <<<<<<<<<<<<<<
 * 
 *     #: Specifies whether to enable caching explicitly (-dlcm)
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitGenerateLineInfo); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3482, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitGenerateLineInfo, __pyx_t_20) < (0)) __PYX_ERR(0, 3482, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3489
 *     #: :py:obj:`~.cudaJit_CacheMode`
 *     #: Applies to: compiler only
 *     cudaJitCacheMode = cyruntime.cudaJitOption.cudaJitCacheMode             # <<<<<<<<<<<<<<
 * 
 *     #: Generate position independent code (0: false)
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitCacheMode); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitCacheMode, __pyx_t_20) < (0)) __PYX_ERR(0, 3489, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3494
 *     #: Option type: int
 *     #: Applies to: compiler only
 *     cudaJitPositionIndependentCode = cyruntime.cudaJitOption.cudaJitPositionIndependentCode             # <<<<<<<<<<<<<<
 * 
 *     #: This option hints to the JIT compiler the minimum number of CTAs
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitPositionIndependentCode); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitPositionIndependentCode, __pyx_t_20) < (0)) __PYX_ERR(0, 3494, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3506
 *     #: precedence over the PTX directive. Option type: unsigned int
 *     #: Applies to: compiler only
 *     cudaJitMinCtaPerSm = cyruntime.cudaJitOption.cudaJitMinCtaPerSm             # <<<<<<<<<<<<<<
 * 
 *     #: Maximum number threads in a thread block, computed as the product of
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitMinCtaPerSm); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitMinCtaPerSm, __pyx_t_20) < (0)) __PYX_ERR(0, 3506, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3517
 *     #: precedence over the PTX directive. Option type: int
 *     #: Applies to: compiler only
 *     cudaJitMaxThreadsPerBlock = cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock             # <<<<<<<<<<<<<<
 * 
 *     #: This option lets the values specified using
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitMaxThreadsPerBlock); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitMaxThreadsPerBlock, __pyx_t_20) < (0)) __PYX_ERR(0, 3517, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3525
 *     #: directives. (0: Disable, default; 1: Enable) Option type: int
 *     #: Applies to: compiler only
 *     cudaJitOverrideDirectiveValues = cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaJitOption = dict(((int(v), v) for k, v in cudaJitOption.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaJitOption(cudaJitOverrideDirectiveValues); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJitOverrideDirectiveValues, __pyx_t_20) < (0)) __PYX_ERR(0, 3525, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3399
 * _dict_cudaDevWorkqueueConfigScope = dict(((int(v), v) for k, v in cudaDevWorkqueueConfigScope.__members__.items()))
 * 
 * class cudaJitOption(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Online compiler and linker options
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaJitOption, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaJitOption, __pyx_t_20) < (0)) __PYX_ERR(0, 3399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3527
 *     cudaJitOverrideDirectiveValues = cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues
 * 
 * _dict_cudaJitOption = dict(((int(v), v) for k, v in cudaJitOption.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaLibraryOption(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaJitOption); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_858genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaJitOption, __pyx_t_18) < (0)) __PYX_ERR(0, 3527, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3529
 * _dict_cudaJitOption = dict(((int(v), v) for k, v in cudaJitOption.__members__.items()))
 * 
 * class cudaLibraryOption(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Library options to be specified with
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaLibraryOption, __pyx_mstate_global->__pyx_n_u_cudaLibraryOption, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Library_options_to_be_specified); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3529, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3535
 *     :py:obj:`~.cudaLibraryLoadFromFile()`
 *     """
 *     cudaLibraryHostUniversalFunctionAndDataTable = cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable             # <<<<<<<<<<<<<<
 * 
 *     #: Specifes that the argument `code` passed to
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLibraryOption(cudaLibraryHostUniversalFunctionAndDataTable); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLibraryHostUniversalFunction, __pyx_t_19) < (0)) __PYX_ERR(0, 3535, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3546
 *     #: :py:obj:`~.cudaLibraryLoadFromFile()` is invalid and will return
 *     #: :py:obj:`~.cudaErrorInvalidValue`.
 *     cudaLibraryBinaryIsPreserved = cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaLibraryOption = dict(((int(v), v) for k, v in cudaLibraryOption.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLibraryOption(cudaLibraryBinaryIsPreserved); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLibraryBinaryIsPreserved, __pyx_t_19) < (0)) __PYX_ERR(0, 3546, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3529
 * _dict_cudaJitOption = dict(((int(v), v) for k, v in cudaJitOption.__members__.items()))
 * 
 * class cudaLibraryOption(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Library options to be specified with
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLibraryOption, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryOption, __pyx_t_19) < (0)) __PYX_ERR(0, 3529, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3548
 *     cudaLibraryBinaryIsPreserved = cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved
 * 
 * _dict_cudaLibraryOption = dict(((int(v), v) for k, v in cudaLibraryOption.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJit_CacheMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaLibraryOption); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_861genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaLibraryOption, __pyx_t_4) < (0)) __PYX_ERR(0, 3548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3550
 * _dict_cudaLibraryOption = dict(((int(v), v) for k, v in cudaLibraryOption.__members__.items()))
 * 
 * class cudaJit_CacheMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Caching modes for dlcm
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJit_CacheMode, __pyx_mstate_global->__pyx_n_u_cudaJit_CacheMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Caching_modes_for_dlcm); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3550, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3556
 * 
 *     #: Compile with no -dlcm flag specified
 *     cudaJitCacheOptionNone = cyruntime.cudaJit_CacheMode.cudaJitCacheOptionNone             # <<<<<<<<<<<<<<
 * 
 *     #: Compile with L1 cache disabled
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaJit_CacheMode(cudaJitCacheOptionNone); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaJitCacheOptionNone, __pyx_t_18) < (0)) __PYX_ERR(0, 3556, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3559
 * 
 *     #: Compile with L1 cache disabled
 *     cudaJitCacheOptionCG = cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCG             # <<<<<<<<<<<<<<
 * 
 *     #: Compile with L1 cache enabled
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaJit_CacheMode(cudaJitCacheOptionCG); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaJitCacheOptionCG, __pyx_t_18) < (0)) __PYX_ERR(0, 3559, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3562
 * 
 *     #: Compile with L1 cache enabled
 *     cudaJitCacheOptionCA = cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCA             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaJit_CacheMode = dict(((int(v), v) for k, v in cudaJit_CacheMode.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaJit_CacheMode(cudaJitCacheOptionCA); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaJitCacheOptionCA, __pyx_t_18) < (0)) __PYX_ERR(0, 3562, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3550
 * _dict_cudaLibraryOption = dict(((int(v), v) for k, v in cudaLibraryOption.__members__.items()))
 * 
 * class cudaJit_CacheMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Caching modes for dlcm
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaJit_CacheMode, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaJit_CacheMode, __pyx_t_18) < (0)) __PYX_ERR(0, 3550, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3564
 *     cudaJitCacheOptionCA = cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCA
 * 
 * _dict_cudaJit_CacheMode = dict(((int(v), v) for k, v in cudaJit_CacheMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaJit_Fallback(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaJit_CacheMode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_864genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaJit_CacheMode, __pyx_t_20) < (0)) __PYX_ERR(0, 3564, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3566
 * _dict_cudaJit_CacheMode = dict(((int(v), v) for k, v in cudaJit_CacheMode.__members__.items()))
 * 
 * class cudaJit_Fallback(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Cubin matching fallback strategies
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaJit_Fallback, __pyx_mstate_global->__pyx_n_u_cudaJit_Fallback, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Cubin_matching_fallback_strateg); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3566, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3572
 * 
 *     #: Prefer to compile ptx if exact binary match not found
 *     cudaPreferPtx = cyruntime.cudaJit_Fallback.cudaPreferPtx             # <<<<<<<<<<<<<<
 * 
 *     #: Prefer to fall back to compatible binary code if exact match not
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaJit_Fallback(cudaPreferPtx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaPreferPtx, __pyx_t_4) < (0)) __PYX_ERR(0, 3572, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3576
 *     #: Prefer to fall back to compatible binary code if exact match not
 *     #: found
 *     cudaPreferBinary = cyruntime.cudaJit_Fallback.cudaPreferBinary             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaJit_Fallback = dict(((int(v), v) for k, v in cudaJit_Fallback.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaJit_Fallback(cudaPreferBinary); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3576, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaPreferBinary, __pyx_t_4) < (0)) __PYX_ERR(0, 3576, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3566
 * _dict_cudaJit_CacheMode = dict(((int(v), v) for k, v in cudaJit_CacheMode.__members__.items()))
 * 
 * class cudaJit_Fallback(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Cubin matching fallback strategies
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaJit_Fallback, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaJit_Fallback, __pyx_t_4) < (0)) __PYX_ERR(0, 3566, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3578
 *     cudaPreferBinary = cyruntime.cudaJit_Fallback.cudaPreferBinary
 * 
 * _dict_cudaJit_Fallback = dict(((int(v), v) for k, v in cudaJit_Fallback.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaCGScope(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaJit_Fallback); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_867genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaJit_Fallback, __pyx_t_19) < (0)) __PYX_ERR(0, 3578, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3580
 * _dict_cudaJit_Fallback = dict(((int(v), v) for k, v in cudaJit_Fallback.__members__.items()))
 * 
 * class cudaCGScope(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA cooperative group scope
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaCGScope, __pyx_mstate_global->__pyx_n_u_cudaCGScope, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_cooperative_group_scope); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3580, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3586
 * 
 *     #: Invalid cooperative group scope
 *     cudaCGScopeInvalid = cyruntime.cudaCGScope.cudaCGScopeInvalid             # <<<<<<<<<<<<<<
 * 
 *     #: Scope represented by a grid_group
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaCGScope(cudaCGScopeInvalid); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaCGScopeInvalid, __pyx_t_20) < (0)) __PYX_ERR(0, 3586, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3589
 * 
 *     #: Scope represented by a grid_group
 *     cudaCGScopeGrid = cyruntime.cudaCGScope.cudaCGScopeGrid             # <<<<<<<<<<<<<<
 * 
 *     #: Reserved
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaCGScope(cudaCGScopeGrid); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaCGScopeGrid, __pyx_t_20) < (0)) __PYX_ERR(0, 3589, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3592
 * 
 *     #: Reserved
 *     cudaCGScopeReserved = cyruntime.cudaCGScope.cudaCGScopeReserved             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaCGScope = dict(((int(v), v) for k, v in cudaCGScope.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaCGScope(cudaCGScopeReserved); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaCGScopeReserved, __pyx_t_20) < (0)) __PYX_ERR(0, 3592, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3580
 * _dict_cudaJit_Fallback = dict(((int(v), v) for k, v in cudaJit_Fallback.__members__.items()))
 * 
 * class cudaCGScope(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA cooperative group scope
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaCGScope, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaCGScope, __pyx_t_20) < (0)) __PYX_ERR(0, 3580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3594
 *     cudaCGScopeReserved = cyruntime.cudaCGScope.cudaCGScopeReserved
 * 
 * _dict_cudaCGScope = dict(((int(v), v) for k, v in cudaCGScope.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphConditionalHandleFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaCGScope); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_870genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaCGScope, __pyx_t_18) < (0)) __PYX_ERR(0, 3594, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3596
 * _dict_cudaCGScope = dict(((int(v), v) for k, v in cudaCGScope.__members__.items()))
 * 
 * class cudaGraphConditionalHandleFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleFlags, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u__8); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3596, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3602
 * 
 *     #: Apply default handle value when graph is launched.
 *     cudaGraphCondAssignDefault = cyruntime.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphConditionalHandleFlags = dict(((int(v), v) for k, v in cudaGraphConditionalHandleFlags.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphConditionalHandleFlags(cudaGraphCondAssignDefault); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphCondAssignDefault, __pyx_t_19) < (0)) __PYX_ERR(0, 3602, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3596
 * _dict_cudaCGScope = dict(((int(v), v) for k, v in cudaCGScope.__members__.items()))
 * 
 * class cudaGraphConditionalHandleFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 * 
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleFlags, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleFlags, __pyx_t_19) < (0)) __PYX_ERR(0, 3596, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3604
 *     cudaGraphCondAssignDefault = cyruntime.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault
 * 
 * _dict_cudaGraphConditionalHandleFlags = dict(((int(v), v) for k, v in cudaGraphConditionalHandleFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphConditionalNodeType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleFlags); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_873genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphConditionalHandle, __pyx_t_4) < (0)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3606
 * _dict_cudaGraphConditionalHandleFlags = dict(((int(v), v) for k, v in cudaGraphConditionalHandleFlags.__members__.items()))
 * 
 * class cudaGraphConditionalNodeType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA conditional node types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalNodeType, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalNodeType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_conditional_node_types); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3606, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3614
 *     #: zero. If `size` == 2, an optional ELSE graph is created and this is
 *     #: executed if the condition is zero.
 *     cudaGraphCondTypeIf = cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeIf             # <<<<<<<<<<<<<<
 * 
 *     #: Conditional 'while' Node. Body executed repeatedly while condition
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphConditionalNodeType(cudaGraphCondTypeIf); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphCondTypeIf, __pyx_t_18) < (0)) __PYX_ERR(0, 3614, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3618
 *     #: Conditional 'while' Node. Body executed repeatedly while condition
 *     #: value is non-zero.
 *     cudaGraphCondTypeWhile = cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeWhile             # <<<<<<<<<<<<<<
 * 
 *     #: Conditional 'switch' Node. Body[n] is executed once, where 'n' is
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphConditionalNodeType(cudaGraphCondTypeWhile); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphCondTypeWhile, __pyx_t_18) < (0)) __PYX_ERR(0, 3618, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3623
 *     #: the value of the condition. If the condition does not match a body
 *     #: index, no body is launched.
 *     cudaGraphCondTypeSwitch = cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeSwitch             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphConditionalNodeType = dict(((int(v), v) for k, v in cudaGraphConditionalNodeType.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphConditionalNodeType(cudaGraphCondTypeSwitch); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphCondTypeSwitch, __pyx_t_18) < (0)) __PYX_ERR(0, 3623, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3606
 * _dict_cudaGraphConditionalHandleFlags = dict(((int(v), v) for k, v in cudaGraphConditionalHandleFlags.__members__.items()))
 * 
 * class cudaGraphConditionalNodeType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA conditional node types
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalNodeType, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalNodeType, __pyx_t_18) < (0)) __PYX_ERR(0, 3606, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3625
 *     cudaGraphCondTypeSwitch = cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeSwitch
 * 
 * _dict_cudaGraphConditionalNodeType = dict(((int(v), v) for k, v in cudaGraphConditionalNodeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphNodeType(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalNodeType); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_876genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphConditionalNodeTy, __pyx_t_20) < (0)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3627
 * _dict_cudaGraphConditionalNodeType = dict(((int(v), v) for k, v in cudaGraphConditionalNodeType.__members__.items()))
 * 
 * class cudaGraphNodeType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Graph node types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeType, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeType, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_Graph_node_types); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3627, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3633
 * 
 *     #: GPU kernel node
 *     cudaGraphNodeTypeKernel = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeKernel             # <<<<<<<<<<<<<<
 * 
 *     #: Memcpy node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeKernel); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeKernel, __pyx_t_4) < (0)) __PYX_ERR(0, 3633, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3636
 * 
 *     #: Memcpy node
 *     cudaGraphNodeTypeMemcpy = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemcpy             # <<<<<<<<<<<<<<
 * 
 *     #: Memset node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeMemcpy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeMemcpy, __pyx_t_4) < (0)) __PYX_ERR(0, 3636, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3639
 * 
 *     #: Memset node
 *     cudaGraphNodeTypeMemset = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemset             # <<<<<<<<<<<<<<
 * 
 *     #: Host (executable) node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeMemset); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeMemset, __pyx_t_4) < (0)) __PYX_ERR(0, 3639, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3642
 * 
 *     #: Host (executable) node
 *     cudaGraphNodeTypeHost = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeHost             # <<<<<<<<<<<<<<
 * 
 *     #: Node which executes an embedded graph
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeHost); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeHost, __pyx_t_4) < (0)) __PYX_ERR(0, 3642, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3645
 * 
 *     #: Node which executes an embedded graph
 *     cudaGraphNodeTypeGraph = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeGraph             # <<<<<<<<<<<<<<
 * 
 *     #: Empty (no-op) node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeGraph); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 3645, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3648
 * 
 *     #: Empty (no-op) node
 *     cudaGraphNodeTypeEmpty = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeEmpty             # <<<<<<<<<<<<<<
 * 
 *     #: External event wait node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeEmpty); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeEmpty, __pyx_t_4) < (0)) __PYX_ERR(0, 3648, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3651
 * 
 *     #: External event wait node
 *     cudaGraphNodeTypeWaitEvent = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeWaitEvent             # <<<<<<<<<<<<<<
 * 
 *     #: External event record node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeWaitEvent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3651, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeWaitEvent, __pyx_t_4) < (0)) __PYX_ERR(0, 3651, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3654
 * 
 *     #: External event record node
 *     cudaGraphNodeTypeEventRecord = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeEventRecord             # <<<<<<<<<<<<<<
 * 
 *     #: External semaphore signal node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeEventRecord); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeEventRecord, __pyx_t_4) < (0)) __PYX_ERR(0, 3654, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3657
 * 
 *     #: External semaphore signal node
 *     cudaGraphNodeTypeExtSemaphoreSignal = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeExtSemaphoreSignal             # <<<<<<<<<<<<<<
 * 
 *     #: External semaphore wait node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeExtSemaphoreSignal); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeExtSemaphoreSig, __pyx_t_4) < (0)) __PYX_ERR(0, 3657, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3660
 * 
 *     #: External semaphore wait node
 *     cudaGraphNodeTypeExtSemaphoreWait = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeExtSemaphoreWait             # <<<<<<<<<<<<<<
 * 
 *     #: Memory allocation node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeExtSemaphoreWait); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeExtSemaphoreWai, __pyx_t_4) < (0)) __PYX_ERR(0, 3660, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3663
 * 
 *     #: Memory allocation node
 *     cudaGraphNodeTypeMemAlloc = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemAlloc             # <<<<<<<<<<<<<<
 * 
 *     #: Memory free node
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeMemAlloc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeMemAlloc, __pyx_t_4) < (0)) __PYX_ERR(0, 3663, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3666
 * 
 *     #: Memory free node
 *     cudaGraphNodeTypeMemFree = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemFree             # <<<<<<<<<<<<<<
 * 
 *     #: Conditional node                                    May be used to
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeMemFree); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeMemFree, __pyx_t_4) < (0)) __PYX_ERR(0, 3666, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3693
 *     #:                                    call
 *     #: :py:obj:`~.cudaGraphSetConditional` from device code.
 *     cudaGraphNodeTypeConditional = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeConditional             # <<<<<<<<<<<<<<
 *     cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeConditional); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeConditional, __pyx_t_4) < (0)) __PYX_ERR(0, 3693, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3694
 *     #: :py:obj:`~.cudaGraphSetConditional` from device code.
 *     cudaGraphNodeTypeConditional = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeConditional
 *     cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphNodeType = dict(((int(v), v) for k, v in cudaGraphNodeType.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGraphNodeType(cudaGraphNodeTypeCount); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeTypeCount, __pyx_t_4) < (0)) __PYX_ERR(0, 3694, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3627
 * _dict_cudaGraphConditionalNodeType = dict(((int(v), v) for k, v in cudaGraphConditionalNodeType.__members__.items()))
 * 
 * class cudaGraphNodeType(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Graph node types
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeType, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeType, __pyx_t_4) < (0)) __PYX_ERR(0, 3627, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3696
 *     cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount
 * 
 * _dict_cudaGraphNodeType = dict(((int(v), v) for k, v in cudaGraphNodeType.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphChildGraphNodeOwnership(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_879genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphNodeType, __pyx_t_19) < (0)) __PYX_ERR(0, 3696, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3698
 * _dict_cudaGraphNodeType = dict(((int(v), v) for k, v in cudaGraphNodeType.__members__.items()))
 * 
 * class cudaGraphChildGraphNodeOwnership(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Child graph node ownership
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphNodeOwnership, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphNodeOwnership, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Child_graph_node_ownership); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3698, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3706
 *     #: the parent and memory allocation/free nodes can't be present in the
 *     #: child graph.
 *     cudaGraphChildGraphOwnershipClone = cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipClone             # <<<<<<<<<<<<<<
 * 
 *     #: The child graph is moved to the parent. The handle to the child
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphChildGraphNodeOwnership(cudaGraphChildGraphOwnershipClone); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphOwnershipClon, __pyx_t_20) < (0)) __PYX_ERR(0, 3706, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3717
 *     #: be used as an argument to cudaGraphExecUpdate; Cannot have
 *     #: additional memory allocation or free nodes added.
 *     cudaGraphChildGraphOwnershipMove = cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipMove             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphChildGraphNodeOwnership = dict(((int(v), v) for k, v in cudaGraphChildGraphNodeOwnership.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaGraphChildGraphNodeOwnership(cudaGraphChildGraphOwnershipMove); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphOwnershipMove, __pyx_t_20) < (0)) __PYX_ERR(0, 3717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3698
 * _dict_cudaGraphNodeType = dict(((int(v), v) for k, v in cudaGraphNodeType.__members__.items()))
 * 
 * class cudaGraphChildGraphNodeOwnership(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Child graph node ownership
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphNodeOwnership, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphNodeOwnership, __pyx_t_20) < (0)) __PYX_ERR(0, 3698, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3719
 *     cudaGraphChildGraphOwnershipMove = cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipMove
 * 
 * _dict_cudaGraphChildGraphNodeOwnership = dict(((int(v), v) for k, v in cudaGraphChildGraphNodeOwnership.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphExecUpdateResult(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphNodeOwnership); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_882genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphChildGraphNodeOwn, __pyx_t_18) < (0)) __PYX_ERR(0, 3719, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3721
 * _dict_cudaGraphChildGraphNodeOwnership = dict(((int(v), v) for k, v in cudaGraphChildGraphNodeOwnership.__members__.items()))
 * 
 * class cudaGraphExecUpdateResult(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Graph Update error types
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResult, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResult, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_Graph_Update_error_types); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3721, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3727
 * 
 *     #: The update succeeded
 *     cudaGraphExecUpdateSuccess = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateSuccess             # <<<<<<<<<<<<<<
 * 
 *     #: The update failed for an unexpected reason which is described in the
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateSuccess); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateSuccess, __pyx_t_19) < (0)) __PYX_ERR(0, 3727, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3731
 *     #: The update failed for an unexpected reason which is described in the
 *     #: return value of the function
 *     cudaGraphExecUpdateError = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateError             # <<<<<<<<<<<<<<
 * 
 *     #: The update failed because the topology changed
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateError); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3731, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateError, __pyx_t_19) < (0)) __PYX_ERR(0, 3731, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3734
 * 
 *     #: The update failed because the topology changed
 *     cudaGraphExecUpdateErrorTopologyChanged = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorTopologyChanged             # <<<<<<<<<<<<<<
 * 
 *     #: The update failed because a node type changed
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorTopologyChanged); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateErrorTopology, __pyx_t_19) < (0)) __PYX_ERR(0, 3734, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3737
 * 
 *     #: The update failed because a node type changed
 *     cudaGraphExecUpdateErrorNodeTypeChanged = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorNodeTypeChanged             # <<<<<<<<<<<<<<
 * 
 *     #: The update failed because the function of a kernel node changed
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorNodeTypeChanged); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3737, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateErrorNodeType, __pyx_t_19) < (0)) __PYX_ERR(0, 3737, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3741
 *     #: The update failed because the function of a kernel node changed
 *     #: (CUDA driver < 11.2)
 *     cudaGraphExecUpdateErrorFunctionChanged = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorFunctionChanged             # <<<<<<<<<<<<<<
 * 
 *     #: The update failed because the parameters changed in a way that is
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorFunctionChanged); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateErrorFunction, __pyx_t_19) < (0)) __PYX_ERR(0, 3741, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3745
 *     #: The update failed because the parameters changed in a way that is
 *     #: not supported
 *     cudaGraphExecUpdateErrorParametersChanged = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorParametersChanged             # <<<<<<<<<<<<<<
 * 
 *     #: The update failed because something about the node is not supported
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorParametersChanged); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateErrorParamete, __pyx_t_19) < (0)) __PYX_ERR(0, 3745, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3748
 * 
 *     #: The update failed because something about the node is not supported
 *     cudaGraphExecUpdateErrorNotSupported = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorNotSupported             # <<<<<<<<<<<<<<
 * 
 *     #: The update failed because the function of a kernel node changed in
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorNotSupported); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateErrorNotSuppo, __pyx_t_19) < (0)) __PYX_ERR(0, 3748, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3752
 *     #: The update failed because the function of a kernel node changed in
 *     #: an unsupported way
 *     cudaGraphExecUpdateErrorUnsupportedFunctionChange = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorUnsupportedFunctionChange             # <<<<<<<<<<<<<<
 * 
 *     #: The update failed because the node attributes changed in a way that
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorUnsupportedFunctionChange); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateErrorUnsuppor, __pyx_t_19) < (0)) __PYX_ERR(0, 3752, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3756
 *     #: The update failed because the node attributes changed in a way that
 *     #: is not supported
 *     cudaGraphExecUpdateErrorAttributesChanged = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphExecUpdateResult = dict(((int(v), v) for k, v in cudaGraphExecUpdateResult.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(cudaGraphExecUpdateErrorAttributesChanged); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateErrorAttribut, __pyx_t_19) < (0)) __PYX_ERR(0, 3756, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3721
 * _dict_cudaGraphChildGraphNodeOwnership = dict(((int(v), v) for k, v in cudaGraphChildGraphNodeOwnership.__members__.items()))
 * 
 * class cudaGraphExecUpdateResult(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Graph Update error types
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResult, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResult, __pyx_t_19) < (0)) __PYX_ERR(0, 3721, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3758
 *     cudaGraphExecUpdateErrorAttributesChanged = cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged
 * 
 * _dict_cudaGraphExecUpdateResult = dict(((int(v), v) for k, v in cudaGraphExecUpdateResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphKernelNodeField(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResult); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_885genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphExecUpdateResult, __pyx_t_4) < (0)) __PYX_ERR(0, 3758, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3760
 * _dict_cudaGraphExecUpdateResult = dict(((int(v), v) for k, v in cudaGraphExecUpdateResult.__members__.items()))
 * 
 * class cudaGraphKernelNodeField(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the field to update when performing multiple node updates
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeField, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeField, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Specifies_the_field_to_update_w); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3760, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3767
 * 
 *     #: Invalid field
 *     cudaGraphKernelNodeFieldInvalid = cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldInvalid             # <<<<<<<<<<<<<<
 * 
 *     #: Grid dimension update
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphKernelNodeField(cudaGraphKernelNodeFieldInvalid); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeFieldInvalid, __pyx_t_18) < (0)) __PYX_ERR(0, 3767, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3770
 * 
 *     #: Grid dimension update
 *     cudaGraphKernelNodeFieldGridDim = cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldGridDim             # <<<<<<<<<<<<<<
 * 
 *     #: Kernel parameter update
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphKernelNodeField(cudaGraphKernelNodeFieldGridDim); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeFieldGridDim, __pyx_t_18) < (0)) __PYX_ERR(0, 3770, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3773
 * 
 *     #: Kernel parameter update
 *     cudaGraphKernelNodeFieldParam = cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldParam             # <<<<<<<<<<<<<<
 * 
 *     #: Node enable/disable
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphKernelNodeField(cudaGraphKernelNodeFieldParam); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeFieldParam, __pyx_t_18) < (0)) __PYX_ERR(0, 3773, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3776
 * 
 *     #: Node enable/disable
 *     cudaGraphKernelNodeFieldEnabled = cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphKernelNodeField = dict(((int(v), v) for k, v in cudaGraphKernelNodeField.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphKernelNodeField(cudaGraphKernelNodeFieldEnabled); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeFieldEnabled, __pyx_t_18) < (0)) __PYX_ERR(0, 3776, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3760
 * _dict_cudaGraphExecUpdateResult = dict(((int(v), v) for k, v in cudaGraphExecUpdateResult.__members__.items()))
 * 
 * class cudaGraphKernelNodeField(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Specifies the field to update when performing multiple node updates
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeField, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeField, __pyx_t_18) < (0)) __PYX_ERR(0, 3760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3778
 *     cudaGraphKernelNodeFieldEnabled = cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled
 * 
 * _dict_cudaGraphKernelNodeField = dict(((int(v), v) for k, v in cudaGraphKernelNodeField.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGetDriverEntryPointFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeField); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_888genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphKernelNodeField, __pyx_t_20) < (0)) __PYX_ERR(0, 3778, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3780
 * _dict_cudaGraphKernelNodeField = dict(((int(v), v) for k, v in cudaGraphKernelNodeField.__members__.items()))
 * 
 * class cudaGetDriverEntryPointFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags to specify search options to be used with
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPointFlags, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPointFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Flags_to_specify_search_options); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3780, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3788
 * 
 *     #: Default search mode for driver symbols.
 *     cudaEnableDefault = cyruntime.cudaGetDriverEntryPointFlags.cudaEnableDefault             # <<<<<<<<<<<<<<
 * 
 *     #: Search for legacy versions of driver symbols.
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGetDriverEntryPointFlags(cudaEnableDefault); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3788, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaEnableDefault, __pyx_t_4) < (0)) __PYX_ERR(0, 3788, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3791
 * 
 *     #: Search for legacy versions of driver symbols.
 *     cudaEnableLegacyStream = cyruntime.cudaGetDriverEntryPointFlags.cudaEnableLegacyStream             # <<<<<<<<<<<<<<
 * 
 *     #: Search for per-thread versions of driver symbols.
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGetDriverEntryPointFlags(cudaEnableLegacyStream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaEnableLegacyStream, __pyx_t_4) < (0)) __PYX_ERR(0, 3791, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3794
 * 
 *     #: Search for per-thread versions of driver symbols.
 *     cudaEnablePerThreadDefaultStream = cyruntime.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGetDriverEntryPointFlags = dict(((int(v), v) for k, v in cudaGetDriverEntryPointFlags.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaGetDriverEntryPointFlags(cudaEnablePerThreadDefaultStream); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaEnablePerThreadDefaultStream, __pyx_t_4) < (0)) __PYX_ERR(0, 3794, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3780
 * _dict_cudaGraphKernelNodeField = dict(((int(v), v) for k, v in cudaGraphKernelNodeField.__members__.items()))
 * 
 * class cudaGetDriverEntryPointFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags to specify search options to be used with
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPointFlags, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPointFlags, __pyx_t_4) < (0)) __PYX_ERR(0, 3780, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3796
 *     cudaEnablePerThreadDefaultStream = cyruntime.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream
 * 
 * _dict_cudaGetDriverEntryPointFlags = dict(((int(v), v) for k, v in cudaGetDriverEntryPointFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDriverEntryPointQueryResult(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPointFlags); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_891genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGetDriverEntryPointFla, __pyx_t_19) < (0)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3798
 * _dict_cudaGetDriverEntryPointFlags = dict(((int(v), v) for k, v in cudaGetDriverEntryPointFlags.__members__.items()))
 * 
 * class cudaDriverEntryPointQueryResult(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Enum for status from obtaining driver entry points, used with
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointQueryResult, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointQueryResult, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Enum_for_status_from_obtaining); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3798, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3805
 * 
 *     #: Search for symbol found a match
 *     cudaDriverEntryPointSuccess = cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointSuccess             # <<<<<<<<<<<<<<
 * 
 *     #: Search for symbol was not found
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaDriverEntryPointQueryResult(cudaDriverEntryPointSuccess); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointSuccess, __pyx_t_20) < (0)) __PYX_ERR(0, 3805, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3808
 * 
 *     #: Search for symbol was not found
 *     cudaDriverEntryPointSymbolNotFound = cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointSymbolNotFound             # <<<<<<<<<<<<<<
 * 
 *     #: Search for symbol was found but version wasn't great enough
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaDriverEntryPointQueryResult(cudaDriverEntryPointSymbolNotFound); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointSymbolNotFou, __pyx_t_20) < (0)) __PYX_ERR(0, 3808, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3811
 * 
 *     #: Search for symbol was found but version wasn't great enough
 *     cudaDriverEntryPointVersionNotSufficent = cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDriverEntryPointQueryResult = dict(((int(v), v) for k, v in cudaDriverEntryPointQueryResult.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaDriverEntryPointQueryResult(cudaDriverEntryPointVersionNotSufficent); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointVersionNotSu, __pyx_t_20) < (0)) __PYX_ERR(0, 3811, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3798
 * _dict_cudaGetDriverEntryPointFlags = dict(((int(v), v) for k, v in cudaGetDriverEntryPointFlags.__members__.items()))
 * 
 * class cudaDriverEntryPointQueryResult(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Enum for status from obtaining driver entry points, used with
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointQueryResult, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointQueryResult, __pyx_t_20) < (0)) __PYX_ERR(0, 3798, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3813
 *     cudaDriverEntryPointVersionNotSufficent = cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent
 * 
 * _dict_cudaDriverEntryPointQueryResult = dict(((int(v), v) for k, v in cudaDriverEntryPointQueryResult.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphDebugDotFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDriverEntryPointQueryResult); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_894genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDriverEntryPointQueryR, __pyx_t_18) < (0)) __PYX_ERR(0, 3813, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3815
 * _dict_cudaDriverEntryPointQueryResult = dict(((int(v), v) for k, v in cudaDriverEntryPointQueryResult.__members__.items()))
 * 
 * class cudaGraphDebugDotFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Graph debug write options
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlags, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_Graph_debug_write_options); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3815, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3821
 * 
 *     #: Output all debug data as if every debug flag is enabled
 *     cudaGraphDebugDotFlagsVerbose = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsVerbose             # <<<<<<<<<<<<<<
 * 
 *     #: Adds :py:obj:`~.cudaKernelNodeParams` to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsVerbose); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsVerbose, __pyx_t_19) < (0)) __PYX_ERR(0, 3821, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3824
 * 
 *     #: Adds :py:obj:`~.cudaKernelNodeParams` to output
 *     cudaGraphDebugDotFlagsKernelNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsKernelNodeParams             # <<<<<<<<<<<<<<
 * 
 *     #: Adds :py:obj:`~.cudaMemcpy3DParms` to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsKernelNodeParams); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsKernelNode, __pyx_t_19) < (0)) __PYX_ERR(0, 3824, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3827
 * 
 *     #: Adds :py:obj:`~.cudaMemcpy3DParms` to output
 *     cudaGraphDebugDotFlagsMemcpyNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsMemcpyNodeParams             # <<<<<<<<<<<<<<
 * 
 *     #: Adds :py:obj:`~.cudaMemsetParams` to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsMemcpyNodeParams); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsMemcpyNode, __pyx_t_19) < (0)) __PYX_ERR(0, 3827, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3830
 * 
 *     #: Adds :py:obj:`~.cudaMemsetParams` to output
 *     cudaGraphDebugDotFlagsMemsetNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsMemsetNodeParams             # <<<<<<<<<<<<<<
 * 
 *     #: Adds :py:obj:`~.cudaHostNodeParams` to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsMemsetNodeParams); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsMemsetNode, __pyx_t_19) < (0)) __PYX_ERR(0, 3830, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3833
 * 
 *     #: Adds :py:obj:`~.cudaHostNodeParams` to output
 *     cudaGraphDebugDotFlagsHostNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsHostNodeParams             # <<<<<<<<<<<<<<
 * 
 *     #: Adds cudaEvent_t handle from record and wait nodes to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsHostNodeParams); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsHostNodePa, __pyx_t_19) < (0)) __PYX_ERR(0, 3833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3836
 * 
 *     #: Adds cudaEvent_t handle from record and wait nodes to output
 *     cudaGraphDebugDotFlagsEventNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsEventNodeParams             # <<<<<<<<<<<<<<
 * 
 *     #: Adds :py:obj:`~.cudaExternalSemaphoreSignalNodeParams` values to
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsEventNodeParams); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsEventNodeP, __pyx_t_19) < (0)) __PYX_ERR(0, 3836, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3840
 *     #: Adds :py:obj:`~.cudaExternalSemaphoreSignalNodeParams` values to
 *     #: output
 *     cudaGraphDebugDotFlagsExtSemasSignalNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasSignalNodeParams             # <<<<<<<<<<<<<<
 * 
 *     #: Adds :py:obj:`~.cudaExternalSemaphoreWaitNodeParams` to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsExtSemasSignalNodeParams); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsExtSemasSi, __pyx_t_19) < (0)) __PYX_ERR(0, 3840, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3843
 * 
 *     #: Adds :py:obj:`~.cudaExternalSemaphoreWaitNodeParams` to output
 *     cudaGraphDebugDotFlagsExtSemasWaitNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasWaitNodeParams             # <<<<<<<<<<<<<<
 * 
 *     #: Adds cudaKernelNodeAttrID values to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsExtSemasWaitNodeParams); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsExtSemasWa, __pyx_t_19) < (0)) __PYX_ERR(0, 3843, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3846
 * 
 *     #: Adds cudaKernelNodeAttrID values to output
 *     cudaGraphDebugDotFlagsKernelNodeAttributes = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsKernelNodeAttributes             # <<<<<<<<<<<<<<
 * 
 *     #: Adds node handles and every kernel function handle to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsKernelNodeAttributes); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsKernelNode_2, __pyx_t_19) < (0)) __PYX_ERR(0, 3846, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3849
 * 
 *     #: Adds node handles and every kernel function handle to output
 *     cudaGraphDebugDotFlagsHandles = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsHandles             # <<<<<<<<<<<<<<
 * 
 *     #: Adds :py:obj:`~.cudaConditionalNodeParams` to output
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsHandles); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3849, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsHandles, __pyx_t_19) < (0)) __PYX_ERR(0, 3849, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3852
 * 
 *     #: Adds :py:obj:`~.cudaConditionalNodeParams` to output
 *     cudaGraphDebugDotFlagsConditionalNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphDebugDotFlags = dict(((int(v), v) for k, v in cudaGraphDebugDotFlags.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(cudaGraphDebugDotFlagsConditionalNodeParams); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3852, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlagsConditiona, __pyx_t_19) < (0)) __PYX_ERR(0, 3852, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3815
 * _dict_cudaDriverEntryPointQueryResult = dict(((int(v), v) for k, v in cudaDriverEntryPointQueryResult.__members__.items()))
 * 
 * class cudaGraphDebugDotFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Graph debug write options
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlags, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlags, __pyx_t_19) < (0)) __PYX_ERR(0, 3815, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3854
 *     cudaGraphDebugDotFlagsConditionalNodeParams = cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams
 * 
 * _dict_cudaGraphDebugDotFlags = dict(((int(v), v) for k, v in cudaGraphDebugDotFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGraphInstantiateFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotFlags); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_897genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphDebugDotFlags, __pyx_t_4) < (0)) __PYX_ERR(0, 3854, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3856
 * _dict_cudaGraphDebugDotFlags = dict(((int(v), v) for k, v in cudaGraphDebugDotFlags.__members__.items()))
 * 
 * class cudaGraphInstantiateFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for instantiating a graph
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlags, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Flags_for_instantiating_a_graph); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3856, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3862
 * 
 *     #: Automatically free memory allocated in a graph before relaunching.
 *     cudaGraphInstantiateFlagAutoFreeOnLaunch = cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagAutoFreeOnLaunch             # <<<<<<<<<<<<<<
 * 
 *     #: Automatically upload the graph after instantiation. Only supported
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphInstantiateFlags(cudaGraphInstantiateFlagAutoFreeOnLaunch); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlagAutoFree, __pyx_t_18) < (0)) __PYX_ERR(0, 3862, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3869
 *     #: performed using the
 *     #:  stream provided in `instantiateParams`.
 *     cudaGraphInstantiateFlagUpload = cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUpload             # <<<<<<<<<<<<<<
 * 
 *     #: Instantiate the graph to be launchable from the device. This flag
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphInstantiateFlags(cudaGraphInstantiateFlagUpload); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlagUpload, __pyx_t_18) < (0)) __PYX_ERR(0, 3869, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3876
 *     #: cannot be
 *     #:  used in conjunction with cudaGraphInstantiateFlagAutoFreeOnLaunch.
 *     cudaGraphInstantiateFlagDeviceLaunch = cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagDeviceLaunch             # <<<<<<<<<<<<<<
 * 
 *     #: Run the graph using the per-node priority attributes rather than the
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphInstantiateFlags(cudaGraphInstantiateFlagDeviceLaunch); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlagDeviceLa, __pyx_t_18) < (0)) __PYX_ERR(0, 3876, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3880
 *     #: Run the graph using the per-node priority attributes rather than the
 *     #: priority of the stream it is launched into.
 *     cudaGraphInstantiateFlagUseNodePriority = cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGraphInstantiateFlags = dict(((int(v), v) for k, v in cudaGraphInstantiateFlags.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaGraphInstantiateFlags(cudaGraphInstantiateFlagUseNodePriority); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlagUseNodeP, __pyx_t_18) < (0)) __PYX_ERR(0, 3880, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3856
 * _dict_cudaGraphDebugDotFlags = dict(((int(v), v) for k, v in cudaGraphDebugDotFlags.__members__.items()))
 * 
 * class cudaGraphInstantiateFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Flags for instantiating a graph
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlags, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 3856, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3882
 *     cudaGraphInstantiateFlagUseNodePriority = cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority
 * 
 * _dict_cudaGraphInstantiateFlags = dict(((int(v), v) for k, v in cudaGraphInstantiateFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaDeviceNumaConfig(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateFlags); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_900genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGraphInstantiateFlags, __pyx_t_20) < (0)) __PYX_ERR(0, 3882, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3884
 * _dict_cudaGraphInstantiateFlags = dict(((int(v), v) for k, v in cudaGraphInstantiateFlags.__members__.items()))
 * 
 * class cudaDeviceNumaConfig(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device NUMA config
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDeviceNumaConfig, __pyx_mstate_global->__pyx_n_u_cudaDeviceNumaConfig, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_device_NUMA_config); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3884, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3890
 * 
 *     #: The GPU is not a NUMA node
 *     cudaDeviceNumaConfigNone = cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNone             # <<<<<<<<<<<<<<
 * 
 *     #: The GPU is a NUMA node, cudaDevAttrNumaId contains its NUMA ID
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDeviceNumaConfig(cudaDeviceNumaConfigNone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDeviceNumaConfigNone, __pyx_t_4) < (0)) __PYX_ERR(0, 3890, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3893
 * 
 *     #: The GPU is a NUMA node, cudaDevAttrNumaId contains its NUMA ID
 *     cudaDeviceNumaConfigNumaNode = cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaDeviceNumaConfig = dict(((int(v), v) for k, v in cudaDeviceNumaConfig.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaDeviceNumaConfig(cudaDeviceNumaConfigNumaNode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaDeviceNumaConfigNumaNode, __pyx_t_4) < (0)) __PYX_ERR(0, 3893, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3884
 * _dict_cudaGraphInstantiateFlags = dict(((int(v), v) for k, v in cudaGraphInstantiateFlags.__members__.items()))
 * 
 * class cudaDeviceNumaConfig(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA device NUMA config
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaDeviceNumaConfig, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceNumaConfig, __pyx_t_4) < (0)) __PYX_ERR(0, 3884, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3895
 *     cudaDeviceNumaConfigNumaNode = cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode
 * 
 * _dict_cudaDeviceNumaConfig = dict(((int(v), v) for k, v in cudaDeviceNumaConfig.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSurfaceBoundaryMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaDeviceNumaConfig); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_903genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaDeviceNumaConfig, __pyx_t_19) < (0)) __PYX_ERR(0, 3895, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3897
 * _dict_cudaDeviceNumaConfig = dict(((int(v), v) for k, v in cudaDeviceNumaConfig.__members__.items()))
 * 
 * class cudaSurfaceBoundaryMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Surface boundary modes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaSurfaceBoundaryMode, __pyx_mstate_global->__pyx_n_u_cudaSurfaceBoundaryMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_Surface_boundary_modes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3897, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3903
 * 
 *     #: Zero boundary mode
 *     cudaBoundaryModeZero = cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeZero             # <<<<<<<<<<<<<<
 * 
 *     #: Clamp boundary mode
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaSurfaceBoundaryMode(cudaBoundaryModeZero); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaBoundaryModeZero, __pyx_t_20) < (0)) __PYX_ERR(0, 3903, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3906
 * 
 *     #: Clamp boundary mode
 *     cudaBoundaryModeClamp = cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeClamp             # <<<<<<<<<<<<<<
 * 
 *     #: Trap boundary mode
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaSurfaceBoundaryMode(cudaBoundaryModeClamp); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3906, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaBoundaryModeClamp, __pyx_t_20) < (0)) __PYX_ERR(0, 3906, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3909
 * 
 *     #: Trap boundary mode
 *     cudaBoundaryModeTrap = cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaSurfaceBoundaryMode = dict(((int(v), v) for k, v in cudaSurfaceBoundaryMode.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaSurfaceBoundaryMode(cudaBoundaryModeTrap); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaBoundaryModeTrap, __pyx_t_20) < (0)) __PYX_ERR(0, 3909, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3897
 * _dict_cudaDeviceNumaConfig = dict(((int(v), v) for k, v in cudaDeviceNumaConfig.__members__.items()))
 * 
 * class cudaSurfaceBoundaryMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Surface boundary modes
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSurfaceBoundaryMode, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceBoundaryMode, __pyx_t_20) < (0)) __PYX_ERR(0, 3897, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3911
 *     cudaBoundaryModeTrap = cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap
 * 
 * _dict_cudaSurfaceBoundaryMode = dict(((int(v), v) for k, v in cudaSurfaceBoundaryMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaSurfaceFormatMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaSurfaceBoundaryMode); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_906genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaSurfaceBoundaryMode, __pyx_t_18) < (0)) __PYX_ERR(0, 3911, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3913
 * _dict_cudaSurfaceBoundaryMode = dict(((int(v), v) for k, v in cudaSurfaceBoundaryMode.__members__.items()))
 * 
 * class cudaSurfaceFormatMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Surface format modes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSurfaceFormatMode, __pyx_mstate_global->__pyx_n_u_cudaSurfaceFormatMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_Surface_format_modes); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3913, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3919
 * 
 *     #: Forced format mode
 *     cudaFormatModeForced = cyruntime.cudaSurfaceFormatMode.cudaFormatModeForced             # <<<<<<<<<<<<<<
 * 
 *     #: Auto format mode
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaSurfaceFormatMode(cudaFormatModeForced); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFormatModeForced, __pyx_t_19) < (0)) __PYX_ERR(0, 3919, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3922
 * 
 *     #: Auto format mode
 *     cudaFormatModeAuto = cyruntime.cudaSurfaceFormatMode.cudaFormatModeAuto             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaSurfaceFormatMode = dict(((int(v), v) for k, v in cudaSurfaceFormatMode.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaSurfaceFormatMode(cudaFormatModeAuto); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaFormatModeAuto, __pyx_t_19) < (0)) __PYX_ERR(0, 3922, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3913
 * _dict_cudaSurfaceBoundaryMode = dict(((int(v), v) for k, v in cudaSurfaceBoundaryMode.__members__.items()))
 * 
 * class cudaSurfaceFormatMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA Surface format modes
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaSurfaceFormatMode, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSurfaceFormatMode, __pyx_t_19) < (0)) __PYX_ERR(0, 3913, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3924
 *     cudaFormatModeAuto = cyruntime.cudaSurfaceFormatMode.cudaFormatModeAuto
 * 
 * _dict_cudaSurfaceFormatMode = dict(((int(v), v) for k, v in cudaSurfaceFormatMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureAddressMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaSurfaceFormatMode); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_909genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaSurfaceFormatMode, __pyx_t_4) < (0)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3926
 * _dict_cudaSurfaceFormatMode = dict(((int(v), v) for k, v in cudaSurfaceFormatMode.__members__.items()))
 * 
 * class cudaTextureAddressMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture address modes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaTextureAddressMode, __pyx_mstate_global->__pyx_n_u_cudaTextureAddressMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_texture_address_modes); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3926, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3932
 * 
 *     #: Wrapping address mode
 *     cudaAddressModeWrap = cyruntime.cudaTextureAddressMode.cudaAddressModeWrap             # <<<<<<<<<<<<<<
 * 
 *     #: Clamp to edge address mode
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaTextureAddressMode(cudaAddressModeWrap); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAddressModeWrap, __pyx_t_18) < (0)) __PYX_ERR(0, 3932, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3935
 * 
 *     #: Clamp to edge address mode
 *     cudaAddressModeClamp = cyruntime.cudaTextureAddressMode.cudaAddressModeClamp             # <<<<<<<<<<<<<<
 * 
 *     #: Mirror address mode
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaTextureAddressMode(cudaAddressModeClamp); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAddressModeClamp, __pyx_t_18) < (0)) __PYX_ERR(0, 3935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3938
 * 
 *     #: Mirror address mode
 *     cudaAddressModeMirror = cyruntime.cudaTextureAddressMode.cudaAddressModeMirror             # <<<<<<<<<<<<<<
 * 
 *     #: Border address mode
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaTextureAddressMode(cudaAddressModeMirror); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAddressModeMirror, __pyx_t_18) < (0)) __PYX_ERR(0, 3938, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3941
 * 
 *     #: Border address mode
 *     cudaAddressModeBorder = cyruntime.cudaTextureAddressMode.cudaAddressModeBorder             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaTextureAddressMode = dict(((int(v), v) for k, v in cudaTextureAddressMode.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum__cudaTextureAddressMode(cudaAddressModeBorder); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaAddressModeBorder, __pyx_t_18) < (0)) __PYX_ERR(0, 3941, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3926
 * _dict_cudaSurfaceFormatMode = dict(((int(v), v) for k, v in cudaSurfaceFormatMode.__members__.items()))
 * 
 * class cudaTextureAddressMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture address modes
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaTextureAddressMode, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureAddressMode, __pyx_t_18) < (0)) __PYX_ERR(0, 3926, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3943
 *     cudaAddressModeBorder = cyruntime.cudaTextureAddressMode.cudaAddressModeBorder
 * 
 * _dict_cudaTextureAddressMode = dict(((int(v), v) for k, v in cudaTextureAddressMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureFilterMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaTextureAddressMode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_912genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureAddressMode, __pyx_t_20) < (0)) __PYX_ERR(0, 3943, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3945
 * _dict_cudaTextureAddressMode = dict(((int(v), v) for k, v in cudaTextureAddressMode.__members__.items()))
 * 
 * class cudaTextureFilterMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture filter modes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaTextureFilterMode, __pyx_mstate_global->__pyx_n_u_cudaTextureFilterMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_texture_filter_modes); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3945, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3951
 * 
 *     #: Point filter mode
 *     cudaFilterModePoint = cyruntime.cudaTextureFilterMode.cudaFilterModePoint             # <<<<<<<<<<<<<<
 * 
 *     #: Linear filter mode
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaTextureFilterMode(cudaFilterModePoint); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFilterModePoint, __pyx_t_4) < (0)) __PYX_ERR(0, 3951, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3954
 * 
 *     #: Linear filter mode
 *     cudaFilterModeLinear = cyruntime.cudaTextureFilterMode.cudaFilterModeLinear             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaTextureFilterMode = dict(((int(v), v) for k, v in cudaTextureFilterMode.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum__cudaTextureFilterMode(cudaFilterModeLinear); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaFilterModeLinear, __pyx_t_4) < (0)) __PYX_ERR(0, 3954, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3945
 * _dict_cudaTextureAddressMode = dict(((int(v), v) for k, v in cudaTextureAddressMode.__members__.items()))
 * 
 * class cudaTextureFilterMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture filter modes
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaTextureFilterMode, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureFilterMode, __pyx_t_4) < (0)) __PYX_ERR(0, 3945, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3956
 *     cudaFilterModeLinear = cyruntime.cudaTextureFilterMode.cudaFilterModeLinear
 * 
 * _dict_cudaTextureFilterMode = dict(((int(v), v) for k, v in cudaTextureFilterMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaTextureReadMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaTextureFilterMode); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_915genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureFilterMode, __pyx_t_19) < (0)) __PYX_ERR(0, 3956, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3958
 * _dict_cudaTextureFilterMode = dict(((int(v), v) for k, v in cudaTextureFilterMode.__members__.items()))
 * 
 * class cudaTextureReadMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture read modes
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaTextureReadMode, __pyx_mstate_global->__pyx_n_u_cudaTextureReadMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_texture_read_modes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 3958, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3964
 * 
 *     #: Read texture as specified element type
 *     cudaReadModeElementType = cyruntime.cudaTextureReadMode.cudaReadModeElementType             # <<<<<<<<<<<<<<
 * 
 *     #: Read texture as normalized float
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaTextureReadMode(cudaReadModeElementType); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaReadModeElementType, __pyx_t_20) < (0)) __PYX_ERR(0, 3964, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3967
 * 
 *     #: Read texture as normalized float
 *     cudaReadModeNormalizedFloat = cyruntime.cudaTextureReadMode.cudaReadModeNormalizedFloat             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaTextureReadMode = dict(((int(v), v) for k, v in cudaTextureReadMode.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaTextureReadMode(cudaReadModeNormalizedFloat); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaReadModeNormalizedFloat, __pyx_t_20) < (0)) __PYX_ERR(0, 3967, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3958
 * _dict_cudaTextureFilterMode = dict(((int(v), v) for k, v in cudaTextureFilterMode.__members__.items()))
 * 
 * class cudaTextureReadMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA texture read modes
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaTextureReadMode, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaTextureReadMode, __pyx_t_20) < (0)) __PYX_ERR(0, 3958, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3969
 *     cudaReadModeNormalizedFloat = cyruntime.cudaTextureReadMode.cudaReadModeNormalizedFloat
 * 
 * _dict_cudaTextureReadMode = dict(((int(v), v) for k, v in cudaTextureReadMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaRoundMode(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaTextureReadMode); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_918genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaTextureReadMode, __pyx_t_18) < (0)) __PYX_ERR(0, 3969, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3971
 * _dict_cudaTextureReadMode = dict(((int(v), v) for k, v in cudaTextureReadMode.__members__.items()))
 * 
 * class cudaRoundMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaRoundMode, __pyx_mstate_global->__pyx_n_u_cudaRoundMode, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, (PyObject *) NULL); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 3971, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3973
 * class cudaRoundMode(IntEnum):
 *     """"""
 *     cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest             # <<<<<<<<<<<<<<
 *     cudaRoundZero = cyruntime.cudaRoundMode.cudaRoundZero
 *     cudaRoundPosInf = cyruntime.cudaRoundMode.cudaRoundPosInf
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaRoundMode(cudaRoundNearest); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaRoundNearest, __pyx_t_19) < (0)) __PYX_ERR(0, 3973, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3974
 *     """"""
 *     cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest
 *     cudaRoundZero = cyruntime.cudaRoundMode.cudaRoundZero             # <<<<<<<<<<<<<<
 *     cudaRoundPosInf = cyruntime.cudaRoundMode.cudaRoundPosInf
 *     cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaRoundMode(cudaRoundZero); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaRoundZero, __pyx_t_19) < (0)) __PYX_ERR(0, 3974, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3975
 *     cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest
 *     cudaRoundZero = cyruntime.cudaRoundMode.cudaRoundZero
 *     cudaRoundPosInf = cyruntime.cudaRoundMode.cudaRoundPosInf             # <<<<<<<<<<<<<<
 *     cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf
 * 
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaRoundMode(cudaRoundPosInf); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaRoundPosInf, __pyx_t_19) < (0)) __PYX_ERR(0, 3975, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3976
 *     cudaRoundZero = cyruntime.cudaRoundMode.cudaRoundZero
 *     cudaRoundPosInf = cyruntime.cudaRoundMode.cudaRoundPosInf
 *     cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaRoundMode = dict(((int(v), v) for k, v in cudaRoundMode.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaRoundMode(cudaRoundMinInf); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaRoundMinInf, __pyx_t_19) < (0)) __PYX_ERR(0, 3976, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":3971
 * _dict_cudaTextureReadMode = dict(((int(v), v) for k, v in cudaTextureReadMode.__members__.items()))
 * 
 * class cudaRoundMode(IntEnum):             # <<<<<<<<<<<<<<
 *     """"""
 *     cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaRoundMode, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaRoundMode, __pyx_t_19) < (0)) __PYX_ERR(0, 3971, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3978
 *     cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf
 * 
 * _dict_cudaRoundMode = dict(((int(v), v) for k, v in cudaRoundMode.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGLDeviceList(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaRoundMode); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_921genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaRoundMode, __pyx_t_4) < (0)) __PYX_ERR(0, 3978, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3980
 * _dict_cudaRoundMode = dict(((int(v), v) for k, v in cudaRoundMode.__members__.items()))
 * 
 * class cudaGLDeviceList(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA devices corresponding to the current OpenGL context
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_18 = PyTuple_Pack(1, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PEP560_update_bases(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_20, __pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceList, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceList, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_devices_corresponding_to_t); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_4 != __pyx_t_18) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_18) < 0))) __PYX_ERR(0, 3980, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3986
 * 
 *     #: The CUDA devices for all GPUs used by the current OpenGL context
 *     cudaGLDeviceListAll = cyruntime.cudaGLDeviceList.cudaGLDeviceListAll             # <<<<<<<<<<<<<<
 * 
 *     #: The CUDA devices for the GPUs used by the current OpenGL context in
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(__pyx_e_4cuda_8bindings_9cyruntime_cudaGLDeviceListAll); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceListAll, __pyx_t_18) < (0)) __PYX_ERR(0, 3986, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3990
 *     #: The CUDA devices for the GPUs used by the current OpenGL context in
 *     #: its currently rendering frame
 *     cudaGLDeviceListCurrentFrame = cyruntime.cudaGLDeviceList.cudaGLDeviceListCurrentFrame             # <<<<<<<<<<<<<<
 * 
 *     #: The CUDA devices for the GPUs to be used by the current OpenGL
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(__pyx_e_4cuda_8bindings_9cyruntime_cudaGLDeviceListCurrentFrame); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3990, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceListCurrentFrame, __pyx_t_18) < (0)) __PYX_ERR(0, 3990, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3994
 *     #: The CUDA devices for the GPUs to be used by the current OpenGL
 *     #: context in the next frame
 *     cudaGLDeviceListNextFrame = cyruntime.cudaGLDeviceList.cudaGLDeviceListNextFrame             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGLDeviceList = dict(((int(v), v) for k, v in cudaGLDeviceList.__members__.items()))
*/
  __pyx_t_18 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(__pyx_e_4cuda_8bindings_9cyruntime_cudaGLDeviceListNextFrame); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceListNextFrame, __pyx_t_18) < (0)) __PYX_ERR(0, 3994, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":3980
 * _dict_cudaRoundMode = dict(((int(v), v) for k, v in cudaRoundMode.__members__.items()))
 * 
 * class cudaGLDeviceList(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA devices corresponding to the current OpenGL context
*/
  __pyx_t_18 = __Pyx_Py3ClassCreate(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceList, __pyx_t_4, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceList, __pyx_t_18) < (0)) __PYX_ERR(0, 3980, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3996
 *     cudaGLDeviceListNextFrame = cyruntime.cudaGLDeviceList.cudaGLDeviceListNextFrame
 * 
 * _dict_cudaGLDeviceList = dict(((int(v), v) for k, v in cudaGLDeviceList.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaGLMapFlags(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceList); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __pyx_pf_4cuda_8bindings_7runtime_924genexpr(NULL, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_Generator_GetInlinedResult(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGLDeviceList, __pyx_t_20) < (0)) __PYX_ERR(0, 3996, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":3998
 * _dict_cudaGLDeviceList = dict(((int(v), v) for k, v in cudaGLDeviceList.__members__.items()))
 * 
 * class cudaGLMapFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GL Map Flags
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_20); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 3998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 3998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGLMapFlags, __pyx_mstate_global->__pyx_n_u_cudaGLMapFlags, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_CUDA_GL_Map_Flags); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 3998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (__pyx_t_20 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_18, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(0, 3998, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4004
 * 
 *     #: Default; Assume resource can be read/written
 *     cudaGLMapFlagsNone = cyruntime.cudaGLMapFlags.cudaGLMapFlagsNone             # <<<<<<<<<<<<<<
 * 
 *     #: CUDA kernels will not write to this resource
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags(__pyx_e_4cuda_8bindings_9cyruntime_cudaGLMapFlagsNone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4004, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGLMapFlagsNone, __pyx_t_4) < (0)) __PYX_ERR(0, 4004, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4007
 * 
 *     #: CUDA kernels will not write to this resource
 *     cudaGLMapFlagsReadOnly = cyruntime.cudaGLMapFlags.cudaGLMapFlagsReadOnly             # <<<<<<<<<<<<<<
 * 
 *     #: CUDA kernels will only write to and will not read from this resource
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags(__pyx_e_4cuda_8bindings_9cyruntime_cudaGLMapFlagsReadOnly); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGLMapFlagsReadOnly, __pyx_t_4) < (0)) __PYX_ERR(0, 4007, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4010
 * 
 *     #: CUDA kernels will only write to and will not read from this resource
 *     cudaGLMapFlagsWriteDiscard = cyruntime.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaGLMapFlags = dict(((int(v), v) for k, v in cudaGLMapFlags.__members__.items()))
*/
  __pyx_t_4 = __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags(__pyx_e_4cuda_8bindings_9cyruntime_cudaGLMapFlagsWriteDiscard); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__Pyx_SetNameInClass(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaGLMapFlagsWriteDiscard, __pyx_t_4) < (0)) __PYX_ERR(0, 4010, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":3998
 * _dict_cudaGLDeviceList = dict(((int(v), v) for k, v in cudaGLDeviceList.__members__.items()))
 * 
 * class cudaGLMapFlags(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     CUDA GL Map Flags
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaGLMapFlags, __pyx_t_20, __pyx_t_18, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGLMapFlags, __pyx_t_4) < (0)) __PYX_ERR(0, 3998, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4012
 *     cudaGLMapFlagsWriteDiscard = cyruntime.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard
 * 
 * _dict_cudaGLMapFlags = dict(((int(v), v) for k, v in cudaGLMapFlags.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaStreamAttrID(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaGLMapFlags); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_20 = __pyx_pf_4cuda_8bindings_7runtime_927genexpr(NULL, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Generator_GetInlinedResult(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaGLMapFlags, __pyx_t_19) < (0)) __PYX_ERR(0, 4012, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4014
 * _dict_cudaGLMapFlags = dict(((int(v), v) for k, v in cudaGLMapFlags.__members__.items()))
 * 
 * class cudaStreamAttrID(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes enum; used as id field of
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_20 = PyTuple_Pack(1, __pyx_t_19); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_PEP560_update_bases(__pyx_t_20); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_CalculateMetaclass(NULL, __pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_18, __pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaStreamAttrID, __pyx_mstate_global->__pyx_n_u_cudaStreamAttrID, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Launch_attributes_enum_used_as); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_t_19 != __pyx_t_20) {
    if (unlikely((PyDict_SetItemString(__pyx_t_4, "__orig_bases__", __pyx_t_20) < 0))) __PYX_ERR(0, 4014, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4021
 * 
 *     #: Ignored entry, for convenient composition
 *     cudaLaunchAttributeIgnore = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeIgnore); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeIgnore, __pyx_t_20) < (0)) __PYX_ERR(0, 4021, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4025
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.
 *     cudaLaunchAttributeAccessPolicyWindow = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeAccessPolicyW, __pyx_t_20) < (0)) __PYX_ERR(0, 4025, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4029
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.cooperative`.
 *     cudaLaunchAttributeCooperative = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams. See
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeCooperative); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4029, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeCooperative, __pyx_t_20) < (0)) __PYX_ERR(0, 4029, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4033
 *     #: Valid for streams. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.
 *     cudaLaunchAttributeSynchronizationPolicy = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeSynchronizationPolicy); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeSynchronizati, __pyx_t_20) < (0)) __PYX_ERR(0, 4033, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4037
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.clusterDim`.
 *     cudaLaunchAttributeClusterDimension = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterDimension); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeClusterDimens, __pyx_t_20) < (0)) __PYX_ERR(0, 4037, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4041
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.
 *     cudaLaunchAttributeClusterSchedulingPolicyPreference = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Setting
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeClusterSchedu, __pyx_t_20) < (0)) __PYX_ERR(0, 4041, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4052
 *     #: the programmatic sync (cudaGridDependencySynchronize() or equivalent
 *     #: PTX instructions).
 *     cudaLaunchAttributeProgrammaticStreamSerialization = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Set
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticStreamSerialization); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeProgrammaticS, __pyx_t_20) < (0)) __PYX_ERR(0, 4052, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4074
 *     #: The event must disable timing (i.e. must be created with the
 *     #: :py:obj:`~.cudaEventDisableTiming` flag set).
 *     cudaLaunchAttributeProgrammaticEvent = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticEvent); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4074, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeProgrammaticE, __pyx_t_20) < (0)) __PYX_ERR(0, 4074, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4078
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.priority`.
 *     cudaLaunchAttributePriority = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePriority); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePriority, __pyx_t_20) < (0)) __PYX_ERR(0, 4078, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4082
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.
 *     cudaLaunchAttributeMemSyncDomainMap = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeMemSyncDomain, __pyx_t_20) < (0)) __PYX_ERR(0, 4082, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4086
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.
 *     cudaLaunchAttributeMemSyncDomain = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes and launches. Set
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomain); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeMemSyncDomain_2, __pyx_t_20) < (0)) __PYX_ERR(0, 4086, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4120
 *     #: value physically unable to fit on any particular device is
 *     #: permitted.
 *     cudaLaunchAttributePreferredClusterDimension = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Set
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredClusterDimension); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4120, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePreferredClus, __pyx_t_20) < (0)) __PYX_ERR(0, 4120, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4140
 *     #: The event must disable timing (i.e. must be created with the
 *     #: :py:obj:`~.cudaEventDisableTiming` flag set).
 *     cudaLaunchAttributeLaunchCompletionEvent = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. This attribute is graphs-only, and
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeLaunchCompletionEvent); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeLaunchComplet, __pyx_t_20) < (0)) __PYX_ERR(0, 4140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4173
 *     #: updatable nodes, the graph must be uploaded before it is launched
 *     #: again.
 *     cudaLaunchAttributeDeviceUpdatableKernelNode = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. On devices where the L1 cache and shared memory
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeDeviceUpdatableKernelNode); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeDeviceUpdatab, __pyx_t_20) < (0)) __PYX_ERR(0, 4173, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4184
 *     #: only a hint, and the driver can choose a different configuration if
 *     #: required for the launch.
 *     cudaLaunchAttributePreferredSharedMemoryCarveout = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. This attribute is a hint
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePreferredShar, __pyx_t_20) < (0)) __PYX_ERR(0, 4184, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4206
 *     #: :py:obj:`~.cudaLaunchAttributeValue.nvlinkUtilCentricScheduling` are
 *     #: 0 (disabled) and 1 (enabled).
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))
*/
  __pyx_t_20 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeNvlinkUtilCentricScheduling); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeNvlinkUtilCen, __pyx_t_20) < (0)) __PYX_ERR(0, 4206, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cuda/bindings/runtime.pyx":4014
 * _dict_cudaGLMapFlags = dict(((int(v), v) for k, v in cudaGLMapFlags.__members__.items()))
 * 
 * class cudaStreamAttrID(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes enum; used as id field of
*/
  __pyx_t_20 = __Pyx_Py3ClassCreate(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaStreamAttrID, __pyx_t_19, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_20);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamAttrID, __pyx_t_20) < (0)) __PYX_ERR(0, 4014, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4208
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * class cudaKernelNodeAttrID(IntEnum):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeID); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __pyx_pf_4cuda_8bindings_7runtime_930genexpr(NULL, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_Generator_GetInlinedResult(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaLaunchAttributeID, __pyx_t_18) < (0)) __PYX_ERR(0, 4208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":4210
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))
 * 
 * class cudaKernelNodeAttrID(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes enum; used as id field of
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_IntEnum); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_CalculateMetaclass(NULL, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_20 = __Pyx_Py3MetaclassPrepare(__pyx_t_4, __pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttrID, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttrID, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_kp_u_Launch_attributes_enum_used_as); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 4210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  if (__pyx_t_18 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_20, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(0, 4210, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4217
 * 
 *     #: Ignored entry, for convenient composition
 *     cudaLaunchAttributeIgnore = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeIgnore); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeIgnore, __pyx_t_19) < (0)) __PYX_ERR(0, 4217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4221
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.
 *     cudaLaunchAttributeAccessPolicyWindow = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeAccessPolicyWindow); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeAccessPolicyW, __pyx_t_19) < (0)) __PYX_ERR(0, 4221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4225
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.cooperative`.
 *     cudaLaunchAttributeCooperative = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams. See
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeCooperative); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeCooperative, __pyx_t_19) < (0)) __PYX_ERR(0, 4225, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4229
 *     #: Valid for streams. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.
 *     cudaLaunchAttributeSynchronizationPolicy = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeSynchronizationPolicy); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeSynchronizati, __pyx_t_19) < (0)) __PYX_ERR(0, 4229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4233
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.clusterDim`.
 *     cudaLaunchAttributeClusterDimension = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. See
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterDimension); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeClusterDimens, __pyx_t_19) < (0)) __PYX_ERR(0, 4233, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4237
 *     #: Valid for graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.
 *     cudaLaunchAttributeClusterSchedulingPolicyPreference = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Setting
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeClusterSchedulingPolicyPreference); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeClusterSchedu, __pyx_t_19) < (0)) __PYX_ERR(0, 4237, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4248
 *     #: the programmatic sync (cudaGridDependencySynchronize() or equivalent
 *     #: PTX instructions).
 *     cudaLaunchAttributeProgrammaticStreamSerialization = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Set
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticStreamSerialization); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeProgrammaticS, __pyx_t_19) < (0)) __PYX_ERR(0, 4248, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4270
 *     #: The event must disable timing (i.e. must be created with the
 *     #: :py:obj:`~.cudaEventDisableTiming` flag set).
 *     cudaLaunchAttributeProgrammaticEvent = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeProgrammaticEvent); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeProgrammaticE, __pyx_t_19) < (0)) __PYX_ERR(0, 4270, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4274
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.priority`.
 *     cudaLaunchAttributePriority = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePriority); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePriority, __pyx_t_19) < (0)) __PYX_ERR(0, 4274, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4278
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.
 *     cudaLaunchAttributeMemSyncDomainMap = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. See
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomainMap); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeMemSyncDomain, __pyx_t_19) < (0)) __PYX_ERR(0, 4278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4282
 *     #: Valid for streams, graph nodes, launches. See
 *     #: :py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.
 *     cudaLaunchAttributeMemSyncDomain = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes and launches. Set
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeMemSyncDomain); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeMemSyncDomain_2, __pyx_t_19) < (0)) __PYX_ERR(0, 4282, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4316
 *     #: value physically unable to fit on any particular device is
 *     #: permitted.
 *     cudaLaunchAttributePreferredClusterDimension = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. Set
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredClusterDimension); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePreferredClus, __pyx_t_19) < (0)) __PYX_ERR(0, 4316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4336
 *     #: The event must disable timing (i.e. must be created with the
 *     #: :py:obj:`~.cudaEventDisableTiming` flag set).
 *     cudaLaunchAttributeLaunchCompletionEvent = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for graph nodes, launches. This attribute is graphs-only, and
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeLaunchCompletionEvent); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeLaunchComplet, __pyx_t_19) < (0)) __PYX_ERR(0, 4336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4369
 *     #: updatable nodes, the graph must be uploaded before it is launched
 *     #: again.
 *     cudaLaunchAttributeDeviceUpdatableKernelNode = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for launches. On devices where the L1 cache and shared memory
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeDeviceUpdatableKernelNode); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeDeviceUpdatab, __pyx_t_19) < (0)) __PYX_ERR(0, 4369, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4380
 *     #: only a hint, and the driver can choose a different configuration if
 *     #: required for the launch.
 *     cudaLaunchAttributePreferredSharedMemoryCarveout = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout             # <<<<<<<<<<<<<<
 * 
 *     #: Valid for streams, graph nodes, launches. This attribute is a hint
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributePreferredSharedMemoryCarveout); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributePreferredShar, __pyx_t_19) < (0)) __PYX_ERR(0, 4380, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4402
 *     #: :py:obj:`~.cudaLaunchAttributeValue.nvlinkUtilCentricScheduling` are
 *     #: 0 (disabled) and 1 (enabled).
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling             # <<<<<<<<<<<<<<
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))
*/
  __pyx_t_19 = __Pyx_PyLong_From_enum__cudaLaunchAttributeID(cudaLaunchAttributeNvlinkUtilCentricScheduling); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__Pyx_SetNameInClass(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeNvlinkUtilCen, __pyx_t_19) < (0)) __PYX_ERR(0, 4402, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cuda/bindings/runtime.pyx":4210
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))
 * 
 * class cudaKernelNodeAttrID(IntEnum):             # <<<<<<<<<<<<<<
 *     """
 *     Launch attributes enum; used as id field of
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttrID, __pyx_t_18, __pyx_t_20, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 4210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttrID, __pyx_t_19) < (0)) __PYX_ERR(0, 4210, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":4404
 *     cudaLaunchAttributeNvlinkUtilCentricScheduling = cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling
 * 
 * _dict_cudaLaunchAttributeID = dict(((int(v), v) for k, v in cudaLaunchAttributeID.__members__.items()))             # <<<<<<<<<<<<<<
 * 
 * cdef class cudaDevResourceDesc_t:
*/
  __Pyx_GetModuleGlobalName(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeID); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_members); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __pyx_pf_4cuda_8bindings_7runtime_933genexpr(NULL, __pyx_t_4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 4404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_Generator_GetInlinedResult(__pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_dict_cudaLaunchAttributeID, __pyx_t_4) < (0)) __PYX_ERR(0, 4404, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4437
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevResourceDesc_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[198])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResourceDesc_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevResourceDesc_t___reduce_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[199])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaDevResourceDesc_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevResourceDesc_t___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[200])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4471
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaExecutionContext_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExecutionContext_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[201])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExecutionContext_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4471, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaExecutionContext_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExecutionContext_t___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[202])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaExecutionContext_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExecutionContext_t___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[203])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4505
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11cudaArray_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArray_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[204])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11cudaArray_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArray_t___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[205])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11cudaArray_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArray_t___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[206])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4539
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaArray_const_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArray_const_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[207])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArray_const_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4539, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaArray_const_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArray_const_t___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[208])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaArray_const_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArray_const_t___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[209])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4573
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArray_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[210])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4573, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArray_t___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[211])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMipmappedArray_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArray_t___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[212])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4607
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArray_const_t_getPt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[213])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMipmappedArray_const_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArray_const_t___red, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[214])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26cudaMipmappedArray_const_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArray_const_t___set, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[215])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4641
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResource_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[216])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphicsResource_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4641, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResource_t___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[217])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaGraphicsResource_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResource_t___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[218])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4675
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaExternalMemory_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemory_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[219])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemory_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4675, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaExternalMemory_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemory_t___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[220])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaExternalMemory_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemory_t___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[221])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4709
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphore_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[222])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphore_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4709, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphore_t___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[223])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_23cudaExternalSemaphore_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphore_t___setsta, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[224])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4743
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaKernel_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernel_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[225])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernel_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4743, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaKernel_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernel_t___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[226])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaKernel_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernel_t___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[227])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4777
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13cudaLibrary_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLibrary_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[228])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLibrary_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13cudaLibrary_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLibrary_t___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[229])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13cudaLibrary_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLibrary_t___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[230])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4811
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphDeviceNode_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[231])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphDeviceNode_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4811, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphDeviceNode_t___reduce_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[232])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaGraphDeviceNode_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphDeviceNode_t___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[233])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4845
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncCallbackHandle_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[234])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallbackHandle_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4845, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncCallbackHandle_t___redu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[235])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncCallbackHandle_t_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncCallbackHandle_t___sets, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[236])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4877
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogsCallbackHandle_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[237])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallbackHandle, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4877, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogsCallbackHandle___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[238])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaLogsCallbackHandle_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogsCallbackHandle___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[239])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4909
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11EGLImageKHR_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLImageKHR_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[240])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLImageKHR, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4909, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11EGLImageKHR_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLImageKHR___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[241])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11EGLImageKHR_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLImageKHR___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[242])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4941
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12EGLStreamKHR_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLStreamKHR_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[243])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLStreamKHR, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4941, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12EGLStreamKHR_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLStreamKHR___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[244])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12EGLStreamKHR_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLStreamKHR___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[245])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4973
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_10EGLSyncKHR_15getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLSyncKHR_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[246])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLSyncKHR, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4973, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_10EGLSyncKHR_17__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLSyncKHR___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[247])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_10EGLSyncKHR_19__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLSyncKHR___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[248])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":4999
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaHostFn_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostFn_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[249])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostFn_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 4999, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaHostFn_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostFn_t___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[250])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaHostFn_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostFn_t___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[251])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5025
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaAsyncCallback_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncCallback_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[252])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncCallback, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5025, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaAsyncCallback_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncCallback___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[253])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaAsyncCallback_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncCallback___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[254])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5051
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaStreamCallback_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaStreamCallback_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[255])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaStreamCallback_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5051, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaStreamCallback_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaStreamCallback_t___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[256])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaStreamCallback_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaStreamCallback_t___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[257])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5077
 *     def __int__(self):
 *         return <void_ptr>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaLogsCallback_t_11getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogsCallback_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[258])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogsCallback_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5077, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaLogsCallback_t_13__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogsCallback_t___reduce_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[259])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaLogsCallback_t_15__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogsCallback_t___setstate_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[260])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5105
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_4dim3_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_dim3_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[261])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_dim3, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5105, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_4dim3_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_dim3___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[262])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_4dim3_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_dim3___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[263])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5175
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatDesc_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[264])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChannelFormatDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5175, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatDesc___reduce_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[265])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaChannelFormatDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatDesc___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[266])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5259
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].tileExtent
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct0_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct0_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[267])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct0, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5259, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct0_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct0___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[268])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct0_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct0___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[269])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5330
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaArraySparseProperties_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArraySparseProperties_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[270])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArraySparseProperties, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5330, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaArraySparseProperties_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArraySparseProperties___redu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[271])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaArraySparseProperties_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArraySparseProperties___sets, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[272])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5416
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArrayMemoryRequirements_getP, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[273])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaArrayMemoryRequirements, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5416, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArrayMemoryRequirements___re, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[274])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_27cudaArrayMemoryRequirements_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaArrayMemoryRequirements___se, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[275])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5484
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_14cudaPitchedPtr_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPitchedPtr_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[276])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPitchedPtr, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5484, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_14cudaPitchedPtr_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPitchedPtr___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[277])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_14cudaPitchedPtr_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPitchedPtr___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[278])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5562
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_10cudaExtent_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExtent_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[279])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExtent, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5562, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_10cudaExtent_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExtent___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[280])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_10cudaExtent_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExtent___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[281])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5628
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_7cudaPos_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPos_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[282])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPos, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5628, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_7cudaPos_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPos___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[283])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_7cudaPos_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPos___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[284])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5711
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DParms_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[285])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DParms, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5711, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DParms___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[286])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaMemcpy3DParms_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DParms___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[287])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5852
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpyNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[288])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5852, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5852, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpyNodeParams___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[289])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpyNodeParams___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[290])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":5956
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DPeerParms_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[291])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DPeerParms, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 5956, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DPeerParms___reduce_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[292])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaMemcpy3DPeerParms_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DPeerParms___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[293])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6106
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaMemsetParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemsetParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[294])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6106, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaMemsetParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemsetParams___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[295])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaMemsetParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemsetParams___setstate_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[296])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6213
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemsetParamsV2_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[297])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemsetParamsV2, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6213, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemsetParamsV2___reduce_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[298])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaMemsetParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemsetParamsV2___setstate_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[299])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6344
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAccessPolicyWindow_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[300])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAccessPolicyWindow, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6344, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAccessPolicyWindow___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[301])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaAccessPolicyWindow_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAccessPolicyWindow___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[302])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6434
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaHostNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[303])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaHostNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostNodeParams___reduce_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[304])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaHostNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostNodeParams___setstate_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[305])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6499
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostNodeParamsV2_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[306])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaHostNodeParamsV2, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6499, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostNodeParamsV2___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[307])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaHostNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaHostNodeParamsV2___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[308])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6558
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.array
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct1_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct1_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[309])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct1, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6558, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct1_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct1___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[310])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct1_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct1___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[311])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6606
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.mipmap
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct2_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[312])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct2, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6606, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct2___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[313])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct2___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[314])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6658
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.linear
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct3_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct3_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[315])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6658, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct3, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6658, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct3_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct3___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[316])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct3_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct3___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[317])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6726
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.pitch2D
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct4_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct4_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[318])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct4, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6726, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct4_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct4___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[319])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct4_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct4___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[320])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6805
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res.reserved
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct5_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct5_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[321])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct5, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6805, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct5_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct5___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[322])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct5_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct5___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[323])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6856
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].res
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union0_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union0_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[324])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union0, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6856, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union0_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union0___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[325])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union0_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union0___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[326])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":6945
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaResourceDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaResourceDesc_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[327])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 6945, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaResourceDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaResourceDesc___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[328])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaResourceDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaResourceDesc___setstate_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[329])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7025
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaResourceViewDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaResourceViewDesc_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[330])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaResourceViewDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7025, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaResourceViewDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaResourceViewDesc___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[331])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaResourceViewDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaResourceViewDesc___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[332])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7168
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaPointerAttributes_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPointerAttributes_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[333])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaPointerAttributes, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7168, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaPointerAttributes_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPointerAttributes___reduce_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[334])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaPointerAttributes_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaPointerAttributes___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[335])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7323
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaFuncAttributes_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributes_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[336])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaFuncAttributes, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7323, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaFuncAttributes_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributes___reduce_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[337])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaFuncAttributes_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaFuncAttributes___setstate_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[338])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7530
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaMemLocation_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemLocation_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[339])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemLocation, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7530, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaMemLocation_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemLocation___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[340])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaMemLocation_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemLocation___setstate_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[341])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7587
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaMemAccessDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAccessDesc_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[342])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAccessDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7587, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaMemAccessDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAccessDesc___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[343])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaMemAccessDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAccessDesc___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[344])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7660
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaMemPoolProps_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemPoolProps_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[345])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolProps, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7660, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaMemPoolProps_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemPoolProps___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[346])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16cudaMemPoolProps_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemPoolProps___setstate_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[347])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7770
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemPoolPtrExportData_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[348])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemPoolPtrExportData, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7770, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemPoolPtrExportData___reduc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[349])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaMemPoolPtrExportData_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemPoolPtrExportData___setst, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[350])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7830
 *         if self._accessDescs is not NULL:
 *             free(self._accessDescs)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAllocNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[351])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7830, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAllocNodeParams___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[352])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaMemAllocNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAllocNodeParams___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[353])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":7943
 *         if self._accessDescs is not NULL:
 *             free(self._accessDescs)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAllocNodeParamsV2_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[354])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemAllocNodeParamsV2, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 7943, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAllocNodeParamsV2___reduc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[355])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaMemAllocNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemAllocNodeParamsV2___setst, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[356])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8041
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemFreeNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[357])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFreeNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8041, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemFreeNodeParams___reduce_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[358])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaMemFreeNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemFreeNodeParams___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[359])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8097
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpyAttributes_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[360])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpyAttributes, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8097, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpyAttributes___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[361])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaMemcpyAttributes_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpyAttributes___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[362])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8175
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaOffset3D_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaOffset3D_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[363])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaOffset3D, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8175, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaOffset3D_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaOffset3D___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[364])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12cudaOffset3D_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaOffset3D___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[365])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8240
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op.ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct6_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct6_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[366])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct6, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8240, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct6_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct6___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[367])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct6_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct6___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[368])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8313
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op.array
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct7_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct7_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[369])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct7, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8313, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct7_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct7___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[370])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct7_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct7___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[371])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8374
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].op
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union1_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union1_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[372])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union1, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union1_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union1___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[373])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union1_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union1___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[374])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8431
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperand_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[375])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DOperand, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8431, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperand___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[376])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DOperand_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DOperand___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[377])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8495
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DBatchOp_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[378])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemcpy3DBatchOp, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8495, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DBatchOp___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[379])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaMemcpy3DBatchOp_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DBatchOp___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[380])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8577
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_9CUuuid_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CUuuid_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[381])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_CUuuid_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_9CUuuid_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CUuuid_st___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[382])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_9CUuuid_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CUuuid_st___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[383])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":8824
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_14cudaDeviceProp_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDeviceProp_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[384])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDeviceProp, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 8824, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_14cudaDeviceProp_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDeviceProp___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[385])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_14cudaDeviceProp_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDeviceProp___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[386])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":9798
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaIpcEventHandle_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[387])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcEventHandle_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 9798, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaIpcEventHandle_st___reduce_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[388])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaIpcEventHandle_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaIpcEventHandle_st___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[389])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":9851
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaIpcMemHandle_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[390])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaIpcMemHandle_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 9851, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaIpcMemHandle_st___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[391])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaIpcMemHandle_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaIpcMemHandle_st___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[392])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":9902
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemFabricHandle_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[393])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaMemFabricHandle_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 9902, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemFabricHandle_st___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[394])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaMemFabricHandle_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaMemFabricHandle_st___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[395])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":9953
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct8_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct8_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[396])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 9953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct8, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 9953, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct8_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct8___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[397])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct8_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct8___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[398])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10008
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union2_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[399])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union2, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10008, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union2___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[400])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union2___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[401])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10082
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleDesc_get, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[402])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryHandleDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10082, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleDesc___r, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[403])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryHandleDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryHandleDesc___s, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[404])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10172
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryBufferDesc_get, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[405])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryBufferDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10172, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryBufferDesc___r, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[406])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_28cudaExternalMemoryBufferDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryBufferDesc___s, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[407])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10258
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryMipmappedArray_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[408])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalMemoryMipmappedArrayDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10258, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryMipmappedArray_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[409])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_36cudaExternalMemoryMipmappedArrayDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryMipmappedArray_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[410])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10348
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle.win32
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct9_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct9_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[411])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct9, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10348, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct9_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct9___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[412])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_struct9_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct9___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[413])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10403
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].handle
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union3_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union3_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[414])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union3, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10403, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union3_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union3___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[415])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union3_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union3___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[416])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10475
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleDesc_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[417])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10475, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreHandleDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10475, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleDesc_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[418])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreHandleDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreHandleDesc_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[419])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10545
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct10_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct10_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[420])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct10, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10545, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct10_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct10___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[421])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct10_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct10___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[422])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10585
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union4_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union4_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[423])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union4, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union4_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union4___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[424])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union4_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union4___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[425])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10634
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct11_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct11_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[426])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct11, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10634, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct11_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct11___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[427])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct11_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct11___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[428])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10681
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct12_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct12_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[429])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct12, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10681, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct12_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct12___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[430])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct12_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct12___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[431])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10765
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalParam_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[432])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10765, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10765, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalParam_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[433])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_33cudaExternalSemaphoreSignalParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalParam_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[434])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10823
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.fence
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct13_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct13_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[435])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct13, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10823, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct13_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct13___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[436])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct13_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct13___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[437])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10863
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.nvSciSync
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union5_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union5_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[438])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union5, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10863, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union5_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union5___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[439])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union5_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union5___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[440])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10914
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params.keyedMutex
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct14_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct14_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[441])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct14, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10914, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct14_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct14___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[442])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct14_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct14___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[443])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":10971
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].params
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct15_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct15_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[444])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 10971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct15, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 10971, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct15_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct15___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[445])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct15_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct15___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[446])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11055
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitParams_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[447])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11055, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitParams_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[448])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaExternalSemaphoreWaitParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitParams_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[449])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11129
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaDevSmResource_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevSmResource_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[450])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResource, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11129, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaDevSmResource_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevSmResource___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[451])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaDevSmResource_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevSmResource___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[452])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11205
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigResource_g, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[453])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueConfigResource, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11205, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigResource_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[454])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_30cudaDevWorkqueueConfigResource_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueConfigResource_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[455])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11269
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueResource_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[456])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevWorkqueueResource, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11269, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueResource___reduc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[457])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaDevWorkqueueResource_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevWorkqueueResource___setst, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[458])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11325
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroupParams_st_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[459])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevSmResourceGroupParams_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11325, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroupParams_st_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[460])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaDevSmResourceGroupParams_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceGroupParams_st_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[461])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11441
 *         if self._nextResource is not NULL:
 *             free(self._nextResource)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaDevResource_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevResource_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[462])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11441, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaDevResource_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaDevResource_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevResource_st___reduce_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[463])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_18cudaDevResource_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaDevResource_st___setstate_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[464])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11570
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudalibraryHostUniversalFunction_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[465])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudalibraryHostUniversalFunctionAndDataTable, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11570, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudalibraryHostUniversalFunction_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[466])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_44cudalibraryHostUniversalFunctionAndDataTable_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudalibraryHostUniversalFunction_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[467])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11656
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaKernelNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[468])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11656, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaKernelNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeParams___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[469])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaKernelNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeParams___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[470])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11766
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeParamsV2_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[471])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaKernelNodeParamsV2, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11766, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeParamsV2___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[472])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaKernelNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeParamsV2___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[473])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11888
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalNodeP_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[474])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11888, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalNodeP_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[475])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreSignalNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalNodeP_5, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[476])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":11989
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalNodeP_6, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[477])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 11989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreSignalNodeParamsV2, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 11989, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalNodeP_7, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[478])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_39cudaExternalSemaphoreSignalNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreSignalNodeP_8, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[479])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12090
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitNodePar_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[480])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12090, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitNodePar_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[481])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_35cudaExternalSemaphoreWaitNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitNodePar_5, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[482])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12191
 *         if self._paramsArray is not NULL:
 *             free(self._paramsArray)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitNodePar_6, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[483])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaExternalSemaphoreWaitNodeParamsV2, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12191, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitNodePar_7, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[484])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_37cudaExternalSemaphoreWaitNodeParamsV2_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaExternalSemaphoreWaitNodePar_8, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[485])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12311
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaConditionalNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[486])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaConditionalNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12311, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaConditionalNodeParams___redu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[487])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaConditionalNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaConditionalNodeParams___sets, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[488])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12419
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaChildGraphNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[489])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaChildGraphNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12419, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaChildGraphNodeParams___reduc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[490])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaChildGraphNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaChildGraphNodeParams___setst, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[491])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12483
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEventRecordNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[492])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventRecordNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12483, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEventRecordNodeParams___redu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[493])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaEventRecordNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEventRecordNodeParams___sets, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[494])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12535
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEventWaitNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[495])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEventWaitNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12535, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEventWaitNodeParams___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[496])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_23cudaEventWaitNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEventWaitNodeParams___setsta, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[497])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12630
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaGraphNodeParams_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeParams_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[498])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphNodeParams, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12630, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaGraphNodeParams_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeParams___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[499])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaGraphNodeParams_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeParams___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[500])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12849
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphEdgeData_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[501])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12849, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphEdgeData_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12849, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphEdgeData_st___reduce_cy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[502])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_20cudaGraphEdgeData_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphEdgeData_st___setstate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[503])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":12932
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateParams_st_ge, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[504])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 12932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphInstantiateParams_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 12932, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateParams_st_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[505])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_29cudaGraphInstantiateParams_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateParams_st_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[506])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13033
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResultInfo_st_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[507])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphExecUpdateResultInfo_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13033, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResultInfo_st_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[508])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_32cudaGraphExecUpdateResultInfo_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdateResultInfo_st_4, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[509])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13115
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].updateData.param
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct16_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct16_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[510])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct16, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13115, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct16_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct16___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[511])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct16_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct16___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[512])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13180
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].updateData
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union8_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union8_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[513])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union8, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13180, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union8_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union8___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[514])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union8_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union8___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[515])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13252
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeUpdate_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[516])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphKernelNodeUpdate, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeUpdate___redu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[517])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaGraphKernelNodeUpdate_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeUpdate___sets, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[518])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13333
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomainMap_st_ge, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[519])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchMemSyncDomainMap_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13333, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomainMap_st_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[520])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_29cudaLaunchMemSyncDomainMap_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchMemSyncDomainMap_st_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[521])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13385
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].clusterDim
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct17_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct17_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[522])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct17, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13385, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct17_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct17___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[523])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct17_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct17___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[524])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13448
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].programmaticEvent
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct18_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct18_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[525])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct18, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13448, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct18_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct18___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[526])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct18_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct18___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[527])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13519
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].preferredClusterDim
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct19_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct19_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[528])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct19, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13519, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct19_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct19___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[529])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct19_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct19___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[530])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13580
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].launchCompletionEvent
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct20_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct20_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[531])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct20, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct20_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct20___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[532])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct20_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct20___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[533])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13640
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].deviceUpdatableKernelNode
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct21_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct21_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[534])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct21, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13640, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct21_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct21___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[535])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct21_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct21___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[536])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13780
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeValue_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[537])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttributeValue, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13780, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeValue___reduc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[538])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_24cudaLaunchAttributeValue_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttributeValue___setst, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[539])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":13992
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttribute_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[540])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLaunchAttribute_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 13992, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttribute_st___reduce, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[541])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_22cudaLaunchAttribute_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLaunchAttribute_st___setstat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[542])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14042
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].info.overBudget
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct22_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct22_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[543])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_struct22, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14042, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct22_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct22___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[544])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13anon_struct22_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_struct22___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[545])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14081
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].info
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union9_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union9_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[546])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union9, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14081, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union9_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union9___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[547])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11anon_union9_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union9___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[548])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14129
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationInfo_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[549])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaAsyncNotificationInfo, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14129, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationInfo___redu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[550])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaAsyncNotificationInfo_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaAsyncNotificationInfo___sets, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[551])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14207
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaTextureDesc_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaTextureDesc_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[552])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureDesc, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaTextureDesc_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaTextureDesc___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[553])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaTextureDesc_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaTextureDesc___setstate_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[554])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14389
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEglPlaneDesc_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[555])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglPlaneDesc_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14389, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEglPlaneDesc_st___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[556])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaEglPlaneDesc_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEglPlaneDesc_st___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[557])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14489
 *     def __dealloc__(self):
 *         pass
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>&self._pvt_ptr[0].frame
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_union10_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union10_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[558])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_anon_union10, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14489, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_union10_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union10___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[559])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_12anon_union10_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_anon_union10___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[560])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14571
 *         if self._val_ptr is not NULL:
 *             free(self._val_ptr)
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 *     def __repr__(self):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaEglFrame_st_7getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEglFrame_st_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[561])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaEglFrame_st, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14571, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaEglFrame_st_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEglFrame_st___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[562])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaEglFrame_st_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaEglFrame_st___setstate_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[563])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14665
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandle_getPt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[564])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaGraphConditionalHandle, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14665, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandle___red, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[565])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_26cudaGraphConditionalHandle_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandle___set, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[566])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14690
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaLogIterator_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogIterator_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[567])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaLogIterator, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14690, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaLogIterator_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogIterator___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[568])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaLogIterator_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaLogIterator___setstate_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[569])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14717
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaSurfaceObject_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[570])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaSurfaceObject_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaSurfaceObject_t___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[571])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaSurfaceObject_t_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaSurfaceObject_t___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[572])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14744
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaTextureObject_t_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaTextureObject_t_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[573])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14744, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaTextureObject_t, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14744, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaTextureObject_t_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaTextureObject_t___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[574])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaTextureObject_t_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaTextureObject_t___setstate_c, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[575])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14769
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6GLenum_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GLenum_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[576])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLenum, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14769, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6GLenum_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GLenum___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[577])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6GLenum_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GLenum___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[578])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14794
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6GLuint_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GLuint_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[579])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_GLuint, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14794, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6GLuint_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GLuint___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[580])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6GLuint_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_GLuint___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[581])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14819
 *     def __int__(self):
 *         return <unsigned int>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6EGLint_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLint_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[582])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_EGLint, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14819, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6EGLint_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLint___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[583])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_6EGLint_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_EGLint___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[584])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14844
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_9VdpDevice_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpDevice_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[585])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpDevice, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14844, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_9VdpDevice_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpDevice___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[586])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_9VdpDevice_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpDevice___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[587])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14869
 *     def __int__(self):
 *         return <unsigned long long>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17VdpGetProcAddress_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpGetProcAddress_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[588])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpGetProcAddress, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14869, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17VdpGetProcAddress_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpGetProcAddress___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[589])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17VdpGetProcAddress_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpGetProcAddress___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[590])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14894
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15VdpVideoSurface_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpVideoSurface_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[591])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14894, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpVideoSurface, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14894, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15VdpVideoSurface_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpVideoSurface___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[592])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15VdpVideoSurface_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpVideoSurface___setstate_cytho, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[593])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14919
 *     def __int__(self):
 *         return <uint32_t>self._pvt_ptr[0]
 *     def getPtr(self):             # <<<<<<<<<<<<<<
 *         return <void_ptr>self._pvt_ptr
 * 
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16VdpOutputSurface_9getPtr, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpOutputSurface_getPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[594])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_VdpOutputSurface, __pyx_mstate_global->__pyx_n_u_getPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 14919, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16VdpOutputSurface_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpOutputSurface___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[595])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_16VdpOutputSurface_13__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_VdpOutputSurface___setstate_cyth, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[596])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_4) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14922
 *         return <void_ptr>self._pvt_ptr
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceReset():
 *     """ Destroy all allocations and reset all state on the current device in the current process.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_1cudaDeviceReset, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceReset, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[597])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceReset, __pyx_t_4) < (0)) __PYX_ERR(0, 14922, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14966
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSynchronize():
 *     """ Wait for compute device to finish.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_3cudaDeviceSynchronize, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceSynchronize, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[598])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceSynchronize, __pyx_t_4) < (0)) __PYX_ERR(0, 14966, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":14990
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value):
 *     """ Set resource limits.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 14990, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_limit, __pyx_mstate_global->__pyx_n_u_cudaLimit) < (0)) __PYX_ERR(0, 14990, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_5cudaDeviceSetLimit, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetLimit, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[599])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 14990, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetLimit, __pyx_t_18) < (0)) __PYX_ERR(0, 14990, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15090
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetLimit(limit not None : cudaLimit):
 *     """ Return resource limits.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_limit, __pyx_mstate_global->__pyx_n_u_cudaLimit) < (0)) __PYX_ERR(0, 15090, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_7cudaDeviceGetLimit, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetLimit, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[600])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetLimit, __pyx_t_4) < (0)) __PYX_ERR(0, 15090, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15147
 *     return (_dict_cudaError_t[err], pValue)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetTexture1DLinearMaxWidth(fmtDesc : Optional[cudaChannelFormatDesc], int device):
 *     """ Returns the maximum number of elements allocatable in a 1D linear texture for a given element size.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_fmtDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaChannelFormatDesc) < (0)) __PYX_ERR(0, 15147, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_9cudaDeviceGetTexture1DLinearMaxWidth, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetTexture1DLinearMaxW, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[601])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetTexture1DLinearMaxW, __pyx_t_18) < (0)) __PYX_ERR(0, 15147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15182
 *     return (_dict_cudaError_t[err], maxWidthInElements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetCacheConfig():
 *     """ Returns the preferred cache configuration for the current device.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_11cudaDeviceGetCacheConfig, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetCacheConfig, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[602])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetCacheConfig, __pyx_t_18) < (0)) __PYX_ERR(0, 15182, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15229
 *     return (_dict_cudaError_t[err], cudaFuncCache(pCacheConfig))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetStreamPriorityRange():
 *     """ Returns numerical values that correspond to the least and greatest stream priorities.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_13cudaDeviceGetStreamPriorityRange, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetStreamPriorityRange, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[603])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetStreamPriorityRange, __pyx_t_18) < (0)) __PYX_ERR(0, 15229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15273
 *     return (_dict_cudaError_t[err], leastPriority, greatestPriority)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetCacheConfig(cacheConfig not None : cudaFuncCache):
 *     """ Sets the preferred cache configuration for the current device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cacheConfig, __pyx_mstate_global->__pyx_n_u_cudaFuncCache) < (0)) __PYX_ERR(0, 15273, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_15cudaDeviceSetCacheConfig, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetCacheConfig, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[604])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetCacheConfig, __pyx_t_4) < (0)) __PYX_ERR(0, 15273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15328
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetByPCIBusId(char* pciBusId):
 *     """ Returns a handle to a compute device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_17cudaDeviceGetByPCIBusId, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetByPCIBusId, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[605])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetByPCIBusId, __pyx_t_4) < (0)) __PYX_ERR(0, 15328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15360
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetPCIBusId(int length, int device):
 *     """ Returns a PCI Bus Id string for the device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_19cudaDeviceGetPCIBusId, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetPCIBusId, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[606])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetPCIBusId, __pyx_t_4) < (0)) __PYX_ERR(0, 15360, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15398
 *     return (_dict_cudaError_t[err], pypciBusId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcGetEventHandle(event):
 *     """ Gets an interprocess handle for a previously allocated event.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_21cudaIpcGetEventHandle, 0, __pyx_mstate_global->__pyx_n_u_cudaIpcGetEventHandle, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[607])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaIpcGetEventHandle, __pyx_t_4) < (0)) __PYX_ERR(0, 15398, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15456
 *     return (_dict_cudaError_t[err], handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcOpenEventHandle(handle not None : cudaIpcEventHandle_t):
 *     """ Opens an interprocess event handle for use in the current process.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_handle_2, __pyx_mstate_global->__pyx_n_u_cudaIpcEventHandle_t) < (0)) __PYX_ERR(0, 15456, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_23cudaIpcOpenEventHandle, 0, __pyx_mstate_global->__pyx_n_u_cudaIpcOpenEventHandle, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[608])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaIpcOpenEventHandle, __pyx_t_18) < (0)) __PYX_ERR(0, 15456, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15500
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcGetMemHandle(devPtr):
 *     """ Gets an interprocess memory handle for an existing device memory allocation.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaIpcGetMemHandle, 0, __pyx_mstate_global->__pyx_n_u_cudaIpcGetMemHandle, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[609])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaIpcGetMemHandle, __pyx_t_18) < (0)) __PYX_ERR(0, 15500, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15547
 *     return (_dict_cudaError_t[err], handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flags):
 *     """ Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_handle_2, __pyx_mstate_global->__pyx_n_u_cudaIpcMemHandle_t) < (0)) __PYX_ERR(0, 15547, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_27cudaIpcOpenMemHandle, 0, __pyx_mstate_global->__pyx_n_u_cudaIpcOpenMemHandle, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[610])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaIpcOpenMemHandle, __pyx_t_4) < (0)) __PYX_ERR(0, 15547, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15617
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaIpcCloseMemHandle(devPtr):
 *     """ Attempts to close memory mapped with cudaIpcOpenMemHandle.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_29cudaIpcCloseMemHandle, 0, __pyx_mstate_global->__pyx_n_u_cudaIpcCloseMemHandle, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[611])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaIpcCloseMemHandle, __pyx_t_4) < (0)) __PYX_ERR(0, 15617, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15657
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceFlushGPUDirectRDMAWrites(target not None : cudaFlushGPUDirectRDMAWritesTarget, scope not None : cudaFlushGPUDirectRDMAWritesScope):
 *     """ Blocks until remote writes are visible to the specified scope.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_target, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesTarg) < (0)) __PYX_ERR(0, 15657, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_scope, __pyx_mstate_global->__pyx_n_u_cudaFlushGPUDirectRDMAWritesScop) < (0)) __PYX_ERR(0, 15657, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_31cudaDeviceFlushGPUDirectRDMAWrites, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceFlushGPUDirectRDMAWrit, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[612])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceFlushGPUDirectRDMAWrit, __pyx_t_18) < (0)) __PYX_ERR(0, 15657, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15709
 *         cbData.callback(info, cbData.userData, handle)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData):
 *     """ Registers a callback function to receive async notifications.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_33cudaDeviceRegisterAsyncNotification, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceRegisterAsyncNotificat, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[613])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceRegisterAsyncNotificat, __pyx_t_18) < (0)) __PYX_ERR(0, 15709, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15781
 *     return (_dict_cudaError_t[err], callback)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceUnregisterAsyncNotification(int device, callback):
 *     """ Unregisters an async notification callback.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_35cudaDeviceUnregisterAsyncNotification, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceUnregisterAsyncNotific, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[614])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceUnregisterAsyncNotific, __pyx_t_18) < (0)) __PYX_ERR(0, 15781, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15820
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetSharedMemConfig():
 *     """ Returns the shared memory configuration for the current device.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_37cudaDeviceGetSharedMemConfig, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetSharedMemConfig, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[615])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetSharedMemConfig, __pyx_t_18) < (0)) __PYX_ERR(0, 15820, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15861
 *     return (_dict_cudaError_t[err], cudaSharedMemConfig(pConfig))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetSharedMemConfig(config not None : cudaSharedMemConfig):
 *     """ Sets the shared memory configuration for the current device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_config, __pyx_mstate_global->__pyx_n_u_cudaSharedMemConfig) < (0)) __PYX_ERR(0, 15861, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_39cudaDeviceSetSharedMemConfig, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetSharedMemConfig, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[616])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetSharedMemConfig, __pyx_t_4) < (0)) __PYX_ERR(0, 15861, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15915
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetLastError():
 *     """ Returns the last error from a runtime call.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_41cudaGetLastError, 0, __pyx_mstate_global->__pyx_n_u_cudaGetLastError, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[617])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetLastError, __pyx_t_4) < (0)) __PYX_ERR(0, 15915, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15940
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaPeekAtLastError():
 *     """ Returns the last error from a runtime call.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_43cudaPeekAtLastError, 0, __pyx_mstate_global->__pyx_n_u_cudaPeekAtLastError, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[618])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaPeekAtLastError, __pyx_t_4) < (0)) __PYX_ERR(0, 15940, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":15966
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetErrorName(error not None : cudaError_t):
 *     """ Returns the string representation of an error code enum name.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_error, __pyx_mstate_global->__pyx_n_u_cudaError_t) < (0)) __PYX_ERR(0, 15966, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_45cudaGetErrorName, 0, __pyx_mstate_global->__pyx_n_u_cudaGetErrorName, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[619])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetErrorName, __pyx_t_18) < (0)) __PYX_ERR(0, 15966, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":15995
 *     return (cudaError_t.cudaSuccess, err)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetErrorString(error not None : cudaError_t):
 *     """ Returns the description string for an error code.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 15995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_error, __pyx_mstate_global->__pyx_n_u_cudaError_t) < (0)) __PYX_ERR(0, 15995, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_47cudaGetErrorString, 0, __pyx_mstate_global->__pyx_n_u_cudaGetErrorString, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[620])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetErrorString, __pyx_t_4) < (0)) __PYX_ERR(0, 15995, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16023
 *     return (cudaError_t.cudaSuccess, err)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceCount():
 *     """ Returns the number of compute-capable devices.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_49cudaGetDeviceCount, 0, __pyx_mstate_global->__pyx_n_u_cudaGetDeviceCount, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[621])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16023, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetDeviceCount, __pyx_t_4) < (0)) __PYX_ERR(0, 16023, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16049
 *     return (_dict_cudaError_t[err], count)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceProperties(int device):
 *     """ Returns information about the compute-device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_51cudaGetDeviceProperties, 0, __pyx_mstate_global->__pyx_n_u_cudaGetDeviceProperties, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[622])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetDeviceProperties, __pyx_t_4) < (0)) __PYX_ERR(0, 16049, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16078
 *     return (_dict_cudaError_t[err], prop)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device):
 *     """ Returns information about the device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaDeviceAttr) < (0)) __PYX_ERR(0, 16078, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_53cudaDeviceGetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[623])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 16078, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16111
 *     return (_dict_cudaError_t[err], value)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetHostAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int device):
 *     """ Queries details about atomic operations supported between the device and host.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_operations, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaAtomicOperati) < (0)) __PYX_ERR(0, 16111, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_55cudaDeviceGetHostAtomicCapabilities, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetHostAtomicCapabilit_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[624])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetHostAtomicCapabilit_2, __pyx_t_4) < (0)) __PYX_ERR(0, 16111, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16171
 *     return (_dict_cudaError_t[err], pycapabilities)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetDefaultMemPool(int device):
 *     """ Returns the default mempool of a device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_57cudaDeviceGetDefaultMemPool, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetDefaultMemPool, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[625])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetDefaultMemPool, __pyx_t_4) < (0)) __PYX_ERR(0, 16171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16201
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetMemPool(int device, memPool):
 *     """ Sets the current memory pool of a device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_59cudaDeviceSetMemPool, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetMemPool, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[626])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetMemPool, __pyx_t_4) < (0)) __PYX_ERR(0, 16201, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16243
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetMemPool(int device):
 *     """ Gets the current mempool for a device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_61cudaDeviceGetMemPool, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetMemPool, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[627])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetMemPool, __pyx_t_4) < (0)) __PYX_ERR(0, 16243, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16277
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags):
 *     """ Return NvSciSync attributes that this device can support.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_63cudaDeviceGetNvSciSyncAttributes, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetNvSciSyncAttributes, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[628])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetNvSciSyncAttributes, __pyx_t_4) < (0)) __PYX_ERR(0, 16277, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16360
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetP2PAttribute(attr not None : cudaDeviceP2PAttr, int srcDevice, int dstDevice):
 *     """ Queries attributes of the link between two devices.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaDeviceP2PAttr) < (0)) __PYX_ERR(0, 16360, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_65cudaDeviceGetP2PAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetP2PAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[629])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetP2PAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 16360, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16422
 *     return (_dict_cudaError_t[err], value)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int srcDevice, int dstDevice):
 *     """ Queries details about atomic operations supported between two devices.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_operations, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaAtomicOperati) < (0)) __PYX_ERR(0, 16422, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_67cudaDeviceGetP2PAtomicCapabilities, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetP2PAtomicCapabiliti_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[630])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetP2PAtomicCapabiliti_2, __pyx_t_4) < (0)) __PYX_ERR(0, 16422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":16486
 *     return (_dict_cudaError_t[err], pycapabilities)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaChooseDevice(prop : Optional[cudaDeviceProp]):
 *     """ Select compute-device which best matches criteria.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 16486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_prop, __pyx_mstate_global->__pyx_kp_u_Optional_cudaDeviceProp) < (0)) __PYX_ERR(0, 16486, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_69cudaChooseDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaChooseDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[631])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaChooseDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 16486, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16517
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags):
 *     """ Initialize device to be used for GPU executions.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_71cudaInitDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaInitDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[632])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaInitDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 16517, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16557
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSetDevice(int device):
 *     """ Set device to be used for GPU executions.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_73cudaSetDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaSetDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[633])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSetDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 16557, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16610
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDevice():
 *     """ Returns which device is currently being used.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_75cudaGetDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaGetDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[634])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 16610, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16635
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSetDeviceFlags(unsigned int flags):
 *     """ Sets flags to be used for device executions.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_77cudaSetDeviceFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaSetDeviceFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[635])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSetDeviceFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 16635, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16719
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDeviceFlags():
 *     """ Gets the flags for the current device.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_79cudaGetDeviceFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaGetDeviceFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[636])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetDeviceFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 16719, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16766
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreate():
 *     """ Create an asynchronous stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_81cudaStreamCreate, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamCreate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[637])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamCreate, __pyx_t_18) < (0)) __PYX_ERR(0, 16766, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16793
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreateWithFlags(unsigned int flags):
 *     """ Create an asynchronous stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_83cudaStreamCreateWithFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamCreateWithFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[638])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamCreateWithFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 16793, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16834
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCreateWithPriority(unsigned int flags, int priority):
 *     """ Create an asynchronous stream with the specified priority.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_85cudaStreamCreateWithPriority, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamCreateWithPriority, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[639])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamCreateWithPriority, __pyx_t_18) < (0)) __PYX_ERR(0, 16834, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16892
 *     return (_dict_cudaError_t[err], pStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetPriority(hStream):
 *     """ Query the priority of a stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_87cudaStreamGetPriority, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamGetPriority, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[640])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16892, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamGetPriority, __pyx_t_18) < (0)) __PYX_ERR(0, 16892, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16935
 *     return (_dict_cudaError_t[err], priority)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetFlags(hStream):
 *     """ Query the flags of a stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_89cudaStreamGetFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamGetFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[641])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamGetFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 16935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":16974
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetId(hStream):
 *     """ Query the Id of a stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_91cudaStreamGetId, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamGetId, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[642])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 16974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamGetId, __pyx_t_18) < (0)) __PYX_ERR(0, 16974, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17027
 *     return (_dict_cudaError_t[err], streamId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetDevice(hStream):
 *     """ Query the device of a stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_93cudaStreamGetDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamGetDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[643])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamGetDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 17027, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17064
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCtxResetPersistingL2Cache():
 *     """ Resets all persisting lines in cache to normal status.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_95cudaCtxResetPersistingL2Cache, 0, __pyx_mstate_global->__pyx_n_u_cudaCtxResetPersistingL2Cache, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[644])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaCtxResetPersistingL2Cache, __pyx_t_18) < (0)) __PYX_ERR(0, 17064, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17084
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamCopyAttributes(dst, src):
 *     """ Copies attributes from source stream to destination stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_97cudaStreamCopyAttributes, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamCopyAttributes, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[645])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamCopyAttributes, __pyx_t_18) < (0)) __PYX_ERR(0, 17084, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17127
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID):
 *     """ Queries stream attribute.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaStreamAttrID) < (0)) __PYX_ERR(0, 17127, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_99cudaStreamGetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamGetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[646])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamGetAttribute, __pyx_t_4) < (0)) __PYX_ERR(0, 17127, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":17168
 *     return (_dict_cudaError_t[err], value_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Optional[cudaStreamAttrValue]):
 *     """ Sets stream attribute.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaStreamAttrID) < (0)) __PYX_ERR(0, 17168, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_value, __pyx_mstate_global->__pyx_kp_u_Optional_cudaStreamAttrValue) < (0)) __PYX_ERR(0, 17168, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_101cudaStreamSetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamSetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[647])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamSetAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 17168, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17208
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamDestroy(stream):
 *     """ Destroys and cleans up an asynchronous stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_103cudaStreamDestroy, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamDestroy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[648])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamDestroy, __pyx_t_18) < (0)) __PYX_ERR(0, 17208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17245
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamWaitEvent(stream, event, unsigned int flags):
 *     """ Make a compute stream wait on an event.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_105cudaStreamWaitEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamWaitEvent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[649])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamWaitEvent, __pyx_t_18) < (0)) __PYX_ERR(0, 17245, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17313
 *     free(cbData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamAddCallback(stream, callback, userData, unsigned int flags):
 *     """ Add a callback to a compute stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_107cudaStreamAddCallback, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamAddCallback, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[650])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamAddCallback, __pyx_t_18) < (0)) __PYX_ERR(0, 17313, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17414
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamSynchronize(stream):
 *     """ Waits for stream tasks to complete.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_109cudaStreamSynchronize, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamSynchronize, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[651])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamSynchronize, __pyx_t_18) < (0)) __PYX_ERR(0, 17414, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17449
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamQuery(stream):
 *     """ Queries an asynchronous stream for completion status.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_111cudaStreamQuery, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamQuery, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[652])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamQuery, __pyx_t_18) < (0)) __PYX_ERR(0, 17449, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17486
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags):
 *     """ Attach memory to a stream asynchronously.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_113cudaStreamAttachMemAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamAttachMemAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[653])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamAttachMemAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 17486, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17594
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode):
 *     """ Begins graph capture on a stream.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_mode, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode) < (0)) __PYX_ERR(0, 17594, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_115cudaStreamBeginCapture, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamBeginCapture, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[654])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamBeginCapture, __pyx_t_4) < (0)) __PYX_ERR(0, 17594, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":17648
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, mode not None : cudaStreamCaptureMode):
 *     """ Begins graph capture on a stream to an existing graph.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 17648, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dependencyData, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphEdgeData) < (0)) __PYX_ERR(0, 17648, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_mode, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode) < (0)) __PYX_ERR(0, 17648, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_117cudaStreamBeginCaptureToGraph, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamBeginCaptureToGraph, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[655])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamBeginCaptureToGraph, __pyx_t_18) < (0)) __PYX_ERR(0, 17648, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":17750
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode):
 *     """ Swaps the stream capture interaction mode for a thread.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 17750, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_mode, __pyx_mstate_global->__pyx_n_u_cudaStreamCaptureMode) < (0)) __PYX_ERR(0, 17750, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_119cudaThreadExchangeStreamCaptureMode, 0, __pyx_mstate_global->__pyx_n_u_cudaThreadExchangeStreamCaptureM, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[656])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17750, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaThreadExchangeStreamCaptureM, __pyx_t_4) < (0)) __PYX_ERR(0, 17750, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":17821
 *     return (_dict_cudaError_t[err], cudaStreamCaptureMode(cymode))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamEndCapture(stream):
 *     """ Ends capture on a stream, returning the captured graph.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_121cudaStreamEndCapture, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamEndCapture, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[657])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamEndCapture, __pyx_t_4) < (0)) __PYX_ERR(0, 17821, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":17866
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamIsCapturing(stream):
 *     """ Returns a stream's capture status.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_123cudaStreamIsCapturing, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamIsCapturing, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[658])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamIsCapturing, __pyx_t_4) < (0)) __PYX_ERR(0, 17866, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":17925
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(pCaptureStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetCaptureInfo(stream):
 *     """ Query a stream's capture state.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_125cudaStreamGetCaptureInfo, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamGetCaptureInfo, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[659])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 17925, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamGetCaptureInfo, __pyx_t_4) < (0)) __PYX_ERR(0, 17925, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":18022
 *     return (_dict_cudaError_t[err], cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags):
 *     """ Update the set of dependencies in a capturing stream.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18022, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 18022, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dependencyData, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphEdgeData) < (0)) __PYX_ERR(0, 18022, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_127cudaStreamUpdateCaptureDependencies, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc_3, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[660])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18022, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamUpdateCaptureDependenc_3, __pyx_t_18) < (0)) __PYX_ERR(0, 18022, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18106
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreate():
 *     """ Creates an event object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_129cudaEventCreate, 0, __pyx_mstate_global->__pyx_n_u_cudaEventCreate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[661])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventCreate, __pyx_t_18) < (0)) __PYX_ERR(0, 18106, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18131
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreateWithFlags(unsigned int flags):
 *     """ Creates an event object with the specified flags.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_131cudaEventCreateWithFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaEventCreateWithFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[662])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventCreateWithFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 18131, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18180
 *     return (_dict_cudaError_t[err], event)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventRecord(event, stream):
 *     """ Records an event.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_133cudaEventRecord, 0, __pyx_mstate_global->__pyx_n_u_cudaEventRecord, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[663])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventRecord, __pyx_t_18) < (0)) __PYX_ERR(0, 18180, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18236
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventRecordWithFlags(event, stream, unsigned int flags):
 *     """ Records an event.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_135cudaEventRecordWithFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaEventRecordWithFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[664])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventRecordWithFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 18236, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18301
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventQuery(event):
 *     """ Queries an event's status.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_137cudaEventQuery, 0, __pyx_mstate_global->__pyx_n_u_cudaEventQuery, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[665])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventQuery, __pyx_t_18) < (0)) __PYX_ERR(0, 18301, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18343
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventSynchronize(event):
 *     """ Waits for an event to complete.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_139cudaEventSynchronize, 0, __pyx_mstate_global->__pyx_n_u_cudaEventSynchronize, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[666])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventSynchronize, __pyx_t_18) < (0)) __PYX_ERR(0, 18343, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18384
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventDestroy(event):
 *     """ Destroys an event object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_141cudaEventDestroy, 0, __pyx_mstate_global->__pyx_n_u_cudaEventDestroy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[667])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventDestroy, __pyx_t_18) < (0)) __PYX_ERR(0, 18384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18422
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventElapsedTime(start, end):
 *     """ Computes the elapsed time between events.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_143cudaEventElapsedTime, 0, __pyx_mstate_global->__pyx_n_u_cudaEventElapsedTime, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[668])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventElapsedTime, __pyx_t_18) < (0)) __PYX_ERR(0, 18422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18492
 *     return (_dict_cudaError_t[err], ms)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDesc]):
 *     """ Imports an external memory object.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_memHandleDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalMemoryHandl) < (0)) __PYX_ERR(0, 18492, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_145cudaImportExternalMemory, 0, __pyx_mstate_global->__pyx_n_u_cudaImportExternalMemory, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[669])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaImportExternalMemory, __pyx_t_4) < (0)) __PYX_ERR(0, 18492, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":18643
 *     return (_dict_cudaError_t[err], extMem_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[cudaExternalMemoryBufferDesc]):
 *     """ Maps a buffer onto an imported memory object.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_bufferDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalMemoryBuffe) < (0)) __PYX_ERR(0, 18643, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_147cudaExternalMemoryGetMappedBuffer, 0, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryGetMappedBuffe, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[670])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryGetMappedBuffe, __pyx_t_18) < (0)) __PYX_ERR(0, 18643, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18708
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[cudaExternalMemoryMipmappedArrayDesc]):
 *     """ Maps a CUDA mipmapped array onto an external memory object.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_mipmapDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalMemoryMipma) < (0)) __PYX_ERR(0, 18708, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_149cudaExternalMemoryGetMappedMipmappedArray, 0, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryGetMappedMipma, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[671])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExternalMemoryGetMappedMipma, __pyx_t_4) < (0)) __PYX_ERR(0, 18708, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":18777
 *     return (_dict_cudaError_t[err], mipmap)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyExternalMemory(extMem):
 *     """ Destroys an external memory object.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_151cudaDestroyExternalMemory, 0, __pyx_mstate_global->__pyx_n_u_cudaDestroyExternalMemory, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[672])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDestroyExternalMemory, __pyx_t_4) < (0)) __PYX_ERR(0, 18777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":18812
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHandleDesc]):
 *     """ Imports an external semaphore.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_semHandleDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalSemaphoreHa) < (0)) __PYX_ERR(0, 18812, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_153cudaImportExternalSemaphore, 0, __pyx_mstate_global->__pyx_n_u_cudaImportExternalSemaphore, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[673])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaImportExternalSemaphore, __pyx_t_18) < (0)) __PYX_ERR(0, 18812, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":18958
 *     return (_dict_cudaError_t[err], extSem_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreSignalParams] | list[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream):
 *     """ Signals a set of external semaphore objects.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 18958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_extSemArray_2, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaExternalSemap) < (0)) __PYX_ERR(0, 18958, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_paramsArray_2, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaExternalSemap_2) < (0)) __PYX_ERR(0, 18958, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_155cudaSignalExternalSemaphoresAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaSignalExternalSemaphoresAsyn_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[674])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 18958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaSignalExternalSemaphoresAsyn_2, __pyx_t_4) < (0)) __PYX_ERR(0, 18958, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19111
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreWaitParams] | list[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream):
 *     """ Waits on a set of external semaphore objects.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_extSemArray_2, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaExternalSemap) < (0)) __PYX_ERR(0, 19111, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_paramsArray_2, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaExternalSemap_3) < (0)) __PYX_ERR(0, 19111, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_157cudaWaitExternalSemaphoresAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaWaitExternalSemaphoresAsync_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[675])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 19111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaWaitExternalSemaphoresAsync_2, __pyx_t_18) < (0)) __PYX_ERR(0, 19111, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":19237
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyExternalSemaphore(extSem):
 *     """ Destroys an external semaphore.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_159cudaDestroyExternalSemaphore, 0, __pyx_mstate_global->__pyx_n_u_cudaDestroyExternalSemaphore, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[676])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 19237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDestroyExternalSemaphore, __pyx_t_18) < (0)) __PYX_ERR(0, 19237, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":19271
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache):
 *     """ Sets the preferred cache configuration for a device function.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 19271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_cacheConfig, __pyx_mstate_global->__pyx_n_u_cudaFuncCache) < (0)) __PYX_ERR(0, 19271, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_161cudaFuncSetCacheConfig, 0, __pyx_mstate_global->__pyx_n_u_cudaFuncSetCacheConfig, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[677])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFuncSetCacheConfig, __pyx_t_4) < (0)) __PYX_ERR(0, 19271, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19335
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncGetAttributes(func):
 *     """ Find out attributes for a given function.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_163cudaFuncGetAttributes, 0, __pyx_mstate_global->__pyx_n_u_cudaFuncGetAttributes, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[678])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFuncGetAttributes, __pyx_t_4) < (0)) __PYX_ERR(0, 19335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19376
 *     return (_dict_cudaError_t[err], attr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetAttribute(func, attr not None : cudaFuncAttribute, int value):
 *     """ Set attributes for a given function.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaFuncAttribute) < (0)) __PYX_ERR(0, 19376, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_165cudaFuncSetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaFuncSetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[679])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 19376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFuncSetAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 19376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":19472
 *     free(cbData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLaunchHostFunc(stream, fn, userData):
 *     """ Enqueues a host function call in a stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_167cudaLaunchHostFunc, 0, __pyx_mstate_global->__pyx_n_u_cudaLaunchHostFunc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[680])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 19472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLaunchHostFunc, __pyx_t_18) < (0)) __PYX_ERR(0, 19472, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":19566
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig):
 *     """ Sets the shared memory configuration for a device function.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 19566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_config, __pyx_mstate_global->__pyx_n_u_cudaSharedMemConfig) < (0)) __PYX_ERR(0, 19566, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_169cudaFuncSetSharedMemConfig, 0, __pyx_mstate_global->__pyx_n_u_cudaFuncSetSharedMemConfig, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[681])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFuncSetSharedMemConfig, __pyx_t_4) < (0)) __PYX_ERR(0, 19566, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19631
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize):
 *     """ Returns occupancy for a device function.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_171cudaOccupancyMaxActiveBlocksPerMultiprocessor, 0, __pyx_mstate_global->__pyx_n_u_cudaOccupancyMaxActiveBlocksPerM, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[682])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaOccupancyMaxActiveBlocksPerM, __pyx_t_4) < (0)) __PYX_ERR(0, 19631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19667
 *     return (_dict_cudaError_t[err], numBlocks)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize):
 *     """ Returns dynamic shared memory available per block when launching `numBlocks` blocks on SM.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_173cudaOccupancyAvailableDynamicSMemPerBlock, 0, __pyx_mstate_global->__pyx_n_u_cudaOccupancyAvailableDynamicSMe, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[683])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaOccupancyAvailableDynamicSMe, __pyx_t_4) < (0)) __PYX_ERR(0, 19667, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19703
 *     return (_dict_cudaError_t[err], dynamicSmemSize)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, size_t dynamicSMemSize, unsigned int flags):
 *     """ Returns occupancy for a device function with the specified flags.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_175cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaOccupancyMaxActiveBlocksPerM_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[684])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaOccupancyMaxActiveBlocksPerM_2, __pyx_t_4) < (0)) __PYX_ERR(0, 19703, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19756
 *     return (_dict_cudaError_t[err], numBlocks)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocManaged(size_t size, unsigned int flags):
 *     """ Allocates memory that will be automatically managed by the Unified Memory system.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_177cudaMallocManaged, 0, __pyx_mstate_global->__pyx_n_u_cudaMallocManaged, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[685])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMallocManaged, __pyx_t_4) < (0)) __PYX_ERR(0, 19756, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19887
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc(size_t size):
 *     """ Allocate memory on the device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_179cudaMalloc, 0, __pyx_mstate_global->__pyx_n_u_cudaMalloc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[686])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMalloc, __pyx_t_4) < (0)) __PYX_ERR(0, 19887, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19923
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocHost(size_t size):
 *     """ Allocates page-locked memory on the host.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_181cudaMallocHost, 0, __pyx_mstate_global->__pyx_n_u_cudaMallocHost, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[687])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMallocHost, __pyx_t_4) < (0)) __PYX_ERR(0, 19923, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":19968
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocPitch(size_t width, size_t height):
 *     """ Allocates pitched memory on the device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_183cudaMallocPitch, 0, __pyx_mstate_global->__pyx_n_u_cudaMallocPitch, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[688])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 19968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMallocPitch, __pyx_t_4) < (0)) __PYX_ERR(0, 19968, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":20021
 *     return (_dict_cudaError_t[err], devPtr, pitch)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocArray(desc : Optional[cudaChannelFormatDesc], size_t width, size_t height, unsigned int flags):
 *     """ Allocate an array on the device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_desc_2, __pyx_mstate_global->__pyx_kp_u_Optional_cudaChannelFormatDesc) < (0)) __PYX_ERR(0, 20021, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_185cudaMallocArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMallocArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[689])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMallocArray, __pyx_t_18) < (0)) __PYX_ERR(0, 20021, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20095
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFree(devPtr):
 *     """ Frees memory on the device.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_187cudaFree, 0, __pyx_mstate_global->__pyx_n_u_cudaFree, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[690])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFree, __pyx_t_18) < (0)) __PYX_ERR(0, 20095, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20142
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeHost(ptr):
 *     """ Frees page-locked memory.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_189cudaFreeHost, 0, __pyx_mstate_global->__pyx_n_u_cudaFreeHost, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[691])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFreeHost, __pyx_t_18) < (0)) __PYX_ERR(0, 20142, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20170
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeArray(array):
 *     """ Frees an array on the device.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_191cudaFreeArray, 0, __pyx_mstate_global->__pyx_n_u_cudaFreeArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[692])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFreeArray, __pyx_t_18) < (0)) __PYX_ERR(0, 20170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20204
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeMipmappedArray(mipmappedArray):
 *     """ Frees a mipmapped array on the device.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_193cudaFreeMipmappedArray, 0, __pyx_mstate_global->__pyx_n_u_cudaFreeMipmappedArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[693])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFreeMipmappedArray, __pyx_t_18) < (0)) __PYX_ERR(0, 20204, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20238
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostAlloc(size_t size, unsigned int flags):
 *     """ Allocates page-locked memory on the host.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_195cudaHostAlloc, 0, __pyx_mstate_global->__pyx_n_u_cudaHostAlloc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[694])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20238, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostAlloc, __pyx_t_18) < (0)) __PYX_ERR(0, 20238, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20320
 *     return (_dict_cudaError_t[err], pHost)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostRegister(ptr, size_t size, unsigned int flags):
 *     """ Registers an existing host memory range for use by CUDA.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_197cudaHostRegister, 0, __pyx_mstate_global->__pyx_n_u_cudaHostRegister, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[695])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostRegister, __pyx_t_18) < (0)) __PYX_ERR(0, 20320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20434
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostUnregister(ptr):
 *     """ Unregisters a memory range that was registered with cudaHostRegister.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_199cudaHostUnregister, 0, __pyx_mstate_global->__pyx_n_u_cudaHostUnregister, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[696])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostUnregister, __pyx_t_18) < (0)) __PYX_ERR(0, 20434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20464
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostGetDevicePointer(pHost, unsigned int flags):
 *     """ Passes back device pointer of mapped host memory allocated by cudaHostAlloc or registered by cudaHostRegister.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_201cudaHostGetDevicePointer, 0, __pyx_mstate_global->__pyx_n_u_cudaHostGetDevicePointer, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[697])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostGetDevicePointer, __pyx_t_18) < (0)) __PYX_ERR(0, 20464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20523
 *     return (_dict_cudaError_t[err], pDevice)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaHostGetFlags(pHost):
 *     """ Passes back flags used to allocate pinned host memory allocated by cudaHostAlloc.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_203cudaHostGetFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaHostGetFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[698])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaHostGetFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 20523, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20555
 *     return (_dict_cudaError_t[err], pFlags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc3D(extent not None : cudaExtent):
 *     """ Allocates logical 1D, 2D, or 3D memory objects on the device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_extent_2, __pyx_mstate_global->__pyx_n_u_cudaExtent) < (0)) __PYX_ERR(0, 20555, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_205cudaMalloc3D, 0, __pyx_mstate_global->__pyx_n_u_cudaMalloc3D, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[699])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMalloc3D, __pyx_t_4) < (0)) __PYX_ERR(0, 20555, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":20601
 *     return (_dict_cudaError_t[err], pitchedDevPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMalloc3DArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int flags):
 *     """ Allocate an array on the device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_desc_2, __pyx_mstate_global->__pyx_kp_u_Optional_cudaChannelFormatDesc) < (0)) __PYX_ERR(0, 20601, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_extent_2, __pyx_mstate_global->__pyx_n_u_cudaExtent) < (0)) __PYX_ERR(0, 20601, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_207cudaMalloc3DArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMalloc3DArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[700])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMalloc3DArray, __pyx_t_18) < (0)) __PYX_ERR(0, 20601, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20721
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocMipmappedArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int numLevels, unsigned int flags):
 *     """ Allocate a mipmapped array on the device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_desc_2, __pyx_mstate_global->__pyx_kp_u_Optional_cudaChannelFormatDesc) < (0)) __PYX_ERR(0, 20721, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_extent_2, __pyx_mstate_global->__pyx_n_u_cudaExtent) < (0)) __PYX_ERR(0, 20721, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_209cudaMallocMipmappedArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMallocMipmappedArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[701])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMallocMipmappedArray, __pyx_t_4) < (0)) __PYX_ERR(0, 20721, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":20844
 *     return (_dict_cudaError_t[err], mipmappedArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level):
 *     """ Gets a mipmap level of a CUDA mipmapped array.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_211cudaGetMipmappedArrayLevel, 0, __pyx_mstate_global->__pyx_n_u_cudaGetMipmappedArrayLevel, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[702])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetMipmappedArrayLevel, __pyx_t_4) < (0)) __PYX_ERR(0, 20844, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":20890
 *     return (_dict_cudaError_t[err], levelArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]):
 *     """ Copies data between 3D objects.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_p, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 20890, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_213cudaMemcpy3D, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3D, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[703])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3D, __pyx_t_18) < (0)) __PYX_ERR(0, 20890, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":20971
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]):
 *     """ Copies memory between devices.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 20971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_p, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemcpy3DPeerParms) < (0)) __PYX_ERR(0, 20971, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_215cudaMemcpy3DPeer, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DPeer, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[704])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 20971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DPeer, __pyx_t_4) < (0)) __PYX_ERR(0, 20971, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21005
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream):
 *     """ Copies data between 3D objects.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_p, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 21005, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_217cudaMemcpy3DAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[705])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 21005, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":21107
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream):
 *     """ Copies memory between devices asynchronously.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_p, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemcpy3DPeerParms) < (0)) __PYX_ERR(0, 21107, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_219cudaMemcpy3DPeerAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DPeerAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[706])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DPeerAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 21107, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21144
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetInfo():
 *     """ Gets free and total device memory.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_221cudaMemGetInfo, 0, __pyx_mstate_global->__pyx_n_u_cudaMemGetInfo, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[707])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemGetInfo, __pyx_t_4) < (0)) __PYX_ERR(0, 21144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21186
 *     return (_dict_cudaError_t[err], free, total)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetInfo(array):
 *     """ Gets info about the specified cudaArray.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_223cudaArrayGetInfo, 0, __pyx_mstate_global->__pyx_n_u_cudaArrayGetInfo, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[708])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21186, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayGetInfo, __pyx_t_4) < (0)) __PYX_ERR(0, 21186, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21232
 *     return (_dict_cudaError_t[err], desc, extent, flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetPlane(hArray, unsigned int planeIdx):
 *     """ Gets a CUDA array plane from a CUDA array.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_225cudaArrayGetPlane, 0, __pyx_mstate_global->__pyx_n_u_cudaArrayGetPlane, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[709])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayGetPlane, __pyx_t_4) < (0)) __PYX_ERR(0, 21232, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21285
 *     return (_dict_cudaError_t[err], pPlaneArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetMemoryRequirements(array, int device):
 *     """ Returns the memory requirements of a CUDA array.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_227cudaArrayGetMemoryRequirements, 0, __pyx_mstate_global->__pyx_n_u_cudaArrayGetMemoryRequirements, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[710])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayGetMemoryRequirements, __pyx_t_4) < (0)) __PYX_ERR(0, 21285, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21332
 *     return (_dict_cudaError_t[err], memoryRequirements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMipmappedArrayGetMemoryRequirements(mipmap, int device):
 *     """ Returns the memory requirements of a CUDA mipmapped array.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_229cudaMipmappedArrayGetMemoryRequirements, 0, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArrayGetMemoryRequi, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[711])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArrayGetMemoryRequi, __pyx_t_4) < (0)) __PYX_ERR(0, 21332, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21379
 *     return (_dict_cudaError_t[err], memoryRequirements)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaArrayGetSparseProperties(array):
 *     """ Returns the layout properties of a sparse CUDA array.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_231cudaArrayGetSparseProperties, 0, __pyx_mstate_global->__pyx_n_u_cudaArrayGetSparseProperties, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[712])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaArrayGetSparseProperties, __pyx_t_4) < (0)) __PYX_ERR(0, 21379, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21432
 *     return (_dict_cudaError_t[err], sparseProperties)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMipmappedArrayGetSparseProperties(mipmap):
 *     """ Returns the layout properties of a sparse CUDA mipmapped array.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_233cudaMipmappedArrayGetSparseProperties, 0, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArrayGetSparsePrope, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[713])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMipmappedArrayGetSparsePrope, __pyx_t_4) < (0)) __PYX_ERR(0, 21432, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21485
 *     return (_dict_cudaError_t[err], sparseProperties)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy(dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 21485, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_235cudaMemcpy, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[714])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy, __pyx_t_18) < (0)) __PYX_ERR(0, 21485, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":21532
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count):
 *     """ Copies memory between two devices.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_237cudaMemcpyPeer, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyPeer, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[715])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyPeer, __pyx_t_18) < (0)) __PYX_ERR(0, 21532, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":21577
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 21577, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_239cudaMemcpy2D, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2D, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[716])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2D, __pyx_t_4) < (0)) __PYX_ERR(0, 21577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21634
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 21634, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_241cudaMemcpy2DToArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DToArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[717])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DToArray, __pyx_t_18) < (0)) __PYX_ERR(0, 21634, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":21698
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 21698, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_243cudaMemcpy2DFromArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DFromArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[718])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DFromArray, __pyx_t_4) < (0)) __PYX_ERR(0, 21698, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21762
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 21762, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_245cudaMemcpy2DArrayToArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DArrayToArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[719])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DArrayToArray, __pyx_t_18) < (0)) __PYX_ERR(0, 21762, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":21832
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyAsync(dst, src, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 21832, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_247cudaMemcpyAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[720])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 21832, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21899
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, stream):
 *     """ Copies memory between two devices asynchronously.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_249cudaMemcpyPeerAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyPeerAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[721])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyPeerAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 21899, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":21952
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, attrs : Optional[tuple[cudaMemcpyAttributes] | list[cudaMemcpyAttributes]], attrsIdxs : tuple[int] | list[int], size_t numAttrs, stream):
 *     """ Performs a batch of memory copies asynchronously.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 21952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dsts, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 21952, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_srcs, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 21952, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_sizes, __pyx_mstate_global->__pyx_kp_u_tuple_int_list_int) < (0)) __PYX_ERR(0, 21952, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attrs, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaMemcpyAttribu) < (0)) __PYX_ERR(0, 21952, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attrsIdxs, __pyx_mstate_global->__pyx_kp_u_tuple_int_list_int) < (0)) __PYX_ERR(0, 21952, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_251cudaMemcpyBatchAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyBatchAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[722])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 21952, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyBatchAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 21952, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":22099
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]], unsigned long long flags, stream):
 *     """ Performs a batch of 3D memory copies asynchronously.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_opList, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaMemcpy3DBatch) < (0)) __PYX_ERR(0, 22099, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_253cudaMemcpy3DBatchAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DBatchAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[723])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy3DBatchAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 22099, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22226
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 22226, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_255cudaMemcpy2DAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[724])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 22226, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":22304
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 22304, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_257cudaMemcpy2DToArrayAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DToArrayAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[725])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DToArrayAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 22304, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22389
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 22389, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_259cudaMemcpy2DFromArrayAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DFromArrayAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[726])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpy2DFromArrayAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 22389, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":22473
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset(devPtr, int value, size_t count):
 *     """ Initializes or sets device memory to a value.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_261cudaMemset, 0, __pyx_mstate_global->__pyx_n_u_cudaMemset, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[727])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemset, __pyx_t_18) < (0)) __PYX_ERR(0, 22473, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":22507
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height):
 *     """ Initializes or sets device memory to a value.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_263cudaMemset2D, 0, __pyx_mstate_global->__pyx_n_u_cudaMemset2D, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[728])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemset2D, __pyx_t_18) < (0)) __PYX_ERR(0, 22507, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":22548
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset3D(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent):
 *     """ Initializes or sets device memory to a value.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pitchedDevPtr, __pyx_mstate_global->__pyx_n_u_cudaPitchedPtr) < (0)) __PYX_ERR(0, 22548, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_extent_2, __pyx_mstate_global->__pyx_n_u_cudaExtent) < (0)) __PYX_ERR(0, 22548, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_265cudaMemset3D, 0, __pyx_mstate_global->__pyx_n_u_cudaMemset3D, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[729])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemset3D, __pyx_t_4) < (0)) __PYX_ERR(0, 22548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22599
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemsetAsync(devPtr, int value, size_t count, stream):
 *     """ Initializes or sets device memory to a value.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_267cudaMemsetAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemsetAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[730])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemsetAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 22599, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22649
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t height, stream):
 *     """ Initializes or sets device memory to a value.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_269cudaMemset2DAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemset2DAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[731])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemset2DAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 22649, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22706
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemset3DAsync(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent, stream):
 *     """ Initializes or sets device memory to a value.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pitchedDevPtr, __pyx_mstate_global->__pyx_n_u_cudaPitchedPtr) < (0)) __PYX_ERR(0, 22706, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_extent_2, __pyx_mstate_global->__pyx_n_u_cudaExtent) < (0)) __PYX_ERR(0, 22706, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_271cudaMemset3DAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemset3DAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[732])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemset3DAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 22706, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":22773
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPrefetchAsync(devPtr, size_t count, location not None : cudaMemLocation, unsigned int flags, stream):
 *     """ Prefetches memory to the specified destination location.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_location_2, __pyx_mstate_global->__pyx_n_u_cudaMemLocation) < (0)) __PYX_ERR(0, 22773, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_273cudaMemPrefetchAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPrefetchAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[733])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPrefetchAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 22773, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":22888
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream):
 *     """ Performs a batch of memory prefetches asynchronously.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dptrs, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 22888, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_sizes, __pyx_mstate_global->__pyx_kp_u_tuple_int_list_int) < (0)) __PYX_ERR(0, 22888, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_prefetchLocs, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaMemLocation_l) < (0)) __PYX_ERR(0, 22888, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_prefetchLocIdxs, __pyx_mstate_global->__pyx_kp_u_tuple_int_list_int) < (0)) __PYX_ERR(0, 22888, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_275cudaMemPrefetchBatchAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPrefetchBatchAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[734])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPrefetchBatchAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 22888, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":22994
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemDiscardBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, unsigned long long flags, stream):
 *     """ Performs a batch of memory discards asynchronously.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 22994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_dptrs, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 22994, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_sizes, __pyx_mstate_global->__pyx_kp_u_tuple_int_list_int) < (0)) __PYX_ERR(0, 22994, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_277cudaMemDiscardBatchAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemDiscardBatchAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[735])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 22994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemDiscardBatchAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 22994, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":23065
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream):
 *     """ Performs a batch of memory discards and prefetches asynchronously.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_dptrs, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 23065, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_sizes, __pyx_mstate_global->__pyx_kp_u_tuple_int_list_int) < (0)) __PYX_ERR(0, 23065, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_prefetchLocs, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaMemLocation_l) < (0)) __PYX_ERR(0, 23065, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_prefetchLocIdxs, __pyx_mstate_global->__pyx_kp_u_tuple_int_list_int) < (0)) __PYX_ERR(0, 23065, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_279cudaMemDiscardAndPrefetchBatchAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemDiscardAndPrefetchBatchAs_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[736])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemDiscardAndPrefetchBatchAs_2, __pyx_t_18) < (0)) __PYX_ERR(0, 23065, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":23179
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, location not None : cudaMemLocation):
 *     """ Advise about the usage of a given memory range.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_advice, __pyx_mstate_global->__pyx_n_u_cudaMemoryAdvise) < (0)) __PYX_ERR(0, 23179, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_location_2, __pyx_mstate_global->__pyx_n_u_cudaMemLocation) < (0)) __PYX_ERR(0, 23179, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_281cudaMemAdvise, 0, __pyx_mstate_global->__pyx_n_u_cudaMemAdvise, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[737])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemAdvise, __pyx_t_4) < (0)) __PYX_ERR(0, 23179, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":23373
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemRangeGetAttribute(size_t dataSize, attribute not None : cudaMemRangeAttribute, devPtr, size_t count):
 *     """ Query an attribute of a given memory range.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attribute, __pyx_mstate_global->__pyx_n_u_cudaMemRangeAttribute) < (0)) __PYX_ERR(0, 23373, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_283cudaMemRangeGetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaMemRangeGetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[738])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemRangeGetAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 23373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":23520
 *     return (_dict_cudaError_t[err], cydata.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Optional[tuple[cudaMemRangeAttribute] | list[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count):
 *     """ Query attributes of a given memory range.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_dataSizes, __pyx_mstate_global->__pyx_kp_u_tuple_int_list_int) < (0)) __PYX_ERR(0, 23520, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_attributes, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaMemRangeAttri) < (0)) __PYX_ERR(0, 23520, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_285cudaMemRangeGetAttributes, 0, __pyx_mstate_global->__pyx_n_u_cudaMemRangeGetAttributes, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[739])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemRangeGetAttributes, __pyx_t_4) < (0)) __PYX_ERR(0, 23520, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":23598
 *     return (_dict_cudaError_t[err], [obj.pyObj() for obj in pylist])
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 23598, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_287cudaMemcpyToArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyToArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[740])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyToArray, __pyx_t_18) < (0)) __PYX_ERR(0, 23598, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":23654
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 23654, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_289cudaMemcpyFromArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFromArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[741])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFromArray, __pyx_t_4) < (0)) __PYX_ERR(0, 23654, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":23710
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, kind not None : cudaMemcpyKind):
 *     """ Copies data between host and device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 23710, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_291cudaMemcpyArrayToArray, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyArrayToArray, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[742])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyArrayToArray, __pyx_t_18) < (0)) __PYX_ERR(0, 23710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":23777
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 23777, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_293cudaMemcpyToArrayAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyToArrayAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[743])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyToArrayAsync, __pyx_t_4) < (0)) __PYX_ERR(0, 23777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":23850
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind, stream):
 *     """ Copies data between host and device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 23850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 23850, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_295cudaMemcpyFromArrayAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFromArrayAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[744])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemcpyFromArrayAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 23850, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":23923
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocAsync(size_t size, hStream):
 *     """ Allocates memory with stream ordered semantics.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_297cudaMallocAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMallocAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[745])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMallocAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 23923, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":23975
 *     return (_dict_cudaError_t[err], devPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaFreeAsync(devPtr, hStream):
 *     """ Frees memory with stream ordered semantics.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_299cudaFreeAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaFreeAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[746])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 23975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaFreeAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 23975, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24018
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep):
 *     """ Tries to release memory back to the OS.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_301cudaMemPoolTrimTo, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolTrimTo, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[747])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolTrimTo, __pyx_t_18) < (0)) __PYX_ERR(0, 24018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24065
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value):
 *     """ Sets attributes of a memory pool.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttr) < (0)) __PYX_ERR(0, 24065, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_303cudaMemPoolSetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolSetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[748])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolSetAttribute, __pyx_t_4) < (0)) __PYX_ERR(0, 24065, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24138
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr):
 *     """ Gets attributes of a memory pool.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaMemPoolAttr) < (0)) __PYX_ERR(0, 24138, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_305cudaMemPoolGetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolGetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[749])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolGetAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 24138, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24219
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]], size_t count):
 *     """ Controls visibility of pools between devices.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_descList, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaMemAccessDesc) < (0)) __PYX_ERR(0, 24219, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_307cudaMemPoolSetAccess, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolSetAccess, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[750])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolSetAccess, __pyx_t_4) < (0)) __PYX_ERR(0, 24219, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24269
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolGetAccess(memPool, location : Optional[cudaMemLocation]):
 *     """ Returns the accessibility of a pool from a device.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_location_2, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemLocation) < (0)) __PYX_ERR(0, 24269, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_309cudaMemPoolGetAccess, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolGetAccess, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[751])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolGetAccess, __pyx_t_18) < (0)) __PYX_ERR(0, 24269, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24310
 *     return (_dict_cudaError_t[err], cudaMemAccessFlags(flags))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]):
 *     """ Creates a memory pool.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_poolProps_2, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemPoolProps) < (0)) __PYX_ERR(0, 24310, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_311cudaMemPoolCreate, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolCreate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[752])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolCreate, __pyx_t_4) < (0)) __PYX_ERR(0, 24310, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24407
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolDestroy(memPool):
 *     """ Destroys the specified memory pool.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_313cudaMemPoolDestroy, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolDestroy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[753])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolDestroy, __pyx_t_4) < (0)) __PYX_ERR(0, 24407, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24450
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetDefaultMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType):
 *     """ Returns the default memory pool for a given location and allocation type.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_location_2, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemLocation) < (0)) __PYX_ERR(0, 24450, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_typename, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationType) < (0)) __PYX_ERR(0, 24450, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_315cudaMemGetDefaultMemPool, 0, __pyx_mstate_global->__pyx_n_u_cudaMemGetDefaultMemPool, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[754])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemGetDefaultMemPool, __pyx_t_18) < (0)) __PYX_ERR(0, 24450, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24492
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemGetMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType):
 *     """ Gets the current memory pool for a given memory location and allocation type.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_location_2, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemLocation) < (0)) __PYX_ERR(0, 24492, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_typename, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationType) < (0)) __PYX_ERR(0, 24492, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_317cudaMemGetMemPool, 0, __pyx_mstate_global->__pyx_n_u_cudaMemGetMemPool, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[755])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemGetMemPool, __pyx_t_4) < (0)) __PYX_ERR(0, 24492, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24543
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemSetMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType, memPool):
 *     """ Sets the current memory pool for a memory location and allocation type.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_location_2, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemLocation) < (0)) __PYX_ERR(0, 24543, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_typename, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationType) < (0)) __PYX_ERR(0, 24543, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_319cudaMemSetMemPool, 0, __pyx_mstate_global->__pyx_n_u_cudaMemSetMemPool, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[756])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemSetMemPool, __pyx_t_18) < (0)) __PYX_ERR(0, 24543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24607
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMallocFromPoolAsync(size_t size, memPool, stream):
 *     """ Allocates memory from a specified pool with stream ordered semantics.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_321cudaMallocFromPoolAsync, 0, __pyx_mstate_global->__pyx_n_u_cudaMallocFromPoolAsync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[757])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMallocFromPoolAsync, __pyx_t_18) < (0)) __PYX_ERR(0, 24607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24663
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolExportToShareableHandle(memPool, handleType not None : cudaMemAllocationHandleType, unsigned int flags):
 *     """ Exports a memory pool to the requested handle type.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_handleType, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationHandleType) < (0)) __PYX_ERR(0, 24663, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_323cudaMemPoolExportToShareableHandle, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolExportToShareableHand, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[758])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolExportToShareableHand, __pyx_t_4) < (0)) __PYX_ERR(0, 24663, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24717
 *     return (_dict_cudaError_t[err], cyshareableHandle.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : cudaMemAllocationHandleType, unsigned int flags):
 *     """ imports a memory pool from a shared handle.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_handleType, __pyx_mstate_global->__pyx_n_u_cudaMemAllocationHandleType) < (0)) __PYX_ERR(0, 24717, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_325cudaMemPoolImportFromShareableHandle, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolImportFromShareableHa, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[759])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolImportFromShareableHa, __pyx_t_18) < (0)) __PYX_ERR(0, 24717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24758
 *     return (_dict_cudaError_t[err], memPool)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolExportPointer(ptr):
 *     """ Export data to share a memory pool allocation between processes.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_327cudaMemPoolExportPointer, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolExportPointer, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[760])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolExportPointer, __pyx_t_18) < (0)) __PYX_ERR(0, 24758, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":24792
 *     return (_dict_cudaError_t[err], exportData)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExportData]):
 *     """ Import a memory pool allocation from another process.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 24792, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_exportData, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemPoolPtrExportDat) < (0)) __PYX_ERR(0, 24792, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_329cudaMemPoolImportPointer, 0, __pyx_mstate_global->__pyx_n_u_cudaMemPoolImportPointer, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[761])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24792, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaMemPoolImportPointer, __pyx_t_4) < (0)) __PYX_ERR(0, 24792, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24842
 *     return (_dict_cudaError_t[err], ptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaPointerGetAttributes(ptr):
 *     """ Returns attributes about a specified pointer.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_331cudaPointerGetAttributes, 0, __pyx_mstate_global->__pyx_n_u_cudaPointerGetAttributes, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[762])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaPointerGetAttributes, __pyx_t_4) < (0)) __PYX_ERR(0, 24842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24911
 *     return (_dict_cudaError_t[err], attributes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceCanAccessPeer(int device, int peerDevice):
 *     """ Queries if a device may directly access a peer device's memory.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_333cudaDeviceCanAccessPeer, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceCanAccessPeer, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[763])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceCanAccessPeer, __pyx_t_4) < (0)) __PYX_ERR(0, 24911, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24947
 *     return (_dict_cudaError_t[err], canAccessPeer)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags):
 *     """ Enables direct access to memory allocations on a peer device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_335cudaDeviceEnablePeerAccess, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceEnablePeerAccess, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[764])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceEnablePeerAccess, __pyx_t_4) < (0)) __PYX_ERR(0, 24947, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":24995
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceDisablePeerAccess(int peerDevice):
 *     """ Disables direct access to memory allocations on a peer device.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_337cudaDeviceDisablePeerAccess, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceDisablePeerAccess, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[765])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceDisablePeerAccess, __pyx_t_4) < (0)) __PYX_ERR(0, 24995, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25021
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsUnregisterResource(resource):
 *     """ Unregisters a graphics resource for access by CUDA.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_339cudaGraphicsUnregisterResource, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsUnregisterResource, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[766])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsUnregisterResource, __pyx_t_4) < (0)) __PYX_ERR(0, 25021, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25057
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags):
 *     """ Set usage flags for mapping a graphics resource.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_341cudaGraphicsResourceSetMapFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResourceSetMapFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[767])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResourceSetMapFlags, __pyx_t_4) < (0)) __PYX_ERR(0, 25057, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25110
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsMapResources(int count, resources, stream):
 *     """ Map graphics resources for access by CUDA.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_343cudaGraphicsMapResources, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapResources, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[768])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsMapResources, __pyx_t_4) < (0)) __PYX_ERR(0, 25110, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25170
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsUnmapResources(int count, resources, stream):
 *     """ Unmap graphics resources.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_345cudaGraphicsUnmapResources, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsUnmapResources, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[769])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsUnmapResources, __pyx_t_4) < (0)) __PYX_ERR(0, 25170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25228
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedPointer(resource):
 *     """ Get an device pointer through which to access a mapped graphics resource.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_347cudaGraphicsResourceGetMappedPointer, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResourceGetMappedPoi, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[770])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResourceGetMappedPoi, __pyx_t_4) < (0)) __PYX_ERR(0, 25228, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25271
 *     return (_dict_cudaError_t[err], devPtr, size)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel):
 *     """ Get an array through which to access a subresource of a mapped graphics resource.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_349cudaGraphicsSubResourceGetMappedArray, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsSubResourceGetMapped, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[771])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsSubResourceGetMapped, __pyx_t_4) < (0)) __PYX_ERR(0, 25271, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25325
 *     return (_dict_cudaError_t[err], array)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedMipmappedArray(resource):
 *     """ Get a mipmapped array through which to access a mapped graphics resource.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_351cudaGraphicsResourceGetMappedMipmappedArray, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResourceGetMappedMip, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[772])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResourceGetMappedMip, __pyx_t_4) < (0)) __PYX_ERR(0, 25325, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25368
 *     return (_dict_cudaError_t[err], mipmappedArray)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetChannelDesc(array):
 *     """ Get the channel descriptor of an array.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_353cudaGetChannelDesc, 0, __pyx_mstate_global->__pyx_n_u_cudaGetChannelDesc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[773])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetChannelDesc, __pyx_t_4) < (0)) __PYX_ERR(0, 25368, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25405
 *     return (_dict_cudaError_t[err], desc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateChannelDesc(int x, int y, int z, int w, f not None : cudaChannelFormatKind):
 *     """ Returns a channel descriptor using the specified format.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_f_2, __pyx_mstate_global->__pyx_n_u_cudaChannelFormatKind) < (0)) __PYX_ERR(0, 25405, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_355cudaCreateChannelDesc, 0, __pyx_mstate_global->__pyx_n_u_cudaCreateChannelDesc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[774])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 25405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaCreateChannelDesc, __pyx_t_18) < (0)) __PYX_ERR(0, 25405, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":25451
 *     return (cudaError_t.cudaSuccess, wrapper)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateTextureObject(pResDesc : Optional[cudaResourceDesc], pTexDesc : Optional[cudaTextureDesc], pResViewDesc : Optional[cudaResourceViewDesc]):
 *     """ Creates a texture object.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 25451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pResDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaResourceDesc) < (0)) __PYX_ERR(0, 25451, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pTexDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaTextureDesc) < (0)) __PYX_ERR(0, 25451, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pResViewDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaResourceViewDesc) < (0)) __PYX_ERR(0, 25451, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_357cudaCreateTextureObject, 0, __pyx_mstate_global->__pyx_n_u_cudaCreateTextureObject, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[775])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaCreateTextureObject, __pyx_t_4) < (0)) __PYX_ERR(0, 25451, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25693
 *     return (_dict_cudaError_t[err], pTexObject)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroyTextureObject(texObject):
 *     """ Destroys a texture object.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_359cudaDestroyTextureObject, 0, __pyx_mstate_global->__pyx_n_u_cudaDestroyTextureObject, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[776])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDestroyTextureObject, __pyx_t_4) < (0)) __PYX_ERR(0, 25693, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25725
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectResourceDesc(texObject):
 *     """ Returns a texture object's resource descriptor.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_361cudaGetTextureObjectResourceDesc, 0, __pyx_mstate_global->__pyx_n_u_cudaGetTextureObjectResourceDesc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[777])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetTextureObjectResourceDesc, __pyx_t_4) < (0)) __PYX_ERR(0, 25725, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25763
 *     return (_dict_cudaError_t[err], pResDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectTextureDesc(texObject):
 *     """ Returns a texture object's texture descriptor.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_363cudaGetTextureObjectTextureDesc, 0, __pyx_mstate_global->__pyx_n_u_cudaGetTextureObjectTextureDesc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[778])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetTextureObjectTextureDesc, __pyx_t_4) < (0)) __PYX_ERR(0, 25763, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25801
 *     return (_dict_cudaError_t[err], pTexDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetTextureObjectResourceViewDesc(texObject):
 *     """ Returns a texture object's resource view descriptor.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_365cudaGetTextureObjectResourceViewDesc, 0, __pyx_mstate_global->__pyx_n_u_cudaGetTextureObjectResourceView, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[779])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25801, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetTextureObjectResourceView, __pyx_t_4) < (0)) __PYX_ERR(0, 25801, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":25840
 *     return (_dict_cudaError_t[err], pResViewDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]):
 *     """ Creates a surface object.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 25840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pResDesc, __pyx_mstate_global->__pyx_kp_u_Optional_cudaResourceDesc) < (0)) __PYX_ERR(0, 25840, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_367cudaCreateSurfaceObject, 0, __pyx_mstate_global->__pyx_n_u_cudaCreateSurfaceObject, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[780])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 25840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaCreateSurfaceObject, __pyx_t_18) < (0)) __PYX_ERR(0, 25840, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":25879
 *     return (_dict_cudaError_t[err], pSurfObject)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDestroySurfaceObject(surfObject):
 *     """ Destroys a surface object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_369cudaDestroySurfaceObject, 0, __pyx_mstate_global->__pyx_n_u_cudaDestroySurfaceObject, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[781])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 25879, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDestroySurfaceObject, __pyx_t_18) < (0)) __PYX_ERR(0, 25879, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":25911
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetSurfaceObjectResourceDesc(surfObject):
 *     """ Returns a surface object's resource descriptor Returns the resource descriptor for the surface object specified by `surfObject`.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_371cudaGetSurfaceObjectResourceDesc, 0, __pyx_mstate_global->__pyx_n_u_cudaGetSurfaceObjectResourceDesc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[782])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 25911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetSurfaceObjectResourceDesc, __pyx_t_18) < (0)) __PYX_ERR(0, 25911, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":25946
 *     return (_dict_cudaError_t[err], pResDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDriverGetVersion():
 *     """ Returns the latest version of CUDA supported by the driver.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_373cudaDriverGetVersion, 0, __pyx_mstate_global->__pyx_n_u_cudaDriverGetVersion, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[783])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 25946, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDriverGetVersion, __pyx_t_18) < (0)) __PYX_ERR(0, 25946, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":25976
 *     return (_dict_cudaError_t[err], driverVersion)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaRuntimeGetVersion():
 *     """ Returns the CUDA Runtime version.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_375cudaRuntimeGetVersion, 0, __pyx_mstate_global->__pyx_n_u_cudaRuntimeGetVersion, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[784])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 25976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaRuntimeGetVersion, __pyx_t_18) < (0)) __PYX_ERR(0, 25976, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26009
 *     return (_dict_cudaError_t[err], runtimeVersion)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsRegisterCallback(callbackFunc, userData):
 *     """ Register a callback function to receive error log messages.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_377cudaLogsRegisterCallback, 0, __pyx_mstate_global->__pyx_n_u_cudaLogsRegisterCallback, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[785])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLogsRegisterCallback, __pyx_t_18) < (0)) __PYX_ERR(0, 26009, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26046
 *     return (_dict_cudaError_t[err], callback_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsUnregisterCallback(callback):
 *     """ Unregister a log message callback.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_379cudaLogsUnregisterCallback, 0, __pyx_mstate_global->__pyx_n_u_cudaLogsUnregisterCallback, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[786])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLogsUnregisterCallback, __pyx_t_18) < (0)) __PYX_ERR(0, 26046, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26072
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsCurrent(unsigned int flags):
 *     """ Sets log iterator to point to the end of log buffer, where the next message would be written.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_381cudaLogsCurrent, 0, __pyx_mstate_global->__pyx_n_u_cudaLogsCurrent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[787])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLogsCurrent, __pyx_t_18) < (0)) __PYX_ERR(0, 26072, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26095
 *     return (_dict_cudaError_t[err], iterator_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsDumpToFile(iterator : Optional[cudaLogIterator], char* pathToFile, unsigned int flags):
 *     """ Dump accumulated driver logs into a file.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_iterator, __pyx_mstate_global->__pyx_kp_u_Optional_cudaLogIterator) < (0)) __PYX_ERR(0, 26095, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_383cudaLogsDumpToFile, 0, __pyx_mstate_global->__pyx_n_u_cudaLogsDumpToFile, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[788])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLogsDumpToFile, __pyx_t_4) < (0)) __PYX_ERR(0, 26095, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26136
 *     return (_dict_cudaError_t[err], iterator)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLogsDumpToMemory(iterator : Optional[cudaLogIterator], char* buffer, size_t size, unsigned int flags):
 *     """ Dump accumulated driver logs into a buffer.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_iterator, __pyx_mstate_global->__pyx_kp_u_Optional_cudaLogIterator) < (0)) __PYX_ERR(0, 26136, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_385cudaLogsDumpToMemory, 0, __pyx_mstate_global->__pyx_n_u_cudaLogsDumpToMemory, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[789])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLogsDumpToMemory, __pyx_t_18) < (0)) __PYX_ERR(0, 26136, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26191
 *     return (_dict_cudaError_t[err], iterator, size)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphCreate(unsigned int flags):
 *     """ Creates a graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_387cudaGraphCreate, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphCreate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[790])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphCreate, __pyx_t_18) < (0)) __PYX_ERR(0, 26191, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26220
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddKernelNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Creates a kernel execution node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 26220, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaKernelNodeParams) < (0)) __PYX_ERR(0, 26220, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_389cudaGraphAddKernelNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddKernelNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[791])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddKernelNode, __pyx_t_4) < (0)) __PYX_ERR(0, 26220, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26339
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeGetParams(node):
 *     """ Returns a kernel node's parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_391cudaGraphKernelNodeGetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeGetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[792])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeGetParams, __pyx_t_4) < (0)) __PYX_ERR(0, 26339, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26385
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Sets a kernel node's parameters.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaKernelNodeParams) < (0)) __PYX_ERR(0, 26385, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_393cudaGraphKernelNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[793])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeSetParams, __pyx_t_18) < (0)) __PYX_ERR(0, 26385, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26420
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeCopyAttributes(hDst, hSrc):
 *     """ Copies attributes from source node to destination node.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_395cudaGraphKernelNodeCopyAttributes, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeCopyAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[794])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeCopyAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 26420, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26464
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID):
 *     """ Queries node attribute.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttrID) < (0)) __PYX_ERR(0, 26464, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_397cudaGraphKernelNodeGetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeGetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[795])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeGetAttribute, __pyx_t_4) < (0)) __PYX_ERR(0, 26464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26505
 *     return (_dict_cudaError_t[err], value_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : Optional[cudaKernelNodeAttrValue]):
 *     """ Sets node attribute.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaKernelNodeAttrID) < (0)) __PYX_ERR(0, 26505, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_value, __pyx_mstate_global->__pyx_kp_u_Optional_cudaKernelNodeAttrValue) < (0)) __PYX_ERR(0, 26505, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_399cudaGraphKernelNodeSetAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeSetAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[796])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphKernelNodeSetAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 26505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26544
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pCopyParams : Optional[cudaMemcpy3DParms]):
 *     """ Creates a memcpy node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 26544, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pCopyParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 26544, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_401cudaGraphAddMemcpyNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemcpyNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[797])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemcpyNode, __pyx_t_4) < (0)) __PYX_ERR(0, 26544, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26617
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Creates a 1D memcpy node and adds it to a graph.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 26617, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 26617, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_403cudaGraphAddMemcpyNode1D, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemcpyNode1D, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[798])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemcpyNode1D, __pyx_t_18) < (0)) __PYX_ERR(0, 26617, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26709
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeGetParams(node):
 *     """ Returns a memcpy node's parameters.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_405cudaGraphMemcpyNodeGetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphMemcpyNodeGetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[799])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphMemcpyNodeGetParams, __pyx_t_18) < (0)) __PYX_ERR(0, 26709, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26746
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms]):
 *     """ Sets a memcpy node's parameters.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 26746, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_407cudaGraphMemcpyNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphMemcpyNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[800])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphMemcpyNodeSetParams, __pyx_t_4) < (0)) __PYX_ERR(0, 26746, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26781
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Sets a memcpy node's parameters to perform a 1-dimensional copy.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 26781, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_409cudaGraphMemcpyNodeSetParams1D, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphMemcpyNodeSetParams1D, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[801])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphMemcpyNodeSetParams1D, __pyx_t_18) < (0)) __PYX_ERR(0, 26781, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26840
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemsetNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pMemsetParams : Optional[cudaMemsetParams]):
 *     """ Creates a memset node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 26840, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pMemsetParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemsetParams) < (0)) __PYX_ERR(0, 26840, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_411cudaGraphAddMemsetNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemsetNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[802])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26840, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemsetNode, __pyx_t_4) < (0)) __PYX_ERR(0, 26840, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26907
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemsetNodeGetParams(node):
 *     """ Returns a memset node's parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_413cudaGraphMemsetNodeGetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphMemsetNodeGetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[803])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26907, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphMemsetNodeGetParams, __pyx_t_4) < (0)) __PYX_ERR(0, 26907, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":26944
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]):
 *     """ Sets a memset node's parameters.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemsetParams) < (0)) __PYX_ERR(0, 26944, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_415cudaGraphMemsetNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphMemsetNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[804])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphMemsetNodeSetParams, __pyx_t_18) < (0)) __PYX_ERR(0, 26944, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":26979
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddHostNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Creates a host execution node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 26979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 26979, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaHostNodeParams) < (0)) __PYX_ERR(0, 26979, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_417cudaGraphAddHostNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddHostNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[805])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 26979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddHostNode, __pyx_t_4) < (0)) __PYX_ERR(0, 26979, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27047
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphHostNodeGetParams(node):
 *     """ Returns a host node's parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_419cudaGraphHostNodeGetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphHostNodeGetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[806])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphHostNodeGetParams, __pyx_t_4) < (0)) __PYX_ERR(0, 27047, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27084
 *     return (_dict_cudaError_t[err], pNodeParams)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Sets a host node's parameters.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaHostNodeParams) < (0)) __PYX_ERR(0, 27084, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_421cudaGraphHostNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphHostNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[807])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphHostNodeSetParams, __pyx_t_18) < (0)) __PYX_ERR(0, 27084, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":27119
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, childGraph):
 *     """ Creates a child graph node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 27119, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_423cudaGraphAddChildGraphNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddChildGraphNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[808])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddChildGraphNode, __pyx_t_4) < (0)) __PYX_ERR(0, 27119, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27197
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphChildGraphNodeGetGraph(node):
 *     """ Gets a handle to the embedded graph of a child graph node.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_425cudaGraphChildGraphNodeGetGraph, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphNodeGetGraph, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[809])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphChildGraphNodeGetGraph, __pyx_t_4) < (0)) __PYX_ERR(0, 27197, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27239
 *     return (_dict_cudaError_t[err], pGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies):
 *     """ Creates an empty node and adds it to a graph.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 27239, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_427cudaGraphAddEmptyNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEmptyNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[810])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEmptyNode, __pyx_t_18) < (0)) __PYX_ERR(0, 27239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":27307
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event):
 *     """ Creates an event record node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 27307, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_429cudaGraphAddEventRecordNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEventRecordNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[811])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEventRecordNode, __pyx_t_4) < (0)) __PYX_ERR(0, 27307, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27384
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventRecordNodeGetEvent(node):
 *     """ Returns the event associated with an event record node.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_431cudaGraphEventRecordNodeGetEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphEventRecordNodeGetEvent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[812])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphEventRecordNodeGetEvent, __pyx_t_4) < (0)) __PYX_ERR(0, 27384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27421
 *     return (_dict_cudaError_t[err], event_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventRecordNodeSetEvent(node, event):
 *     """ Sets an event record node's event.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_433cudaGraphEventRecordNodeSetEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphEventRecordNodeSetEvent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[813])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphEventRecordNodeSetEvent, __pyx_t_4) < (0)) __PYX_ERR(0, 27421, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27463
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event):
 *     """ Creates an event wait node and adds it to a graph.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 27463, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_435cudaGraphAddEventWaitNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEventWaitNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[814])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddEventWaitNode, __pyx_t_18) < (0)) __PYX_ERR(0, 27463, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":27543
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventWaitNodeGetEvent(node):
 *     """ Returns the event associated with an event wait node.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_437cudaGraphEventWaitNodeGetEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphEventWaitNodeGetEvent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[815])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphEventWaitNodeGetEvent, __pyx_t_18) < (0)) __PYX_ERR(0, 27543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":27580
 *     return (_dict_cudaError_t[err], event_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphEventWaitNodeSetEvent(node, event):
 *     """ Sets an event wait node's event.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_439cudaGraphEventWaitNodeSetEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphEventWaitNodeSetEvent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[816])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphEventWaitNodeSetEvent, __pyx_t_18) < (0)) __PYX_ERR(0, 27580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":27622
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Creates an external semaphore signal node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 27622, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalSemaphoreSi) < (0)) __PYX_ERR(0, 27622, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_441cudaGraphAddExternalSemaphoresSignalNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddExternalSemaphoresSi_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[817])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddExternalSemaphoresSi_2, __pyx_t_4) < (0)) __PYX_ERR(0, 27622, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27691
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode):
 *     """ Returns an external semaphore signal node's parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_443cudaGraphExternalSemaphoresSignalNodeGetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExternalSemaphoresSigna, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[818])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExternalSemaphoresSigna, __pyx_t_4) < (0)) __PYX_ERR(0, 27691, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27734
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Sets an external semaphore signal node's parameters.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalSemaphoreSi) < (0)) __PYX_ERR(0, 27734, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_445cudaGraphExternalSemaphoresSignalNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExternalSemaphoresSigna_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[819])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExternalSemaphoresSigna_2, __pyx_t_18) < (0)) __PYX_ERR(0, 27734, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":27770
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Creates an external semaphore wait node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 27770, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalSemaphoreWa) < (0)) __PYX_ERR(0, 27770, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_447cudaGraphAddExternalSemaphoresWaitNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddExternalSemaphoresWa_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[820])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddExternalSemaphoresWa_2, __pyx_t_4) < (0)) __PYX_ERR(0, 27770, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27839
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode):
 *     """ Returns an external semaphore wait node's parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_449cudaGraphExternalSemaphoresWaitNodeGetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExternalSemaphoresWaitN, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[821])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExternalSemaphoresWaitN, __pyx_t_4) < (0)) __PYX_ERR(0, 27839, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":27882
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Sets an external semaphore wait node's parameters.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalSemaphoreWa) < (0)) __PYX_ERR(0, 27882, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_451cudaGraphExternalSemaphoresWaitNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExternalSemaphoresWaitN_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[822])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExternalSemaphoresWaitN_2, __pyx_t_18) < (0)) __PYX_ERR(0, 27882, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":27918
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaMemAllocNodeParams]):
 *     """ Creates an allocation node and adds it to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 27918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 27918, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemAllocNodeParams) < (0)) __PYX_ERR(0, 27918, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_453cudaGraphAddMemAllocNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemAllocNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[823])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemAllocNode, __pyx_t_4) < (0)) __PYX_ERR(0, 27918, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28026
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemAllocNodeGetParams(node):
 *     """ Returns a memory alloc node's parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_455cudaGraphMemAllocNodeGetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAllocNodeGetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[824])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAllocNodeGetParams, __pyx_t_4) < (0)) __PYX_ERR(0, 28026, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28066
 *     return (_dict_cudaError_t[err], params_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dptr):
 *     """ Creates a memory free node and adds it to a graph.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 28066, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_457cudaGraphAddMemFreeNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemFreeNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[825])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddMemFreeNode, __pyx_t_18) < (0)) __PYX_ERR(0, 28066, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28153
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphMemFreeNodeGetParams(node):
 *     """ Returns a memory free node's parameters.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_459cudaGraphMemFreeNodeGetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphMemFreeNodeGetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[826])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphMemFreeNodeGetParams, __pyx_t_18) < (0)) __PYX_ERR(0, 28153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28191
 *     return (_dict_cudaError_t[err], dptr_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGraphMemTrim(int device):
 *     """ Free unused memory that was cached on the specified device for use with graphs back to the OS.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_461cudaDeviceGraphMemTrim, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGraphMemTrim, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[827])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGraphMemTrim, __pyx_t_18) < (0)) __PYX_ERR(0, 28191, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28217
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType):
 *     """ Query asynchronous allocation attributes related to graphs.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttributeType) < (0)) __PYX_ERR(0, 28217, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_463cudaDeviceGetGraphMemAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetGraphMemAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[828])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetGraphMemAttribute, __pyx_t_4) < (0)) __PYX_ERR(0, 28217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":28265
 *     return (_dict_cudaError_t[err], cyvalue.pyObj())
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType, value):
 *     """ Set asynchronous allocation attributes related to graphs.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaGraphMemAttributeType) < (0)) __PYX_ERR(0, 28265, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_465cudaDeviceSetGraphMemAttribute, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetGraphMemAttribute, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[829])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceSetGraphMemAttribute, __pyx_t_18) < (0)) __PYX_ERR(0, 28265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28304
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphClone(originalGraph):
 *     """ Clones a graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_467cudaGraphClone, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphClone, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[830])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphClone, __pyx_t_18) < (0)) __PYX_ERR(0, 28304, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28351
 *     return (_dict_cudaError_t[err], pGraphClone)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeFindInClone(originalNode, clonedGraph):
 *     """ Finds a cloned version of a node.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_469cudaGraphNodeFindInClone, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeFindInClone, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[831])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeFindInClone, __pyx_t_18) < (0)) __PYX_ERR(0, 28351, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28405
 *     return (_dict_cudaError_t[err], pNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetType(node):
 *     """ Returns a node's type.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_471cudaGraphNodeGetType, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetType, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[832])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetType, __pyx_t_18) < (0)) __PYX_ERR(0, 28405, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28442
 *     return (_dict_cudaError_t[err], cudaGraphNodeType(pType))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetContainingGraph(hNode):
 *     """ Returns the graph that contains a given graph node.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_473cudaGraphNodeGetContainingGraph, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetContainingGraph, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[833])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28442, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetContainingGraph, __pyx_t_18) < (0)) __PYX_ERR(0, 28442, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28480
 *     return (_dict_cudaError_t[err], phGraph)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetLocalId(hNode):
 *     """ Returns the node id of a given graph node.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_475cudaGraphNodeGetLocalId, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetLocalId, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[834])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetLocalId, __pyx_t_18) < (0)) __PYX_ERR(0, 28480, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28519
 *     return (_dict_cudaError_t[err], nodeId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetToolsId(hNode):
 *     """ Returns an id used by tools to identify a given node.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_477cudaGraphNodeGetToolsId, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetToolsId, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[835])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetToolsId, __pyx_t_18) < (0)) __PYX_ERR(0, 28519, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28554
 *     return (_dict_cudaError_t[err], toolsNodeId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetId(hGraph):
 *     """ Returns the id of a given graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_479cudaGraphGetId, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphGetId, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[836])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28554, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphGetId, __pyx_t_18) < (0)) __PYX_ERR(0, 28554, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28592
 *     return (_dict_cudaError_t[err], graphID)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecGetId(hGraphExec):
 *     """ Returns the id of a given graph exec.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_481cudaGraphExecGetId, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecGetId, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[837])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecGetId, __pyx_t_18) < (0)) __PYX_ERR(0, 28592, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28631
 * 
 * @cython.embedsignature(True)
 * def cudaGraphGetNodes(graph, size_t numNodes = 0):             # <<<<<<<<<<<<<<
 *     """ Returns a graph's nodes.
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);

  /* "cuda/bindings/runtime.pyx":28630
 *     return (_dict_cudaError_t[err], graphID)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetNodes(graph, size_t numNodes = 0):
 *     """ Returns a graph's nodes.
*/
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_483cudaGraphGetNodes, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphGetNodes, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[838])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphGetNodes, __pyx_t_18) < (0)) __PYX_ERR(0, 28630, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28687
 * 
 * @cython.embedsignature(True)
 * def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0):             # <<<<<<<<<<<<<<
 *     """ Returns a graph's root nodes.
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);

  /* "cuda/bindings/runtime.pyx":28686
 *     return (_dict_cudaError_t[err], pynodes, numNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0):
 *     """ Returns a graph's root nodes.
*/
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_485cudaGraphGetRootNodes, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphGetRootNodes, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[839])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphGetRootNodes, __pyx_t_18) < (0)) __PYX_ERR(0, 28686, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28743
 * 
 * @cython.embedsignature(True)
 * def cudaGraphGetEdges(graph, size_t numEdges = 0):             # <<<<<<<<<<<<<<
 *     """ Returns a graph's dependency edges.
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);

  /* "cuda/bindings/runtime.pyx":28742
 *     return (_dict_cudaError_t[err], pypRootNodes, pNumRootNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphGetEdges(graph, size_t numEdges = 0):
 *     """ Returns a graph's dependency edges.
*/
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_487cudaGraphGetEdges, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphGetEdges, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[840])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphGetEdges, __pyx_t_18) < (0)) __PYX_ERR(0, 28742, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28830
 * 
 * @cython.embedsignature(True)
 * def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0):             # <<<<<<<<<<<<<<
 *     """ Returns a node's dependencies.
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);

  /* "cuda/bindings/runtime.pyx":28829
 *     return (_dict_cudaError_t[err], pyfrom_, pyto, pyedgeData, numEdges)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0):
 *     """ Returns a node's dependencies.
*/
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28829, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_489cudaGraphNodeGetDependencies, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetDependencies, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[841])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28829, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetDependencies, __pyx_t_18) < (0)) __PYX_ERR(0, 28829, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28904
 * 
 * @cython.embedsignature(True)
 * def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0):             # <<<<<<<<<<<<<<
 *     """ Returns a node's dependent nodes.
 * 
*/
  __pyx_t_18 = __Pyx_PyLong_FromSize_t(((size_t)0)); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);

  /* "cuda/bindings/runtime.pyx":28903
 *     return (_dict_cudaError_t[err], pypDependencies, pyedgeData, pNumDependencies)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0):
 *     """ Returns a node's dependent nodes.
*/
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_18); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_491cudaGraphNodeGetDependentNodes, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetDependentNodes, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[842])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetDependentNodes, __pyx_t_18) < (0)) __PYX_ERR(0, 28903, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":28977
 *     return (_dict_cudaError_t[err], pypDependentNodes, pyedgeData, pNumDependentNodes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies):
 *     """ Adds dependency edges to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 28977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_from, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 28977, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_to, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 28977, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_edgeData, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphEdgeData) < (0)) __PYX_ERR(0, 28977, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_493cudaGraphAddDependencies, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddDependencies, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[843])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddDependencies, __pyx_t_4) < (0)) __PYX_ERR(0, 28977, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":29067
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphRemoveDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies):
 *     """ Removes dependency edges from a graph.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_from, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 29067, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_to, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 29067, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_edgeData, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphEdgeData) < (0)) __PYX_ERR(0, 29067, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_495cudaGraphRemoveDependencies, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphRemoveDependencies, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[844])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphRemoveDependencies, __pyx_t_18) < (0)) __PYX_ERR(0, 29067, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":29160
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDestroyNode(node):
 *     """ Remove a node from the graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_497cudaGraphDestroyNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphDestroyNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[845])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphDestroyNode, __pyx_t_18) < (0)) __PYX_ERR(0, 29160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":29196
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiate(graph, unsigned long long flags):
 *     """ Creates an executable graph from a graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_499cudaGraphInstantiate, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[846])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiate, __pyx_t_18) < (0)) __PYX_ERR(0, 29196, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":29297
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiateWithFlags(graph, unsigned long long flags):
 *     """ Creates an executable graph from a graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_501cudaGraphInstantiateWithFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateWithFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[847])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateWithFlags, __pyx_t_18) < (0)) __PYX_ERR(0, 29297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":29400
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraphInstantiateParams]):
 *     """ Creates an executable graph from a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_instantiateParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaGraphInstantiatePar) < (0)) __PYX_ERR(0, 29400, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_503cudaGraphInstantiateWithParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateWithParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[848])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphInstantiateWithParams, __pyx_t_4) < (0)) __PYX_ERR(0, 29400, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":29544
 *     return (_dict_cudaError_t[err], pGraphExec)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecGetFlags(graphExec):
 *     """ Query the instantiation flags of an executable graph.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_505cudaGraphExecGetFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecGetFlags, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[849])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecGetFlags, __pyx_t_4) < (0)) __PYX_ERR(0, 29544, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":29584
 *     return (_dict_cudaError_t[err], flags)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaKernelNodeParams]):
 *     """ Sets the parameters for a kernel node in the given graphExec.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaKernelNodeParams) < (0)) __PYX_ERR(0, 29584, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_507cudaGraphExecKernelNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecKernelNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[850])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecKernelNodeSetParams, __pyx_t_18) < (0)) __PYX_ERR(0, 29584, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":29663
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemcpy3DParms]):
 *     """ Sets the parameters for a memcpy node in the given graphExec.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemcpy3DParms) < (0)) __PYX_ERR(0, 29663, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_509cudaGraphExecMemcpyNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecMemcpyNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[851])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecMemcpyNodeSetParams, __pyx_t_4) < (0)) __PYX_ERR(0, 29663, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":29725
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, kind not None : cudaMemcpyKind):
 *     """ Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_kind_2, __pyx_mstate_global->__pyx_n_u_cudaMemcpyKind) < (0)) __PYX_ERR(0, 29725, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_511cudaGraphExecMemcpyNodeSetParams1D, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecMemcpyNodeSetParams_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[852])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecMemcpyNodeSetParams_2, __pyx_t_18) < (0)) __PYX_ERR(0, 29725, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":29795
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemsetParams]):
 *     """ Sets the parameters for a memset node in the given graphExec.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaMemsetParams) < (0)) __PYX_ERR(0, 29795, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_513cudaGraphExecMemsetNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecMemsetNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[853])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecMemsetNodeSetParams, __pyx_t_4) < (0)) __PYX_ERR(0, 29795, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":29862
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaHostNodeParams]):
 *     """ Sets the parameters for a host node in the given graphExec.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_pNodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaHostNodeParams) < (0)) __PYX_ERR(0, 29862, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_515cudaGraphExecHostNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecHostNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[854])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecHostNodeSetParams, __pyx_t_18) < (0)) __PYX_ERR(0, 29862, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":29914
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph):
 *     """ Updates node parameters in the child graph node in the given graphExec.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_517cudaGraphExecChildGraphNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecChildGraphNodeSetPa, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[855])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecChildGraphNodeSetPa, __pyx_t_18) < (0)) __PYX_ERR(0, 29914, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":29981
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event):
 *     """ Sets the event for an event record node in the given graphExec.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_519cudaGraphExecEventRecordNodeSetEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecEventRecordNodeSetE, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[856])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 29981, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecEventRecordNodeSetE, __pyx_t_18) < (0)) __PYX_ERR(0, 29981, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30041
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event):
 *     """ Sets the event for an event wait node in the given graphExec.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_521cudaGraphExecEventWaitNodeSetEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecEventWaitNodeSetEve, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[857])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecEventWaitNodeSetEve, __pyx_t_18) < (0)) __PYX_ERR(0, 30041, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30101
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]):
 *     """ Sets the parameters for an external semaphore signal node in the given graphExec.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalSemaphoreSi) < (0)) __PYX_ERR(0, 30101, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_523cudaGraphExecExternalSemaphoresSignalNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecExternalSemaphoresS, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[858])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecExternalSemaphoresS, __pyx_t_4) < (0)) __PYX_ERR(0, 30101, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":30158
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]):
 *     """ Sets the parameters for an external semaphore wait node in the given graphExec.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaExternalSemaphoreWa) < (0)) __PYX_ERR(0, 30158, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_525cudaGraphExecExternalSemaphoresWaitNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecExternalSemaphoresW, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[859])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecExternalSemaphoresW, __pyx_t_18) < (0)) __PYX_ERR(0, 30158, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30215
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled):
 *     """ Enables or disables the specified node in the given graphExec.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_527cudaGraphNodeSetEnabled, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeSetEnabled, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[860])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeSetEnabled, __pyx_t_18) < (0)) __PYX_ERR(0, 30215, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30275
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeGetEnabled(hGraphExec, hNode):
 *     """ Query whether a node in the given graphExec is enabled.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_529cudaGraphNodeGetEnabled, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetEnabled, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[861])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeGetEnabled, __pyx_t_18) < (0)) __PYX_ERR(0, 30275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30331
 *     return (_dict_cudaError_t[err], isEnabled)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecUpdate(hGraphExec, hGraph):
 *     """ Check whether an executable graph can be updated with a graph and perform the update if possible.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_531cudaGraphExecUpdate, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[862])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecUpdate, __pyx_t_18) < (0)) __PYX_ERR(0, 30331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30504
 *     return (_dict_cudaError_t[err], resultInfo)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphUpload(graphExec, stream):
 *     """ Uploads an executable graph in a stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_533cudaGraphUpload, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphUpload, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[863])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphUpload, __pyx_t_18) < (0)) __PYX_ERR(0, 30504, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30550
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphLaunch(graphExec, stream):
 *     """ Launches an executable graph in a stream.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_535cudaGraphLaunch, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphLaunch, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[864])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphLaunch, __pyx_t_18) < (0)) __PYX_ERR(0, 30550, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30601
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecDestroy(graphExec):
 *     """ Destroys an executable graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_537cudaGraphExecDestroy, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecDestroy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[865])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecDestroy, __pyx_t_18) < (0)) __PYX_ERR(0, 30601, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30633
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDestroy(graph):
 *     """ Destroys a graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_539cudaGraphDestroy, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphDestroy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[866])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphDestroy, __pyx_t_18) < (0)) __PYX_ERR(0, 30633, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30665
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags):
 *     """ Write a DOT file describing graph structure.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_541cudaGraphDebugDotPrint, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotPrint, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[867])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphDebugDotPrint, __pyx_t_18) < (0)) __PYX_ERR(0, 30665, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30702
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags):
 *     """ Create a user object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_543cudaUserObjectCreate, 0, __pyx_mstate_global->__pyx_n_u_cudaUserObjectCreate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[868])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaUserObjectCreate, __pyx_t_18) < (0)) __PYX_ERR(0, 30702, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30761
 *     return (_dict_cudaError_t[err], object_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectRetain(object, unsigned int count):
 *     """ Retain a reference to a user object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_545cudaUserObjectRetain, 0, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRetain, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[869])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRetain, __pyx_t_18) < (0)) __PYX_ERR(0, 30761, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30800
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaUserObjectRelease(object, unsigned int count):
 *     """ Release a reference to a user object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_547cudaUserObjectRelease, 0, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRelease, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[870])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaUserObjectRelease, __pyx_t_18) < (0)) __PYX_ERR(0, 30800, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30842
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags):
 *     """ Retain a reference to a user object from a graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_549cudaGraphRetainUserObject, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphRetainUserObject, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[871])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphRetainUserObject, __pyx_t_18) < (0)) __PYX_ERR(0, 30842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30895
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphReleaseUserObject(graph, object, unsigned int count):
 *     """ Release a user object reference from a graph.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_551cudaGraphReleaseUserObject, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphReleaseUserObject, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[872])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphReleaseUserObject, __pyx_t_18) < (0)) __PYX_ERR(0, 30895, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":30943
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphAddNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Adds a node of arbitrary type to a graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 30943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pDependencies, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphNode_t_l) < (0)) __PYX_ERR(0, 30943, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_dependencyData, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaGraphEdgeData) < (0)) __PYX_ERR(0, 30943, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaGraphNodeParams) < (0)) __PYX_ERR(0, 30943, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_553cudaGraphAddNode, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphAddNode, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[873])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 30943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphAddNode, __pyx_t_4) < (0)) __PYX_ERR(0, 30943, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31036
 *     return (_dict_cudaError_t[err], pGraphNode)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphNodeSetParams(node, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Update's a graph node's parameters.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaGraphNodeParams) < (0)) __PYX_ERR(0, 31036, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_555cudaGraphNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[874])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 31036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphNodeSetParams, __pyx_t_18) < (0)) __PYX_ERR(0, 31036, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":31077
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphExecNodeSetParams(graphExec, node, nodeParams : Optional[cudaGraphNodeParams]):
 *     """ Update's a graph node's parameters in an instantiated graph.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 31077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_nodeParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaGraphNodeParams) < (0)) __PYX_ERR(0, 31077, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_557cudaGraphExecNodeSetParams, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphExecNodeSetParams, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[875])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31077, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphExecNodeSetParams, __pyx_t_4) < (0)) __PYX_ERR(0, 31077, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31134
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, unsigned int flags):
 *     """ Create a conditional handle.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_559cudaGraphConditionalHandleCreate, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleCreate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[876])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleCreate, __pyx_t_4) < (0)) __PYX_ERR(0, 31134, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31183
 *     return (_dict_cudaError_t[err], pHandle_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphConditionalHandleCreate_v2(graph, ctx, unsigned int defaultLaunchValue, unsigned int flags):
 *     """ Create a conditional handle.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_561cudaGraphConditionalHandleCreate_v2, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleCreate_2, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[877])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphConditionalHandleCreate_2, __pyx_t_4) < (0)) __PYX_ERR(0, 31183, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31243
 *     return (_dict_cudaError_t[err], pHandle_out)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDriverEntryPoint(char* symbol, unsigned long long flags):
 *     """ Returns the requested driver API function pointer.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_563cudaGetDriverEntryPoint, 0, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPoint, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[878])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPoint, __pyx_t_4) < (0)) __PYX_ERR(0, 31243, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31344
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetDriverEntryPointByVersion(char* symbol, unsigned int cudaVersion, unsigned long long flags):
 *     """ Returns the requested driver API function pointer by CUDA version.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_565cudaGetDriverEntryPointByVersion, 0, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPointByVersion, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[879])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetDriverEntryPointByVersion, __pyx_t_4) < (0)) __PYX_ERR(0, 31344, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31449
 *     return (_dict_cudaError_t[err], funcPtr, cudaDriverEntryPointQueryResult(driverStatus))
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryLoadData(code, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions):
 *     """ Load a library with specified code and options.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_jitOptions, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaJitOption_lis) < (0)) __PYX_ERR(0, 31449, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_jitOptionsValues, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 31449, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_libraryOptions, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaLibraryOption) < (0)) __PYX_ERR(0, 31449, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_libraryOptionValues, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 31449, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_567cudaLibraryLoadData, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryLoadData, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[880])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 31449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryLoadData, __pyx_t_18) < (0)) __PYX_ERR(0, 31449, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":31545
 *     return (_dict_cudaError_t[err], library)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions):
 *     """ Load a library with specified file and options.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 31545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_jitOptions, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaJitOption_lis) < (0)) __PYX_ERR(0, 31545, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_jitOptionsValues, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 31545, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_libraryOptions, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaLibraryOption) < (0)) __PYX_ERR(0, 31545, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_libraryOptionValues, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_Any_list_Any) < (0)) __PYX_ERR(0, 31545, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_569cudaLibraryLoadFromFile, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryLoadFromFile, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[881])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryLoadFromFile, __pyx_t_4) < (0)) __PYX_ERR(0, 31545, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31640
 *     return (_dict_cudaError_t[err], library)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryUnload(library):
 *     """ Unloads a library.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_571cudaLibraryUnload, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryUnload, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[882])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryUnload, __pyx_t_4) < (0)) __PYX_ERR(0, 31640, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31672
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetKernel(library, char* name):
 *     """ Returns a kernel handle.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_573cudaLibraryGetKernel, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetKernel, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[883])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetKernel, __pyx_t_4) < (0)) __PYX_ERR(0, 31672, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31713
 *     return (_dict_cudaError_t[err], pKernel)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetGlobal(library, char* name):
 *     """ Returns a global device pointer.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_575cudaLibraryGetGlobal, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetGlobal, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[884])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetGlobal, __pyx_t_4) < (0)) __PYX_ERR(0, 31713, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31762
 *     return (_dict_cudaError_t[err], dptr, numbytes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetManaged(library, char* name):
 *     """ Returns a pointer to managed memory.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_577cudaLibraryGetManaged, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetManaged, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[885])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetManaged, __pyx_t_4) < (0)) __PYX_ERR(0, 31762, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31813
 *     return (_dict_cudaError_t[err], dptr, numbytes)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetUnifiedFunction(library, char* symbol):
 *     """ Returns a pointer to a unified function.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_579cudaLibraryGetUnifiedFunction, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetUnifiedFunction, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[886])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetUnifiedFunction, __pyx_t_4) < (0)) __PYX_ERR(0, 31813, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31856
 *     return (_dict_cudaError_t[err], fptr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryGetKernelCount(lib):
 *     """ Returns the number of kernels within a library.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_581cudaLibraryGetKernelCount, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetKernelCount, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[887])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryGetKernelCount, __pyx_t_4) < (0)) __PYX_ERR(0, 31856, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31893
 *     return (_dict_cudaError_t[err], count)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaLibraryEnumerateKernels(unsigned int numKernels, lib):
 *     """ Retrieve the kernel handles within a library.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_583cudaLibraryEnumerateKernels, 0, __pyx_mstate_global->__pyx_n_u_cudaLibraryEnumerateKernels, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[888])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaLibraryEnumerateKernels, __pyx_t_4) < (0)) __PYX_ERR(0, 31893, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":31943
 *     return (_dict_cudaError_t[err], pykernels)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaKernelSetAttributeForDevice(kernel, attr not None : cudaFuncAttribute, int value, int device):
 *     """ Sets information about a kernel.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 31943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_attr, __pyx_mstate_global->__pyx_n_u_cudaFuncAttribute) < (0)) __PYX_ERR(0, 31943, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_585cudaKernelSetAttributeForDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaKernelSetAttributeForDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[889])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 31943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaKernelSetAttributeForDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 31943, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32046
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetDevResource(int device, typename not None : cudaDevResourceType):
 *     """ Get device resources.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_typename, __pyx_mstate_global->__pyx_n_u_cudaDevResourceType) < (0)) __PYX_ERR(0, 32046, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_587cudaDeviceGetDevResource, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetDevResource, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[890])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetDevResource, __pyx_t_4) < (0)) __PYX_ERR(0, 32046, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32082
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[cudaDevResource], unsigned int flags, unsigned int minCount):
 *     """ Splits `cudaDevResourceTypeSm` resources.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_input, __pyx_mstate_global->__pyx_kp_u_Optional_cudaDevResource) < (0)) __PYX_ERR(0, 32082, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_589cudaDevSmResourceSplitByCount, 0, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitByCount, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[891])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplitByCount, __pyx_t_18) < (0)) __PYX_ERR(0, 32082, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32199
 *     return (_dict_cudaError_t[err], pyresult, cynbGroups, remaining)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevSmResourceSplit(unsigned int nbGroups, input_ : Optional[cudaDevResource], unsigned int flags, groupParams : Optional[cudaDevSmResourceGroupParams]):
 *     """ Splits a `cudaDevResourceTypeSm` resource into structured groups.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_input, __pyx_mstate_global->__pyx_kp_u_Optional_cudaDevResource) < (0)) __PYX_ERR(0, 32199, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_groupParams, __pyx_mstate_global->__pyx_kp_u_Optional_cudaDevSmResourceGroupP) < (0)) __PYX_ERR(0, 32199, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_591cudaDevSmResourceSplit, 0, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplit, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[892])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDevSmResourceSplit, __pyx_t_4) < (0)) __PYX_ERR(0, 32199, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32356
 *     return (_dict_cudaError_t[err], pyresult, remainder)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDevResourceGenerateDesc(resources : Optional[tuple[cudaDevResource] | list[cudaDevResource]], unsigned int nbResources):
 *     """ Generate a resource descriptor.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_resources, __pyx_mstate_global->__pyx_kp_u_Optional_tuple_cudaDevResource_l) < (0)) __PYX_ERR(0, 32356, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_593cudaDevResourceGenerateDesc, 0, __pyx_mstate_global->__pyx_n_u_cudaDevResourceGenerateDesc, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[893])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDevResourceGenerateDesc, __pyx_t_18) < (0)) __PYX_ERR(0, 32356, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32420
 *     return (_dict_cudaError_t[err], phDesc)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGreenCtxCreate(desc, int device, unsigned int flags):
 *     """ Creates a green context with a specified set of resources.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_595cudaGreenCtxCreate, 0, __pyx_mstate_global->__pyx_n_u_cudaGreenCtxCreate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[894])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGreenCtxCreate, __pyx_t_18) < (0)) __PYX_ERR(0, 32420, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32480
 *     return (_dict_cudaError_t[err], phCtx)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxDestroy(ctx):
 *     """ Destroy a execution context.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_597cudaExecutionCtxDestroy, 0, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxDestroy, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[895])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxDestroy, __pyx_t_18) < (0)) __PYX_ERR(0, 32480, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32536
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetDevResource(ctx, typename not None : cudaDevResourceType):
 *     """ Get context resources.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_typename, __pyx_mstate_global->__pyx_n_u_cudaDevResourceType) < (0)) __PYX_ERR(0, 32536, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_599cudaExecutionCtxGetDevResource, 0, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxGetDevResource, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[896])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxGetDevResource, __pyx_t_4) < (0)) __PYX_ERR(0, 32536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32579
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetDevice(ctx):
 *     """ Returns the device handle for the execution context.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_601cudaExecutionCtxGetDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxGetDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[897])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxGetDevice, __pyx_t_4) < (0)) __PYX_ERR(0, 32579, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32618
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxGetId(ctx):
 *     """ Returns the unique Id associated with the execution context supplied.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_603cudaExecutionCtxGetId, 0, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxGetId, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[898])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxGetId, __pyx_t_4) < (0)) __PYX_ERR(0, 32618, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32658
 *     return (_dict_cudaError_t[err], ctxId)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxStreamCreate(ctx, unsigned int flags, int priority):
 *     """ Creates a stream and initializes it for the given execution context.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_605cudaExecutionCtxStreamCreate, 0, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxStreamCreate, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[899])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32658, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxStreamCreate, __pyx_t_4) < (0)) __PYX_ERR(0, 32658, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32730
 *     return (_dict_cudaError_t[err], phStream)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxSynchronize(ctx):
 *     """ Block for the specified execution context's tasks to complete.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_607cudaExecutionCtxSynchronize, 0, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxSynchronize, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[900])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32730, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxSynchronize, __pyx_t_4) < (0)) __PYX_ERR(0, 32730, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32769
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaStreamGetDevResource(hStream, typename not None : cudaDevResourceType):
 *     """ Get stream resources.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_typename, __pyx_mstate_global->__pyx_n_u_cudaDevResourceType) < (0)) __PYX_ERR(0, 32769, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_609cudaStreamGetDevResource, 0, __pyx_mstate_global->__pyx_n_u_cudaStreamGetDevResource, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[901])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaStreamGetDevResource, __pyx_t_18) < (0)) __PYX_ERR(0, 32769, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32814
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxRecordEvent(ctx, event):
 *     """ Records an event for the specified execution context.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_611cudaExecutionCtxRecordEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxRecordEvent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[902])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxRecordEvent, __pyx_t_18) < (0)) __PYX_ERR(0, 32814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32870
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaExecutionCtxWaitEvent(ctx, event):
 *     """ Make an execution context wait on an event.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_613cudaExecutionCtxWaitEvent, 0, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxWaitEvent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[903])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32870, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaExecutionCtxWaitEvent, __pyx_t_18) < (0)) __PYX_ERR(0, 32870, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32925
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaDeviceGetExecutionCtx(int device):
 *     """ Returns the execution context for a device.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_615cudaDeviceGetExecutionCtx, 0, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetExecutionCtx, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[904])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32925, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaDeviceGetExecutionCtx, __pyx_t_18) < (0)) __PYX_ERR(0, 32925, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":32961
 *     return (_dict_cudaError_t[err], ctx)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]):
 *     """"""
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 32961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_pExportTableId, __pyx_mstate_global->__pyx_kp_u_Optional_cudaUUID_t) < (0)) __PYX_ERR(0, 32961, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_617cudaGetExportTable, 0, __pyx_mstate_global->__pyx_n_u_cudaGetExportTable, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[905])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetExportTable, __pyx_t_4) < (0)) __PYX_ERR(0, 32961, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":32972
 *     return (_dict_cudaError_t[err], ppExportTable)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGetKernel(entryFuncAddr):
 *     """ Get pointer to device kernel that matches entry function `entryFuncAddr`.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_619cudaGetKernel, 0, __pyx_mstate_global->__pyx_n_u_cudaGetKernel, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[906])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGetKernel, __pyx_t_4) < (0)) __PYX_ERR(0, 32972, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33013
 *     return (_dict_cudaError_t[err], kernelPtr)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz):
 *     """ Returns a :py:obj:`~.cudaPitchedPtr` based on input parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_621make_cudaPitchedPtr, 0, __pyx_mstate_global->__pyx_n_u_make_cudaPitchedPtr, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[907])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33013, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_make_cudaPitchedPtr, __pyx_t_4) < (0)) __PYX_ERR(0, 33013, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33050
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaPos(size_t x, size_t y, size_t z):
 *     """ Returns a :py:obj:`~.cudaPos` based on input parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_623make_cudaPos, 0, __pyx_mstate_global->__pyx_n_u_make_cudaPos, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[908])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33050, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_make_cudaPos, __pyx_t_4) < (0)) __PYX_ERR(0, 33050, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33083
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def make_cudaExtent(size_t w, size_t h, size_t d):
 *     """ Returns a :py:obj:`~.cudaExtent` based on input parameters.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_625make_cudaExtent, 0, __pyx_mstate_global->__pyx_n_u_make_cudaExtent, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[909])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_make_cudaExtent, __pyx_t_4) < (0)) __PYX_ERR(0, 33083, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33117
 *     return wrapper
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsEGLRegisterImage(image, unsigned int flags):
 *     """ Registers an EGL image.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_627cudaGraphicsEGLRegisterImage, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsEGLRegisterImage, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[910])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsEGLRegisterImage, __pyx_t_4) < (0)) __PYX_ERR(0, 33117, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33190
 *     return (_dict_cudaError_t[err], pCudaResource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerConnect(eglStream):
 *     """ Connect CUDA to EGLStream as a consumer.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_629cudaEGLStreamConsumerConnect, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerConnect, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[911])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerConnect, __pyx_t_4) < (0)) __PYX_ERR(0, 33190, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33230
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags):
 *     """ Connect CUDA to EGLStream as a consumer with given flags.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_631cudaEGLStreamConsumerConnectWithFlags, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerConnectWith, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[912])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerConnectWith, __pyx_t_4) < (0)) __PYX_ERR(0, 33230, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33274
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerDisconnect(conn):
 *     """ Disconnect CUDA as a consumer to EGLStream .
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_633cudaEGLStreamConsumerDisconnect, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerDisconnect, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[913])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerDisconnect, __pyx_t_4) < (0)) __PYX_ERR(0, 33274, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33308
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int timeout):
 *     """ Acquire an image frame from the EGLStream with CUDA as a consumer.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_635cudaEGLStreamConsumerAcquireFrame, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerAcquireFram, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[914])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerAcquireFram, __pyx_t_4) < (0)) __PYX_ERR(0, 33308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33371
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream):
 *     """ Releases the last frame acquired from the EGLStream.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_637cudaEGLStreamConsumerReleaseFrame, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerReleaseFram, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[915])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamConsumerReleaseFram, __pyx_t_4) < (0)) __PYX_ERR(0, 33371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33428
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerConnect(eglStream, width, height):
 *     """ Connect CUDA to EGLStream as a producer.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_639cudaEGLStreamProducerConnect, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamProducerConnect, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[916])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamProducerConnect, __pyx_t_4) < (0)) __PYX_ERR(0, 33428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33488
 *     return (_dict_cudaError_t[err], conn)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerDisconnect(conn):
 *     """ Disconnect CUDA as a producer to EGLStream .
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_641cudaEGLStreamProducerDisconnect, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamProducerDisconnect, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[917])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamProducerDisconnect, __pyx_t_4) < (0)) __PYX_ERR(0, 33488, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33522
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerPresentFrame(conn, eglframe not None : cudaEglFrame, pStream):
 *     """ Present a CUDA eglFrame to the EGLStream with CUDA as a producer.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_eglframe, __pyx_mstate_global->__pyx_n_u_cudaEglFrame) < (0)) __PYX_ERR(0, 33522, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_643cudaEGLStreamProducerPresentFrame, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamProducerPresentFram, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[918])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 33522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamProducerPresentFram, __pyx_t_18) < (0)) __PYX_ERR(0, 33522, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":33579
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEGLStreamProducerReturnFrame(conn, eglframe : Optional[cudaEglFrame], pStream):
 *     """ Return the CUDA eglFrame to the EGLStream last released by the consumer.
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 33579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_n_u_eglframe, __pyx_mstate_global->__pyx_kp_u_Optional_cudaEglFrame) < (0)) __PYX_ERR(0, 33579, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_645cudaEGLStreamProducerReturnFrame, 0, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamProducerReturnFrame, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[919])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_18);
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEGLStreamProducerReturnFrame, __pyx_t_4) < (0)) __PYX_ERR(0, 33579, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33631
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned int mipLevel):
 *     """ Get an eglFrame through which to access a registered EGL graphics resource.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_647cudaGraphicsResourceGetMappedEglFrame, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResourceGetMappedEgl, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[920])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsResourceGetMappedEgl, __pyx_t_4) < (0)) __PYX_ERR(0, 33631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33682
 *     return (_dict_cudaError_t[err], eglFrame)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaEventCreateFromEGLSync(eglSync, unsigned int flags):
 *     """ Creates an event from EGLSync object.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_649cudaEventCreateFromEGLSync, 0, __pyx_mstate_global->__pyx_n_u_cudaEventCreateFromEGLSync, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[921])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33682, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaEventCreateFromEGLSync, __pyx_t_4) < (0)) __PYX_ERR(0, 33682, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33735
 *     return (_dict_cudaError_t[err], phEvent)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaProfilerStart():
 *     """ Enable profiling.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_651cudaProfilerStart, 0, __pyx_mstate_global->__pyx_n_u_cudaProfilerStart, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[922])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaProfilerStart, __pyx_t_4) < (0)) __PYX_ERR(0, 33735, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33760
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaProfilerStop():
 *     """ Disable profiling.
*/
  __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_653cudaProfilerStop, 0, __pyx_mstate_global->__pyx_n_u_cudaProfilerStop, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[923])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaProfilerStop, __pyx_t_4) < (0)) __PYX_ERR(0, 33760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cuda/bindings/runtime.pyx":33785
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : cudaGLDeviceList):
 *     """ Gets the CUDA devices associated with the current OpenGL context.
*/
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_deviceList, __pyx_mstate_global->__pyx_n_u_cudaGLDeviceList) < (0)) __PYX_ERR(0, 33785, __pyx_L1_error)
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_655cudaGLGetDevices, 0, __pyx_mstate_global->__pyx_n_u_cudaGLGetDevices, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[924])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 33785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_18, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGLGetDevices, __pyx_t_18) < (0)) __PYX_ERR(0, 33785, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":33850
 *     return (_dict_cudaError_t[err], pCudaDeviceCount, pypCudaDevices)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsGLRegisterImage(image, target, unsigned int flags):
 *     """ Register an OpenGL texture or renderbuffer object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_657cudaGraphicsGLRegisterImage, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsGLRegisterImage, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[925])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 33850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsGLRegisterImage, __pyx_t_18) < (0)) __PYX_ERR(0, 33850, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":33947
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags):
 *     """ Registers an OpenGL buffer object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_659cudaGraphicsGLRegisterBuffer, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsGLRegisterBuffer, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[926])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 33947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsGLRegisterBuffer, __pyx_t_18) < (0)) __PYX_ERR(0, 33947, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":34001
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress):
 *     """ Gets the CUDA device associated with a VdpDevice.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_661cudaVDPAUGetDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaVDPAUGetDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[927])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 34001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaVDPAUGetDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 34001, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":34051
 *     return (_dict_cudaError_t[err], device)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress):
 *     """ Sets a CUDA device to use VDPAU interoperability.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_663cudaVDPAUSetVDPAUDevice, 0, __pyx_mstate_global->__pyx_n_u_cudaVDPAUSetVDPAUDevice, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[928])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 34051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaVDPAUSetVDPAUDevice, __pyx_t_18) < (0)) __PYX_ERR(0, 34051, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":34107
 *     return (_dict_cudaError_t[err],)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags):
 *     """ Register a VdpVideoSurface object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_665cudaGraphicsVDPAURegisterVideoSurface, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsVDPAURegisterVideoSu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[929])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 34107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsVDPAURegisterVideoSu, __pyx_t_18) < (0)) __PYX_ERR(0, 34107, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":34161
 *     return (_dict_cudaError_t[err], resource)
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags):
 *     """ Register a VdpOutputSurface object.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_667cudaGraphicsVDPAURegisterOutputSurface, 0, __pyx_mstate_global->__pyx_n_u_cudaGraphicsVDPAURegisterOutputS, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[930])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 34161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cudaGraphicsVDPAURegisterOutputS, __pyx_t_18) < (0)) __PYX_ERR(0, 34161, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":34216
 * 
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def getLocalRuntimeVersion():
 *     """ Returns the CUDA Runtime version of local shared library.
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_669getLocalRuntimeVersion, 0, __pyx_mstate_global->__pyx_n_u_getLocalRuntimeVersion, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[931])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 34216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_getLocalRuntimeVersion, __pyx_t_18) < (0)) __PYX_ERR(0, 34216, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_3__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaBindingsRuntimeGlobal___redu, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[932])); if (unlikely(!__pyx_t_18)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_18) < (0)) __PYX_ERR(2, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "self._allocated cannot be converted to a Python object for pickling"
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_25cudaBindingsRuntimeGlobal_5__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cudaBindingsRuntimeGlobal___sets, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[933])); if (unlikely(!__pyx_t_18)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_18) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":34255
 *         self._allocated.clear()
 * 
 * cdef cudaBindingsRuntimeGlobal m_global = cudaBindingsRuntimeGlobal()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_4 = NULL;
  __pyx_t_21 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_18 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal, __pyx_callargs+__pyx_t_21, (1-__pyx_t_21) | (__pyx_t_21*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 34255, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_18);
  }
  __Pyx_XGOTREF((PyObject *)__pyx_v_4cuda_8bindings_7runtime_m_global);
  __Pyx_DECREF_SET(__pyx_v_4cuda_8bindings_7runtime_m_global, ((struct __pyx_obj_4cuda_8bindings_7runtime_cudaBindingsRuntimeGlobal *)__pyx_t_18));
  __Pyx_GIVEREF((PyObject *)__pyx_t_18);
  __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":34258
 * 
 * 
 * @cython.embedsignature(True)             # <<<<<<<<<<<<<<
 * def sizeof(objType):
 *     """ Returns the size of provided CUDA Python structure in bytes
*/
  __pyx_t_18 = __Pyx_CyFunction_New(&__pyx_mdef_4cuda_8bindings_7runtime_671sizeof, 0, __pyx_mstate_global->__pyx_n_u_sizeof, NULL, __pyx_mstate_global->__pyx_n_u_cuda_bindings_runtime, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[934])); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 34258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_18);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_sizeof, __pyx_t_18) < (0)) __PYX_ERR(0, 34258, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /* "cuda/bindings/runtime.pyx":34583
 *     _add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter)
 *     return 0
 * _add_native_handle_getters()             # <<<<<<<<<<<<<<
 * 
*/
  __pyx_t_24 = __pyx_f_4cuda_8bindings_7runtime__add_native_handle_getters(); if (unlikely(__pyx_t_24 == ((int)-1) && PyErr_Occurred())) __PYX_ERR(0, 34583, __pyx_L1_error)

  /* "cuda/bindings/runtime.pyx":1
 * # SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.             # <<<<<<<<<<<<<<
 * # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
 * 
*/
  __pyx_t_18 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_18);
  if (PyDict_SetItem(__pyx_t_18, __pyx_mstate_global->__pyx_kp_u_cudaSetDevice_line_16557, __pyx_mstate_global->__pyx_kp_u_Set_device_to_be_used_for_GPU_e) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_18) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_XDECREF(__pyx_t_18);
  __Pyx_XDECREF(__pyx_t_19);
  __Pyx_XDECREF(__pyx_t_20);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init cuda.bindings.runtime", __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.runtime");
  }
  __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);
  __pyx_builtin_max = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_max); if (!__pyx_builtin_max) __PYX_ERR(1, 40, __pyx_L1_error)
  __pyx_builtin_zip = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_zip); if (!__pyx_builtin_zip) __PYX_ERR(1, 69, __pyx_L1_error)
  __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 7744, __pyx_L1_error)

  /* 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;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
  __Pyx_RefNannyFinishContext();
  return 0;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 15; } index[] = {{1},{135},{78},{130},{104},{78},{163},{133},{127},{127},{142},{156},{119},{73},{56},{132},{131},{129},{131},{112},{164},{96},{162},{158},{84},{127},{108},{124},{74},{153},{111},{125},{47},{27},{71},{74},{49},{50},{39},{40},{31},{21},{35},{37},{35},{37},{38},{33},{36},{32},{35},{66},{93},{44},{59},{41},{46},{32},{37},{27},{31},{29},{55},{36},{35},{33},{44},{50},{38},{32},{29},{36},{98},{44},{48},{13},{25},{13},{14},{12},{8},{114},{38},{41},{41},{47},{49},{41},{67},{63},{54},{43},{112},{151},{8},{8},{37},{33},{89},{129},{19},{1135},{4},{179},{44},{31},{25},{38},{24},{22},{38},{38},{46},{41},{47},{45},{36},{29},{28},{33},{30},{25},{32},{25},{26},{34},{27},{31},{26},{26},{30},{29},{25},{20},{32},{64},{56},{72},{92},{88},{60},{56},{52},{60},{60},{56},{68},{64},{66},{180},{92},{106},{87},{739},{2283},{96},{38},{114},{97},{60},{40},{142},{107},{26},{52},{14},{25},{31},{18},{11},{19},{18},{17},{1},{0},{4},{3},{1},{6},{1},{18},{30},{14},{26},{28},{40},{21},{33},{8},{14},{26},{12},{24},{8},{12},{24},{20},{8},{8},{20},{19},{31},{11},{23},{16},{28},{11},{23},{14},{26},{8},{18},{30},{20},{11},{23},{14},{26},{19},{31},{36},{48},{14},{26},{13},{22},{34},{25},{16},{28},{36},{48},{29},{41},{20},{32},{26},{38},{14},{26},{17},{29},{14},{20},{32},{26},{13},{25},{21},{33},{6},{18},{19},{13},{19},{27},{23},{24},{22},{25},{28},{23},{24},{14},{14},{15},{17},{24},{20},{28},{22},{26},{22},{21},{21},{28},{25},{12},{24},{17},{29},{11},{23},{36},{48},{8},{20},{7},{19},{10},{22},{9},{21},{9},{19},{31},{15},{27},{16},{28},{18},{28},{40},{30},{21},{33},{45},{7},{31},{43},{7},{19},{6},{11},{23},{12},{24},{13},{25},{9},{21},{9},{21},{6},{18},{17},{29},{14},{26},{6},{14},{26},{16},{28},{12},{24},{8},{14},{26},{12},{24},{20},{14},{26},{15},{27},{13},{25},{9},{21},{8},{20},{4},{16},{5},{17},{8},{8},{20},{8},{20},{13},{25},{13},{25},{19},{31},{8},{20},{5},{17},{13},{25},{9},{21},{8},{12},{24},{20},{7},{19},{12},{24},{7},{19},{16},{28},{21},{33},{2},{25},{37},{34},{46},{25},{37},{30},{42},{17},{29},{20},{32},{8},{8},{20},{10},{22},{9},{14},{26},{9},{21},{9},{21},{10},{22},{11},{23},{7},{28},{40},{13},{25},{32},{44},{14},{26},{32},{44},{24},{36},{19},{5},{17},{39},{7},{19},{13},{25},{20},{32},{40},{20},{32},{12},{24},{18},{30},{9},{9},{15},{27},{21},{6},{18},{13},{25},{7},{19},{14},{26},{12},{24},{18},{30},{24},{36},{14},{26},{9},{21},{10},{22},{24},{36},{17},{29},{11},{23},{7},{21},{33},{19},{26},{8},{20},{16},{28},{16},{28},{29},{41},{28},{40},{14},{26},{22},{34},{10},{22},{15},{22},{34},{27},{15},{22},{34},{27},{15},{27},{20},{27},{39},{32},{15},{22},{34},{21},{33},{27},{15},{21},{33},{22},{34},{21},{33},{21},{33},{27},{15},{18},{30},{27},{20},{27},{39},{32},{16},{28},{21},{33},{30},{42},{11},{23},{16},{19},{31},{28},{9},{21},{17},{29},{33},{45},{23},{35},{9},{21},{22},{34},{21},{33},{8},{20},{9},{19},{31},{18},{30},{9},{21},{20},{32},{14},{26},{11},{23},{13},{25},{23},{35},{22},{34},{7},{19},{15},{27},{50},{7},{19},{32},{44},{19},{31},{64},{14},{26},{13},{25},{12},{24},{10},{22},{12},{24},{17},{29},{12},{15},{27},{24},{30},{42},{9},{9},{21},{5},{17},{13},{25},{12},{24},{32},{12},{24},{9},{21},{9},{21},{9},{21},{6},{18},{26},{23},{41},{53},{35},{8},{20},{9},{14},{26},{21},{11},{23},{14},{26},{14},{26},{27},{39},{14},{26},{8},{10},{22},{15},{27},{20},{13},{25},{12},{24},{12},{24},{22},{34},{30},{42},{25},{37},{11},{23},{20},{32},{41},{53},{6},{6},{18},{13},{25},{11},{23},{15},{27},{24},{36},{9},{21},{23},{35},{24},{36},{23},{35},{6},{10},{22},{18},{11},{12},{24},{12},{24},{12},{24},{28},{40},{11},{23},{31},{31},{30},{31},{9},{21},{13},{25},{12},{24},{7},{19},{18},{30},{67},{17},{29},{20},{32},{20},{25},{37},{32},{29},{41},{18},{30},{15},{27},{7},{14},{26},{19},{5},{25},{37},{10},{22},{17},{27},{39},{6},{17},{29},{11},{23},{12},{24},{13},{25},{9},{21},{9},{21},{18},{28},{40},{14},{19},{31},{13},{25},{12},{24},{19},{31},{24},{36},{13},{25},{36},{48},{12},{24},{10},{22},{16},{28},{17},{29},{22},{34},{22},{7},{19},{20},{32},{26},{38},{13},{25},{15},{27},{8},{20},{11},{23},{5},{7},{19},{6},{18},{8},{20},{4},{16},{11},{23},{8},{20},{8},{26},{38},{20},{5},{21},{33},{11},{23},{17},{4},{16},{8},{20},{4},{16},{8},{20},{4},{16},{3},{20},{14},{11},{10},{10},{10},{10},{10},{10},{9},{9},{10},{10},{10},{9},{9},{19},{39},{37},{42},{46},{41},{45},{31},{29},{34},{20},{33},{11},{10},{10},{10},{10},{10},{10},{14},{9},{9},{10},{10},{10},{14},{14},{14},{14},{15},{15},{9},{9},{9},{11},{17},{12},{6},{9},{27},{29},{16},{10},{11},{29},{31},{18},{18},{12},{30},{32},{19},{19},{10},{28},{30},{17},{17},{6},{24},{26},{13},{5},{4},{6},{24},{26},{13},{6},{24},{26},{13},{25},{43},{45},{31},{30},{27},{45},{47},{33},{19},{37},{39},{22},{40},{42},{32},{38},{50},{52},{26},{44},{46},{32},{28},{46},{48},{34},{26},{44},{46},{32},{20},{38},{40},{24},{42},{44},{19},{37},{39},{19},{37},{39},{28},{22},{40},{42},{7},{13},{13},{8},{11},{20},{9},{9},{27},{29},{16},{17},{35},{37},{24},{16},{34},{36},{23},{15},{33},{35},{22},{15},{11},{25},{18},{30},{64},{63},{66},{54},{58},{59},{57},{55},{56},{56},{58},{65},{64},{68},{65},{54},{55},{53},{66},{54},{60},{63},{69},{55},{54},{65},{11},{9},{6},{9},{9},{5},{12},{30},{32},{19},{12},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{30},{32},{19},{12},{13},{31},{33},{20},{13},{31},{33},{20},{13},{31},{33},{20},{30},{32},{19},{12},{30},{32},{19},{12},{30},{32},{19},{12},{30},{32},{19},{12},{30},{32},{19},{12},{30},{32},{19},{12},{30},{32},{19},{12},{30},{32},{19},{11},{29},{31},{18},{11},{12},{30},{32},{19},{29},{31},{18},{11},{29},{31},{18},{11},{29},{31},{18},{11},{29},{31},{18},{11},{29},{31},{18},{11},{29},{31},{18},{11},{29},{31},{18},{10},{5},{16},{18},{4},{9},{10},{5},{9},{8},{13},{8},{8},{9},{11},{6},{10},{15},{5},{8},{6},{6},{6},{8},{7},{5},{6},{10},{7},{8},{7},{6},{7},{11},{8},{8},{7},{11},{11},{8},{12},{12},{13},{16},{33},{17},{6},{11},{10},{13},{17},{18},{11},{5},{19},{10},{13},{33},{4},{26},{17},{23},{11},{6},{4},{14},{17},{11},{10},{18},{5},{4},{5},{3},{7},{6},{4},{22},{40},{42},{29},{18},{24},{28},{27},{21},{20},{21},{19},{24},{16},{16},{24},{16},{30},{17},{28},{16},{27},{45},{47},{34},{15},{25},{38},{43},{45},{32},{25},{22},{17},{35},{37},{24},{24},{11},{29},{31},{18},{18},{25},{43},{45},{32},{32},{17},{35},{37},{24},{25},{43},{45},{32},{27},{25},{35},{19},{22},{22},{29},{27},{27},{27},{27},{29},{35},{35},{29},{29},{21},{22},{25},{43},{45},{21},{20},{20},{11},{15},{18},{19},{21},{39},{41},{28},{21},{26},{25},{25},{27},{43},{43},{44},{40},{40},{40},{41},{41},{41},{29},{45},{45},{49},{49},{45},{49},{45},{49},{45},{45},{46},{42},{42},{42},{43},{43},{43},{46},{24},{42},{44},{31},{16},{27},{34},{40},{33},{15},{22},{24},{31},{25},{25},{43},{45},{32},{15},{21},{23},{23},{29},{12},{25},{28},{24},{24},{27},{31},{27},{44},{20},{24},{33},{33},{22},{37},{28},{34},{28},{28},{44},{41},{21},{42},{33},{38},{33},{31},{21},{25},{28},{35},{36},{21},{39},{40},{40},{32},{21},{26},{26},{28},{22},{32},{24},{14},{36},{23},{23},{23},{37},{22},{22},{22},{35},{19},{31},{40},{34},{39},{43},{36},{35},{28},{29},{36},{36},{35},{28},{28},{29},{28},{40},{41},{33},{36},{35},{34},{37},{28},{35},{34},{29},{36},{36},{35},{35},{34},{34},{37},{38},{28},{28},{31},{29},{32},{28},{31},{40},{41},{33},{29},{38},{29},{26},{41},{31},{21},{31},{30},{21},{17},{47},{31},{49},{19},{22},{22},{22},{22},{22},{22},{22},{22},{22},{22},{22},{21},{21},{21},{21},{39},{43},{35},{36},{27},{20},{27},{32},{44},{30},{28},{29},{19},{29},{38},{35},{46},{29},{15},{21},{39},{41},{28},{28},{27},{44},{19},{26},{21},{28},{34},{18},{36},{38},{25},{17},{30},{29},{28},{31},{38},{49},{51},{28},{22},{29},{35},{42},{45},{35},{37},{24},{30},{48},{50},{37},{27},{36},{43},{24},{42},{44},{31},{14},{22},{23},{15},{27},{26},{34},{22},{23},{24},{27},{24},{25},{30},{52},{35},{18},{20},{32},{51},{34},{25},{21},{28},{32},{36},{22},{25},{17},{14},{20},{24},{28},{17},{14},{32},{34},{21},{35},{15},{22},{30},{22},{22},{23},{24},{30},{18},{20},{28},{20},{21},{37},{31},{27},{34},{39},{20},{33},{28},{37},{31},{33},{28},{31},{33},{32},{18},{19},{22},{22},{22},{25},{22},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{29},{27},{27},{27},{27},{27},{27},{30},{30},{30},{30},{27},{27},{19},{19},{20},{22},{26},{25},{25},{28},{25},{22},{25},{19},{41},{45},{46},{44},{48},{46},{41},{45},{41},{44},{48},{28},{24},{41},{44},{48},{41},{44},{48},{28},{24},{30},{35},{34},{33},{34},{37},{39},{38},{30},{33},{34},{37},{30},{33},{34},{37},{22},{25},{25},{25},{30},{35},{34},{33},{34},{37},{39},{38},{30},{33},{34},{37},{30},{33},{34},{37},{22},{25},{26},{22},{12},{16},{21},{21},{15},{33},{35},{22},{16},{19},{37},{39},{26},{28},{29},{29},{23},{30},{28},{33},{21},{17},{22},{32},{26},{24},{22},{23},{22},{15},{32},{22},{24},{27},{35},{18},{27},{34},{24},{27},{26},{28},{27},{29},{29},{30},{25},{23},{21},{26},{31},{27},{36},{32},{23},{27},{21},{34},{28},{27},{28},{33},{27},{29},{22},{30},{29},{29},{31},{27},{27},{31},{27},{18},{26},{19},{37},{30},{28},{22},{23},{22},{23},{30},{21},{31},{28},{22},{29},{28},{36},{31},{29},{35},{22},{19},{30},{25},{28},{26},{29},{29},{28},{28},{29},{33},{22},{26},{17},{31},{18},{25},{27},{21},{17},{21},{26},{28},{24},{33},{29},{30},{27},{31},{31},{25},{31},{27},{31},{35},{39},{23},{30},{33},{31},{27},{30},{31},{33},{33},{23},{20},{23},{26},{29},{29},{23},{25},{27},{24},{16},{21},{16},{32},{31},{32},{25},{30},{11},{21},{15},{26},{24},{16},{16},{22},{20},{21},{14},{15},{22},{23},{25},{43},{45},{32},{24},{20},{20},{21},{23},{41},{43},{30},{11},{18},{22},{40},{42},{29},{29},{23},{30},{25},{21},{27},{28},{27},{25},{10},{28},{30},{17},{28},{46},{48},{35},{27},{33},{41},{28},{46},{48},{35},{28},{37},{41},{41},{44},{36},{36},{39},{42},{36},{43},{54},{56},{20},{38},{40},{27},{27},{31},{38},{49},{51},{31},{41},{41},{41},{44},{40},{39},{42},{45},{50},{53},{37},{39},{44},{55},{57},{46},{57},{59},{33},{40},{51},{53},{46},{35},{37},{42},{53},{55},{44},{55},{57},{31},{38},{49},{51},{44},{23},{41},{43},{30},{30},{20},{19},{35},{38},{40},{33},{34},{47},{40},{35},{18},{20},{8},{13},{13},{12},{22},{17},{36},{50},{20},{43},{46},{46},{37},{38},{37},{18},{36},{38},{25},{13},{24},{21},{23},{25},{21},{20},{22},{26},{14},{21},{16},{19},{28},{25},{16},{14},{18},{22},{26},{31},{41},{35},{36},{18},{13},{18},{18},{23},{23},{32},{28},{16},{18},{18},{13},{16},{26},{32},{32},{36},{31},{26},{43},{24},{41},{21},{38},{27},{44},{25},{42},{57},{40},{55},{38},{20},{37},{22},{39},{24},{41},{23},{40},{22},{24},{41},{39},{22},{39},{16},{33},{31},{32},{33},{32},{14},{26},{19},{23},{22},{32},{35},{31},{26},{44},{46},{33},{28},{15},{22},{43},{37},{46},{44},{29},{36},{38},{42},{38},{38},{29},{22},{23},{30},{35},{16},{20},{21},{39},{41},{28},{28},{17},{20},{38},{40},{27},{32},{32},{30},{30},{36},{20},{36},{34},{50},{48},{21},{18},{30},{32},{32},{34},{32},{26},{19},{24},{41},{39},{39},{36},{41},{39},{49},{25},{29},{32},{39},{50},{52},{26},{15},{22},{46},{46},{44},{44},{17},{14},{17},{21},{26},{26},{20},{43},{25},{40},{36},{30},{39},{25},{36},{47},{45},{26},{29},{47},{49},{36},{26},{27},{29},{30},{33},{24},{31},{31},{31},{29},{31},{28},{30},{39},{35},{31},{28},{25},{43},{45},{32},{15},{30},{34},{31},{30},{27},{25},{29},{28},{28},{30},{28},{28},{24},{31},{28},{30},{23},{23},{23},{20},{19},{37},{39},{26},{23},{22},{17},{28},{22},{22},{28},{35},{33},{22},{21},{23},{25},{24},{23},{23},{26},{15},{22},{26},{27},{44},{25},{15},{23},{11},{18},{20},{29},{29},{29},{29},{29},{29},{28},{28},{27},{20},{24},{28},{32},{24},{25},{29},{33},{41},{38},{37},{37},{43},{36},{31},{22},{40},{42},{29},{29},{37},{26},{30},{38},{37},{18},{13},{20},{19},{21},{26},{12},{30},{32},{19},{24},{16},{18},{20},{38},{40},{27},{36},{38},{25},{16},{23},{24},{22},{24},{24},{18},{24},{27},{14},{27},{19},{21},{21},{39},{41},{28},{20},{21},{19},{19},{37},{39},{26},{18},{30},{22},{20},{16},{20},{20},{22},{21},{30},{23},{24},{23},{20},{29},{17},{19},{25},{18},{24},{13},{30},{30},{22},{15},{17},{16},{20},{23},{41},{39},{56},{34},{48},{39},{36},{50},{52},{31},{20},{22},{40},{42},{29},{38},{40},{27},{31},{12},{30},{32},{19},{19},{19},{37},{35},{52},{30},{44},{21},{25},{40},{35},{32},{46},{44},{48},{27},{36},{50},{40},{24},{42},{44},{31},{22},{40},{42},{29},{18},{23},{30},{26},{29},{47},{49},{36},{29},{28},{27},{20},{20},{25},{21},{29},{44},{19},{36},{23},{40},{17},{17},{13},{31},{33},{20},{20},{9},{37},{28},{23},{30},{30},{23},{18},{15},{33},{35},{22},{12},{17},{19},{22},{40},{42},{29},{29},{18},{36},{38},{25},{15},{18},{20},{24},{26},{10},{12},{17},{15},{15},{23},{14},{17},{24},{15},{17},{35},{37},{24},{18},{26},{26},{31},{13},{26},{33},{26},{28},{35},{28},{22},{24},{42},{44},{31},{40},{42},{29},{27},{21},{28},{28},{24},{27},{19},{17},{19},{52},{35},{24},{41},{22},{40},{42},{29},{21},{21},{39},{41},{28},{24},{14},{17},{23},{21},{36},{22},{25},{15},{19},{25},{23},{27},{34},{26},{23},{33},{35},{22},{15},{31},{33},{30},{29},{26},{17},{34},{18},{24},{34},{20},{23},{36},{24},{16},{34},{36},{23},{24},{42},{44},{31},{41},{34},{39},{20},{37},{23},{17},{13},{20},{20},{25},{42},{21},{31},{41},{45},{43},{38},{42},{40},{31},{24},{25},{42},{17},{10},{12},{24},{17},{21},{26},{19},{24},{12},{17},{22},{39},{19},{37},{39},{26},{19},{23},{37},{39},{26},{17},{35},{37},{24},{16},{21},{21},{39},{41},{28},{22},{15},{20},{38},{40},{27},{20},{37},{17},{24},{22},{21},{38},{15},{19},{24},{22},{20},{14},{20},{38},{40},{27},{26},{24},{28},{14},{19},{24},{27},{37},{31},{27},{30},{17},{22},{16},{14},{20},{18},{21},{26},{10},{12},{17},{12},{17},{15},{16},{18},{36},{38},{25},{34},{36},{23},{39},{37},{26},{44},{46},{33},{33},{20},{38},{40},{27},{27},{23},{21},{41},{20},{35},{45},{54},{12},{30},{32},{19},{19},{21},{14},{32},{34},{21},{21},{39},{41},{28},{24},{7},{25},{27},{14},{16},{13},{17},{16},{23},{27},{23},{23},{23},{22},{22},{22},{21},{39},{39},{40},{28},{28},{28},{27},{27},{27},{29},{29},{29},{41},{41},{41},{41},{41},{42},{41},{30},{30},{30},{29},{29},{29},{31},{31},{31},{16},{34},{36},{23},{16},{21},{22},{30},{23},{20},{38},{40},{27},{22},{15},{13},{16},{15},{13},{21},{13},{18},{18},{28},{30},{29},{19},{28},{26},{30},{50},{33},{21},{32},{24},{16},{19},{37},{35},{32},{27},{40},{22},{29},{46},{20},{38},{40},{27},{21},{27},{28},{32},{23},{29},{34},{27},{24},{16},{25},{28},{17},{17},{20},{22},{24},{24},{19},{18},{15},{21},{21},{16},{21},{19},{15},{22},{32},{21},{52},{40},{35},{19},{12},{19},{11},{23},{21},{19},{37},{39},{26},{17},{24},{17},{24},{17},{22},{29},{18},{26},{18},{19},{25},{22},{15},{33},{35},{22},{21},{19},{37},{39},{26},{19},{17},{24},{17},{24},{17},{22},{29},{35},{10},{20},{19},{30},{21},{20},{25},{16},{23},{18},{23},{11},{48},{31},{20},{21},{19},{44},{51},{62},{64},{10},{8},{7},{6},{11},{12},{7},{11},{8},{16},{13},{10},{14},{14},{12},{13},{6},{10},{8},{6},{5},{3},{7},{6},{11},{10},{14},{18},{16},{6},{10},{10},{9},{8},{12},{12},{6},{14},{10},{11},{5},{9},{10},{10},{14},{11},{9},{14},{5},{15},{19},{7},{7},{16},{8},{8},{13},{3},{13},{4},{7},{6},{10},{7},{11},{17},{8},{6},{8},{12},{7},{6},{9},{12},{8},{7},{12},{23},{10},{12},{22},{8},{9},{6},{5},{9},{25},{16},{7},{14},{19},{9},{8},{16},{16},{6},{10},{6},{16},{7},{19},{23},{8},{8},{12},{15},{14},{17},{14},{15},{15},{17},{20},{7},{11},{19},{17},{14},{18},{12},{9},{14},{7},{13},{15},{17},{14},{10},{5},{9},{10},{11},{8},{7},{19},{17},{21},{7},{5},{9},{10},{7},{8},{12},{8},{11},{4},{10},{10},{14},{7},{11},{11},{19},{12},{20},{7},{1},{8},{9},{9},{14},{9},{6},{18},{8},{33},{12},{14},{5},{8},{4},{7},{7},{6},{11},{10},{16},{12},{13},{25},{15},{6},{8},{24},{31},{25},{35},{17},{27},{33},{21},{18},{25},{34},{41},{33},{20},{26},{23},{37},{24},{22},{34},{34},{39},{27},{17},{34},{37},{41},{39},{40},{23},{19},{22},{20},{37},{34},{38},{37},{34},{28},{29},{31},{31},{32},{30},{31},{23},{26},{26},{31},{19},{23},{22},{27},{29},{23},{15},{18},{24},{33},{27},{25},{21},{27},{29},{21},{20},{30},{22},{20},{22},{28},{19},{24},{25},{27},{29},{46},{29},{27},{31},{28},{27},{25},{25},{31},{25},{4},{22},{24},{11},{30},{28},{7},{6},{4},{8},{5},{7},{12},{13},{6},{8},{9},{10},{6},{6},{3},{4},{15},{15},{8},{14},{8},{9},{7},{8},{11},{3},{13},{4},{9},{3},{11},{5},{13},{9},{11},{9},{5},{9},{10},{6},{10},{6},{11},{12},{10},{10},{6},{5},{1},{2},{5},{5},{8},{10},{10},{16},{5},{7},{2},{6},{10},{4},{9},{5},{4},{5},{9},{7},{4},{8},{13},{18},{7},{22},{6},{12},{22},{31},{22},{27},{14},{17},{9},{7},{5},{13},{9},{16},{7},{11},{1},{6},{4},{6},{10},{5},{7},{10},{10},{4},{7},{10},{11},{6},{6},{3},{7},{8},{25},{10},{29},{11},{29},{21},{4},{2},{6},{3},{5},{5},{4},{10},{15},{6},{17},{7},{10},{17},{17},{9},{15},{13},{9},{5},{8},{12},{10},{16},{1},{12},{9},{6},{3},{10},{4},{11},{8},{9},{15},{21},{11},{13},{6},{5},{10},{3},{7},{19},{14},{19},{5},{6},{7},{21},{14},{8},{3},{18},{4},{8},{5},{15},{19},{12},{13},{3},{13},{26},{25},{11},{19},{7},{19},{12},{19},{12},{12},{24},{17},{19},{18},{12},{18},{19},{18},{18},{12},{15},{12},{24},{17},{13},{18},{27},{18},{14},{13},{8},{7},{16},{13},{11},{6},{14},{30},{20},{18},{6},{13},{14},{8},{19},{18},{5},{8},{10},{16},{15},{6},{14},{17},{11},{8},{4},{10},{10},{15},{2},{20},{19},{4},{8},{8},{11},{4},{12},{6},{10},{4},{29},{16},{13},{8},{9},{11},{15},{19},{8},{10},{13},{10},{9},{17},{8},{6},{15},{7},{9},{8},{14},{17},{12},{9},{27},{3},{7},{6},{10},{6},{6},{2},{10},{13},{12},{10},{9},{9},{1},{6},{12},{14},{7},{11},{16},{13},{13},{7},{14},{6},{6},{11},{10},{10},{11},{5},{7},{13},{5},{11},{16},{18},{13},{6},{11},{8},{12},{7},{11},{8},{10},{5},{6},{3},{38},{20},{5},{11},{6},{10},{6},{4},{10},{7},{9},{13},{11},{8},{8},{11},{11},{12},{5},{4},{5},{8},{4},{10},{10},{8},{4},{24},{6},{7},{7},{3},{6},{10},{7},{5},{6},{5},{7},{7},{11},{11},{6},{5},{8},{7},{6},{7},{12},{5},{13},{7},{10},{9},{8},{4},{8},{8},{7},{15},{5},{7},{9},{3},{14},{13},{14},{13},{8},{19},{27},{22},{15},{12},{11},{9},{10},{8},{17},{38},{4},{4},{6},{7},{11},{7},{10},{3},{4},{10},{10},{18},{11},{6},{5},{12},{14},{11},{18},{7},{6},{10},{14},{7},{12},{9},{16},{6},{7},{12},{14},{9},{14},{15},{17},{12},{10},{8},{6},{4},{11},{12},{8},{10},{17},{13},{12},{21},{9},{9},{6},{20},{21},{20},{7},{3},{9},{9},{9},{25},{8},{8},{9},{10},{6},{10},{9},{14},{4},{5},{15},{4},{13},{4},{12},{10},{12},{19},{15},{14},{17},{22},{17},{26},{15},{12},{11},{4},{6},{5},{22},{7},{2},{24},{16},{6},{14},{8},{9},{10},{6},{6},{3},{4},{5},{6},{8},{25},{15},{10},{16},{6},{10},{1},{6},{9},{8},{9},{16},{21},{5},{10},{33},{7},{9},{2},{7},{11},{5},{13},{14},{19},{4},{8},{6},{17},{23},{10},{12},{5},{8},{4},{1},{3},{5},{9},{6},{9},{17},{10},{18},{19},{18},{30},{33},{18},{7},{10},{10},{1},{8},{5},{23},{5},{18},{8},{2},{7},{1},{2},{5},{3},{1},{5},{3},{1},{3},{1},{28789},{100},{63},{753},{71},{117},{48},{145},{124},{83},{106},{85},{116},{124},{123},{2},{443},{483},{2},{2},{2},{24},{60},{74},{25},{28},{89},{59},{115},{85},{145},{137},{117},{117},{140},{120},{83},{78},{124},{27},{85},{144},{367},{98},{38},{109},{475},{24},{665},{483},{483},{483},{186},{137},{311},{38},{118},{241},{32},{57},{115},{125},{89},{85},{85},{331},{117},{123},{308},{512},{109},{109},{109},{156},{129},{666},{89},{25},{483},{24},{452},{295},{512},{43},{88},{87},{79},{65},{253},{135},{85},{145},{123},{81},{85},{513},{61},{24},{24},{71},{24},{68},{61},{51},{46},{44},{83},{109},{124},{88},{131},{51},{2},{285},{68},{2},{2},{90},{137},{62},{110},{711},{37},{9},{85},{212},{59},{79},{11},{19},{21},{21},{21},{21},{21},{292},{95},{83},{124},{136},{207},{207},{141},{45},{128},{64},{120},{169},{155},{686},{490},{156},{49},{67},{197},{70},{178},{182},{151},{133},{170},{170},{110},{170},{498},{158},{56},{58},{212},{198},{141},{119},{45},{71},{78},{31},{170},{144},{148},{88},{133},{807},{219},{46},{78},{144},{113},{146},{211},{130},{560},{99},{89},{77},{61},{208},{433},{436},{140},{122},{255},{147},{124},{129},{124},{211},{118},{125},{296},{376},{100},{104},{122},{117},{742},{207},{123},{122},{171},{58},{26},{121},{358},{130},{2},{148},{57},{2},{2},{9},{57},{25},{83},{124},{65},{61},{25},{25},{67},{57},{48},{125},{148},{573},{66},{288},{86},{173},{15},{46},{63},{179},{161},{24},{36},{51},{101},{130},{181},{30},{268},{100},{53},{126},{118},{120},{77},{87},{57},{84},{118},{2},{2},{2},{2},{2},{2},{2},{2},{2},{2},{2},{2},{127},{78},{36},{2},{66},{89},{36},{56},{86},{175},{210},{27},{75},{27},{68},{132},{143},{84},{127},{187},{86},{146},{188},{70},{93},{74},{761},{65},{156},{761},{128},{114},{187},{87},{2},{2},{2},{47},{100},{62},{80},{66},{129},{107},{243},{178},{114},{129},{703},{100},{70},{40},{130},{125},{126},{125},{117},{125},{124},{124},{124},{151},{172},{81},{123},{134},{138},{117},{272},{85},{85},{270},{84},{165},{145},{145},{364},{121},{635},{83},{239},{114},{123},{148},{146},{88},{148},{37},{24},{64},{90},{107},{137},{117},{117},{86},{87},{119},{82},{400},{1800},{300},{83},{124},{85},{83},{126},{79}};
    #if (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (31887 bytes) */
const char* const cstring = "BZh91AY&SYd\311%\262\000@\006\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\300@@@@@@@@@@@@\000@\000`\247?X>\367\324v\213\331=\306\371\331\355\213\343cM\313\334)\363`\003\253po\000\017T;F\037lt\003\337w\266\0347\336]\331\211\310\254=\360y_y\275\333\233\033k+ \006\3734\243\313\337>\331\017\237m\365\314\255\334\333z\357{\351\360\373[o\023\334\327>\373\336\274\365\303\276\271\337s\216lo\262\373\337}\362:\256nn\242\317}{\235\334{\267\322\372a\335\332\355\357\034\363\233\330\274M\316\353}\216\366y\330\372;\354h\335\337{\273\347\306\371\350j\t\357\217o\257\273K,\356\315\357\236\365}\352\337y\253\334m\355\346\357{t\336>\276\205\354\252\366\366\327\270\036\373\014\200\025E\330\000\000\032^\367\334\245.\313^\367{\317x\200\340\007@\266\037\003\263Lp \333|\225\336\355\273\271\227\260b[2\275\"\306y\362\352\373\276}\357\256\366\355\331/ow\333\356\373\261\032o\263\345\217,\366\263\273\340^\346[+\336^\331\326\367\tw\316\373uw\275\366\003\335a(Y\033\357:\363\017\276\273\272\331\356\365\317U\351w\335;\316\033\2657\333m\337\032}\000\363,5\227=\366\367\266\373'63\343\255\251Z\315\257YSn\257k\336\373\337\036O\201:H)v\373\216\353\314==B\027\267\275x\255};\336k\250\257\036\367\256\016\347w}}+\335\214w\337\003\274\244z\275T\251Hm\242\245^\332U\006\267n\357r\3465\264\000\0001P\005O{\\>P}\313(f\037N\017{\225>\340\004\221 B\030\232`\021\211\2102\000\001\006\215\000S\323\020\303\023Hh\232d\323\006\244\364OD\320\321\r\201L4\310 \201\002\001\t\242a20S\324m)\223\324x\220\017Q\246\323\325=A\246\200d\031\003F\200h\000\032\001&\222\022\020D\023\023\020i\211O\006\243)\264\320M\222\236\223\324\365<\3254\323F\324\366\244\320\003L@f\231@4\000\000\t=T\221\"a\245O\3256\215M2\237\250zI\217M5\032\207\224\314\246\000e4a\246\211\352\031\030\032\214\001\244\320\302i\200\000\004I\010\010\010L\246\230M'\240$\362\rS\332MS\324\375\252z\237\2506\230\246\325=\245OI\351\244\333I\251\352i\247\250d\323\323S\3655?H#\305=\246F\250\"D\210\322j2j\237\222z\002O&L\324\323MS\364\320\322`\310\302""\236\224\361S\336\204\364\232\247\352\236\223f\251\342\231\262\247\244\374\242\014\231\017SF\236H8\330\306?\376A\020\242\242\262\022\022\005\"\245\026\366\273\264\033\315\301\007\343c}\211 \310x\367H\230\224\2109ZM\336\314\024\006)Q\034\222L\251hF.\013c[!\370\004\211a\233\244@\264\0359\304\202\310\202\201\325<\350\022,\332\226\203\275->4\002\255\366\332't\226\253B\3031\207\233\326\220/\367.\346\326\330>\260d\020D\020\216\246\r\313r\342\332\300\021\331l[R\315 \201G\352-o\316\335\307\",\001\327T\035-\342\"\3227'\026.\332\217\320A\021|\321pl\263+\3505\217<w\311;#\272\307t\201\320\243\271g=\204\351\310\300'p\300\001\340$p\204A\224\022\t \245\020\032\210\224\212BVKl\224\020\205`P\030\021\030\002\201\024\203-\026\212\222\270\271J\244\322\2454\322\302\013Z\014Y\375\343\374_\323\375?\321\257\371\337\373\032\017\374\234zK\376L\317\350\345\274\346G\3779\313\367\016<<\235\256I;}\013\307\307\354\215lPZ\n\306\215f\025d\332\223\026\215b\243j(5h\321\004mo7\205\340\364\276\247?\207\256\274\334\273%!\320*\261\032\300\325\347lcI\233,\247gE\203\037\263\324\342K\233\0011i\331\0057\27340\242\252\272`\377F\260\307-\231\227S\317\256\316\"\316\357\230J\357QF\251\372`\250\227M\373\246\327\355\234\210\262r\036\372i\025D`\273\3329rM#D\266\255\335\022\357\264<\tI\322\033E6\\k\024,d\177\246\246PX\302tV\347]e\301'\nR\033\034v\035Y\201, \200\260\315\372a\241'\363\224\245\247\277\023\004b )$\237\370\177\177\372Y\275\355;\361\375?\224\177o\267\350\222)\323\177\037\327\363\305C\337\364\317\372\344\036\373\022\375\263\251\376o.\201\374\262\350e\317\271'\3744\265\323\216\332\307h\177\363\256\233\303\367iz\307.\261\336\206\014\364\245\335o\365\237\227\334\255;\355\306\324yxoUv\314\362\276\325\216<\373x_A\215\2568\317\373\027V\201\341\362\255}=|G}\247}\264\347\335\356~\377\373\300\313\017\366\377\200_\315\027\352[\317\376y$\017\347BY\277\213l\266e\347\230\243CR\214\347\213zu\t\2545\035{\271yK\362\242Q2\347\177\314\265\344\313\342\311\261\373\370\267\377\247\365\377\304\220;\377A!\037\325\001\004\n\010""\177B}X\007\351\0030\311\310L\204\302bJ\225\014W\351\245\375\023<\350z\346\252\235\033\302\001\014\356s\214\2325E\320\001\263\014\032\226%\031\241\230*s\2238\366\010\007@B\314\220A\031\202X\364\t[u\231\325nRs7\235#\255u$\235\007;\004\022a\300\030\225\235L\310\"\020\220\2714\271)\357o\333\337\223j\376\354\352\314N\331\337\273c\213\317\325\354}\"\033OEMI\001\351$f\325\374!@\340-/\360rA3,\312\377\356\241\335.\322\317\336\303\005&\236\346\311\244\3275\177\3415\031k\263\2044\206e\217\353\nKS\367\263\"\177`\034nk\343:\326V~\331D\322g\303\342\336\037\377)\371\216]&\032\337\376)Z\3219\255\377B\265>\324\331\277\3276\3652^j\366{\244\376\304y\335~\266_t\343\361\032\2743\373\223\255O\330\213\233\233\257k\035l\027\265l\361\033\3508\305\243\261f\375\273\326\256\370)\035\374o\207Kg2|\330\354Wj\372\017\317\327\037F\376\365\376\337\363>\350\367\005\225\323\007\004lMm\210r4{\000gR$r\367\312.\000\\\037\262\211\270:\257\000^\2109\257\254'@|@\262\304V\021LE`)\2138V\005}\025B\270_U\212\345\303?[\\\3305\265\215c\t\260b\330\3275\366666\266\2678+\333\357R\361\\\301\237wG^\304rqc\326\213&;\330k\320\277\301\177\376v+\347jl\351\345\307p\346\342\004\203\210\000\345\343\000\345\355\035\263\232\346+4\252Q*T\251R\241\273\255\361^\274\177\035\266\373~\327\370\n\007\352B \251\004\210\301X1 \355\262ZT\333Mf-\202\253_\350m\266\325\270\3266\264\177\223\\m\256-\215q\243q\250\332\213Eq\252\270\265\363\233W\025\212'9n\004\031\320\357]E\313\227$\217\255\345\340\300\t$\027\324\351\323\221}R\312\301\200\231\002\231LL\232v\366\002\207\360* \033\010\352\232\272\216\256\251\220\210ld/j\252\367A\006\013\001\024\2021T\"\254I\020\001  E\000\"\013\021X\243\024b\023[Ke\253+Mb\265\2552\3315H\240\377 \200;ll\033\033&\n\343\232 i\021$T\220\220FE\005\221\005SsCC \323?\366\177\022~\374;\020:W\257w|a\r]\325\177\320\3504X^-m\350\342f\364;\252\014:\236\360v\304\303\303\264\317S\250\237\010\367zr\273\300{\023\037\226\267\333\374\003\177\203\271\203\001`C]\320\344\177L\260sk!xqS\332\252\320\316\314Km\276\203A\257\365\372ux""\037\337_\231\370\007}\023\217\372\361\211\3774\262x\363!,\342(\262\206\254\362\325\253l\233\350@\005\2405\026\020\021\207\n0\273\341\375\252*\035A\035a\325\002\021 EN0\331\261\321\320\343\315C<\366\037\250\201\356\202\373\252\201\300\000\0074G\210\310\213\240\322\260>\250r\016G.N\004U5\023h\233\n\226S<\314\216g1\300\t\311C0\004\243\202\200pMCP\340h\344(\032\032(\206\226\"\n<\335t\337|\225\034\240@\203\300S@\004v7\201\001\373E\"ZDE-G\000\271\355\333#&Xr\005\006\037\355\000\342r\344\242\351B\000\362\021*\320\003\220\016\346\356\240\354\254\3103\034\303 \014\214\331(\252\261Z\263X\006\313\274\356\346\245\323\264&\266^\216a\002`\026\032-\341\263p5\254\326pd\225\2219\255\025\r\232\220\33371\220'F\005p\224j\202-\243@^\013r\203!\2528\243\030\240\314\020,\006@0\310\030,\344\257\024N!\301\024N\001\310\005\324\320\036!q00%\214\300L\272 \010c\010\ta\n\n\n3\021C%M\3207\340\345\230\204#5Q\377yV\21203\014\234\215\334b#\307A8\211f\341\004H@\335\344\363\327T\310\311\221\320W\365\032\215\302\340\256\251\303m\215\215\214\363d\220\177.\352\212\033<\213\342\177*\004%\022\220xp8\034\307\217\024\311\025]\"\t\"\271\253\221~/\000C\206c\232\033 f\233&\311\251\226C{\227\324\347\260?\254&\377\316\216\241\263\310A\224PX\240\242KS\304\340\356X\016\\8pQ7q\254\035N\301\346\202n/5\300\201A[\037\233}\305M\335\323\371\221\"\001\273\276\316\306[\266\376\237\342\337q\020\3102\335\334NO\003\202\357\301\350h\034\377\345\304\342\240\266Z\260\200Aq\220\204\212\344\324m\252n\0054S\002\222\244\251L~U(\322\020N\200r8\nj\350=\237\3633\034\303\250\001\240\272\0075\346\234\350\204\377\335D\302!\tia0a\210\020\204\254\010BX\215\2068\330\216T\216\272E\016\324\024R\324`'\345\205@\304\020\016\324\027l\321\n\2514\376\224\250\260\355\227\020S]W*\242\250\256\235\"\232b\227WL\327>\253\275E\234AO\327u\014\254D\213 \362\"w\243\343GZZ\204;\2752G\2526\351\004\335L\241\234\ndd\315\226O\353v\246\225Q;\325\355\315\34461`\"\262\002'T\260\355\252\023\235\257\025\206\236\030Y\026\231\211\201\202Q\2024o<\216?\277\254R\214\233""\262\3631x`d1\305G~d~\366\357[\007\345\227\242&\210\375+\250\356\257\324|\036;l\353D\216\232m\371)<\341\367\211\230\225\335[~\347\354y@\344\177\252^\375N\213\261s\267G\337\257'{\333\366mW\262\353Z\334s\205\006\220\375\252\233\300\323yw6\331\306\261\031!\022M(\321\016\277\306\232&\365}3\212b\350ZN\235\303h\342\257\337\341\20060\351\255\267.\350\305\346\341\030\267\3669<\340\031\276\222\216\340\227\010\251s\207s\033f\237}4Zc5\244]>\251V\266\206{\006\177\333\347\315\3565\327\030\300\342V\215*\357e\230\263\213\033\355\276xu\232*1o\364\177\337\322\342\377\322\345}g:\300\324@\337i\033\314\327\n%5J\2606\347\036\023\n\273?\231\345nx\317\253\302\333\235)U\320FV\374\312\231\364\256S\264\346\314\357\032!\351R\371\325C\253j\372<\022H+\237\245\244\232\351\2661'\252\026\223\247\220\332&\335\376\227mKI\002\270O\033^+\301M\201\213`\316\204\202\345)N\236\361\017\327\025\257\0076\266h\250\325\336s\2443\320g\364\341[{Z\301\356\321ZJi\2555\266\316\257b\275-\351\345{\013zo\264kZ\306\244\310\3226\207\207\204\036W@k\224C\367\237C\274\333\3124>\257s9\317\331(9\372\225S\023\031\336}\017?mAB\334\247bs;bZ&\225@m\360\333\224\270\270oo\003\270\337-c\372\372r\337\000\373<p6\370Nl|\265vl\211\023\365\337\214\327>>\271Z\365ST\337 \337S\263\332\336\343\241\327\262\306\376?\030\207\251\000\341\230\360\246\271\236\365\314\370.\230\030gi)\3166W\344\017\252\325\274\314\014x\035\262x\205\267\211\375\347\3063\236#5\275\267\027;\0169o\332'\225\257\357\342\233\374\177\226{\033wu\321\306<\254\335\200\035\204\331\341<\020\356\355\275\240\345\267\377\020\341\2045\315\365\026\032`\207\221kw\r{\272\226jl\202\336b_'\304z\r@g!\237U\020Dfd\030\212\017\320\216\214\016\030m8\303\233\314(\201\210f\030\314eL\0214`\342Q\277\227~\006[\330\235/\221\323L\263\274\336\257I\314^\205,\244#\022\211BR\010\310PY`64\222K\006\002\tJ\t`\215\250\202E\224\224\244\022\002\0260\226V\010\001D\236'\023\207\277|\273\350\333\241\020\362\016\324\335\366\331a<\270\312\274\377\330\255\370\263\350\201\023\344[O\217mm\"\331\344\003\006\343I\245""\303\207\302\262\237\352_\002\233\215\321\"\326\t\217v\023\234\215\000w\326\303\307\223\206\324\021\330\3216\350\275\\\230K\211!d\007\032\007d:w+\026\035\305\355f\3441\272T:\361\273\346U\033m\005\227Xfx\221\267N\232P\334\022,VZ\000f\277,\346\314\013`\321\264Tl\032fi\244\240\331DF,Y\004\024\211oS\340\313\345\340\347\243\354\t<\267\336\232\024@W\027\322\325\313\3651{\343qw\202\007>g]\tB\026\003JUK\366\231\233`\314\r\207\245\245\302\240\211\360\264i\0003;\350C\211\314]xv\346\240)\300X\n'\276oC-\330\260\026\3473\276g\234;Y\2426\000?\354\316\256a\021\275\342\346\267\210\276K\001\327G>\231_\217\033\030-T\243\014\354\336I%\3111\210}\307\352\254\276\336@?\256\377f\300\206`^\333\220\343\\\356\345\211c\323\234\010h\224\037D9\025{\227\022\001\261r;B\267r\035\013\220,\305\205\250w\335D\2354\324DO\213\004\247]\275v\255St\323\032\3237\001\365\370\304\004\030\000\001\033\237,\324\016%\237\233\257\213\313\017\025\300\200\031\233\236EF\013\320C?k{EW\000\021\244\362\220Eg\021\331\365\362\214l\026\005\273\364B\242c2\372c{+.\306\205\357\256\200l\256\203j9.\006\303\345\244\323\300\266\262d\371\247\005\234,\276 \204n\2030O\2530jxN\026\347\0202\010\n\005\013\206\014\303\234\270\217\340y:Z\267\310\236\370C\251\212Wff\022\020\312\341\n\341\362z\3125C\347\"\2116\275;\344\227/(\035\206)\2611\2260\352\340\007h\357\240\345\003\370\r\261\300\000\307{\305'|\222|\240\001\362\010\276\024\035\3006\036$E\"\177s\264\017\030\200m\262\014P\255\320\373\341\367\303\210\361W\212hh\231\206aT\364\325\215\354\034\213\233\342\360\313\003ih6H\205\020\306\342T\250\024K\246\206\203\006a\251Uu*d\255(\305 R\024L\362\265gU\034 \270k;\322\336\340\225\310\346\255\304\270\001\314x\243\310\344\006\307\021\007\372\266\3319\356\202\006\342\033\232\376\005\375\332\016\251\321z\007_\353>S\227%'\005\377\240\377\320?\352\3609\021\342qx\275\307w]?\263\220'+\355\206w\274\"\204\200\264o\330oc\376\275\233n\263\304&WG\375\006Q9\\\271qA\001U$$R*\224\321N\301\227)[\006 \323\321}\2666\226\300\375\266\333c]\206dZ-\247\237\022\202J.""\372\000\330\312u\236\263C\376\314\364\310U\013\214\255\200t\260&d+\212\342\270\001q\\\2712\214\270\217\373\276m\324\257\307\237\271\r\373\322\311l.[d\016\351\013\371\262@ \270\\U-\202\3165A\356b\t#\030\020\210\234\343\2109\334\345\347:\r>\023t\374>pT>x\324e\3619rJ\374E\310%\273\341pm\333\227\r\022\003\226U\020-\242\220-\n\213\021Y2\224\026,KKZZ\025T\265\264\373\315F*\210\342\034Z,\205\024P&\335\225\032\016.\242\303\0026?\235\217\206\327\366dD#~\330\255\026M\324\026\365`\222\255\024ND\230\333\014\364\355\022B\020\204\204\n(k\240\364\036\203\317u<`o\007]N\232\352\257\212\244M\264cj\214cX\266\241\210\005I\252\215ll\225\223\025\214\314\2039\005sG9g\031\314*\210\352qTc0\217Y5D\001Q\025\002\244\215P\362\321) k6D\0134\377\355:^\324\300e&a\006\236\313\3478g\312T**\205D\265\002\304\360r\250[B\355-a\220g\243\006\243:mA\301\316\320\302\377_;q\363\373\366\201\023(S\022\300\215Ld\265\025\214\202\250\261\032t\345\216r\257\342\374\006\005\302\324\314\245Q\226\014E\206\026\252\"\"\212\310\013\017\323\017\376~\254\324V~D\254Y\331\267)\2120N\\\345\364\277\247\347\376T\376\356x[\307\311j\341\030\262\314\220\314\224\263TD\221\212[\021L=M\271 QF\330\3638\332W\237\325\370]\253\262\013&{\266\221\255\2021\207-E\206~\213\241\325\266\0352\240\205\274\276\256\375]\212\277\021\3023dt\345\n\374{\344{\366\357\345\243\354\035j\036h\310\242h\342\210\216H\200\230\332\026\326\270\266}\300\340\030\214\214k\233C\232\371\003\030d$#\376\307\231q,\346N/\322\263C\237\317m\n\365\237\210\316]z\247\320\320\000\244\343\034-\037a\020\005\305\305`\257*\342_\027\032\021_\261\307\233\212\334\031\233\272\353{r>\264\2665\236Xw\334\237\340m\367rt\355w\354IH\3510\223$,\306%f\002V\007\333x\210I\035\352\275/\302\007\304\322\345\261\307\365\331\355K\353\t;\210\020\326\323\277\344\223\342\377\037\335\374\037\371\376W\341\376\013c\013\030\3061\214c\007\030\306-o\330\324p?\021\376w\267\306D\016\244\217\302\203\202!\211[\220K\231@\024\201t\022N[\252S2\353\261\364\277\270\354*\207\25700 \023\236\253\311\217\221\264\330\202v""\004\002\023\367\370\023\256|<<\274\274\274\255\214,c\030\3061\214\034c\030\265\274\265\034\017#\345\345\335\"\007RG\212\016\010\200H[\220K\231@\024\201t\022N[\252S2\353\261\362\277\223\260\252\036Y\201\201\000\237\036\367\345\362\236\277\345\017\2638X\226\313h\312F\213\006\205\255\002\210\320\245\240R\224(T\2504B\332=\320\003\267\313=U&\001\356\362\363\347\277\237\237\253\325\352\275\215\302\275\357{\337\030\030\3061\213[\325\260\331\272z\273\340D\366\317\216\230&\242\337D\\wA\264\313Kn3\342\267{\336?#\305\257\235a\234\314\347l\263C\004\2337\360P\307\310\001\353\275\365\356\320\275\244\244H\372G\\\007h\201\343\370\031\231\217\320\340;2d\335\316I\227h6M\235\204&\247lw\377j\211,\324\005\022\231D\312;\203\262\250\273\035\204\273\022\222\206\351\326H\276T\3066\207\341\371\376\233\216e3.'\301\222_\252H\327\377\037\214.-\210\014\266\001T)\210\216r\371\325.\334\336\361\016qN\360\022\277A\373\330m\376\254\316\234776\335\335\325]\311$\231v\3164\377\232\237r\235\345!\253T{,\rc\252\030\"\217D\341:\"s=\353:A:\n\007\237\352\003D\310*\252\267\320\006\035vd\204\303\006lh\361\270\344\314M\n\231\277\264\221\214\372\022\366i9#\271\0240i\344\370<\346\233\277\234HB#\003dB$H/\342\r\326KtI\373\021\352\276\230\1775k\335Cu\r\323\343[\335\007t\014\313\014\303;-,\301\247\017oXpG\241\366\275v\245\335\255\206\210B\302\3140\271\272(]j\023&\346\035\263xQV\0327B\260\343\247E\316\271\206Hd\206\313\261%ST\253Q\345\024\334\204\240\250\242\202\032\"A\334L\232\004b\024zz\342_\363\305U\233\263v\315\333\272\202\212(\242\210qx\306\006\236>\260\371\357H\t\0001\311X\264\244\322\210\276\201\036\261\367\003\370\242\031\374}\177\037\337\024\303\021B\200\010#s\001\367\215\361\232ZG\374\t\363+\370\003'\2076\326\306\214\251]\230\340\277H\325\016VZ\371tQY\232\273'i\370\3539=\334x\355\226\304cZ\272\214\221\245\302\222\202C\257\230I\267\271\016LdE}\306\245g\303\010B\020\204 \306 a1\023\243y,K\017nl@\313\205i\263\030\222#c\001cue\207M=xue\034\371\267=\270\351t\352\226\330\205\240\t-\004\221\265t\272r0\026P|\347""\307uE\022}\360v[\246\362>\331\373\020\237\307\372\177K\365\376\277\327\266\333~\203>\257\316\252\277v\333-\245\264\265V\226\333\177j\225p-\245\277\264I\277\275?\206\371\035Q\253\364\033\372:\004\343\210\222Fh\206\213/.\376\3632\303\206=\310\367 ;\271@\020bA\210\021\205\010\274\221u\205\2006m\035m\254+\334\246Z)\267\222\226\275*\356\356\356\360\261m+\366\321\255\240\351\331N\235:\311\240\304\226\025\200\003\037\272\3123A\263\277\271\023\002\356\021\213\"J,\235\230\225\232+\"EJ\214\314\326K\342xY\030 W+\004\007Bd\021\341\254V\r\236T\260\205K\002\031\214\324\225\024A\372\003\235\321]\253\245\265`$\"E\200\274\005J\214\314\3335\322f\025\205]%a\211$\206F\260+\010\260\010+\335+XA\315\356\275\363\357\211VW\004\242;0SN\270\213\227.\316\022\204.%\250h\201~\325\2557ww|:\005\321]\rF\034\272'\232i\243\004\027\267/\245x\014\352\375\226\013#$\336\353|V\325\242\321\021\013^%R\245Gww{5\202\262G0\r$\222V\215*\340\202\315t\253\342\273\\U\326\024k\330\024\n\241^\262\344/$W@\007}\204\t\007\273=\352\244\021d@\205o\236\2574>\304R\360\212g\224\222H\245\365\356L$\206\220\236<\370[{\367\265\253\343m_Y\244WGL\326\023m\262\371l\010\304)\242V\004v\352\005Q\014\315H\nIR\004RD\343>\232\031\266v\231\264\014\304\251\024\226\204\363\200\315_Iu#\373\333\373\352\240n\230,\371\304\020QB\021.\010t!\177/N\010\271s\204T\347\016\3674,\212\261B\316\177\232\326\320\257\\W\004\244\235k\353\013\000\025Pf\240\315\013\301S4S\260P\246*l\276a\215\304I/\nu\233\232\211\r\035\004\027\222\357\\\302\217\210BPW\227\235\177\277\211>\213\n \004\200$\202\255D\004:p@\346\202\262YW\325\\\341\257\375\027,`$\013\t\253\336?\300\006qQi54\200\276f\212\224\3724U\310\024q\\\267\236\006c01F\2112\312\275\3530f\024[\254\245\345\377&X\200\377&\260\001\375\217@\007\245\220026F\022\354\3009\233\320\037\330?\221\377\356\250\327oo\030m\271\303 \377O\372\335P\326\301\375d\034\000\352\023R\237\377M\220y\305M\361\366$\371\277fKX\370\324'\360\211\363?\256\377\302\037q\211\215$\rIN\241\034 4\201/ZJ\277\353G31|\350H\222\205\024\212!\230B\214G""\211\335\201\211\254\323\244W5\321\342\322\243i\177\303\377/\234;\000\"\001\331\274\236\352\243\257GTF\275\206\227*\3545c\331\275\341a\377@>\214\360z\361\037\272\326 \016\333\360\355\004\220\tn8n\307\267c\331 \367\177\333\332\321\021\020C\255\354\340\222J\002\301\214DOW9*\337\007\3179\323`\000\022\205U\024\005UU|\273\332\315\367\275\273\243\272\346z\336\274\365\257f\366\265\2460F\305\356gk:\266\257|\251&!-\r\345\201\033351\000\020\341\361\214@\026\302Vp\345\027\030\276e\277pr\023\354$\235\231\230l\315f\026\272\363\177\303\010\262\006\033\026\303\3262\000i\213\007v\023Un\222\031\213\272\252\271\2477\273n\373e\2605\301=uq\313j\256\206X\341n\232\334\314\031Z\270\227%\300C\003\032\032\026kn\362i6\207\252j\217z\031\227-\266\321)\232\312\352\253982-\360=\370\370 ,\201\356@\021\367\205\023\336\025\002\213\021&\"#\224\240\037\030\205\243\370\217\305\335=\210{\037\002\374\013\2609\017\0366W\212q^/\371\2666\013\022\345LT\221\246\255i\264\272f+\244Hs8\360\314\271+\377\331\243\243{\320O\007`:\013 =\214#!\223\211f\261\250\314\252\265\315u3CPdgj\266\237\343\337\003\363\315P]du\220\300\303\020\374\227F~\351\334\352:c\352y60~\331\302\340(\013\221 \355\261\253\273\334\343z\375\316<zl\227d\273*\342\034\221\003M\301\333\002J\260\320~\263\237O\263\303\354\266C\210\017&\203V.\n\317\356]\303\206J\333\372\000\266\2544\343\222\376\241\233\360\016\003\330}\222\370\243'\270\220\206A\236\240f\314\366y\362wd\316\3562\031\335\360,\002V\317\017\235\266\rT\274\205\243HH\304\215&\004\307>a\230\315\225J`\2761\202/\n\355\226\237Q\022+\250\237\375c\016@\357\223\362\3464\222^~\345a\006E\014\276S\3449\377\272\252\244\252\251\225|\232\345\307\371=\356\207|\276{\233\354\356\371\356\360w\372\263Y\232\304QTF\026\017\210\006H-\346\270lGT\323\260\016%\314\344\374\016c\351\333\225\310\340,w\300\252\234\356F\327s\t\342\002!\017JH\252\255\321\257\305\303&\211O\264m\260\276W\2520\207\246\345\004\337]\333\255\275\346Q\345\364\311\221\332\232i7\255yp\2717\372\212\247\006\207\020\373!p\346Z\305\236\273\360\r\210p""\373<\271e\257YS\201\307\210\356\301\323\211f08]7r:\233r\024[\316dlO\020\r\232\001\013\377\006\212\000\316`=\264\311\356\254\346\326\211\2006\324\266\325\032\373}/\344\347ru\003\274{8\207\373\254&9\023\264\002g\304\243s\2033\223\211\0333\246\370\355\227\316\250:N\220<PR`\351R\355nS0(i\306\357i\273\305\002\010\016\234\306\345Uc,_\032+\231\366\250t\232s\002\304\204\202\357\002\273\270r\274\222I\274\330\300\231n;J\333G\007\300\010z\312\276\260\207|=\327\307\326~\177\034\364\243\277\3359\022\005\351\022\303\246\261l\263\034\311\027\020\272\310\353&^\3244!&\3513\366\266\340T\313\226\334!\224\207\332\237e\237\260I!\201\301DUm\376\326\3717Z\270\0377\313\320\030\000\002\220\237\214 Z\252.\211\375\242\t!A\313m\274\374\263\314?_\356\372\nz\214>\373\244\035F\037t\314c\273\017\347w\256f\355\304\316\335\274\342yjI\005:t\227\334fk~\365\363\2204B~\341\210?+\257\246\321o\230\374\326\267\315i\364\211\311\321 ,T/\241&\231$\356\004\004\347\365\262?\007\325\311\007G9\003\232\310p\3459I&\334\304\307\005\240 S\2510d\314\2512d\314\2512d\240&^H\2231/\244N`3U\354\\9\271r(\330\243@\336\"\374q\234\3033\3066\313\217\250\027 e\225\262\313-?\025h\252\007MZA\"[ \026}\247\331\347C\302\372\375\346\033\350\233\212\361\016\331\nT\220>\340\3740\267\177\357\016\033=W[.\227\224\261\202\235\305\31267\301\224\261\343\326:^\2004\340\273s\2722T=\234\340s\257_\255\266\376\0266(\256\364H\016\352\255\254r\372\003\357\225\212\301\022)\016z\251\353\355\347\300MJ\036\177?\236\252\271s\375~\300\361\204D\361\253\341\223\245\315\371'z\306\034\256r\277\25036p@%-\207\007\000|\013\340\\\005\355\376\370\374\354o\034\250\325\003l[`\332\341\201\231\264#\250r\206\337\366\375\273'\200&\235\3626\373\032\364;\272\006\001\022\310\245bBH\300\301$r1!$p\215\213\354G\340\\0A\376*|\r\020G\032\000\316\254\034\033\n7\237\250\220\340r\352\240\275\260\356\212T\001\3670O\263v\256\004>\n\301\353z\204\204\237\2551|\341m\214\007\005|\375\267\313C\024n \241\270\310\t#\266\2715\222\342\306-\256M\256(\255Z\276W\246\326\217\315g\243&\274\327""\240?i\206kR7=Xp\367\n\017\0272w\300\241\206\212\031G2@N\200\353V\357;\335;\233\352\\\t7\020\034\3002\200\023\033\256\013~\271%\027699\266 \223\241\246\236\315\204\203V\311 Zv\021\362<\217ElJ\2555\372\337T\000\326\275\333\355\374\032\332\310\345\026j\022\326\rt\310C\014\355\331;^~\037<!\010l\352\340\331\325\216S\353\010_\025\364\031\232\237\306\346\223]n\314\260\276\332q\322'H\252v\235\330_\2433\225\216\316<\242\0306\236\221\254\256\275\034l\364\244\206\266M\351\235\331{\275\216Z\345\220\231\234\214\232)t\027ry%D\340\315\014\022*\320H.\3661V\2321\006\321N\316\332\027\340\214\267\343\014-\270$w\tT\"q\007\337\030\240V\206\013\344B0@\030\000*\362\030;\275\254%32\211\310\035\020\351U\367:\020\222hq\016a\273\340n\344\352(}{C>\t3\"\215N\177 \266\220\203\310\215\263\310\013\267\272l\3719\275~\005=n\233A}\002\333\r\306\000a\220\315\377\233i\033k+Wm\354\351\306\216Q6\243\013x[\324q\352\275\340\030\010\236\213D\212\207\277\374\236\224%\255\331\326\206\356\207S\267Ig\250\233\201R\204\314\251V\253\311V:\242\353\"\222\336V\0226\003\030\326ffffffis\243M\220q~\024\255\364\375l\026\241\207\274YU\017\310\326\327\364k\022v\020\323\232\374\346C\342O\204\354PO\002\024\275\373[\177!\2715\317\033s0\330\365b\247\002\210\210\2536:\\\r\0335\002a\243\353@\376Fl\331\260N\010\221\nzU\360\227\324[\234\276`nf\277\223\362\374\247\266J\335\021\341\024\027H\000hZR\250hF\020\330\203{r\322Y0\021\202\266\263\272\345\256\371\266\n1\266Z\\\313\204\254\321\002\332X\275\262\301\325\304l\320D>s\355\000d\005\342\005\276\267\367\321\276v\273m\333\340\341\345\033\312\214\244\200\241Ay\371\204\263\322\341@q\036Q\335\242\335\360\210[\"Y4CR\333\270\374\267\223\014\314\314\330\3345bffU\331m0\375\270f\2055F\325U\250\231\231m\2770o\241\360N/\204\222I%.\351\024C$\361O\004\231\206\373\347\343\333\320\014}p\007\300q\225*\245Rv\002\220\r\303$5\224Oqx\261}\322\007C6\023\246\346\014\003\316ii/\266l\310 [!\274\223\261a\256\363\2632|\367\3064r3\350\001\240h%\244\030\216Z\337h\224\240\222\324\341\300\"\371\242\300^\r\346""\017m\352\034\207~\020\201\n\225j\350B\323E\024P\213w@\032\034*H\240\315-\310\246\212n\306\034\224\277\307\240<h#c\261&H\333\310\306Q\217#\262\325\n<lT\201\034)\271\"\225\342\210\326\3144r\227\360\"|9\307\340\207\177\316\003Mk\270h<\372\370v\253\365\027\352\357_\\}<\216\234\211\025\177\255\225|\340\364\247\301\036\362\023\322\371\023\317~\022\377&\301\255\223h\001h\223\2045\205\213\241 \005\007oc\237<\244n\024\261SA\250\221\311\262l\354\353a\016\371\342\343\3449(\t\"y\027\270\271\341\353\001L\026\342\335a\230\010x*\253\201\\d\221m\200\314H\314H\254UK\224\342\372\304\013\301\326\257Z\275\000\025\262}c\343\256\n\260\253\333\355\220\203n_\257\256\311\234wwww{m\266\337\321\364\236>\252?.\276\361\330~\304\003\357\360%\tZN\352\303[u\006H\353\271\354U\004\334\207\032\227\006 \022J\374]\270x\003\230\207MZ-/\301`\367\271\243\347\362\320\320\327\231>\005\366a0\255d+\3024Q\2011\205\207b.\340p\201z\326\350;'\336\345A \270\273\316\222q!\201\"\006\350n\353\221@>OP\353\007\242\372{\265'\017a\026\262\345d\030$$R8\305T\236\324\325\202\372\253\344\"\"\210\211\357r\342\"u{\366\367\371\337\311\327\315z\215\3632\204\210qm\275Y\276oo>h\005\242\007\315\207R\302Q\262\373\361\277\000\002\016\354\331\372v\226\035\013\224\356\356\352\314\001\032\t$\236\214\205'\237\254\207&\362\230\006f\031(\345C~\362\372\302t\300\231\347'\343B\332\026\322\336;\253Xd\265\r\234~Y\310l\206B\300\215P\306\310\333a\372\371{\021\277x\325\274\005\317\006B\000\223c\356dA\250b\272\205y\2221:\013\354\370\214f\026>\3679\374\037\272\252\253v\035aHa'\214\275\372\373\360\352\027\200\207\017\277\254\235\010\242\306\313\002\025\233\226\236Z\227\255~Ko\244\223\001\001;\026B\2419\205\214\206\001,\202R\205\312G~Y\017%\275\357\200\276\025-\3737Y\023\003t\000\203\001m\256\203\241#\030\277\332)9\327@\020XH\303\013=\037\030\"\272\302\007R\2621\271\302\327\223\237\242h\006\217\014\264\\\333R$\203k\005\252\365G4WZ&\267!\245\323\337\034\315\310S\310\363\363\253\232\t\365/\225\353\276Y9\322<\000\200>\256\204\222\203\215n*\301\262\005""\002\301\204A\225Lqr\335\234n\342\311\004\343\020\230\345Ah30\234\t\203\016\tS\0232\344\n\230\305\361\214QO\034Yc\202\241\000\3342\244}P\315=\240\370\375\363\356\373\307\263\265\363u\326\312\234\001\251\260\271\022\272#`6\030\006h\035Z\274\2061\233\231\304\206h;\343\212\014@\323\256\350,\332L\331\340\370\2368\226\204(_yF\222\373iN\210f\305>\204\177h\373\330t\2578\305\2108\304\304\246\220\301\250\020@\021\000\240\035\003[\346\264\216\263Z\330y\350(o\233\306\343DDG\036\262\270\335M\246*\221r\252\252b\251\027*\252\236\001\202\201E\002\212\005\025&\347\321\254\353uU^:s\235o\255Lg\016\272U[\235e\352\335[\226!\231\206[\253G.\216\351&\225A\002\306@\351 \003\021U~\207\235\272\351\036\335o[\2738\371\276~5\217\223{\001\264\016<s\372X\335\021\360\336\300\275lX4\007|\275\320*\3106e\357\254\213\302\266\340Q\247D\030\221\231\230wqPh\210Q <lR4\216=.\366\346\376\223\3407\277V\227\266\320\030\264\231.\327\350\3414\216\036\021!\317(\310<\222\207\370\223\246\361\200W\026x\334\204:\267\331\253\265\225\316W\0252\311\024\273|\304\017\017\017r\017G\320\240\343\361I%\356nqm,\014\300\300\315\207\251\017i\332\307V0\256r\256y\275\353\275\347}\032\366.\241\036[\306st\002\017\253\361\372{P\326\270Z\313\033mU\372\262@\366x\374Drx\277\253\267\353~\207\261\303\350\000>\035\224w{\347\303\362y\305\351\346\360\317\355 \260\226\270\033\014\r\r\276[\365\225N\272\030s\261\330\322\0212\025\350\331\266|\001>n\320\306\320xC\264\221\351`\021\360\000\014\221*\221\035\261M\300\352\235\257:\254\037B)\327\340\022\267\316\002\302\340H\016\024\0274qg9\243\213\032\343\2134\321\205\202\301\256\262K\212\\Mj\342\252\270\225\232t\200\302.\320*\301\326\263z\276\374:UUU\321\365O/-}\340D?\031\370;v\356sif\264\254\233\032zk\306\304D4\332\251PA`\t$\004B\264/\271}G\322E\353\351\345rS\260\336\327x\310aV\376\231\362I\026I\006pWz\027upn\\\271r\345\316F\\\t\\\033\242\355s\330\340\257\234\020K}\315f\010\373\223\330\037\256r$\255\tn+]\0005\202\204\010\000A\315\270_\256\332\332Jv\2262\n\3577}\355B\263\312\337\004gB\036S\270\256G""\301\347\222\340{\371N\006`\005\236\344\206\200\330w\rM\261\351[P\203;\211\217\264\202\370\007<\2709s\364UUY`h\263v\315$\227\200\013PJ!\034qE\007#\317\2347\277\375[f\305\243\350\242\006\242<\214\274\367\001\032,\010*X`\257+\345\373O\277Z|?\212\327\001\033\n\202aYd\033\213\363\"~\0243?|M\021\314\021\320\321\320\r\023\336\367\374U\364\220\261\3377\034\302<!6\202\236\211\247\303< g\241q\235\031\347\316\022Sco#\305s\256Lp+\227\214\257m\206\211\306q\222zMP\016\326\014\334\321\250f=\370\360\267\nH\273{\366\nv\211\337\261\222\035\211\016\212\t\226nt\366\346\266\351E*oy\202\324{\3238I\3117\010\214K\301&\274\201\003#@\365D\345\217\010\367%\020\277\350@\362;}\361\205\265\203\203\332b\013\200\004\345\026B\034\001j\026\347\347\276\356VP\247Q\363\261\224\032(N\027\tH\007\272\211{\234\306\357\247\322\211>\267\355\033\237\2712\323\277i\341\031\014\254\000\341;f\303\004\337\0142\320\365\310\t\352\303#\3413.-\005\037\260A!3\016\225\243\325\322\330~\331S\356\021\273\232\233\370\303\212\201\241\003g\201\361\371\215>\260@\363\023\356v\247?o\265\266\333\371\2728\007 R\251\363\032\016\2653\356rW\006\000\315\325#\002L\353\\\031\033\\\204\0039\313\214{\333=\360G\003\314\215\371\214\206$\022)\272\003\201\317\2338\277\007@\2510\313,\220\310\013\"\026E\267\262~\315!&A\333\257\335\337\373#\213\354q\031\310\333\016c\335\266ix\374\301\263\333L\036\014\274S\373\344khI\014\014 \236\014\006\024N0$2\320\004j\027\230\330\006ww\220}\334\265\303[L\026\022V\02002P\254\220m\201\n\037\233\214\375\245k*\266\333m\265m\266\340}\360\362\350\375\316\322\373\033\274\242\\\256e\305\277\217\360CP\014_v\204\014B|\005\034\257\217y>j\222\372'\026\004g\300;\222o\251\031Wr\302\035\372\027y\207\004`\3054\276[I\"\301\214\305\376\277\356\230\231\345\277\332\352\271P\261\265\246\326V\234\001y\260I\004\341\334}\366\301\244mC\352O\322\270\267\003E\235v\331X\r\036\332X5\233\2233\007\337\241\236j\303\220bI\270\350\005\334\200 {\273G\036\322u\356\017-\363\340\025Ml\356r\236\236\260\223\201\325Y$Z\r`\373\002[\275\002@\304P\261#""[\205\201g\000\026f\000k\023m\262\224\273\272\322G\336K\220\376@\031\316\341($r\326}W\334E\246\317\255\324^\301\357y\274\033\356\004\340z\3537\276I\214\304D,\331\010\030a5x\017y\232\203q\036\000\372\301D\222OP\301\257\270L\001\027\276\021\260\300\025t\267\253z\253cy\340\322\377\007)\013\313\211\007\000V\035\003x\274V#\036L\322\213\3150\323\350\302f\204!:l\322b\177\000\220\034\002\021\300!p\035\236\024v\216U\306\310\001\276\035\363gk\034km\010\355%\244\034\010\370\265\234\322\274o\272mw@\346\357\002\355\300\213xA\300\300\214\3012\014:W\331\231:d\357\244\032\272\301 'R\010L\260\372\\kd\02542\305\241\214\014\230\207\247\257LK\310r\022\357\026\206\254h\366\016(H\031\346\345\327\275\305\331\023\032\034u\224\354\366\256\373<q\374\262\t$\022#C\314]\000\364\240'\026\231\274\002\020\021\220a\362mm\366\236\323\335\324X\007\252I\351\215%\026\346`\203\216a*\002%q\251Z\303=\313\r3\rfv\326\360\232{\272Y\315kC\260\336\3724\"\n\014\266\rqwM~\3625\314\200^\003]\227\245\240\301\335I0\227hu\203\335\2255'eOl\177P\007\202\275\323m\335\227\270*\235sZ\213!\256\0205\327\271\003\232\364\301\305\271\242\272\001\032\351\001\343`\037\002\031:\221@=Im\200\037k\355\337\321\370z6\301\370\363\3515z7\211B\320\373+\210\200&\315\231\364\376;\303^\036\026\276?~oz\335m\\\327\332l\300\206\270D\323\202g\212\240J\302O\t\341I\023\221\327\014f3\0368\367\022\3523\367\305\247\211\321\256x\237\214Z\013a\035\375\224\211\302\323\252\002\325\005\211\203 1\204\270F\014w\343\t\0004\304\230$\0318%+\272\275t\276o\014:\362\210(q\331\324\343\254\245\347\3357\275\034\352\211+q9\023st\304$+\346\325f\346\024\220\356\234\207\217\267\277:+\364I\335\334\272]\257Ru`\366\014w\020\315\222\010 baE'\026\252\\\330\301c\000\3462b4\314\365`KO\304\374,\226\251\315\3345\316x\304\262\031\001\232\252K}\204\0267\231\233A\332\333\335Q\031\354\3141\020:\252E\264\020[!\3663o\323\235\210o\267Z_\3633>\366*\375\313\267-\032\\\336\266\362O\236\032\363\371\355\2673):\347\237Gv\265\306\037\306\004\201\017cq\313\361=\202I \206Ru\236\370\365\272""\307X\353/Y:\345Wu\013\324\r\376SQ\207?W\247\361\220\220\220\323|\223\217,\010\300\344F\241\250\017\311\006\356w\031\231\231\206f\357\342\325H(\260\031\r\001\304h\026\213\201pE\313\211\302\346\272_\337A\216\346\377\001\366\307o\222X\370gG#X\216A+E\305\363l!\027Bv\354\004\026\306\"\016\024\001\002\020\361\252\025\364\227\275\271)|\017\224\306<\245\332\201_\005\027\021n\331h(\253_\021DI\273\312\"\261\324\307\224\316\247\023\352:0\2624\305n\331\025A\"\271Xt\233m\304bU\315\243hH\r0KM%lV\341m+\306\211`\277\334U\307+\333\320\227S^gE\355\213\252yn9\004\216\373h\032\r\345\320Z]\353\242P\207\347\255@\266\332\253Km\264\266\333kR\325\245\264\226\200$\245\000\001\325\256k\232\347:\333s\353\357$\n\360\213\331\345\353\302\274\213\310\320\255\372\321\234\215\0101\272\366\356\274\206\233%\244+%\241\335\367aX\020U\250\252\025\025#G\023\272\276g~\232\271\254D}\231\246v\234R1:t\316\362i\251\302\222\255Z\272\237)\277\372\205\200\034q\330\302\033QE\327\"\355\264Ge\243\355\311\037\215\265\336\332\017\n\332b7\247\235\\\014\205\177\256\364\367f\315\275y\022j}\t\243\212V\232\021\0234s\357\244\004x\303V\372\276\215Q]\267\360\371p\034j\377\367/5\331\226\211\01488\243\237.\360\362\351F\235,\206\221\244=\224\227\201\220\221d,\344\262mP\342\310\251Vj\352\233.\241*\311jg\n~}wS\247\261f\023m\264\036r\362\253\006\210\375n\274\346fc\337\2678\0376\372\010(\034\350y+W8\033\275\335c\321Cp\304\223\336\004=\360C\276\336\223\203\005\334\276\276\337\316\225\217{20R\322\226\007\277\376\216\375j\217\265\263\333I\316R|[\350\317/C\313\310D\347\311\017\315ip~u\t\004\\\222\304\204\220N\222B\013I\034\367\207\366\237fD\214\304\217\204\2438\243\347\216\356W\232\203\241\021\316J\360`\264e\0076]\302\261@a\211\t\022|=\342\331\006g\000\246 \336N\264\000\037\037\207\242\300\222\033\345\237\232}}s\267\356p\314tj\323-\277\334\360\001\375\224@`h_iA\016-w\253\n\010i\262\375T~\253\021\313\222\000\033\276\0352\273\273\273\273\273\273\324.\361\223BVn\370\247+\223f\330,a!!\010\021\240\211\222\3663\224\345J\345\270\212\343F\331I""\306\271)\240\222%+7+\226\342\311\021b\222\311E\026I\226\270\210\"TB\205,\021\021Fz\323\276\200\204\016\373\321\333yF\3116\001\323\3547\017\033=\030\020Q\005Q\374\006\t\204n\354\343\013\372\037\215\305f\251\264!]\335\244\234\251\004hY\r[\221[\367O\030\006\334\256,\005\327\203\2444\347-jT\264\006\3211B8\374y\226Q\223\027\326w\373'R\302\377\247{\213\263\005\363X0g\005\3336I.\275\373\013\275O!k\315\246\224\233Do\270~\340<3\247bI\334N\033\203Z>\371;#O2\"\345\2728V7H;vF\357\203\030x\032\3443\001\325\000\2033\006\002\302\2376\271\231\332!\262h\271\252\250\206\243N\205UD5\032\335A\265\255\020\326;\000\314\303Vfh\007\246{\217\234\313r\314\372\307\225\315\352\206\327v\021\312\356\373r\205\312\000\340\027\016(\324<\025\016%\335*wv\274\277Y'\302\200`\241\\\275\361eL\243\252V\245\357\340\252#\275\235\362^h\304Mf\2159\223\00352\n\2420`\226o\003Z\265\215\311\226\300/\0028\313J\267Y\315C6f\"\020\320p\2475a\014\022\034UYB\301\031\003\021E!\232\273\345\230\334\326r\334j\260Q\323\343\007\306\334\010k\227\254\314\234\355\234\335\266]\363\035\332\251\352RL\246\235\335\252\236\245$$d\216\000`4\247\316C\330cJ}!\344@@\245N\035\344\301\243RiYAu\275\261\"g\006N\013\303L\266\335\352\3066Y\266|\233\346\233\363h@Bn\031\321\273\355\213\342W\311\356\247\204\354i\232\\\337\343@\327\037{T\354\232\300\351\221\310\217Y\"v\342\312]\211\363\017\321 \216\350Y,\351\270\357\372\3666\237\001\034\2221\215\243\010;\246\320\274\36134\214G}\357\231\0345\200;\314$l#\276\342\027\201\t\031\371\345r\341\240\374\233\260\357Ez)\321\037\244\273|\272/\274E\255\262\366j\261N\331\372~>\034\262\314J\362w?\267]\361>\030ILH\020\204\023\236\310*\217L\017<\244*\002\",\002\n\353QV\3155]+m\232j\266\2255P\210\260b!\024\351\243\273\353K\204\201\235\007O\007\236\271\030LX\037\354s\026!\303g\0214AM\"\314ja3\307\341\223\355\220}{}\034\353\336\316\253i\375\274\256~@Wv\013\030\204\323\245\255\023Q\373\347\271\022F@\214Q\326]\023\371\320\221\022EO\313+M\2346r\347\250@\355~#~d$ZH\020\"\204H\306\036U\036\313\206\315\367\2339\3532\272=>""\355\t\271\221\001\323Y^5\330\361\022@?X7\t$\240\346\210C\031\"\016i\240\376t\347q;\2610\301\232\301\202@D\005`\237\204\000:\247\345o\267xO\207\320\362G\354\377{\003G\305\256\203P\366\302\313\000\317\224\337*\252\246\200P \352\310BYJ#\031\213(\001\347\023fti\n$\325\262\376\027\236\035|\002\0223\217\217\313\323\220\361@\216\346\to?t\016\370\027`\207yT\014\225\032$;\366\"\246\236\267\177\013z\321=9V\235\360E\336\316\235^\311\"F\265\265&\201*%\346\366\345j\321\253o\213\n\301\207\361!\361\037\005\204\240\220\310\213R\272L\250\010Q0\025TQ\010R\213\"\002\220\362\374{\361a\016\351>9L\214\352'\250I\003e\006\272(\311G\240\r\005\340'\224M\3303UL#\013Y\253E\337m\356\366k]\267)\235\205u;\244%\225\372\246\370-\021L\344\030\371F!\345q\375\316?y\307\365\270\377#\205\370\220_\260\202\374\364\023\021\241\031\321\010t\020\321\005\242\013D\026\210-\020Z \264Ah\202\004\"4}\034-\020Z \264Aa\005\204\026\303n\346\000|&\265/\306\374PP\025H\300\020\221\037\221>\034\207\306wB\0204\304\306Y\005\333\242*\020\021b\020*\022*\013\004\212Dam\207iM\217\016\206I\024\003\277\306O\227\3427\n\2414\203l,\002\340\006\037}\221\020\220\221\024 \300\022A@\231\030\302\004;F\203\006=\r\241\325\367\3154\000\t\276\003h2\302cJ@\243)DA\255@f\227\036GU\271\267)m\214\200\242\233m\335\245\306\203\2109pNc\236\305\016d\002\222\010\323\000${fZ\316\220\250\226Z\306\367\021-dRa\206'\026\213A\0012\226\"\256uK\231\210\242e\022\2131$\005HD\336\n\017\315\333\021\204R,Bf\210\322\245\032\235\275~\273[\275t=\025\365O\006\375{\360zU\201\243v{\340\201T\2309\031\014\221U\336\205\213QQ7$ '\342-\r\351\241\303\222\276\363\270\350\3709\215\215\243\2112/\2369\375+\032\023-t\3346\003\373d-Q\242\246(\251\214\226P\362\245\310\306H\302\341J\0242\004\310\252\345\274*\210I{\330l\310^\253z\245\373\013\023\341vQ\240\r\317\203\303\303\332\006\0202\273^\336\345\224gR^\320z\307\256\200t\007\225\021a$\332\245\273^\307\246\370\273\257\256\327\25334\314\311\226\200R\030\230fi\r!\223HL\314\246Yf\220\262`QW\207<v\260\250\"\206\201\344\005\273\006\225K"")>aG\367\342\0374>x\200\027\004\237\030\243JX\201j8@\370\324\372C\351C4\211\202I\002\004\222(\373\273&\320\227\203G\376\226\347\312\346\327{\301\200K\247\340\312\361(;\345\316*\024\373E\226\267m\027\204;\261\370\317\000\313\302\370\322\365Z^R5\022\317\204)\326\031\272vN\223\232\341\333\207]\310N\241!d7\r4\033\206v\255\314\271\231\232\314\355\275\353]\370u\240\206\0036H\2579t0$\320\306\354\351\347\304.\005\355<\233{Zg\2156\021$k2\\),\213\217i\345'l\244\031\010\006\0241\000\200H#\214\030\001\371\221\306Z\273\025\346|\307\200\022\365y\274\367\237\351\3366\332[\tV6\330\304F9\275 \\\210H\000q\252J\212\205N?\037=s\022'\267\317.\316\245\265\331\004\"\356\034\210\023\007\261\231=\275h\030u\240)\003\212ni\271RY[}\342\245\035\034\027V\002\354h\35625u\365\361\330\206\264[\201\030i\004\203Rq'6\367\341\371>\223M\236\257\252\350\207\321<\357Dd\2220}\002\003]\027\260\322\3428\235K\246\311u\322-\032\254\026T\265\2126\030\022\332G\247,\204\205\220\034\r\317I\223\214\0272i\007\352$\014\314\327\004\010Q\002\360\321L\004\3214\023\0044\005:\235MN\001\240\332d\001\033$\300\344\220\311\222;\205p\013\001!\245T\035\356!\007\204\035\231\370^\237\234\374\375N$\336k!\261d\2121BJ%\301\275\017~\337\n\363\266\2003\267\352\315\367\375wy\034X0fL59\321+]\362\340\237\324\366@\273\334A\3662\300RA\203\010\252)$\331=\216\355\355\376_\257\307U\360s2\254\322\215W\272\3231\245\016\264\304\177n\312\0100\360x1LL\020\n1~\2404\\O3\3343\361\004?\227\260iO*\245Aka:(\333Qjc\026\215\3131\262\021\226\245\014)ie\245\226\226$\"\205\202%d\260)!a(\330\310J\233R\262\321k\2276\345\312kKf\246Iq[ @\"F\322B\003H\321B\355.\002!\216\022\030\0235r\t\215\264\252aW1.+\014A\034\326\215k\371&\031\202\210\233\330\0312j\224X\213\021\370\000\334\210\201!\"B)\000e\347\242l\"qm\2557\310E\021\361\333\014d#\t\022$P\355il\261 \321\220\316\320\242\362(\271\2649}\254\376\256Z\020\354|Z\303A\2143U))\205\027\365C\333\001\026Af\275\317\223\345\353\241Sd\007\204\324\370\221d\222\021\211B\365<Oi\230\310\003`g\031V\356\r\214\244\002\014\025\202""\221d`\204\030\310x%&%@q\336K\327\371\001\366\361\276|\033\300w\370q\325\343\332\225\270\036\357\200\354\343\373;\350O`$e\310\312K\362%\254\345kM\365\247\360y\355\200\354\302\002\351\277p\245\200\367!r9u\236\251\010\014!\tn9\033\242:\223_\267\260\324j\323\207\311\302\354\303\252J\251\322\251\237\234\"\206^\313\236\306\225\240y\337R\n\004\332\325%\006\000=*)\021[im\267z\266\233j\236\034\251\030\250\264\213\027H\373\0218`I\020C\002\330\336\376~\036\035w\341\272\214{\270\325\371{\330\026\345\257\253\322r\216\346\313\274\237\216Oy\346x\\\003\221\321\306\256\"u\007\336\246m(mC\337aF\230\2065B\250T\373\322\023\232qT\3338C\nhym\036\316\226\217z\225\303\2764\371\t\315s_\307=\303M\003\361\3037\223\214\314\034\376\262\374\277\224\375\221\372Ik\365\331\327\330E\257\371\256\340\326\022}\273z\220\217_|\371r\366[\230\243\013\021\315 \257\204{\033\0237rrQ\206\274|3\362d,\320\204,\\\352c\305\006\022M/R\373\337\303\372\364wx\307\274s\355\276\232<\213eJ\250U-\254Q\025m\337\263{\353\236g\361EF\02132\253r\275\256\347\242;y\357,\276\252z4\014\312l>m'\315`\276\264\331\230/\017\247\013\373D\346\376\337u\354\321\223\356\336}\366\313\215\271Y\301\370sk\315\375\n\033\002\203\344\316$%\357;\272\033e@\306\351d\340\222M\315\316N\246\016\205]X\334\321xH\311\271\271s\354\3439\252\327\215\323\241\366\234r\337R}\271\357\351\244O#\261\330\334\364\205\320\317\003|^\261g0B\262\222\345\312$\257\233\342\374_n\236\r}\202\\~h0 E-\245\246\030T\310\337\364\371\374\337O\317\277\300\343\361oY\231n\254\250\261\314\302\345q\252\274Nf\367\242\345q\252\277\262\207\275\355c\367-\371=\314>\325;\217L/j=\347\333\000\004<]\344\372\215\3662\017\230\334\253\025\264 }GG\0101\006\220\327X\274\204Hz/iS\021\263\373a0\336VA\375\n\210\320\347u\213\312\016\003\301Ih\356C\356\231\020(\262\262\263\246\024E\267\177r\005\257w\336\247\326\30030\374\205\203\000\336\377[\314\r\215\306TaqJN\224\370\035'\214)\275\225\205\275\335\230\026b\017j\314\017|\311b\"\302\250d\235\016\204\235M\213\223k\263B\004\255\320\360\300\265\312\252\241X""\303{\371\360\365k}4+M/\277\006\301\350qu\t^\357\260\3617\235usq\200.\245!\3231:\n\252\240\204\201\n\222\0238\253\n\252\240\206\273\026\241\244\t\017l\021z\243\204\351\337Q\023\357\364\020z\034\033\361\221O\311\010\177\023\256-\253\211v\267o\215N\372\350G\003*\217|l\256\263O\213=\316\322\3670\371\253\021\221+%\354xq\027\360\232\222lrQ\324\344\247\302\253\253y\273\253m\266\324m\264[m\266\325\374Y\231m\251\034\362\361\231#o\031\357\036\023q`\202\361\325i3\014\302\023\221\227.:\357\210\221\356w\355\365\244\300\370\216p\374\232\353\311v\252\257\233\346\342\270\252\374\rDz\224j\003k\253\351\177\"\244\337\2330\032\313\346\345\022I$\234\224I&\357\035\002\306\326\250\327\214\330T\254Fd\220L\217Q\247\2108z\361\215\272\252\027\026|\235\337\010\355O64A\007\231D\2270\\\223\261$\331\236\303{VM\255\037\017\227\267y\236M\364\3475\345\347\334=\302D\200\254PDQTP\304@z\252\361\236\027\247\305\344\353\2359\343\345\336YI\222\020\030\202M\243A\363\375\257\235-\264\322M\027\325\367\245;K\311\252\215XZ\306\215\215\244xl7v$o\240\212\322\350\340\271\311$\231\345}dk\240\215\004\337Bd\003\003\304\2159\232\326\261\266u\212\202\212/@\313\232\300\215\365\305\250\312\240\252\252k&\233\337\370i\347_(/\007\335\363\320q\310\236<<\357\214J$\204Ey\307\347Y7\261{\235\266\003\226G\201\033k\323\272\273\333\304\346\343\254\3609p\204\236f\326\347\\\314lU\\D!\233\235\212\026\231\030\2073\036X\277\221\346Gp81\242\317\262\356\353N\340\375\211\332*\375Gk\242\006\266\030\276\262${5\350E\355\206\312q\264\361\020sV\251\032\327Z\255hO\004\271\271\324\370\034\221\335\331<\242\\\272V<\314M\267qm\007!\316{gj\337W\327\251\005\\M\017\0021\245\350E!l\217v]\373\271\355\027\\\010\260\201\252\0170l|\325\257\275j\033\230\214\203\341\242;G>m\027\305?Ch\343\022\271\036\206L\230(\234=\206j\006\260\"\004\361t\013\233\3670\300\005\210\343n\225c\201B\343\226\351r\031\330\235\363\233\235\360\240\267q\222\016\250$Pr\370:\241\343\221\240\306]\265{\006\326\005FA\2212'2i\035m\240\275\305\305\354f\343\215\010\262\241\234^2\300\n\264""\241\246/\335\220\354\375\3235\245\205y\333J\255F\271\207\303r\224\025#`5\260\357#~U\245\354g\307\032`s\265w5\215\205\254-f\343\023\342P\216\\\2565\231\017\220\022\026/(D\230\210\004\207\351=M\273e{\275\276\352J\017\315\364\314\302I$\227\316\363?MT\244\222\344\007\217!\345Zr\346eXY\305\272\251\341|8u\323\326rg\327n\373\210\246\205\355\216w\365\352\270\362ZdA\034\271k\356\371r\353\221\356\327\256=\316\335v\034\335\255\354\3533#\245L\326\260A22\260Q\202OyD\2317:\327y/\006\"\236\212\316\2652uop\022 \240\301\210\000\022\265\006\255F\365\271\275\344O[\235GD\270\356\353x<\264\022\343\273E\246\333\2336\362(\326\316t\033\256|\343\032\332s\227\347\033\230\345;\214\r1\213\356l\r\337\310\006\0034\352\237\352\3240v\263i\020\033$\016u\371z8(\261`\240\310|\364,\223\317\257\177\253\240D\371\370m\036Tjs\226\320\366W\257y-\2642\343b\316I\016W\332\227\027\"\014\n\366>\226\347\2749\247\274pp\234\320\324\217R\327\021\3721g\036\226UqOIR\371kYSXK\342\234pf\357\306\020>\240\201\326\215\236\234\246\273' \021\t\333\347\355\324\314\232J\371\205_\230A\374/\322\037\210>\223\350@\372W\230\r\277(\226\361p\336\253\342\010.s9u\371>8\347r\355\300\363\262\314\215\300\261\346(Zu$\225U\363\257l\374\235\351~\231\234\351\325k\226\n\336\222\210\232_g\261\200\304\rr\361\201\322\025\233\353\254\230\3153\256\2560:H`aa.YP0\2224\346a+!!\255\026WN0q\326F\344lK\212\2251\202\244Z,B\356SJ\255\3002b\004\315d\310I\257\250\332\341\2112!*\nM\315A7\271\251\271#,\346\2512\356\\&o\232\330$\363\350\002\256\355x\026MN5\0269^\033]P\002\230\003\030\201t4\214r\240\304*\241aL\340\262\r\336\2006\0070\303@\302\252 \304\020\nB\224\212D\rA*\242d\204\264\014\314b\361+9\234\274\360\243\221\330\322\203#\310\233\244\004T\007X\367\016\032\374\333i1\366}\332\371q\211\360\001\\\351@\344K\363\234x\030-hu\230\203\004Xt\312\261\003m=\316`\n\013 ,8\324^n\377r32\221v\234zt;\332Y\255SK\224w\243\2435\014\3358\216\331\037\264\000\340\027\355Q\214\356\226\031\022\021$\006C\353\250\025!\004\035\" \262\n!\273\235*\\F\030\266\333\302\0259\375\213Z""\336\316\013M\321\t\243K\004\247\273\213\326\253\267,9\353\303\252\315\222\314(\3230\237\311\234\363#\216\326\r\336CG\325\033\2119\224\220\351\254\001\002]\014\302hGJ\"{I\300\357\232\303\321\232y\214ZQ\346\234B4-:\003\316\224\3140\203\031!\321Z,Bs\343A\003W9Q9\273\023\303f\\\251\300\371Z\302C\236\357\271x/\277\254\331\304\t\341\347\225\332H\020\314F\361\204\243\205Rcx\236\020\225\232%\303\334_\363\272SQ#\363P\323T<\357\226{m\307\325\351\017?Z-\257.\256\260\000\327\362\001\227\227\357q\345\256\036h\234\361\352:\010+s\022\227\tk\"\336\316Oc\027\357\001\2003\253\2733\006\003\332\301\224:\035\200\007\3134AG3L\224B2\245\343\\!\302p\234'\030\227\026\244\363k{q\036\223\210K\217p&\022`\340\364I\033\242\374J{^\230[w\\fn\303>\233\301\r\263\251\320I\024E\267\204\221\310\205\247y\2444\230\211\212\004\304m<\031\210\225\330;\253\205\202\356\221\225\367\310\314!\253_\270o\215\035\332\201\2730e\364+(\336X@\340&\320\260\264\3479\000<\333Ln'\n\276iyF\003\240\214\332\325D\201&)\366\205\255\303\312\345P\302\241Np\363\016]\3023\020a\001\007\016\366\205\213\007\225\212\206\316\3642\036\371\201\240\324[r\237UU\251\221CwW\3308{\220n\024\202\315\202\262\202<\204X\227\034F\225(\350F\0373\306\225\002.3\024+\201mD\263\006\213\253>\264\316\004\270(?\342:\306$Xi\244\353\246\340\342\372\207\313-\005\364\322\205\3366\002\"\356\t\2708&@Saw\200C\323\232\315\344'Ws\\e\232\276)\223\r%\231uM\201\r\022\353T\273f\371\316\353mU]\226\200\271\206b\251\025UUihE\245\252\260QE\245\266o\257=\340l\252\252\3674\031\355\351Oe=d\327\211\023\332U\0061\210\310\372>\rf\303Xw$\263F\036@xM\t4\t\236\263\320\005a\315\034/\230\"'\033\320S\302\252\252\350\265io\240a<\316\303$\023\267Z\362\363\354\240\263\217p|\035\031\216\260\271Kim-\246\203 j\341\206\226\342x\355\302\224\316\375\033\231;\353{<\310\022\007 f\246\251\310\373\000\337\017\007DD\300\352um\264;\3377z<o\241\331\254\020\337-\241B\210\202$E\026\010\304 \004\030\034\322Q\273\024\324\310BT\016w5\n\247L\007q8\207j\372s}\374\243\246\030\3506\027\260\035C[\023\265\236""\242\313\254\353z #GW^\310\354<\313%\330\017{\346gZ\016\247\002\2426\224\245/k\321g@\315P\355\222\\\354v\353\256y$6p\246\305X*\252\305UU^\264N\273\313M\316Y$\005\004D\022E\003\264=\035\235\201\327![\031u\300\350\0316\317(\233\303\200y\000\242\232\275\213MY\274=C\010Rjp\037\272k\243\202\t\000\202\005\024X\324\007q\233i\200\016\030n\331\024\000-[V`!@&\274f\301\350\341\227\033ZX\344K9\335\227\245U]]\307\027D\300S\032Z\r\200\352\324\304\242\3453m\321\246\231\246\343\244\nlN\335\346k@p:\331\262\207\253\274N\321\220\355\200G\270\245\273 \235\256t\035\323V\004\020\327IB\366\354]a\007\307{0\232*\363\255\035\365t\371\003k\3274\245y;\200\004\000\010\020!\014\000\000\000\000\000\000\000\000\000\000\000\000\000\000\004\204$ \000\000\000\000\000\000\000\000\000\000\000\000I$\222CC(\265\306\202\367\246\363\214,\267\331\027\212\217;\266\345\234\317\032\327Y\207w2\230\346S\034\312c\352\n\360\201M\211Y=]-\315$\232f\030a\254\2725E5l\014\020E#q\2565\266F#\030\031\004I',\306\216\n\311\242\201\253u\231\231\231\231j\216\\\271\206kZ\321\254\233\206kS5B\242\231'\250\034\376\301\220\004RD]\365@\226~\214\371\\\004^\014\003\3479#h\177\0048\342,\0047\373\232\361\343\370\000?\306 \333-,)ZPq\026\270k\256\263\267\242\016\215\377\205\344\0215\010r\210PB\000\021[\020F\210\024\0217\025\220\003R\302\t\020\315$\016\261\264\333\251\215\367\337\272m\254\363dm=\316\341\314\0223\233=j\005\216\267\272\351\014cK\253\233iX\201h2\\J\017k\336\203\244.I'\306\024m\264X!+;0h\334\275\034\255\325>\247b\321b6\306\226\222m\2446\230*\023\014\326\212\307{e\326\013\276&p7\000\214\3466\021\001f \222\034\022\350\2438z*$_\021\233L\032\0074\031b\006~\306\352\314\300<\320\327t\320\036\333\357\001\305\r\366\302\204\314\tp\305~A\016\034\206\006\\e\\\275\200\346\24479Qj>\306\367\251n\312mM\360(\231\2066\345\014\355\306jN\0061\331b\3508/[\303=S\262!\007&\230\310!CA\3148h\032\274\020\033\000\3037\201a\200\0321\337~\272hb\371kP4h.b\303Ch\016\301\0017\336I$\241l@!\220|)\23273\271\300J\321\273#\201\203\270\344j`Uy\246yV\347]\030""\033d\026\007\246\3723~;\367\366\364w\243\323\240\303\263\202\022\243\021\204\215@|\363\306\315\004h\2056\231;S9\260\342\3103\217G\217Xo\376N\256'\332\320{\214\375N\227\325\234\020\235\207Z\355\205\325\020\356\000\"oN\016\\\242U\002p\352r\276O\230\224\267\373\260\001\311\212rv\357\\\347G\224\220\"%h#e\311@;\373v\343.\226\3468v\373 \037\233\244[\350{:\217\244zu\222BFI\005!\026A\221\353\354\375|\274\274\272WJ\256\354\006\246\303)\352\257n}-\352\373\004\210\302I\353\372<\230\r\3472\307\236I\022,\022\t\"\200\020\212c\221W$\223\246\215\257\007\006\257?T\351\367\272\370\207|\202t\024`T$\022N\327\236?\360\033\025)\024\240d>h$\205U\004\220\313@\217\222\331\003\001\002.\333\254\266\262\233i\226\261v\316d\232\210\265M\322U\217(\350\252Y\234@Za\31623!\005\020\222\035k5\360\207aH.h\200k\330\340u\0220\026\021\220\030kS\031\213Em\336\370\030\334\360\365\322\347y\265R\032\332\216^\016OT\345\333G\265\302I?p\215Nb\274\010\323\003?&j&\2352\277*s\320\016\221\302\214\350\354\347\327\013\333\340\003vo`V\032K%\332\224+P\325g\331\302\375\244\361\036M0\346\222\032x\236\351\224\"\003\2500'\"M\332H\032\262x\303\246M\014A4\341U\245\357g\366S\353\361\3567\3242\216\361\r9\346\017\342\204 \020\2100\222\005\004\233\343\326u\023\273\317\270\030d`\313\333\017C\321s>\272\366\345\355\207\022*\300U\006 \260\357~\017\257M\363\227*\200\266y\035\343\r\355,K\022@nx\353\350IdI\366\037\002V\275\242\t\210\212\003u^\0342\316\366=\372t1\213f\007q\260\246\350w\235\274Mnh\020\273I\221\267\230\007e\271seZ\r\036\335\302e\201\344\233f\233\001\275#\303MI\365w\303\272\272R\234\010X\252\223\224\250\233\361s\265\302\301\235\223\030\231\330N@\230\340_\220X\212\030+\222\327\022\333\226ND.@o\002\020\327SXop\271z\0160\343j\025\305\250\202z\201\261'\246\311!\240P?\315<\275{\367\361\311\216\2320\332xT.\354(\223c\3043\265z\036o\324!\260db\023\201/\257=7k\363\357\350\016\322\027^\016\257\217\233\277!\002\037\204\370\001U\002\003\004\030\200$\221\201\031'\302X\016S\307\323\311uNV\344`=\254\252\257\317@\362w\322,\321.8\277\210""\016\360N\235\254\014\303\215\262\361\336\302\224\202x\253\320\206\375>&^\317\311L\231\241*\362se\321mV\315\024\315Z\341[\241\016A>\205\310g \227!\256\367sro\031\275a\322#\333\303\264y\353m\310g\231\rl\225\010\310\310\3523\316X\324/\236\025)\013\356@\262\331\276H\205!b\341\202\033\330\364+\3062\0001\212,\220\021\n\312\201\343f\257\235\305\360Q)\231\353\321u]\230w\302\212*uo\243\316Z\\3\3249\346I\351\001\004\006$ V\366\r5/\212\323b\213\355[o\245\215\003X!\010\242\004b\"1Sf\217\033\327W~9\343z\302\361\202 \212,|\231ksP\325F\311\2514bU\233\311p\036\256@\234\276\035\217\231!\330W\301\202E\214b\036&\376\337\260='\266\226\325*\023\351\301K-\021U\221UQH#-\3279jJ\"\242\267R\342,\246\031\254Eo\224\326\340\273K\222\330\200\267kJ\343f\300\01476R\312\270\001\022P\245\266I\222@\014\314\224Q\n$\n!q|z\374\036\003\303\036P=\262\t\265\265\225EM\t~\324\275\246d\312\325\001\020\210\tKm\t/\323N\212\335\317\237\021\0208\261\"AD\307ga\354/(\201\"y\374\344>?5\253o\017<\353\237\0240\022BI\010\321$\332\305\255\222\331)JH\266\245$B\224\333Dj\370\036\237\211x\352\267\277\361<\327\330\310:\373.\367;\020\363\362\305\361\244 \246\365\355@6R\033\223\233\227\247\277\226\247N\016\326\255w\303u\\[\230\233 \206YV\232b\323\224\202\302H*BH\246\367\\\302\306\250\305>\277YU\344\310\035Z\347\236\003:\214\262\0131h#\254x\211\035v&\301\024\344\274e\377\233\276Z\264\342\304\014\204\273\327/\207\261\362\006\2530C\033\240H\226y\001\001yk\351\235\\\366\366\352\023\253{\370\003d\0020\214\002,\030\202s\362T\334F\311*?''\232\022}e~(\006z\301c\021\343\302\033\226\033\242\017#`\035\\\315Z\215wwU\277\260B\322\343\352\007\017\251V\031p|\025l\357\353\373\330:)\326#\230\236H\247+r-\264'\251\352\342\371\345C\256\360.\036H\275r\031\250R\324@\371\267\207\256Q\221\216\201\233\260\265\270\333\030\022\303SP\357B\205%\340]\344\204#\316\227\204F\272^\023b1\036\023\262`\262\207\3253\ral?p\301\222k\352\372\332g>\255\366\330Ox>\332\277\353\276\230\024V*\311\017\276\321\231\366B\222\232\222Q\310\024\0045V\023T(\202\226\345\327]""\036\025+\237\r\315\003K&\211\235\350\201\311\006\251\"\021\201\002\001\0175B\251\002$O\230\000\325S\332`f\006gFtu\t\256(\255\344\303~\022@\004\323g.-(\371\300\r\326\206\351@.\327\004\243\360\250,\200\n\004I\250\232\370{\350\347P$'\324\\\346\207\333\351o\336\267-\367-\333\231\001PDF\244o\234\330e\325\245\345\005\n|rJ\245b\240S\324\251\227\2314\255\311MX\020\332H&\210N\305d\030\r\206\r\026h\242\005\"\020\002DYr\240\0069\200\005\033F\331\034\363k\215\352+\306\361\244\265uMT\243#\\\"\311\253\216\360\201\337V&ep\311{\266\031\251)e\326\022g\234\374Y\336\036?5'\314y/\315X6[j \215\265I\367W.UI\010\004h\242\372\301E\270\201\021H\024\376\036\2460(\304\"b\224*\010\030\"-\221\021-(\034\225\260,\326\360.\356\204\025\225\262\021\022\021\220Da\031\004$!\226\230{0\206\030T\247\030f\333mt\330\232\013\005/\251\324\235GWR\2158Tt\330\036$#\021\030\014\030w\313\204\206\226V\024Sh\0137\207\237ow\227\246\360\256\304\221@bZ\036\302\231\230a0\301\202\301H~\343\000\241W8 e\313\227\035?p\320Mf\222\230\353\217d\312\220C\220\006o\305\252\235\246\260/D\201{g\303+N\262\256\\\247J\227\245\210\210n9\260`\315A\240X]\200\355\272\177q$\222K\344I\305\r1\256\250\004S\226\016@\220\227\020\240\263r\335\252\227\274\200\336%\275!\351\366\375\260=\265\246\264\317%\256\346\220P5\333\023,\343TcP\322\003RY\2314\240\267\364\276x!Y\007\212\003:\323\232\007]\000\212`C\360\370,,\266\244\017\211\210\267\275w/\231\276E\356]]^\325\263\013@\3123\031j: )\261\334A\300XhF$J\010\271_\016\205#FFsq\001]yP\347\020\322\315F\333A\016\346j\211\247\245\263P\241\326\005{\275xu\346\014\n\342\356\256\256$c\251`\0260)\224\260o]\320Y\210\263\322\234\223y\207\020\025\271\2360zof\022\000\311$\266\271u\354t\202\374\211\360I^\005\316&afI\352\303\032F]\261\030\302&((bH\3102J6\342\000\366\006\275\211\237\303\2424\024\204\0161\334\007\354\021\003w\347\017i\177\354\212\330|]\350$j\267\245\253\200\002\200\002\t\001$\222B\204\220\014\3174_\260\241\311=\205;\247\235C\242]\312\233B\350L]\2217}\264}Tm\223\241Fr$\207\253q\330\323\326\023\226\020(""\203\334\374<\2148$\365v\212\244a$\247\225m\262\356\372b\024M\006\276\217\225o\245f\226\224}\346W\336k\252{\307\315\030\203\365\275\003z\371\351d\006\230F'\267.>\326\314\301\352\357\241\277n\241'\336u\371\024<\204P-\177>\274\014\3221\020\355\313\252'\210\350\036*B$K\002s\361_\217a\317\336\364\364\035\314}gWww\260\177\203\321LTy{&\246\341\325\374\204\211\207\002\006\031\236pl\314\013v\002P9\277\301\031\266,\014X\210\031X3\3578\306e\344\220D\222\330\333^\324\337\267\307\343\336wl\277?\020\350y\247m\270M\024\237gT\363\366\337\257\363\377\006\000\210\261\212\"}\322|E\300\332\000\016\3600U\202\311\037\340\205\010W-5\212\247b\245d\374d<\250\345<x\353\352\346\300\230\220\241B\315\356\276\207\300\237\n*$\242B\255|*\324\332\332\342\"\266\324b\322L\251B\332+^\025\257\221\356\327\257\177\275\360^\335\355s\306\370\334\3619\261D\2101\001E!\0061\314\204\244\360w\367O\276\036\261$@$\345a\035|\317\270\307=\3361c\354@S\303z\252\360\364q\0130\233\322=\300\345\350\360\301\340\366\207qn\007\221s\024!\274^\360\027_\010\026e\2776\036xCHXy\007\026kK-\n\247\021\301U4\020\020\237\330\"\266\006\253\365\244\313\204\345\334\277p>uQP\214\016\304\242\003\r37\346\222Nx\365\316\n:\273\364\200fn#\306\2018\216\351\200\201\226\217\211F\235\316\310d\271\030\242\214\350N\337Z\265;\342\206\304\004$l\250d\223K\370la6\tP%P_\3335\0145\ru\313k\233mR5\3214\353\001D\312E\021\255UU<\247\366\300\003\363\223\367\217\336?z~\377\322\034\201v\303[0\207\035~&\007\217BI\352\000\247x\326\254\210@\023\330\333\277V\343\347\267qX\004\022\226\352\003\301\0075\236\330Z\000-\n\320AAv\273\231\266\2019pJ\300\026\254\354\224\344A\020Y<\245\230\0030\212\003\010J\252a0\230J\373$\361\023@\006J\030v4\321\307uK\273;B\366\264\301\001\247\023\241\227:28\270\342F\241=\332\360%\341\203\252C\t\362\322N\340\231+\352\372\320\013\367\366\273\250\321J\360\036LZ\253/\034\310ZK\002Wz\322\232\323\211O7\\\304bg\r=\206\324 a$$b\013-q&e\255\262\224L\264\302\237G\321\354\336\271\304\203&\362P\337(Q`Q\206\250\n+\"\333\013rmT\311+\255v\246\332\352""\345sm\2671\255\200\001\021\000\005*\000J0\271\234\214\221PE\310d\002\346\365&\246BB!\241\331\221MI0\031\272a\264$,-\017\273r* \244b\212\362^\367\315\332\230\310\321k%\262Z\307\321\277\002\257%\367\032\007B\024\221!:\207\200\356\234\3647\367\3112\335\263\223\230\356\336}\236U\216\251\217\313\250Bs\337\366\036\035j\026^\305\030\256\030\331\225<n\324\244\004\230\234&\017\306 \305\214}\255\230\251QG\205\260BEnb\333l\245q\000\341\230\"\302\350\270\341\024\274\220F\310I\234\223\305\230\217T\260mz\246(\030\034\225#\n#\030\206\315\363zk8\251\366~\277-\266\202C9\251>\333d\337\323\237\010\314\301\250Pv\2260\337 g>\3546\232g|\271\205\234\314\204\023\204!\354\231\260>\000f\006d\242\313\231\273{n+v\255\330V\355\226\031\231%\277\331\025*\214$\031\224@\325\036\242:r\261h\204!\036\244-\021\033Z\276f\364\332\022\014TJ\2461STK\331\346\256s\253\345[t\362\324d1\203\000\231\217:\320\031\230\n\211\005j\332\020\000*E]\336\376\021\tF7\276v\264\220\003\276y\240~\332\001\343# y\312\240^\373'\231\236\267_,\252\302\212\334\306\212x\013\343\001q\352\255)\345\017 \213t2c\214\325/\307\277\006\325\204\214I\016q\220\262\002\2043+\235\010\242v\275\207\177\237A\362\007\220\023\233\321$\2222@#\030\230\002|\371\250\321\244\360\203\260\207Q\360 G\001\3268W\010p\234\023\363,\346\226\363\200\340\355\213\322\275P\023?R\364\341\303'\237.7.\313\227\n\347\023\241\n\005\231\212\260\314\306h\033 d`CC\022$\242\304\020F\0140e%\262\200\014\013\031\n\004\334\375\310\242\215\003\001\3202\311\2630C\t\200\220\246\005\020\020D\204\300B\206$\033hY \3605.\264^JI\221\014\021A1`\024\211L\302\245X\026u2(\000\2632\212\030BP\335&M\024@\201\201\026\026\003\320z\302\362p\222|\314\234\035\231\370\373\277-\251\003\317\1775\303\357\035\325DW\177k\022\300\305h\244\250\210\260\221\001\264\225\273\014(#\221R\340|\301\201\n\377\242\227\304\224%d\256\226HA\373\3348\374n\235\310A;\207\022S\272\016 \253%)<\240\342wp\341\351<\245\242^\027\316\222\307\001\264\337\336\31181qE\016\032\2432U\\,\201p\031\031 Z\263f*\224\2554TQ\350\232\345""\274|\3378\037@v+7\327\217\031\002k\237\343\336\302\377w\355\326\000\333j\363\275\324\314\206\r:\331\337\205VYV\226\346\366\n\370\304\204\352\023Z)\227\202T#{,G^\215\"\022`\000\354\314\314\200\005\233Y\341k\342\223\367\340\335L\342V\347\237J\036)|\361\326n\343\026\252\316\252e\262&\3217F>\340\206\272\346\007-)\202(j\r\344\220&\363\033%:s\351%Y@J\264\034\366\353\337A\375P\344\003\3147\271\000\364a\304P\254\026\n\203\003%Rm\222\333I\255R\\\325\241\323\212\242\327\216\362\"%\t\302\241Bg|\367'0\022#OH\353\255:\306!g\351\035ff\210~\211\366\3752}\177\355\374\035w`}\177\215'\355\306\242\200,\333U-\254S\275\n7\344\270\344B\211KO\256\215._\032\323\225I\375v\356\205~vV\020\030F\001\223\375*C\240\322XR&\260\240\031\036\243\000\374Y\314\332\033\030i\026s\271\254\201\240b\220\343)\260Hh\313\022\0021\211\000\300\346\031\010\004\021\212\000O\352\221\215\260\200\375\220'\016\0205\335^\353,\344\302L\000\230\005UH\253\004r[\003$!\032\nPHJ|\236ok\327\354\233\036\2207Pw[\250\373e\353\352p\260\017\260\202\246i\254Qim\244\333f\262,H\003$\3214\005\322P\302^]\001(B\205mGS\336\360s]o!'l\212\204\367\330UE\001\210N\347q\210\304\020\357\365\267\251\325\020\242\300\252@g=\343\366!\251\270\253e!\275\242%\2205\332\224\233\264\232\272P\220\361Vs\nI\nB&\211\002\014!\2311\301\265TH5\002w\001\265\200;T\356\210\213LQ\303\216\352\302Z,\002\021T\202\203$\200Hc4\342&\014\213 \023\273\273\263\201\240\202\207C\000_m\t\003\021\004!\350H\026\373A\n$G`\010r\346vI\031`\347*\300\207Vn7d$.\232\010M\233\014\224w\306\355\tA\252\205\224o\201V\271\364{\240q\310;\275I\331\355Q\221\246{\000\001\243\271\214k{w\336\205h\3372\332y\217aS.\376\301\330\351\203\252\035\265g\305\003\020Gl\232\264\311\000l\240j`(\004\rHD\350\222\214\"%!\242\035\0348q\242\342\346m\263m\024 \341s\231\315\303\212\341\030W\033oG:km\324\266\213\025Qh\301E\036\211[D\221K\230dP\206\231(2\021AAH\014\206\024!V\235L\270%\214b:C1(\025\210\222\273\205\213 \013\"\n\313\260\221\256\025p\242\225(\253F\314!\026\344\016\365b^\tz\240I`\314\320Xvm\374\023\030~q0""\204B\016Y\335$\204@:\353ULg\023E\250\367\350\202\n$r\352OY\226\231\231\201\230\034\310m\033Zj\310T\030\344\263\2371\236\206\017F\226\010*]\331\265\341\225\032_$g\215\267\216\233\271\3434F\2133\204':\017\245+\356!\366\023Htt\370\204\376\021&\222^\032\034>\322\031\334\t4\231A\025\r\364\206\0237X\006@\276T$a\302\245\322\237\222,\366&\021\350\326j\363\221\014\315m\3609r\023\032\252SJ,\251IB!Ri\256\327mm\354\354!\003\300l=M\373\3320=\272\270|\236\371#\365\255A*X\225A>< \026D`\200\244\200\345B\330\211!\n\302\013Pc$\202 D@\370\351\0134\300\tJ\226H\376\363D\014\272\335\3044\271AC@2\260S\264\013\344\242\034\236\265u\3673\003\203\331\345\010X\221\007~\215\376\362\212|\203\000\361\367{\000\2368\254\010\214\363\217y!\001},P6\210\035\260*\350=|\365\"\035\314_5EhL\365\000\235^\204 \305\031\337\340\333S\321\013\025ci\227\256\257jZ\312Z\364\224\244T\207\310\310I\362 \004\245i\0005$\010\n\215\002\244\010\010@\021\303\223#\023\2154\211%\274F\233w&D\0046N!\005\220X\261\037<\016\222\220/Gz\357\030-\235mQ\251\266\326\346j\315\263Q\022\033\371\236\243\274\005\204I$\0219\304,^\207\t\224\222''\374\311\215\374\260\362\305?k\327\305\226j\211\315\366\262\313\234\357S\032\nf\306\032\214\342X\010\274\306\3519\246\007\2015 a\231\237`@[rEr\202\257\237\303\344L\312bp\347/\3303\247\004\026v\265$\023R\233\312\303\004\251m\200\250e\020\314&p!\026\305\026\002\234\330\023L h\031\003h\006\024\244\002\006\365{\367\340a\304$\225Ep\001\330\365_j\213w\037\014\362\035\314\351\025N\020\004\332IY\246\366\001\307o\037\025^\264\354P\371\305\343\347\354\202\361f\347i$b\211\006\242\255\251\275\023\267\215ty\353\321f\257mb\212\223E\002\247D\004,\207\203\224\222B\216\307\275\357,\207\247\3506\222*m\262EY\0044\232,\202\0003\333j\374P\016\217\245\030\246\311\352U\212(\037\007\315\003#\241x<o3@\265\030\354#RYC9[\241\206\"jEqa\026v\202-!\254 ^8\204\203\250%\370\252\241\355\305O[\327=\311!$6\213LX\206d\032\214'{\344=\257k\030\014\217a;\217DafP\004_\021mK\034\214!v\367\020\033\226'\tY\236W\030\236\262\234*\004[\321(\222Z""<k\267\326~\357E>\033\005\246\255\312\013r\224\255g\356\354\252\257\277\360\375\377\223\235\017{\337\314\273\244>S\360^\361\035K`t\000\\\207\213Z\231\232h\020\033\265v\205!\244\233h\022\312<:8\361Z\263\323x\334\241\325\016~lq\232<x\005\035\254=\031\3178\236|\200\266\315\275s\264\200\272\361\316\354\3337m\016\235\006\261!\200\366\347#\330\006\211\333N\231\000j\032{^\\Z:\r\271R\323\223\215\211f\004\335\205v\262\026\334\021\232\2618#3\202\275j\024\362\264\362\342\212\253\274Dy\364k\214\305\206\244\312\274\0348\304|6\246V\237}\352\365^\n\250\242\rE\265\025%\215Tk\021\215\257\205{ZSw\266\335vDH\254<\200\254 \025\343\236>TqHYD\332\217(\003\246\001\010\241M\273\212'w\212\330\024\336d\t$\216\273\356wwv\242\274\240\256qC\234R\321G8\212\231r\345\214`QY\020\332\324\242\355\004Cx\212\271\376\303;na\323\264\343\314g\003O7\032\267\207oO\021c.\304\304\325\232\205\034\351\014\324\010\231\231\025t\340\263H\231\252\001f$\304\240\010\217\000;\217s\253\361\337U\317\000\021\035WN\226\351U\236\336\200u`8f \226h\014)b\034^h\001\244Fu\021OW\262\336\320\241\250\001\335\247^\274z:K\237\271\325.\257\320b\354\003_B\006-_W\227&\rU\266\216\373?\234rn\335\031\275\303\243\022\236\351\342\303-n\377'\r9\215\036$s\0078\310\006\002\025\020\220\021\204!\020&\016\035\274\272\325u\326\236\273\343\204\033\301[\304\037\023\270R\004)\363\252Q\016\350\0311 vL\311\262\300\321\0024\005r\267\271\227_>\371\303!\024_e\024\201D\002I\004[\037>\233H\257\332\322\210o;%wS\226/`;\252\260\210k\301\317\3519\275U\357n%\226eR\313\247\361B\324\251/\321yz\365\370\300\246\tv\363\253\212\201\256\222\244:\0232\035Z\237\031\352\365|~W\341P\017c\272 \301I\250\003R\271\247\2103G \302`\306\005\374\002\217\217\323\272y\310/_\030~\367\213\326\307\016\034yq\267+\365\026fh\227\346,\301\001)\351Zj\315\014\3612\202\203@\010\221\010\004\030r\373\234\326s\205\002)\033\246\315\307M\242nv\222K\010H0\246\031/P\031a\262Kc\014$L\322\252\225\240\202\212\235\333\r2\2529N\307{\217~\333\337r\022\220\350\013\340\2320\274G00\026L]GAb\276\215O\022""\234\337c\366\0172|\264M\356~\277\313s\252akY\\Ff\026\323\021\301\255YG)\211\203 \2029!eT\250VH\"\215\tF\024\243\2564\250\3478\340\345\253\251\010a\002@\260\306K\030\304\254\n\202\302\006\230C\020\230\205\226%\226\222\222\213Pi-\262(K\"\260\225%\215\255UP\006JY\006BH\320`\302\226\032fK&\026\021\230\n\261\251\tJ!K`\245\200\224,[`I\205\253\212\215TH%A\240\240\024\254?\004r \241\203`J]L\230e\222\313\034\311\220\311@\240\226@d\225F\214\013iX\300\266\304-\"\250\321\261\031\031%\214LT\311@\013nEX\310\\=\tr\304\004 Q\014\007\266\274\264\204 I\"0\243\232$E\027!;<\300\324\253\330\370;\364\353\004I[V\010\326\213j\224\332\251R\255d\212\254fZ\324K\334\357\363*\325\354m\332\235\0047\243pR\202$\2127\274\200\014\247w\262\035\325\200\033\253\254\316\244\201\r\240\033\324\3219\305\345\225TO\312\314&W\343\244\264\247P\004\303B\261\262\210\240\2628\324\315I0\307\033l\270\205UU\021\005(\334)P\30110L\254\245elA2\250i4.\254m\351\304\223\337x,mf\360\251Jm\235\234\027\222\344f\202P\035i\022\203]a\334mh\333q\300\304\204\202\317\302B\204#\002\010\221\006\350S\333\252\264\031T\255R\372/\014Rw9|\234+\355.\320\005{\036\262\0018&}\375\320\023\204\216\351\272\306'\271\t\236\321D6\010\014\326\200\244\023@\002$(`\322\336\025$\006<\204|\361Efi\346\363\020\022l\036F#\335\304\250\020\010\300#\030\317z\320\t\342\332\253\336\253\363:\235\026\021]9\263Pb\001$0\036Z\320\251K\301.\373tq\334\203hX\n\372\356\350)\222\304\304h\270\317\324\357\322\357\354\227:|b\344\247\233\330!\n\231\255\030\n\014\300(\276\\\316s\217v\247e\303\3135\361\006\360E flT/\007\326\025\205\310\030@S\2461$\3429\341 o\005\216\321\352\016\306^\346\212\370jX\325r\333\365\210pH?!\364}0\347\213\200\204\224\r\030\232\301\317\357\035\350E\010I\030o\254\302\264\031Qh*-\335T%\010ji\020I\025V\253\322\332\216\221\204!\t)\241.\363\225H\246\274\227\271W\306\325\233z>%\253\003\234\222F\004\316 \310\324\\\336\252\252\2457\201\203\267\264\t\022@\344\\\357\361\353\234\021\350\033\324\221\360\026\304I\0221j-m\033QX\336[\255\264z\365g\027k\345\334\315mZ""f\325HU\265\257qW-\344V\314\311\202\200\352\001\274\002\030+\270\r\375\2207\261Dd\001d5J\000T\220*@e\2220\252\3314\022Ho\344\236P\220B\020Y\362\361\260!\367v4A5VT\233T\"\253\254\210\363*\334m\2272\256RU,T\263E\264\256m\233\\\233]SnE\001f\000\rs\216nqq\333|\272\3715\257\223o\037w\346{_S\325\276\035\361_\265\274\331!}\257\264\372F\225\263\365\231~a@\243\024\005\210WT\246\332+\361\037\223\373\246\265\267\330\326K\351\243\000\323\244\365\\\246|\325\017Z\350m\253\017\035\33058\234RF\010\232:;\374+\226\025N4\210-\345\332\360jE\341d\201\217\303\303\352qu\215VKk\255\240\324\213\0203\224\347q?&\227\221\310>C\001\301\rSqJ\345\235\000\211\345\014\333\221\234\360\316\234]\333R\312\350\303{k\307\0306\252Hh\3153\375\253m\034\340S\300\322\367ws\254\242F\253O\306\211\236t5\270\220F\221\313\nA\227\014\031\300\271\006\242\320\200\005\207IQ\367y\315st\005\207\022\243\315\363\232\330\013\016%I\227<\306\341B/M/p\364\3031\262\275Z\337k\316hh\330\200\355Y\317Y\240\331\356t\261\311\310t\250l0\300\362\207\233\024\361=+\006K\276\305\215P\331\276\333a\323+\310\004B!#\035\357&\364\025\357\324\204\222\210\332W,+\254B\317\247\331\354\354\227N\202\207Jx\265\003\337I\337e\236\321c\205\274Ad\321D\324=\340%\016\3235\204\0238\235B\316e\240\032\306\241dB=3\276\275\231;D5\215kLX\\\316\256\034\0203\224\000{\214$\330\014'\003\364\316XG\026s\335\212\001\034!\025<He(\351\276\002\330\377l\366a\367\371\341\036\262J\322W|\367}I\254w\350a\201\356\334\034M\345\335a\316ri\025SAQaXm\014\2169i\210\010\215\025\2670\343\256\267I\025(\207\006\020\273\271\334\243\311\"I\244\025\360\271\026\322\016\216\210\021\321\032CMv\337\257nD\206,p\243\210f\326GhX\227\007&\361\204\217^\330V\251\263\213\007\276\240\220Af\r r\034\243\r\244u\366\306y\356>\201\246Y\212\246\333\300\tX\230\013\3404\220\320\244\2463\221E\021\007\005\226\037\364!\004\340\200\301\200\367Wud\000\326\334[\002\241r\324\204;\260\237\321.\345Yvs\300\032\357\307C3\216\035\355\001\000\275L4B9\211\254\0140r\200k\342\014\331k\357\341\275\357{\336\373\206\017r\227""\361\311\022I\021\000\202\314\030\220\030o\004\031\367-\307\\\277\036@r\302.w\032\375\354\247\354\271\365\026\215\032\255\246\376\255\353\321]{\353\3131\322\304\266~_\035\214=C\326\210\347\026@\346\341\030\n \000\300O\236]\3048vsO\323\252\341\375\t U\035\373\323\226\347\323\216F\t$\016{\014\367\373\311\360\227y\233%\224\264\221\261\027\311\270n\366\005\200%D8X\222!Dh\210\224E\036\225\024q\027vb\0050\026\371\\\261g\232\250\366\321!<\000\305\200\204\236EBS5\031\240\326\265;\006\341<UVd\350\324\216iW!\264\222\030l\351)\260\006LC\002\206%\345\256)\357E\033D\003\207\247\257\272{\247\242\020\201N\370(\235\254\250\"\207\226\036_\222\232G<\326\272\336\245f\251\262\232Si\252YJ\335\346 \036*h\366+<_d\361\316\374m\316\374\247\343\344#\350\017j\027\t<\260\023\214\323X\321\2455\316Qr\017\253\255\265\354\370u\347\256>P\340w\003T\000b\030x\220\340\206\261\034qi\345\313\021\207q\237%1\346\000\363`\244b:i\305b6o\314\243]P\350\356\362\036g\336\250\036\240\242\026\302\021\333\003\233\233\233qW\277\267l\263\022Z\226\324\221\221\300\035\0033[v\210\212K\230\237\344{\344\375\272\357\365\360\200@\004d\025\r\252\202U>RP\0300\215hU-\213D*\005\242\245->KC#\026\020\254)A\n4\245\254(\310\260\026AA\030\205\245\021\004\266UD\266\215\245\2051\307\314(\215X\261,AD\307\3050K\355\362T#\213\255\326\034\0232\341\331\2540\232\201\270\305:\253\213\306/g\006e\007aC\031\000\014F\000\267\223\300\320\003,\357\324!\267\250\022\n_'o8]\343\336\310On\216\375\024\255\362\364\231;#\326=\374v\223\227w\232<\246ZT\004c \306)\224\221a\204\305(XFa/:\342R\314\226].X\n\214S+\272\256I\232\254&\220\261\227\2078MXl\2337\243\232\347\2078\226M\243EX\244\326\321\260H\3100\312\203Rj\273\370uu\\\247\033\231\"F\234\271\\\247\033\231\"F\224\241A\254\261\021DXt\001<\265\344\271$\356\016\265\245\311\240\030kZ\\\222\260\230\032\2218\007\246\354\320\304\000\322\201A\347o\307p\310\261\236\371\334p\0211E\025\254IW\233!\003[\317M\032O(O\352+\206\023\202(t$\254\210\230\326bb\002\212\"y%\303F\0055\230E\024\211\252\035\202\301\254\222\316""\024\304\275U\233f\346\267L;h\\\266\205\006\200f\335JR\361\345D\n\222k\2565\300\320f\240W\0316\323a\304t\3406P\360=\203\300XlH>{\213\327F\347eE\024\362\231\n\t\337/9I\262\207~\323D\273.\351m\226\333mUTQEUUS\246\343AZR\333m\255\356\351\264UN\215\310h\351\344 \311\200\310J\n\254\005U\2016\326x5\"!\230Y\2430\301\204\326\006\031$\000\231\216\200\006\206\031\2034\302\246\271\200[2\304\031\003\005\014\022p'\016G\255\021O\031\331\211\037\004\320\227\272x\203\243\004\235v6`o\274)\250i0\003\004M'D\244\016tl\212\351\230\241\200\344D\214\330\240C0\314\276\266\327,\362DJ5\316/R/W\300\260`\301b\364\326\025\n&\355-\2414\021w(;\226\024n`S&\022\345s\013\225\243Z5\262\346F\334s-\272\260\032\002\367\240\201\270\0212(\254\362\351\245\354\257|\253\023\2504\206>\245Q\351\352\2655Es\321}:\347\265\303)\010iH(V\204*,\232:\314o\331U\324\333\330\337\250\032@&\260Y\010\0050JB\202\020X@\255\036\335\202\213b\347P\277\036\034;\320\311\302k\221klK\345D`\014\320\314\312=\206\227'4\304Kw\204A\273\350\216\267\230\221`\346R9\226\231;g[\327\231N.\352\364\356\270j\353\253]J\336\344<\301\"\356*\006\232\212\304\n&\345\203\303\027Z]hE\260\371&\032\367\347<\314\202&\"\365\334\334{\035ut\305\024\233J\226\353\234\233.nUrL\312-I\232\230\203$F1A\220\312\005\222\020\022#*/\274\\0\030\210\"7Y\220\321h\275\273\343\010),\211T2\227\t\013A \216\325\220\250G\331{\246+\026\021\260D\022w\201\265\247\262\001\3417\265d|\336\366\303 \200\350\305\241\202\330\221\022@\013\021\264\236p\032HRZ\300WE\224T\033'k\235\212\204\220\020F\007\227\2454B^L\353r\036L\364\200\260\034X\311\030\005\210\013e(\244\242\014I\031\033s\2661N;\261g\002b\250BN\324\355\336\333\255w\3673\351\355\017\025~\246\253\\%\001\0232\346\010OMz\334\r8\001\204\312) \302J\023\313\024z\340\204J\361M\264\244\255:\210\210eWCZ\243\236Un\345\016\235\r\206\225u\007\225\347LZBB\020 F\020\204\344\217\300\235\237[\356\346wo\312wD\024\254\372\325WN\301\35353\352uY3\\\202\371`}I$X\320E\242\"\301\212\301z\300\2500\310%\022\230@,\363\007\022M'\272\302S(\3042!\200\231\030B""\202X\224QF\"\202%+\034\2012\022\tfEf\335\356\352\322(\250\202\"&\262\270\005`\242\364\001\321\317vndE\201\022\023I$\202\265\246^,V\360\214\326\036\035\331\351\227@_\202<\037\245\254@\226\223\354\014\300WOWC\241\346\000\311\035I.\r\265\344\227\253\273\0357\276E\270\267\337\272q\372\331\352\350\207<\277p=\212\210\252>\321\026\r\305W(\251S6\2532\326\231\224\334\270\334%s\353z\300\r[\356\255F\020(\200\014\2102\222\240\211\003\267i\225\265\212\2445\266\215\231\343\354w\357\341\252\332\344\231\316&\275z\356e\366\3654;\336\230\021\277\016\001\010\312\226\021SC4N\036\247\213\235\313\366\325\353\022\311\234f\364\0252\024C\273\027\277x\370e\244\000L\260\351e\3234\0055\214\202\310\304b\251\"\004\006\321\266,\323L\333\026\201g<\353\351{-\262S\272\034\316\360\207\nT\n\002\013\020 ,\006,j\025T\351\013\233\022\301\354\201\266\005\357z\373\336\206\302)\"\032\034\022\213\205\212*\350]\347R\020$\215@8\242\377\335\027\273z\007C\311\341/\236b36R\004-\224l\353.\367{ml\006;\330<9\245\302\224KJ\227\307\367K\215vu3\300\212\t\"\032s=_h\334\313\320\240hX\270ybh\000'\240\025L\3013\2120\010\n\203\"\"B\"\002\014!\032\266\311E\266\265EY\226\326\324\373\275\275\232\266!\366`$\t\003\314\241h!Rx\023\007\334\200\351\006\325\231\203\333\"B$\201\r\315E r\036\256r\022\004K\362\215M\335\021y=\216X\350n\240\0376\243hs\010\260H0$\0306\237uy!d6Kno.\326\257\241+FT\316\200\001,H\350\236\330x\3752\000\022!\030\315\210\tE\014R\014N >\357\326\332\252\271\002\036_[\000\037\024\"DRE\035J\007D\024\362\241\005\n\0238\257\010\031l\356\357\3363\021:6\313\247\225W0 I\010\203\010\001\251\244\3461QME\003\313\005\006H\0212\312\020\004\204\220T\256\335\351\321\211\037Da\000\213>\033:\317XH@\207.^\255\213z\030\0368\343\353\230\313x\007\2137\212[\215\000\347\205\252\233T\351\021~>\242\265\"6-u\244J ,B0\"\213#V\244\007$\247\224;\375\347$B\0068A\2218\006\027\317\237\327F\204\273\342[\350A\274\002\346[\350\337\337\016\331[L\337\264w\330\264y\260\340\2104e\346\321\\\030H\320 [d\311\231\014\014\231\234\020X\320\030\277s\213""\224\323\230\0204m6\241B\005*\337\034\371*\354\366\341\t\357u\263\330\273)P\237LBA\031\361\300\206\200\017\343\220Q\033l\233Qd\333%T\204\346\333\255\256\327\331\301J\027\020\240\211a\312+!\024\177\222(H\201\203y\304\276\325\276\027\204\237+\275Ke\231\221\264f\223\014\004\231\201\214\3112\262\302\244\355$\203H@\216\312\354\351\367\305\250\200\324\3245MTv33\2672DC?\205h\206<\371e\023\204\332\250\263\002\346(A\231|n\220\354\204\014\023\314\307B\265\te\357\\\221\"h\302=\nqD\221\224\321\215\253\257\227\307\020\224\363\020\311\201\234\224i|\260z5\271dD\273\230@\326\304\204\226\"\356\023\010\260\254+\t b$\2168\361*E\013\374\2719t\243\027~\266w\256\306\375\364o\276\010\232\343\3509\256\004\031\003\r\021J\037\216\222\221\313\004\031F1 \214\200\"B\0020z\327wh\207+\267\224\023\016D\226PQ\226\025C\014P&yW_\261E\352\241Yy\215\311\020\210\005&\233?\035\340\000\310\031\226\246\013E\252\322\325W\275\366:\257\325W\372j\204`\021\210\300\261$\260\243\010aN\264\266\367~\253[ \260\006\3225b\231\232\332a\250\225\017\225\017\224\315|\307\357\313\365\323\327\256\316&\256\030v~\217\265v\234\274\302\215{\222>\263\031H\261\000\206\374:\013|\220\341\346\326\211\002!\000j\023\222\016\374\260\362z\016\027\232\220\222\214$\023I>f\030b\301Fy\220I\263Az\210\364\230\340\022\355\252\261)h\371e\277&\271\035\201\200,:\022\t\004\201F\032\302\344\201jp(\0367\222h\231\251\007|\266@[L\302vB\222\035\313\017!\017=\007\021\035F\037\r\215\354\001\270\0303[\225\213\351\t\t\t\r\311\010r#\276\242\252\360g\2069\t\342p\220\331\236\2174\002(\214\245*I$\222I$\344o#n\210\263H.\004J\313\224g\016a\262\204\013\270\201(\332E\313\313f\211\275\271;3\303\304\353\263\331\272u\244\304\303\210)4\311r\313\353\rf*M\020 \244AaP\3431\003\332\303H\362\355\333\323\264V\376\310z\350\3236\377\t\354A\273!\304\221\020\031\0313k)\251Y\222\224\251\266\232SX\271\274\032e\354\3719t\202\334\\W.z>\217\237k\014a\023m3ml\231iB\022\354\274\374\360\335-\341\001C\307\247}\276\257\016\006\267t\227o\002\024s\236\007q# H\310\021\2221\204 W\213\316""\240\021\rp\032\241C\213\321\017E\003\253\324\321\014!\245\2101\3277^\0327\3713\351\017!\260bI\233f\355\335\220\001\005k\267]\254+\326P\025R\263\254\010V\200\264\r\\\337\253\332\253A0+t\325P\n9\302\215\223\205$$Q\003\204\245E\024\263\305\002\230ST=\341T\354\\\330\270f\2035\312\200\025\004T\250#74\315T\313G\027\377\366\302\231K\2122\220H#1\031\201\230\22232\362\312\231\177\320\347bx`\243\275X\242\2235oB\022)\210\371sD\031\2424*+\006\335\233\024\255\325\343\2212\320Z%qC\217Z\250\2254SK\077\077\377\2022\250\353Q\213\317\ro\017\340\353\216sq\250\207\361=\267Z?3\233\223\341\272]L\303.\352\257>\233\220\335\n|-\370\377W\215y\247t\340\230\326*\036\333D\372)\343\316\232\021\023\215\021ED|4Y\027\265(i\260\226'n\\f!%\340s\214\221u\316]\334f\331TUV\334LY\343\226\0365ane\354\222\232\266#\315\347d\320\252\260Y\021}Z\316u\304\356\273\355s\377\242@\277\273)I\260CV\332m%\231\260-K\022\331J!L\261l\251\253%\223\033R\333l\325\021if\245\205\230\300\301\222+\030\001#\010\376\223\252\240|\240~\220\352#\250r\322\245e\211nj\333NTT\245l\333\373PS\300\020\203\"\207\347\023\240#\375S\306 \220\264U\375\007\365\010\316(@V\000\007\360\020\003\337\004 \217\334\021\020\376\022+\356\212\241\375E'\351l`0$\272\337\345\024\010\253\367\210*\305>\326\223\235aB\237\014N\233\3442{e\002\264\010\024@\020>s\334\000\376\357\312K\220\265\000z\004~$\010\215\310\212$Ao\376#\200\261\005\210\230?P\330[\351\024\002\347\350\177J\257\360D@\202\261\017\355\201S\375\324\245(\307\254#\372\313\024~\355%\010jd\256\020,\037\222\r!\250A\240@\376`\207\371\220A\220C\374\330\001Bz\312\266\322\020\"\037s\357\271\270A\375(a\222\233\317\351H\202\201\376\377\260\n90`{\247\376vD\253\013\365\301\003\362\217\336\014\241pX\376\374B\370\034\234\024C\3550\326X\203\252\000w\005\034\377c\376>\271\212\301\"%&=\344\026\032\377\254\300\t\372\212\033\037\306\344\335\375T\n\177\010\203\373\010~n\005\004\210X?\323\373g\364 \251v\217\211\247\"?\022?\"\214M\004\303\201\016\362\022P}M\351z\nj0\3315\307}(J \004M\254\027\336;\302\304`\276\346\354T""\367\242\326X\\A\277\362\203Y\002\376\3602\303\374\261\375\330\377\310\354@\324\320}\264\233\021\360\002w\306\250\204W\333\225\017\342Q'\366?u\0108#\007\346\000\375\240X\3220h5\371\033\315Wk\274\337>\273sK\347y\321\263\004\227\235\271\177\366\276~R\237\276\023\3742k O\354\005\300\\\377\211\017\371\205\327\367r\034\264,\037\316\341\330,@\365\274g\304\375\020>A\243O\376O\210\034\2760\306$\222\376*\034\001\375aJ\347z\204\000 \037\2069\014\210\021\r\223\336\377\213\364+\374\002\223\204\371O\356\376\220>\221n7nXZ\374\302\344\3303(K\237\213!\004>R*)\t\337G\320 \323\372o\375\017\365)\220}/\321\224\226]J\341\202\232\203\312XP\342c$\255\215\3764S\261\025|\221U\374?\205t,\237@O\360\237\213\363\251p\306$\224\256\017\316\375\"\322\"\224a\032c\374Fg\013\271\362\030\025?G\315\337\362\235@?\267?\221\014\305\250\374\306\201\241\345|\272\032\215?O\304|b\r\241<\242\236\316\360\201\362\377\2228sg\300\237\233R\351\230\260\316\261hW\320\036\277\346\177w\000\252|\337\335\205W\361\007\347\017\326X\247\231\003\312\353C\331\t\t\220\177z\t\362\230G\371\177g\310K>R\267\260c\341\362\r\262\t\222QdE0}-\r\000\030\254\253\373\005~\241\037W\017\240\246\002R\371\211I\022\210\361\306\004b\030\200\014x\220\220\023@\375gp|\212\320\005\004\270\374-\014\026\277\030\t\204\373\003$\377l/\000\271\377\240\323\372g\367\335\376^\021>\207\350>v\317\362\312p\004b\201\237\361\371Jl\362\327\002@G\010\341\242>\017\350\223R|B\037l\260\262L,<\241>\354\263\014r\214\3030\315\362\226Z\006\235\277\351\375\243A\340\201\343\200W\317*\rD\n\371'\277ja!\017\230\204\"\241\240Y\272\374\211\343\360\027\327\217\206|\033\302\002Q\231\0027 \370\247\360\026\006\206h\342\016\246N\014\344\001#r\031\237\305Q\037\320\254?\330O\373H\274e@\201\010<|\247\306\342\310\340\211\357\204D+\304\277[\372\271\375\355b\036\374\036\362\222 }\325\360\025\252d\225\302M<55\267\007Zb\203\224\035\356\340\327zP\3730;\354\260\220{\367\337\205`C\205\301NX\026\207\353\266\217\321A\372\016_\347S\336\203\341\202r\010M\370}w\340\375$l\262\362\0002\262\004!\010""\370#\254g\255\336\357\177\036D\002O\005R\037\306\007\365\370p\\\240\252J\034\356\313\336\257\337$$$\031\304P\232\014\037\345NC\300A3\245\356;\233\324\271\234G\337G\206\3000\332>+l8\257\353\272\014\"\236Mr^\3112\327\232T(a_\200(\270\331hM\310\256\205\277\220\205C\031\225\363\374_\023\375\377\223\375_%\355\227\374t\273\315\271\215\266\374=\332\375\333\254J(\211\030\006-?M\005B\321\215\014\325\223M[\343\3704C\357\233j\200\353\302\014#9\374\213\344\"\001\020\370\"x7\221\310\2028\227\221\224_0\346S\036#\311\315\355\314\177\213\255\037\221\374\265\244$\017\3452\003'\024\3772\021O\343\245hk|\324M\032QQ\021\204\377S\007\371{\030\300\343\307f\247\021\231\303\310\326\314/\344\377\256\351\367\231\036S\030.L\240\374\244\n-\371\311\020\363@\014\010\317\270\222)\200\263\271%P\262}\371]\207\352\372l\372>]k\362\357\322\037)\346\007\375Z\030\031d6\210\365\0320\320\205\376WL\310\033\233\221\376vvD\247\251\340\202x\362\262\333^\241\200\374\230\370OP\350\210\242\277?\242@\365D\313\242T3\37509\331\0352\222)bS\2319<\225\344\032\037\353\346\314\364\377\247\303\354\036!\231\306\372V'\321\364}\"\352\307\325\256\353f2\376\277\316,\233Gl\305\312v7Ff\037\365M\205\342\013\256[\244\244\201\025\304\322\323\313\356|\363\244}\007\325b93\350 \343\3638=C\tS,\254\266C\363b\333\232_\346f2\371\265\377\276y\210\036f55\220\267\374\037\315\255\t[\372\201$\300\301\377\002V\010O\357\352o\240\244dt\225q\177\237<\031\223V\252\331\263_\344\355\375\177L\372\242\037\32402\363\031T.(=,3\270@\273\365E\370\306{g\274\252s\004\215\323\010\336\020\203?'?\327\350|\377GCH~\241\227\371\272\340h5\257\325\376\265\260\244\232%\314\327\217\361\032\254\3419\224\303]\246 \275^nqo\204\006\200^\210\364\372\275'\241K(\300\3224\260r&Pa\377\001\333\242>\222GR\246~\231R\370w\217\370\177L\027\255\231\207\321\306\337\207\256BF:F\036\t\207a\202DI\321\320\241:YE<K\367/\361\t\362\236\217\217\201\264~\337HD\3147S\204po\177\264\220\217\250\207A\001\335\310\211'tK\010\021\211\332\204\260<\302_r\372\207\365\374P\006:\026\0102\351g\030\030""\024Hd\275-\352\207<\001\375\223\021\304\245\236D\211\027\305\353\347\341`c\322\320gg\031\233\366\036\264\003\220\373b\321\215\233\240\235)\006wyK?\263\361:\017\307\327\023z\244\"G@\206dz\335\272f\207D\304d\031\246\373\340\241\024p\"n\205\353\347oO\371\347\210\034\366\r\027G?D\323\022\312\361\223\240&q\376\345\374G_\206\234\260\234\317\351\305\317\322%\010}\374\361FE\322C\361x\020e\322\211X\213\250\226>\247\371\t\031\210\330:\227\243\321\355N\020\373\317\315F\320\213\235\243\366\307\362\036\307'|]>\203\350~\221\327\260e\352\006C\034\376\265\321\027I\010\242#\370Q\250}\313\245\333\236/\270\213\243\322t~\342#\251\232Y\320\366\037\177\277\331\352\351^\227\037\3579\344\373\333e\035O\027\261}\363\250I\034\244\262u{r\242\221N]Z\247\257\375\023\372\341\017\2768\334Q(\035/\355\374\330\204\337,\304\212X\343\374O\231H\271\375[\007P\227<^\307\331\352\366\302\020P\366\236\310\207b\177\346\242\235:(HM\355\204\371\312/\177\277\344^\257\324\276Hu?\265\241\037A\037\260>Y\0328\336hD\342QD\243\220\374Q\323\325\353a\375^\317\\nl\221\203\007Rh\305\324\376\317\322\234\21696>\366=}L\275P\020/\276/\303\253\330F\347R#\2011\355\227\344\237\036\252\352\376\003\373z\235@\373\334\307\324\236C\345\371`\277\003\361!)\022M3<\320\372\316\241\227?R\366\301\007P\010\203\010\210\200\320?\027\374b\"\224\371!\350>=/<\016\223#\246?p\313\243\326\271\316t\323\346\235\003\3312\032\004\t\265\275\177\210\307\304\271\3778\317\255.q\375>\256x\023\272\\\351\351`g\331\350H\0173\037\275\217\215\201c\177\215D!\316\206\035\223?\357\216\017\351h\365\360~z\256E\340a\330\347@\203\314O\263\2700\023\366\n\002uH\222\000I\010+\251\376\306\300H\035\025\202\014\"\262p\277\364\010\222\n\260\001\037\020/\274\211\261_\261\007x\036\322\273\235\0247\027\230\020b\035\020\377J\242\207\303\351A\323\004\020\006\023\020\0178x\200\244}\247\320\347\353r\000\004Y\252\241\017\000\2576&\247\200\376dS\326b\265^\371I\355\035\223\335\0219\220;(\254\262C}\002a\002\304\030O\224\355#\260\001\350\022\335\375\013\207s\270\207d{\212@\247\262\355""\031\220=\217\246:\245HK\324,A\367-%\245\3677{\324\341\312a\2104\210/\323\242TN\263\221x\3463\275\237\232\256\234\376\0145w\035\327\322\236\2627\n\326\206A\324V<\303\025\325dU;\214~\245T\375l\217r*$\303\\\022\360g\031\3079\234?\276\242]f_6Z\247p\353\016\230\237\233\3661\306\357\351\316\372\306t\331\312\377\323\302@\363\225\233\311^\255Rzc\337\007\272%_`\364\020\317\203\330\370\304\254\272\374N\3275\235\312J\265\212\3138K\035]\205Y\251\225;4wN\316Wc\327\223\366~\343\013\370\377 \377+\367\325H\016Z\317#\030\2376t\321\304\303\221H\360#\030F\200\321p\375\311{\306\350\311\023\\\335\034?\220\230\341&\220\201\tb/E\027\274\222u\302fcj_\366?F\327g\370\374l\204i&=\016\357+\220\367\246v\375\257,I\207X?\003\342(\020\372\t;\324\321i(>\277d\243\3670\313\210\177\344\303\355\211\352\204\007\030N\217\264u\3060\007\3342\005\364\211T\003\333\342\342\366\207\203\321\021 \223\345O\273(\236\366\rSMA\032\246\276\363\334!>?\330[PC\355\210c\337\246\374\037l\263<\252r\320\373!\363U!\345\253\261\3753\352\262\252\231\313^\374\002N\360\304~S\347u\312\365\327\313\225Jm\213\345\257\272W\037\273\347\267\333EdFM\024=\330\237\315\374\340\207\300\240P+\377\004\007\363\200\007MQ\370\220\003\302\000\373\210\001\334\000\177\330\210\372\"\t\350*?\224\000\361\242\236\010\247p\001\330\253\360\010\037\320\002\177z\251\343I/\022K\224_\255\001\302%\264\220j\201\355B<\301\201_GhG\032?\200\216s\302]\037oS\362\207\312\312C\247\2535\324\3548$\025,\312\004\202L\2100\036\305\032|\357\341%\2549\226\253\344\273\206J\023\233NuB\366\305-\3529Z\230\347CNR\213\025Ygj\275\"\255\017\036\204k\255\243;gc\271N\335\013Fe\n\r\225G\301\217\026\035\251\362lCb}\034o,\261g\265\232\030\240\367#\227g\004\3327\255\355\333\351\363\362\237\252\276/;\361\332\367\230\177U^ v\362\347\324\372_w\207\266\337W\207w\254\0361x\277\303\366\324\003\277\237=7\355\331_\177o[\327J\216\345\007'b\006\337\007Q?Qc\353jk\216\356\233\211$\267\314\334q\024\312\206\3252\201:GSi\343\316\277sR~T\375C6\352\311\210\3214\266&\246e\222\307A\036 \340\006\330G\253""\271`\"/g\010\"@L\004 @\002\033\220\260\367l,L\215\033\326\312\nA\341\006\3263Q\350\365'Od\374/\007\035\270\304AZ\024\330\322o\245\375Q\026\344P\335\030\317\301\003SG\342\343\271\305\216\347\344\3221/\212\322x\232\370\036\366\270\263\324;\373b*/\322-\234?\342\370c\351\277\253Q\245\361\276\230\230\355J\226{\227\023\361x\353\235-\257\225\276\230\344d\344:\007\000\006`\013\033\220\233B\003\272\tZ\324\276\017\261\275`q{\010\325\016\312\006\212h\233\201\272\036\261\357\031e\256=m.\315\305qP\243iq\007%l\307\026-\014\374\327wA0\0214\316\372\t@\027IZ\025\222\342\306\206Fm\223 \315\006\246\344\231N\035;Q\347F\267\247:\346f\372\320\345\274x\361\016TZ\250\211\200\000\t\270!\240z\254\275|\357\214\311v\014\355W\223\031$Hd`:!'g\247\373\251\365\005R\245\221.\346\324\030\002\367\360\240\357=\214MO\037)\256=\332}\264\017\n\2543]\262\207\316k\302c\314\014SB\036$N&\032c\243\230\037\037\307\r\243G'\370n\233[\207\017\240\371d};\006m\355\350\317h\003Y\260\300\222g\303\320\251\270\346\357\214`\303\312\224D\313\304|\242\004i]\327\326E\372\216-\371\342\357}\205\352\345\025[1$kg\016 \004\320\304\370\353\363\214\200\205\375\360\315\211h\260\310\260V\t\0222XA\r2\362\241\240L\334\205\361i\002\320=\357w\306\370{\247i\353\272\354\240\353\325Ux\210\301\347\202\220(\036Y\024d\253B\274\242\024\210\245\301\002\346a\005\202\3060\016I/!\2700N@\223\251W\250\005d\206\302\222\224\301\344\204\353\222)J\014\024(k\243\253`0:\315\006\303\201\271\321'!\220C\006\014\340C\242\316\231\006u7\321\302\233\353_\331'\351T\026E\005\010\262\017zU\305\213QV\202\2525\264X\253\303\234\324\026\022\007'}\235\316\342h:;\367\323\207\003G\016tS\r\360\223d\227X\314\300S\014)\234N~\032t=\236\216\252sm\353D]\241\374\354,\343\342\2359K\346\216\275\002x3\241\354F\231B\254\357\033s\230\304\331\335i\340\363\2177\034\360\323\177\235G\245_I{9[N:s\276j\326\332\341\360GGZ}\357~\343\036<\276Ko#]\364\200\243w\333\350\3676\017\234\013}w\243\022C\237\\fO\214\337\317q[\225j\243\224p\235\310\216\327\252\201g\363\304\271\234_\257\\w\326\2077""\316\255i\211\220\251\n\264s}|\016}\332\300\307v5\217\271\\\271r\303G\235\266m#\2152y\277\026\232\372&U#3P\201\rl\331\324\331\241\270\360\315\211\341\214\210\305\243\246\033\346;\013D\320\022\276\253\346\210{\242AX\235\240\201\343Az-\202!\002)\340\207z\024\030t\020\327S\252=\032\016\014\326\246\272\016\203d\233\224N\263\246\275bo\177\267Du\3722\317\337n\277\2729\303\246E\004\220\310D\324\0246\206\271Pf\027\332\316\272D\222B\024\253\241\231\rL\256S\313\267\302W\243\267\002\035\212^\215e\307Wg\014\007\232\241Ay\203\346\312\356\263-\020\242\305P\216\252\272\"\005\320[\250\352\206b\346\t\236nfm\361W9\036\223\316v\233\253\365`~\364\023\314\035\021C\333\212\004\202\243\356}4\r\221\031\022C\373\243\320\227\t\322\243\237)\261}\202ZNvZ\353Sb\215\002\3545\033]l\017\252\216\270>B\252O\300\001\266\017\312\034\251>1,BA\352>\206\177\257\357s\033$\275>\347\027K\007\201\221\3660nb\177u\007\021\205\205\230\333\254\272\031o2\373\031t0\270X\027\233\370\361~\257\2360\377\177\344\350\354\261s\353\377x\007a\257\365\376H\"\263D\306\327\003\2503\326s\273\226\344k\356{\2159\203\356o\241\263\231\330\315j\277;\373\344\255\nl-\010\266\240\212,\237\340\321\307\227\035&\273\240\376\036\363\365i\345\302\223\037\204\037\362d\273\214~\326\211\250\267\273B,\376\212\024\245\336\250\3769\215\272qw6\376/\202\206T\224Z~\206^\354:\243>\250njQ\217\336\326/\346\350\304\275S\335\270\354\303-\277\364]\311\024\341BA\223$\226\310";
    PyObject *data = __Pyx_DecompressString(cstring, 31887, 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 (36717 bytes) */
const char* const cstring = "x\332\354\275\313c\034\307q8L\322\362g\205\261\235\310N\374\312\303+'\266$\233\242\210%EQ\264\254\004X<\270\022\000\202X\000z\330\312j\260;\000F\334\235\031\356\314\202XI\376%G\035y\304\221G\036y\344\221G\036\367\310\243\376\004\375\t_UW\277\037\263\003\220\262s\210-b\273\253\252\273k\372Q]]\335]\375\356\374h\177<\214\323\262\361JT\226\243dw\\\306\305+\215\244h\244Y\331H\322\242\214\322^\334\310\366\032\345$\217\033\257\306Gy\334+\343~\243\034\347\203\370\217\275\311h\234\226\3110\276\330\033\367\243\265x\270\031\245\373\361\274\310\351\223F6j\014\222\242\234Ih\262Q\264\373G'\340\"IKU\022F\254\334\236\341{z\371D2Y\\\250\370\036\213Pq\320\313\322\264\016\003\357\364\006QQ4^\001\376/4\364\314\227\366\007\235r\024G\303\026\344\004\264I\226\276\362\356\205\306^6N\373\rUN?*\243N\362y\374|\352\255\037\347q\332\217\323^r\372\356\2602\212\362\203\365\254\037w\313\013\375Qr\030\217.\266\266\367\0050T\2273RyX\234,\302\247?\023\223K\375\375\0303\271P\311\224\242\322\231(z\253@\377\014]l\276\327\213\213b\0212\252\352_:\225*>\346,\375\225\276>>*;\300\332h\024MN\313\301\322Q\031\217\322h\000\371@!\331\010\233=\304\207\227Vq\2637\312\206\335\377\245\235\365\263\244\274\231\343\320=\365hzO\344\020\342E\021\250boC}\305\203\215h\024\r\241\340\275(\031`\356Yc\024\203\250\212\017\343\306\356xo/\0365\312\203Q6\336?h,Ptc\224\225Y/\033\2042:\210\n\342\261h\334M\312\203F?\301dH8\210\323\375\362 \224\216\177y\3248\214\006I\237}\365u\376\261\364w>\235\\h\\\274x\361\223\013\r\013\300\276zcrs\3673\250\242F2\314\007\t\226\220\244\3736\323H\330NK\305\303 \331\035E\243\3113\326\377\252\236K\250\rL\"\305B\226?\243\220\200\351\345\362\342BT\366\016n\3463\246!\215Ng \036E\317\364\375\363e6Lz7E>!\036l2\305B\336\002\364f\\d\343Q/~\246\031\221\215\272\244W\210\314\272\245oB\314\027\377\367\317a9\315\354\317T\033\224E\240\016\330\300{\276\002\272\223\354C\224\206t}Qm\246\372v9\374 J\312\223\362\247\247\321\270\033\305{1\014\246\325\254\367\334TR-\317g\321L!9\033aU\322@\321\250\342G|\320\024\177\201!x""\242\262|\337\271\030\037\212\022\202\337i\320\250\262\213\347\246\013\227\331\377R\351q\330\317W\342\022\346\275\336|\277\017u}\372&\335qr\222\255y\276\001\377km/\3167\226VV\033\255l\000L/g\243aT6^ol\035\304\332\344\237\017\2424\0325\"H5\034\017\312\204\342,\203=\226\242h\364\306#$\035L\032\3058\317\263\021r\0048V@\027\013\000\266\342Q\226\027\027Y2\255\360\375\3012\214\316\230>\347\365F\204\022\003+0\317X\022\213\034rZ\213\362\306\362 \332/l\324\306\366b2B-bsqm\276\2617\030\027\007\215\273\243\004\326m\215\371\215v\241q\226\245\240\031\301\027\306\207I/>A6\331\250\037\217P5\331\213\243r<B\310\336\351r*z0s\237\344\013\312h\264\037\227N\n\354=\215\355\034\026\211q#\036\215\240\336\260\036\375d\375xw\274O\37152R\232\274t)\364Fo6\253\3110qX\000q\224\215&\215\371\376aR\304\250\000\216\235t\235\361h/\202N\273\213\035\017\324\250\306\020J\010\021Q\217\362\222\300\222\273\237 \337\321 \314d/\343:\021h\301\373\240\375\346T\327\026\0255Xc}{\215e\273\227\354\373\t6\232\033\re@\361\323\314\302\367\262a\016X\357'\021\t\214\237\014\306O\221\343\007B\367\002M\036{\025\037T\r\320\272R\350\370\300g\t+3+\207\275q\312l\007\032\033\220\030j\260\027\245\215\335\270Q\304ec\\@\256,\311\365|r=\333\375\354\372\247\377\217\211\244eH\334\211Ki\341\3704\224y/\352!C\254\246\306\\\343\264h\367\371\324!\206:\037\312\t|\022~!J\203\336\030\030\202\211yfR\240\201\356\357\216q\207p\024\357\203\240\205U\202\217zH]\023\232\177\342\355*\034\237g\260\270\0106\"'\362\245\037\241\255+\234R\314\222\336\264\305A4\002I$Y\324*\266\361G\320pA\014\300\230\356\177b%\303\016\000\202\247\021\2218\367\366)A\263\227\014\260f\252H@\303\354\317 \340\337p\230\304w\205\2647i_\247E\037-\020\032r\205\000]&\217v\223\001\014\330\270^\n\235\n\272\033\016\004\306\032\353:\375Ao\250\341\017\242\024\326\237BX\334\206N\246#\223A\237\272\n\211\211\354n\032\217\212\203$\327h@\266b\345\024\320\255\373\343\001\226\225g\203\004\227\024\027q\366+\260\237Np\374\3440\253\262\305\365I\307\317x7I!\223\222\276d/\032\014v\243\336\355FQ""\302\327B\257\325+e1\336KR6n\241e\007\003\256\335Q\277iD\207\260\274\217v\007$\302\226Z\255\245\024c\375\306u3\362\316\016\312\336%\234\004\336}\007\246\334\3660\332\217\337\277\261\331\300\010-&dl\222\366D\030F\0221\261\224\216\207\254\252A\305(\307P\353\243l\330\310v\313(I\361\003Hci\200<bC\006\222\025\027@\260@\321h*\360U\316|\236\200\362\261\310\322-a\262\rL\245U\221P\326\305(\200F\355\017\234\341\"\251\n\241\323\273\204\313\322\002\302\253/\346\026\213\306Q\003\025F^\302u\017a?@\371\305\237\217\276\370\363\362I-+\304\r\312\"V\225\244\257\225I\304\014\032\021uJ\365i\212\320\252:j.\232\327[Q\216CQ_\365~\352\313\0028\344M\005\2552\202\226c\026\025\\\224\300$\"$0c\240\360%/@\217L\366&l$D\2432\351\215\007\240\363\371\233D\245\322\212\252*\000*\220\347O\363@\226'\334\306\004c$j\354\342(\271\210\352'\214\370\021\252S\360)\003\320\222\342\330\327\261\310\036\302\254!\363\005t\345O/V\224W\304\321\250w \024\036\304\300\240\256\354\267\276N[\2237S\331\246fzge5\306\241\005\277c9\330H\323\322\272\007\014wH\002\332\265VwD\304\007\207o\232Y\215@\376\034\3503?\226\364{\372\274\010fIP\302\223\030\204a\266\347\373PJ\356\023^\334\336e\325\032UiRQu<\335j\026\365\321\246\374\352k\237\202\316<\203p\031\344\3142\0143 \346e\027%\256w\312\014\032q\010\303\364:\361\304\025M\224]0\366\322\344s\252\265\305l\010\335\276\321\230o\220MR\350=\003\366q\300+\3660\226\201b\237Wiae\325\247\254\230\366\024\301\260\306>\r\345sr\226\207\262\267\001\213\305\030\362\332\235P\002*\375bCj\014\273\240\377$0:8\035d\234\245\324ex9w\023\310;K\007\023ZW\210tz\021\234\031Jp\001\"cj\375x\000\252xJRe\0002\"\355\241\242\325\003\241\001\023\027\023\334&\023j\351\302\222\217\323Q<`\262\017&\243\275\275\244w\261\321X\230@\327\336\213\240\007^\340\337\002\037?2\353\2213~\211\306\333\373T\337\222\200\231\214\275]\014\232\016\233\215\232j\0238\203\316\306>\237\345s\020\201X\215\264\365&/\246\275x\261\261\215\362\005g\342hP\240\314.\231\350\215\025I\270+\272%\303\312\361S&\177\"\321\027z8\035\203\244m\274\301\262\320t""\2067Dw\242\317\273\330\350\370e\2215\206\214\362>\275\340KA\262\335\320\032.\370s\245\n^:\362\347\303\244\003\221\240\375\300\310\360\242\034.\231\251]\365\241\017bK\212\0266Z\327j\000j\177PM\213\004\372NL\032V1\001\275i\370:[SA\n2G\364/6\332\320\275\241aF\215\273\320\323@3\210p5KK\257\276>\200\3541\307\r\033\305\030\273a\202\205c\003\211\241\300\306\005\t\237l\027\272\302!\347\002\006\235\370\002\034\336)\025]=\254a\362\206\342\330z\235X\301\257\343\226\200\002-\020\3000u\354u\250\244u\350\2434\370Z\223\362\200\030\355\303\260\333\305\352\214\321\316\001u\335\243\356\010\002gci\343\365+\327\2560\033\311(\246\351\260\030\3572\233\014\231\tv\307\240\216'\\\251\203\372\332kL\262q#\215I\275@-SO\000L\245l\351\206\334\275\002\312nV\262\217\351Br\030\305\257@\325\243\241\000\027\271\220z\031FGL\274\337LA\231\2455'\310T2\332\000\3446N\323\332\232\237v2\242\301\037\261'qm\232\254?\270\025\371\211\201\326\014q\016\2423\024\250\025\\k\223\245\325\241\202\005 L\213\271\t\027\226\037\013\312\265=\352\276\244]\271,\231T7\230\2222\213j-\311A\177\204\356\310\214\322aji:\236\225\255e\003\307A\350\373~\257I:D\314\006u[\252\005a\232P\0067\262\"\230\271\022\026()\330r!D\340K\276\232\355\267K\354\376\331\310D\34066j\323\241\204\232\305\332Al\300\342\033\373F\341\307\224\243\245#4\332\2416\341P\260M1(\320S\036\241\342x\344G\303\310\3621*\372\262\333\346\002\263\003\313`\027K\"=P\251[\264\224vSmo\267\027\273\245\202\311\235\321O\032_\222\375\030\3036\336\273g\307\351}8_z}D\353iu\270/\235g\243\336H\357\303\327\312G\337E\252\316\321\240\254\225\267\332\001\252\316Y\243\363\345k\034\2260r21\301\264d\371wSr\270/\235v6@K\245\240\2764\326~\266\226\316\304\370\322\032\347Q\214\264&&\220V\016r+\245\204\007\322\331\207\313\314\324\0266\220\207\276An\347`\340\302\351\3259/O\006\032\222lr\033YQ$\273\203X\263Qq]\262G\013v4\021\240y\215\231*#fF-\324\032\227\2641\265\226\364k\211\013\361~\222r\003\300\2478\227\373\024\301-V\316\322Q\357\000k\212\237)\2434k\300\233\266\254\223<[\234\222\305\007\276b""\024C<e\253\232\260\352\332.(w\320C(o\220\337\207\240\"\302\222Sla%\205\334\241\372\342\317\240\372\224\r\271O\265E\300\013\210\340\033D\215\205\204\354\336\300\326\270\3078bk\211}\220\322\345\350\325\327\324\002\367YJ\342\006\021\226\263\317j#$_C\332\337\230M\371uTyA\263\304,\240l\014\261F\024;\022h)\0055\222e\221\200\ny\241Q$)3\230\366\343\214\251_\2442\313u<|]|g\234\034F\003\344\377u\324\360p\321&\355\327lY\210:1\255\213@qeKQ\241\252\306Gqo\214\354]\014\363\321g|\200\2623Hz|)\211\253bhb\226\005\226\345k^\320\310D%\210!\313\314)\237\242\216\271\237\260U\332\001\2320\242\335l\314TS\336\213\213\004m\331\242\336.\326\311\270\303*\365S\372~\332Jd\333\200x\334\021\033u\030\365\231\365\031j1\225\337n\326$\255\013\"&\226T\227\305\372\250\305\301\016kL\316\201V:\265d\200\003\350{\tY\r\251}\353\260\262\005k\023iN\206f\210\372r\027K\254\335\373c\246\307\247\361]\335\376+\306;\253\223a\262O3\372\005\276\210\341,\003\247\371(\353\217{\264\257\251\257\243\2119Z\027\300\372\265\024\033R\232\r\014\305\026.\324d\257*.\236?\317\311\213\306\247\224\340S\264%\351\033R<\037L\314\300\3003\016\337\003\320=\271\324\273\330\330A\033?\357\037\214:\351\277B+\312K\310\300\253\036\243\033\243ke\343\264D\303\321\353\215\271\32783\240\007\211\\\304\032o\014\313\301;c\332rV\246\\f\372(\017\240N4^\302\333_k,%\024v\301\217\331H`\316\010\033\261\210\210-'\220\210\r\\\33418\230\024\t\326\311\304\350>\2422/\312Ob<\n\261\360l\337\200j?1j\343\0213\317?3\360\035H\262\3117\322\344\2070\351\223@'\030${1\036&\200NPd\275\204\361(\215.\362\243\330\007\321\264\202\306&\266\332\306s\001\000\010\177\024\2571Z\215\233\271[9;\366\no\206d\334*\330\026*\364\313w\336y\347\335w\337\345&\020\234\001FUv\026\255\t\311\306\306\206\004\215*\325v\014\265\205\345\366\230i\220F5\223\025\214\245H\264+qt\201m5\310\356{\201M\010h^LID\260S\032\224\237\334keL\364A\032d\216)\203\325\014~Z>\202\374\2621\253j\220\032\3328\243\"\212\203l\214v_\264.\226\321m\020\235\2407\243\301\013\326\225\254\320\306]\2640$x\244\004\204\021\214""\325\317\311\352\300r\342\307G^)\344\304\202\032\202`\224}8\325\024\314\333\234\235d\030\321>&\315C{2/euU\322G\027\032\274+\260z\201,\231\230\227\203[\267\034)\301X\\\020\n\014\246b=\215:\032\341\020h\030\357\330VC\270\247y>\300\333$h\202\244\311a8\204i\200\314@\252\372X>\274\346\250\276\304\244ae~A\n\366\222\366\324Y\225\t\351!d\254\326\353\364\002}\234Q\2331\325\215\351\013\354\034H\242\237L\301Y\"I}c\277E\207\023PQ\004\rr\000\203\347\020\265,\234\310\230\302\311\024\254^o\234'd\353\346\2666\226UNt\r\177i\025%A\001\007\311n\002- FT\273\024\226\300\021*G#\262\212\261\236fe\323\206\n_\344\365\262\033\357\341\226\214\030\361\t)P\242nx\326lM\027\203h#\354\353\362\177\372\344t\035\325t\232(\331~,\003b\365\036$=\352!\021Y\333t\361\305\007\031\027\024\366A \374_\017>\226\263\261\311\332\307\340\201\205\231v\202-\326U\345\333j\367\230)\026\356,\305\322\265S\266\235\316\353\304OC\310\355T\356%\177zAL\363qc^\364k\243b*\347g\267\030\211\257@\241\235'\036\341y\000\227\250u\220eE\034\312Bkt\013\327*\217@Ui\321\240\321\226:\035\363|E4:\214Qg5O\260Tn\365\373\366\367\315\374\331\222\205\031\302Q\023\272\233\215n\203\3202\216?u\270\360\003\035-\036\261\303\n\2704`:\264o\267\204\226\330\033x\020a\362\001\310\326\354\356\247\342\224\035$\302\255\305\234N\341%@\305\316\311\304\303]\350\330\027}%2\025\221\355\376\301H\032\323\0211&\3649+\354|\005\035\347\213i\317\203\210\370 \242\371\325=\332f\026 \216\320\300B\212\2560\321B\206\214\370\260\000\201B\202\314\261E\033\314\024B\254+\272-\265$bb\377\256\271\226A\311\220\245\207\361\204e\303\246\367\224n\035`\271$\242aA\t\032\372\030tl\276\331\254\346!W4\0316\002gK\231\255#\225\t\336<^\305\030#iE\273Gxu\247@\205\031w\321\003\033\257\206\305\310)\n\252D\034\27311l\251\033!{()\331lN\347D\004?(\250\351\373\267\323\333iv7\345W1\266Su\366Q\256\245\361\210\203\027A\207\370l4\345\364\316N?\347\322\361\035\347p)\003\335\034\227 \346\305i>\204\354\340JI\000H\306\275\323\340R\361?\"iUb\202\005\004\261\013\321O\266(la\320\026^:\032Jk\321\021\215&""\274G'S\371q\241<\210\250q\375\274\017h\246\352\367\273\320<1?\242\205\363\035\226i\304\014\372\001\250f\314\226\001TZ\330\244\201A\202\205\343/\353$\327\033z\330Ck\302\330Q\274\353\374H\036\344\303\343\006\rv\254\245t?Ic\331\024.HO\261\033\025q7/A\253nhA\203\"IA\361\331\001\021\205\375\364z\303\216\033\264\300\366\355\305d\010\354\251\240I\301\366\003\351\2502\344e\304\014\272\t\036\205\000\n\374\275y\030\217\026\3060\326J/\304\227\316\201Q\327\320\202:\005;\032\211\355\332\232\007\214\0313\351p\003\032\327Z|k\026\211\035\220\225b\273\210\021\275A\207\241\227\263\221X\247\305}HBY\314\2441\362\244\275>\0342P\321F\314\244\243\003r\324\036*\262\006\201\005\334k\306\242\275\320P&>\004?\277\"\263\222q\017mG\236\324\243\261\267!O6\251\364\2254F\236\244\213\002>\0362spG\312\271\353\215J\244\231K\312\265\365\367\371\362\024\023\2730\177\232\265(\215\366\343>\315\371FJ\033c\245\227\326#h\030=f\323\025%\312\264\005\336\251\035\200I\255\016M_\327\217P\253\026\362\300\3029\230\230|B\373*\214a\025\261\250\370Q\314\270\337\031\na\343\005\032\251\312#$c\177\215\363\217L\233B!\327e\337\335-\033\032HDP\272\265\304\271L\027D\373\277\202Z\333\033\303\341\"\300K\302p\326\242u\234\202\353{\3176T\333 #\004\323\010Z\2525\251l\rG\223.\355\025i`\343\252\016\301Q\026,\247\"F\275P\304\370\026\220\214\252\035]\t(\314\317w\341\"\261\271\237n\326\263\205+\2312\335\021\353\200\306\253\354\214\302\334\3257\337|\353\265w\324\306\202]\002\327\031\350n\250\000\362\355T\tD\330\033\273\264\201P\274\321\035$\273o@{\014\212\213\371Qb\342\304\245\230|r\204\026\325-\\\007A\277\321\303z\037B\270\241\0328\000\203\232\316Nu\221N\005-\nX\231\203L&\265\270%\272\243.]\352\320\230y\346\270\212h\210_\023\307D|\337\225\355\240\322\257\223\036\242B\026~\203M\3452`ai\305L\201\365\361\020\226\366\270\252\362\203\334\244\210n\367\r\352v\337K\311\2474I\252\342.-;,+\232\324\204\250c\r\254>\202\270\031\271z+\301\000\26239\\z\313\035S<\337\210c\022\371\232E`\346V\260\243\335\364\2635Jp\320D#\334\276\034\n{ fY\21162$\375""\254\357\252i}\342\256(\347\271^\250\005-\272E\331\372Z\330\242Y\315z7p\211\013\225\255El\252\215\254 \n\026p\260\310\344y\021p\271=\337w*,\336\0370m\220\337b\273\336p\000\006\365 FE\233\017e3f\320\261\003\3660*\231\354E\033\302\365\206\0313\250\361/6(\357Qv\334\241\325\351|4\207\264\030`\277\233q\017t^\370v#\346\322\343I\006AEao\236\006Ly|\300\322\214\230KG\2070\260\010#\352\241\024\254h\021\233\2121s^\004l\354(\"~\330\257\216\333\203\370\236\r\303\352\330\263\353d\217+\200\374\367\374\236G!$C\311\365\206\3705qx\354\224\257\334\214\210I5\202\316\036M\230x2\"\016\025\315\216\253\320\016\003Ak\202\214\024\314\nr\275!~\r\034\016\361={\234\357\311s|\370\261Z\304C\205\351}\243\203\366\026!9\376\362E\246\036\366\320Z\260\230\222\307.&\033vq2c9\252\260A\003\n&\242\351\307\306\240h\023\023\266\035\367\321\032s\266\027\250\247\332\357\355\017\262\335h\260:\207\227\220b}\346\r\"\214\364\371\230.q\342\035\316e\274\302\371\001\273\301\311\335T`63)\202\371\031\334\204\020\301\324\274\030q\211\325\312\302\301Z\371l\364\022\022\370\355EJj\002\\\352\316x\2276\354\265\004&\314H\303\254g\327\271\025\355\372y\0217i\222>\255He\310\300\363\333*\327\371\265\025\262\231\3311_\202\3632\245\201\215\223\375\003\354\2332``\271A\366zC\205,\374&N\303D \202\006\005\233\364\317\343\317:[9\321\331=\275-\253pvVR\2212\">\25254\373\242\311\267\235\273\245U\340\355\274\224>f\306l:a\220\330\214\243\376\315t0\261\313\254\302\207\362\n\345Q\225\326\002%H\223\330\204|\213/\037t\363Qr\210Vsv\304\306\276]\235\244{\320\236\347\351\307\314\026j\001\317j0\026\214\210N\325e\225\005\363f7\307\003!l\304\371`\325i\370\335\265\341\030>n7n\274\335\274\3006\337\362\336\022N\362z]\370`\006\327\205\272J\250\207M\032\3263V\362\361B\026\215\210\322\206\230\364\244=\365\371v\354\365\363\272\337  \266\242zZ\221\304\002NX\252\211\013\007\205z\014\013pV\206\212\230T\270]}\275\301\177t\314\240I2\235\246\0033f\320EjZ\327\3036\2159\235\273\020\223\036\315)\270;:\210q\002X\"\365\354|\000n\245\205\362o\010\351d\306\014:\2666""\300Ly\300\304J}}\340U\326q\203\3067\355\205\340NZ\335\354\344\000ljZ\271\234WA\223b\314\006,\376(\223\310ZT\334\016\001=\211\035\2205\212\256]\240\363_\2371\313\262\370\325S\r\345\022\216\254\266v\334\244=\232O\223\"+Gx\017\035i\315\270E\273\200\266\357b\003tL\034X|+\2363R\201\264rY\234\244\021N\027l\027T\257\355*\234\225\307\n\314\261|\014\2301\213N\353\332\255A4\314\211\336\003\265\322\251\274\375\371r\363\317\334\"'\022Q6\350XG\363C+\262\361\243\232f\tMo\t\315\231%4\303%\\6K\270\034\246l\215w\3216h\220s\230\217+\0075+W\013\317\255i\242\216e\324(\313\003\reC\255n%\223\300\212\302\375\250\246\311Wsq%b7\275\002\300P&\276\257i\316\374\032\240\020\322\322\013\014\245\362\324AsV\0354\303up\331\254\203\313\213\363\203\322\013\251H\356G\031}\315\204\371jlV_sr\265\361\354\324LAj\273\035\367\323\202\244c\"\317H\240\001\203\251|\302\263\002k\344\023\017\331\271OL\244\202\026\205\272\344Id\306%S\230\275\\Pe\016\026\256\207\023\303y\021\260\261\354^\\\361A\322/9\217&\300\245\306\233Tr~\276a,\206f\022\370s+\364\351>\000\266R\342eF\366M\205\263M8\204*\362\314!^\250\225\2563\334@g\005l\227\216O'>\240\225\212z\004\3775qb\350\262\300\262n\354\361\200\334\244\214\327\205$*d\002\035\342+\352\374\320+\031\222\034\257\206,3;\022W\032}0O\032Y\017z\314\244\343\247\207\2567\264\240A\221k\013\000#bP\351\232?\273\376\311\026\365\001\260\223R\216?\261\261\347\207\352\351R24\245\256\275)\005\331#/p\000\205\0315(3\261A\323\350vA\216\215{q\267+\017\340g\351\353%\254\372\222h\000\330\036\036\356\354vSj\354\324ms \337\200\356\216\225\303\035\312`u\343i\353\273\254\266f\341\315\274FCv\216\264\337\312\360\n5K\356\200\314\024e#N\231\027\022r\273\305=\273\365\331\325\034~\326#*\n~\244\344\202\272\031s\371Bc?+\323\361\220\337\374e\205\0311\243\234\361p\211\331o9\231\212XT\254Sr\"\031\266h`\231\316)x\310\302w\305!\014=l\320\034vz\311\302x\217{\214\005B\033\340P\243\250\205\201&\303@)\322\251h \225\005\307\253\324\333e2h\241\037\034\320\241\225\373 \314\260\n\253\347\223\355\355\2218\024\201\206\014""\030d(\036\234\301\231i\307W\316g\241\263,]\304\360\323*z\330Oc-\200\256\\b+ \3517\t\031\324\302z\036\271\330%\310}\333\0059\237>\317\347\276y4gaL+\002\0066\302!B\177m\270\305\357\325+\214\337\034\326`8\326h\031&\217O\370\300\333E\\\260C3\200c\266\343\023\021\232\354x\0135IF\021\032-\371\257\213+\004\262\220\265i\304|\tL \216\200\202\311Y-hQh\306\332<h\272E\014\323J$\235\212\031t\330s\nt@\262J\326\2225\271\214\253@\0319\034\260\023\014|\023\315\214\031t\274\347\260_\324\223\317\313\220K\327N\305b\326\212\372r4`\203H\035r3\"\016\025\337Y\321\302&\215\270\321\2164*l\322\214\370F\177K?f\345\205\006\322\371N\306Tc\275\371t\016@#k\211\323\321Z\0266\302L\235d\243\244d\375T\005M\212l\037\272\3510*\223\236\260gy`\3014\302G\312\210]\255`v 5k\326&4rg\333\310\354\357yw\003</\217\324\241D#\242S\341\362\201k~Z\320\244\330\327\227'V\324C\311V\"\271\266\022\t\301\315\264\350A\207\021\363\200\211\245\013\024\242\023\361\243!\001pEJiI\014\301+\322\212\305H\000l\246\304\221\002\177\371\326\242\n9T6\2049\204\241$,x\311\n\373\310\3474\232\271\000MS\243i\006h\310|\206~*\364\366\016\343\374\254\237\327\276\302K\341\237\231C\3507\257T\243+\261We\342\361\200\232\235\007,\306\360l\023\t\005#bPewW)s \322\302:M\261\271\262\000 \376c``H\303D[(K\202\0131\351\007{\027\273\352\006e\217\035\326g\227\251\360\232\000\035_\317\032Qc\203\\\371\360\233\340xG!Oz\267QA+D\213\211\371\302\001\030\005\n\244& }0o\032\255O80\334\002N\253\020\263r\014\341\035yR\211ts\321\315\304E\245\341\270\240\2131\035v/\206\210\265\250AI:\001\376\250y\332\214y\310\r\020\316\232\305P\233\356\346\265\003\364A\204\231\205\230\037\013\357LY\330Sp\001\nX\021{O\346U\240\214\034F\250>\300_R\026\331\216;\246\266\001V\032\241\014jA\213B\236\307\322\303\026\215:\233\245Gl*:\233%\002\016\226\315\242\"\340~\233\ta3\364\006\351\tIl\230\210\252p\306q^t\266\005\203\224\255\347\337-\310\246m4\265\0132x\200\245\034\235\010GZ=\242S\225\275\036\371}\004\270\0366h\310\306\251\027\344\001yR\260\365\217'\231\0037\322&\203xI\234\220\322#\026\3250""\306}=y\250\270M\316\221\365\332\254Cc\347\t2l\255\340iE\330\240\311\304\331\035\0252\361e4h\341\261`\272\206`\307\035\332\025v\276F#\326\001\006\365(\331\337\217G\363%\023{\2352\".\274P#\235z\022\340K\365\"@I\332F\351*\035\343\224\335\030\343\327\233h\035\357\203y\322,\363sF\374PD\241Rz0Fzv\t\017/\206A\233\353\021\213j\220E}\322~1k3jP\026\260@E\022\376k\342@\021\244\314\265\240AQ\356\275~m\314\266M\317\217\335\335\323Cv\n\360\3209\374w\310\327\363\207\236u=\336\227\262\357L\335\215F9_\"jA\203\202k\216w=\032\344\335$\275\014j\332y\366\333\211{c\\\221(\207=,U\010\343\311\307\204\335\301\214\357\264\304\345\214\336\204y\301\307<}@3\2518\004}^\005\235\314\r\000\236X\260O-\034\361\211\357\3103\001\242\010\263\305\330\204\323M<\364\237C\374s\0136\237N\272]<\342\262\271\325\235\337hww\2266;\355\233\353\034\242\305\272\255\356\334\325\205e\031T\241\266\014m\363\320\345\346\262\014\265eH`\257\010\320\025\001\271zeY\206\3322$\260\327\004\350\332\266xP\242\2736\377awcu~}\251C\240\265\355\325\371-\340\024\020\353[\355N\007\310o\256om\336\\\355.~\264>\277\326n\315\"[n\177\270\264h\021u6\226Z\355\371\325\356\316\374\352\366R\247\333\331\336\330\270\t\225\262~s}\251\036e{}\271\275\336\336\372\250f\276\363\353\365\010\027\227\226\347\267W\267l\342\255\315\371\255\245\225\217f\241\227\346W\2266C\310\215\245\315\345\233\233X;\214\242\275\321\352\336\230__\\]\352v\332\037\323Wo\334l\257o-mv\347\267\2666\333\013\333[K\335\215\346Fw\353\346\373K\353\324\030\233\252\243l\312\216\262);\312\246\354(\233\262\243l\312\216\262);\312f\367\312rw\251\2716'b\202\340\212\300\213n\263)\273\315\246\3546\020b\251/k\261\313kM\036\273\006\261+\022\207\2617u\334\266\211\334^\272\266vIDEA\330\031\271\367\206\3266]\010\310\313Qk{\030\017\227\243\335Q\322\243\2354\006\340\033d\255m\024\242\364\267[\2242pQnE\364\330\022\005\007\244B\025q\311\374Ix\220\344\"K\371\201\327\374\276kA7{\023\351\024\240\243y\021\n\322\005\010L\\\272Wy=\354-L\307\372JSxY\234\004i\345\221\337z\025\362\227%q\336\2228V\225C\000U""\nL\313\364\327\233;\301}9#\206r\355\242/}\374G\256\277\351\257\233\233\204;\271q\014\345F~\303\351\257/\223q\200%\216\341,\335\210\007y<\302\036\213\031\014\363\016|.\352\324A\204[T\025\251Sz\2308\307\327\376\302h\234\266$\226\235\002\006\005\260+o\247W\240*8\366\022\207y\366\220\233\\\177\226\224]\362\247\353\001U\360a\020\205\3137\2366\364C+\n\261\351\302\345\014\271\347Vf8U\033\377\263\360Ve\204\250\302\034\206ST\362\212\"\324\323\023\034Lu\311\016\355\t\312t\277\274\313^\201\361se\343\252\371\362PWr\346\320\233\274\361\007\264<\2349\230\n\276|\264a\256\\j\203'\335y\251\017\026\346\303\242\nr`\2739\r\301+KZ\2559~\332i>.w\262\244\257\344\253\016\n\226a\021\205\262\177_;\034\355\001\005\263\267\210\352d\177\361\235A4\334\355G\357vu\336\340?\"\365C=\014\204\350\034\036\3320\307\302\014\2676\377\336\315M\261\306Xk\257\253\210\360\322\2721\277\325\272\321]]\332YZ\355v7&G\360o1\351\225\335uv\302c\257#<\206J\277$2\340\262\247\243\034\216\024\222&L\307\273\211\003\360\026\340\220\370\n\262\210d\201\206\357\024;\356-\316\246\360\225f\322\310\302t\267,V\324[\224E\340+\311 \241\202,o.\232\303\226\240\027\026\327\303J\027}\252\340e\356n\312\356\302t\351\272\016W\331\030\326\207\300n\215\247\315\213w/zo\360\2370\275}\245\377\224\311\265\273\377'\314\201v\310O\225\212\034\007\2340%>\276!\356\331\2370\2510r\2358\241\360Wp\302d\322\261\301\t\323q?\363\247\253T\364\375p\212n`;\2148M\321\272;\210\023\246\367\372\2708iu;~\"N\220\201\273\224\254\231\312^\021\326Mf,\360j\267\323\376\200{\245\310\322\224|\233\235\264\242\311\367\305\251Rqo\032'\355\315\226\333\215gK~:\036\304\263\325'\255n<\021r\272\261`\370@\341t\232\273-\036\314\366\242>\216\031\351bK\372\317\242\215\343\024\332\227\374\217_\322\303\356Tha\235y\320\300\363IP\201\346\364\360%#RY\324\334\254\262\346|\205\031\245\315U\02707\253\2009O\001M#R]@sV\001MO\001\227\215Hu\001\227g\025p\331S\300\025#R]\300\225Y\005\\\361\024\360\246\021\251.\340\315Y\005\274\351)\340\252\021\251.\340\352\254\002\256z\nx\313\210T\027\360\326""\254\002\336\362\024p\315\210T\027pmV\001\327<\005\274mD\252\013x{V\001o{\n\250\316rV\216n\206\372\270j^2\"\225E5g\211\211\246GL4\347\214Hu\001\263>\246\351\373\032\343s\252\305Ds\226\230hz\304\304\214,g\345\350f\250\213\235j\2513K\350xd\216.r\252%\316,\201\343\2217\272\270\251\2266\263\204\215G\326\350\242\246Z\322\314\0224\0369\243\213\231j)3K\310xd\214.b\252%\314,\001\343\221/\272x\251\226.\263\204\213![\306)(\235\227\264` k\211\364\347\314\321v\306sZ\360\222\036\256*enF1s\236r*\363\233\221\235\223[S\013Ve\334\254\316\270\351d|Y\013Ve|\271:\343\313N\306W\264`U\306W\2523\276\342d\374\246\026\254\312\370\315\352\214\337t2\276\246\005\2532\276V\235\3615'\343\267\265`U\306oWg,\007\t.S\332i?>b!\333[-\213'\331\305^6\312`\305\235\306\005\232\245\245iZ\275\232\213!\372\323\356\037\025\302\225\255\341\253V8\021\024\236i\331/\032\2534/\264\3642\364\256|\262\320r6\313\242\302\207l\257\273\233e\203\036\273\341\324\353\366\016\242Q\257\333\317\306\273\003\210\355\r\262\250\354\241\257\217^w\220\245\373\364\227B\305A6\0020\333#\203\3371\245\0373\3321\221\214\025\365\230\223\037fI\277\233\367\272wYAx%\203\216\243h\316j{|5/~\321\200#\302x\300\027\026H\334;y\034\217l\277\2653\235\320\362\207\246:\354\235)\226\335.\0366\322\334\317\366\360\321v\266\234\353\351NA\272]\366\"&\256\352\2222\036b\024\032\022\352\246\213\246\305\230q\014\337\032\363\244\203\254\210=ni\025\310p4;\323k,\272\357\017{\203u\\\275\006<\270jNZ\311\375<\374MMw\254\216wU\r\240\\\246\272\356P{\354\017t\326^y\324\356\303\237n\217y\250\341\177a\205\354w+\357\207\272C2H\347\214\316\000%\rT\rIO\000L\\\310:\273\354\350\3027\344m\"\027G\266\006\201RK\376\0056(- \273Al\301\326\022<\002e\001?\200\256$-1ld\317\227\330W\321h\240\340t\022]\306\027\351N\251\036\327=yJ\370J\\\266\323\275L\217\323\030\332\244\233\022XH\241c7\360\232\221\016\350\260S\306\352-\005\211\343\027\363e\274\"_\027\025h\373 \261\277\003\004\310\265^\300\016F\263/\260\242\236\017\262\021\035\250\310\001\264Y\276\025%\203 U\305\227xH\303\337\341\020\333_""A\373\034\253\354\340e6R\337\303\375 \220W\n\307\244\347\000*\370\325H\302|J\"\213?\313~\247Y$\265`U\3413\212u\0134\212\362Y\231\203\210\000\033\001R?S^b\215\305\n\263\267\203w\0005\030\254\305\230\315\320\272\366\216\203\224\013>D\005\003\036\3220#\016\361\014\206\264F\323Qh7\r\"\224\316\343y\220\326\003\232O\373\036hk\276\343\203Fy\264\233\014\022>\205\230H\361\006\246\007\265\214J\025\010\371\020j-:\n\242\022\037\323x\200\036O\233{\263\344\310\305\270G\"0L\322Ng\222\370Y\023H/s7G\036\340\20777\021\312\037\333,6\311\0356\235\261\017\"\374\375.D\352\355w\013\350\225\000Tic\022\326\201[|\302\325a\037\307#6\030Z+\354\352\220\026DGTZ\224?\177\244A6\371\3756\357\323\346^\240\377#}d\336\017t\t\325\2402p\357'i\337\013d\375\314\213Y\337\231k\372\021\031\251\005\016\002\275\361\306\375\n\024\273\036\201~\345F\354\265\312+\365I\337\254Oz\365F\005\355\272tlq\355\303\271\232t\315\232tWj\321\315]\255Y0\0206\353\022\372\213\336N\213p\213\010\244U{s'!~\353D\304\235\315\225\205\023\261r\322\004\315\023\021\2374\367\313'\">i\356WNB\374\346I\210\003\343AP\317\036\021>\312fm\312+5)\203\343\302K\332\254OZ\233\201K\370\177\236\2610\t\3409\007\276\004\016\300C\022\334K\031\020\342\036Z]\216\253\367\351X\334o;\250@i+\304\000\005.%\026\"X\357\365\370\2121@\327\311\321\375\200\365\246\242\025\325K\363<\3618\343\351\307\340{\215\204\220\366\014\253a|\210@\313\004H\375M\343%\326\332&\037so&\304\037{s\266\245\331\226$\320xQD\201\2157E\030\270<B-\242\334\260]\231\260sd\370`\010\327\177!\373r\224M\314\243a\036\204<\364\245\341\034f8\334\341\006>\016\357\254\315[\366M\r\325\212R\346H|\2239\204 O\336&\332\264\327\031\250\031\246;\215\026E\332&\324\227\001\323\rj\032\234z\217R\327\327\320\215j%\001\372cs\tD\3376\241>s\234Nd[\346|8\323H\247S\330\3068\205[\274\2748\327l%\373\276R\027g=\336\242\323V\276\004\242\021.\365z\374j\217\006\\\331\330\256\362 \037\242\3641b\020\230.\340u*\257\347{\207`\315\360E\250\243\3631.\n\007\244\347+\240r!\337w\020\312U\274\216S\235\330t8h\221x}\246\3334\314E\272\007X""'\377\220\227t\213.\350\331<@\347\303\267\245\013q\035h\272\363\3261\246Kn\rC\203\001\017 n\321\225n\r\267\252|^\353P\237\207g\r\277\246\373=6\340Gf\3145\r[%\255q\347\306\213\311\360C?\370#?\370c\017\330\365\240c\022\255\320\353\001\037z\241\037y\241V1\316\304\340~\016\273\331o\202D+K\247@at\025\373\322\275\014\366RoN>\n\346B\244\222\254\262L\313\3172\373)\252il)\240\223\204q\315Er0\024@\362\274\353\320T\360\330\234\315c\263\202\307\313\213\314\177R\000W\301\333\345\212LM\377\272u\351*>\222\023zr\262=:\3732\261i*\263a>\221\253(\344\331\322*\2420N8y\366U\255ER\225Ie\362\212\236e\323T\324Wsv}\t\037\322\325%1\022\217\020\261(\252\212\251Q\351\032Q%;\341\034\274c\301\304\315\017\312\000\272\242L\201\014'\256\342\211\341BIg\2164/]E\243W\2144\323gu\010iz\244\326\251tO\321\266\332O\222\333\247\226\257U\372u\366\022zu\2355\351\374W\007z<\374\332h\323\217\257\206U\217\003Z@C\025C]\2119q\216\006u\324\271\r\217\023\316\031h\327\261\247\236\200\234h\366M\220GU\335\220\0162u\250\260@\3175\233^\350e/\364\212\027\372\226\027z\315\013}\333\007\275\354\345\341\312\234\027\372\246\007\372\266/\203\267}\337\360\266\357\023\336\276\352\001\316Pah\247w+[dGb`\261\327K\360\024\016P\356\261\207\224t\322\200\323-\235$\344fJ\247\261<Hi\250-\341\013J\207YN\237\\\224\351\330I\307\317r\305\244\323J\227IQ\352\256\335\267mWD\032ng<\270\035\245\201\225\352\007\334\307\016\007m47\230}\201\215\013\233\236#e\005WRU\215SN\242\215\354\032\324\330\342h\033L{\361f\224\336\266\256\361yo\365y\201~+\224\217\314k\201r\t\225\365)t\255\320\302\255\304)\032\025ba\220\n\240\324\375\226}\200\036\345v6\312\360d\200\264]0\013\323\031z\200\037d\243\333w\306\3618\256\302\031RZ\336\260)J\0272\263v\003~L<TF\275v\206VK+\000\233v\026\242\336\355\275d0\360c5\023\250\213TV\313\020N}i\010\035b\326\242\nUNE\202PMYI\272\354QH\007\327\311\007I\351\207.L\364\371\330\217\254\312\265\275\237\202\304\352(\317\212J\352X\224\270\002\316\320[\035\014t\315\371\275C\\\243zjU\210\331\030V'\266\272Q\000\033d%L\037\342+\224\242\212I\271""\321\035@\221\372\321*\217*hVFq\234\002\tm#Hi*IC\025Q\277\nN\362\361\376\317\206\217@\321\256bl\366G'\241\240\350*h\3138q\252\300Z\377\205\350\"\275\177\2144\206\332\007(R\\}\030f2\365X>\025\305J\\J7q\006ta\262\321j\353\272!\201[\332\241Z\035\316e\020\277fl\241\354y\214\340\352\202\260liB\254p\2474~\306P\227\245\251T\232\324\361\320Z`:\251Jc\2200\307v\006\304\367-\353\342\301\004\345[\317\300\263\331\374d\274y\223\270\024\276\252\360\266\220\3248=\255d(\210\223Mq\204H\342-;\007\363V\240VzH\303\233fk\224\014\025tu\030\243x\002\251\267\225)\213( \370f\214\016(n\253\230\263D2`\342\340\207\003\207\320\272\332,\301\347\322\251\2024\000\250\231f,8\336\025>4\312\005\205=\266\205\025\3239\032\246\223\024\261\366\365|\1773\236\037\227\231\013\365K\007\2015kN@;y\222\272\320\217\360qg\r\034\030\266\235\312\241\326q\306D\3073&:\025\035\016?\004u\371\2740a\007\243,U3$>>\237\216*\353\222-J\226\322\022\327\357IZ\336\032\307x\356\266\020:\217\205\356\214\225\024\264Q\223\341n6\200\374\227\361\004\226\217\202_\203\000\222\316x\017\230\020K\032F\006#\204\343\331MnqQ\037\327-\343!J_v\024x\031\237\211\366\022\360\033\366U\270\017\222\362`Y\250%\016\021L\002\275\212<6\343A\034\025\036\006\240\377b\337\3672 p\201\274\005z\003\275\251\247e8\357\315\030DG\252\360\306\233\364.d\336\003ZX\331\364@\371\321\026\013\372\321\366\216\037\332]\362d\0029{\n\\@C\327\334\245\205\025_\271\034\331\202\377\005\221+\013\233+a\344\346B\030\271\271\342\373*B6\027Z\255\3150\262\202\333fka\263\025FV|J\263\265\271\020FV}g\263\352;\233\233\255V\370;\253*\341J\325w^\251b\350J\025CW*\312lV\365\204fUc7\253\032\273Y\325\330\025M]\301LE3W\264c\305\007T\260\337.\362\nN\000[\221-b+s\256\250\231\212\236\343O\265\352\202<\\\373x\005\t\343\221\016\333\037\355|\324\274\324\274\344\307\\!\223\247\213x\353\322\333A\204W6!\316\213\330\371h\373#?\324K\356\241\375h\356\322\316\334\245\355\271K\335+\315K\235x\230\340%\233hT\233\260\353\375\230\020\261\277\262B\324\336O\010\2631\223\276y\"N\232uk\243y\202\332\270r\245f\256:""\341\254\0173h+*\242\022\347\2077w\346\232\333s\315\331\235\303Kx\222L+\230\223\364\263j\317Kx\222L\253\230\250\304y\341\333;\360\205An5l\2507\352$\376\236\245S\204y\250\2545\213\242V6\225\014\317\034\016H\325\254\344\2479\213\227\346\314Oj\326\370\244+W\252\262\020\330\212\344\263\270\230\335\017\267w\346\375\320\000\371G;\336i\005\021\376\024;\333U\235P\303\206\332T'\361\267\247N\021\346\241\262\256,\212Z\331T2<\263\023\"U\263\222\237\346,^\2323?\251Y\343\223*:\241\206\255H>\213\213\331\235\020\024\006?\324O\036\226\204\n\252\257\362XX\354\326\350q\266\213f\003\3459\017\001\344\273\017Z\324o\2521\t\274\266\032\235D\031k\000\272!^0\264\343\252p\035\024d\300\"\n1a\220\031\214\010;\350*\367\010\255V\372.\2563)\206t*\331\203\334I\372\ni\273\357\253\366\352\307\260\303\361\200\345\263\026\245eR\024hY+Gd\327\221\270\0164i\022\r\330\013\032\205v\374R\021\240\223\211x\237\332\230\331\240\265\235(\002\254\306\373Q\217__W\320\215xD'B8\275\206\307k\352|\237\367\346\236\330\020V\230\001\246\232pCK\337\206\257\261\343=\n\232'\313Q2\030\217\342\205\210\256a\023\230y\323(l\342\242\210G\252$\274\307\312\257v\027\353\361\335x\244v\3069\2369z\350\263\263\251\n\332\317\231\345H\333\342\025pn8ZK\n4\207\034(T6\314\243ROu3U\267/8IZFI\252\347G.5\333\005?Io\240\254C\335[Y\266\032\215\366\265\354 0*\267S|I\207\357j18\337\261\240\252l\343iy\013\005L\256\242E\254\320\212\023\006<|A:\241\233-\026\256\330N\243Ch\006lx\205\032\347\003\264\360\211\213\n\353B\236\030Hn\216\366#w\242Q\202y\032\330\245Vk;\355e#\334\3560\n\024\367\023\254\252]N\006\261n\016$ \367\351\212\337\013u\244}\221\364\206\272\315\336+\342\275K\242oD\243\376\335\210\271\377\350\335^\022\036\027\010%\217s\363\nVw\017<4P\262\007\337\036\014`8\r\370\360\260\301\355\224<+\t\001\240\241\320\035\211\342\262\235\366X\237Kp\300\262^\315\273\223F\301\033\223.\033\033\037\002\3050\303h\002\375\336\032\023|o\236\363\327\311\243^l\343\264\313*\243$/3'\261\265\203j\240\230yy\254nW\353H\253]\r\250hO?\226_\007\261\221\3203\220\017z\254""\301F\nw\234n\3051\264v\313\304F\321\321t\346\026\326F\341\035\224|B[u\036n\361\352X\200\235\215\236\003\301i\226In\007C\233m:HL.\225\025,\210\350t]\010+\365\000\r\327\221[\177\006\224\006\276\003f\026z\033\312\005A\000\314/i\333X\363\363\337KJ\024\265\tM]|7\265\357\242\343\221#\017H\216\332\203\235C!\005\333\220f\037\024D\002\247\026N\037\205\364\035\372'\020\315Zt\304\216\225.\035\365\342X\227C\204\2769.o\356\211\232/,\344F\314*\205\355\"\007\322k\227#\010\232\025\305\204m\256H\020L\222\013\314\317\023]\322\302:\320\262\021\002M<pa!X\0038\323\017\314\200\3145\255<\317\245c\n\306\262\257\033\256%G1\037\261r\343X!\363\2425@\211\264\025\217\206I\032\351s/\342\244\016d\177@\016j\300\021%-6c\334$s\2202\255\217`3\357\331\375\002\240\035<\3727bB\034$\275\304\254g\226\224Z\3174q\260,&L\r]ZJ\212\204\314\027J\273\266\020\266\340\001\324\006\326JY\232\031\331\274y\324\026\000~\024\227\355a>`\236\033t\314\341 Io\373\247Z\356\207\00172\361V\223\204\253\003\n|\n\324\016\334Z\004Pp\030\271\r3\220\315)\333\322\366\217\323\215Q\266\207\303\232\027\312\236K4RZ\350\314\250q\201v\004\206@\000\253m\217\356\003\222\372f:\337+\315\253\246\204b\373\2454\2400\251\325'u\264\273_I$\331^\211z\306\016\212\271\004]J\225K\0056BR\350\375\223}\3528\267+\204\257\013H\201\305\306\205\311\274\014`I\222\032\343\311$(\262\2019N\r\364Z\254\217|\003\265\235~\226\031:\255\205eZr\030\355v\001\203\340\203Q\226\356\323\032\303\"X\214\313\310\312x\274\313\275\352+X\240\336\361\200\272W \253mm\217\312D\343\200\224%G\377'\2443\036\267@\315\026rt5\216nk\0106\347-\307%uu\215\t\241.g\345\202\301\266-\347A$\303\272o\202#J\365\312\355\364v\232\335M\265\370\260R\366kM\200\307\323\222~,\316-\330h\024\327\363\2402\246\334\227\215\215\227\247\014l\304\206|\237^b\351\324+[t\331\307%\030\220\2569[Q\274m\312\335\343[\030s\267\035\341\372\n\226\342l\201\245\342$\007\240J\305t\215\320\245A\224\303\252\010+Z\302\330i\347\\\033\373\010T\263+\3066c\220\237}+js@P\261~\261\300\346\275t/\"`\315\010\220\372m\032^b\315\262\241\360n""\215Z'>\030\354\203(qj\032a\316W\"\320\363\215&\270\342\013\035\302\360\367Y\244\326\327i\035\3178\370\354\276r\341\207\006x\364\321\371Yt)5\016COm\230\310\362H\357\315\032\330=\244\347b\023/\202\316\236\351@\336]\245YDCq\t\255\206\250\216\263z\211\206b\035C\345W\032\241P\275r\\\240.\031V\257?\335\253\301\202tlZ\205\013\027\034\240\016\262\342\245\0171\267\030\367\231\365\243\357\242\360\310\"\323\001)\233\n\002\363\375\013\227\220\326x\376\032P\270:5`P\327\250\001\215>T\003\352zW\025\216\371/\270\021\323=\374J\"\263\333\207\t\347NL\370\376\260\254\242egI\241\255\252hn\346\321\235q\274\334\237M\363\001\276\351\\\223\314\313\230\331)\374\215\357\322\004\233\311CZ\243\277xS\325\3507\335\322\007\253Sb\267\254[B\360S-qk9B\361\017&\017\332\223\277\217\252\362\233\374\t*?\317Jb\017,\017\232\r\233e\3467x6\341\\\035\302\367\343\tH\245q\311\255$u\010\255>\354\241\225g\265g\320\371\306X\220\314\031f\325\224\263\271tn\311\315d\304I\021\346\t}\267\331\316\213f\022\355\324\313\253\252\273:\264\365:\255'Y\275\256\353~\302I\270\333i\236\222\277\235\346\t9\234\331\nu\253\366\024\325z\252*\355\334Nr1O\361\033\332^j\217\236^M\022\350da%|\006e\275\232\250\271\034\230\305z}\276jw-O\262\372\274\315\250\365z\225y\342\212<E%\326\355N\3352\000\256\311\336\354I]'\255\250\030cj\247-!\364\323E\327cL\030\263\2732P\340\322\225\346\264\252\232D\\\231\251\246\202\372\273\231W\346&\357\331\205\010\266\3200_\316\246h\221\0371\265\n\014\222g\363\003\276\305ZT\323\335\274\233\362JegK\260\002\305\255\030\005\201\020\277\332\267<\212c\361+\027-,R\360>\204\021Yq\020v\3278\270\rh\334s1\000-\317k\n\001\232\212w\024\354\024\3746\224\r[\234\244\021\336\005\327\234\003\210\035O\203t=K7\262\0213\257k\033\243\270\341r\227\327\213NM|\214L\247\003\255ht(\254\177\0065?\335 v\\\345E\257*\"\345\305\244\212J\272I1\210\n\027\342\037\315\016\215w [Tj\014#B\2720\224\021\252\233\245;c2.Y\360\3259\017P\334?\263\300T\271\002\241\337\237\224_\330\261.Ur\230u\t\213C=\327\247\324\243\262\336'f\331\203\220\253\374\352]B]^""\217\317\323Eq\035\304G\260<\267\245\343\360\205i\r!\315=\005\305\327\242\\\032\364TLT\216\202\010\317o&\224\215w\274Z\304=\264\315p\303W\2016%K\005\241d-L\"\245\017\336h5\375g\032\326.\031\221\227q%D\325\211\200\230\017; \330\272[\026\000/L4+\267\007\257\227D\233o\242\255x\274S\312\352\303[\265h<\337\022;r\000\241=F\036Y\215\212R\356N\240A\310\020\223\253\361\241\2444\274v\352\216\0378\336\360\336Y\027\277\223\304wC4<\"\321x\306b\276\3377\375\325\2061\336[\266\202\024DR\234\366AD\213\326\361\300+3X\032\346\270\317f2 \201\325IM\353y\005jv6BM\014\"\252\263\260\325\233B\255hN\235\260\232\356\224|\371\276\223\371G\n\300*\263\247\001`'U\320\312\304x9\026\0178\330\311u\370\254\014P\037\361\244\027\340Y\311{\371\304\223\232C\347\026C\360\232\331\316\"\203\331\327S:\207V&\266\223U'0G\263p\003\020@3\001^\034$\271\007/q\255\201\230\t\002\004k\331\241\2067\251\263\264?_\240\323nm\237Jb\230'\232=\007\324\271+N7\033\340\017\240d3g\356\344\231l:jC\244\n\337=l\206I\324\024\341E\2071~\r,H\353\325\304\002\324J#\263\t\260\001\205\231\221pf\r,\306\273\343\375\305\2544\277\312\200\006]s\273\244L<\316$:*Q\370\024>\203Y\230\332\265z\270\264T\033!$\027_U\031(9U\217\312TG]J5\362\253\362SC\274\212\n\024\227\335\254p[nc$\324\035\202\362Ivb\264\272\t\266\207\231\211\005\335j\037\330\200ua\322\323H\344n\246\0367\304\2168\271\334\3476\005\007X1\002,\262p\3477\010\255~\257\343t\375\235\235$\356\357\307\354y@\033\300\357%\330\260\n^M\2520\253:\235\305\251\245\214\240.)v]}\370\216\027/\206\304J%\326M{\024\367L\t\017$V\317C\032\273\311\0216\223/ASYz\225\212\343\347%\254\265\370\351\241JL\211\306\201\264\207.!B&\3703Q\343\334\217W\243\2736^\323 8\005\037\371\376\034\302\030:\024\357\001\251\005\207\007\256\344U\213\275i\325\017\021\212u\360\01421\273\314$3\017<\372h\3307\306\350\250zFf[Y\236\r\262\375\311\0142\355l\223\3711\236\004\312\277\211\027!\336P\013\"\r\021\342\307;\002 @V!u\202)*$\220L\2439j\221\230niE\035\231Y1NW<\335\362d\243:4\242WN@\353\346\213\302\020\344\256\001\320F\375\n\r7\003""\275\231e\026P\310\005\227\225\260\304h\323\375\251D\037\226\032\314Q\332\266\323q\241u_\215\324\034\302\032\002E\032Znq1s3U\357H\370\350\270\315\251\222f;\307{IAl\301\246R\341\301*D\346\255\001q\303\200\335\222\341\007bm\032\362\014?\340.\350\n\257\220\320\310\331RD<;7\2138\3346\206\037\306 \262b\034\006\310\303\203\320\233\300\022\007\032\215%\2144\214=\2065\224q\024\320\207\264*DMm\255,\237x\324XE\260,\034\\\371\340\332\311q\037\232\277s\020Bk\016F}h\306\263\007i\373\321s\321\301\257E\013\277\255\375\232X\0321x?e\020\213\303\326\0362\257\222l(\014U,v*X\264fv\033Q\3213=\244\341^\351\020[=\322\222\034\272\t\306\255`\356\325L8bF\003;\031\301+(n$\373\0076\032DNEb\216\365%d\025m\254x4\233\217\227_\256\231U\341:up\232F\247\2649o\256AM\217:|\n\303\301\264\213\360\234\370\225\324$\3357\2554\034\3555\267Z8kz\023\213\006k\360r0{\237\245\355\200\267\320\235\273\007\254W\272g\r;\353\334@\315\227\324\302\217\250\351\253\030\337\027\371\353\333a\233\251\261\332\243\352.n\254\365H\001eVi\027j\03687qd\317\320\316}T\222\240\242\343\020\270\375\000\241bG\326\000j\033\022:X\014g\037B\354\377\332p\350\371>0\367\272h\200\215c\304\022\323\265\243\266\276\311}\352\3018\037\251\207\3128f\230\035\306\336\256\356\242\302v\317\315\030G\222'\177K\023R\024\206\331R\373\000\227y\274\242:\336\215\227\371EK\033\266\036\357\263\213\342\037V!?\252B~\354CndE\022\314V ?\252B\032\331.\255\254\212\313\320\362\336\254\300)\224:\364\354\342\234d\306\236\246\005[\327\305\235\0067\3667-\234\263\313\251\360\306\375L\001\027\2149L\030\010\233\023\003\351c\307 \360=\333\356%t\236q\367R\205>Q\371v\347\207\313u\367 A\"\367tF\220T\273\317h\323t\030\215\247\022\271\233\365\322\017\255\020\3726]X\356\233\224\226\3507\220\236A\331\031\357:\337\351\324\004\273\201\345\355>\312_\252~&]`w\0267\346\267E\333\335\034\227\371\270\324.[{\251v\222~\234\031D\344][\031\346\231\007e!\235eDS[%L]Y\225 q\206\305\000\262\016\005:\355\256\270\005\210\230e~\346A\204\375M\245a\275\r$\361\252Y\020\244v\352U\227\342p\331\207\\\213""\274\t\241s\2136,\314f\2353}\016\235\311\366,m\305\241\251Q\210U\204\350\007v\334j_)O3\365D\207\0167\233^@\355\326\267\237\n\024p\325\253\021\322\036\342J\332}o\324\204\033\317\215\342eZuvC\305X\343\316\363\353\262\204\322\374?\220\372\330\316{\240\350\026\250<\250=3\361\366 A\370\372\334\001\372[\305G\346m\030\227P\265\215\205\023\345\013\343\272\301)y,7@2\256X\327AA\306-\242\020\333\006\231\301\264\302h\345\256F\237O|\256\352\001{\023\024%\367\213\020j|\022:i\3003T\342\251T\021\247\003\221\255y\017l\305\205\211i\025\240\334\355\301\276R\036\034 \036\270[\230p3\304{x[{0\330\215z\267u\347G\000VO\233\354\216\367\205qV\203\343\211Q\r\214A\273\\\003f\027\013\010m\263\355=\366\354\204|FQ\201<\257p!\"\001a\036\001\220\336H\001\010\326\304\220_V\226\207~8\234\354\013\0309\214G#\230\031\270K\222\303\230\\Aq,\351jY\332\006\025\227\257\350Z\252]\374\214|\000\225'.\311B\264k\267fW\324.\306\315-Mzy\313\204I\017\037\236\335O\367!\316\000\241:\370\031\247\342\024V\230\254\372\354\247/\235\362\307\024\240\340.\224\320\342\201\203\303<\255\342\2417^J[\243\033n\263\310\0024\334\215C\231\014Z\320|\243\244\3271\036;\361\244\230y\306\324\233FYk}\273\3316\214\346X\027\352\227W^:\257\310\362P*\251e#\353\025V\267(\247 \335\030gx\376 t\267\324\303U\274\204\265 \211\267\3136TR\262\251\031\206A\013\344\037I\026\221o\024\371I\252G\220\235\306\034=\026\266r\344X\264$?l {\345\307\203\260-\256\322p`\321\371\306b\025\211\007?c\014Z\324r\374\325\250\360\231c\325\241W\343\324A)\323r\250.t\032\272\352\335\211G\312\215\230'\205\3455\203\372\203\207N\312y\037\334?8\002\224\336\201\342\245U\203\306Bs]\312\205\326b\244B\243\362P\332L\260\205\315\230.<p\027Q\376\336e\2005-\336\2035z\255\2151>\326\203\254\372f?y\305\247\373\022\3305`\320\240\231\215\213,r\340\262\220\244\360\267]\260\307*\320\246\257\341\226R|\"\003J&1Qh(<l\310\336u7a\312Ni\303\244\341U!\370\013\341&\220?\\\250;\240\343HZ\360\340A\357\"\032\010\374|\332\307\2639\362\3606\247E\023\2168&d\201\274fE\215\006]\237,'Nn\002\\\225\\\251\202\034@""\036#5@\2674\"\201\276\240\241\375m/\t\264\266\0260}\242\022nbX\000\375U@\033\200\364\343\216\316\204\304\226\rc\020I\317=\022\267\026\241\021\002=\004\210\2337\034|\264\332d\316uVFQ:\036DR \"6\370\032:a\361\324\333\336r\262\227\031`\346\rRB\262\375v\211\335\220v\323\265h\240\372\014\002\177\005j$Z\025f\373R\261\027a\271\211/\000\037D\243T\3143\331~\321\342\332\267Zq\271\320 \233.]\210[\233\322`\332B\352\035@C\362\256g@fsV\321\tM*\213#\265\365\207\321\305\3610\337\312\344\250\222\020e\243@\230X\234\265\264\025\r\302\225\225C\307PoT\241\313\213zX\232\006\t`G\305\0258\212\342\330\3067\232,\260\330\211\241\230&\2558\3001\310\022\\\372k\306\335\031\246\010\212\373\031\006\300_\3676\211\267\352M\"U\363\022.ms&\004\324\215R,\345]\314&\367\374\345\3070\333\243@\367\017\223\302\214\240r\316\022\305\375\205\211\215\221Z\325\252\346\365P'\300\002\326\240\266\007f\322\355\264\010f\313p\325\0313\0227k\261\377\255VS.\224\326S>x\270\331<\224\301\326sh\315F4\321u\213\254_\240\2478V}\246?\013\003\025\004j\247?\034\234>f\\\334\221\027\276\221\244\251JR\242\3539\245iH\220\034\233\002@\317Bs\020\337t\001\345\200\365\020\030\217\013\350A\216\215o\357\004>#\215I2\033\036*c9\332\205\325\212a`t\241\301\346v\351B\315mS\032\315m %\017\374\220\2051(L`\230/\233,\310\226Ihp\345}\020\223\340\302\010H1\023\255z,}\226\003\326\344\235\002\242!\356\010\247#\323\253\262A#]\204\270P\356\242\004\r\264\246\334Yu\007\213\016R&\013\013\241\365f\033\214O7V\240\264\211\326\2420\307\245\216\321\252D\200\203m\253\021\204ZU\222\030\355\311\346\323\322\211\362\263\001h\353,\016\262A\337A\373\216\036\371\t\304\001\"\r\353\036<r\221V2\265_g\000\266\013\020\\7\356.\306\350rX\270\334\345\024\332\211z\016\241\033\244\332\036\231\001\337\312\2305\001\227(JM\344\024+b\202\263`\272q\211\203i\033\007u\225pvD\3432\202\027m\013;\036lt\235\"\324\352\212\306iv\210\321\207\213\025\230\017^]\270EY\311\204A\3530\263\031\217\013\272\376\317\274K2\177\366\346\361\023\207\360&;\221:Nq\331\322\263)\2263$\341\216.\275\031u<M*a""\241\231A\020y\332\035\037\216\335\3124@\2674\"\232\276\2170>y\351\363SpB\253?;\262\207om\356L\240\243\250\231h\274F-\312\263\304\346lBM\240\316&n\367\275\244!eq\006U\260h\2072P\256\243\2012\264g\220;\360\"\210\0105S\307\236\037\371i/\n5\027\3650[\266lej\365\"\340Z\007a\000\0249\016\225\004:\344\236,9\310\"\275\274\250\207\035\244\323[-h\250\016\024\331\315\334\003\n\n\036\213($s\0142C\3340\014;\333\236\366= \255#\351\340j~\024Q%?\202\314\345\007t-\251\317)@u\241\202\244\262H\"\362\024\030\307N\334iE\004\272\234\t\340\014\3564\262j\016%\241\315\245\277\353[\\:\303\320\200U\3618\333\025\213Cgs\350\353\374\265\272\276f\271\026\000T:\2672C\371\324\340\232\356\tP\272sbe\201@\222v\270\277=\210r\274\212\200;=Jvq*\255\252<R#$3\220\005\227A\202\232\354\275\237\350C\313Y\260\030\260\252\026\252\265\\1\351\354\026\322F\265\365\231\032F-rM\270\251\241\001\316\0345\2361\323\031\365h\202e\016YB\360\371t\022B-\262\3472\346\363\004\215h!\"s\321\340\240\215\3171Q\352A*\302:\243\3133\007\340K\030\272)\t\342\232\220\3441\243[p\230\326)8\304\2644p\2402\034J\014?\346L!9\037\262\260\316\031\000./\352a\013iE\215N(\343\322\210\244A\202\235\322\244\tuI\235\312\350\220\0221\273\200:\331\353\231\033fNZ\200g\370\230<s`\205\217\\\024^\262N\036\215\n\313\303\217I\324\355\341ce\\\233\365b\002\037\023\242\365\177\226\237:\364\201\202@\327\252M\002\037\277\3658\255\313c\005w:_\322[+\316#\352\022\202\001\026\027\017nBo\315\243\2647\231\027\017\213\t\207j\250/jG\216$\2416\013(\030\271\362\307}\034t\t\305\017;\031$ \"\350\r\017\226#\236f\242\013\202\344\325\237\354,\265\211\215\373p7\367\366\344\260\024a\177\265kXouK\274\252f\220\270\267\347MWO\352\310\235V\025\314\270\217\357,\214\314\230\237\021\003\357eE\243\320\230\241\331\301T@\034`\240H\017\231\277d\207\320a\300Y\213ld\342'TxEqF\001L\233\240\275g\025\347\017m\211wb\330c,& c\032=\255\250\372\361\022=\262#\346\014\001\306g\277\350m\231\345A\026\225\204*\320\217\026\371Id\3209?\270\351\007_q\3007\242\301\336\234\027\332\364B\335\034\204\031\316""\000v\3303Ol8\264\270\345)\356_\251G\366f=\262\2537\002t\255\203h4W\201kV\340B,\266\323r.\214j\206Q\241\014;\007\331(\230%C6\253\220n\266\333i\341\253\245\271\272\204\315\272\204\227\353\022\326\346\361\315\272\204\236&\017P\276\025$\364\367\016\035\333\254\304\206\277\312\333G4d\263\n\031\3166\320S\014t\263\032-27\034\365\351q\277\030\264(\274\362\320\240Q\202\321~\025P\217K\205Z\007*\277\272:\324\335\233\326\261l\322!\345\327\347e\320\206U\177\244FU\371\241\222\316\375XU\373\014\212/1\255%i;\335SQ~B\221E\326\341\203\343B\321\302\324\242\323~\034\217\230\265\224\237c\201ILs\026\331\321}Uv\034\317\224t\354O?\360'\017\002.D);\222\242)\003\016n\t}\275\342\031t/v\031>\326A*\027\246\004\032\002\210\027\357\224\244\341\360\320\315\\\010\243\374\255\222V\350:\336\010[\021*S0\002\266\320C_\222\332a\014\r\230\223GJ\3234\316\361l\247\026\267l\255\314\344au\025\227\007\030\025\250\342h\255E\344;\255WE\342\301\353';-T\360\014&\321-\300\2323\345\365\340\207ne\362\352o\020\351o\034\376`\233~\242\307\206\371G\253\207\312;Z\035:5Z\315g\352\370\200t\200j\257\336Am\306\203\350\210\367K\033G\227\037\330\235u\007\217o\361\216\213\000\230\326\017\001\244\365\030\237\207B(a\342\345o\333\354g?\300\244\307\215\325\211\215p\373\217>\2349@\356#\022`)\355;\375\306\336'\220P\371\336 m\216K\270\365,\225\016O,\220\305\274t\261#\243\356G\264\013*\227\037\201# =Y\256\342P\251\342\2519\005\224/\230+\220|\332M\234}\366}jG~\252_\250X\317`\021\220\234ax\322U\014\253`\032\253\232\202t\212\304\2708O\240\256\021\326V\361\232;\030~\235\224=E\010\013#9\306\010\254\234\274k@\272\336\31637A\001A\340\020\371\345\200E\246\211\001\302\240\036AN3\014\300j4\021\3266\r\336\\t\000~\302\3136!^s\037r\001\356@\365<\240\027\220 \026>\361\025\304~\366Pa:9\227\375\022\362\221p\223\023\024\362\374\3567\177\211W4\207\345\211Y\213\372\233\301$\3606\201N\242\252_<f)\037Q\320\200zg\260@\225\\\314\352\0146\231\303\215Xyk \325?\014\200\326d\032\274\271\350\000\374\204\227mB\255\177\270P=\017&z\226\216z\314y\234w*\333\336n/R""\335)\277\021J\360+\230\024\007\n\204\317\024\323S\362\364\256\251\211\345g^l`\311\025\017\033\346\311\337f\313\020 \354Z\272!\340\031\004\344&\373\325\300J\r\326_\216\254\243\025V\320#\372\342.\275'^\\\354\313\367\355\025lD\212\270\t\034\227\t](\030\234\340t\177]Z\255\207\326N\342\035 'H\355\0319\343$-\257^\201\306\233D}\326\010\223\210-\307&\021\036\214b\177i\262S\301\202\302\342\247\335?\202\340.\335y\345\277(\020\2729f\320\323^G\200\010W\307e\210]{\201X\036\355&\203\204\331\340'=\3511\024\302\350\246HFp\024\260\277<o\221m\226\246\360\267<\352M\372\360\037!\361\366\030\375\305uMAA\216\322'D#\326\305\025\225\202L\026)\023\224\230\354/{\227\201\205DN\244\036A\340p\203\000\370+\220\362)\207I\237 \360\027\213\350\252\230\014\025<\310\250\213R\3068<\026Nee\210x\215\367\007|[\213\005\261\263c`\017}u\360\224i\037\377\224\243\t{\\\003\346\004+\312\311\230My\0223\225`\022\313\343J\034{\204{*\354\267\243~i\345>\331\203\377\206\245j\363=\250\271\275Q6\204n\266\307\332\027\377\022j\237Zr_x\202\304`6\316\271\267:Fr\300s=X\304\2528\340m\177\260\242\222\320\223\001\223\203\316\010#\342\363\017\324\301\340\311\001\275h2I\230\213\230I\222\346P\351\224}\342\370\310#\260\270\2761\371L\334\227.\3640]\222&\332\333t\203\210\377\002\331m\334\362\235\300@d\177\330\233\323\"@\311\365\324\006\242\3008\336\200\231\210\363\305D4\024\007:U\255\016\371\241\231\311\220\031N\304\257F`\032T&CVK\351\356\n\3260\024\224R\\n\027S\252\224\371\353\232\244\372\216\014\365Y\007D\t2\362g4\311r\"\313\204\247D\310\0054qX%F\003\336h\"J\355\225\343\322E/:o\201\370\022\257\177PL.\013&\271\241\266\252(w06\311\265'1\332|\314\347l\323\225~8D\3371\344\240u\253\006\320\033\213\252\305\234\233\332t\210\364\3329\311Eo\313a*\327H\370\017\313\225W\177.N\037r\234:\001F\022S\003\260X&2\341\177(6\222\0252\222>c0\210\253\264I\301\236\202\232\024ng)\254\343\2276\200S\221d,p\034\301\037\016\034\3658\313\005\333\334\200\037\372\344\002\224[\356\314jR\322\033S\2232>\222\240\014\376\301\350K\321K\320d\014\212\000\311+\021\242<""\017\231\315\204~8\244\237\363\371\037\203lE\227\365\270\352\312@\302\203\315\3440C?\237\321\350F<\200>G\251\357\342\003G}!\346\245\270\357\213Y\017\003d\203\021\370.~5\364Gh\320>-w\351\222\031\033\243\034\322\355\363ss\350\373\004t\001\354\232\254Y\245+P}\3260\347\213>^H\023\223\005\376\362I\002\246\203uV&\316\020}e\323S\323\004\205\330\221i6\263\251x\273\337\327]\334\364C7\244-\004E\273\335~\002\372\030\377A\225\201\033\250h\337{\242\301QYZ\317\312d/Q\007\0135t\231\r\223\236\364\214\032D\264\304t\256e\335Za\357\226i\000z\240\207V\214xfFC\371\257\224k\004t\256\007\265b\005d\212\216\301\257ffp\020\235\241t\325\204\342\261\273\207M\021\240\350\344\360-\013\023v\013\321C\370A6\272}g\034\217\271\232c}'\365m\024\2416L5\264\215\331hnX\t\254\307\203\230U\202\334\267*\242\245\375A+\033d#\252R\003\316\\w\231u\000P\361}\342p\350\262\371iK\303\361\200\301\327p\276,\nd\026:\362\300C\321\0011\224D\003\232\346\370\030\361\221q\357*\032\n\265\216\256N\033x\347\330\245\360\274\241\252\210f\274\3267\233\320j\305\352\227\3644:\375\3752\023\314n\226*\220\376V\227\016\025\256\3174X\370\305+\215(\360\302\224FQ\361\336\212M\345}\211$L$\2341Z\024\306\243\022\016N\177\010\302B\332\016\310-\264\355\026:\214\366&\267|\377ZX\333\315\253\205\016|\252\346\355\320\305x\232\324\347\213O\241\245\313\036\003\244\374\352\230`\341]GA\035'\0316\312\330Y\320\220\272j\252\203AC\325\242\374\232\261\202\230\3271M\270\347\342^\200\300A\255\206\020\342\272\214\0014O\264\033(\373\210\263\215t\331\346\3478m\230y\236\320\300\312\203\2026\324,\320?!\271\273\214\032Nl.*\220\271\005h\303\345\216\235\206\260\215I\001\024m8\330\310j\253\263F\355\332\206\035\244\262\020k(\237\035S\241]k\246\203S\246F\007%\354~\na\231\311|\010\315\312Eh\276h\023*\023\266^?\031^\306\177\256U\206C\035k\013\203\223\331\247\317\004:?\021\252\206\017,\232q\355\322\2473l[\243d\300\266\316u\277^\220M\326\203?9n\220\243\341@\030\025\310\210@\306-\372K\255IanX\343\350\242d\332,\374\322$\004\001\030l7`\322\200\320FV\340\337\022\311\320\000""\321W\247\360\230\016\315\243C\212\nsDlh\0371\3279\244y\202\033'\204i\"\246cQ,\003\266\252S\346\210\030=z\010\257\036\250\204\217\330\343\037\370\211\314F\301\376`M!4\026o\203\304\312\021r,^\205a\001\366\207%\226&\r2f\320_\302\2401C3iP\220\266\231)\314\262c!\236\000s>\002ufo\257\277\207^\216\366p*\301\023`\370\214\343\236\354\216{\311\010\252\026m\274,Dg\036\230\364dz$7\233\354\245{\254\326\350/\203@c\356\t\245\215\005\366Fq\314\214*\354\017~\nZU\240\225\230q\245\253\3762\211\211\335GD\324\362\207[K\367\271\347m~\372\200w\r\352\230]\264\332R\267\355\356\263}\322\3259\362\211!V>\373\371X\251#L/2T+\003\355Od\3520\200\332\350%\334k\343\"\305:\343\335\002\326\235\361\020\000B!`\001\036\357\322\337A\234\356\227\007\024\206f\331g\226\360Bn\t\356\323\233\000\232\205\351\200\214KhZ\"\203\2222+\261\231\375\200\216]\362\037\244\242\020\310\375\003\366\217\365eeiR\241\202\202dx:\210\217\016\320qH\006\223|\271\211\303\366\000\357\3022\207W\264V\222\025s\300/\311\266e\210\035/E\253L;7\311\370\342\357\300\343l\323\240\023H\003\230\364\223>\326Q\322?bF1\350\023\361Q\002\375.Iang\313q\014\201\022\277\031\357\365p\245CF3\327\\\006\240\222\375\211\367q\204\366Y\020\025\362n\036\365\321p\236p\367\226\262\374\244\340\336\322\223\202}\334J>^\310\242\021\244,\2720`\221\2534\2060\355\027@\337\030\026\302\034'~\221ue\214\263\315r\267\311\022G\014\362p9\242\300\355x\002\377\201\220\305a\213\206\272\201\362\361\362\316 \032\356\366\243w\007\021\037\244\030\320\306\350\300\347/l\200\204\364d2\356\231\310\336F\235q\300\322\341\037\326\323`\336\340S\207\307\036hZ\002=S\0143\r\322\0240 \361\314\366=\354\021\311\200\322\265\244P\247\006E9\030\013w\250\330\271\327\242\3426B\272]\246\365\301\337\317P\336\334\216\345\262*-eT\035\372U\240\254\030\312\t\013\024\233at\004\377\315\247I\221\301\2620\307\270yFzC\234\221\036ZocK^\001\201\017w`\034\202Z\315\267\240e r\3041\\y\220{s:H\205\233.\272\251\241/kas\367\315\201\003\200\253\017z\221\022D\214\352\020\025n.\222\313m\035\342d\001 \326\252:\304\316\264""\251ezyq~P\352Q\025v\276\304\204\017\245\367P\220\204C\307\225\250\001q\032\215\275\036\336N\371\031fl\255.3q2\023\232a\242F\3434\366\030n\244\036Z\207\233\2148\364\274x\270\013\223\016\013\200V=d\335ia\\\260\362(\306.\033\213\016\256\226\016\205\302\026\022=tn{\014\231\325\027\363/\243\036\014j,*IY\227\333\312\336\217\343\034b\314\234\003\277N\257K\322\316\020DI\311\026\267\254\003\2028\036\r\023\242QVw\n)\325s\2502ZH\242\202\242\246Q\036b\240X\016\226\231V\300sC\000\225B&94\333\003\273Y\177<\300\337\\\010O\010\217\262.s&\030\343\367\024C]\2262+V{qh4!\373D\264\307v\273\374/\337\014H\245\243\362\0024\202\022\377\t\000\233y\372j\227\000Ci\325\203\365\251<\312\336\312@\373*@uS\347\223x\004\177I6@\200[\3760\250/&\254(J|\000\261\027\266\360\227)_\030\222\213c\214p\257o\020b\325\311\002\206T\005\0003\335\303\357\315\034\377j7\2611\n\223%\376tw'\304-\375\342\316\307\302\230[\273\235}\020\t\000\274\014\247a\207\217\331\356g\360\037v_\332;\241\277\370\201\031\323.h'%\313\325N\212\261\217\242\357\242d\207\370&B\037mN\030\304q\230\t#N\236\263>\226k\017\322\347\306\272.\027@\271\017\243\355\300\260\276b\354\301\030;0\334Fo\356\272\220Y#g\\\346\352\271\335\\*U\271\264\231\344|\337\001>\232m\317\344\324r\306\376\014\333\231\321\266g\362u\263K\350q\332\220A\210\334\235\311\231\004\3127\006QJ\347\220\305\306\216\276\245\3037p\330\246\0025\257\330\311\301_\001\201\246\312\331\034\r*M\0163\036~._\343\263\205\032\254\024\331+\257\033\200cuQ\370\250\230\254\324\366\204(H\177YED\004-\017\360\0379\037\313i\003=\027\033\344\271\276S\236\253\255\361\034;h\321^\344\277\375\\\251\320\030d\202\026\203j\377<\307m\362\274W\036\345\270)\221\363]\211\034Vxy\034sW\265\271\\\257\345|\301\206\265\235\333\376\361\326hb\316\331\332*\247\205TN\313\243|/\315\231B\236K\305='\245\033:\007\224}\300\252\032\025p\376xhN*x\2564q\036d5D}\007u\357\234+\3379\251\3309\323bs:%\316~\332$\337Y8'\355e\221\355\265\344\244\010\346\330/\250\227c\210\361\201\201v\377(\007\335+\347\372W\316\2470!\271M\001\236\2438\314i""\000\313\r>\030\270\2711bs}\310\346\346\240\322GP.z\243\353\376U\201\262\202\004\t\250MCb_9\200\325\316T[\373\213\372\356b\267\0131\350l1\013p>\344vb\316\365\327\334v\006\233W{~\345\342\0377.\363\002\332\207\355\026\346\264Y\230\253\275\302\234\266\ns\271S\310\2676\363\362\210/<s\271\003\230;\033\200\271\332\377\313\331V_>\201\\r\3550Jn\234\036\311\325\211\217\3349\331\221\323A\213\234\035\253\310\345A\212\3348R\221\323\321\205\\\333\373\317\305N\177nm\336c\034:2\355\241\347\332N8\206\225\236/b\020\320\267\274ss\217;\267\367\270sm\347\031\302b\240\363\335\337\234m\324\346\2232\203V\235\034u\371\232\375\3168\032\320\\?\022\206/a\236\352:\206*\t\210\2170\270/\325B\0366o:\202n\025\341\262\221\007@\034\214\230\247\326\021)^\262\363\342\376\247\005\243\345\222\005d\332\036|\014J[\370\021\316]/\211\300\234\0104E@\3327\025\237\204\020\235Yv\352\221|\270\224B\364\027\333w\224\335]e+\265\221a\375(6W\026\330vz\001\335\027\344y\301\365\347\"\036\354\031\373\353\005\264\020\263\355q\225\nBb\323XY\374\272\036\353\237\265\003_\310\253\027(\265dL\014\347\302\376T\354r\251\003\325\001fk\025\346J\013\243x\276\224}\"\000\271\264d'\000P\211\330c\241b\250\211\233\371A\262\237\222:\315\344N\301\346\256\"v7\303\013\353\0365\t\341\3020\226c\014\023\301/\357\377\243\036\2679B\010\326\226\370\267D2\374\217\t\023\222%\364\267\335\247_\276\332Nb\245\376\313\327w\273x\374\240P\242\247 \301\241\276c2\334\205u\203<H[\222h*{=\332:\353v\321z\204\177\271\250*\271\345Yd\300\343L\317P\300\003\350R\240\366\305\264\202\306>\205Kv\271=\311|:e\271d\027\t\240\201\371\317\032(~0\204\021U\342\242f\235\251\337\000\213\006\354O\013\257zC\373\262\010]\\\300\030\314/\373x1\226u\002v\t\025\277]\034\277\200_h\3531\271)\346\222T\001\304\341@nO\202\352C\363>\312\2771{\233\214d\375\030\275\213\211\263\033\343q\322?<\214\006\314NDg7\200w\026(\244\364v\204\267\222\335\346\311\r\024\321\026\004\345\262\005\002\031mBl\253\217\211\365\330WL\002\354Vw\311\234wW\332\367\356J\373\336\335\273\321\2109\rf\323\314]\364\241""\327\211{c\234\031\325r\206\201\357\336i\341\tU\364\337\326\233\260\2751\006\001\315\372\356\235\273#\324\025FG\335\243#\034PG\305\347\023v\312fR|\376\371\347I\336\350\3010l\260\353\373\215\337\276\252m\200\277v\346\214\026k\274J2\275\354\262\333}\335k\342Hj\367\355\336\204\313-ck\277\361\333\013\r\3773U\027\032c~[\260\001\255m\306^;m\231\342&\n,\343XOj\374\366\364\374\273y]h\324H\275\264\262J)\337\277\261\371\332_\261\354\272\tX\345\327&\375\353~\321\267\324Gjq\342\353\325\342F\nv\263\277\0367\337*/\376\301\353V\300\267\3308!\371Q\371\325L\236Ab\326\275]\216tqw\241\201\362\270\361[\375\0336>\352\256\336\\_a\177.4p\327\2571\343\270\223\237\203\212\"L\251\367<\n\024\352\217j\037\036\255l\034O\262g\222\326\236\374\374^bN\222\013]\020i8\347\363P\361U\225\214\023\032\346+~\237{\376\212\212t\252\272E\2041.\323\n)\353\311&\021\277\262\233\250\203!\337RI\317\251D6\n\234\346\372Kej\212\214g/\342/R95\n\231\371]\332yS[R\213!\252\223H\036f\244\235\331\373+\323\236\276T\377IY2\315z\245\242\226\033;\211^\247\030O6\314\370\324\365\013^\211\253\255\326\300jo\226Rce\354{\242\261:E\275\274AG\016\342f\366-/\335\354\222\217`\t\303\216dg\354\274\212\267I\250\255.\324\352j\376\014\353\322\276v\246\016\225\267\317\250\251\332<\324\375Z\375\034U3\324J\342\325\031\374\235\3228\263\334\365\315a\366\221f}\302\253\221c\005\211\2643\004\313\265\016J\327,Z\317743\033tt\\\212\213\007\231\302\025)U\235\374\264e\343\361\254\347]\262\207\312\1778\332P\347dg\253\352QuFZ\315\262N\236'rf\351\240\202i\373\370t\205\254\257\312\312;r|\303N\313\244\272\010\255\000v\026p\366\210\236\235\230\263{\342\202g\217\001\265\203Y1\316N_\010v\366\347[\204\204\327k\360\352\314\314'\251\237\007{\366\263\233\317#O\303E\364s\312Pnd\237:?Se|\246\344'NLK\347g[<\370K0\"\366\335\016\334\243\251\367\251J|\317 \256?s\373\223UV>U\227!\363N U<\251=\215a*\351\304$\337\242\364\254\\N1\216O\312\006\225\365|s\253'\302\237%\357\347\334\026\236\n\177\346\t\340\333\340\341d\363\303s\340\340d\022\3779\024x\322\t\3419\024\351>P\366m""\027W\177zz>\345\325\236\275N[\034M0\337N\256\317a\332\242\002\252\261\2657\r\354W\356O\231\220\355c\316\252\263\277\016S\265:\211!\343\335]\302S)\365\316l\353\3519r\266\224]\241f\341'\350\tZ7\255\221\271\354\210\306-\322\331\365w\242\311\346\371\346V\263\205O0\025=\317\274N\316\335\t\265\243\252)\356\031\222\236\234og\266{\246\304'/\377\344S_\305Tv\372\224\247b\\Mj\247NX\263\334\023.:N\266\3423\327h\365\250\236\303\224\350\314\307\325\204u\226\237Uy\\h\230\233\271\365\362\253\236\tjO\016'\312~\346\234RoQw\342\325\336\314\362t\377{'\253\300p\312\372\371\324\353\314\306\216w-\242\231\034\330\3335\2422\245.\341K!\037M\355jG\007<\244$BU\246\362\031{\263\277\316H\351\232\243e>3R\352\303\270\202T\033\331\206\027\222\360\341\014\235\007\366q\306\350\223\271\311\0137\025\007,$\261q\373&\230`\026'\246\344\372kq\342\303e\373m~%U\326\230&\017f\347\355I_W\336YigS\027\302G6u\363\031D\372\314\341\317\300\333\375\344\033\237r#p\006\2159\317\n\037\037F;;nAN\230\251|\370\265b\330\030\311\305w\3739P\327\017g\326\272\314\265\ng\226#\234\231(\tT\2314h\212\323iL\345\215?\020\344\036\341\361\345b\275\345$%\251\265#Y\261\303if1c\2731T^\255\231\302\227\370\271\0341\232\335\316V\311\036\222\360\2319\353D_\275\355B?\0375O\006V\221\316\312\332{lA\235@\250iB\320_Q8E\242\260!\344\257\303I\270C+~\236\355\024\203\231\217<\376Q\263\221kj\300\316\342\340\344\331w\353T\303s\331\350\220\225\347x3\232Y>\256\301\227\323\312\025\224\231\300~cBM\021'\252\241\212\023\007\212\360\224\337\345OF7}g|au\322\340Z\326j\365`kV5g\365\232K\261\310W\020U$\365W\334\376\363R3HE\203\327\035\032\346k\004\326$\243\237\265\252\022\036f&\036\n\313\317}\215b\014\002\315a\277\027o\277\204T\301\253\305\211\207B_R\352Z\2269\"O4\357V\255oMj\265\030\252t\335\250\257\232\252\\A\276\026\312]xvt\352\310%\t\021\260;D\001\235\314\320H\225\217=y\344;\244\364)\275:\224\241\345,\2566a\220\314\226^N\216{\370L\241\2654\257Z\247\013\031`+ \374<m\215\251{G\334M\253Km^`s\276@\234\344\r/\373\265\263\276\276\363\217>Z])\340\256b}:\231\237""\232\273\212\r.\362y*\237\270S\250\212\204Z\257\342\005\302\272\252\372\333\315\305;\313\336\333\265g\221W\n\003\032\361\016\354\257\325+\370)\177\274[*\224\006S\336\031(ev\252\225S\340\020\262\367xw}%S&\237}\357\350\2653\201\244\241\345\256i\211\361\372U\r-wg\315\002\311\211\326j\3120cJ\333 Y@9\321\010j\255/\2538\361t\370\020\271w;d!*{\0077\363F\370\"U\205\352\251\345\307\226\256\356K\331\316\245&\017s\2653\261\327\311ur\263_\345\266\030:e\352\031+\366\312f\375\255\347\022\317\t\323;\006\207\320\r\221\231\354ib\370\2673\252\323\260\003\0273l\311\366N\251&\021\230\332^\357\276E\033\335\262\314\272p\361\034\212ZY\035\327\025\367+\2538\366\377R\014}\273\245\300dts\\\346\343\222\257\024\376\002\345\355$\3758;aq\265\r\273\325\323\210\307\252[\216\226\244\037\327\340\256\315\t\367\220g\221\327\025\2502q\034\217NZ\236\235\244n\231\312O\243W\312\324I(\224\256\347\231\2666\373\366\013\357\365\205\224\261\326\025\365U\271~\236\221\270zA[\265H>i\006\372*\274V\332J\263\205o\026\t\355a\331\264rdZOx\204\256\321\270\243\3769\344X'\333$\365\244ee\325\264\340\352\357-\314(\313+S*\004\237Td\317\370\340'\337@Y\220o\250\005F\201\221\261\271\223])\241\215t\365\266\261\215$Ak\203G4\207\362Qzp\255m\236@\272 \3633S\353s\221\371d\200s\252\264z\267\314\223\267y\211\370\004\364\301\231\323\245\255\245\362\327.\371\344\013\010+\263\031e9\375\246~\316'\243\2552\005J\342\0326|c\315\376\274\334\003<\237LkT\210S\335\317\264\241\255\3479\243\330\200\0247\320\025\243\302\262\373\324-\260\256\245\251^\242Z\345~\253N\035\276\235BN\364]a\361x\002\241\250\2623\252\367\264)N\364\0015\372\363\363v7\361\334\362\255\365\241\247=\325y\342\364\263\2711\367\373\350q\342*=B\321[Q>1\315\276\021c.\024\334\371\254&\307\225g\345\352\247\363\355\352\004\310\2537Qf\267\211|^(\244-\324\312\321\237\364\004w\3451[\332\2219s\246\322\344\365\252\241\334_\260\316\3469\217\377\275v\3065\220\275\352\0379\006\251\266\374u\206aU\262\254\010g\317\237Sc\337\214\257\271\030\000\250\027X]\234\361\351\256@\262\306,\214\302c\030U""\235p\255\206\236\034\361U\233\305\244\350\221\343-\023\2771\312\320\027k\020/\322\267\252\022\267j\244\374 )\017\330&\242?\213\315\030\026\242\251\347\003\004\301\006z]M\313\212O\234\3571Kp\005\005\177o\\Q\320\342\0147ZZm\346\347\366L\340U\273\020|a\302=\271\236\221\263&\346\206\036\236\215\326\352\214w\235\006c\324\"c\323P\314\334\3123\324Z\204\372\223\"\245\370\345E\005Y\036\305\261\206'\201\205\361\255\314\0067\027\003\210 \204\355\010\0319\370ru\210\203\017Y\006\260g\254\215\243\2258e\0171\341\240>#\267j\351\315y;\216\2172q\227;g\370\312\024\226\377\251v2\333NauED,\222_r\005`\276\330TT=\026\246\345F\017?\331q3\367\025h\235\264U\036i\274\313N\247\266j\313\2433\346\336mydp\244\301\035N4\034\275u/*\321A\023\177\214U\007\307\336\261\367b S>.\332C\\h\233V\003\376E\214W\017\306L\"oU1\034]\375rp\205\352F\214\251\n\274U\256\231\275\337\225\t\265C\367\2609\223\346\214\3177\t6.\335\320\361\242\203i\364\016\301/\377\353\r,\201Z?\302\323M\235Xk\024\223H\\L\363\223\230/nv\304\265\"+\037\247j\325m\274\332I4>|\t*P\342\212Z\000\255\356\220\005\010H\372T\023\024q\250\010\004\343\030\244gNLx\307\003\017\2248\267x\306\343dB\301\350\345K\025\337f\316\216\3154\300\206\247\177\250q'\371Z\006\235\245\235\262\327.\024b\276\317\272\212\001X\032\346\345\304\205\232\235\313\305\211\26640fW2\023Ut\240\031\204\336\242D\2170\200\252\037\030`\375~\240\215\340\215d\203yg\260\3018\201V\344\242\2670\037\263&\265b\020\232L*\365>|\307\213\267\232e\305\035\320z\333\004\320\2252\243Z^\360\\\365W\001\202Hz\027\300\367m\370\274\213Z'\235\t\274\375\013Y\261\260S\000\236V\"\367\376~<\232\215\364\361\021\356x+>apBA\027\352\255+'!\016\010\035\017X\364\373\2250\312\223\312\350wa\244'\245>vV\274h\336\367+\221\376\214\371 [\251B\206\305\361\026z\243\267\305\336\n\1779R\207k\343\266\036\223\3720\266$\250=\337;3\263xRzc\224\350\003\007\207\">\024e@\254\001\002\020\371\234\206!`\374\303m\023T\247\3038\204c\253\027u\030UG\341\340\361a\254Y\004\226\"\333\351H\276\343\250)\212\366\272\262\303\226)j^\002\265Z\210""\036M\253&\250\334\t:\243\355\222\000\234:\241\016\\\022O\254\362'\264\304\362G\243\244\240.*a\301N:\263\236\323*L\243\250\372\343\363E6\034\367\202t\330v*']\274_\2668\036\346[\231\246\245*\240\312\r\357\2411o\373\245\214\253\232\023g\344$j\323\207\220\212\376\"=\325\301-\344&N\007B\330OM\010\013\202a\255\353r\010i\334X3\035\363\351\017\235H\357\341\034\344\314]\034\336\t\300\267F\311p+\263)\331Y\3413\356\346\242\\\364\232\353\334j\213\206\207\226\226\277\036\004\n\003\017\230\257\377\265\205\243\276\224\262\221:\300\324\332m\214x~SC\352uJ\020\265\206\344\017\031YK7\202:\025/^=\362\202=K<B\230\013\270\031Ohk4Ki\237\023h\300\005\350\316)\007oejF&m\226\235\242\037\3635\030\277\243\004z\242\336\365\205\335\305\321\t\334\3745p\273 \230\260u\311O\346\244\350\265\315\251\213\244g\325\217\247m\224\024\224q\273m\201\317\210=Q\257\226\227\324\334\306\351\016}\331\351\"(\201q\250BO\340\"\224\304\326z\241\376 8\223\370g|\317\204kR$t\205\300\0244\332\003}\032\242S\201`gVm\031\241F\270\314\331\2622\233\231\370\220\364\370\347\322Q\357\000\367z\234#\374\312\242\2624\300\267\220\372[\211\260\3271\363\033\024\251[\335\314n c\312\336\304_\234\326\222\371\337\242f\304;\213\033\363\333f\226\362C\027&\206\235\3205\2758)\314!\254\314\215t~\336\203\351\350\357\rM\330^\230F\320\212Rj\000<\271E]\356 \313\212X+\372f\2577\316\243\2647Y\213\216\346{\370\366\263\371<\256|\252\351d\324\2468\244\362\026\351\301x\344\305\355\026\\\r\303i\202F\231QA\254\226\001\304~\235\212\023\263)\033\212\353Y\231\354%\264g\240\321\250\311\270\212\312#.\305t\003s\214|\216\324R\220\2066J\366f\357\024\356\23447\323T\241\311\314`\325`;M\274\235\311\030\217(\322\2048\224\024\352\371`\366\320\357\032\177L\327l\352\371\303(\031`\261\342ud\355e\2573\316\221o%\016\205u\333=w}\306=\352\034\246\023h\373\310\264?\023/\025J3\332\313\221\006bA/\353D\016H+-N\\\372\3004\333~ieUt>v\246\330@\326\303\3219*\003\311z\271\300\033'i\303d\372\001X\321*\035\257\016H\347\237\370\231F\243\001\215\210m\312\247\343\237\016@#\343[\rg\224s""\"+\242hy\351\236\212\215Kc\236\324\217@\n\002c^\254M \316Az\211\264\263\216foP2\314^\246\030\373\0234\234P\321\241\003\205-\355\265G\217(\367\222\254\254\312R\t\200\331\231\232\207\313\025\352\2612\200\tdJ%\360\304\312\013\226\261El\256\275\002Z\267\326'\371\366Hh\311\266m\276\326\346\256,\364~\026\324\334u\"\2257=$g\001\327\350q\3673\372\351\017\267\033Q_d\373\256\202\022w,\243Q\177>\355\213\307\225-y\205l\0071<\265\215`\305hA\331\002\024\305e\025\363\234a\245Pq\326e\254L\364O\344}\200\213&g\314b\001\366\376\232\204\231\237&G\376V\346[\351\261mA}C\216\272\353\272\376\254\264^\301lHkA[\\X\302\302\022\025|#\320\307\276\0065\0228-\255\025\336\\4\"f\365n\352\303@\224a\356rZ\214\351;\243\022\3056\340\344\243\270\032\211\325'p(8\2131\016\264Ug\016\366\351\274\250\000\260\243\024v\337\324\326\033\270E\207.\340\354\227\217\r\325H4\023\327/\2545%\252\tQA\247\006H2\307\361\355y\0336\312\366\222A<bO8Z\220,\327\2262\372,;\214n\363\227\274\330A\t\025W\247!4XV\374\317\331\247\227\346\276\331|\341\314w\337\230^\\z|\353\351\013\357=y}\372A\177\332\037MG\223o\316\234\371\374\354\3429\370Y<\267t\356\351\337\234\177\372\342O\247?\275\374pnz\345\303\351\207\273\323\335\341t\230>}\341{\377S~\365\316\275;O_\374\373\351\337\277|\377\245\373\277yp\366\351\013\337\237~\377_\216o\035\357\335\237\2072\336\270\364\315\316\2713\337\375\341\364\007\215\373g\357\277\364\364\205\177>^\271\177\375\301\316\303\271\247/\\|\320\177\370\262\310\373\302\203\371\007\177z\364\263\307/\311\014\"d\361c`\341\217g7\220\223\215s\177\372\016\374\374\351;\237|\347\233-\310\363\305\377\271\373U\357\336KO_\374\321=\310\345\307\367\346\356\265\247\377r\351\341Y\004\374\333\275[\367\242\257y`p\377\345\373P\334\337M\377\356\225\373\237?\204\002\2767\375\336\317\217!\341\017\277J\356\3359\006\226\177|\357\352\361\277\334\357=\370\005\262\345`\035\300\367\277Z\276\367\233\343\357\034_\277\017\325\366\203\257nM\177\210\037\377\332\203+\017\276x\364\362\323\027\256N\257\256>\231\177\002\270\177=>\270\377\331\364R\3531d""\373\253\373/c\205\035~\265\371\325\321\275\342\370\345\343k\367\257>\370\347\207\267\220x\341Iozks\272\271=\335\336\231\356\374\327\364\277>\235~\2727\335;\230\036\334\236\336\036L\007\303gI\371\346\303[\230\274\370\352\345\257\336=\376\321\361\334\323\027\177>\375\371\325\207{\217\346\037u\036\237}\374\313\351\306\255\247/\376\355W\377q\374o\307\267\236~\377G\367~w|k\372\257\357=\371\325\223\326\223;\323\215\316\264\2635\335\352M{\3614N\246\t\344\232N\323l\232\345O_\374\376W+\367\336<>{\374\343\343yH\371#\250#\340\355\335\007/=xe:\267\360\370\302\223\350\311x\272\325\235v?}\3727\337\377j\376\253\377:\276|\034=}\361\027\323_\374\356\301;\017\357<\372\316#\250\025hvV\301?\2757:\376\331\375\037\337\237\277\337}\270\374\350\302\343h\272\362\311\364\023H\014}\r\n\207O\332\237\356\037N\017\217\246G\377\017:\301\177\237\235\307.1\177N\366Q\370Y:\267|\316\314l\372\353\267\036\036>\372\323\223\227\246\357A\275@V\360\021\220\025|\307g\323\317\276\234~IY\361\304+\370\263r\356=\374y\357\334\373\370\363\376\271U\331\371\177\377h\356\321\332\223\237N7\240\252?\232~\004\371\345@q\347\354\002\022.\210\324<\331\237\360\347O\347z\370\323;\327?\2477@\363x\353\376/\037~\357\341\035\254\301\371\257n\031\035\376w\027\276\271t\346\273?\271\007\320\337A\177\272#J\277\370 zp\007\022\035=\272Sc\330a\036/\376\317\027\330\373\237\276\370\223{\021\r\217\265\351\313oa\251?\271\327\303\246\372\232\007\336\200\026\203\256\371\343\351\217/>\370\354\021\344\004#U\024\373\333\007/?x\367\321K\217^\256Y\350\017\246\337\377\345\361\035H\377\302?\035\277u\377\267\017\226`\270iY\315\351\337JL\226_]\376\nz\305\337}u\207\230\\\236\376\342\365\007\267\020P\334{\371\336\334\327<\360\016\345\n\251\377\375\376{\017\242\257\031;\247I)\330\001A\361\360\247\217\316\272\014\035~\325\271\0072\344%\220,,\333\033\323\177n\202\230\002\300\217\357\315\337\273\3655\017t\241\253B#\375p\372\303\327Hl\374\362\370\213\007R\232A=?\372\233\351<\365\223\250v\2139\002\r\306\225%\315\246?\341\025\t\342\354\215\007\237?\222\365;""\367\360%`S\357K\377\372\313@\2565\305\344\225\207\363\017?y\374\253\307+O\256\203t\021\345@\035?H\240\0339\025w\312b\264l\243Z\231\276\001\243\302\316\3646\324\351\313,\323\337\334\377\354\241\336\207\357\375\367\375\010\313y\370r\355V\370\034\033\370\351\213\377\010\203\207\225\271\nyA\254\003\242\356\245\257)0\3759\316W\320\376?\232\376h\356\341/P\222\375z\372k\224\264\374s\256=:;}\233$2J\233o\271\354\177\277\177\023\272\240\352{\323k \263\3774\375\023\310\314\203\231E\037\317A_\231k~s\343\354\231\357\376\343\275\345\343\213\017\276\363\340:\2333\314y\357k6\0079\203\003$\22338\376Hs=\014\216_\337\377\030\232\353\205\337\334\3170\307\253\017#!\t\377\343\370W\307\363l6@\021}\353Q\357\361K\323\005\230\310:0\027M\377\366\237\330\\\021\230\214@G\001!\016\022\034\3467\234\211\246\371\235\257\277\377\367\367\276wo\014\023Q\207\025\375\367(\205\2767}\2455mA\202h\032\201\354\207\312@\322\351\235\021\315G\335\343\326\361\035\342`\372\326\215'?`3(\214\330\217\3559\344\315\207;\217\336y|gz\203\246W\230\216\200\003\254\332\351\001LG\237\203\210\377BLG-\374i\301<\004?\313bN\270qN\353\344\323\213\357=\371-\233\026!\371d:\371\\\257\220\205\343\376\364W\315\207\257\300\250\026s\303\354~s\356\314\334-,\350\326\271\315s\337,\377_#~k\215\370\302\357\037\375\376\361p\332\201\266\003\326\221\rMy\235\276\336~\362\213i\007r\207L\217 \311\344\254\324$\236\255\211\357\317=\230\003\305\373\2059\230\257\376\366\361[\323\367H\211\341\225\006\035\340\372\231\357\376\3631\037\376\367\276\000\361z\355\301\334\203\033\017\347\353\350\347\240o|yVKO\212\370\207\017o=<x\264\367\270\375\344\326\223>6g\215nx\341\314\371\277e\031\374\316\232\346?='0\256\n\320<\363\335K\3237V\036\323t\022R\035`\032\231\316A\273B\273\241V[\207\033\310\370\247\367\344d\017S\006L\367?{\364R\315\244\036\265\344\370e[\263\230\376\3705\322\234 5\327\234~\242\212d\323\361\303k(\235k\0269\376\252\365\025\022\301\330dE\256L\377\t2A\300w 6\3775\017\334\274?w\037\232\366\007\323\037\274\372\340\274\271~\272e\327\355i3E)\361l\354""\274\rJ\343\253\217M}\344\367\357\020O\247\325\260\346\036\376\003\312\237\327\247\257/>\23674\255\307?\233\266aE\n\353\203\273\265\253\373\364z\336\035\275[\375M]\355\230\025z\204\035\347\351\213P\036\025\372\336\364_Y\245\376\370\336\345{\321\275;_\363\300\227T\251\220\027U*,$#]\217\376\375\303\350a\235u\300\323\327/\006\313e\037k\225\373g\372X\310\216}\354\327\260v\374\360\321'O^\233v>\236~\014\36226z\333\203\375\207\177||v\006\033\323\177\277\212\314\212\n\230`\247y\372\342?\200\222\303\030y\037\245\367?\334k\261\271\211\002\323\237qU\366\245\351KW\037~\366X.F\376\0003\314\301c]\233F\001\372!\237\250\240?\376\355\361U(\376\267\270\244\264\307A\255r\331\"\213\225{\371\341\365GR\227\273J\265\255\365\344_\375\3337\357\236\371n\223\331\022 \353\357!/\377x\357\303\343[z#\275\363\360\313\307\365G\377\351\024?\030\013\363\217\245\234|\347\321\374\364\0170\003\301\254:\236\216\017O$\265/?\234{h\324\333\323\313W\276\271r\346\273\277\301\016q\375\321+\217\377\345\311\301t\007\326\344L\247T\005>\2725}\027f|\234\235\353tH\310t\361\354\351{\344\323\027~\206\006\230\377||\036\215U\240\017\200r]L\213R_\325\201\230\177\364\353G_<y\271&?7\276\363,\213\244\037|\265s\357\255\343\177;\376\370\376\035\237\351\010\362\335\275\367\342\361w\216\347\216\333\367w\320\3561\275\266\376dWhA\037L?\370p\372!T\036\350#\246u\345\205\313\314\026\305\364\206k\367\232\270\220\207\025\372\225\207\313\217^~t\371Q\364h\362\344,Zm\336\306\236\033\322\261\310\202B\266\033\320s\330B\304o\265\271\006\002ge\372\273\377|\374\377=\216\036\217\237\274\017l\221~\365!v<\030)\323\177x\355\301O@\334}G\2553p\264\034=\374\374\361O\237\234\325\031\335\274W\036\277}\177\005&z\217y\003\252{\363\354\263Tw\363\341\277?\214t\016p\005l\225\360)\224p\371\341o\036I\301\201\013Y\207\217\013\3170\347\2065\301\246\230\364\315\302>\373?\265\374\333S\313\177\3401.\253\031zzi\365\311{\323\035\340\023\276\352\013H\364\345\3315L\273vn\375\031\025\363)\214\321\267\036\375\356\361\007\323U\032]\243\351\010\205\021[\223]\226\006\304o""\366\236\311X\375\243{\2779\376\376\375V\300r]\215\005\371,>\361\017\307\347P\205\375\331\364g\177x\264\363x\356q\353\361\235'?\234\356|\200B\344]\024\006\241\036\001\255\013M\002\037\010\325\207V\177\220ON\217\300\n\331\237\376\272=m\363\255\201i\n\025\361\345\364\313?O\377\374\377\250G|\302\314\313\254\374\351\037vX{p{\354\323\027P\235s\330\\z\274\363d\216\030\201\276\321=\r\237\001a\367\207\007g\037\374tz\351\326\364\326\237\246\177\002\031)\2663t>\177>\375\371uh\332[\217{O\330$\377\305\275_1e\341\207\367\367\036\254\242m\347\346\223\321\364\026\024\273=\335\006\t\016]\033:-t\001\03030\n\312i)&\340\323%\324\224\333\277{\374\337\323\035\264\202\353U\364\253\343\305\373?\004\375\353\226\326W\3038M\031\202\216\331\301\216\3319\267u\356\233\215\377\223J\337\236T\302\356\363\311t\023r\200N\316\246t5kM\337x\037m\252\2205\264<e\267\212)W\317\255\235{\016\366 \255\211\007\347\376\257\211\277\265&\376\303\243?b\t\300\t\244B\341\377\027l\342m\314l\373\334\3169\246O\377_\023\177k&\277?`\t\220\026\370F\351\374\227j\342\377dj\362\227\270\010B\263\0367C\255O\177\005\312,\002p\037x\356k\036\370\375\375\010\227\037\240\245\377\016\273\000\266\370\237\331\302\340E\\.\261\2247\247\377\36662\3603\266\026\001\315\226\0027\037\314\341r\371\037\247\377x\351\341y4d\274|\377\227\017\317\032\206\267\265'\333\323M\230&\353n\371_y\363\331l\035\257?\330Be\346\265\351k\250\276h\252\376\027\217^\375\377\333\273\222\256(\222\256m\025\245\342\3246\266\0032\2504\310\254\210-\203LZ42\251h!\n\202mw9\200\255\274\335\215L\266\332\364\273t\311\262\226\265\254e.s\231\313\\\306\222\245?\201\237\360\335!\262*2\253\212\n2A\273\337\217s<\247\244 ####n\334\373\334\347>!\372aBhb\200\330\221\t\030\305\023\353\247\327?$\253yBg\271H\365x\031F\335\231Ur6q>u\000\356\267\n\263>\177b\034B7\230tj\222\372\305F\244\017\"\263\217v\207\030\207)\3119\353WN\352\036\241\303\336\344\201\344\274Q%~\030\261O\330?\330q{\021\026\216x\300\271i\267\353\"\237\273\313\254\022\335\267\355\0361\t\276\n\374\035\264H\206\206<\213*""\360m\212\344\313/F\337\346r\352\033#n,\233\003\326A\210\342\210\202p\360\277\177\257\317%b\3723\017\207\355Y\010\321\215\362\314\360c\\\355\216\263\256\215\331q\304\007\002\277\347v\343%\254\261\003\366\234x\310\\\001\327\013wC\210tC|\203\350\007\026\237\023\347z\314Q\213\263\333\342$\276\311\342JQy\231}\237\\\277u\276\373\314\357\037\326\352Y\351\246\313\220@\022Md>%cc\367\355{\024\236\014\343\272\322\300i\022g\331\207?!NH\037^\301\205\t\003O\r\033w--0\032\036\370<XT\314\316\363\225\210\321|\272\rs\367\2003 \3473\330 %QS\013\232\r\373E\271k\222Q\365\2060\332F\\\373\226~#\356K\342\022\322h\024H\356\235\270\001\253\306a\307h\335\334\3476\250L\311?\315\003f<kJ\006\314}gFx\007\033\255K.\244B\331\215\312\325\n[\305\245\324\264\261\340]\262\035\211:\304R=\277F\336\216\363\225\\;\242\364\203\370\360\027,\2145g\017\225D\030\357\036\212\213f\215Q$\264\274\274\032q\n\025\237\345\260\3543\377GTJ\010\362\2648\335i\036\266\324$D\211(i3\246\315\205\364\224\241\255\354\333\365\310\372\020\362\231<\277V\277RV\272\244\n\311\376\215\340\307\210\303\366\031\303\217\261\360=\374\270\007V\300\225\306\020\375\350\277d\017e\226)\020\027\320Q\362Z\203\363\020n\226\2205\340!\365\256\237\377\230\255fT{\n\353\330\237\212d,\031\247;6\246\032qH\353E\375\rsA\201\303D\033\357]\210[\350\354\tm\355\233w\376\355[i\267\331*z\356\330w\304\024\334\211}\366_ws\037\2051c\254\323\257\363}r\317\251\337M2\006X<qu\314~-\246\240\021\350=\033\263\214\t\010\350\301\343\373\017\2041_7\313\255\273\"\006\223\025\236P\235\310\010gO\231n@;\350\315\362\242\025\273q\263\274qs\236\233\335\014\007\311\0305\247\006\220\021vY\\\036\266C\366i4\024\210\373mD*\023\223\311Qr\026\225|\356\021\263\263p\326n(\325n\224p\337\226B;\331\267U\"9\304\267\356\233\013\316kK\203\331\233O\212\366p\346-q\346A+\236\335\315!k\305\216I\0265\215\375\216\003\315\017\210\026\004{\033\\\306K\313\r4\367\230\267a\220\212\354\326\257\0074\243\237\323b\237\027S\224\344\337\t\240\031\361\213\032QM\344\363-\0224\304\210\273kO0\026\257\343\005]p2\326m""\206\027\332n\233\300\2650\201q\333\243=\334s\367@\261>\3635\336\201\341\010\356\203\013/\232\246\324\374\033\361\346#\\\362W(\355\\\007M\267\265\031\223\260TV\305\030\3276\340\004\026+\253\374\352\177\307\233\374\036\376#\274\371\307\036\036\352\274\372\\\234\272\334_\272\212\r\266|\215\217\361\343q\370\005~\274\010\277\301\2177\341\371\340\356R{\307f\373W\013P\277Z\234\031\271j\324\233\227\254?)\010\"\022M\206@n\226\212h\014\366%\227;\004\3034\026\312S\335\201\224\021ouG\023\307\202\204\037Q,\270\027U\354jTq\025c\322{\366{\361\030Z\000\367\200K\214\322\270b\340\274@;o\177\344J>\200\327\330\312\313\030\274j$\003E\327\037&\350\277\255\364\247\373\253\361\027[l\277Q\253\304\252\242\001\334\006\267\026\332-K\224l\331\356-+f\305\255\017\024Ph\326?l\364\366a\313\027\251\224!r\315\030v\243\317\245\342:82\372\220\005\266\365}\2622S\360C\034\355!k\325~\303\357_\247\001-\204t\275\227\007\001.\226K\001\313\220\"\030\025\221[F\313\224\214\023\014\220q\307\"\336V\027!bY\263\037\234 \0301\3660y\372\375\252\024_\032\267\315\217\216\227\350\302,N\302\213\177\002\017\321\004\366\357O+d\235\266\226\0209av\331\343\r\202\255\317 \002\247m\215{z\265\237?'B\234\375\022\021\262]\025}\323bZ\277|\224\373\020\014\265\255g\370Mq\024\333\375\207I93\000z\260\237\002\313\036\363x\256\3559CH\334\323\n\305\217\027\222GSQ\327\014\037\264\346\354\031\2024^\350\274\347\372\206\317\\\231\332n\374\206hC\266O\347\224\000\266\330:\t\213\215\216\316\315\321P\356B\300\202\236\007\025/t\247\336\230g,\027r\215\215\336\331\203\322\376\271\233\036\025\206\337\027\367aqC\244\r\021\361\337\360\0077\303\351\262\244\300\316!L\200\267\241<e\344WU\252'\362/{L\205\255-\"\r\2513\306\021\263C\364\343\030\210i~\314\227\002&^\207\321dN\212\001f\201I\214\031nv\343&\262\273;\214\027\230\017o\021-\243v\225\335.b\\\370\376<\0076C\331(\363\235\345\272m\207\261j\276\301zaf\364\302\210b\265\0274\337y}s\215\030\252\n\223\025\213\213\243f\254 \227\036\343\364*n\343\217|\343\321\252&n1g\365\321\315G\335\354\334\267\377[q\374{""\266l\347\022s0\225\337\031\352\022\354\363V\306n\234-\303\253\332r\026\204f\033\330N'DGcW\224\372\001\013;\317%^\343\243d9)\235\276w\031e_t\023\327/\267p\253\376\311\275]\210\205f\003\257\314x^\360\016\246\377;\235K\274I\225\250d\277bq\023\246\031\361\0355v\307\316<\033\031QD\274e\303\265\314\021\201\235\2148\"j%\307t\256g\362U1\001\206\035\346\024\321U2\025\002S\340\014\276\262\343\366\nN\232\034\217u@)\374\235M\016\247p\301_\307q\337\354\2079\336\217\356\014\334\343\206\271\234\251\372\3512\253\340%)\273h\002/\272\031\245+\376\277\305\220\256\222\253z\254\326\201\275\201\035?\345\245v\355\333_'j\025J\r\345?\030\034\324\362\026RQ\230tQt^\257}Z\025\247{\341u\367\366\341\277\243\337\255_\203\313\216\225\254\237\021\245\230g<\212\2176\220\370\006f\334rj\3008h,K\255\211\223\326\214\270\217!\355g\330\002\033\022\255\242\242\327\234\264\242\326\204]B(\016\215\357\263\220\266I\250a\177\010\372(\375\241\302\330\006f\\\337\230\245\326\031\373\220\210\301v\000{(\007(\312P\325\357\333_\245:V`\341DC\277U\247\343\001\301\000\035\372\314C\201|\005\327\330\344\373\242+1\001\363\261\340E\351A\303\255%n.Y\255<h\016\353\354-\312\243\274-Z,\332|\021B\r\211G\211\033\251j^\334\333R<\361\357\020}\246\202\027\177\371\207]\222)\311\362\240\316\201\261X\025\265\375\224\325G\306\221\370\205}\226\0144/\225J\360\376\242}\310\372\230.\325\301\244\\\211\354%:sW\021\301/\027\345]f-t\361;+*n=\342\\\2078RAnX\236\216\302\035\301\331\200^B \3448o9s\010\242\274)\325\232\032\022?\014Z\277\021\224\317.\326,uT\034\253\304\247\332(\256\020\025-\2515\3666wXN\305Up\003\357\310xm\035\022#\340J!.(>\376\265\265\262\2112R\343\211%Q}\315\0302\263\013\203D$\n\353\361\010U\031b&\207z4\214}\030\316\330>\\Y\307?-\255\267:\377\351I,B\340\342\230#\360\2406\272{\360\237k\365d\254\224j\253r\230\237\274\215j4\347\376e\326w\236\025.\277\312\323h\256\253\265\276\320}&\334\001zz\345\277m\\\372\247(\305K\273\272\225\016\234\025e}f\\\267\271\367\211\223\211\230\363\337\222DM\342Wp\017\303\251\252\354\257\352\214\222\354/""\253S9.n2r|Y\223\212g\177y1\265\000.B\377\217\2337\213\366\355\277\202^\013\354-\353\307\341\001k\222s\251\207\0207\264r5'\271=\337\211\357ZR+4\335\267\252\263\203\t\313\274\314\264\266\320\334F\244\032\r\333\017F\273Y\t\261\370\244\230`w\356\",\305\250{!\205\254\n\373\251\230Y\205\031\376\316Y\201\322\226\247\031\3749\320\036\307N\224\240\2158!\312\233\261\330\337xH\345*\252\237%\013S\363\006Y\007R\263\212\347<\0131\315<\005\027\345\025\233\375\341}\373\317%fpo\3530\226\314^{\177\372A28\206\250\277i\355\307\035\035\206\000\214\212.|\330\017\343_\231\210~V\201n\253\324.A\307\205\341\207|\020\237\333Q\034\021\227Hf\013\233$\227!\233eF\305\307^\242\031>\026\006,\247\305iI\310\252Nv;8!\312\305\210\272\033\346\007\273)\217\267\232\3658\271\201\t\004\001\n\241\007]\242\353\241\022HA_E\007\330h\330\r8\343\222\3662\003\364C{\337\366W\017\3779\003qnWgJ\211\020\236\332\327ass\371`\377\326\307\301\310\244\317>K\242\031Y\217\343K\337\311;M\300\303\0267a\2110@#\347\210+\301P \215\372\243\325\201\263\373\t\\\361\223'\256\311\024-r\031\003X\203\037\0076G\003\021K\216\347\303\0328\370|jv\250A\013q\300\325h\036\356\217\330\337\025\224\360P\235\370\347\306w\306\217\306\"b4\r\242\001\267!\025\\@\216\364Z2\306\327\217EHf\344\266\335\312\225\315*Z\322\201\200\371\226\235\304\354C\2059m\375E\324\217\347\205\006x0Uk\204\370\276}\301\0248\374\352\267\345-NF\234j\315\232\262c\336\001~\035`v\326\211:t\223\"Te\013\333\000x\322\313b\231\001\300hXI4\211~.r_\022Kkb\355o\275:\247.\211<\216cl3^4\033\201\217\331\310\\ds\020v\250\362D\255\270p\rf\301{t{Om\031\360\234Y_\301\322\200\347\254\233P\262%\221\265\212\362F\021\334\231*\254I{@\334Gb\020)\034\220\332#\316\224nq\271\317|a5\211\273i\257\232\353\366\243\"\232\316\2734\244J\2152\321-\301W\330\240\306\251\\\247\027v\262y,\354\200P\030\342\001\014\031\304$\270\0223b\206iE\360\322\336\212\267\222\337\240\\)\312/\303\236}\307\n\321=\240Y\206.\271w0\256\360\347iUC\271\242\345\370\r\204Q5!D\te\350\033\\\347\204\035\374H\210\016}\020W\373\255\032\353""\215\210\245C\204U\261\372n#2 \006\270wO\220\2616l\214\212>^\2464r'0Z\022\347\257\030\007\214yL&B\267\340O\231\361\304\003S\260gj;[\240\322\256PEb/2>H[,\247\262[-\000\037\265\353\210_\004\317\004\303\n\317\304e\340\222-$E\032\027\361c1\374\016?\336\205?\342\307\307\360$N\273\311\242\251\"\275\331\372c\350\031^\367\014\333\334\223S\333E\006\022\025\336q\036\3211'\362\205\303F n\300\374\003o\034\272\307B\266nQ\316\237\202'\341\033\321\\fU\330\301\356\341)\257\243\327\211/\354\2248%\001\322\022Q\"Q\253\013\311\203\260A\2229j\021-(\301\253\322o\242\264T\227\240\307\313\231=Z\247oX\016\372m\376\335,[g\021/p\301]\004\014\336\306\0042\330\226\247z3\2370\203\217\241`\231U\235d{w\"\236`\264\272\032\266\360\230&\235\3118c\036\262\316\242\327\303\250>Lu*\346\364\216C)<&I\314d\264#\027\250\200a\241p<2\010\221lH\252\333|q\357\223\222\270\nU\370\033\363Wk\301\016\351N\230 o-\210\222\217\322\343b\330mO\231\263\326m{!P\257u\222\037\001l\257\"\357\326`v\201w\020\315\232D>s\371\2709P\376\304#\304\207\010\3504ri\036h\316\301\215[\203\262\362\344\313\373\236y\353\010\320\231:g\275\263\335BZ\320\323'_\251\247y\313+\362\366\364r\020\331\270\374;\326\200\025\265\036\333q\357\335\226\276\322\270\344-\316\3109.`\372o\205$\027\364\345\236\323\263\253N\0171r\271\206`\005\276\\U\374\002\371\212\310\303g\2156xs.\261\243\247\370\3614\374sp.\306\340\0201|\374\027\275\364\211>\216\016 \202\250K\256\246^\213\316\021L\255!\255<\344*|\037'\027D\003X\02458\300\230\017\033\334\312\375\241\276<5:\314:V-S\3461\\'I\013\244\026V\260\242Y\324`\276>$\357\370/,Jwm\275\307,o-\005\315\274\367\273\357\320\371J\342\"\313\247\333|e\315\331\217\305#\3069\300\202s\260\354~\247\0018cW\305\325;v\324%\350\315$Y\270\017\303\033\351r\023\235e34\034l\003)\274\372\007\2558\022\311]\2115Ix\375\005\3764\036J\333\022\312\254eD\243\367\355\033\017?\010\303\200\241\371>\227\210\271\216\000@\263O\354\277\334\202\212n\377\343\236\321\312\252\243\334\022&\020T\275\224!\326\026\314\260\255t<\275a\2712\311\033\177\227\372\313t\263}z""\373\350fA\266J\277\205\334y\211B8?{\255b\217\211\031\016\010i\007aI\241\277Z\347\226J\014\334\237`\372\004\230\327\0365~5\027r\364\311\347\316\242\310)4y(\266\303;\347\227c\004\375\312\210\223\307\361\032\263\326\023\272~\371\205\0211\262\010\253m\311\201\2112\214\215;E;z\240\215\353\204\232\302\007\332\034\371\324\276~\n\334\3012l\326\365C\372t\233\372T\r\373\207m\242\r\201\364(\246\315\372\020\335\274k\307\364\377.\353\024\234\016\030\253\243(Hp\333\276j? v\020\327,2\025\236\3754>\260\345\315N]\271\275\363s\024!\326\216\365\357\321P\200\005\310\010\261\"\355\263\370\310\247NRj\312\343m\346\242\365\347.\031\355\200W\333!\0321\261\032\263^\332\335\310&!Os\222\321\246\357p\205\237J\305S\213\310\037\254M\3069\321\033^\257G^L\342U\336\342\317\234\032\263\352\245\363\251Z\343(\n\010C\227\323W1\276\314W\201\327\273(\026q\223EP\330ul\023\242\344\267D\214\307\236\221\267e\261\354=EJ\031\304\376\365\027\211\372d]\252$\227H\354\310(\005\205\215hlQm[jJ\240?\275\210&\357l\342tb%\031\023\265\024\317\344\245\004\361\023s\321+\276I*9p\t;\023sU4\366\210\236;\342\216\203u\345\220\203hL\216\201Ao3#\346\220\325f\207\230\006VH\016\302e\000(\021-\"#\310\007\236\0213\317\020q\016\271O\032\312\324\256\262{\007Fk[D\372\014b\365\301h\202\030\356\210W\263d\364+n?H\322\035\362\320\220GC\273\224UD\326\3617\306\034\222Ov\354\206\301\021#\354\325!\267\210V\340\036I\307\345\2648}\335,\263Z]\316\377c\030\226X\316\3379_)\001\207t\t\345\214\314H\n \3214\355 :\214\024\305\311\3510/Y\0139\036\311\037y\270*Y\221\212)j\357\242oRL\202{\017\026\034\314\016\325\370k\201\3217C\231<\366D`*\344\036\241\361+\023\032\225\032\211Q1\010\375\361\234\234\023\204z\310\345\036H0\310\252\367\230p\230[[\325{h\351\204P\373\265x\030\335\302\226\206\013FF4\337\306{k\212!lT\327P\333\r\250W\224\2018\304\305\233\3261\254\002\343\323ht+&\261\245\263\256\334\307\273\324\202\261\337\210\351^\354\257\220#\010&\350\216\321I\341\211)\010\354{H(M\2325\027\004Vhd\353\352\351\221\252\222\241\000\207\2410X\211\020lF\004\255L\224""\261\021\370\331\216n\205S\302J\006\017\206\327\025\272\260\004\202\221/\212\243\224i\217R\213\355\262@\017\354I7\302\272z\315\251\252;\242w\314\236w\222\374Y^P\031\270\2467\350\340\221\327\326ql\016V!\223\3473\201<\372g\253hf\322\013\320\323\310)\314\304\3406\270\037-1J\274Y\355\366I$\026re\326\014_S\227(\321'-\"\360\367\304B-\236\206\306\235xa\235\030\272\224\362\321\rr\200\301\026u\242\352\237\371\267\035\247\027\3066\352+\2760\251~8Ny\026\311\304\360\016v\005\330\334\237\3019\2371\017\263~\235\230\200!\346\274L\272w\264\333\235I\206\276\364;\353\300\243Q\322F\303\357\006{t[\2561#\016\267\215\017V\023\232F/\317L\366\305\257\230\251\202\017\340h\025\3239$\247\365\016\353\274\023\326v\231\344\0010\3402\321\0010A\334\223\034D\204\317\221\306\024\353\005\324%WH\331\363\221\243M(\357\202g\354@+\207?5\243M\243\217\317\n,\362ZtB\334\010\241\037\327L\345\342\257f\357\277ucb\014\253#7\307\016\356\333\337$\032\221\322\016\206\363\225\371\037d\2052\225cv#\373(\242H\2379/\217,\206\331\254\252\031\021\351']\216\272\014\235X\331\036\227v\314?\247\027\034\254{\266[j\021\036\201Q\343U\375{\373\343\342\271oN\0364\214\316\222XJ\323\361v\262\003\331\247n*Dj\202\341Dc?\2576\035\342\344\026\367\376w\004D\3143\361\246R\306\002\331\0250&\252]9\302\305\256\272\003\251\203w\276\347\227\010-\311\227\350:\310\226\344L\034.\220\256Z\350E\230\204T\203\266[\210\346?\375\314meBT\232s\326C\273\006\345\255\331\251W,_#\216\323\333\202\272\252Y_\320\343\263.C\245\365\322\356\023\217\323\020\027\307E\031\354\265\016|\370\367\342\372m\224\r!\264\360&U\235L\022\327\3329\023J\022L\337a\261O\262'\265\202\036\225\350\207?\000\003\212\260\230x\312\331o\360\253!\266\343\262\261\017\342\203S\376\225\271\2667?\007\224)\255\230\353\026\3571\222'\006\360\026\261\020\221\320\206\021\305b\272*\364\025\036\017\327\346['\363\345\222\352\334\372\010\315\007\340\203<7N\032\223&\316\317*\330\033bD\221a\205\230\034{\013\356?nK6`\r!\034\313%>\205\327@%\335\343iQ\241:\032i%/J\261\034\026\r\202\201vT\336\013\335\207""\237\345E\240\204\274\316\343wa\025\241k\366\302m{\322#X*J\233X\235<oF\237N\247\233\024\223(\t\004/\356\365\366_#\334\264\366>&-\235\335\\\262\302\037\024m\016\204w\324\332l\205\t\375\333\215\323n\001Sy2\032}\020\355\327\211\326~\253\331\216\333\313t\362\361/.T\n\002\342&<\030\317,2I\0215\272\303\025\254n\"\0162\205\236\330%bT-\332\343,Q\232\240./\226\351r7L\177G\325\0176.\231\253`\200\257\241n+4\263*V\271pK\366E:\nR1o:\2745`\245\370\014\367\003(\274\371\217~w\252\226\253\323\233y\310\3638\250\301\340nW\224I\227\226\312/\311\245m\022M\312\t\227}\224p\373 \225Z5\374 \355[g\023\341\334w\346\303G\337\210\230\023o\027\206\241\211\262\363\304\267\232\201oF\264\213*s\231\324\327\347a\365\315\021\251\217\371\207\313Y\357\347|\302sDETsx3R/9\336\271N\0241K\326\002\255qU\262\014_\276{\340Y\023z\306>\254y\016\365\375p\220\020\342b\222\362\020\345\370\370(e\301\331\177\nI)\013\211>\224\342\335\225!\342x\017\315\"x)\351z\203\264\361\241Mj\032?\246\3033\3701\223\021\314\204\217\371\360\177r\325\367\342\263\374N2\025e\342G\266\343\351\303_\322\211\314\\\211J4\244\255\251[\330+s\214AlN\311\262\373\366<\03763h\326\342\301\237*BCP\352}z,\260\266\\\241\234\256\310O\277^\177i\236J\225\027DA*<!\270\213\\\236\243U\033F\225}\261q\312\356\370\227\337\361)\217\312\360?U\010{]\372\315Z\3146\305\266\273\222\022\261\024>P\344\360\247\246u\254g\276\3144,\327a\313Z\346\256\336Y\216\227<\207\2017j[`Y \002v\360\252\321\270\305\t@\001\232\214\\DBl\314E\255cgES+\022\345\347/$\326R1\027\342s\0336\342\017\022\222,\324@\227k\204\371|\370\363\314\330\322)\377\221\243\\\3579a%\375\213\006\217\"\026\334\356\2108L?\241I9\223<\214r\006*09b<0\367\233\304\220\271l\344\022\312\032O\233Zz\025F\301\343\215\357\342\037\361\205[0b\377L\213W:~\375\323\237e\365\300.\225\343`\372\247\3168k6X\335\270'=r\r\324\370\327)\237\361V\316\270\006\244\362\034uKf\026\374\246\252\360\217\"\337|RSA'\304\t\254\347\214\032?[\321-8D9\023\013M)\242j\265*\315QuK;\274\365\026\213\022\013md\235\277b\236\002\337t\203q\335\034$\337\177!""\307\246\005\373\363\372\r\022}|m\0364\027`\027z\201\265\232\\\021;\265A\325E\253\353[\344\224X\303c!y$\325eL@_k\255\010\304\351m\2542\265A\256\360\320z\353\027\310o\014\232U\2526E\352\021\312\020\302\204\236\360\022a\251\272o\304>\245\253C\273\321|\211\032)Y?\260\376:Y\304\253,\373\354\035QON\312U\266\013\030et\257?K0\270\311\257\261\032<\330y\233\324\\z\210H\225'\264\343\300\310\0353\346\016\355p\014W\305\345\033x\030\271\363@\024\331\315`\361\243\264\220\207`BVg\214=IE\262G\003\023\206]\321L\177\303\211\232\304<\312\277l\243\030s\302\277+\242(\357\035u\223\2056\036>\312\317\217\335\345R\276\374\245BxH\31091\311\301O\232\344\375\220\263z\3225\204\276\237:M\347\037\264\022\374\370\314:h\275\307\305\220\251\200p\273\006\217\250\222^\"\276(\232\220|E1\303\254\336\251T\217\302>\035\375\234\3064G\212\345\021\026\324\322\310^\200m\263\312\033\037 \265l\330\274\215\314\367i\315\315\377\22168\236\215\307\213\272\016\251\226\230/\315H2\274\243v#A\035`\0219\377\244\324\361\024\024\350\270\224\2324n\233\253b\220\331<\222\303*\"\250\247t\033\261\006d`Bs\177f\225\322#\250\214\226\023\303\316\214N\370OF\003D\004x\230\325\n\026L\260iU\346z=]rS\033\017%\023\346$\005t\217\005\255\241\233\274(\")\016\002\300\362 \242\324:\037\306\002\346\007\036\225\223\211\356\342\005Y\357?\211\037\223\341)-\354\020n\377\265\226t\341\342\r$\035\365\211\307\034\246)\253s*\355\366eI\333\362ou+\321\245\023\016\273\272t\302s&\200\311q\205\010\25169\013Q\307$\261\234[\335\t`QN+\300\225\003\306\023\214\206\254\005\225\2525,\006\342Hrw\302FY\3054\205\037S\3415\374X\013\017\"\200;X4T\344\315\020\177\346T3R\316\222\307RZ\373\000\216E!]\3721\364C\210\202\213%r(\370\340\346'\027\274GQnF\256B(.w\271\002\231\227\344\327o\224\372*\352y9\367P\342K\027\001\233\332-\232-zw\227\301k[\265\346\354)\217\037\277A\232'|\016\260\337\202\247V\343$\002\325]\346E\363/{P\214C\213\244S\252l\332\207P7\3145\326\323\360\264\025\twuy\206\220Q\342\024\376\351\211\320\326\\\244\366\256R\212\300\221S;\265>\345\016\315\237\230\245V""\211U\253\323\354h\212\372\210\033n:*Fy\352\303\242\013\253#\324x\030\014 og\236\207\013&\226L\201n\2166}\302e*\365\003\313\304\n\326L\222\316u\252*Ub\224\300<\2572a\256' JM\205\214\020M\233_\342\372\261\247\257\312A\346\000\255B\214\307G\256\2707\302\212JD\026\316\240]\273bD\214\273\326)\230\333\323\370Wj\305@\252\276p\360\315\332\372\330Z#\226k\270\000\241\264:U2\316X\217\353\234\nr\220\30702\326\\\341HU\354\331\267\277Y4\221\010V\026s\306C\212a\240M+\207Y[\207\275s=\200#\366\355\310km\326\360xe\234G\022Z\320;\337\274:\331\214+\000\"\0249]/&'S\243\306\357\216\024\n\266'j1\274\310We\225\r\272\307\303\317\202H\010\357\014\350\316L\220\243\326\035\232c,\r\265\"V\030\332T\346[\374\231\\\177_\276\314\337'\366\311\362v\245\304P\206-\224\212\036Us\322\354x+2\324R\036\266\013\347\363\346\322\376\334hT\204\3446\225y\364\2331dvYS\271\034V|\277\354\335\256q\356K\371U\017\262)NQ\350\033)KTm\270LT\261\245\203\357m\254\375\255?\203\374 `\304\2007\256\233#(\236\311\232w\314\241U7\320\036\331\007\177L0\322a\037\260F\355\377\320r\007']\255\332b\251\360*\253\223\205\3745\026\026\225.\377M\010P1\r+\325\257c\266\004~\304\3621\350\013\375\207(\007h\213i\213~\237\211\323\262&\004\231\000\335F;y{\241\204\3014\342s\337'\2332\000\252d)u\221\315\324eN<\177\021\210\243\264\213\202E\234\263\373\225\355\036\037\230\343\016\n\260\337\2252(\256b\376VV\221\302\025\351\3614X\275T\023\256u\346\317\213/C\310u?.\023\333\272\315\271,i\302\227\263_\342\025\371r$px\313\315!\353\272=Bi \016\223\225w4\353\225\325\".\250\263\261k\026\277o\314\316m>\365}\234\016\306\3763F\261y\004\026zG\266?\211\007e\274\016q\302*r9\365\302\250R\251\rX\334Uo5\331ZS\247\371\r\2463C\013\030K-\204\337\206I\357\364\333O+\353\217\023\3179\251\233\205X\036\372t\032\006\277z}:\261\260\315\002\346\300(\274\267\230\227\225\236\237\263Q\364S\314\233U\223u\006\372yP\234\357\026\335w\2600v\234\316\342rD$\325z^\274\273h\341r\337\347v\211\304\365\271\203\327>\275\305I\017\263\27195\010\357\343\007:\223<\272\005\264\317\035d\362\035\343""\362t\324\315\313\331\254\016\342\211a\223\242\242\023\211Z'\354V\354\244#\361H\335\233`\"-\336[4\367\232\343\346\202Ud\265\272\212\241\273\326\307)\036\022\2472\305\320\037\030_\316\223*\340\356\345J\030\344\306\227\341\345'\347\304\245\233\230\227s\341\313\323\\\010L\216c\251\033_\306u\211\271\245v\273Bnm\371k\2163\303|b\375\032\214\316P\262\325\363;|\306\267\211\223\211\231\324\301TN\246N32'\224C\\\244,\366\001d\212\214\353\254\2347\363\201TV|\033]\026I@bE19\251\271|\220\226\337\360L\325\320\022\256\352\245\3602\313;\355\255\352\275U\375\305W5\202\374#\346ck\326\276#\0174\334\325U\375[8\010b\307Bej6`\304.\2433\300uw\375\026\344\225l\376\026\304.(\313\374\022\235\ty\322\232D\024\r'\003\221\211\334a\323o\221<\367jI-\024\252\373\010\022\206^\023\327b\351\344\024GFcf\243\030\200\300\022k\202t\006\353\373\352\315?\302\351\324\005\352y\037C\314\006\206[=>S\345pO\026\346\027-$\026\360\274\010\264\357y\361\336\354\\\032*\037=\211\020\026C\344\261!\024\r\207e\221\037\366w\222\035\034Nk\351!\325x\022\312\351\223\030b\232\201\334\005\264\315[D\016\333\001\2716/`\365\361q\227\370\202\250\037@\344\303)%-\324\302\333\235[lm\310\201N\217&I\237kL\240\262r\331\007\277[\360\225\034\211V\207\375\340\326\274X\243%\275\370\251\032\014N1\222A\350>\267x\033\204\233\257W}\226\377i\346\260\361\2108Ba\343\216W\372\321\226yL\034c\306H\035\326*28R\270\322\017\301\206.\321vW\334M\213\256\345/\357\333\374%7\222\"\312\220\351] X\016\342\023\020\023@%\320\275\300,\2506\326\341\353\340\337s\031\022\255\023Bi-\242%\377\300\276[4C\306\230\257\304#\326\357td~\n-\201&\026\232\036\300t\334@\321\024\252\354OE\036G\250\254b\227U\366se\353\366\244\367\377\007\244\367I\315B\036G\014\355\250\232P\2620\"\216\037\361\260D\rV\360c%\374\036?\336\207\037\342T|X\364\250H\023\271Z\322\246\241d\331G\027\364\321A,\260zd\241\215\273I\022\rd\312(\303\\\227\\\316\340:L\362\035\326\252\313\304V>BO\353\275\r\\w\237a\232O\025\031YU\356\234\2008)-\002\254#i\021\352E}\237\251\246\234D\323\230\375\222\034P\026\312\374]""\333\n\372eV7\210\206.\263\312#0\241\237y\222\320\260\337\273Cp\003\013\316s\367m\260\213\003=:\214~\247\351\275\271#r\263\2737\377\354Q\016\217k\250\346\302_\005}\342F\321\250\034+\212\360\177\247\350\3762O\354\324j\270\2051&\035\212\334\227\2747\235c&\242\217\035\016\317.\337\2732!\375\271\205L$\200o\023iZ\272'X|\355\023kIA\331\233\275\363\251\273P+j\351\030\242\312\304t\322\355\211\321\351\255\2626\000\266]\256eI\357\200\324\353Lm\237\3061y\203\030\0329\257\317O_\225\\\271\353\341u\033\024\247\344q\006\320\"\237\345\354<\275j\362\357\332\023\332:RX\237\340\237\250\323%\272H<Q\325\263\027c\3541\244'\302\256\367\242G\3640\016\247\210!S\255\260|\325\031\377Dwy\370\355Ic\312u\024\307!<\263]\253\224\373{\234\377\001\313\014\010\312CNk\206\310O\370\231B\344\357%v\366v\210\374\230=\377\325X\263bV<\007\207\036a\321\343\224\303\353\302\322Z\273V\334\237 \372I\332u?\370\337\277\330p\350\251e\242\334f^c\260-\321E\251\227\343\255Z\n\326h\326\201\367X!\322\363\017+\020\361\224`D\315\330\216\224_\0248\222\023\313\330\370\330\273 C\314\347\356\270F\270\357\306\346\315Hp\234(2\"F\3003\201q\342@D\0064Y\265\335t\024'\304\207,z\302\301\232\346\206\356_`\325\247+\340:G\265DcG\371B\035\3422\311\005/>\332\274u\n)\310\211B\377\3344\206K\255\241;\257H3kV\317\213y\010\322p\322)\247\2574\223\226\033U\251h&1V\374\213X]\021W\006\255\270\032\303\374d5\021\023K\213\014\300.\326\014F\3603EO\212\210\301\260\265\006\353\311\2753c\020\247\3727\234.\237\367\320\003\362\263oY\323\350g#\362D\210\242\204\212$\353\377q\341\323g\266\022m\325\264\300Z\2149\311\276>.\216\273\312\234\351\360\227\354\220\344\313\2257\351\036\347R\301\341\003x\010\244\372A\270\003\346\234T \030&\025o`\313bY\367\310\325\265\360.\225\013\260\\\002qG]\300\032\273\013~oxN%_\240\215\234\026\035\367\322'\240\027z\330'_U\021\234\251*\215\036\225\362\233;#\201\267\335\303L\024.\3361\317\n\350\013p\322\236\233\177\033\362\026\305\177\305\023\374\020\247\272Ng1)\307\345\3340W\021\204\207\335\370\275x\317\347g\271\305<\206\302\"\322""\222Z5\336Xg\3040C\354\351\272\313\315wE\\|\242\370\336\365\210\206\231\355V\211\316t|\007\257\376\222h\216Z[\353\230R\3168\355\234jI;\367\004\321 \314\273\250%O\333]8\333\325\315/\326\357\335j\360\020\241\215\3105c\330->Q.z\340\265pQ\340\2746\232\340\267\027J\371\320%\222b\321\213\341y\003\362{\323\323\353qw\235\n\301c\272hy\260Cs\234\312\024\317\262\017\326\250\004\242\263W\275\357\203x\334H\247\271\202\014z\375#{\375\334VY\314U\331\216\201l\361\2448)\315\250\373}w$\352P\020\305\363k\274\253\363\225\204PE\351\007\361\201\013]\323\034\021J\325y\217\001\374\354R\022g2<\363\346k`2\025\237MT&\347R\261\334\277t\276S`[\231\274\223\010\255\373H\260\364\021s\262\306V\t\t\277\032dL\225\013$h\315\332\374\312\373\250P\336\007\346\3203\201\344\336O{?\355\375\264\367\323\336O{?\375\217\375t\370S\003\327\314\215'\027\321\203\303\312A\022\323\277\037\331\267\377\nB`\254\220\264\230\254\001\277\340!\227\346\035t\324rHf\023Y\362\257\255\020B\243\327\211\276\236\205*M\213i\346\014\247\005S\347\020lm7+\255\271\264zG\344b\362g\014\005n\241K\306\207\306\375!\376\3000J-k{o\226Y}\"\006\001\023\023b\245\227\343J\023z\222\024\016pU\202\240\325\tQ\2164\250\250\361\320l\262b\326+;\236\016\366e}\276f\252\202K\361\317\005\225\016\222\305\216^\377\326\2370b\013\013\243\310\246\341\277b\000\206{Q,\352\2027\344\344\006\003\000\362d\3144 )qV^\013M\322\351\024\371\245\003{4\233,\204r\221x$\213U-\210\005\335Qz\037\246\352\311\317\256\023\220\213\255\220u\226X_ytF=\231.q\211$\235\377\017\351\335\220x";
    PyObject *data = __Pyx_DecompressString(cstring, 36717, 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 (183445 bytes) */
const char* const bytes = ">Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]Argument 'conn' is not instance of type (expected <class 'int, runtime.cudaEglStreamConnection'>, found Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]Argument 'kernelParams' failed to retrieve buffer through Buffer ProtocolArgument 'kernelParams' has tuples with different lengthArgument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or IntArgument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMem""cpy3DBatchOp,]Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]Argument 'pCudaResource' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]Argument 'pStream' is not instance of type (expected <class 'int, runtime.cudaStream_t'>, found Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]Argument 'resources' is not instance of type (expected <class 'int, runtime.cudaGraphicsResource_t'>, found Argument 'resources' is not instance of type (expected tuple[cyruntime.cudaDevResource,] or list[cyruntime.cudaDevResource,]Argument 'sizes' is not instance of type (expected tuple[int] or list[int]Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]Argument 'vdpGetProcAddress' is not instance of type (expected <class 'int, runtime.VdpGetProcAddress'>, found \n    CUDA EGL Color Format - The different planar and multiplanar\n    formats currently supported for CUDA_EGL interops.\n    \n    CUDA EglFrame type - array or pointer\n    \n    CUDA GL Map Flags\n    \n    CUDA GPUDirect RDMA flush writes APIs supported on the device\n    \n    CUDA GPUDirect RDMA flush writes ordering features of the device\n    \n    CUDA GPUDirect RDMA f""lush writes scopes\n    \n    CUDA GPUDirect RDMA flush writes targets\n    \n    CUDA Graph Update error types\n    \n    CUDA Graph debug write options\n    \n    CUDA Graph node types\n    \n    CUDA Limits\n    \n    CUDA Memory Advise values\n    \n    CUDA Surface boundary modes\n    \n    CUDA Surface format modes\n    \n    CUDA conditional node types\n    \n    CUDA cooperative group scope\n    \n    CUDA device NUMA config\n    \n    CUDA device P2P attributes\n    \n    CUDA device attributes\n    \n    CUDA device compute modes\n    \n    CUDA devices corresponding to the current OpenGL context\n    \n    CUDA function attributes that can be set using\n    :py:obj:`~.cudaFuncSetAttribute`\n    \n    CUDA function cache configurations\n    \n    CUDA graphics interop array indices for cube maps\n    \n    CUDA graphics interop map flags\n    \n    CUDA graphics interop register flags\n    \n    CUDA memory copy types\n    \n    CUDA memory pool attributes\n    \n    CUDA memory types\n    \n    CUDA range attributes\n    \n    CUDA resource types\n    \n    CUDA shared memory configuration [Deprecated]\n    \n    CUDA texture address modes\n    \n    CUDA texture filter modes\n    \n    CUDA texture read modes\n    \n    CUDA texture resource view formats\n    \n    CUDA-valid Atomic Operation capabilities\n    \n    CUDA-valid Atomic Operations\n    \n    Caching modes for dlcm\n    \n    Channel format kind\n    \n    Child graph node ownership\n    \n    Cluster scheduling policies. These may be passed to\n    :py:obj:`~.cudaFuncSetAttribute`\n    \n    Cubin matching fallback strategies\n    \n    Defines the allocation types available\n    ECCEnabled : ECCEnabled : <ValueError><EGLImageKHR <EGLStreamKHR <EGLSyncKHR <EGLint \n    Enum for status from obtaining driver entry points, used with\n    :py:obj:`~.cudaApiGetDriverEntryPoint`\n    \n    External memory handle types\n    \n    External semaphore handle types\n    Failed to allocate length x siz""e memory: Failed to allocated length x size memory: {}x{}Failed to retrieve buffer through Buffer Protocol\n    Flags for instantiating a graph\n    \n    Flags for :py:obj:`~.cudaStreamUpdateCaptureDependencies`\n    \n    Flags for retaining user object references for graphs\n    \n    Flags for specifying particular handle types\n    \n    Flags for user objects for graphs\n    \n    Flags to specify for copies within a batch. For more details see\n    :py:obj:`~.cudaMemcpyBatchAsync`.\n    \n    Flags to specify search options to be used with\n    :py:obj:`~.cudaGetDriverEntryPoint` For more details see\n    :py:obj:`~.cuGetProcAddress`\n    <GLenum <GLuint \n    Graph instantiation results\n    \n    Graph memory attributes\n    \n    Launch attributes enum; used as id field of\n    :py:obj:`~.cudaLaunchAttribute`\n    \n    Library options to be specified with\n    :py:obj:`~.cudaLibraryLoadData()` or\n    :py:obj:`~.cudaLibraryLoadFromFile()`\n    List is too small: \n    Memory Synchronization Domain  A kernel can be launched in a\n    specified memory synchronization domain that affects all memory\n    operations issued by that kernel. A memory barrier issued in one\n    domain will only order memory operations in that domain, thus\n    eliminating latency increase from memory barriers ordering\n    unrelated traffic.  By default, kernels are launched in domain 0.\n    Kernel launched with :py:obj:`~.cudaLaunchMemSyncDomainRemote` will\n    have a different domain ID. User may also alter the domain ID with\n    :py:obj:`~.cudaLaunchMemSyncDomainMap` for a specific stream /\n    graph node / kernel launch. See\n    :py:obj:`~.cudaLaunchAttributeMemSyncDomain`,\n    :py:obj:`~.cudaStreamSetAttribute`, :py:obj:`~.cudaLaunchKernelEx`,\n    :py:obj:`~.cudaGraphKernelNodeSetAttribute`.  Memory operations\n    done in kernels launched in different domains are considered\n    system-scope distanced. In other words, a GPU scoped memory\n    synchronization is not su""fficient for memory order to be observed\n    by kernels in another memory synchronization domain even if they\n    are on the same GPU.\n    NoneNote 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.\n    Online compiler and linker options\n    Optional[cudaChannelFormatDesc]Optional[cudaDevResource]Optional[cudaDevSmResourceGroupParams]Optional[cudaDeviceProp]Optional[cudaEglFrame]Optional[cudaExternalMemoryBufferDesc]Optional[cudaExternalMemoryHandleDesc]Optional[cudaExternalMemoryMipmappedArrayDesc]Optional[cudaExternalSemaphoreHandleDesc]Optional[cudaExternalSemaphoreSignalNodeParams]Optional[cudaExternalSemaphoreWaitNodeParams]Optional[cudaGraphInstantiateParams]Optional[cudaGraphNodeParams]Optional[cudaHostNodeParams]Optional[cudaKernelNodeAttrValue]Optional[cudaKernelNodeParams]Optional[cudaLogIterator]Optional[cudaMemAllocNodeParams]Optional[cudaMemLocation]Optional[cudaMemPoolProps]Optional[cudaMemPoolPtrExportData]Optional[cudaMemcpy3DParms]Optional[cudaMemcpy3DPeerParms]Optional[cudaMemsetParams]Optional[cudaResourceDesc]Optional[cudaResourceViewDesc]Optional[cudaStreamAttrValue]Optional[cudaTextureDesc]Optional[cudaUUID_t]Optional[tuple[Any] | list[Any]]Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]]Optional[tuple[cudaDevResource] | list[cudaDevResource]]Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]]Optional[tuple[cudaExternalSemaphoreSignalParams] | list[cudaExternalSemaphoreSignalParams]]Optional[tuple[cudaExternalSemaphoreWaitParams] | list[cudaExternalSemaphoreWaitParams]]Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]]Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]]Optional[tuple[cudaJitOption] | list[cudaJitOption]]Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]]Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]]Optional[tuple[cudaMemLocation""] | list[cudaMemLocation]]Optional[tuple[cudaMemRangeAttribute] | list[cudaMemRangeAttribute]]Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]]Optional[tuple[cudaMemcpyAttributes] | list[cudaMemcpyAttributes]]\n    Possible modes for stream capture thread interactions. For more\n    details see :py:obj:`~.cudaStreamBeginCapture` and\n    :py:obj:`~.cudaThreadExchangeStreamCaptureMode`\n    \n    Possible stream capture statuses returned by\n    :py:obj:`~.cudaStreamIsCapturing`\n    Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attributeProvided argument is of type {} but expected Type {}, {} or object with Buffer Protocol\n    Resource location flags- sysmem or vidmem  For CUDA context on\n    iGPU, since video and system memory are equivalent - these flags\n    will not have an effect on the execution.  For CUDA context on\n    dGPU, applications can use the flag\n    :py:obj:`~.cudaEglResourceLocationFlags` to give a hint about the\n    desired location.  :py:obj:`~.cudaEglResourceLocationSysmem` - the\n    frame data is made resident on the system memory to be accessed by\n    CUDA.  :py:obj:`~.cudaEglResourceLocationVidmem` - the frame data\n    is made resident on the dedicated video memory to be accessed by\n    CUDA.  There may be an additional latency due to new allocation and\n    data migration, if the frame is produced on a different memory.\n     Set device to be used for GPU executions.\n\n    Sets `device` as the current device for the calling host thread. Valid\n    device id's are 0 to (:py:obj:`~.cudaGetDeviceCount()` - 1).\n\n    Any device memory subsequently allocated from this host thread using\n    :py:obj:`~.cudaMalloc()`, :py:obj:`~.cudaMallocPitch()` or\n    :py:obj:`~.cudaMallocArray()` will be physically resident on `device`.\n    Any host memory allocated from this host thread using\n    :py:obj:`~.cudaMallocHost()` or :py:obj:`~.cudaHostAlloc()` or\n    :py:obj:`~.cudaHos""tRegister()` will have its lifetime associated with\n    `device`. Any streams or events created from this host thread will be\n    associated with `device`. Any kernels launched from this host thread\n    using the <<<>>> operator or :py:obj:`~.cudaLaunchKernel()` will be\n    executed on `device`.\n\n    This call may be made from any host thread, to any device, and at any\n    time. This function will do no synchronization with the previous or new\n    device, and should only take significant time when it initializes the\n    runtime's context state. This call will bind the primary context of the\n    specified device to the calling thread and all the subsequent memory\n    allocations, stream and event creations, and kernel launches will be\n    associated with the primary context. This function will also\n    immediately initialize the runtime state on the primary context, and\n    the context will be current on `device` immediately. This function will\n    return an error if the device is in\n    :py:obj:`~.cudaComputeModeExclusiveProcess` and is occupied by another\n    process or if the device is in :py:obj:`~.cudaComputeModeProhibited`.\n\n    It is not required to call :py:obj:`~.cudaInitDevice` before using this\n    function.\n\n    Parameters\n    ----------\n    device : int\n        Device on which the active host thread should execute the device\n        code.\n\n    Returns\n    -------\n    cudaError_t\n        :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorDeviceUnavailable`,\n\n    See Also\n    --------\n    :py:obj:`~.cudaGetDeviceCount`, :py:obj:`~.cudaGetDevice`, :py:obj:`~.cudaGetDeviceProperties`, :py:obj:`~.cudaChooseDevice`, :py:obj:`~.cudaInitDevice`, :py:obj:`~.cuCtxSetCurrent`\n    \n    Shared memory carveout configurations. These may be passed to\n    cudaFuncSetAttribute\n    \n    Sharing scope for workqueues\n    \n    Specifies performance hint with :py:obj:`~.cudaAccessPolicyWindow`\n    for hit""Prop and missProp members.\n    \n    Specifies the field to update when performing multiple node updates\n    from the device\n    \n    Specifies the memory protection flags for mapping.\n    \n    Specifies the type of location\n    \n    These flags allow applications to convey the operand type for\n    individual copies specified in :py:obj:`~.cudaMemcpy3DBatchAsync`.\n    \n    Type annotations that can be applied to graph edges as part of\n    :py:obj:`~.cudaGraphEdgeData`.\n    \n    Type of resource\n    \n    Types of async notification that can occur\n    Unknown type: Unsupported attribute: {}Unsupported attribute value: {}Unsupported type: <VdpDevice <VdpGetProcAddress <VdpOutputSurface <VdpVideoSurface \n     < .\n\n    ?accessDescCount : accessDescCount : <ValueError>accessDescs : accessDescs : <ValueError>accessPolicyMaxWindowSize : accessPolicyMaxWindowSize : <ValueError>accessPolicyWindow :\naccessPolicyWindow : <ValueError>add_noteaddressMode : addressMode : <ValueError>alignment : alignment : <ValueError>alloc :\nallocType : allocType : <ValueError>alloc : <ValueError>array : array :\narray : <ValueError>asyncEngineCount : asyncEngineCount : <ValueError>base_ptr : base_ptr : <ValueError>binaryVersion : binaryVersion : <ValueError>blockDim :\nblockDim : <ValueError>borderColor : borderColor : <ValueError>bytes : bytesOverBudget : bytesOverBudget : <ValueError>bytes : <ValueError>bytesize : bytesize : <ValueError>cacheModeCA : cacheModeCA : <ValueError>canMapHostMemory : canMapHostMemory : <ValueError>canUseHostPointerForRegisteredMem : canUseHostPointerForRegisteredMem : <ValueError>channelDesc :\nchannelDesc : <ValueError>clusterDim :\nclusterDimMustBeSet : clusterDimMustBeSet : <ValueError>clusterDim : <ValueError>clusterLaunch : clusterLaunch : <ValueError>clusterSchedulingPolicyPreference : clusterSchedulingPolicyPreference : <ValueError>computePreemptionSupported : computePreemptionSupported : <ValueError>concurrentKernels : concurrentKernels"" : <ValueError>concurrentManagedAccess : concurrentManagedAccess : <ValueError>conditional :\nconditional : <ValueError>constSizeBytes : constSizeBytes : <ValueError>cooperative : cooperativeLaunch : cooperativeLaunch : <ValueError>cooperative : <ValueError>copyParams :\ncopyParams : <ValueError>coscheduledSmCount : coscheduledSmCount : <ValueError>ctx : ctx : <ValueError><cudaArray_const_t <cudaArray_t <cudaAsyncCallback <cudaAsyncCallbackHandle_t <cudaDevResourceDesc_t <cudaExecutionContext_t <cudaExternalMemory_t <cudaExternalSemaphore_t <cudaGraphConditionalHandle <cudaGraphDeviceNode_t <cudaGraphicsResource_t <cudaHostFn_t <cudaKernel_t <cudaLibrary_t <cudaLogIterator <cudaLogsCallbackHandle <cudaLogsCallback_t <cudaMipmappedArray_const_t <cudaMipmappedArray_t cudaSetDevice (line 16557)<cudaStreamCallback_t <cudaSurfaceObject_t <cudaTextureObject_t cuda/bindings/_lib/utils.pxicuda/bindings/runtime.pyxdataTable : dataTable : <ValueError>dataWindowSize : dataWindowSize : <ValueError>default_ : default_ : <ValueError>deferredMappingCudaArraySupported : deferredMappingCudaArraySupported : <ValueError>depth : depth : <ValueError>desc :\ndesc : <ValueError>devNode : devNode : <ValueError>devPtr : devPtr : <ValueError>device : deviceNumaConfig : deviceNumaConfig : <ValueError>deviceNumaId : deviceNumaId : <ValueError>devicePointer : devicePointer : <ValueError>deviceUpdatable : deviceUpdatableKernelNode :\ndeviceUpdatableKernelNode : <ValueError>deviceUpdatable : <ValueError>device : <ValueError>directManagedMemAccessFromHost : directManagedMemAccessFromHost : <ValueError>disabledisableTrilinearOptimization : disableTrilinearOptimization : <ValueError>dptr : dptr : <ValueError>dst : dstArray : dstArray : <ValueError>dstDevice : dstDevice : <ValueError>dstLocHint :\ndstLocHint : <ValueError>dstPos :\ndstPos : <ValueError>dstPtr :\ndstPtr : <ValueError>dst :\ndst : <ValueError>eglColorFormat : eglColorFormat : <ValueError>elementSize : elementSize : <ValueError>enableer""rNode_out : errNode_out : <ValueError>errorFromNode : errorFromNode : <ValueError>errorNode : errorNode : <ValueError>event : eventRecord :\neventRecord : <ValueError>eventWait :\neventWait : <ValueError>event : <ValueError>extSemArray : extSemArray : <ValueError>extSemSignal :\nextSemSignal : <ValueError>extSemWait :\nextSemWait : <ValueError>extent :\nextent : <ValueError>extra : extra : <ValueError>f : f : <ValueError>fd : fd : <ValueError>fence : fence :\nfence : <ValueError>field : field : <ValueError>filterMode : filterMode : <ValueError>firstLayer : firstLayer : <ValueError>firstMipmapLevel : firstMipmapLevel : <ValueError>flags : flags : <ValueError>fn : fn : <ValueError>formatDesc :\nformatDesc : <ValueError>format : format : <ValueError>frame :\nframeType : frameType : <ValueError>frame : <ValueError>free :\nfree : <ValueError>from_port : from_port : <ValueError>func : func : <ValueError>functionTable : functionTable : <ValueError>functionWindowSize : functionWindowSize : <ValueError>gcglobalL1CacheSupported : globalL1CacheSupported : <ValueError>gpuDirectRDMAFlushWritesOptions : gpuDirectRDMAFlushWritesOptions : <ValueError>gpuDirectRDMASupported : gpuDirectRDMASupported : <ValueError>gpuDirectRDMAWritesOrdering : gpuDirectRDMAWritesOrdering : <ValueError>gpuPciDeviceID : gpuPciDeviceID : <ValueError>gpuPciSubsystemID : gpuPciSubsystemID : <ValueError>graph : graph :\ngraph : <ValueError>gridDim :\ngridDim : <ValueError>handle : handleTypes : handleTypes : <ValueError>handle :\nhandle : <ValueError>height : height : <ValueError>hitProp : hitProp : <ValueError>hitRatio : hitRatio : <ValueError>host :\nhostNativeAtomicSupported : hostNativeAtomicSupported : <ValueError>hostNumaId : hostNumaId : <ValueError>hostNumaMultinodeIpcSupported : hostNumaMultinodeIpcSupported : <ValueError>hostPointer : hostPointer : <ValueError>hostRegisterReadOnlySupported : hostRegisterReadOnlySupported : <ValueError>hostRegisterSupported : hostRegisterSupported : <ValueError>hos""t : <ValueError>id : id : <ValueError>\n    impl_private CUDA error types\n    info :\ninfo : <ValueError>integrated : integrated : <ValueError>_internal_padding : _internal_padding : <ValueError>_internal_padding length must be 92, is ipcEventSupported : ipcEventSupported : <ValueError>isEnabled : isEnabled : <ValueError>isMultiGpuBoard : isMultiGpuBoard : <ValueError>isenabledkernel :\nkernelParams : kernelParams : <ValueError>kernel : <ValueError>key : key : <ValueError>keyedMutex :\nkeyedMutex : <ValueError>kind : kind : <ValueError>l2CacheSize : l2CacheSize : <ValueError>lastLayer : lastLayer : <ValueError>lastMipmapLevel : lastMipmapLevel : <ValueError>launchCompletionEvent :\nlaunchCompletionEvent : <ValueError>layerHeight : layerHeight : <ValueError>linear :\nlinear : <ValueError>locHint :\nlocHint : <ValueError>localL1CacheSupported : localL1CacheSupported : <ValueError>localSizeBytes : localSizeBytes : <ValueError>location :\nlocation : <ValueError>luid : luidDeviceNodeMask : luidDeviceNodeMask : <ValueError>luid : <ValueError>luid length must be 8, is major : major : <ValueError>managedMemory : managedMemory : <ValueError>maxAnisotropy : maxAnisotropy : <ValueError>maxBlocksPerMultiProcessor : maxBlocksPerMultiProcessor : <ValueError>maxDynamicSharedSizeBytes : maxDynamicSharedSizeBytes : <ValueError>maxGridSize : maxGridSize : <ValueError>maxMipmapLevelClamp : maxMipmapLevelClamp : <ValueError>maxSize : maxSize : <ValueError>maxSurface1D : maxSurface1DLayered : maxSurface1DLayered : <ValueError>maxSurface1D : <ValueError>maxSurface2D : maxSurface2DLayered : maxSurface2DLayered : <ValueError>maxSurface2D : <ValueError>maxSurface3D : maxSurface3D : <ValueError>maxSurfaceCubemap : maxSurfaceCubemapLayered : maxSurfaceCubemapLayered : <ValueError>maxSurfaceCubemap : <ValueError>maxTexture1D : maxTexture1DLayered : maxTexture1DLayered : <ValueError>maxTexture1DMipmap : maxTexture1DMipmap : <ValueError>maxTexture1D : <ValueError>maxTexture2D : maxTexture2DGath""er : maxTexture2DGather : <ValueError>maxTexture2DLayered : maxTexture2DLayered : <ValueError>maxTexture2DLinear : maxTexture2DLinear : <ValueError>maxTexture2DMipmap : maxTexture2DMipmap : <ValueError>maxTexture2D : <ValueError>maxTexture3D : maxTexture3DAlt : maxTexture3DAlt : <ValueError>maxTexture3D : <ValueError>maxTextureCubemap : maxTextureCubemapLayered : maxTextureCubemapLayered : <ValueError>maxTextureCubemap : <ValueError>maxThreadsDim : maxThreadsDim : <ValueError>maxThreadsPerBlock : maxThreadsPerBlock : <ValueError>maxThreadsPerMultiProcessor : maxThreadsPerMultiProcessor : <ValueError>memPitch : memPitch : <ValueError>memSyncDomain : memSyncDomainMap :\nmemSyncDomainMap : <ValueError>memSyncDomain : <ValueError>memcpy :\nmemcpy : <ValueError>memoryBusWidth : memoryBusWidth : <ValueError>memoryPoolSupportedHandleTypes : memoryPoolSupportedHandleTypes : <ValueError>memoryPoolsSupported : memoryPoolsSupported : <ValueError>memset :\nmemset : <ValueError>minMipmapLevelClamp : minMipmapLevelClamp : <ValueError>minSmPartitionSize : minSmPartitionSize : <ValueError>minor : minor : <ValueError>mipmap : mipmapFilterMode : mipmapFilterMode : <ValueError>mipmapLevelBias : mipmapLevelBias : <ValueError>mipmap :\nmipmap : <ValueError>miptailFirstLevel : miptailFirstLevel : <ValueError>miptailSize : miptailSize : <ValueError>missProp : missProp : <ValueError>mpsEnabled : mpsEnabled : <ValueError>multiGpuBoardGroupID : multiGpuBoardGroupID : <ValueError>multiProcessorCount : multiProcessorCount : <ValueError>name : name : <ValueError>nextResource : nextResource : <ValueError>no default __reduce__ due to non-trivial __cinit__node : node : <ValueError>nonPortableClusterSizeAllowed : nonPortableClusterSizeAllowed : <ValueError>normalizedCoords : normalizedCoords : <ValueError>not enough values found during array assignment, expected 3, gotnumChannels : numChannels : <ValueError>numExtSems : numExtSems : <ValueError>numLevels : numLevels : <ValueError>numRegs : numRegs "": <ValueError>num_bytes : num_bytes : <ValueError>nvSciBufObject : nvSciBufObject : <ValueError>nvSciSync :\nnvSciSyncObj : nvSciSyncObj : <ValueError>nvSciSync : <ValueError>nvlinkUtilCentricScheduling : nvlinkUtilCentricScheduling : <ValueError>offset :\noffset : offset : <ValueError>op :\nop : <ValueError>overBudget :\noverBudget : <ValueError>_oversize : _oversize : <ValueError>_oversize length must be 40, is ownership : ownership : <ValueError>pArray : pArray : <ValueError>pPitch :\npPitch : <ValueError>pValue : pValue : <ValueError>pad : pad : <ValueError>pad length must be 64, is pageableMemoryAccess : pageableMemoryAccessUsesHostPageTables : pageableMemoryAccessUsesHostPageTables : <ValueError>pageableMemoryAccess : <ValueError>param :\nparam : <ValueError>params :\nparamsArray : paramsArray : <ValueError>params : <ValueError>pciBusID : pciBusID : <ValueError>pciDeviceID : pciDeviceID : <ValueError>pciDomainID : pciDomainID : <ValueError>persistingL2CacheMaxSize : persistingL2CacheMaxSize : <ValueError>phGraph_out : phGraph_out : <ValueError>pitch : pitch2D :\npitch2D : <ValueError>pitchInBytes : pitchInBytes : <ValueError>pitch : <ValueError>planeCount : planeCount : <ValueError>planeDesc :\nplaneDesc : <ValueError>poolProps :\npoolProps : <ValueError>preferredClusterDim :\npreferredClusterDim : <ValueError>preferredCoscheduledSmCount : preferredCoscheduledSmCount : <ValueError>preferredShmemCarveout : preferredShmemCarveout : <ValueError>priority : priority : <ValueError>programmaticEvent :\nprogrammaticEvent : <ValueError>programmaticStreamSerializationAllowed : programmaticStreamSerializationAllowed : <ValueError>ptr : ptr :\nptr : <ValueError>ptxVersion : ptxVersion : <ValueError>readMode : readMode : <ValueError>regsPerBlock : regsPerBlock : <ValueError>regsPerMultiprocessor : regsPerMultiprocessor : <ValueError>remote : remote : <ValueError>requiredClusterDepth : requiredClusterDepth : <ValueError>requiredClusterHeight : requiredClusterHeight : <Value""Error>requiredClusterWidth : requiredClusterWidth : <ValueError>res :\nresType : resType : <ValueError>res : <ValueError>reserved : reserved0 : reserved0 : <ValueError>reserved1 : reserved1 : <ValueError>reserved2 : reserved2 : <ValueError>reservedSharedMemPerBlock : reservedSharedMemPerBlock : <ValueError>reserved :\nreserved : <ValueError>reserved length must be 40, is reserved length must be 54, is reserved length must be 5, is reserved length must be 64, is result : result : <ValueError>result_out : result_out : <ValueError>rowLength : rowLength : <ValueError>sRGB : sRGB : <ValueError>seamlessCubemap : seamlessCubemap : <ValueError>self._allocated cannot be converted to a Python object for picklingsharedMemBytes : sharedMemBytes : <ValueError>sharedMemCarveout : sharedMemCarveout : <ValueError>sharedMemPerBlock : sharedMemPerBlockOptin : sharedMemPerBlockOptin : <ValueError>sharedMemPerBlock : <ValueError>sharedMemPerMultiprocessor : sharedMemPerMultiprocessor : <ValueError>sharedSizeBytes : sharedSizeBytes : <ValueError>sharingScope : sharingScope : <ValueError>size : sizeInBytes : sizeInBytes : <ValueError>size : <ValueError>sm :\nsmCoscheduledAlignment : smCoscheduledAlignment : <ValueError>smCount : smCount : <ValueError>sm : <ValueError>sparseCudaArraySupported : sparseCudaArraySupported : <ValueError>src :\nsrcAccessOrder : srcAccessOrder : <ValueError>srcArray : srcArray : <ValueError>srcDevice : srcDevice : <ValueError>srcLocHint :\nsrcLocHint : <ValueError>srcPos :\nsrcPos : <ValueError>srcPtr :\nsrcPtr : <ValueError>src : <ValueError>streamPrioritiesSupported : streamPrioritiesSupported : <ValueError><stringsource>surfaceAlignment : surfaceAlignment : <ValueError>syncPolicy : syncPolicy : <ValueError>tccDriver : tccDriver : <ValueError>textureAlignment : textureAlignment : <ValueError>texturePitchAlignment : texturePitchAlignment : <ValueError>tileExtent :\ntileExtent : <ValueError>timelineSemaphoreInteropSupported : timelineSemaphoreInteropSupported :"" <ValueError>timeoutMs : timeoutMs : <ValueError>to_port : to_port : <ValueError>totalConstMem : totalConstMem : <ValueError>totalGlobalMem : totalGlobalMem : <ValueError>triggerAtBlockStart : triggerAtBlockStart : <ValueError>tuple[int] | list[int]type : type : <ValueError>unifiedAddressing : unifiedAddressing : <ValueError>unifiedFunctionPointers : unifiedFunctionPointers : <ValueError>updateData :\nupdateData : <ValueError>uploadStream : uploadStream : <ValueError>usage : usage : <ValueError>userData : userData : <ValueError>utf-8uuid :\nuuid : <ValueError>val :\nval : <ValueError>value : value : <ValueError>w : w : <ValueError>warpSize : warpSize : <ValueError>width : width : <ValueError>win32 :\nwin32SecurityAttributes : win32SecurityAttributes : <ValueError>win32 : <ValueError>wq :\nwqConcurrencyLimit : wqConcurrencyLimit : <ValueError>wqConfig :\nwqConfig : <ValueError>wq : <ValueError>x : x : <ValueError>xsize : xsize : <ValueError>y : y : <ValueError>ysize : ysize : <ValueError>z : z : <ValueError>Any__CUDART_API_VERSIONCUDART_VERSIONCUDA_C_16BFCUDA_C_16FCUDA_C_16ICUDA_C_16UCUDA_C_32FCUDA_C_32ICUDA_C_32UCUDA_C_4ICUDA_C_4UCUDA_C_64FCUDA_C_64ICUDA_C_64UCUDA_C_8ICUDA_C_8UCUDA_EGL_MAX_PLANESCUDA_EMULATION_MANTISSA_CONTROL_DYNAMICCUDA_EMULATION_MANTISSA_CONTROL_FIXEDCUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONECUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITYCUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NANCUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULTCUDA_EMULATION_STRATEGY_DEFAULTCUDA_EMULATION_STRATEGY_EAGERCUDA_EMULATION_STRATEGY_PERFORMANTCUDA_IPC_HANDLE_SIZECUDA_POINTER_ATTRIBUTE_P2P_TOKENSCUDA_R_16BFCUDA_R_16FCUDA_R_16ICUDA_R_16UCUDA_R_32FCUDA_R_32ICUDA_R_32UCUDA_R_4F_E2M1CUDA_R_4ICUDA_R_4UCUDA_R_64FCUDA_R_64ICUDA_R_64UCUDA_R_6F_E2M3CUDA_R_6F_E3M2CUDA_R_8F_E4M3CUDA_R_8F_E5M2CUDA_R_8F_UE4M3CUDA_R_8F_UE8M0CUDA_R_8ICUDA_R_8UCUcontextCUdeviceptrCUmemFabricHandleCUmemoryPoolCUuuidCUuuid_stCUuuid_st.__reduce_cython__CUuuid_st.__setstate_cython__CUuuid_st.getPtrECCEnabledEGLIm""ageKHREGLImageKHR.__reduce_cython__EGLImageKHR.__setstate_cython__EGLImageKHR.getPtrEGLImageKHR_getterEGLStreamKHREGLStreamKHR.__reduce_cython__EGLStreamKHR.__setstate_cython__EGLStreamKHR.getPtrEGLStreamKHR_getterEGLSyncKHREGLSyncKHR.__reduce_cython__EGLSyncKHR.__setstate_cython__EGLSyncKHR.getPtrEGLSyncKHR_getterEGLintEGLint.__reduce_cython__EGLint.__setstate_cython__EGLint.getPtr_EnumEnumGLenumGLenum.__reduce_cython__GLenum.__setstate_cython__GLenum.getPtrGLuintGLuint.__reduce_cython__GLuint.__setstate_cython__GLuint.getPtr_HelperCUcoredumpSettings_HelperCUcoredumpSettings.__reduce_cython___HelperCUcoredumpSettings.__setstate_cython___HelperCUcoredumpSettings.pyObj_HelperCUcoredumpSettings.size_HelperCUgraphMem_attribute_HelperCUgraphMem_attribute.__reduce_cython___HelperCUgraphMem_attribute.__setstate_cython___HelperCUgraphMem_attribute.pyObj_HelperCUjit_option_HelperCUjit_option.__reduce_cython___HelperCUjit_option.__setstate_cython___HelperCUlibraryOption_HelperCUlibraryOption.__reduce_cython___HelperCUlibraryOption.__setstate_cython___HelperCUmemAllocationHandleType_HelperCUmemAllocationHandleType.pyObj_HelperCUmemAllocationHandleType.__reduce_cython___HelperCUmemAllocationHandleType.__setstate_cython___HelperCUmemPool_attribute_HelperCUmemPool_attribute.__reduce_cython___HelperCUmemPool_attribute.__setstate_cython___HelperCUmemPool_attribute.pyObj_HelperCUmem_range_attribute_HelperCUmem_range_attribute.__reduce_cython___HelperCUmem_range_attribute.__setstate_cython___HelperCUmem_range_attribute.pyObj_HelperCUpointer_attribute_HelperCUpointer_attribute.__reduce_cython___HelperCUpointer_attribute.__setstate_cython___HelperCUpointer_attribute.pyObj_HelperCudaJitOption_HelperCudaJitOption.__reduce_cython___HelperCudaJitOption.__setstate_cython___HelperCudaLibraryOption_HelperCudaLibraryOption.__reduce_cython___HelperCudaLibraryOption.__setstate_cython___HelperInputVoidPtr_HelperInputVoidPtr.__reduce_cython___HelperInputVoidPtr.__setstate_cython___HelperKernelPar""ams_HelperKernelParams.__reduce_cython___HelperKernelParams.__setstate_cython___HelperKernelParams.<lambda>_InputVoidPtrPtrHelper_InputVoidPtrPtrHelper.__reduce_cython___InputVoidPtrPtrHelper.__setstate_cython__IntEnumMAJOR_VERSIONMINOR_VERSIONOptionalPATCH_LEVEL__Pyx_PyDict_NextRefStructureVdpDeviceVdpDevice.__reduce_cython__VdpDevice.__setstate_cython__VdpDevice.getPtrVdpGetProcAddressVdpGetProcAddress.__reduce_cython__VdpGetProcAddress.__setstate_cython__VdpGetProcAddress.getPtrVdpOutputSurfaceVdpOutputSurface.__reduce_cython__VdpOutputSurface.__setstate_cython__VdpOutputSurface.getPtrVdpVideoSurfaceVdpVideoSurface.__reduce_cython__VdpVideoSurface.__setstate_cython__VdpVideoSurface.getPtraccessDescCountaccessDescsaccessPolicyMaxWindowSizeaccessPolicyWindow_add_cuda_native_handle_getter_add_native_handle_getters.<locals>.cudaDevResourceDesc_t_getter_add_native_handle_getters.<locals>.cudaExternalMemory_t_getter_add_native_handle_getters.<locals>.cudaExternalSemaphore_t_getter_add_native_handle_getters.<locals>.cudaGraph_t_getter_add_native_handle_getters.<locals>.cudaGraphNode_t_getter_add_native_handle_getters.<locals>.cudaUserObject_t_getter_add_native_handle_getters.<locals>.cudaFunction_t_getter_add_native_handle_getters.<locals>.cudaKernel_t_getter_add_native_handle_getters.<locals>.cudaLibrary_t_getter_add_native_handle_getters.<locals>.cudaMemPool_t_getter_add_native_handle_getters.<locals>.cudaGraphExec_t_getter_add_native_handle_getters.<locals>.cudaExecutionContext_t_getter_add_native_handle_getters.<locals>.cudaGraphDeviceNode_t_getter_add_native_handle_getters.<locals>.cudaAsyncCallbackHandle_t_getter_add_native_handle_getters.<locals>.cudaLogsCallbackHandle_getter_add_native_handle_getters.<locals>.EGLImageKHR_getter_add_native_handle_getters.<locals>.EGLStreamKHR_getter_add_native_handle_getters.<locals>.EGLSyncKHR_getter_add_native_handle_getters.<locals>.cudaEglStreamConnection_getter_add_native_handle_getters.<locals>.cudaArray_t_getter_add_native""_handle_getters.<locals>.cudaArray_const_t_getter_add_native_handle_getters.<locals>.cudaMipmappedArray_t_getter_add_native_handle_getters.<locals>.cudaMipmappedArray_const_t_getter_add_native_handle_getters.<locals>.cudaStream_t_getter_add_native_handle_getters.<locals>.cudaEvent_t_getter_add_native_handle_getters.<locals>.cudaGraphicsResource_t_getteraddressModeaddressofadvicealignmentallocTypeallocanon_struct0anon_struct0.__reduce_cython__anon_struct0.__setstate_cython__anon_struct0.getPtranon_struct1anon_struct10anon_struct10.__reduce_cython__anon_struct10.__setstate_cython__anon_struct10.getPtranon_struct11anon_struct11.__reduce_cython__anon_struct11.__setstate_cython__anon_struct11.getPtranon_struct12anon_struct12.__reduce_cython__anon_struct12.__setstate_cython__anon_struct12.getPtranon_struct13anon_struct13.__reduce_cython__anon_struct13.__setstate_cython__anon_struct13.getPtranon_struct14anon_struct14.__reduce_cython__anon_struct14.__setstate_cython__anon_struct14.getPtranon_struct15anon_struct15.__reduce_cython__anon_struct15.__setstate_cython__anon_struct15.getPtranon_struct16anon_struct16.__reduce_cython__anon_struct16.__setstate_cython__anon_struct16.getPtranon_struct17anon_struct17.__reduce_cython__anon_struct17.__setstate_cython__anon_struct17.getPtranon_struct18anon_struct18.__reduce_cython__anon_struct18.__setstate_cython__anon_struct18.getPtranon_struct19anon_struct19.__reduce_cython__anon_struct19.__setstate_cython__anon_struct19.getPtranon_struct1.__reduce_cython__anon_struct1.__setstate_cython__anon_struct1.getPtranon_struct2anon_struct20anon_struct20.__reduce_cython__anon_struct20.__setstate_cython__anon_struct20.getPtranon_struct21anon_struct21.__reduce_cython__anon_struct21.__setstate_cython__anon_struct21.getPtranon_struct22anon_struct22.__reduce_cython__anon_struct22.__setstate_cython__anon_struct22.getPtranon_struct2.__reduce_cython__anon_struct2.__setstate_cython__anon_struct2.getPtranon_struct3anon_struct3.__reduce_cython__anon_struct3._""_setstate_cython__anon_struct3.getPtranon_struct4anon_struct4.__reduce_cython__anon_struct4.__setstate_cython__anon_struct4.getPtranon_struct5anon_struct5.__reduce_cython__anon_struct5.__setstate_cython__anon_struct5.getPtranon_struct6anon_struct6.__reduce_cython__anon_struct6.__setstate_cython__anon_struct6.getPtranon_struct7anon_struct7.__reduce_cython__anon_struct7.__setstate_cython__anon_struct7.getPtranon_struct8anon_struct8.__reduce_cython__anon_struct8.__setstate_cython__anon_struct8.getPtranon_struct9anon_struct9.__reduce_cython__anon_struct9.__setstate_cython__anon_struct9.getPtranon_union0anon_union0.__reduce_cython__anon_union0.__setstate_cython__anon_union0.getPtranon_union1anon_union10anon_union10.__reduce_cython__anon_union10.__setstate_cython__anon_union10.getPtranon_union1.__reduce_cython__anon_union1.__setstate_cython__anon_union1.getPtranon_union2anon_union2.__reduce_cython__anon_union2.__setstate_cython__anon_union2.getPtranon_union3anon_union3.__reduce_cython__anon_union3.__setstate_cython__anon_union3.getPtranon_union4anon_union4.__reduce_cython__anon_union4.__setstate_cython__anon_union4.getPtranon_union5anon_union5.__reduce_cython__anon_union5.__setstate_cython__anon_union5.getPtranon_union8anon_union8.__reduce_cython__anon_union8.__setstate_cython__anon_union8.getPtranon_union9anon_union9.__reduce_cython__anon_union9.__setstate_cython__anon_union9.getPtrarrayIndexarrayasyncEngineCountasyncio.coroutinesattrattributeattributesattrsattrsIdxsbase_ptrbinaryVersionbindingsblockDimblockSizeborderColorbufferbufferDescbytesOverBudgetbytesbytesizec_boolc_bytec_charc_doublec_floatc_intc_longc_longlongc_shortc_size_tc_ubytec_uintc_ulongc_ulonglongc_ushortc_void_pc_wcharcacheConfigcacheModeCAcallbackcallbackFunccallback_outcanAccessPeercanMapHostMemorycanUseHostPointerForRegisteredMemcaptureStatus_outcbDatachannelDescchildGraphckernelParams__class_getitem__cline_in_tracebackclonedGraphcloseclusterDimMustBeSetclusterDimclusterLaunchclusterSchedulingPolicyP""referencecodecomputePreemptionSupportedconcurrentKernelsconcurrentManagedAccessconditionalconfigconnconstSizeBytescooperativeLaunchcooperativecopyParamscoscheduledSmCountcountcptrctxIdctx_ctypesctypescudacudaAccessPolicyWindowcudaAccessPolicyWindow.__reduce_cython__cudaAccessPolicyWindow.__setstate_cython__cudaAccessPolicyWindow.getPtrcudaAccessPropertycudaAccessPropertyNormalcudaAccessPropertyPersistingcudaAccessPropertyStreamingcudaAddressModeBordercudaAddressModeClampcudaAddressModeMirrorcudaAddressModeWrapcudaArrayColorAttachmentcudaArrayCubemapcudaArrayDefaultcudaArrayDeferredMappingcudaArrayGetInfocudaArrayGetMemoryRequirementscudaArrayGetPlanecudaArrayGetSparsePropertiescudaArrayLayeredcudaArrayMemoryRequirementscudaArrayMemoryRequirements.__reduce_cython__cudaArrayMemoryRequirements.__setstate_cython__cudaArrayMemoryRequirements.getPtrcudaArraySparsecudaArraySparsePropertiescudaArraySparsePropertiesSingleMipTailcudaArraySparseProperties.__reduce_cython__cudaArraySparseProperties.__setstate_cython__cudaArraySparseProperties.getPtrcudaArraySurfaceLoadStorecudaArrayTextureGathercudaArray_const_tcudaArray_const_t.__reduce_cython__cudaArray_const_t.__setstate_cython__cudaArray_const_t.getPtrcudaArray_const_t_gettercudaArray_tcudaArray_t.__reduce_cython__cudaArray_t.__setstate_cython__cudaArray_t.getPtrcudaArray_t_gettercudaAsyncCallbackHandle_tcudaAsyncCallbackHandle_t.__reduce_cython__cudaAsyncCallbackHandle_t.__setstate_cython__cudaAsyncCallbackHandle_t.getPtrcudaAsyncCallbackHandle_t_gettercudaAsyncCallbackcudaAsyncCallback.__reduce_cython__cudaAsyncCallback.__setstate_cython__cudaAsyncCallback.getPtrcudaAsyncNotificationInfocudaAsyncNotificationInfo.__reduce_cython__cudaAsyncNotificationInfo.__setstate_cython__cudaAsyncNotificationInfo.getPtrcudaAsyncNotificationInfo_tcudaAsyncNotificationTypecudaAsyncNotificationTypeOverBudgetcudaAtomicOperationcudaAtomicOperationAndcudaAtomicOperationCAScudaAtomicOperationCapabilitycudaAtomicOperationExchangecudaAtomicOpera""tionFloatAddcudaAtomicOperationFloatMaxcudaAtomicOperationFloatMincudaAtomicOperationIntegerAddcudaAtomicOperationIntegerDecrementcudaAtomicOperationIntegerIncrementcudaAtomicOperationIntegerMaxcudaAtomicOperationIntegerMincudaAtomicOperationOrcudaAtomicOperationXORcudaBindingsRuntimeGlobalcudaBindingsRuntimeGlobal.__reduce_cython__cudaBindingsRuntimeGlobal.__setstate_cython__cudaBoundaryModeClampcudaBoundaryModeTrapcudaBoundaryModeZerocudaCGScopecudaCGScopeGridcudaCGScopeInvalidcudaCGScopeReservedcudaChannelFormatDesccudaChannelFormatDesc.__reduce_cython__cudaChannelFormatDesc.__setstate_cython__cudaChannelFormatDesc.getPtrcudaChannelFormatKindcudaChannelFormatKindFloatcudaChannelFormatKindNV12cudaChannelFormatKindNonecudaChannelFormatKindSignedcudaChannelFormatKindSignedBlockCompressed4cudaChannelFormatKindSignedBlockCompressed5cudaChannelFormatKindSignedBlockCompressed6HcudaChannelFormatKindSignedNormalized8X1cudaChannelFormatKindSignedNormalized8X2cudaChannelFormatKindSignedNormalized8X4cudaChannelFormatKindSignedNormalized16X1cudaChannelFormatKindSignedNormalized16X2cudaChannelFormatKindSignedNormalized16X4cudaChannelFormatKindUnsignedcudaChannelFormatKindUnsignedBlockCompressed1cudaChannelFormatKindUnsignedBlockCompressed7cudaChannelFormatKindUnsignedBlockCompressed7SRGBcudaChannelFormatKindUnsignedBlockCompressed1SRGBcudaChannelFormatKindUnsignedBlockCompressed2cudaChannelFormatKindUnsignedBlockCompressed2SRGBcudaChannelFormatKindUnsignedBlockCompressed3cudaChannelFormatKindUnsignedBlockCompressed3SRGBcudaChannelFormatKindUnsignedBlockCompressed4cudaChannelFormatKindUnsignedBlockCompressed5cudaChannelFormatKindUnsignedBlockCompressed6HcudaChannelFormatKindUnsignedNormalized8X1cudaChannelFormatKindUnsignedNormalized8X2cudaChannelFormatKindUnsignedNormalized8X4cudaChannelFormatKindUnsignedNormalized16X1cudaChannelFormatKindUnsignedNormalized16X2cudaChannelFormatKindUnsignedNormalized16X4cudaChannelFormatKindUnsignedNormalized1010102cudaChildGraphNodeParamscudaC""hildGraphNodeParams.__reduce_cython__cudaChildGraphNodeParams.__setstate_cython__cudaChildGraphNodeParams.getPtrcudaChooseDevicecudaClusterSchedulingPolicycudaClusterSchedulingPolicyDefaultcudaClusterSchedulingPolicyLoadBalancingcudaClusterSchedulingPolicySpreadcudaComputeModecudaComputeModeDefaultcudaComputeModeExclusivecudaComputeModeExclusiveProcesscudaComputeModeProhibitedcudaConditionalNodeParamscudaConditionalNodeParams.__reduce_cython__cudaConditionalNodeParams.__setstate_cython__cudaConditionalNodeParams.getPtrcudaCpuDeviceIdcudaCreateChannelDesccudaCreateSurfaceObjectcudaCreateTextureObjectcudaCtxResetPersistingL2CachecudaDataTypecudaDestroyExternalMemorycudaDestroyExternalSemaphorecudaDestroySurfaceObjectcudaDestroyTextureObjectcudaDevAttrAsyncEngineCountcudaDevAttrCanFlushRemoteWritescudaDevAttrCanMapHostMemorycudaDevAttrCanUseHostPointerForRegisteredMemcudaDevAttrClockRatecudaDevAttrClusterLaunchcudaDevAttrComputeCapabilityMajorcudaDevAttrComputeCapabilityMinorcudaDevAttrComputeModecudaDevAttrComputePreemptionSupportedcudaDevAttrConcurrentKernelscudaDevAttrConcurrentManagedAccesscudaDevAttrCooperativeLaunchcudaDevAttrD3D12CigSupportedcudaDevAttrDeferredMappingCudaArraySupportedcudaDevAttrDirectManagedMemAccessFromHostcudaDevAttrEccEnabledcudaDevAttrGPUDirectRDMAFlushWritesOptionscudaDevAttrGPUDirectRDMASupportedcudaDevAttrGPUDirectRDMAWritesOrderingcudaDevAttrGlobalL1CacheSupportedcudaDevAttrGlobalMemoryBusWidthcudaDevAttrGpuOverlapcudaDevAttrGpuPciDeviceIdcudaDevAttrGpuPciSubsystemIdcudaDevAttrHostMemoryPoolsSupportedcudaDevAttrHostNativeAtomicSupportedcudaDevAttrHostNumaIdcudaDevAttrHostNumaMemoryPoolsSupportedcudaDevAttrHostNumaMultinodeIpcSupportedcudaDevAttrHostRegisterReadOnlySupportedcudaDevAttrHostRegisterSupportedcudaDevAttrIntegratedcudaDevAttrIpcEventSupportcudaDevAttrIsMultiGpuBoardcudaDevAttrKernelExecTimeoutcudaDevAttrL2CacheSizecudaDevAttrLocalL1CacheSupportedcudaDevAttrManagedMemorycudaDevAttrMaxcudaDevAttrMaxAccessPolicyWindowSizecudaDev""AttrMaxBlockDimXcudaDevAttrMaxBlockDimYcudaDevAttrMaxBlockDimZcudaDevAttrMaxBlocksPerMultiprocessorcudaDevAttrMaxGridDimXcudaDevAttrMaxGridDimYcudaDevAttrMaxGridDimZcudaDevAttrMaxPersistingL2CacheSizecudaDevAttrMaxPitchcudaDevAttrMaxRegistersPerBlockcudaDevAttrMaxRegistersPerMultiprocessorcudaDevAttrMaxSharedMemoryPerBlockcudaDevAttrMaxSharedMemoryPerBlockOptincudaDevAttrMaxSharedMemoryPerMultiprocessorcudaDevAttrMaxSurface1DLayeredLayerscudaDevAttrMaxSurface1DLayeredWidthcudaDevAttrMaxSurface1DWidthcudaDevAttrMaxSurface2DHeightcudaDevAttrMaxSurface2DLayeredHeightcudaDevAttrMaxSurface2DLayeredLayerscudaDevAttrMaxSurface2DLayeredWidthcudaDevAttrMaxSurface2DWidthcudaDevAttrMaxSurface3DDepthcudaDevAttrMaxSurface3DHeightcudaDevAttrMaxSurface3DWidthcudaDevAttrMaxSurfaceCubemapLayeredWidthcudaDevAttrMaxSurfaceCubemapLayeredLayerscudaDevAttrMaxSurfaceCubemapWidthcudaDevAttrMaxTexture1DLayeredLayerscudaDevAttrMaxTexture1DLayeredWidthcudaDevAttrMaxTexture1DLinearWidthcudaDevAttrMaxTexture1DMipmappedWidthcudaDevAttrMaxTexture1DWidthcudaDevAttrMaxTexture2DGatherHeightcudaDevAttrMaxTexture2DGatherWidthcudaDevAttrMaxTexture2DHeightcudaDevAttrMaxTexture2DLayeredHeightcudaDevAttrMaxTexture2DLayeredLayerscudaDevAttrMaxTexture2DLayeredWidthcudaDevAttrMaxTexture2DLinearHeightcudaDevAttrMaxTexture2DLinearPitchcudaDevAttrMaxTexture2DLinearWidthcudaDevAttrMaxTexture2DMipmappedWidthcudaDevAttrMaxTexture2DMipmappedHeightcudaDevAttrMaxTexture2DWidthcudaDevAttrMaxTexture3DDepthcudaDevAttrMaxTexture3DDepthAltcudaDevAttrMaxTexture3DHeightcudaDevAttrMaxTexture3DHeightAltcudaDevAttrMaxTexture3DWidthcudaDevAttrMaxTexture3DWidthAltcudaDevAttrMaxTextureCubemapLayeredWidthcudaDevAttrMaxTextureCubemapLayeredLayerscudaDevAttrMaxTextureCubemapWidthcudaDevAttrMaxThreadsPerBlockcudaDevAttrMaxThreadsPerMultiProcessorcudaDevAttrMemSyncDomainCountcudaDevAttrMemoryClockRatecudaDevAttrMemoryPoolSupportedHandleTypescudaDevAttrMemoryPoolsSupportedcudaDevAttrMpsEnabledcudaDevAttrMultiGpuBoardGroupIDcudaDevAttrM""ultiProcessorCountcudaDevAttrNumaConfigcudaDevAttrNumaIdcudaDevAttrOnlyPartialHostNativeAtomicSupportedcudaDevAttrPageableMemoryAccesscudaDevAttrPageableMemoryAccessUsesHostPageTablescudaDevAttrPciBusIdcudaDevAttrPciDeviceIdcudaDevAttrPciDomainIdcudaDevAttrReserved122cudaDevAttrReserved123cudaDevAttrReserved124cudaDevAttrReserved127cudaDevAttrReserved128cudaDevAttrReserved129cudaDevAttrReserved132cudaDevAttrReserved141cudaDevAttrReserved145cudaDevAttrReserved92cudaDevAttrReserved93cudaDevAttrReserved94cudaDevAttrReserved96cudaDevAttrReservedSharedMemoryPerBlockcudaDevAttrSingleToDoublePrecisionPerfRatiocudaDevAttrSparseCudaArraySupportedcudaDevAttrStreamPrioritiesSupportedcudaDevAttrSurfaceAlignmentcudaDevAttrTccDrivercudaDevAttrTextureAlignmentcudaDevAttrTexturePitchAlignmentcudaDevAttrTimelineSemaphoreInteropSupportedcudaDevAttrTotalConstantMemorycudaDevAttrUnifiedAddressingcudaDevAttrVulkanCigSupportedcudaDevAttrWarpSizecudaDevP2PAttrAccessSupportedcudaDevP2PAttrCudaArrayAccessSupportedcudaDevP2PAttrNativeAtomicSupportedcudaDevP2PAttrOnlyPartialNativeAtomicSupportedcudaDevP2PAttrPerformanceRankcudaDevResourcecudaDevResourceDesc_tcudaDevResourceDesc_t.__reduce_cython__cudaDevResourceDesc_t.__setstate_cython__cudaDevResourceDesc_t.getPtrcudaDevResourceDesc_t_gettercudaDevResourceGenerateDesccudaDevResourceGenerateDesc.<locals>.genexprcudaDevResourceTypecudaDevResourceTypeInvalidcudaDevResourceTypeSmcudaDevResourceTypeWorkqueuecudaDevResourceTypeWorkqueueConfigcudaDevResource_stcudaDevResource_st.__reduce_cython__cudaDevResource_st.__setstate_cython__cudaDevResource_st.getPtrcudaDevSmResourcecudaDevSmResourceGroupBackfillcudaDevSmResourceGroupDefaultcudaDevSmResourceGroupParamscudaDevSmResourceGroupParams_stcudaDevSmResourceGroupParams_st.getPtrcudaDevSmResourceGroupParams_st.__reduce_cython__cudaDevSmResourceGroupParams_st.__setstate_cython__cudaDevSmResourceGroup_flagscudaDevSmResourceSplitcudaDevSmResourceSplitByCountcudaDevSmResourceSplitByCount_flagscudaDevSmRe""sourceSplitIgnoreSmCoschedulingcudaDevSmResourceSplitMaxPotentialClusterSizecudaDevSmResource.__reduce_cython__cudaDevSmResource.__setstate_cython__cudaDevSmResource.getPtrcudaDevWorkqueueConfigResourcecudaDevWorkqueueConfigResource.__reduce_cython__cudaDevWorkqueueConfigResource.__setstate_cython__cudaDevWorkqueueConfigResource.getPtrcudaDevWorkqueueConfigScopecudaDevWorkqueueConfigScopeDeviceCtxcudaDevWorkqueueConfigScopeGreenCtxBalancedcudaDevWorkqueueResourcecudaDevWorkqueueResource.__reduce_cython__cudaDevWorkqueueResource.__setstate_cython__cudaDevWorkqueueResource.getPtrcudaDeviceAttrcudaDeviceBlockingSynccudaDeviceCanAccessPeercudaDeviceCountcudaDeviceDisablePeerAccesscudaDeviceEnablePeerAccesscudaDeviceFlushGPUDirectRDMAWritescudaDeviceGetAttributecudaDeviceGetByPCIBusIdcudaDeviceGetCacheConfigcudaDeviceGetDefaultMemPoolcudaDeviceGetDevResourcecudaDeviceGetExecutionCtxcudaDeviceGetGraphMemAttributecudaDeviceGetHostAtomicCapabilities.<locals>.genexprcudaDeviceGetHostAtomicCapabilitiescudaDeviceGetLimitcudaDeviceGetMemPoolcudaDeviceGetNvSciSyncAttributescudaDeviceGetP2PAtomicCapabilities.<locals>.genexprcudaDeviceGetP2PAtomicCapabilitiescudaDeviceGetP2PAttributecudaDeviceGetPCIBusIdcudaDeviceGetSharedMemConfigcudaDeviceGetStreamPriorityRangecudaDeviceGetTexture1DLinearMaxWidthcudaDeviceGraphMemTrimcudaDeviceLmemResizeToMaxcudaDeviceMapHostcudaDeviceMaskcudaDeviceNumaConfigcudaDeviceNumaConfigNonecudaDeviceNumaConfigNumaNodecudaDeviceP2PAttrcudaDevicePropcudaDeviceProp.__reduce_cython__cudaDeviceProp.__setstate_cython__cudaDeviceProp.getPtrcudaDeviceRegisterAsyncNotificationcudaDeviceResetcudaDeviceScheduleAutocudaDeviceScheduleBlockingSynccudaDeviceScheduleMaskcudaDeviceScheduleSpincudaDeviceScheduleYieldcudaDeviceSetCacheConfigcudaDeviceSetGraphMemAttributecudaDeviceSetLimitcudaDeviceSetMemPoolcudaDeviceSetSharedMemConfigcudaDeviceSyncMemopscudaDeviceSynchronizecudaDeviceUnregisterAsyncNotificationcudaDriverEntryPointQueryResultcudaDriverEntryPointSuccesscud""aDriverEntryPointSymbolNotFoundcudaDriverEntryPointVersionNotSufficentcudaDriverGetVersioncudaEGLStreamConsumerAcquireFramecudaEGLStreamConsumerConnectcudaEGLStreamConsumerConnectWithFlagscudaEGLStreamConsumerDisconnectcudaEGLStreamConsumerReleaseFramecudaEGLStreamProducerConnectcudaEGLStreamProducerDisconnectcudaEGLStreamProducerPresentFramecudaEGLStreamProducerReturnFramecudaEglColorFormatcudaEglColorFormatAcudaEglColorFormatABGRcudaEglColorFormatARGBcudaEglColorFormatAYUVcudaEglColorFormatAYUV_ERcudaEglColorFormatBGRAcudaEglColorFormatBayer10BGGRcudaEglColorFormatBayer10CCCCcudaEglColorFormatBayer10GBRGcudaEglColorFormatBayer10GRBGcudaEglColorFormatBayer10RGGBcudaEglColorFormatBayer12BCCRcudaEglColorFormatBayer12BGGRcudaEglColorFormatBayer12CBRCcudaEglColorFormatBayer12CCCCcudaEglColorFormatBayer12CRBCcudaEglColorFormatBayer12GBRGcudaEglColorFormatBayer12GRBGcudaEglColorFormatBayer12RCCBcudaEglColorFormatBayer12RGGBcudaEglColorFormatBayer14BGGRcudaEglColorFormatBayer14GBRGcudaEglColorFormatBayer14GRBGcudaEglColorFormatBayer14RGGBcudaEglColorFormatBayer20BGGRcudaEglColorFormatBayer20GBRGcudaEglColorFormatBayer20GRBGcudaEglColorFormatBayer20RGGBcudaEglColorFormatBayerBCCRcudaEglColorFormatBayerBGGRcudaEglColorFormatBayerCBRCcudaEglColorFormatBayerCRBCcudaEglColorFormatBayerGBRGcudaEglColorFormatBayerGRBGcudaEglColorFormatBayerIspBGGRcudaEglColorFormatBayerIspGBRGcudaEglColorFormatBayerIspGRBGcudaEglColorFormatBayerIspRGGBcudaEglColorFormatBayerRCCBcudaEglColorFormatBayerRGGBcudaEglColorFormatLcudaEglColorFormatRcudaEglColorFormatRGcudaEglColorFormatRGBAcudaEglColorFormatUYVY2020cudaEglColorFormatUYVY422cudaEglColorFormatUYVY709cudaEglColorFormatUYVY709_ERcudaEglColorFormatUYVY_ERcudaEglColorFormatVYUYcudaEglColorFormatVYUY_ERcudaEglColorFormatYcudaEglColorFormatY10V10U10_420SemiPlanarcudaEglColorFormatY10V10U10_420SemiPlanar_709cudaEglColorFormatY10V10U10_420SemiPlanar_2020cudaEglColorFormatY10V10U10_420SemiPlanar_ERcudaEglColorFormatY10V10U10_420SemiPlanar_709_ERc""udaEglColorFormatY10V10U10_422SemiPlanar_2020cudaEglColorFormatY10V10U10_422SemiPlanarcudaEglColorFormatY10V10U10_422SemiPlanar_709cudaEglColorFormatY10V10U10_444SemiPlanarcudaEglColorFormatY10V10U10_444SemiPlanar_ERcudaEglColorFormatY10V10U10_444SemiPlanar_709_ERcudaEglColorFormatY10_709_ERcudaEglColorFormatY10_ERcudaEglColorFormatY12V12U12_420SemiPlanarcudaEglColorFormatY12V12U12_420SemiPlanar_ERcudaEglColorFormatY12V12U12_420SemiPlanar_709_ERcudaEglColorFormatY12V12U12_444SemiPlanarcudaEglColorFormatY12V12U12_444SemiPlanar_ERcudaEglColorFormatY12V12U12_444SemiPlanar_709_ERcudaEglColorFormatY12_709_ERcudaEglColorFormatY12_ERcudaEglColorFormatYUV420PlanarcudaEglColorFormatYUV420Planar_2020cudaEglColorFormatYUV420Planar_709cudaEglColorFormatYUV420Planar_ERcudaEglColorFormatYUV420SemiPlanarcudaEglColorFormatYUV420SemiPlanar_ERcudaEglColorFormatYUV420SemiPlanar_2020cudaEglColorFormatYUV420SemiPlanar_709cudaEglColorFormatYUV422PlanarcudaEglColorFormatYUV422Planar_ERcudaEglColorFormatYUV422SemiPlanarcudaEglColorFormatYUV422SemiPlanar_ERcudaEglColorFormatYUV444PlanarcudaEglColorFormatYUV444Planar_ERcudaEglColorFormatYUV444SemiPlanarcudaEglColorFormatYUV444SemiPlanar_ERcudaEglColorFormatYUVAcudaEglColorFormatYUVA_ERcudaEglColorFormatYUYV422cudaEglColorFormatYUYV_ERcudaEglColorFormatYVU420PlanarcudaEglColorFormatYVU420Planar_2020cudaEglColorFormatYVU420Planar_709cudaEglColorFormatYVU420Planar_ERcudaEglColorFormatYVU420SemiPlanarcudaEglColorFormatYVU420SemiPlanar_ERcudaEglColorFormatYVU420SemiPlanar_2020cudaEglColorFormatYVU420SemiPlanar_709cudaEglColorFormatYVU422PlanarcudaEglColorFormatYVU422Planar_ERcudaEglColorFormatYVU422SemiPlanarcudaEglColorFormatYVU422SemiPlanar_ERcudaEglColorFormatYVU444PlanarcudaEglColorFormatYVU444Planar_ERcudaEglColorFormatYVU444SemiPlanarcudaEglColorFormatYVU444SemiPlanar_ERcudaEglColorFormatYVYUcudaEglColorFormatYVYU_ERcudaEglColorFormatY_709_ERcudaEglColorFormatY_ERcudaEglFramecudaEglFrameTypecudaEglFrameTypeArraycudaEglFrameTypePitchcudaEglF""rame_stcudaEglFrame_st.__reduce_cython__cudaEglFrame_st.__setstate_cython__cudaEglFrame_st.getPtrcudaEglPlaneDesccudaEglPlaneDesc_stcudaEglPlaneDesc_st.__reduce_cython__cudaEglPlaneDesc_st.__setstate_cython__cudaEglPlaneDesc_st.getPtrcudaEglResourceLocationFlagscudaEglResourceLocationSysmemcudaEglResourceLocationVidmemcudaEglStreamConnectioncudaEglStreamConnection_gettercudaEmulationMantissaControlcudaEmulationSpecialValuesSupportcudaEmulationStrategycudaEnableDefaultcudaEnableLegacyStreamcudaEnablePerThreadDefaultStreamcudaErrorAddressOfConstantcudaErrorAlreadyAcquiredcudaErrorAlreadyMappedcudaErrorApiFailureBasecudaErrorArrayIsMappedcudaErrorAssertcudaErrorCallRequiresNewerDrivercudaErrorCapturedEventcudaErrorCdpNotSupportedcudaErrorCdpVersionMismatchcudaErrorCompatNotSupportedOnDevicecudaErrorContainedcudaErrorContextIsDestroyedcudaErrorCooperativeLaunchTooLargecudaErrorCudartUnloadingcudaErrorDeviceAlreadyInUsecudaErrorDeviceNotLicensedcudaErrorDeviceUninitializedcudaErrorDevicesUnavailablecudaErrorDuplicateSurfaceNamecudaErrorDuplicateTextureNamecudaErrorDuplicateVariableNamecudaErrorECCUncorrectablecudaErrorExternalDevicecudaErrorFileNotFoundcudaErrorFunctionNotLoadedcudaErrorGraphExecUpdateFailurecudaErrorHardwareStackErrorcudaErrorHostMemoryAlreadyRegisteredcudaErrorHostMemoryNotRegisteredcudaErrorIllegalAddresscudaErrorIllegalInstructioncudaErrorIllegalStatecudaErrorIncompatibleDriverContextcudaErrorInitializationErrorcudaErrorInsufficientDrivercudaErrorInvalidAddressSpacecudaErrorInvalidChannelDescriptorcudaErrorInvalidClusterSizecudaErrorInvalidConfigurationcudaErrorInvalidDevicecudaErrorInvalidDeviceFunctioncudaErrorInvalidDevicePointercudaErrorInvalidFilterSettingcudaErrorInvalidGraphicsContextcudaErrorInvalidHostPointercudaErrorInvalidKernelImagecudaErrorInvalidMemcpyDirectioncudaErrorInvalidNormSettingcudaErrorInvalidPccudaErrorInvalidPitchValuecudaErrorInvalidPtxcudaErrorInvalidResourceConfigurationcudaErrorInvalidResourceHandlecudaErrorInvalidResour""ceTypecudaErrorInvalidSourcecudaErrorInvalidSurfacecudaErrorInvalidSymbolcudaErrorInvalidTexturecudaErrorInvalidTextureBindingcudaErrorInvalidValuecudaErrorJitCompilationDisabledcudaErrorJitCompilerNotFoundcudaErrorLaunchFailurecudaErrorLaunchFileScopedSurfcudaErrorLaunchFileScopedTexcudaErrorLaunchIncompatibleTexturingcudaErrorLaunchMaxDepthExceededcudaErrorLaunchOutOfResourcescudaErrorLaunchPendingCountExceededcudaErrorLaunchTimeoutcudaErrorLossyQuerycudaErrorMapBufferObjectFailedcudaErrorMemoryAllocationcudaErrorMemoryValueTooLargecudaErrorMisalignedAddresscudaErrorMissingConfigurationcudaErrorMixedDeviceExecutioncudaErrorMpsClientTerminatedcudaErrorMpsConnectionFailedcudaErrorMpsMaxClientsReachedcudaErrorMpsMaxConnectionsReachedcudaErrorMpsRpcFailurecudaErrorMpsServerNotReadycudaErrorNoDevicecudaErrorNoKernelImageForDevicecudaErrorNotMappedcudaErrorNotMappedAsArraycudaErrorNotMappedAsPointercudaErrorNotPermittedcudaErrorNotReadycudaErrorNotSupportedcudaErrorNotYetImplementedcudaErrorNvlinkUncorrectablecudaErrorOperatingSystemcudaErrorPeerAccessAlreadyEnabledcudaErrorPeerAccessNotEnabledcudaErrorPeerAccessUnsupportedcudaErrorPriorLaunchFailurecudaErrorProfilerAlreadyStartedcudaErrorProfilerAlreadyStoppedcudaErrorProfilerDisabledcudaErrorProfilerNotInitializedcudaErrorSetOnActiveProcesscudaErrorSharedObjectInitFailedcudaErrorSharedObjectSymbolNotFoundcudaErrorSoftwareValidityNotEstablishedcudaErrorStartupFailurecudaErrorStreamCaptureImplicitcudaErrorStreamCaptureInvalidatedcudaErrorStreamCaptureIsolationcudaErrorStreamCaptureMergecudaErrorStreamCaptureUnjoinedcudaErrorStreamCaptureUnmatchedcudaErrorStreamCaptureUnsupportedcudaErrorStreamCaptureWrongThreadcudaErrorStreamDetachedcudaErrorStubLibrarycudaErrorSymbolNotFoundcudaErrorSyncDepthExceededcudaErrorSynchronizationErrorcudaErrorSystemDriverMismatchcudaErrorSystemNotReadycudaErrorTensorMemoryLeakcudaErrorTextureFetchFailedcudaErrorTextureNotBoundcudaErrorTimeoutcudaErrorTooManyPeerscudaErrorUnknowncudaErrorUnma""pBufferObjectFailedcudaErrorUnsupportedDevSideSynccudaErrorUnsupportedExecAffinitycudaErrorUnsupportedLimitcudaErrorUnsupportedPtxVersioncudaError_tcudaEventBlockingSynccudaEventCreatecudaEventCreateFromEGLSynccudaEventCreateWithFlagscudaEventDefaultcudaEventDestroycudaEventDisableTimingcudaEventElapsedTimecudaEventInterprocesscudaEventQuerycudaEventRecordcudaEventRecordDefaultcudaEventRecordExternalcudaEventRecordNodeParamscudaEventRecordNodeParams.__reduce_cython__cudaEventRecordNodeParams.__setstate_cython__cudaEventRecordNodeParams.getPtrcudaEventRecordWithFlagscudaEventSynchronizecudaEventWaitDefaultcudaEventWaitExternalcudaEventWaitNodeParamscudaEventWaitNodeParams.__reduce_cython__cudaEventWaitNodeParams.__setstate_cython__cudaEventWaitNodeParams.getPtrcudaEvent_tcudaEvent_t_gettercudaExecutionContext_tcudaExecutionContext_t.__reduce_cython__cudaExecutionContext_t.__setstate_cython__cudaExecutionContext_t.getPtrcudaExecutionContext_t_gettercudaExecutionCtxDestroycudaExecutionCtxGetDevResourcecudaExecutionCtxGetDevicecudaExecutionCtxGetIdcudaExecutionCtxRecordEventcudaExecutionCtxStreamCreatecudaExecutionCtxSynchronizecudaExecutionCtxWaitEventcudaExtentcudaExtent.__reduce_cython__cudaExtent.__setstate_cython__cudaExtent.getPtrcudaExternalMemoryBufferDesccudaExternalMemoryBufferDesc.__reduce_cython__cudaExternalMemoryBufferDesc.__setstate_cython__cudaExternalMemoryBufferDesc.getPtrcudaExternalMemoryDedicatedcudaExternalMemoryGetMappedBuffercudaExternalMemoryGetMappedMipmappedArraycudaExternalMemoryHandleDesccudaExternalMemoryHandleDesc.__reduce_cython__cudaExternalMemoryHandleDesc.__setstate_cython__cudaExternalMemoryHandleDesc.getPtrcudaExternalMemoryHandleTypecudaExternalMemoryHandleTypeD3D12HeapcudaExternalMemoryHandleTypeD3D12ResourcecudaExternalMemoryHandleTypeD3D11ResourcecudaExternalMemoryHandleTypeD3D11ResourceKmtcudaExternalMemoryHandleTypeNvSciBufcudaExternalMemoryHandleTypeOpaqueFdcudaExternalMemoryHandleTypeOpaqueWin32cudaExternalMemoryHandleTypeOpa""queWin32KmtcudaExternalMemoryMipmappedArrayDesccudaExternalMemoryMipmappedArrayDesc.getPtrcudaExternalMemoryMipmappedArrayDesc.__reduce_cython__cudaExternalMemoryMipmappedArrayDesc.__setstate_cython__cudaExternalMemory_tcudaExternalMemory_t.__reduce_cython__cudaExternalMemory_t.__setstate_cython__cudaExternalMemory_t.getPtrcudaExternalMemory_t_gettercudaExternalSemaphoreHandleDesccudaExternalSemaphoreHandleDesc.getPtrcudaExternalSemaphoreHandleDesc.__reduce_cython__cudaExternalSemaphoreHandleDesc.__setstate_cython__cudaExternalSemaphoreHandleTypecudaExternalSemaphoreHandleTypeD3D12FencecudaExternalSemaphoreHandleTypeD3D11FencecudaExternalSemaphoreHandleTypeKeyedMutexcudaExternalSemaphoreHandleTypeKeyedMutexKmtcudaExternalSemaphoreHandleTypeNvSciSynccudaExternalSemaphoreHandleTypeOpaqueFdcudaExternalSemaphoreHandleTypeOpaqueWin32cudaExternalSemaphoreHandleTypeOpaqueWin32KmtcudaExternalSemaphoreHandleTypeTimelineSemaphoreFdcudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32cudaExternalSemaphoreSignalNodeParamscudaExternalSemaphoreSignalNodeParamsV2cudaExternalSemaphoreSignalNodeParams.getPtrcudaExternalSemaphoreSignalNodeParams.__reduce_cython__cudaExternalSemaphoreSignalNodeParams.__setstate_cython__cudaExternalSemaphoreSignalNodeParamsV2.getPtrcudaExternalSemaphoreSignalNodeParamsV2.__reduce_cython__cudaExternalSemaphoreSignalNodeParamsV2.__setstate_cython__cudaExternalSemaphoreSignalParamscudaExternalSemaphoreSignalParams.getPtrcudaExternalSemaphoreSignalParams.__reduce_cython__cudaExternalSemaphoreSignalParams.__setstate_cython__cudaExternalSemaphoreSignalSkipNvSciBufMemSynccudaExternalSemaphoreWaitNodeParamscudaExternalSemaphoreWaitNodeParamsV2cudaExternalSemaphoreWaitNodeParams.getPtrcudaExternalSemaphoreWaitNodeParams.__reduce_cython__cudaExternalSemaphoreWaitNodeParams.__setstate_cython__cudaExternalSemaphoreWaitNodeParamsV2.getPtrcudaExternalSemaphoreWaitNodeParamsV2.__reduce_cython__cudaExternalSemaphoreWaitNodeParamsV2.__setstate_cython__cudaExternalSemap""horeWaitParamscudaExternalSemaphoreWaitParams.getPtrcudaExternalSemaphoreWaitParams.__reduce_cython__cudaExternalSemaphoreWaitParams.__setstate_cython__cudaExternalSemaphoreWaitSkipNvSciBufMemSynccudaExternalSemaphore_tcudaExternalSemaphore_t.__reduce_cython__cudaExternalSemaphore_t.__setstate_cython__cudaExternalSemaphore_t.getPtrcudaExternalSemaphore_t_gettercudaFilterModeLinearcudaFilterModePointcudaFlushGPUDirectRDMAWritesOptionscudaFlushGPUDirectRDMAWritesOptionHostcudaFlushGPUDirectRDMAWritesOptionMemOpscudaFlushGPUDirectRDMAWritesScopecudaFlushGPUDirectRDMAWritesTargetcudaFlushGPUDirectRDMAWritesTargetCurrentDevicecudaFlushGPUDirectRDMAWritesToAllDevicescudaFlushGPUDirectRDMAWritesToOwnercudaFormatModeAutocudaFormatModeForcedcudaFreecudaFreeArraycudaFreeAsynccudaFreeHostcudaFreeMipmappedArraycudaFuncAttributecudaFuncAttributeClusterDimMustBeSetcudaFuncAttributeClusterSchedulingPolicyPreferencecudaFuncAttributeMaxcudaFuncAttributeMaxDynamicSharedMemorySizecudaFuncAttributeNonPortableClusterSizeAllowedcudaFuncAttributePreferredSharedMemoryCarveoutcudaFuncAttributeRequiredClusterWidthcudaFuncAttributeRequiredClusterHeightcudaFuncAttributeRequiredClusterDepthcudaFuncAttributescudaFuncAttributes.__reduce_cython__cudaFuncAttributes.__setstate_cython__cudaFuncAttributes.getPtrcudaFuncCachecudaFuncCachePreferEqualcudaFuncCachePreferL1cudaFuncCachePreferNonecudaFuncCachePreferSharedcudaFuncGetAttributescudaFuncSetAttributecudaFuncSetCacheConfigcudaFuncSetSharedMemConfigcudaFunction_tcudaFunction_t_gettercudaGLDeviceListcudaGLDeviceListAllcudaGLDeviceListCurrentFramecudaGLDeviceListNextFramecudaGLGetDevicescudaGLMapFlagscudaGLMapFlagsNonecudaGLMapFlagsReadOnlycudaGLMapFlagsWriteDiscardcudaGPUDirectRDMAWritesOrderingcudaGPUDirectRDMAWritesOrderingAllDevicescudaGPUDirectRDMAWritesOrderingNonecudaGPUDirectRDMAWritesOrderingOwnercudaGetChannelDesccudaGetDevicecudaGetDeviceCountcudaGetDeviceFlagscudaGetDevicePropertiescudaGetDriverEntryPointcudaGetDriverEntryPointByVersionc""udaGetDriverEntryPointFlagscudaGetErrorNamecudaGetErrorStringcudaGetExportTablecudaGetKernelcudaGetLastErrorcudaGetMipmappedArrayLevelcudaGetSurfaceObjectResourceDesccudaGetTextureObjectResourceDesccudaGetTextureObjectResourceViewDesccudaGetTextureObjectTextureDesccudaGraphAddChildGraphNodecudaGraphAddChildGraphNode.<locals>.genexprcudaGraphAddDependenciescudaGraphAddDependencies.<locals>.genexprcudaGraphAddEmptyNodecudaGraphAddEmptyNode.<locals>.genexprcudaGraphAddEventRecordNodecudaGraphAddEventRecordNode.<locals>.genexprcudaGraphAddEventWaitNodecudaGraphAddEventWaitNode.<locals>.genexprcudaGraphAddExternalSemaphoresSignalNode.<locals>.genexprcudaGraphAddExternalSemaphoresSignalNodecudaGraphAddExternalSemaphoresWaitNode.<locals>.genexprcudaGraphAddExternalSemaphoresWaitNodecudaGraphAddHostNodecudaGraphAddHostNode.<locals>.genexprcudaGraphAddKernelNodecudaGraphAddKernelNode.<locals>.genexprcudaGraphAddMemAllocNodecudaGraphAddMemAllocNode.<locals>.genexprcudaGraphAddMemFreeNodecudaGraphAddMemFreeNode.<locals>.genexprcudaGraphAddMemcpyNodecudaGraphAddMemcpyNode1DcudaGraphAddMemcpyNode1D.<locals>.genexprcudaGraphAddMemcpyNode.<locals>.genexprcudaGraphAddMemsetNodecudaGraphAddMemsetNode.<locals>.genexprcudaGraphAddNodecudaGraphAddNode.<locals>.genexprcudaGraphChildGraphNodeGetGraphcudaGraphChildGraphNodeOwnershipcudaGraphChildGraphOwnershipClonecudaGraphChildGraphOwnershipMovecudaGraphClonecudaGraphCondAssignDefaultcudaGraphCondTypeIfcudaGraphCondTypeSwitchcudaGraphCondTypeWhilecudaGraphConditionalHandleCreatecudaGraphConditionalHandleCreate_v2cudaGraphConditionalHandleFlagscudaGraphConditionalHandlecudaGraphConditionalHandle.__reduce_cython__cudaGraphConditionalHandle.__setstate_cython__cudaGraphConditionalHandle.getPtrcudaGraphConditionalNodeTypecudaGraphCreatecudaGraphDebugDotFlagscudaGraphDebugDotFlagsConditionalNodeParamscudaGraphDebugDotFlagsEventNodeParamscudaGraphDebugDotFlagsExtSemasSignalNodeParamscudaGraphDebugDotFlagsExtSemasWaitNodeParamscudaGraphDebugDotF""lagsHandlescudaGraphDebugDotFlagsHostNodeParamscudaGraphDebugDotFlagsKernelNodeParamscudaGraphDebugDotFlagsKernelNodeAttributescudaGraphDebugDotFlagsMemcpyNodeParamscudaGraphDebugDotFlagsMemsetNodeParamscudaGraphDebugDotFlagsVerbosecudaGraphDebugDotPrintcudaGraphDependencyTypecudaGraphDependencyTypeDefaultcudaGraphDependencyTypeProgrammaticcudaGraphDestroycudaGraphDestroyNodecudaGraphDeviceNode_tcudaGraphDeviceNode_t.__reduce_cython__cudaGraphDeviceNode_t.__setstate_cython__cudaGraphDeviceNode_t.getPtrcudaGraphDeviceNode_t_gettercudaGraphEdgeDatacudaGraphEdgeData_stcudaGraphEdgeData_st.__reduce_cython__cudaGraphEdgeData_st.__setstate_cython__cudaGraphEdgeData_st.getPtrcudaGraphEventRecordNodeGetEventcudaGraphEventRecordNodeSetEventcudaGraphEventWaitNodeGetEventcudaGraphEventWaitNodeSetEventcudaGraphExecChildGraphNodeSetParamscudaGraphExecDestroycudaGraphExecEventRecordNodeSetEventcudaGraphExecEventWaitNodeSetEventcudaGraphExecExternalSemaphoresSignalNodeSetParamscudaGraphExecExternalSemaphoresWaitNodeSetParamscudaGraphExecGetFlagscudaGraphExecGetIdcudaGraphExecHostNodeSetParamscudaGraphExecKernelNodeSetParamscudaGraphExecMemcpyNodeSetParamscudaGraphExecMemcpyNodeSetParams1DcudaGraphExecMemsetNodeSetParamscudaGraphExecNodeSetParamscudaGraphExecUpdatecudaGraphExecUpdateErrorcudaGraphExecUpdateErrorAttributesChangedcudaGraphExecUpdateErrorFunctionChangedcudaGraphExecUpdateErrorNodeTypeChangedcudaGraphExecUpdateErrorNotSupportedcudaGraphExecUpdateErrorParametersChangedcudaGraphExecUpdateErrorTopologyChangedcudaGraphExecUpdateErrorUnsupportedFunctionChangecudaGraphExecUpdateResultcudaGraphExecUpdateResultInfocudaGraphExecUpdateResultInfo_stcudaGraphExecUpdateResultInfo_st.getPtrcudaGraphExecUpdateResultInfo_st.__reduce_cython__cudaGraphExecUpdateResultInfo_st.__setstate_cython__cudaGraphExecUpdateSuccesscudaGraphExec_tcudaGraphExec_t_gettercudaGraphExternalSemaphoresSignalNodeGetParamscudaGraphExternalSemaphoresSignalNodeSetParamscudaGraphExternalSemaphoresWaitNodeGetPar""amscudaGraphExternalSemaphoresWaitNodeSetParamscudaGraphGetEdgescudaGraphGetIdcudaGraphGetNodescudaGraphGetRootNodescudaGraphHostNodeGetParamscudaGraphHostNodeSetParamscudaGraphInstantiatecudaGraphInstantiateConditionalHandleUnusedcudaGraphInstantiateErrorcudaGraphInstantiateFlagAutoFreeOnLaunchcudaGraphInstantiateFlagDeviceLaunchcudaGraphInstantiateFlagUploadcudaGraphInstantiateFlagUseNodePrioritycudaGraphInstantiateFlagscudaGraphInstantiateInvalidStructurecudaGraphInstantiateMultipleDevicesNotSupportedcudaGraphInstantiateNodeOperationNotSupportedcudaGraphInstantiateParamscudaGraphInstantiateParams_stcudaGraphInstantiateParams_st.__reduce_cython__cudaGraphInstantiateParams_st.__setstate_cython__cudaGraphInstantiateParams_st.getPtrcudaGraphInstantiateResultcudaGraphInstantiateSuccesscudaGraphInstantiateWithFlagscudaGraphInstantiateWithParamscudaGraphKernelNodeCopyAttributescudaGraphKernelNodeFieldcudaGraphKernelNodeFieldEnabledcudaGraphKernelNodeFieldGridDimcudaGraphKernelNodeFieldInvalidcudaGraphKernelNodeFieldParamcudaGraphKernelNodeGetAttributecudaGraphKernelNodeGetParamscudaGraphKernelNodePortDefaultcudaGraphKernelNodePortLaunchCompletioncudaGraphKernelNodePortProgrammaticcudaGraphKernelNodeSetAttributecudaGraphKernelNodeSetParamscudaGraphKernelNodeUpdatecudaGraphKernelNodeUpdate.__reduce_cython__cudaGraphKernelNodeUpdate.__setstate_cython__cudaGraphKernelNodeUpdate.getPtrcudaGraphLaunchcudaGraphMemAllocNodeGetParamscudaGraphMemAttrReservedMemCurrentcudaGraphMemAttrReservedMemHighcudaGraphMemAttrUsedMemCurrentcudaGraphMemAttrUsedMemHighcudaGraphMemAttributeTypecudaGraphMemFreeNodeGetParamscudaGraphMemcpyNodeGetParamscudaGraphMemcpyNodeSetParamscudaGraphMemcpyNodeSetParams1DcudaGraphMemsetNodeGetParamscudaGraphMemsetNodeSetParamscudaGraphNodeFindInClonecudaGraphNodeGetContainingGraphcudaGraphNodeGetDependenciescudaGraphNodeGetDependentNodescudaGraphNodeGetEnabledcudaGraphNodeGetLocalIdcudaGraphNodeGetToolsIdcudaGraphNodeGetTypecudaGraphNodeParamscudaGraphNodePara""ms.__reduce_cython__cudaGraphNodeParams.__setstate_cython__cudaGraphNodeParams.getPtrcudaGraphNodeSetEnabledcudaGraphNodeSetParamscudaGraphNodeTypecudaGraphNodeTypeConditionalcudaGraphNodeTypeCountcudaGraphNodeTypeEmptycudaGraphNodeTypeEventRecordcudaGraphNodeTypeExtSemaphoreSignalcudaGraphNodeTypeExtSemaphoreWaitcudaGraphNodeTypeGraphcudaGraphNodeTypeHostcudaGraphNodeTypeKernelcudaGraphNodeTypeMemAlloccudaGraphNodeTypeMemFreecudaGraphNodeTypeMemcpycudaGraphNodeTypeMemsetcudaGraphNodeTypeWaitEventcudaGraphNode_tcudaGraphNode_t_gettercudaGraphReleaseUserObjectcudaGraphRemoveDependenciescudaGraphRemoveDependencies.<locals>.genexprcudaGraphRetainUserObjectcudaGraphUploadcudaGraphUserObjectMovecudaGraph_tcudaGraph_t_gettercudaGraphicsCubeFacecudaGraphicsCubeFaceNegativeXcudaGraphicsCubeFaceNegativeYcudaGraphicsCubeFaceNegativeZcudaGraphicsCubeFacePositiveXcudaGraphicsCubeFacePositiveYcudaGraphicsCubeFacePositiveZcudaGraphicsEGLRegisterImagecudaGraphicsGLRegisterBuffercudaGraphicsGLRegisterImagecudaGraphicsMapFlagscudaGraphicsMapFlagsNonecudaGraphicsMapFlagsReadOnlycudaGraphicsMapFlagsWriteDiscardcudaGraphicsMapResourcescudaGraphicsRegisterFlagscudaGraphicsRegisterFlagsNonecudaGraphicsRegisterFlagsReadOnlycudaGraphicsRegisterFlagsSurfaceLoadStorecudaGraphicsRegisterFlagsTextureGathercudaGraphicsRegisterFlagsWriteDiscardcudaGraphicsResourceGetMappedEglFramecudaGraphicsResourceGetMappedMipmappedArraycudaGraphicsResourceGetMappedPointercudaGraphicsResourceSetMapFlagscudaGraphicsResource_tcudaGraphicsResource_t.__reduce_cython__cudaGraphicsResource_t.__setstate_cython__cudaGraphicsResource_t.getPtrcudaGraphicsResource_t_gettercudaGraphicsSubResourceGetMappedArraycudaGraphicsUnmapResourcescudaGraphicsUnregisterResourcecudaGraphicsVDPAURegisterOutputSurfacecudaGraphicsVDPAURegisterVideoSurfacecudaGreenCtxCreatecudaHostAlloccudaHostAllocDefaultcudaHostAllocMappedcudaHostAllocPortablecudaHostAllocWriteCombinedcudaHostFn_tcudaHostFn_t.__reduce_cython__cudaHostFn_t.__setstate_cyth""on__cudaHostFn_t.getPtrcudaHostGetDevicePointercudaHostGetFlagscudaHostNodeParamscudaHostNodeParamsV2cudaHostNodeParamsV2.__reduce_cython__cudaHostNodeParamsV2.__setstate_cython__cudaHostNodeParamsV2.getPtrcudaHostNodeParams.__reduce_cython__cudaHostNodeParams.__setstate_cython__cudaHostNodeParams.getPtrcudaHostRegistercudaHostRegisterDefaultcudaHostRegisterIoMemorycudaHostRegisterMappedcudaHostRegisterPortablecudaHostRegisterReadOnlycudaHostUnregistercudaImportExternalMemorycudaImportExternalSemaphorecudaInitDevicecudaInitDeviceFlagsAreValidcudaInvalidDeviceIdcudaIpcCloseMemHandlecudaIpcEventHandle_stcudaIpcEventHandle_st.__reduce_cython__cudaIpcEventHandle_st.__setstate_cython__cudaIpcEventHandle_st.getPtrcudaIpcEventHandle_tcudaIpcGetEventHandlecudaIpcGetMemHandlecudaIpcMemHandle_stcudaIpcMemHandle_st.__reduce_cython__cudaIpcMemHandle_st.__setstate_cython__cudaIpcMemHandle_st.getPtrcudaIpcMemHandle_tcudaIpcMemLazyEnablePeerAccesscudaIpcOpenEventHandlecudaIpcOpenMemHandlecudaJitCacheModecudaJitCacheOptionCAcudaJitCacheOptionCGcudaJitCacheOptionNonecudaJitErrorLogBuffercudaJitErrorLogBufferSizeBytescudaJitFallbackStrategycudaJitGenerateDebugInfocudaJitGenerateLineInfocudaJitInfoLogBuffercudaJitInfoLogBufferSizeBytescudaJitLogVerbosecudaJitMaxRegisterscudaJitMaxThreadsPerBlockcudaJitMinCtaPerSmcudaJitOptimizationLevelcudaJitOptioncudaJitOverrideDirectiveValuescudaJitPositionIndependentCodecudaJitThreadsPerBlockcudaJitWallTimecudaJit_CacheModecudaJit_FallbackcudaKernelNodeAttrIDcudaKernelNodeAttrValuecudaKernelNodeAttributeAccessPolicyWindowcudaKernelNodeAttributeClusterDimensioncudaKernelNodeAttributeClusterSchedulingPolicyPreferencecudaKernelNodeAttributeCooperativecudaKernelNodeAttributeDeviceUpdatableKernelNodecudaKernelNodeAttributeMemSyncDomainMapcudaKernelNodeAttributeMemSyncDomaincudaKernelNodeAttributeNvlinkUtilCentricSchedulingcudaKernelNodeAttributePreferredSharedMemoryCarveoutcudaKernelNodeAttributePrioritycudaKernelNodeParamscudaKernelNodeParamsV2cudaKer""nelNodeParamsV2.__reduce_cython__cudaKernelNodeParamsV2.__setstate_cython__cudaKernelNodeParamsV2.getPtrcudaKernelNodeParams.__reduce_cython__cudaKernelNodeParams.__setstate_cython__cudaKernelNodeParams.getPtrcudaKernelSetAttributeForDevicecudaKernel_tcudaKernel_t.__reduce_cython__cudaKernel_t.__setstate_cython__cudaKernel_t.getPtrcudaKernel_t_gettercudaLaunchAttributecudaLaunchAttributeAccessPolicyWindowcudaLaunchAttributeClusterDimensioncudaLaunchAttributeClusterSchedulingPolicyPreferencecudaLaunchAttributeCooperativecudaLaunchAttributeDeviceUpdatableKernelNodecudaLaunchAttributeIDcudaLaunchAttributeIgnorecudaLaunchAttributeLaunchCompletionEventcudaLaunchAttributeMemSyncDomainMapcudaLaunchAttributeMemSyncDomaincudaLaunchAttributeNvlinkUtilCentricSchedulingcudaLaunchAttributePreferredClusterDimensioncudaLaunchAttributePreferredSharedMemoryCarveoutcudaLaunchAttributePrioritycudaLaunchAttributeProgrammaticEventcudaLaunchAttributeProgrammaticStreamSerializationcudaLaunchAttributeSynchronizationPolicycudaLaunchAttributeValuecudaLaunchAttributeValue.__reduce_cython__cudaLaunchAttributeValue.__setstate_cython__cudaLaunchAttributeValue.getPtrcudaLaunchAttribute_stcudaLaunchAttribute_st.__reduce_cython__cudaLaunchAttribute_st.__setstate_cython__cudaLaunchAttribute_st.getPtrcudaLaunchHostFunccudaLaunchMemSyncDomaincudaLaunchMemSyncDomainDefaultcudaLaunchMemSyncDomainMapcudaLaunchMemSyncDomainMap_stcudaLaunchMemSyncDomainMap_st.__reduce_cython__cudaLaunchMemSyncDomainMap_st.__setstate_cython__cudaLaunchMemSyncDomainMap_st.getPtrcudaLaunchMemSyncDomainRemotecudaLibraryBinaryIsPreservedcudaLibraryEnumerateKernelscudaLibraryGetGlobalcudaLibraryGetKernelcudaLibraryGetKernelCountcudaLibraryGetManagedcudaLibraryGetUnifiedFunctioncudaLibraryHostUniversalFunctionAndDataTablecudaLibraryLoadDatacudaLibraryLoadData.<locals>.genexprcudaLibraryLoadFromFilecudaLibraryLoadFromFile.<locals>.genexprcudaLibraryOptioncudaLibraryUnloadcudaLibrary_tcudaLibrary_t.__reduce_cython__cudaLibrary_t.__""setstate_cython__cudaLibrary_t.getPtrcudaLibrary_t_gettercudaLimitcudaLimitDevRuntimePendingLaunchCountcudaLimitDevRuntimeSyncDepthcudaLimitMallocHeapSizecudaLimitMaxL2FetchGranularitycudaLimitPersistingL2CacheSizecudaLimitPrintfFifoSizecudaLimitStackSizecudaLogIteratorcudaLogIterator.__reduce_cython__cudaLogIterator.__setstate_cython__cudaLogIterator.getPtrcudaLogLevelcudaLogLevelErrorcudaLogLevelWarningcudaLogsCallbackHandlecudaLogsCallbackHandle.__reduce_cython__cudaLogsCallbackHandle.__setstate_cython__cudaLogsCallbackHandle.getPtrcudaLogsCallbackHandle_gettercudaLogsCallback_tcudaLogsCallback_t.__reduce_cython__cudaLogsCallback_t.__setstate_cython__cudaLogsCallback_t.getPtrcudaLogsCurrentcudaLogsDumpToFilecudaLogsDumpToMemorycudaLogsRegisterCallbackcudaLogsUnregisterCallbackcudaMalloccudaMalloc3DcudaMalloc3DArraycudaMallocArraycudaMallocAsynccudaMallocFromPoolAsynccudaMallocHostcudaMallocManagedcudaMallocMipmappedArraycudaMallocPitchcudaMemAccessDesccudaMemAccessDesc.__reduce_cython__cudaMemAccessDesc.__setstate_cython__cudaMemAccessDesc.getPtrcudaMemAccessFlagscudaMemAccessFlagsProtNonecudaMemAccessFlagsProtReadcudaMemAccessFlagsProtReadWritecudaMemAdvisecudaMemAdviseSetAccessedBycudaMemAdviseSetPreferredLocationcudaMemAdviseSetReadMostlycudaMemAdviseUnsetAccessedBycudaMemAdviseUnsetPreferredLocationcudaMemAdviseUnsetReadMostlycudaMemAllocNodeParamscudaMemAllocNodeParamsV2cudaMemAllocNodeParamsV2.__reduce_cython__cudaMemAllocNodeParamsV2.__setstate_cython__cudaMemAllocNodeParamsV2.getPtrcudaMemAllocNodeParams.__reduce_cython__cudaMemAllocNodeParams.__setstate_cython__cudaMemAllocNodeParams.getPtrcudaMemAllocationHandleTypecudaMemAllocationTypecudaMemAllocationTypeInvalidcudaMemAllocationTypeManagedcudaMemAllocationTypeMaxcudaMemAllocationTypePinnedcudaMemAttachGlobalcudaMemAttachHostcudaMemAttachSinglecudaMemDiscardAndPrefetchBatchAsync.<locals>.genexprcudaMemDiscardAndPrefetchBatchAsynccudaMemDiscardBatchAsynccudaMemDiscardBatchAsync.<locals>.genexprcudaMemFa""bricHandle_stcudaMemFabricHandle_st.__reduce_cython__cudaMemFabricHandle_st.__setstate_cython__cudaMemFabricHandle_st.getPtrcudaMemFabricHandle_tcudaMemFreeNodeParamscudaMemFreeNodeParams.__reduce_cython__cudaMemFreeNodeParams.__setstate_cython__cudaMemFreeNodeParams.getPtrcudaMemGetDefaultMemPoolcudaMemGetInfocudaMemGetMemPoolcudaMemHandleTypeFabriccudaMemHandleTypeNonecudaMemHandleTypePosixFileDescriptorcudaMemHandleTypeWin32cudaMemHandleTypeWin32KmtcudaMemLocationcudaMemLocationTypecudaMemLocationTypeDevicecudaMemLocationTypeHostcudaMemLocationTypeHostNumacudaMemLocationTypeHostNumaCurrentcudaMemLocationTypeInvalidcudaMemLocationTypeNonecudaMemLocation.__reduce_cython__cudaMemLocation.__setstate_cython__cudaMemLocation.getPtrcudaMemPoolAttrcudaMemPoolAttrReleaseThresholdcudaMemPoolAttrReservedMemCurrentcudaMemPoolAttrReservedMemHighcudaMemPoolAttrUsedMemCurrentcudaMemPoolAttrUsedMemHighcudaMemPoolCreatecudaMemPoolCreateUsageHwDecompresscudaMemPoolDestroycudaMemPoolExportPointercudaMemPoolExportToShareableHandlecudaMemPoolGetAccesscudaMemPoolGetAttributecudaMemPoolImportFromShareableHandlecudaMemPoolImportPointercudaMemPoolPropscudaMemPoolProps.__reduce_cython__cudaMemPoolProps.__setstate_cython__cudaMemPoolProps.getPtrcudaMemPoolPtrExportDatacudaMemPoolPtrExportData.__reduce_cython__cudaMemPoolPtrExportData.__setstate_cython__cudaMemPoolPtrExportData.getPtrcudaMemPoolReuseAllowInternalDependenciescudaMemPoolReuseAllowOpportunisticcudaMemPoolReuseFollowEventDependenciescudaMemPoolSetAccesscudaMemPoolSetAccess.<locals>.genexprcudaMemPoolSetAttributecudaMemPoolTrimTocudaMemPool_tcudaMemPool_t_gettercudaMemPrefetchAsynccudaMemPrefetchBatchAsynccudaMemPrefetchBatchAsync.<locals>.genexprcudaMemRangeAttributecudaMemRangeAttributeAccessedBycudaMemRangeAttributeLastPrefetchLocationcudaMemRangeAttributeLastPrefetchLocationTypecudaMemRangeAttributeLastPrefetchLocationIdcudaMemRangeAttributePreferredLocationcudaMemRangeAttributePreferredLocationTypecudaMemRangeAttributePrefe""rredLocationIdcudaMemRangeAttributeReadMostlycudaMemRangeGetAttributecudaMemRangeGetAttributescudaMemRangeGetAttributes.<locals>.genexprcudaMemSetMemPoolcudaMemcpycudaMemcpy2DcudaMemcpy2DArrayToArraycudaMemcpy2DAsynccudaMemcpy2DFromArraycudaMemcpy2DFromArrayAsynccudaMemcpy2DToArraycudaMemcpy2DToArrayAsynccudaMemcpy3DcudaMemcpy3DAsynccudaMemcpy3DBatchAsynccudaMemcpy3DBatchAsync.<locals>.genexprcudaMemcpy3DBatchOpcudaMemcpy3DBatchOp.__reduce_cython__cudaMemcpy3DBatchOp.__setstate_cython__cudaMemcpy3DBatchOp.getPtrcudaMemcpy3DOperandcudaMemcpy3DOperandTypecudaMemcpy3DOperand.__reduce_cython__cudaMemcpy3DOperand.__setstate_cython__cudaMemcpy3DOperand.getPtrcudaMemcpy3DParmscudaMemcpy3DParms.__reduce_cython__cudaMemcpy3DParms.__setstate_cython__cudaMemcpy3DParms.getPtrcudaMemcpy3DPeercudaMemcpy3DPeerAsynccudaMemcpy3DPeerParmscudaMemcpy3DPeerParms.__reduce_cython__cudaMemcpy3DPeerParms.__setstate_cython__cudaMemcpy3DPeerParms.getPtrcudaMemcpyArrayToArraycudaMemcpyAsynccudaMemcpyAttributescudaMemcpyAttributes.__reduce_cython__cudaMemcpyAttributes.__setstate_cython__cudaMemcpyAttributes.getPtrcudaMemcpyBatchAsynccudaMemcpyBatchAsync.<locals>.genexprcudaMemcpyDefaultcudaMemcpyDeviceToDevicecudaMemcpyDeviceToHostcudaMemcpyFlagDefaultcudaMemcpyFlagPreferOverlapWithComputecudaMemcpyFlagscudaMemcpyFromArraycudaMemcpyFromArrayAsynccudaMemcpyHostToDevicecudaMemcpyHostToHostcudaMemcpyKindcudaMemcpyNodeParamscudaMemcpyNodeParams.__reduce_cython__cudaMemcpyNodeParams.__setstate_cython__cudaMemcpyNodeParams.getPtrcudaMemcpyOperandTypeArraycudaMemcpyOperandTypeMaxcudaMemcpyOperandTypePointercudaMemcpyPeercudaMemcpyPeerAsynccudaMemcpySrcAccessOrdercudaMemcpySrcAccessOrderAnycudaMemcpySrcAccessOrderDuringApiCallcudaMemcpySrcAccessOrderInvalidcudaMemcpySrcAccessOrderMaxcudaMemcpySrcAccessOrderStreamcudaMemcpyToArraycudaMemcpyToArrayAsynccudaMemoryAdvisecudaMemoryTypecudaMemoryTypeDevicecudaMemoryTypeHostcudaMemoryTypeManagedcudaMemoryTypeUnregisteredcudaMemsetcudaMemset2DcudaMemset2DAsync""cudaMemset3DcudaMemset3DAsynccudaMemsetAsynccudaMemsetParamscudaMemsetParamsV2cudaMemsetParamsV2.__reduce_cython__cudaMemsetParamsV2.__setstate_cython__cudaMemsetParamsV2.getPtrcudaMemsetParams.__reduce_cython__cudaMemsetParams.__setstate_cython__cudaMemsetParams.getPtrcudaMipmappedArrayGetMemoryRequirementscudaMipmappedArrayGetSparsePropertiescudaMipmappedArray_const_tcudaMipmappedArray_const_t.__reduce_cython__cudaMipmappedArray_const_t.__setstate_cython__cudaMipmappedArray_const_t.getPtrcudaMipmappedArray_const_t_gettercudaMipmappedArray_tcudaMipmappedArray_t.__reduce_cython__cudaMipmappedArray_t.__setstate_cython__cudaMipmappedArray_t.getPtrcudaMipmappedArray_t_gettercudaNvSciSyncAttrSignalcudaNvSciSyncAttrWaitcudaOccupancyAvailableDynamicSMemPerBlockcudaOccupancyDefaultcudaOccupancyDisableCachingOverridecudaOccupancyMaxActiveBlocksPerMultiprocessorcudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlagscudaOffset3DcudaOffset3D.__reduce_cython__cudaOffset3D.__setstate_cython__cudaOffset3D.getPtrcudaPeekAtLastErrorcudaPeerAccessDefaultcudaPitchedPtrcudaPitchedPtr.__reduce_cython__cudaPitchedPtr.__setstate_cython__cudaPitchedPtr.getPtrcudaPointerAttributescudaPointerAttributes.__reduce_cython__cudaPointerAttributes.__setstate_cython__cudaPointerAttributes.getPtrcudaPointerGetAttributescudaPoscudaPos.__reduce_cython__cudaPos.__setstate_cython__cudaPos.getPtrcudaPreferBinarycudaPreferPtxcudaProfilerStartcudaProfilerStopcudaReadModeElementTypecudaReadModeNormalizedFloatcudaResViewFormatFloat1cudaResViewFormatFloat2cudaResViewFormatFloat4cudaResViewFormatHalf1cudaResViewFormatHalf2cudaResViewFormatHalf4cudaResViewFormatNonecudaResViewFormatSignedBlockCompressed4cudaResViewFormatSignedBlockCompressed5cudaResViewFormatSignedBlockCompressed6HcudaResViewFormatSignedChar1cudaResViewFormatSignedChar2cudaResViewFormatSignedChar4cudaResViewFormatSignedInt1cudaResViewFormatSignedInt2cudaResViewFormatSignedInt4cudaResViewFormatSignedShort1cudaResViewFormatSignedShort2cudaResViewF""ormatSignedShort4cudaResViewFormatUnsignedBlockCompressed1cudaResViewFormatUnsignedBlockCompressed2cudaResViewFormatUnsignedBlockCompressed3cudaResViewFormatUnsignedBlockCompressed4cudaResViewFormatUnsignedBlockCompressed5cudaResViewFormatUnsignedBlockCompressed6HcudaResViewFormatUnsignedBlockCompressed7cudaResViewFormatUnsignedChar1cudaResViewFormatUnsignedChar2cudaResViewFormatUnsignedChar4cudaResViewFormatUnsignedInt1cudaResViewFormatUnsignedInt2cudaResViewFormatUnsignedInt4cudaResViewFormatUnsignedShort1cudaResViewFormatUnsignedShort2cudaResViewFormatUnsignedShort4cudaResourceDesccudaResourceDesc.__reduce_cython__cudaResourceDesc.__setstate_cython__cudaResourceDesc.getPtrcudaResourceTypecudaResourceTypeArraycudaResourceTypeLinearcudaResourceTypeMipmappedArraycudaResourceTypePitch2DcudaResourceViewDesccudaResourceViewDesc.__reduce_cython__cudaResourceViewDesc.__setstate_cython__cudaResourceViewDesc.getPtrcudaResourceViewFormatcudaRoundMinInfcudaRoundModecudaRoundNearestcudaRoundPosInfcudaRoundZerocudaRuntimeGetVersioncudaSetDevicecudaSetDeviceFlagscudaSharedCarveoutcudaSharedMemBankSizeDefaultcudaSharedMemBankSizeEightBytecudaSharedMemBankSizeFourBytecudaSharedMemConfigcudaSharedmemCarveoutDefaultcudaSharedmemCarveoutMaxL1cudaSharedmemCarveoutMaxSharedcudaSignalExternalSemaphoresAsync.<locals>.genexprcudaSignalExternalSemaphoresAsynccudaStreamAddCallbackcudaStreamAddCaptureDependenciescudaStreamAttachMemAsynccudaStreamAttrIDcudaStreamAttrValuecudaStreamAttributeAccessPolicyWindowcudaStreamAttributeMemSyncDomainMapcudaStreamAttributeMemSyncDomaincudaStreamAttributePrioritycudaStreamAttributeSynchronizationPolicycudaStreamBeginCapturecudaStreamBeginCaptureToGraphcudaStreamBeginCaptureToGraph.<locals>.genexprcudaStreamCallback_tcudaStreamCallback_t.__reduce_cython__cudaStreamCallback_t.__setstate_cython__cudaStreamCallback_t.getPtrcudaStreamCaptureModecudaStreamCaptureModeGlobalcudaStreamCaptureModeRelaxedcudaStreamCaptureModeThreadLocalcudaStreamCaptureStatuscudaSt""reamCaptureStatusActivecudaStreamCaptureStatusInvalidatedcudaStreamCaptureStatusNonecudaStreamCopyAttributescudaStreamCreatecudaStreamCreateWithFlagscudaStreamCreateWithPrioritycudaStreamDefaultcudaStreamDestroycudaStreamEndCapturecudaStreamGetAttributecudaStreamGetCaptureInfocudaStreamGetDevResourcecudaStreamGetDevicecudaStreamGetFlagscudaStreamGetIdcudaStreamGetPrioritycudaStreamIsCapturingcudaStreamLegacycudaStreamNonBlockingcudaStreamPerThreadcudaStreamQuerycudaStreamSetAttributecudaStreamSetCaptureDependenciescudaStreamSynchronizecudaStreamUpdateCaptureDependencies.<locals>.genexprcudaStreamUpdateCaptureDependenciesFlagscudaStreamUpdateCaptureDependenciescudaStreamWaitEventcudaStream_tcudaStream_t_gettercudaSuccesscudaSurfaceBoundaryModecudaSurfaceFormatModecudaSurfaceObject_tcudaSurfaceObject_t.__reduce_cython__cudaSurfaceObject_t.__setstate_cython__cudaSurfaceObject_t.getPtrcudaSurfaceType1DcudaSurfaceType1DLayeredcudaSurfaceType2DcudaSurfaceType2DLayeredcudaSurfaceType3DcudaSurfaceTypeCubemapcudaSurfaceTypeCubemapLayeredcudaSyncPolicyAutocudaSyncPolicyBlockingSynccudaSyncPolicySpincudaSyncPolicyYieldcudaSynchronizationPolicycudaTextureAddressModecudaTextureDesccudaTextureDesc.__reduce_cython__cudaTextureDesc.__setstate_cython__cudaTextureDesc.getPtrcudaTextureFilterModecudaTextureObject_tcudaTextureObject_t.__reduce_cython__cudaTextureObject_t.__setstate_cython__cudaTextureObject_t.getPtrcudaTextureReadModecudaTextureType1DcudaTextureType1DLayeredcudaTextureType2DcudaTextureType2DLayeredcudaTextureType3DcudaTextureTypeCubemapcudaTextureTypeCubemapLayeredcudaThreadExchangeStreamCaptureModecudaUUID_tcudaUserObjectCreatecudaUserObjectFlagscudaUserObjectNoDestructorSynccudaUserObjectReleasecudaUserObjectRetaincudaUserObjectRetainFlagscudaUserObject_tcudaUserObject_t_gettercudaVDPAUGetDevicecudaVDPAUSetVDPAUDevicecudaVersioncudaWaitExternalSemaphoresAsync.<locals>.genexprcudaWaitExternalSemaphoresAsynccuda.bindings.drivercuda.bindings.runtimecuda.bindings.utilscu""dalibraryHostUniversalFunctionAndDataTablecudalibraryHostUniversalFunctionAndDataTable.getPtrcudalibraryHostUniversalFunctionAndDataTable.__reduce_cython__cudalibraryHostUniversalFunctionAndDataTable.__setstate_cython__cuuint64_tcyadvicecyarraycyattrcyattributecyattributescyattrscyattrsIdxscybuffercybufferDesc_ptrcycacheConfigcycallbackcycallbackFunccycapabilitiescychildGraphcyclonedGraphcycodecycode_ptrcyconfigcyconncyctxcydcyd_ptrcydatacydataSizescydata_ptrcydependenciescydependencies_outcydependencyDatacydesccydescListcydesc_ptrcydestroycydevPtrcydevPtr_ptrcydeviceListcydptrcydptr_out_ptrcydptr_ptrcydptrs_ptrcydstcydst_ptrcydsts_ptrcyedgeDatacyedgeData_outcyeglStreamcyeglSynccyeglframe_ptrcyendcyentryFuncAddrcyentryFuncAddr_ptrcyerrorcyeventcyexportData_ptrcyextMemcyextSemcyextSemArraycyfcyfmtDesc_ptrcyfncyfrom_cyfunccyfunc_ptrcygraphcygraphExeccygroupParams_ptrcyhArraycyhDstcyhGraphcyhGraphExeccyhNodecyhSrccyhStreamcyhandleTypecyheightcyimagecyinput__ptrcyinstantiateParams_ptrcyiteratorcyjitOptionscyjitOptionsValues_ptrcykernelcykernelscykindcylibcylibrarycylibraryOptionValues_ptrcylibraryOptionscylimitcylocation_ptrcymemHandleDesc_ptrcymemPoolcymipmapcymipmapDesc_ptrcymipmappedArraycymodecynbGroupscynodecynodeParams_ptrcynodescynvSciSyncAttrListcynvSciSyncAttrList_ptrcyobjectcyopListcyoperationscyoriginalGraphcyoriginalNodecypCopyParams_ptrcypCudaDevicescypCudaResourcecypDependenciescypDependentNodescypExportTableId_ptrcypHostcypHost_ptrcypMemsetParams_ptrcypNodeParams_ptrcypResDesc_ptrcypResViewDesc_ptrcypRootNodescypStreamcypTexDesc_ptrcyp_ptrcyparamsArraycypoolProps_ptrcyprefetchLocIdxscyprefetchLocscyprop_ptrcyptrcyptr_ptrcyresourcecyresourcescyresultcyscopecysemHandleDesc_ptrcyshareableHandlecyshareableHandle_ptrcysizescysrccysrc_ptrcysrcs_ptrcystartcystreamcysurfObjectcytargetcytexObjectcytocytypenamecyuserDatacyuserData_ptrcyvaluecyvalue_ptrcyvdpDevicecyvdpGetProcAddresscyvdpSurfacecyvoidStarHelper_ptrcywidthddataSizedataSizesdataTabledataWindowSizedata_""sizedecodedefaultLaunchValuedefault_deferredMappingCudaArraySupporteddependenciesdependencyDatadepthdescListdescdestroydevNodedevPtrdeviceFlagsdeviceListdeviceNumaConfigdeviceNumaIddevicePointerdeviceUpdatableKernelNodedeviceUpdatabledevice__dict___dict_cudaAccessProperty_dict_cudaAsyncNotificationType_dict_cudaAtomicOperation_dict_cudaAtomicOperationCapability_dict_cudaCGScope_dict_cudaChannelFormatKind_dict_cudaClusterSchedulingPolicy_dict_cudaComputeMode_dict_cudaDataType_dict_cudaDevResourceType_dict_cudaDevSmResourceGroup_flags_dict_cudaDevSmResourceSplitByCount_flags_dict_cudaDevWorkqueueConfigScope_dict_cudaDeviceAttr_dict_cudaDeviceNumaConfig_dict_cudaDeviceP2PAttr_dict_cudaDriverEntryPointQueryResult_dict_cudaEglColorFormat_dict_cudaEglFrameType_dict_cudaEglResourceLocationFlags_dict_cudaEmulationMantissaControl_dict_cudaEmulationSpecialValuesSupport_dict_cudaEmulationStrategy_dict_cudaError_t_dict_cudaExternalMemoryHandleType_dict_cudaExternalSemaphoreHandleType_dict_cudaFlushGPUDirectRDMAWritesOptions_dict_cudaFlushGPUDirectRDMAWritesScope_dict_cudaFlushGPUDirectRDMAWritesTarget_dict_cudaFuncAttribute_dict_cudaFuncCache_dict_cudaGLDeviceList_dict_cudaGLMapFlags_dict_cudaGPUDirectRDMAWritesOrdering_dict_cudaGetDriverEntryPointFlags_dict_cudaGraphChildGraphNodeOwnership_dict_cudaGraphConditionalHandleFlags_dict_cudaGraphConditionalNodeType_dict_cudaGraphDebugDotFlags_dict_cudaGraphDependencyType_dict_cudaGraphExecUpdateResult_dict_cudaGraphInstantiateFlags_dict_cudaGraphInstantiateResult_dict_cudaGraphKernelNodeField_dict_cudaGraphMemAttributeType_dict_cudaGraphNodeType_dict_cudaGraphicsCubeFace_dict_cudaGraphicsMapFlags_dict_cudaGraphicsRegisterFlags_dict_cudaJitOption_dict_cudaJit_CacheMode_dict_cudaJit_Fallback_dict_cudaLaunchAttributeID_dict_cudaLaunchMemSyncDomain_dict_cudaLibraryOption_dict_cudaLimit_dict_cudaLogLevel_dict_cudaMemAccessFlags_dict_cudaMemAllocationHandleType_dict_cudaMemAllocationType_dict_cudaMemLocationType_dict_cudaMemPoolAttr_dict_""cudaMemRangeAttribute_dict_cudaMemcpy3DOperandType_dict_cudaMemcpyFlags_dict_cudaMemcpyKind_dict_cudaMemcpySrcAccessOrder_dict_cudaMemoryAdvise_dict_cudaMemoryType_dict_cudaResourceType_dict_cudaResourceViewFormat_dict_cudaRoundMode_dict_cudaSharedCarveout_dict_cudaSharedMemConfig_dict_cudaStreamCaptureMode_dict_cudaStreamCaptureStatus_dict_cudaStreamUpdateCaptureDependenciesFlags_dict_cudaSurfaceBoundaryMode_dict_cudaSurfaceFormatMode_dict_cudaSynchronizationPolicy_dict_cudaTextureAddressMode_dict_cudaTextureFilterMode_dict_cudaTextureReadMode_dict_cudaUserObjectFlags_dict_cudaUserObjectRetainFlags_dict_libraryPropertyTypedim3dim3.__reduce_cython__dim3.__setstate_cython__dim3.getPtrdirectManagedMemAccessFromHostdisableTrilinearOptimization__doc__dpitchdptrdptr_outdptrs_driverdriverStatusdriverVersiondriverdstArraydstDevicedstLocHintdstPosdstPtrdstdstsdynamicSMemSizedynamicSmemSizeedgeDataeglColorFormateglFrameeglStreameglSynceglframeelementSizeendentryFuncAddrenumenumerateerrerrNode_outerrorerrorFromNodeerrorNodeeventRecordeventWaiteventevent_outexportDataextMemextMem_outextSemextSemArrayextSemSignalextSemWaitextSem_outextentextraffdfencefieldfileNamefilterModefirstLayerfirstMipmapLevelflagsfmtDescfnformatformatDescfptrframeTypeframefreefrom_from_portfuncPtrfunc__func__functionTablefunctionWindowSizegenexprgetLocalRuntimeVersiongetPtr__getstate__globalL1CacheSupportedgpuDirectRDMAFlushWritesOptionsgpuDirectRDMASupportedgpuDirectRDMAWritesOrderinggpuPciDeviceIDgpuPciSubsystemIDgraphExecgraphIDgraph_graph_lengthgraph_outgreatestPrioritygridDimgroupParamshhArrayhDsthGraphhGraphExechNodehOffsethOffsetDsthOffsetSrchSrchStreamhandleTypehandleTypeshandleheighthexhitProphitRatiohostNativeAtomicSupportedhostNumaIdhostNumaMultinodeIpcSupportedhostPointerhostRegisterReadOnlySupportedhostRegisterSupportedhostidid_outidximageindexinfoinit_valueinitialRefcountinput_instantiateParams__int__integrated_internal_paddingipcEventSupportedisEnabledisMultiGpuBoard_is_coroutineis_getteri""temsiteratoriterator_outjitOptionsjitOptionsValueskkernelParamskernelPtrkernelkeykeyedMutexkindl2CacheSize<lambda>lastLayerlastMipmapLevellaunchCompletionEventlayerHeightleastPrioritylengthlevellevelArrayliblibrarylibraryOptionValueslibraryOptionslibraryPropertyTypelimitlinearlocHintlocalL1CacheSupportedlocalSizeByteslocationlstluidDeviceNodeMaskluid__main__majormake_cudaExtentmake_cudaPitchedPtrmake_cudaPosmanagedMemorymaxmaxAnisotropymaxBlocksPerMultiProcessormaxDynamicSharedSizeBytesmaxGridSizemaxMipmapLevelClampmaxSizemaxSurface1DLayeredmaxSurface1DmaxSurface2DLayeredmaxSurface2DmaxSurface3DmaxSurfaceCubemapLayeredmaxSurfaceCubemapmaxTexture1DLayeredmaxTexture1DMipmapmaxTexture1DmaxTexture2DGathermaxTexture2DLayeredmaxTexture2DLinearmaxTexture2DMipmapmaxTexture2DmaxTexture3DAltmaxTexture3DmaxTextureCubemapLayeredmaxTextureCubemapmaxThreadsDimmaxThreadsPerBlockmaxThreadsPerMultiProcessormaxWidthInElementsmax_param_sizememHandleDescmemPitchmemPoolmemSyncDomainMapmemSyncDomain__members__memcpymemoryBusWidthmemoryPoolSupportedHandleTypesmemoryPoolsSupportedmemoryRequirementsmemset__metaclass__minBytesToKeepminCountminMipmapLevelClampminSmPartitionSizeminormipLevelmipmapDescmipmapFilterModemipmapLevelBiasmipmapmipmappedArraymiptailFirstLevelmiptailSizemissPropmode__module__mpsEnabled__mro_entries__msmultiGpuBoardGroupIDmultiProcessorCountname__name__nbGroupsnbResourcesnextnextResourcenodeIdnodeParamsnodenonPortableClusterSizeAllowednormalizedCoordsnumAttributesnumAttrsnumBlocksnumChannelsnumDependenciesnumDependencies_outnumEdgesnumExtSemsnumJitOptionsnumKernelsnumLevelsnumLibraryOptionsnumNodesnumOpsnumPrefetchLocsnumRegsnum_bytesnumbytesnvSciBufObjectnvSciSyncAttrListnvSciSyncObjnvSciSyncnvlinkUtilCentricSchedulingobjobjTypeobjectobject_outoffsetopListopoperationsoriginalGraphoriginalNodeoverBudget_oversizeownershipppArraypCacheConfigpCaptureStatuspConfigpCopyParamspCudaDeviceCountpCudaResourcepDependenciespDevicepExportTableIdpFlagspGraphpGraphClonepGraphExecpGrap""hNodepHandle_outpHostpKernelpMemsetParamspNodepNodeParamspNumDependenciespNumDependentNodespNumRootNodespPitchpPlaneArraypResDescpResViewDescpStreampSurfObjectpTexDescpTexObjectpTypepValuepadpageableMemoryAccessUsesHostPageTablespageableMemoryAccessparamparamsArrayparamsparams_outparraypathpathToFilepbufferpcallbackpcallbackFuncpchildGraphpciBusIDpciBusIdpciDeviceIDpciDomainIDpclonedGraphpconnpctxpdescpdestroypdstpeerDevicepeglStreampeglSyncpendpersistingL2CacheMaxSizepeventpextMempextSempfnpgraphpgraphExecphArrayphCtxphDescphDstphEventphGraphphGraphExecphGraph_outphNodephSrcphStreampheightpimagepitch2DpitchInBytespitchpitchedDevPtrpkernelplaneCountplaneDescplaneIdxplibplibrarypmemPoolpmipmappmipmappedArraypnodepobjectpoolPropspopporiginalGraphporiginalNodeppCudaResourceppExportTableppStreampreferredClusterDimpreferredCoscheduledSmCountpreferredShmemCarveoutprefetchLocIdxsprefetchLocs__prepare__presourcepresourcespriorityprogrammaticEventprogrammaticStreamSerializationAllowedproppsrcpstartpstreampsurfObjectptargetptexObjectptr_ptrptxVersionpvdpDevicepvdpGetProcAddresspvdpSurfacepwidthpyObjpyattributespycapabilitiespydataSizespydependencies_outpydptrspydstspyedgeDatapyedgeData_outpyfrom_pyjitOptionspykernelspylibraryOptionspylistpynodespyoperationspyoptionValuespyoptionspypCudaDevicespypDependenciespypDependentNodespypRootNodespypciBusIdpyresultpysrcspyto__pyx_state__qualname__readMode__reduce____reduce_cython____reduce_ex__regsPerBlockregsPerMultiprocessorremainderremainingremoterequiredClusterDepthrequiredClusterHeightrequiredClusterWidthresTyperesreserved0reserved1reserved2reservedSharedMemPerBlockreservedresourceresourcesresultInforesultresult_outrowLengthruntimeVersionsRGBscopeseamlessCubemapselfsemHandleDescsend__set_name__setdefault__setstate____setstate_cython__shareableHandlesharedMemBytessharedMemCarveoutsharedMemPerBlockOptinsharedMemPerBlocksharedMemPerMultiprocessorsharedSizeBytessharingScopesizeInBytessizesizeofsizessmCoscheduledAlignmentsmCountsmsparse""CudaArraySupportedsparsePropertiesspitchsrcAccessOrdersrcArraysrcDevicesrcLocHintsrcPossrcPtrsrcsrcsstartstreamstreamIdstreamPrioritiesSupportedsupported_typessurfObjectsurfaceAlignmentsymbolsyncPolicyttargettccDriver__test__texObjecttextureAlignmenttexturePitchAlignmentthrowtileExtenttimelineSemaphoreInteropSupportedtimeouttimeoutMstoto_porttoolsNodeIdtotaltotalConstMemtotalGlobalMemtriggerAtBlockStarttypetypenametypingunifiedAddressingunifiedFunctionPointersupdateDatauploadStreamusageuserDatauuidvvalvaluevalue_outvaluesvdpDevicevdpGetProcAddressvdpSurfacevoidStarHelperdatavoidStarHelperdptrsvoidStarHelperdstsvoidStarHelperjitOptionsValuesvoidStarHelperlibraryOptionValuesvoidStarHelpersrcswOffsetwOffsetDstwOffsetSrcwwarpSizewidthwin32SecurityAttributeswin32wqConcurrencyLimitwqConfigwqwrapperx_xxsizexszyysizeyszzzip char const *(cudaError_t)\000\000cudaError_t (__pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame *, cudaGraphicsResource_t, unsigned int, unsigned int)\000cudaError_t (__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *)\000\000cudaError_t (__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR)\000cudaError_t (__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR, __pyx_t_4cuda_8bindings_9cyruntime_EGLint, __pyx_t_4cuda_8bindings_9cyruntime_EGLint)\000cudaError_t (__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_EGLStreamKHR, unsigned int)\000cudaError_t (__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame *, cudaStream_t *)\000cudaError_t (__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrame, cudaStream_t *)\000cudaError_t (__pyx_t_4cuda_8bindings_9cyruntime_cudaEglStreamConnection *, cudaGraphicsResource_t *, cudaStream_t *, unsigned int)\000cudaError_t (__pyx_t_4cuda_8binding""s_9cyruntime_cudaEglStreamConnection *, cudaGraphicsResource_t, cudaStream_t *)\000cudaError_t (char *, int, int)\000cudaError_t (char const *, void **, unsigned PY_LONG_LONG, enum cudaDriverEntryPointQueryResult *)\000cudaError_t (char const *, void **, unsigned int, unsigned PY_LONG_LONG, enum cudaDriverEntryPointQueryResult *)\000cudaError_t (cudaArray_t *, cudaArray_t, unsigned int)\000cudaError_t (cudaArray_t *, cudaGraphicsResource_t, unsigned int, unsigned int)\000cudaError_t (cudaArray_t *, cudaMipmappedArray_const_t, unsigned int)\000cudaError_t (cudaArray_t *, struct cudaChannelFormatDesc const *, size_t, size_t, unsigned int)\000cudaError_t (cudaArray_t *, struct cudaChannelFormatDesc const *, struct cudaExtent, unsigned int)\000cudaError_t (cudaArray_t)\000cudaError_t (cudaArray_t, size_t, size_t, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind)\000cudaError_t (cudaArray_t, size_t, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind)\000cudaError_t (cudaArray_t, size_t, size_t, void const *, size_t, enum cudaMemcpyKind)\000cudaError_t (cudaArray_t, size_t, size_t, void const *, size_t, enum cudaMemcpyKind, cudaStream_t)\000cudaError_t (cudaArray_t, size_t, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind)\000cudaError_t (cudaArray_t, size_t, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t)\000cudaError_t (cudaDevResource *, unsigned int *, cudaDevResource const *, cudaDevResource *, unsigned int, unsigned int)\000cudaError_t (cudaDevResource *, unsigned int, cudaDevResource const *, cudaDevResource *, unsigned int, cudaDevSmResourceGroupParams *)\000cudaError_t (cudaDevResourceDesc_t *, cudaDevResource *, unsigned int)\000cudaError_t (cudaEvent_t *)\000cudaError_t (cudaEvent_t *, __pyx_t_4cuda_8bindings_9cyruntime_EGLSyncKHR, unsigned int)\000cudaError_t (cudaEvent_t *, cudaIpcEventHandle_t)\000cudaError_t (cudaEvent_t *, unsigned int)\000cudaError_t (cudaEvent_t)""\000\000\000cudaError_t (cudaEvent_t, cudaStream_t)\000cudaError_t (cudaEvent_t, cudaStream_t, unsigned int)\000cudaError_t (cudaExecutionContext_t *, cudaDevResourceDesc_t, int, unsigned int)\000cudaError_t (cudaExecutionContext_t *, int)\000cudaError_t (cudaExecutionContext_t)\000\000cudaError_t (cudaExecutionContext_t, cudaDevResource *, enum cudaDevResourceType)\000cudaError_t (cudaExecutionContext_t, cudaEvent_t)\000\000cudaError_t (cudaExecutionContext_t, unsigned PY_LONG_LONG *)\000cudaError_t (cudaExternalMemory_t *, struct cudaExternalMemoryHandleDesc const *)\000cudaError_t (cudaExternalMemory_t)\000cudaError_t (cudaExternalSemaphore_t *, struct cudaExternalSemaphoreHandleDesc const *)\000cudaError_t (cudaExternalSemaphore_t const *, struct cudaExternalSemaphoreSignalParams const *, unsigned int, cudaStream_t)\000cudaError_t (cudaExternalSemaphore_t const *, struct cudaExternalSemaphoreWaitParams const *, unsigned int, cudaStream_t)\000cudaError_t (cudaExternalSemaphore_t)\000cudaError_t (cudaGraphConditionalHandle *, cudaGraph_t, cudaExecutionContext_t, unsigned int, unsigned int)\000cudaError_t (cudaGraphConditionalHandle *, cudaGraph_t, unsigned int, unsigned int)\000cudaError_t (cudaGraphExec_t *, cudaGraph_t, cudaGraphInstantiateParams *)\000cudaError_t (cudaGraphExec_t *, cudaGraph_t, unsigned PY_LONG_LONG)\000\000cudaError_t (cudaGraphExec_t)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, cudaEvent_t)\000\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, cudaGraph_t)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams const *)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams const *)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaGraphNodeParams *)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaHostNodeParams const *)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaKernelNodeParams const *)\000cudaError_t (cudaGraphExec_""t, cudaGraphNode_t, struct cudaMemcpy3DParms const *)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, struct cudaMemsetParams const *)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, unsigned int *)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, unsigned int)\000cudaError_t (cudaGraphExec_t, cudaGraphNode_t, void *, void const *, size_t, enum cudaMemcpyKind)\000cudaError_t (cudaGraphExec_t, cudaGraph_t, cudaGraphExecUpdateResultInfo *)\000cudaError_t (cudaGraphExec_t, cudaStream_t)\000\000cudaError_t (cudaGraphExec_t, unsigned PY_LONG_LONG *)\000cudaError_t (cudaGraphExec_t, unsigned int *)\000cudaError_t (cudaGraphNode_t *, cudaGraphNode_t, cudaGraph_t)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t, struct cudaGraphNodeParams *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaEvent_t)\000\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, cudaGraph_t)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaExternalSemaphoreSignalNodeParams const *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaExternalSemaphoreWaitNodeParams const *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaHostNodeParams const *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaKernelNodeParams const *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemAllocNodeParams *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemcpy3DParms const *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, struct cudaMemsetParams const *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, s""ize_t, void *)\000cudaError_t (cudaGraphNode_t *, cudaGraph_t, cudaGraphNode_t const *, size_t, void *, void const *, size_t, enum cudaMemcpyKind)\000cudaError_t (cudaGraphNode_t)\000cudaError_t (cudaGraphNode_t, __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID, __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrValue *)\000cudaError_t (cudaGraphNode_t, __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrID, __pyx_t_4cuda_8bindings_9cyruntime_cudaKernelNodeAttrValue const *)\000cudaError_t (cudaGraphNode_t, cudaEvent_t *)\000\000cudaError_t (cudaGraphNode_t, cudaEvent_t)\000\000cudaError_t (cudaGraphNode_t, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *)\000\000cudaError_t (cudaGraphNode_t, cudaGraphNode_t)\000cudaError_t (cudaGraphNode_t, cudaGraph_t *)\000\000cudaError_t (cudaGraphNode_t, enum cudaGraphNodeType *)\000cudaError_t (cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams *)\000cudaError_t (cudaGraphNode_t, struct cudaExternalSemaphoreSignalNodeParams const *)\000cudaError_t (cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams *)\000cudaError_t (cudaGraphNode_t, struct cudaExternalSemaphoreWaitNodeParams const *)\000cudaError_t (cudaGraphNode_t, struct cudaGraphNodeParams *)\000cudaError_t (cudaGraphNode_t, struct cudaHostNodeParams *)\000cudaError_t (cudaGraphNode_t, struct cudaHostNodeParams const *)\000cudaError_t (cudaGraphNode_t, struct cudaKernelNodeParams *)\000cudaError_t (cudaGraphNode_t, struct cudaKernelNodeParams const *)\000cudaError_t (cudaGraphNode_t, struct cudaMemAllocNodeParams *)\000cudaError_t (cudaGraphNode_t, struct cudaMemcpy3DParms *)\000cudaError_t (cudaGraphNode_t, struct cudaMemcpy3DParms const *)\000cudaError_t (cudaGraphNode_t, struct cudaMemsetParams *)\000cudaError_t (cudaGraphNode_t, struct cudaMemsetParams const *)\000cudaError_t (cudaGraphNode_t, unsigned PY_LONG_LONG *)\000cudaError_t (cudaGraphNode_t, unsigned int *)\000cudaError_t (cudaGraphNode_t, void *)\000cudaError_t (cudaGraphNode_t, ""void *, void const *, size_t, enum cudaMemcpyKind)\000cudaError_t (cudaGraph_t *, cudaGraph_t)\000cudaError_t (cudaGraph_t *, unsigned int)\000cudaError_t (cudaGraph_t)\000cudaError_t (cudaGraph_t, char const *, unsigned int)\000cudaError_t (cudaGraph_t, cudaGraphNode_t *, cudaGraphNode_t *, cudaGraphEdgeData *, size_t *)\000cudaError_t (cudaGraph_t, cudaGraphNode_t *, size_t *)\000\000cudaError_t (cudaGraph_t, cudaGraphNode_t const *, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t)\000\000cudaError_t (cudaGraph_t, cudaUserObject_t, unsigned int)\000cudaError_t (cudaGraph_t, cudaUserObject_t, unsigned int, unsigned int)\000cudaError_t (cudaGraph_t, unsigned int *)\000cudaError_t (cudaGraphicsResource_t)\000cudaError_t (cudaGraphicsResource_t, unsigned int)\000cudaError_t (cudaIpcEventHandle_t *, cudaEvent_t)\000cudaError_t (cudaIpcMemHandle_t *, void *)\000cudaError_t (cudaKernel_t *, cudaLibrary_t, char const *)\000cudaError_t (cudaKernel_t *, unsigned int, cudaLibrary_t)\000cudaError_t (cudaKernel_t *, void const *)\000cudaError_t (cudaKernel_t, enum cudaFuncAttribute, int, int)\000cudaError_t (cudaLibrary_t *, char const *, enum cudaJitOption *, void **, unsigned int, enum cudaLibraryOption *, void **, unsigned int)\000cudaError_t (cudaLibrary_t *, void const *, enum cudaJitOption *, void **, unsigned int, enum cudaLibraryOption *, void **, unsigned int)\000cudaError_t (cudaLibrary_t)\000cudaError_t (cudaLogIterator *, char *, size_t *, unsigned int)\000cudaError_t (cudaLogIterator *, char const *, unsigned int)\000cudaError_t (cudaLogIterator *, unsigned int)\000cudaError_t (cudaLogsCallbackHandle)\000cudaError_t (cudaLogsCallback_t, void *, cudaLogsCallbackHandle *)\000cudaError_t (cudaMemPool_t *, int)\000\000cudaError_t (cudaMemPool_t *, struct cudaMemLocation *, enum cudaMemAllocationType)\000\000cudaError_t (cudaMemPool_t *, struct cudaMemPoolProps const *)\000cudaError_t (cudaMemPool_t *, void *, enum cudaMemAllocationHandleType, unsigned int)""\000cudaError_t (cudaMemPool_t)\000cudaError_t (cudaMemPool_t, enum cudaMemPoolAttr, void *)\000\000cudaError_t (cudaMemPool_t, size_t)\000cudaError_t (cudaMemPool_t, struct cudaMemAccessDesc const *, size_t)\000cudaError_t (cudaMipmappedArray_t *, cudaExternalMemory_t, struct cudaExternalMemoryMipmappedArrayDesc const *)\000cudaError_t (cudaMipmappedArray_t *, cudaGraphicsResource_t)\000cudaError_t (cudaMipmappedArray_t *, struct cudaChannelFormatDesc const *, struct cudaExtent, unsigned int, unsigned int)\000cudaError_t (cudaMipmappedArray_t)\000cudaError_t (cudaStream_t *)\000cudaError_t (cudaStream_t *, cudaExecutionContext_t, unsigned int, int)\000cudaError_t (cudaStream_t *, unsigned int)\000cudaError_t (cudaStream_t *, unsigned int, int)\000cudaError_t (cudaStream_t)\000\000\000cudaError_t (cudaStream_t, __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID, __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrValue *)\000cudaError_t (cudaStream_t, __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrID, __pyx_t_4cuda_8bindings_9cyruntime_cudaStreamAttrValue const *)\000cudaError_t (cudaStream_t, cudaDevResource *, enum cudaDevResourceType)\000cudaError_t (cudaStream_t, cudaEvent_t, unsigned int)\000cudaError_t (cudaStream_t, cudaGraphNode_t *, cudaGraphEdgeData const *, size_t, unsigned int)\000cudaError_t (cudaStream_t, cudaGraph_t *)\000cudaError_t (cudaStream_t, cudaGraph_t, cudaGraphNode_t const *, cudaGraphEdgeData const *, size_t, enum cudaStreamCaptureMode)\000cudaError_t (cudaStream_t, cudaHostFn_t, void *)\000cudaError_t (cudaStream_t, cudaStreamCallback_t, void *, unsigned int)\000cudaError_t (cudaStream_t, cudaStream_t)\000cudaError_t (cudaStream_t, enum cudaStreamCaptureMode)\000cudaError_t (cudaStream_t, enum cudaStreamCaptureStatus *)\000cudaError_t (cudaStream_t, enum cudaStreamCaptureStatus *, unsigned PY_LONG_LONG *, cudaGraph_t *, cudaGraphNode_t const **, cudaGraphEdgeData const **, size_t *)\000cudaError_t (cudaStream_t, int *)\000\000cudaError_t (""cudaStream_t, unsigned PY_LONG_LONG *)\000cudaError_t (cudaStream_t, unsigned int *)\000cudaError_t (cudaStream_t, void *, size_t, unsigned int)\000cudaError_t (cudaSurfaceObject_t *, struct cudaResourceDesc const *)\000cudaError_t (cudaSurfaceObject_t)\000cudaError_t (cudaTextureObject_t *, struct cudaResourceDesc const *, struct cudaTextureDesc const *, struct cudaResourceViewDesc const *)\000cudaError_t (cudaTextureObject_t)\000cudaError_t (cudaUserObject_t *, void *, cudaHostFn_t, unsigned int, unsigned int)\000cudaError_t (cudaUserObject_t, unsigned int)\000\000cudaError_t (enum cudaFlushGPUDirectRDMAWritesTarget, enum cudaFlushGPUDirectRDMAWritesScope)\000cudaError_t (enum cudaFuncCache *)\000cudaError_t (enum cudaFuncCache)\000cudaError_t (enum cudaLimit, size_t)\000cudaError_t (enum cudaMemAccessFlags *, cudaMemPool_t, struct cudaMemLocation *)\000cudaError_t (enum cudaSharedMemConfig *)\000cudaError_t (enum cudaSharedMemConfig)\000cudaError_t (enum cudaStreamCaptureMode *)\000cudaError_t (float *, cudaEvent_t, cudaEvent_t)\000cudaError_t (int *)\000\000\000\000\000cudaError_t (int *, __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice, __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)\000cudaError_t (int *, char const *)\000cudaError_t (int *, cudaExecutionContext_t)\000cudaError_t (int *, enum cudaDeviceAttr, int)\000cudaError_t (int *, enum cudaDeviceP2PAttr, int, int)\000cudaError_t (int *, int *)\000cudaError_t (int *, int, int)\000cudaError_t (int *, struct cudaDeviceProp const *)\000cudaError_t (int *, void const *, int, size_t)\000cudaError_t (int *, void const *, int, size_t, unsigned int)\000cudaError_t (int)\000\000\000cudaError_t (int, __pyx_t_4cuda_8bindings_9cyruntime_VdpDevice, __pyx_t_4cuda_8bindings_9cyruntime_VdpGetProcAddress *)\000cudaError_t (int, cudaAsyncCallback, void *, cudaAsyncCallbackHandle_t *)\000cudaError_t (int, cudaAsyncCallbackHandle_t)\000cudaError_t (int, cudaDevResource *, enum cudaDevResourceType)\000cudaError_t (int, cud""aGraphicsResource_t *, cudaStream_t)\000\000cudaError_t (int, cudaMemPool_t)\000cudaError_t (int, enum cudaGraphMemAttributeType, void *)\000\000cudaError_t (int, unsigned int)\000cudaError_t (int, unsigned int, unsigned int)\000cudaError_t (size_t *, enum cudaLimit)\000cudaError_t (size_t *, size_t *)\000cudaError_t (size_t *, struct cudaChannelFormatDesc const *, int)\000cudaError_t (size_t *, void const *, int, int)\000cudaError_t (size_t, struct cudaMemcpy3DBatchOp *, unsigned PY_LONG_LONG, cudaStream_t)\000cudaError_t (struct cudaArrayMemoryRequirements *, cudaArray_t, int)\000cudaError_t (struct cudaArrayMemoryRequirements *, cudaMipmappedArray_t, int)\000cudaError_t (struct cudaArraySparseProperties *, cudaArray_t)\000cudaError_t (struct cudaArraySparseProperties *, cudaMipmappedArray_t)\000cudaError_t (struct cudaChannelFormatDesc *, cudaArray_const_t)\000cudaError_t (struct cudaChannelFormatDesc *, struct cudaExtent *, unsigned int *, cudaArray_t)\000cudaError_t (struct cudaDeviceProp *, int)\000cudaError_t (struct cudaFuncAttributes *, void const *)\000cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_EGLImageKHR, unsigned int)\000cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_GLuint, __pyx_t_4cuda_8bindings_9cyruntime_GLenum, unsigned int)\000cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_GLuint, unsigned int)\000cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_VdpOutputSurface, unsigned int)\000cudaError_t (struct cudaGraphicsResource **, __pyx_t_4cuda_8bindings_9cyruntime_VdpVideoSurface, unsigned int)\000cudaError_t (struct cudaMemLocation *, enum cudaMemAllocationType, cudaMemPool_t)\000cudaError_t (struct cudaMemPoolPtrExportData *, void *)\000cudaError_t (struct cudaMemcpy3DParms const *)\000cudaError_t (struct cudaMemcpy3DParms const *, cudaStream_t)\000cudaError_t (struct cudaMemcpy3DPeerParms const *)\000cudaError_t (stru""ct cudaMemcpy3DPeerParms const *, cudaStream_t)\000cudaError_t (struct cudaPitchedPtr *, struct cudaExtent)\000cudaError_t (struct cudaPitchedPtr, int, struct cudaExtent)\000cudaError_t (struct cudaPitchedPtr, int, struct cudaExtent, cudaStream_t)\000cudaError_t (struct cudaPointerAttributes *, void const *)\000cudaError_t (struct cudaResourceDesc *, cudaSurfaceObject_t)\000cudaError_t (struct cudaResourceDesc *, cudaTextureObject_t)\000cudaError_t (struct cudaResourceViewDesc *, cudaTextureObject_t)\000cudaError_t (struct cudaTextureDesc *, cudaTextureObject_t)\000cudaError_t (unsigned int *)\000cudaError_t (unsigned int *, cudaLibrary_t)\000cudaError_t (unsigned int *, enum cudaAtomicOperation const *, unsigned int, int)\000cudaError_t (unsigned int *, enum cudaAtomicOperation const *, unsigned int, int, int)\000cudaError_t (unsigned int *, int *, unsigned int, enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)\000cudaError_t (unsigned int *, void *)\000cudaError_t (unsigned int)\000cudaError_t (void *)\000\000\000\000cudaError_t (void **, cudaExternalMemory_t, struct cudaExternalMemoryBufferDesc const *)\000cudaError_t (void **, cudaIpcMemHandle_t, unsigned int)\000cudaError_t (void **, cudaLibrary_t, char const *)\000cudaError_t (void **, cudaMemPool_t, struct cudaMemPoolPtrExportData *)\000cudaError_t (void **, size_t *, cudaGraphicsResource_t)\000cudaError_t (void **, size_t *, cudaLibrary_t, char const *)\000\000cudaError_t (void **, size_t *, enum cudaMemRangeAttribute *, size_t, void const *, size_t)\000cudaError_t (void **, size_t *, size_t, size_t)\000cudaError_t (void **, size_t *, size_t, struct cudaMemLocation *, size_t *, size_t, unsigned PY_LONG_LONG, cudaStream_t)\000\000cudaError_t (void **, size_t *, size_t, unsigned PY_LONG_LONG, cudaStream_t)\000cudaError_t (void **, size_t)\000\000cudaError_t (void **, size_t, cudaMemPool_t, cudaStream_t)\000cudaError_t (void **, size_t, cudaStream_t)\000cudaError_t (void **, size_t, unsigned int)\000""\000cudaError_t (void **, void *, unsigned int)\000cudaError_t (void *, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind)\000cudaError_t (void *, cudaArray_const_t, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t)\000cudaError_t (void *, cudaMemPool_t, enum cudaMemAllocationHandleType, unsigned int)\000cudaError_t (void *, cudaStream_t)\000cudaError_t (void *, int, int)\000cudaError_t (void *, int, size_t)\000cudaError_t (void *, int, size_t, cudaStream_t)\000cudaError_t (void *, int, void const *, int, size_t)\000cudaError_t (void *, int, void const *, int, size_t, cudaStream_t)\000cudaError_t (void *, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind)\000cudaError_t (void *, size_t, cudaArray_const_t, size_t, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t)\000cudaError_t (void *, size_t, enum cudaMemRangeAttribute, void const *, size_t)\000cudaError_t (void *, size_t, int, size_t, size_t)\000cudaError_t (void *, size_t, int, size_t, size_t, cudaStream_t)\000cudaError_t (void *, size_t, unsigned int)\000cudaError_t (void *, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind)\000cudaError_t (void *, size_t, void const *, size_t, size_t, size_t, enum cudaMemcpyKind, cudaStream_t)\000cudaError_t (void *, void const *, size_t, enum cudaMemcpyKind)\000cudaError_t (void *, void const *, size_t, enum cudaMemcpyKind, cudaStream_t)\000cudaError_t (void const **, cudaUUID_t const *)\000cudaError_t (void const **, void const **, size_t const *, size_t, struct cudaMemcpyAttributes *, size_t *, size_t, cudaStream_t)\000cudaError_t (void const *, enum cudaFuncAttribute, int)\000cudaError_t (void const *, enum cudaFuncCache)\000cudaError_t (void const *, enum cudaSharedMemConfig)\000cudaError_t (void const *, size_t, enum cudaMemoryAdvise, struct cudaMemLocation)\000cudaError_t (void const *, size_t, struct cudaMemLocation, unsigned int, cudaStream_t)\000cudaError_t (void)\000\000\000\000\000\000\000st""ruct cudaChannelFormatDesc (int, int, int, int, enum cudaChannelFormatKind)\000struct cudaExtent (size_t, size_t, size_t)\000struct cudaPitchedPtr (void *, size_t, size_t, size_t)\000struct cudaPos (size_t, size_t, size_t)\000cudaGetErrorName\000cudaGetErrorString\000cudaGraphicsResourceGetMappedEglFrame\000cudaEGLStreamConsumerDisconnect\000cudaEGLStreamProducerDisconnect\000cudaEGLStreamConsumerConnect\000cudaEGLStreamProducerConnect\000cudaEGLStreamConsumerConnectWithFlags\000cudaEGLStreamProducerReturnFrame\000cudaEGLStreamProducerPresentFrame\000cudaEGLStreamConsumerAcquireFrame\000cudaEGLStreamConsumerReleaseFrame\000cudaDeviceGetPCIBusId\000cudaGetDriverEntryPoint\000cudaGetDriverEntryPointByVersion\000cudaArrayGetPlane\000cudaGraphicsSubResourceGetMappedArray\000cudaGetMipmappedArrayLevel\000cudaMallocArray\000cudaMalloc3DArray\000cudaFreeArray\000cudaMemcpyArrayToArray\000cudaMemcpy2DArrayToArray\000cudaMemcpyToArray\000cudaMemcpyToArrayAsync\000cudaMemcpy2DToArray\000cudaMemcpy2DToArrayAsync\000cudaDevSmResourceSplitByCount\000cudaDevSmResourceSplit\000cudaDevResourceGenerateDesc\000cudaEventCreate\000cudaEventCreateFromEGLSync\000cudaIpcOpenEventHandle\000cudaEventCreateWithFlags\000cudaEventDestroy\000cudaEventQuery\000cudaEventSynchronize\000cudaEventRecord\000cudaEventRecordWithFlags\000cudaGreenCtxCreate\000cudaDeviceGetExecutionCtx\000cudaExecutionCtxDestroy\000cudaExecutionCtxSynchronize\000cudaExecutionCtxGetDevResource\000cudaExecutionCtxRecordEvent\000cudaExecutionCtxWaitEvent\000cudaExecutionCtxGetId\000cudaImportExternalMemory\000cudaDestroyExternalMemory\000cudaImportExternalSemaphore\000cudaSignalExternalSemaphoresAsync\000cudaWaitExternalSemaphoresAsync\000cudaDestroyExternalSemaphore\000cudaGraphConditionalHandleCreate_v2\000cudaGraphConditionalHandleCreate\000cudaGraphInstantiateWithParams\000cudaGraphInstantiate\000cudaGraphInstantiateWithFlags\000cudaGraphExecDestroy\000cudaGraphExecEventRecordNodeSetEvent\000cudaGraphExecEventWaitNodeSe""tEvent\000cudaGraphExecChildGraphNodeSetParams\000cudaGraphExecExternalSemaphoresSignalNodeSetParams\000cudaGraphExecExternalSemaphoresWaitNodeSetParams\000cudaGraphExecNodeSetParams\000cudaGraphExecHostNodeSetParams\000cudaGraphExecKernelNodeSetParams\000cudaGraphExecMemcpyNodeSetParams\000cudaGraphExecMemsetNodeSetParams\000cudaGraphNodeGetEnabled\000cudaGraphNodeSetEnabled\000cudaGraphExecMemcpyNodeSetParams1D\000cudaGraphExecUpdate\000cudaGraphLaunch\000cudaGraphUpload\000cudaGraphExecGetFlags\000cudaGraphExecGetId\000cudaGraphNodeFindInClone\000cudaGraphAddNode\000cudaGraphAddEmptyNode\000cudaGraphAddEventRecordNode\000cudaGraphAddEventWaitNode\000cudaGraphAddChildGraphNode\000cudaGraphAddExternalSemaphoresSignalNode\000cudaGraphAddExternalSemaphoresWaitNode\000cudaGraphAddHostNode\000cudaGraphAddKernelNode\000cudaGraphAddMemAllocNode\000cudaGraphAddMemcpyNode\000cudaGraphAddMemsetNode\000cudaGraphAddMemFreeNode\000cudaGraphAddMemcpyNode1D\000cudaGraphDestroyNode\000cudaGraphKernelNodeGetAttribute\000cudaGraphKernelNodeSetAttribute\000cudaGraphEventRecordNodeGetEvent\000cudaGraphEventWaitNodeGetEvent\000cudaGraphEventRecordNodeSetEvent\000cudaGraphEventWaitNodeSetEvent\000cudaGraphNodeGetDependencies\000cudaGraphNodeGetDependentNodes\000cudaGraphKernelNodeCopyAttributes\000cudaGraphChildGraphNodeGetGraph\000cudaGraphNodeGetContainingGraph\000cudaGraphNodeGetType\000cudaGraphExternalSemaphoresSignalNodeGetParams\000cudaGraphExternalSemaphoresSignalNodeSetParams\000cudaGraphExternalSemaphoresWaitNodeGetParams\000cudaGraphExternalSemaphoresWaitNodeSetParams\000cudaGraphNodeSetParams\000cudaGraphHostNodeGetParams\000cudaGraphHostNodeSetParams\000cudaGraphKernelNodeGetParams\000cudaGraphKernelNodeSetParams\000cudaGraphMemAllocNodeGetParams\000cudaGraphMemcpyNodeGetParams\000cudaGraphMemcpyNodeSetParams\000cudaGraphMemsetNodeGetParams\000cudaGraphMemsetNodeSetParams\000cudaGraphNodeGetToolsId\000cudaGraphNodeGetLocalId\000cudaGraphMemFreeNodeGetParams\000cudaGraphMem""cpyNodeSetParams1D\000cudaGraphClone\000cudaGraphCreate\000cudaGraphDestroy\000cudaGraphDebugDotPrint\000cudaGraphGetEdges\000cudaGraphGetNodes\000cudaGraphGetRootNodes\000cudaGraphAddDependencies\000cudaGraphRemoveDependencies\000cudaGraphReleaseUserObject\000cudaGraphRetainUserObject\000cudaGraphGetId\000cudaGraphicsUnregisterResource\000cudaGraphicsResourceSetMapFlags\000cudaIpcGetEventHandle\000cudaIpcGetMemHandle\000cudaLibraryGetKernel\000cudaLibraryEnumerateKernels\000cudaGetKernel\000cudaKernelSetAttributeForDevice\000cudaLibraryLoadFromFile\000cudaLibraryLoadData\000cudaLibraryUnload\000cudaLogsDumpToMemory\000cudaLogsDumpToFile\000cudaLogsCurrent\000cudaLogsUnregisterCallback\000cudaLogsRegisterCallback\000cudaDeviceGetDefaultMemPool\000cudaDeviceGetMemPool\000cudaMemGetDefaultMemPool\000cudaMemGetMemPool\000cudaMemPoolCreate\000cudaMemPoolImportFromShareableHandle\000cudaMemPoolDestroy\000cudaMemPoolGetAttribute\000cudaMemPoolSetAttribute\000cudaMemPoolTrimTo\000cudaMemPoolSetAccess\000cudaExternalMemoryGetMappedMipmappedArray\000cudaGraphicsResourceGetMappedMipmappedArray\000cudaMallocMipmappedArray\000cudaFreeMipmappedArray\000cudaStreamCreate\000cudaExecutionCtxStreamCreate\000cudaStreamCreateWithFlags\000cudaStreamCreateWithPriority\000cudaStreamDestroy\000cudaStreamQuery\000cudaStreamSynchronize\000cudaStreamGetAttribute\000cudaStreamSetAttribute\000cudaStreamGetDevResource\000cudaStreamWaitEvent\000cudaStreamUpdateCaptureDependencies\000cudaStreamEndCapture\000cudaStreamBeginCaptureToGraph\000cudaLaunchHostFunc\000cudaStreamAddCallback\000cudaStreamCopyAttributes\000cudaStreamBeginCapture\000cudaStreamIsCapturing\000cudaStreamGetCaptureInfo\000cudaStreamGetDevice\000cudaStreamGetPriority\000cudaStreamGetId\000cudaStreamGetFlags\000cudaStreamAttachMemAsync\000cudaCreateSurfaceObject\000cudaDestroySurfaceObject\000cudaCreateTextureObject\000cudaDestroyTextureObject\000cudaUserObjectCreate\000cudaUserObjectRelease\000cudaUserObjectRetain\000cudaDeviceF""lushGPUDirectRDMAWrites\000cudaDeviceGetCacheConfig\000cudaDeviceSetCacheConfig\000cudaDeviceSetLimit\000cudaMemPoolGetAccess\000cudaDeviceGetSharedMemConfig\000cudaDeviceSetSharedMemConfig\000cudaThreadExchangeStreamCaptureMode\000cudaEventElapsedTime\000cudaDriverGetVersion\000cudaGetDevice\000cudaGetDeviceCount\000cudaRuntimeGetVersion\000getLocalRuntimeVersion\000cudaVDPAUGetDevice\000cudaDeviceGetByPCIBusId\000cudaExecutionCtxGetDevice\000cudaDeviceGetAttribute\000cudaDeviceGetP2PAttribute\000cudaDeviceGetStreamPriorityRange\000cudaDeviceCanAccessPeer\000cudaChooseDevice\000cudaOccupancyMaxActiveBlocksPerMultiprocessor\000cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags\000cudaDeviceDisablePeerAccess\000cudaDeviceGraphMemTrim\000cudaSetDevice\000cudaVDPAUSetVDPAUDevice\000cudaDeviceRegisterAsyncNotification\000cudaDeviceUnregisterAsyncNotification\000cudaDeviceGetDevResource\000cudaGraphicsMapResources\000cudaGraphicsUnmapResources\000cudaDeviceSetMemPool\000cudaDeviceGetGraphMemAttribute\000cudaDeviceSetGraphMemAttribute\000cudaDeviceEnablePeerAccess\000cudaInitDevice\000cudaDeviceGetLimit\000cudaMemGetInfo\000cudaDeviceGetTexture1DLinearMaxWidth\000cudaOccupancyAvailableDynamicSMemPerBlock\000cudaMemcpy3DBatchAsync\000cudaArrayGetMemoryRequirements\000cudaMipmappedArrayGetMemoryRequirements\000cudaArrayGetSparseProperties\000cudaMipmappedArrayGetSparseProperties\000cudaGetChannelDesc\000cudaArrayGetInfo\000cudaGetDeviceProperties\000cudaFuncGetAttributes\000cudaGraphicsEGLRegisterImage\000cudaGraphicsGLRegisterImage\000cudaGraphicsGLRegisterBuffer\000cudaGraphicsVDPAURegisterOutputSurface\000cudaGraphicsVDPAURegisterVideoSurface\000cudaMemSetMemPool\000cudaMemPoolExportPointer\000cudaMemcpy3D\000cudaMemcpy3DAsync\000cudaMemcpy3DPeer\000cudaMemcpy3DPeerAsync\000cudaMalloc3D\000cudaMemset3D\000cudaMemset3DAsync\000cudaPointerGetAttributes\000cudaGetSurfaceObjectResourceDesc\000cudaGetTextureObjectResourceDesc\000cudaGetTextureObjectResourceViewDesc\000cud""aGetTextureObjectTextureDesc\000cudaGetDeviceFlags\000cudaLibraryGetKernelCount\000cudaDeviceGetHostAtomicCapabilities\000cudaDeviceGetP2PAtomicCapabilities\000cudaGLGetDevices\000cudaHostGetFlags\000cudaSetDeviceFlags\000cudaFree\000cudaFreeHost\000cudaHostUnregister\000cudaIpcCloseMemHandle\000cudaExternalMemoryGetMappedBuffer\000cudaIpcOpenMemHandle\000cudaLibraryGetUnifiedFunction\000cudaMemPoolImportPointer\000cudaGraphicsResourceGetMappedPointer\000cudaLibraryGetGlobal\000cudaLibraryGetManaged\000cudaMemRangeGetAttributes\000cudaMallocPitch\000cudaMemDiscardAndPrefetchBatchAsync\000cudaMemPrefetchBatchAsync\000cudaMemDiscardBatchAsync\000cudaMalloc\000cudaMallocHost\000cudaMallocFromPoolAsync\000cudaMallocAsync\000cudaHostAlloc\000cudaMallocManaged\000cudaHostGetDevicePointer\000cudaMemcpyFromArray\000cudaMemcpyFromArrayAsync\000cudaMemPoolExportToShareableHandle\000cudaFreeAsync\000cudaDeviceGetNvSciSyncAttributes\000cudaMemset\000cudaMemsetAsync\000cudaMemcpyPeer\000cudaMemcpyPeerAsync\000cudaMemcpy2DFromArray\000cudaMemcpy2DFromArrayAsync\000cudaMemRangeGetAttribute\000cudaMemset2D\000cudaMemset2DAsync\000cudaHostRegister\000cudaMemcpy2D\000cudaMemcpy2DAsync\000cudaMemcpy\000cudaMemcpyAsync\000cudaGetExportTable\000cudaMemcpyBatchAsync\000cudaFuncSetAttribute\000cudaFuncSetCacheConfig\000cudaFuncSetSharedMemConfig\000cudaMemAdvise\000cudaMemPrefetchAsync\000cudaCtxResetPersistingL2Cache\000cudaDeviceReset\000cudaDeviceSynchronize\000cudaGetLastError\000cudaPeekAtLastError\000cudaProfilerStart\000cudaProfilerStop\000cudaCreateChannelDesc\000make_cudaExtent\000make_cudaPitchedPtr\000make_cudaPos\200\001\33001\360R\004\000\005/\320.E\300Q\330\004J\310-\320Wd\320dr\320ry\360\000\000z\001D\002\360\000\000D\002E\002\330\t\n\330\010\027\320\0273\2601\3204X\320Xb\320bm\320mn\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330/0\360V\002\000\005\016\320\r \240\001\240\021\330\004\034\230G\240:\250V""\2601\330\004.\250d\260!\330\t\n\330\010\027\320\027,\250A\250\\\270\030\300\021\330\004\014\320\014\035\230Q\230a\200\001\3300Z\360\000\000[\001P\002\360\000\000P\002\\\003\360\000\000\\\003]\003\360T\002\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\023\2206\230\035\240c\250\032\2601\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\014\210F\220&\230\003\230:\240Q\330\004\r\210Q\320\016!\240\021\240)\2504\250{\270!\330\0046\3206L\310A\310Q\330\004\036\230h\240j\3200C\3001\330\004\"\240!\330\004\007\200v\210R\210x\220s\230!\2308\2406\250\034\260Q\3206L\310B\310c\320QR\320RU\320UV\320V^\320^`\320`f\320fh\320hk\320kl\320lm\330\004\007\200v\210R\210x\220s\230!\2308\2406\250\034\260Q\3206L\310B\310c\320QR\320RU\320UV\320V^\320^`\320`f\320fh\320hk\320kl\320lm\330\0045\260Q\330\004\007\200s\210!\210>\230\022\2301\330\010\031\320\0316\260f\270A\270S\300\001\300\037\320PQ\330\010\013\210?\230#\230Q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Tc\320ce\320ei\320ik\320kn\320no\320op\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\230>\250\021\250'\3201B\300,\310a\310u\320T_\320_`\330\t\014\210A\210^\2303\230a\330\010\032\320\032+\250<\260q\270\003\2701\330\004,\250A\330\004\007\320\007\027\220r\230\030\240\023\240A\240_\260F\270,\300a\320G]\320]_\320_b\320bc\320cf\320fg\320gv\320vx\320x~\360\000\000\177\001A\002\360\000\000A\002D\002\360\000\000D\002E\002\360\000\000E\002F\002\330\004\007\320\007\027\220r\230\030\240\023\240A\320%7\260v\270\\\310\021\320J`\320`b\320be\320ef\320fi\320ij\320j|\320|~\360\000\000\177\001E\002\360\000\000E\002G\002\360\000\000G\002J\002\360\000\000J\002K\002\360\000\000K\002L\002\330\t\n\330\010\027\320\027;\2701\270M\310""\027\320PU\320UY\320Y`\320`p\360\000\000q\001B\002\360\000\000B\002G\002\360\000\000G\002K\002\360\000\000K\002\\\002\360\000\000\\\002c\002\360\000\000c\002d\002\330\004\007\200s\210!\210>\230\022\2302\230T\240\037\260\007\260q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\330+,\3600\000\005\026\220Q\330\004+\2504\250q\330\t\n\330\010\027\320\027.\250a\250q\260\007\260x\270q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3600\000\005\010\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004 \240\001\330\t\n\330\010\027\320\027*\250!\250>\270\021\270!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3600\000\005\r\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\t\n\330\010\027\320\027*\250!\2501\330\004\014\320\014\035\230Q\230a\200\001\3600\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\320\032-\250Q\330\010\017\210s\220!\2201\340\010\017\210s\220!\220<\230q\240\001\330\004\014\320\014$\240J\250a\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\320\032-\250Q\330\010\017\210s\220!\2201\340\010\017\210s\220!\220<\230q\240\001\330\004\014\320\014$\240J\250a\330\t\n\330\010\027\320\0270\260\001\260\027\270\001\330\004\014\320\014\035\230Q\230a\200\001\3600\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\004\037\230{\250!\330\t\n\330\010\027\320\0277\260q\270\t\320AY\320Y`\320`a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3600\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022""\220#\220Q\320\026*\250!\2501\330\004\017\320\017/\250z\270\021\330\t\n\330\010\027\320\0271\260\021\260!\330\004\014\320\014\035\230Q\230a\200\001\330\036\037\3600\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\0044\260A\260]\300\"\300G\310:\320UV\330\t\n\330\010\027\320\027-\250Q\250i\260q\330\004\014\320\014\035\230Q\230a\200\001\3600\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\t\n\330\010\027\320\027-\250Q\250a\330\004\014\320\014\035\230Q\230a\200\001\3600\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\035/\250q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220k\240\021\240!\330\004\017\320\017&\240j\260\001\330\004 \240\001\330\t\n\330\010\027\220\177\240a\240z\260\021\260!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3600\000\005\010\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\320\031,\250A\250Q\330\004\022\320\0221\260\032\2701\330\004%\320%5\260Q\330\t\n\330\010\027\320\0278\270\001\3209V\320V^\320^i\320ij\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3600\000\005\010\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\320\031,\250A\250Q\330\004\022\320\0221\260\032\2701\330\004$\240O\2601\330\t\n\330\010\027\320\0277\260q\3208T\320T\\\320\\g\320gh\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\2301\200\001\33012\360H\001\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q""\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\t\n\330\010\027\320\027-\250Q\320.J\310*\320T_\320_h\320hy\320yz\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\0001Q\002\360\000\000Q\002R\002\360F\001\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027""\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\004;\270;\300m\320S_\320_f\320fp\320pq\330\t\n\330\010\027\320\027,\250A\320-I\310\032\320S^\320^g\320gx\360\000\000y\001J\002\360\000\000J\002K\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\2401\2501\2601\320\0041\260\027\270\013\3007\320Je\320ef\320fo\320op\320pq\200\001\360:\000\005\034\2301\330\t\n\330\010\027\220{\240!\2408\2501\250H\260A\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330+,\360|\001\000\005\034\2301\330\t\n\330\010\027\320\027,\250A\250X\260Q\260h\270f\300I\310Q\310d\320RS\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360,\000\n\013\330\010\027\320\027+\2501\330\004\014\320\014\035\230Q\230a\200\001\360`\002\000\n\013\330\010\027\320\027*\250!\2501\330\004\014\320\014\035\230Q\230a\200\001\3602\000\0050\320/G\300q\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\t\n\330\010\027\320\0270\260\001\3201V\320V`\320`k\320kl\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3602\000\005\027\220a\330\t\n\330\010\027\320\027/\250q\260\001\260\030\270\021\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3602\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\330\004\026\220a\330\t\n\330\010\027\320\0271\260\021\260!\2608\2701\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&""\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3602\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\t\n\330\010\027\320\027,\250A\250Q\330\004\014\320\014\035\230Q\230a\200\001\3602\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\004\007\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\t\n\330\010\027\320\0279\270\021\270(\300!\330\004\014\320\014\035\230Q\230a\200\001\330;<\3602\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\0041\260\024\260Q\330\004-\320-D\300A\330\t\n\330\010\027\320\0277\260q\270\t\300\030\320Im\320mv\320vw\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3602\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\004\037\230q\330\t\n\330\010\027\320\027/\250q\260\t\270\021\270!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3602\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004\036\230a\330\t\n\330\010\027\320\027*\250!\250;\260a\260q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330-.\3602\000\005\010\200x\210s\220!\330\010\023""\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\340\0045\260X\270]\310)\320SZ\320Zd\320de\330\t\n\330\010\027\320\027,\250A\250Q\250g\260[\300\001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\320$6\260a\260q\200\001\3602\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\0301\260\021\260!\330\004\021\320\0216\260j\300\001\330\t\n\330\010\027\320\027=\270Q\270h\300a\330\004\007\200t\210<\220q\330\010\014\210A\210X\220[\240\001\240\021\330\010\020\220\013\2306\240\021\240*\250A\330\004\014\320\014\035\230Q\230a\200\001\3602\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\030.\250a\250q\330\004\021\320\0213\260:\270Q\330\t\n\330\010\027\320\0276\260a\260q\330\004\014\320\014\035\230Q\230a\200\001\330\"#\360>\000\0052\260\021\330\004\007\200y\220\007\220q\330\010\025\220X\230Q\330\t\n\330\010\027\320\027*\250!\250<\260|\3001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3602\000\005\010\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\320\031,\250A\250Q\330\004\022\320\0221\260\032\2701\330\004-\320-A\300\021\330\t\n\330\010\027\320\027<\270A\320=^\320^j\320ju\320uv\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360,\000\n\013\330\010\027\320\0273\2601\260A\330\004\014\320\014\035\230Q\230a\200\001\33034\3604\000\005&\240Q\330\004:\270'\300\035\310h\320V]\320]g\320gh\330\t\n\330\010\027\320\027<\270A\270Q\320>R\320Ra\320ab\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33034\360D\001\000\005\010""\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\004\030\230\001\330\004@\300\n\310-\320Wb\320bi\320is\320st\330\t\n\330\010\027\320\0270\260\001\260\030\270\021\270%\270{\310!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33034\360H\003\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\r\210V\2207\230#\230Z\240q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\007\200w\210b\220\010\230\003\2301\230I\240V\250<\260q\3208N\310b\320PS\320ST\320TW\320WX\320Xa\320ac\320ci\320ik\320kn\320no\320op\330\0043\2601\330\004\007\200s\210!\2108\2202\220Q\330\010\023\320\0234\260F\270!\2703\270a\270y\310\001\330\010\013\2109\220C\220q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320T]\320]_\320_c\320ce\320eh\320hi\320ij\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\2308\2401\240G\320+@\300\006\300a\300u\310K\320WX\330\t\014\210A\210X\220S\230\001\330\010\024\320\024)\250\026\250q\260\003\2601\330\t\n\330\010\027\320\027.\250a\250x\260z\300\027\310\001\330\004\007\200s\210!\2108\2202\220R\220t\2309\240G\2501\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\33034\360R\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\0042\260$\260a\330\t\n\330\010\027\320\027.\250a\250z\270\021\330\004\014\320\014\035\230Q\230a\200\001\33034\360`\001\000\0053\260&\270\001\330\t\n\330\010\027\320\0274\260A\260Q\330\004\014\320\014\035\230Q\230a\200\001\33034\360,\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220""\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004;\270;\300m\320S_\320_f\320fp\320pq\330\t\n\330\010\027\320\0272\260!\2608\2701\330\004\014\320\014\035\230Q\230a\200\001\33034\360j\001\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\004\r\320\r \240\001\240\021\330\004\034\230G\240:\250V\2601\330\t\n\330\010\027\320\027/\250q\3200L\310J\320Va\320aj\320j{\360\000\000|\001M\002\360\000\000M\002N\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\320\0043\2607\270+\300W\320Lh\320hi\320ir\320rs\320st\200\001\360\002\0003K\002\360\000\000K\002L\002\360f\002\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\022\220&\230\014\240C\240z\260\021\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\022\220&\230""\014\240C\240z\260\021\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004<\270A\330\004\007\200s\210!\210=\230\002\230!\330\010\030\320\030=\270V\3001\300C\300q\310\016\320VW\330\010\013\210>\230\023\230A\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Tb\320bd\320dh\320hj\320jm\320mn\320no\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\035\230Q\230g\320%I\320Ib\320bm\320mn\320ns\320s|\320|}\320}~\330\t\014\210A\210]\230#\230Q\330\010\030\320\030=\320=V\320Va\320ab\320be\320ef\330\004D\300A\330\004\007\200s\210!\210=\230\002\230!\330\010\030\320\030E\300V\3101\310C\310q\320P^\320^_\330\010\013\210>\230\023\230A\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Tb\320bd\320dh\320hj\320jm\320mn\320no\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\230=\250\001\250\027\3200Q\320Q\\\320\\]\320]b\320bm\320mn\330\t\014\210A\210]\230#\230Q\330\010\031\320\031:\270+\300Q\300c\310\021\330\004\007\200{\220\"\220C\220q\230\016\240f\250L\270\001\3209O\310r\320QT\320TU\320UX\320XY\320Yg\320gi\320io\320oq\320qt\320tu\320uv\330\004\007\200{\220\"\220C\220q\230\016\240f\250L\270\001\3209O\310r\320QT\320TU\320UX\320XY\320Yg\320gi\320io\320oq\320qt\320tu\320uv\330\t\n\330\010\027\320\0277\260q\270\017\300\177\320Vb\320bc\330\004\007\200s\210!\210=\230\002\230\"\230D\240\016\250g\260Q\330\010\014\210A\210Q\330\004\007\200s\210!\210=\230\002\230\"\230D\240\016\250g\260Q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\360\002\0003S\002\360\000\000S\002T\002\360P\001\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013""\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\004:\270+\300]\320R^\320^e\320eo\320op\330\t\n\330\010\027\320\027.\250a\320/K\310:\320U`\320`i\320iz\360\000\000{\001L\002\360\000\000L\002M\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\0003S\002\360\000\000S\002T\002\360l\002\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\004=\270[\310\r\320Ua\320ah\320hr\320rs\330\t""\n\330\010\027\320\027.\250a\320/K\310:\320U`\320`i\320iz\360\000\000{\001L\002\360\000\000L\002M\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\0003U\002\360\000\000U\002V\002\360D\001\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\004;\270=\310\r\320Uc\320cj\320jt\320tu\330\t\n\330\010\027\320\027.\250a\320/K\310:\320U`\320`i\320iz\360\000\000{\001L\002\360\000\000L\002M\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360@\001\000\005\010\200|\2203\220a\330\010\027\220q\330\t\023\2201\220N\320\"4\260A\330\010\027\220s\230!\2301\340\010\027\220s\230!\230;\240a\240q\330\004\024\320\024+\250:\260Q\340\004\007\200}\220C\220q\330\010\030\230\001\330\t\023\2201\220O\320#9\270\021\330\010\030\230\003\2301\230A\340\010\030\230""\003\2301\230O\2501\250A\330\004\025\320\0250\260\n\270!\330\004!\240\037\260\001\330\t\n\330\010\027\320\0270\260\001\3201M\310U\320R]\320]m\320mn\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33045\3602\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004-\250T\260\021\330\004)\320)<\270A\330\t\n\330\010\027\320\027.\250a\250{\270(\320Bb\320bk\320kl\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33045\360T\001\000\005\022\220\026\220{\240#\240Z\250q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004(\250\001\330\004\025\220Q\330\004\007\200v\210S\220\001\330\010\031\230\037\250\006\250a\250w\260a\330\010\013\210?\230#\230Q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PW\320WY\320Y]\320]_\320_b\320bc\320cd\330\004>\270a\270|\3107\320RV\320Vf\320fg\320gh\330\004\007\200v\210R\210s\220!\220=\240\006\240l\260!\3203I\310\022\3103\310a\310s\320RS\320S`\320`b\320bh\320hj\320jm\320mn\320no\330\t\n\330\010\027\320\027:\270!\320;K\310<\320W\\\320\\`\320`g\320gr\320rs\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\031\230\021\230.\250\016\260a\260u\270D\300\007\300u\310A\310Q\330\004\007\200\177\220g\230Q\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33045\360b\001\000\0052\260\033\270A\330\t\n\330\010\027\320\0270\260\001\260\021\330\004\014\320\014\035\230Q\230a\200\001\3304N\310a\3604\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004-\250T\260\021\330\0046\260e\270=\310\006\310g\320U_\320_`\330\t\n\330\010\027\320\027.\250a\250{\270(\300!\330\004""\014\320\014\035\230Q\230a\200\001\3604\000\005\010\320\007\031\230\023\230A\330\010\036\320\036<\270J\300a\330\t\023\2201\320\024(\250\001\330\010\035\320\035.\250g\260Q\330\010\036\320\036<\270J\300a\330\t\023\2201\320\024(\250\001\330\010\036\320\036<\270J\300a\340\010\016\210i\220q\360\000\000\031K\002\360\000\000K\002M\002\360\000\000M\002P\002\360\000\000P\002Q\002\360\000\000Q\002U\002\360\000\000U\002V\002\360\000\000V\002W\002\340\004\007\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\031\240!\2401\330\004\022\320\022'\240z\260\021\330\004\026\220a\330\t\n\330\010\027\320\027*\250!\2501\250H\260M\300\021\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3604\000\005\037\230a\330\004\023\320\023*\250!\2501\250A\330\004\014\210K\220q\230\006\230a\200\001\3604\000\005\037\230a\330\t\n\330\010\027\320\027-\250Q\250a\250q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3604\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\330\004$\240A\330\t\n\330\010\027\320\027-\250Q\250g\260Q\260a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3604\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004-\320-C\3001\330\t\n\330\010\027\320\0276\260a\260x\320?b\320bl\320lm\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3604\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240""\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\320\027.\250a\250y\270\006\270a\330\004\014\320\014\035\230Q\230a\200\001\3604\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\t\n\330\010\027\320\027)\250\021\250!\330\004\014\320\014\035\230Q\230a\200\001\3604\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\t\n\330\010\027\320\027'\240q\250\001\330\004\014\320\014\035\230Q\230a\200\001\3604\000\005\010\200x\210s\220!\330\010\024\320\024-\250Z\260q\330\t\023\2201\220J\320\0361\260\021\330\010\023\2207\230'\240\021\330\010\024\320\024-\250Z\260q\330\t\023\2201\220J\230a\330\010\024\320\024-\250Z\260q\340\010\016\210i\220q\320\030{\320{}\360\000\000~\001A\002\360\000\000A\002B\002\360\000\000B\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\340\004\007\200~\220S\230\001\330\010\031\230\021\330\t\023\2201\320\024$\240A\330\010\031\230\023\230A\230Q\340\010\031\230\023\230A\320\0353\2601\260A\330\004\026\320\0268\270\n\300!\340\004\007\200u\210C\210q\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\320\0339\270\021\330\010\020\220\004\220G\2301\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\2301\330\010\021\320\0215\260Z\270q\340\010\016\210i\220q\360\000\000\031D\002\360\000\000D\002F\002\360\000\000F\002I\002\360\000\000I\002J\002\360\000\000J\002N\002\360\000\000N\002O\002\360\000\000O\002P\002\330\t\n\330\010\027\320\0279\270\021\270(\320BS\320ST\330\004\014\320\014\035\230Q\230a\200\001\3604\000\005\010\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\320 6\260a\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\037\250\001\250\021\330\004\022\320\022-\250Z\260q\330\004$\240A\330\t\n\330\010\027\320\027-\250Q\250m\2701\270A\330\004\007\200t\210<\220q\330\010""\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3604\000\005\010\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\034\240Q\240a\330\004\022\320\022*\250*\260A\330\004(\320(?\270q\330\t\n\330\010\027\320\0274\260A\3205Y\320Y]\320]h\320hi\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33056\360L\001\000\005\022\220\026\220{\240#\240Z\250q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004(\250\001\330\004\025\220Q\330\004\007\200v\210S\220\001\330\010\031\230\037\250\006\250a\250w\260a\330\010\013\210?\230#\230Q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PW\320WY\320Y]\320]_\320_b\320bc\320cd\330\004>\270a\270|\3107\320RV\320Vf\320fg\320gh\330\004\007\200v\210R\210s\220!\220=\240\006\240l\260!\3203I\310\022\3103\310a\310s\320RS\320S`\320`b\320bh\320hj\320jm\320mn\320no\330\t\n\330\010\027\320\027;\2701\320<L\310L\320X]\320]a\320ah\320hi\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\031\230\021\230.\250\016\260a\260u\270D\300\007\300u\310A\310Q\330\004\007\200\177\220g\230Q\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33056\360R\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004\024\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a""\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\t\n\330\010\027\320\0271\260\021\3202N\310j\320Xc\320cl\320l}\360\000\000~\001O\002\360\000\000O\002P\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33056\360,\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\0049\270\033\300M\320Q]\320]d\320dn\320no\330\t\n\330\010\027\320\0274\260A\260X\270Q\330\004\014\320\014\035\230Q\230a\200\001\33056\360,\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004:\270+\300]\320R^\320^e\320eo\320op\330\t\n\330\010\027\320\0274\260A\260X\270Q\330\004\014\320\014\035\230Q\230a\200\001\33056\360,\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004=\270[\310\r\320Ua\320ah\320hr\320rs\330\t\n\330\010\027\320\0274\260A\260X\270Q\330\004\014\320\014\035\230Q\230a\200\001\33056\360@\002\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250""\032\2601\330\004,\250D\260\001\330\004.\320.H\310\001\310\026\310s\320R\\\320\\]\330\004\035\230W\240J\250g\260Q\330\t\n\330\010\027\320\027/\250q\260\013\2708\3001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240G\2506\260\021\200\001\33056\360t\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\004,\250D\260\001\330\004.\320.H\310\001\310\026\310w\320V`\320`a\330\004\035\230W\240J\250g\260Q\330\t\n\330\010\027\320\027/\250q\260\013\2708\3001\330\004\014\320\014\035\230Q\230a\200\001\360\002\0005M\002\360\000\000M\002N\002\360\\\003\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\022\220&\230\014\240C\240z\260\021\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\022\220&\230\014\240C\240z\260\021\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004<\270A\330\004\007\200s\210!\210=\230\002\230!\330\010\030\320\030=\270V\3001\300C\300q\310\016\320VW\330\010\013\210>\230\023\230A\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Tb\320bd\320dh\320hj\320jm\320mn\320no\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\035\230Q\230g\320%I\320Ib\320bm\320mn\320ns\320s|\320|}\320}~\330\t\014\210A\210]\230#\230Q\330\010\030\320\030=\320=V\320Va\320ab\320be\320ef\330\004F\300a\330\004\007\200s\210!\210=\230\002\230!\330\010\030\320\030G\300v\310Q\310c\320QR\320R`\320`a\330\010\013\210>\230\023\230A\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Tb\320bd\320dh\320hj\320jm\320mn\320no\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\230=\250\001\250\027\3200S\320S^\320^_\320_d\320do\320op\330\t\014\210A\210]\230#\230Q\330\010\031\320\031<\270K\300q\310""\003\3101\330\004\007\200{\220\"\220C\220q\230\016\240f\250L\270\001\3209O\310r\320QT\320TU\320UX\320XY\320Yg\320gi\320io\320oq\320qt\320tu\320uv\330\004\007\200{\220\"\220C\220q\230\016\240f\250L\270\001\3209O\310r\320QT\320TU\320UX\320XY\320Yg\320gi\320io\320oq\320qt\320tu\320uv\330\t\n\330\010\027\320\0279\270\021\270/\310\037\320Xd\320de\330\004\007\200s\210!\210=\230\002\230\"\230D\240\016\250g\260Q\330\010\014\210A\210Q\330\004\007\200s\210!\210=\230\002\230\"\230D\240\016\250g\260Q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\360@\001\000\005$\320#5\260Q\330\004\r\320\r \240\001\240\021\330\004\034\230G\240:\250V\2601\330\t\n\330\010\027\320\027-\250Q\320.M\310T\320Q\\\320\\]\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360 \000\n\013\330\010\027\320\0275\260Q\330\004\014\320\014\035\230Q\230a\200\001\360\002\0005T\002\360\000\000T\002U\002\360V\002\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\004>\270j\310\r\320U`\320`g\320gq\320qr\330\t""\n\330\010\027\320\0270\260\001\3201M\310Z\320Wb\320bk\320k|\360\000\000}\001N\002\360\000\000N\002O\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\320\0045\260W\270K\300w\320Nk\320kl\320lu\320uv\320vw\200\001\360\002\0005o\002\360\000\000o\002p\002\360p\001\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\0270\260\001\3201M\310Z\320Wb\320bk\320k|\360\000\000}\001N\002\360\000\000N\002Y\002\360\000\000Y\002d\002\360\000\000d\002k\002\360\000\000k\002l\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33067\3606\000\005\010\200x\210s\220!\330\010\024\320\024-\250Z\260q\330\t\023\2201\220J\320\0361\260\021\330\010\023\2207\230'\240\021\330\010\024\320\024-\250Z\260q\330\t\023\2201\220J\230a\330\010\024\320\024-\250Z\260q\340\010\016\210i\220q\320\030{\320{}\360\000\000~\001A\002\360\000""\000A\002B\002\360\000\000B\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\340\004\007\200u\210C\210q\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\320\0339\270\021\330\010\020\220\004\220G\2301\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\2301\330\010\021\320\0215\260Z\270q\340\010\016\210i\220q\360\000\000\031D\002\360\000\000D\002F\002\360\000\000F\002I\002\360\000\000I\002J\002\360\000\000J\002N\002\360\000\000N\002O\002\360\000\000O\002P\002\330\0042\260(\270-\300y\320PW\320Wa\320ab\330\t\n\330\010\027\320\0278\270\001\270\030\320AQ\320QR\330\004\014\320\014\035\230Q\230a\200\001\33067\360N\001\000\005\010\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!3\2601\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230+\240Q\240a\330\004\023\320\023*\250*\260A\330\004\024\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\t\n\330\010\027\320\0272\260!\3203O\310z\320Yd\320dm\320m~\360\000\000\177\001P\002\360\000\000P\002Q\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t""\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3606\000\n\013\330\010\027\220}\240A\240S\250\003\2501\330\004\033\2307\240!\330\004\013\2109\220A\220U\230!\330\004\013\2101\200\001\3606\000\005#\240!\330\004\r\320\r \240\001\240\021\330\004\034\230G\240:\250V\2601\330\t\n\330\010\027\320\027A\300\021\300!\320CT\320T`\320`k\320kl\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3606\000\005\032\230\021\330\004\r\320\r \240\001\240\021\330\004\034\230G\240:\250V\2601\330\t\n\330\010\027\320\027E\300Q\300a\300{\320R^\320^i\320ij\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330=>\3606\000\005%\240O\2601\330\0044\260H\270A\330\t\n\330\010\027\320\0270\260\001\260\030\3209U\320U]\320]h\320hi\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3606\000\005\"\240\035\250a\330\t\n\330\010\027\320\027,\250A\320-G\300w\310k\320YZ\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3606\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\220=\240\001\240\021\330\004\014\320\014%\240Z\250q\330\004-\250Q\330\004\020\220\001\330\004\007\200{\220#\220Q\330\010\024\320\024-\250V\2601\260L\300\001\330\010\013\210:\220S\230\001\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P\\\320\\^\320^b\320bd\320dg\320gh\320hi\330\t\n\330\010\027\320\0273\2601\260K\270|\3101\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\024\220A\220\\\240\021\240+\250Z\260y\300\001\300\026\300t\3107\320RW\320WX\320XY\330\004\007\200z\220\027\230\001\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330<=\3606\000\005\010\200t\2103\210a""\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\330\004$\240O\2601\330\0044\260H\270A\330\t\n\330\010\027\320\0276\260a\260w\320>Z\320Zb\320bm\320mn\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3606\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\320\027(\250\001\250\021\330\004\014\320\014\035\230Q\230a\200\001\3606\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\320 6\260a\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\037\250\001\250\021\330\004\022\320\022-\250Z\260q\330\t\n\330\010\027\320\027'\240q\250\r\260Q\330\004\014\320\014\035\230Q\230a\200\001\3606\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\230a\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\004 \240\014\250A\330\t\n\330\010\027\320\027,\250A\320-F\300g\310[\320Xc\320cd\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330()\340\004\"\240!\330\0046\260n\300M\320Q`\320`g\320gq\320qr\330\t\n\330\010\027\320\027*\250!\250>\270\021\270/\310\021\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33078\360J\001\000\005\r\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\220{\240!\240;\250k\270\027\300\001\330\004\014\320\014\035\230Q\230a\200\001""\33078\360L\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004\024\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\t\n\330\010\027\320\0273\2601\3204P\320PZ\320Ze\320en\320n\177\360\000\000@\002Q\002\360\000\000Q\002R\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\33078\360r\001\000\005\016\320\r \240\001\240\021\330\004\034\230G\240:\250V\2601\330\0042\260&\270\001\330\t\n\330\010\027\320\0272\260!\260<\270q\330\004\014\320\014\035\230Q\230a\320\004)\250\027\260\013\2707\320BY\320YZ\320Zc\320cd\320de\320\004+\2507\260+\270W\320D\\\320\\]\320]f\320fg\320gh\200\001\330?@\360>\000\0057\260d\270!\330\004/\320/J\310!\3106\320QX\320Xb\320bc\330\004\035\230W\240J\250g\260Q\330\t\n\330\010\027\320\0276\260a\260x\270x\300q\330\004\014\320\014\035\230Q""\230a\320\0047\260w\270k\310\027\320Pn\320no\320ox\320xy\320yz\200\001\33089\360~\001\000\0053\260$\260a\330\t\n\330\010\027\320\027;\2701\270A\270Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\320$9\270\021\270!\200\001\33089\360p\001\000\005\016\320\r \240\001\240\021\330\004\034\230G\240:\250V\2601\330\0041\260\033\270A\330\t\n\330\010\027\320\027.\250a\250|\2701\330\004\014\320\014\035\230Q\230a\200\001\3608\000\005\020\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\220{\240!\240>\260\027\270\001\330\004\014\320\014\035\230Q\230a\200\001\330\031\032\3608\000\0055\260A\260]\300\"\300G\310:\320UV\330\t\n\330\010\027\320\027(\250\001\250\021\330\004\014\320\014\035\230Q\230a\200\001\3608\000\n\013\330\010\027\320\027'\240q\250\003\2503\250a\330\004\036\230j\250\001\330\004\013\2109\220A\220U\230!\330\004\013\2101\200\001\3608\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\330\t\n\330\010\027\320\0273\2601\260A\330\004\014\320\014\035\230Q\230a\200\001\330./\3608\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004;\270:\300]\320R]\320]d\320dn\320no\330\t\n\330\010\027\320\027.\250a\250x\260q\330\004\014\320\014\035\230Q\230a\200\001\3608\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004\036\230k\250\021\330\t\n\330\010\027\320\0277\260q\270\010\320@X\320X^\320^_\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\3608\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0354\260A\330\010\022\220#\220Q\220a""\340\010\022\220#\220Q\320\026&\240a\240q\330\004\017\320\017+\250:\260Q\330\t\n\330\010\027\320\027,\250A\250Z\260q\330\004\014\320\014\035\230Q\230a\200\001\3608\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\030.\250a\250q\330\004\021\320\0213\260:\270Q\330\004\033\2301\330\004\027\220q\330\t\n\330\010\027\320\027<\270A\270X\300Q\300h\310a\310v\320UV\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240H\250A\200\001\3309n\320no\360B\001\000\005B\001\300\026\300q\330\004?\270u\300A\330\t\n\330\010\027\320\027:\270!\270:\300Q\330\004\014\320\014\035\230Q\230a\230A\200\001\330@A\360B\001\000\005\010\200x\210s\220!\330\010\024\320\024-\250Z\260q\330\t\023\2201\220J\320\0361\260\021\330\010\023\2207\230'\240\021\330\010\024\320\024-\250Z\260q\330\t\023\2201\220J\230a\330\010\024\320\024-\250Z\260q\340\010\016\210i\220q\320\030{\320{}\360\000\000~\001A\002\360\000\000A\002B\002\360\000\000B\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\340\004\007\200u\210C\210q\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\320\0339\270\021\330\010\020\220\004\220G\2301\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\2301\330\010\021\320\0215\260Z\270q\340\010\016\210i\220q\360\000\000\031D\002\360\000\000D\002F\002\360\000\000F\002I\002\360\000\000I\002J\002\360\000\000J\002N\002\360\000\000N\002O\002\360\000\000O\002P\002\330\t\n\330\010\027\320\0279\270\021\270(\300(\310)\320ST\320TX\320XY\330\004\014\320\014\035\230Q\230a\200\001\360:\000\005'\320&<\270A\330\t\n\330\010\027\320\0271\260\021\3202U\320UX\320Xc\320cd\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\250A\240A\200A\330\010\013\2104\210w\320\026=\270Q\330=>\330=>\330\014\023\2204\220q\330\r\021\220\027\320\030?\270q\330\014\023\2201\220D\230\016\240a\240u\250D\260\007\260u\270A\270S\300\001\300\024\300[\320PQ""\320QR\340\014\022\220)\2301\320\034=\270W\300A\300T\310\021\200\001\360\002\000A\002B\002\360b\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023$\240A\240Q\330\004\014\320\014)\250\032\2601\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\027-\250Q\250k\270\030\300\027\310\t\320QZ\320Za\320ai\320ij\330\004\014\320\014\035\230Q\230a\200\001\360(\000\005!\240\014\250A\330\t\n\330\010\027\320\027(\250\001\320)B\300'\310\021\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200A\330\010\t\340\r\021\220\027\320\030C\3001\330\014\023\2204\220q\330\r\021\220\027\320\030C\3001\330\014\023\2204\220q\330\r\021\220\027\320\030C\3001\330\014\023\220:\230T\240\021\330\r\021\220\027\320\030C\3001\330\014\023\2204\220q\330\r\021\220\027\320\030C\3001\330\014\023\2204\220q\340\014\022\220)\2301\320\0347\260w\270a\270t\3001\200\001\360\002\000A\001L\002\360\000\000L\002r\003\360\000\000r\003s\003\360d\001\000\005\026\220V\230?\250#\250Z\260q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\023\2206\230\035\240c\250\032\2601\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\340\004\007\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\0045\260Q\330\004\007\200s\210!\210>\230\022\2301\330\010\031\320\0316\260f\270A\270S\300\001\300\037\320PQ\330\010\013\210?\230#\230Q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Tc\320ce\320ei\320ik\320kn\320no\320op\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\036\230a\230w""\320&B\320BS\320S_\320_`\320`e\320en\320no\320op\330\t\014\210A\210^\2303\230a\330\010\031\320\0316\3206G\300|\320ST\320TW\320WX\330\0049\270\021\330\004\007\200s\210!\320\013\033\2302\230Q\330\010\033\320\033:\270&\300\001\300\023\300A\320EV\320VW\330\010\013\320\013\034\230C\230q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Te\320eg\320gk\320km\320mp\320pq\320qr\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\320\033+\2501\250G\3203F\300n\320TU\320UZ\320Ze\320ef\330\t\014\210A\320\r\035\230S\240\001\330\010\034\320\034/\250~\270Q\270c\300\021\330\004\007\320\007\027\220r\230\030\240\023\240A\240_\260F\270,\300a\320G]\320]_\320_b\320bc\320cf\320fg\320gv\320vx\320x~\360\000\000\177\001A\002\360\000\000A\002D\002\360\000\000D\002E\002\360\000\000E\002F\002\330\0042\260$\260a\330\t\n\330\010\027\320\0275\260Q\260j\300\t\320IY\320Yk\320k|\320|}\330\004\007\200s\210!\210>\230\022\2302\230T\240\037\260\007\260q\330\010\014\210A\210Q\330\004\007\200s\210!\320\013\033\2302\230R\230t\320#4\260G\2701\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\320\004A\300\027\310\013\320SZ\320Z}\320}~\360\000\000\177\001H\002\360\000\000H\002I\002\360\000\000I\002J\002\200A\330\010\017\210t\2201\200A\330\010\017\210t\220<\230s\240!\330\010\013\2104\210w\320\026;\2701\330;<\330;<\330\014\023\2204\220q\330\r\021\220\027\320\030=\270Q\330=>\330=>\330=>\330=>\330\014\023\2204\220q\340\014\022\220)\2301\320\034=\270W\300A\300T\310\021\200A\330\010\017\210t\220<\230s\240!\330\010\013\2104\210w\320\026;\2701\330\014\023\2204\220q\330\r\021\220\027\320\030=\270Q\330=>\330=>\330=>\330=>\330\014\023\2204\220q\330\r\021\220\027\320\030=\270Q\330=>\330\014\023\2204\220q\330\r\021\220\027\320\030=\270Q\330\014\023\220:\230T\240\021\330\r\021\220\027\320\030=\270Q\330\014\023\2204\220q\330\r\021\220\027\320\030=\270Q\330=>\330=>\330=>\330\014\023\2204\220q\330\r\021\220\027\320\030=\270Q\330\014\023\2204\220q\330\r\021\220\027\320\030=\270Q\330\014""\023\2204\220q\330\r\021\220\027\320\030=\270Q\330\014\023\2204\220q\340\014\022\220)\2301\320\034=\270W\300A\300T\310\021\200A\330\010\017\210t\220<\230s\240!\330\010\013\2104\210w\320\026<\270A\330<=\330<=\330<=\330\014\023\2204\220q\340\014\022\220)\2301\320\034=\270W\300A\300T\310\021\200A\330\010\017\210t\220<\230s\240!\330\010\013\2104\210y\320\030<\270A\330:;\330\014\023\2204\220q\330\r\021\220\031\320\032>\270a\330<=\330<=\330<=\330\014\023\2204\220q\340\014\022\220)\2301\320\034=\270W\300A\300T\310\021\200A\330\010\017\210z\230\024\230Q\200A\330\010\017\210z\230\021\230$\230i\240q\250\002\250!\200A\330\010\017\210z\230\021\230$\230i\240q\250\002\250'\260\021\200A\330\010\017\210z\230\021\230$\230i\240q\250\002\250#\250Q\200A\330\010\017\210z\230\021\230$\230i\240q\250\002\250+\260Q\200A\330\010\017\210z\230\021\230$\230i\240q\250\002\250$\250a\200A\330\010\017\210z\230\021\230$\230i\240q\250\002\250%\250q\200\001\330BC\360@\003\000\0050\250q\330\004\017\210q\220\017\230s\240$\240g\250U\260!\2601\330\004\007\200y\220\003\2201\330\010\023\320\023/\250v\260Q\260j\300\001\330\010\013\2109\220C\220q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PZ\320Z\\\320\\`\320`b\320be\320ef\320fg\330\004#\2401\330\0043\2606\270\035\300g\310W\320T^\320^_\330\004%\240_\260A\330\t\n\330\010\027\320\0275\260Q\260j\300\001\300\034\310^\320[w\360\000\000x\001A\002\360\000\000A\002L\002\360\000\000L\002S\002\360\000\000S\002T\002\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\014\210G\2205\230\001\230\021\330\022\031\230\022\320\033,\250H\260A\260U\270+\300Q\300h\310a\310v\320UV\330\004\007\200y\220\007\220q\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250f\260A\330\004\014\320\014\035\230Q\230f\240J\250l\270!\200\001\330\033\034\360B\002\000\005\036\230[\250\001\330\0047\260t\270=\310\005\310W\320T^\320^_\330\t\n\330\010\027\320\027'\240q\320(@\300\005\300[\320P\\\320\\c\320ck\320kl\330\004\007\200t\210<\220q\330\010""\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360B\003\000\005\035\230A\340\t\n\330\010\027\320\0278\270\001\270\030\300\030\310\021\310)\320S`\320`g\320gh\320hi\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240I\320-L\310A\310Q\200\001\360B\001\000\005\010\200~\220S\230\001\330\010\031\230\021\330\t\023\2201\320\024$\320$6\260a\330\010\031\230\023\230A\230Q\340\010\031\230\023\230A\230[\250\001\250\021\330\004\026\320\026-\250Z\260q\330\004#\240;\250a\330\t\n\330\010\027\220\177\240a\320'?\270{\310+\320UV\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360B\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\230A\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004:\320:U\320UV\330\t\n\330\010\027\320\0276\260a\3207_\320_q\320q|\360\000\000}\001F\002\360\000\000F\002G\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360B\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\t\n\330\010\027\320\027<\270A\270^\3109\320TU\330\004\014\320\014\035\230Q\230a\200\001\360B\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320""\016%\240Z\250q\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\t\n\330\010\027\320\027:\270!\270>\310\031\320RS\330\004\014\320\014\035\230Q\230a\200\001\360B\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\320\026*\250!\2501\330\004\017\320\017/\250z\270\021\330\004:\320:U\320UV\330\t\n\330\010\027\320\027?\270q\320@h\320hz\360\000\000{\001F\002\360\000\000F\002P\002\360\000\000P\002Q\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\320\004C\3007\310+\320U\\\360\000\000]\001A\002\360\000\000A\002B\002\360\000\000B\002K\002\360\000\000K\002L\002\360\000\000L\002M\002\200\001\330CD\360J\003\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\017\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\320\027,\250A\250^\2707\300(\310)\320ST\320TX\320X_\320_`\330\004\014\320\014\035\230Q\230a\200\001\330CD\360L\001\000\0050\250q\260\001\330\t\n\330\010\027\320\027-\250Q\250c\260\023\260C\260s\270!\330\004)\320)>\270a\330\004\013\2109\220A\220U\230!\330\004\014\210K\220~\240Q\200\001\330CD\360N\004\000\0050\320/K\3101\310K\320WX\330\004\034\230G\240:\250V\2601\330\0047\260y\300\001\330\004\017\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\320\0270\260\001\260\034\270Z\300}\320Tb\320bc\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240F\250&\260\001\200\001\330CD\360>\000\005\010""\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004;\270;\300m\320S_\320_f\320fp\320pq\330\t\n\330\010\027\320\0276\260a\260~\300X\310Q\330\004\014\320\014\035\230Q\230a\200\001\330CD\360j\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\320\026*\250!\2501\330\004\017\320\017/\250z\270\021\330\004'\320';\2701\330\004L\310J\320Vc\320cn\320nu\320u\177\360\000\000@\002A\002\330\t\n\330\010\027\320\027A\300\021\320Bc\320ci\320it\320t~\320~\177\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\000:C\002\360\000\000C\002R\003\360\000\000R\003f\004\360\000\000f\004g\004\360F\002\000\005\033\230&\320 4\260C\260z\300\021\330\004\025\220V\230?\250#\250Z\260q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\027\220v\320\035.\250c\260\032\2701\330\004\021\220\026\220{\240#\240Z\250q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004!\240\035\250a\330\0048\270\001\270\034\300W\310D\320P`\320`a\320ab\330\004\r\210Q\320\016\"\240!\240;\320.>\270d\300+\320M_\320_b\320bc\320co\320op\330\004A\320AW\320WX\320XY\330\004)\250\030\260\032\320;Y\320YZ\330\004\007\200~\220R\220s\230!\230=\250\006\250l\270!\320;Q\320QS\320SV\320VW\320WZ\320Z[\320[h\320hj\320jp\320pr\320ru\320uv\320vw\330\004\007\200~\220R\220s\230!\320\033.\250f\260L\300\001\320AW\320WY\320Y\\\320\\]\320]`\320`a\320at\320tv\320v|\320|~\360\000\000\177\001B\002\360\000\000B\002C\002\360\000\000C\002D\002\330\004@\300\001\320AQ\320QX\320X\\\320\\p\320pq\320qr\330\004\r\210Q\320\016&\240a\240{\3202B\300$\300k\320Qc\320cf\320fg\320gw\320w""x\330\004D\320DZ\320Z[\320[\\\330\004,\250H\260J\320>_\320_`\330\004\007\320\007\031\230\022\2303\230a\320\0370\260\006\260l\300!\320CY\320Y[\320[^\320^_\320_b\320bc\320ct\320tv\320v|\320|~\360\000\000\177\001B\002\360\000\000B\002C\002\360\000\000C\002D\002\330\004\007\320\007\031\230\022\2303\230a\320\0375\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320h~\360\000\000\177\001A\002\360\000\000A\002G\002\360\000\000G\002I\002\360\000\000I\002L\002\360\000\000L\002M\002\360\000\000M\002N\002\330\t\n\330\010\027\320\027/\250q\3200J\310'\320Q\\\320\\f\320fr\320rw\320w{\360\000\000|\001T\002\360\000\000T\002c\002\360\000\000c\002s\002\360\000\000s\002x\002\360\000\000x\002|\002\360\000\000|\002W\003\360\000\000W\003X\003\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\000C\001b\002\360\000\000b\002c\002\360H\001\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\004K\310:\320Ub\320bm\320mt\320t~\320~\177\330\t\n\330\010\027\320\027>\270a\320?[\320[e\320ep\320py\360""\000\000z\001K\002\360\000\000K\002\\\002\360\000\000\\\002]\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360*\000\005\010\200}\220C\220q\330\010\030\230\001\330\t\023\2201\220O\2401\330\010\030\230\003\2301\230A\340\010\030\230\003\2301\320\034.\250a\250q\330\004\025\320\0253\260:\270Q\330\004\021\320\021$\240A\240Q\330\004 \240\007\240z\260\032\2701\330\004/\320/E\300Q\330\t\n\330\010\027\320\0270\260\001\3201A\320AQ\320Qt\360\000\000u\001A\002\360\000\000A\002B\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360D\001\000\005\020\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\320\027-\250Q\250a\330\004\014\320\014\035\230Q\230a\200\001\360D\001\000\005!\240\014\250A\330\t\n\330\010\027\320\0271\260\021\3202K\3107\320R]\320]^\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\000D\002E\002\360|\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\220;\230a\230q\330\004\014\320\014#\240:\250Q\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\0270\260\001\260\027\270\t\300\031\310+\320U]\320]d\320dl\320lt\320tu\330\004\014\320\014\035\230Q\230a\200\001\360D\001\000\005\030\220q\330\004\030\230\001\330\t\n\330\010\027\220\177\240a\240q\250\006\250a\250q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240F\250!\200\001\360D\001\000\005\010\200v\210S\220\001\330\010\021\220""\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004\"\240!\330\t\n\330\010\027\320\027/\250q\260\016\270i\300q\310\001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360D\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\004\030\230\001\330\t\n\330\010\027\320\027/\250q\260\010\270\001\270\025\270f\300K\310q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360D\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0354\260A\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\320\026&\240a\240q\330\004\017\320\017+\250:\260Q\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\320\0271\260\021\260)\270:\300W\310A\330\004\014\320\014\035\230Q\230a\200\001\360D\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\230a\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\004\031\230\021\330\004\033\2301\330\t\n\330\010\027\320\027,\250A\250X\260Q\260f\270A\270Z\300{\320RS\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240F\250!\200\001\330EF\360R\001\000""\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004:\270+\300]\320R^\320^e\320eo\320op\330\t\n\330\010\027\320\0278\270\001\270\036\300x\310q\330\004\014\320\014\035\230Q\230a\200\001\330EF\360\\\001\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\0049\270\033\300M\320Q]\320]d\320dn\320no\330\t\n\330\010\027\320\0278\270\001\270\036\300x\310q\330\004\014\320\014\035\230Q\230a\200\001\330EF\360.\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\004K\310:\320Ub\320bm\320mt\320t~\320~\177\330\t\n\330\010\027\320\027D\300A\300Y\310a\330\004\014\320\014\035\230Q\230a\200\001\330EF\360t\001\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004=\270[\310\r\320Ua\320ah\320hr\320rs\330\t\n\330\010\027\320\0278\270\001\270\036\300x\310q\330\004\014\320\014\035\230Q\230a\200\001\360\002\000E\001d\002\360\000\000d\002e\002\360H\001\000\005\025\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230""\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY\320YZ\330\004\007\320\007\027\220r\230\030\240\023\240A\320%5\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320hx\320xz\360\000\000{\001A\002\360\000\000A\002C\002\360\000\000C\002F\002\360\000\000F\002G\002\360\000\000G\002H\002\330\004M\310Z\320Wd\320do\320ov\360\000\000w\001A\002\360\000\000A\002B\002\330\t\n\330\010\027\320\027@\300\001\320A]\320]g\320gr\320r{\360\000\000|\001M\002\360\000\000M\002^\002\360\000\000^\002_\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330FG\360J\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\004>\320>^\320^_\320_`\330\004'\240w\250j\3208I\310\021\330\004>\270j\310\001\330\t\n\330\010\027\320\027:\270!\320;R\320R]\320]k\320kl\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\320$5\260V\2701\200\001\360F\001\000\005\020\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\220}\240A\240^\2607\270'\300\027\310\001\330\004\014\320\014\035\230Q\230a\200\001\360F\001\000\n\013\330\010\027\320\0274""\260A\260Q\260a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\320$7\260q\270\001\200\001\360F\001\000\005\010\320\007\031\230\023\230A\330\010\036\320\036<\270J\300a\330\t\023\2201\320\024(\250\001\330\010\035\320\035.\250g\260Q\330\010\036\320\036<\270J\300a\330\t\023\2201\320\024(\250\001\330\010\036\320\036<\270J\300a\340\010\016\210i\220q\360\000\000\031K\002\360\000\000K\002M\002\360\000\000M\002P\002\360\000\000P\002Q\002\360\000\000Q\002U\002\360\000\000U\002V\002\360\000\000V\002W\002\340\004\007\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\031\240!\2401\330\004\022\320\022'\240z\260\021\330\t\n\330\010\027\320\027/\250q\260\010\270\r\300Q\330\004\014\320\014\035\230Q\230a\200\001\360\002\000F\002G\002\360z\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023$\240A\240Q\330\004\014\320\014)\250\032\2601\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\0272\260!\260;\270h\300g\310Y\320V_\320_f\320fn\320nv\320vw\330\004\014\320\014\035\230Q\230a\200\001\360F\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\0042\3202L\310A\330\t\n\330\010\027\320\0278\270\001\3209`\320`k\320kv\320v\177\360\000\000@\002T\002\360\000\000T\002U\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330GH\360.\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A""\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\004M\310Z\320Wd\320do\320ov\360\000\000w\001A\002\360\000\000A\002B\002\330\t\n\330\010\027\320\027F\300a\300y\320PQ\330\004\014\320\014\035\230Q\230a\320\004G\300w\310k\320Y`\360\000\000a\001G\002\360\000\000G\002H\002\360\000\000H\002Q\002\360\000\000Q\002R\002\360\000\000R\002S\002\200\001\360H\001\000\005\036\230Q\330\004 \240\001\330\t\n\330\010\027\320\0278\270\001\270\021\270/\310\021\310!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240O\2601\200\001\330-.\360H\001\000\005\036\230[\250\001\330\t\n\330\010\027\320\027.\250a\320/G\300u\310K\320W]\320]f\320fg\320gh\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360H\001\000\n\013\330\010\027\220\177\240a\240x\250}\270A\330\004\014\320\014\035\230Q\230a\200\001\330=>\360H\001\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\004\007\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\320 6\260a\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\037\250\001\250\021\330\004\022\320\022-\250Z\260q\330\004;\270:\300]\320R]\320]d\320dn\320no\330\t\n\330\010\027\320\0272\260!\260=\300\010\310\001\330\004\014\320\014\035\230Q\230a\200\001\360H\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\330\t\n\330\010\027\320\0271\260\021\260'\270\021\330\004\014\320\014\035\230Q\230a\200\001\360H\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330""\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\340\004\007\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\t\n\330\010\027\320\027+\2501\250J\260i\270q\330\004\014\320\014\035\230Q\230a\200\001\360H\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\t\n\330\010\027\320\027)\250\021\250+\260Q\330\004\014\320\014\035\230Q\230a\200\001\360H\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\230a\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\004\031\230\021\330\004\033\2301\330\t\n\330\010\027\320\027-\250Q\250h\260a\260v\270Q\270j\310\013\320ST\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240F\250!\200\001\330 I\320Is\360\000\000t\001b\002\360\000\000b\002r\003\360\000\000r\003s\003\360L\003\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\014\210F\220&\230\003\230:\240Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\013\2106\220\025\220c\230\032\2401\330\004\013\2106\220\025\220c\230\032\2401\330\004\r\210Q\320\016!\240\021\240(\250$\250j\270\001\330\0045\3205K\3101\310A\330\004#\240>\260\032\320;M\310Q\330\004\r\210Q\320\016!\240\021\240(\250$\250j\270\001\330\0045\3205K\3101\310A\330\004#\240>\260\032\320;M\310Q\330\004\"\240!\330\004\007\200v\210R\210x\220s\230!\2307\240&\250\014\260A\3205K\3102\310S\320PQ""\320QT\320TU\320U\\\320\\^\320^d\320df\320fi\320ij\320jk\330\004\007\200v\210R\210x\220s\230!\2307\240&\250\014\260A\3205K\3102\310S\320PQ\320QT\320TU\320U\\\320\\^\320^d\320df\320fi\320ij\320jk\330\004\007\200v\210R\210x\220s\230!\2308\2406\250\034\260Q\3206L\310B\310c\320QR\320RU\320UV\320V^\320^`\320`f\320fh\320hk\320kl\320lm\330\0043\2601\330\004\007\200s\210!\2107\220\"\220A\330\010\022\320\0224\260F\270!\2703\270a\270x\300q\330\010\013\2108\2203\220a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320T\\\320\\^\320^b\320bd\320dg\320gh\320hi\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\2307\240!\2407\320*@\300\005\300Q\300e\310;\320VW\330\t\014\210A\210W\220C\220q\330\010\023\320\023)\250\025\250a\250s\260!\330\004&\240a\330\004\007\200y\220\002\220(\230#\230Q\230h\240f\250L\270\001\3209O\310r\320QT\320TU\320UX\320XY\320Ya\320ac\320ci\320ik\320kn\320no\320op\330\004\007\200y\220\002\220(\230#\230Q\230l\250&\260\014\270A\320=S\320SU\320UX\320XY\320Y\\\320\\]\320]i\320ik\320kq\320qs\320sv\320vw\320wx\330\t\n\330\010\027\320\027,\250A\250\\\270\034\300W\310E\320QU\320U\\\320\\e\320ep\320pu\320uy\360\000\000z\001D\002\360\000\000D\002E\002\330\004\007\200s\210!\2107\220\"\220B\220d\230(\240'\250\021\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\330IJ\360\\\001\000\005*\250\021\330\004\037\230q\330\004\025\220Q\330\004\007\320\007\027\220s\230!\330\010\031\230\026\230v\240Q\320&7\260q\330\010\013\210?\230#\230Q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320Pa\320ac\320cg\320gi\320il\320lm\320mn\330\0043\260:\270Q\330\t\n\330\010\027\320\027(\250\001\250\021\320*<\320<L\320L]\320]^\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\031\230\021\230*\240N\260!\2605\270\004\270G\3005\310\001\310\021\330\004\007\200\177\220g\230Q\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\320$6\260a\320\004I\310\027\320P[\320[b\360""\000\000c\001J\002\360\000\000J\002K\002\360\000\000K\002T\002\360\000\000T\002U\002\360\000\000U\002V\002\200\001\360J\001\000\005\r\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\t\n\330\010\027\220\177\240a\240{\260+\270[\310\013\320ST\330\004\014\320\014\035\230Q\230a\200\001\360J\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\330\t\n\330\010\027\320\0273\2601\260G\2701\330\004\014\320\014\035\230Q\230a\200\001\360J\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\017\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\320\027'\240q\250\016\260g\270W\300A\330\004\014\320\014\035\230Q\230a\200\001\360J\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\320\027'\240q\250\t\260\021\330\004\014\320\014\035\230Q\230a\200\001\360J\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200z\220\023\220A\330\010\026\320\0269\270\032\3001\330\t\023\2201\220L\240\001\330\010\025\220Y\230g\240Q\330\010\026\320\0269\270\032\3001""\330\t\023\2201\220L\240\001\330\010\026\320\0269\270\032\3001\340\010\016\210i\220q\360\000\000\031H\002\360\000\000H\002J\002\360\000\000J\002M\002\360\000\000M\002N\002\360\000\000N\002R\002\360\000\000R\002S\002\360\000\000S\002T\002\330\t\n\330\010\027\320\0272\260!\2607\270-\300q\330\004\014\320\014\035\230Q\230a\200\001\360J\001\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\030.\250a\250q\330\004\021\320\0213\260:\270Q\330\004!\240\034\250Q\330\t\n\330\010\027\320\027=\270Q\320>W\320W_\320_j\320jv\320v}\320}~\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\000@\001K\002\360\000\000K\002L\002\360T\001\000\005\026\220V\230?\250#\250Z\260q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\023\2206\230\035\240c\250\032\2601\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\0045\260Q\330\004\007\200s\210!\210>\230\022\2301\330\010\031\320\0316\260f\270A\270S\300\001\300\037\320PQ\330\010\013\210?\230#\230Q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Tc\320ce\320ei\320ik\320kn\320no\320op\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\036\230a\230w\320&B\320BS\320S_\320_`\320`e\320en\320no\320op\330\t\014\210A\210^\2303\230a\330\010\031\320\0316\3206G\300|\320ST\320TW\320WX\330\0049\270\021\330\004\007\200s\210!\320\013\033\2302\230Q\330\010\033\320\033:\270&\300\001\300\023\300A\320EV\320VW\330\010\013\320\013\034\230C\230q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Te\320eg\320gk\320km\320mp\320pq\320qr\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\320\033+\2501\250G\3203F\300n\320TU\320UZ\320Ze\320ef\330\t\014\210A""\320\r\035\230S\240\001\330\010\034\320\034/\250~\270Q\270c\300\021\330\t\n\330\010\027\320\027;\2701\270J\320FV\320Vh\320hy\320yz\330\004\007\200s\210!\210>\230\022\2302\230T\240\037\260\007\260q\330\010\014\210A\210Q\330\004\007\200s\210!\320\013\033\2302\230R\230t\320#4\260G\2701\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\330?@\360L\001\000\0057\260d\270!\330\004/\320/J\310!\3106\320QT\320T^\320^_\330\004\035\230W\240J\250g\260Q\330\t\n\330\010\027\320\0276\260a\260x\270x\300q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240G\2506\260\021\200\001\360L\001\000\005&\320%7\260q\330\004\017\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\320\027+\2501\320,K\3106\320Q\\\320\\]\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330#$\360L\001\000\005)\250\016\260a\330\t\n\330\010\027\220}\240A\320%@\300\r\310[\320X^\320^g\320gh\320hi\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360L\001\000\005\031\230\001\330\t\n\330\010\027\220\177\240a\240x\250q\260\005\260Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360L\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\0042\3202L\310A\330\t\n\330\010\027\320\027;\2701\320<c\320cn\320ny\360\000\000z\001C\002\360\000\000C\002J\002\360\000\000J\002^\002\360\000\000^\002_\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330'(\360L\001\000""\005!\240\001\340\004\007\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\0046\260a\330\004\026\220a\330\004\007\200~\220S\230\001\330\010\032\320\0326\260f\270A\270_\310A\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\0043\2601\330\004\021\220\021\330\004\007\200~\220S\230\001\330\010\025\320\0253\2606\270\021\270/\310\021\330\010\013\210;\220c\230\021\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\t\n\330\010\027\320\0274\260A\260X\320=N\310l\320Z[\320[\\\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\032\230!\230?\250!\250;\260j\300\017\310q\320PV\320VZ\320Za\320af\320fg\320gh\330\004\007\320\007\027\220w\230a\330\010\014\210A\210Q\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\025\220Q\320\026'\240q\250\005\250Z\260q\270\n\300!\3006\310\024\310W\320TY\320YZ\320Z[\330\004\007\200{\220'\230\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250f\260A\330\004\014\320\014\035\230Q\230f\320$5\260\\\300\021\200\001\330)*\360L\001\000\005!\240\001\340\004\007\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\0048\270\001\330\004\030\230\001\330\004\007\200~\220S\230\001\330\010\034\320\0348\270\006\270a\270\177\310a\330\010\013\320\013\035\230S\240\001\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\0043\2601\330\004\021\220\021\330\004\007\200~\220S\230\001\330\010\025\320\0253\2606\270\021\270/\310\021\330\010\013\210;\220c\230\021\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\t\n\330\010\027\320\0276\260a\260x\320?R\320R^\320^_\320_`\330\004""\007\200{\220!\2205\230\003\230;\240a\240q\330\010\034\230A\230_\250A\250[\270\n\320BS\320ST\320TZ\320Z^\320^e\320ej\320jk\320kl\330\004\007\320\007\031\230\027\240\001\330\010\014\210A\210Q\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\025\220Q\320\026'\240q\250\005\250Z\260q\270\n\300!\3006\310\024\310W\320TY\320YZ\320Z[\330\004\007\200{\220'\230\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250f\260A\330\004\014\320\014\035\230Q\230f\320$7\260|\3001\200\001\360L\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\t\n\330\010\027\320\027+\2501\250K\260{\300+\310[\320X_\320_`\330\004\014\320\014\035\230Q\230a\200\001\360L\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004\033\2301\330\t\n\330\010\027\320\027'\240q\250\010\260\001\260\030\270\026\270q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360L\002\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\030,\250A\250Q\330\004\021\320\0211\260\032\2701\340\004\007\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\021\320\021$\240A\240Q\330\004 \240\007\240z\260\032\2701\340\004*\250!\330\004\r\320\r'\240v\250Q\250g\260V\2701\270A\330\004\007\200w\210c\220\021\330\010\020\220\013\2301\330\004\n\210,\220a\330\004\n\210,\220a\340\t\n\330\010\027\320\027-\250Q\250j\3208X\320Xu""\320u}\360\000\000~\001F\002\360\000\000F\002G\002\330\004\007\200t\210<\220q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\330'N\320Nx\320xy\360N\007\000\005+\320*=\270Q\330\0046\260h\270m\3109\320T[\320[e\320ef\330\0045\260X\270]\310)\320SZ\320Zd\320de\330\004>\270l\310-\320Wd\320dk\320ku\320uv\330\t\n\330\010\027\320\027/\250q\3200P\320PZ\320Ze\320eu\360\000\000v\001F\002\360\000\000F\002G\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360N\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\230A\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\0046\3206O\310q\330\t\n\330\010\027\320\0274\260A\3205[\320[k\320kv\320vw\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360N\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\320\026*\250!\2501\330\004\017\320\017/\250z\270\021\330\0046\3206O\310q\330\t\n\330\010\027\320\027=\270Q\320>d\320dt\320t\177\360\000\000@\002A\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360N\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220k\240\021\240!\330\004\017\320\017&\240j\260\001\330\004#\240;\250a\330\t\n\330\010\027\320\027)\250\021\320*B\300+\310[\320Xb\320bc\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360N\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200z\220\023\220A\330\010\026\320\0269\270\032\3001\330\t\023\2201\220L\240\001\330\010\025\220Y""\230g\240Q\330\010\026\320\0269\270\032\3001\330\t\023\2201\220L\240\001\330\010\026\320\0269\270\032\3001\340\010\016\210i\220q\360\000\000\031H\002\360\000\000H\002J\002\360\000\000J\002M\002\360\000\000M\002N\002\360\000\000N\002R\002\360\000\000R\002S\002\360\000\000S\002T\002\330\t\n\330\010\027\320\0270\260\001\260\027\270\r\300Q\330\004\014\320\014\035\230Q\230a\200\001\360N\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004'\240q\330\t\n\330\010\027\320\027'\240q\250\013\2601\260A\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360N\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\230a\330\010\023\2203\220a\220q\340\010\023\2203\220a\220z\240\021\240!\330\004\020\320\020&\240j\260\001\330\004\037\230{\250!\330\t\n\330\010\027\320\0272\260!\3203K\3107\320R]\320]h\320hi\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330%O\310q\360d\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\014\210F\220&\230\003\230:\240Q\330\004\r\210Q\320\016!\240\021\240)\2504\250{\270!\330\0046\3206L\310A\310Q\330\004\036\230h\240j\3200C\3001\330\004\"\240!\330\004\007\200v\210R\210x\220s\230!\2308\2406\250\034\260Q\3206L\310B\310c\320QR\320RU\320UV\320V^\320^`\320`f\320fh\320hk\320kl\320lm\330\004\007\200v\210R\210x\220s\230!\2308\2406\250\034\260Q\3206L\310B\310c\320QR\320RU\320UV\320V^\320^`\320`f\320fh\320hk\320kl\320lm\330\t\n\330\010\027\320\0270\260\001\260\035\270g\300U\310$\310g\320U\\\320\\]\330\004\014\320\014\035\230Q\230a\200\001\330*O\310q\360r\001\000\005\022\220\026\220{\240#""\240Z\250q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\r\210Q\320\016*\250!\250>\270\035\300e\310>\320Yi\320il\320lm\320my\320yz\330\0045\3205K\3101\310A\330\004'\240x\250z\3209K\3101\330\004&\240a\330\004@\300\001\300\034\310W\320TX\320Xh\320hi\320ij\330\004\007\200~\220R\220x\230s\240!\240<\250v\260\\\300\021\320BX\320XZ\320Z]\320]^\320^a\320ab\320bn\320np\320pv\320vx\320x{\320{|\320|}\330\004\007\200~\220R\220x\230s\240!\240=\260\006\260l\300!\320CY\320Y[\320[^\320^_\320_b\320bc\320cp\320pr\320rx\320xz\320z}\320}~\320~\177\330\004\017\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\320\0271\260\021\3202H\310\013\320SX\320X\\\320\\h\320hm\320mq\360\000\000r\001A\002\360\000\000A\002O\002\360\000\000O\002P\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\240S\250\006\250c\260\024\260W\270A\200\001\330!P\320PQ\360R\001\000\005\"\240\035\250a\330\0045\260X\270]\310)\320SZ\320Zd\320de\330\0046\260h\270a\330\t\n\330\010\027\320\027)\250\021\320*D\300G\310;\320Vf\320fg\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330\035P\320PQ\360^\003\000\005\036\230[\250\001\330\0047\260t\270=\310\005\310W\320T^\320^_\330\t\n\330\010\027\320\027)\250\021\320*B\300%\300{\320R^\320^d\320dm\320mn\320nr\320rs\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330!P\320PQ\360d\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\0045\260X\270]\310)\320SZ\320Zd\320de\330\0046\260h\270a\330\t\n\330\010\027\320\027)\250\021\320*:\270,\300a\330\004\014\320\014\035\230Q\230a\200\001\330PQ\360<\000\005\"\240\035\250a\330\004\030\320\030+\2501\250A\330\004'\240w""\250j\3208I\310\021\330\004>\270j\310\001\330\t\n\330\010\027\320\027<\270A\320=W\320W^\320^i\360\000\000j\001A\002\360\000\000A\002O\002\360\000\000O\002P\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330&P\360\000\000Q\001F\002\360\000\000F\002R\003\360\000\000R\003S\003\360D\002\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\023\2206\230\035\240c\250\032\2601\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\014\210F\220&\230\003\230:\240Q\330\004\r\210Q\320\016!\240\021\240)\2504\250{\270!\330\0046\3206L\310A\310Q\330\004\036\230h\240j\3200C\3001\330\004\"\240!\330\004\007\200v\210R\210x\220s\230!\2308\2406\250\034\260Q\3206L\310B\310c\320QR\320RU\320UV\320V^\320^`\320`f\320fh\320hk\320kl\320lm\330\004\007\200v\210R\210x\220s\230!\2308\2406\250\034\260Q\3206L\310B\310c\320QR\320RU\320UV\320V^\320^`\320`f\320fh\320hk\320kl\320lm\330\0045\260Q\330\004\007\200s\210!\210>\230\022\2301\330\010\031\320\0316\260f\270A\270S\300\001\300\037\320PQ\330\010\013\210?\230#\230Q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Tc\320ce\320ei\320ik\320kn\320no\320op\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\230>\250\021\250'\3201B\300,\310a\310u\320T_\320_`\330\t\014\210A\210^\2303\230a\330\010\032\320\032+\250<\260q\270\003\2701\330\004,\250A\330\004\007\320\007\027\220r\230\030\240\023\240A\240_\260F\270,\300a\320G]\320]_\320_b\320bc\320cf\320fg\320gv\320vx\320x~\360\000\000\177\001A\002\360\000\000A\002D\002\360\000\000D\002E\002\360\000\000E\002F\002\330\004\007\320\007\027\220r\230\030\240\023\240A\320%7\260v\270\\\310\021\320J`\320`b\320be\320ef\320fi\320ij\320j|\320|~\360""\000\000\177\001E\002\360\000\000E\002G\002\360\000\000G\002J\002\360\000\000J\002K\002\360\000\000K\002L\002\330\t\n\330\010\027\320\0271\260\021\260-\270w\300e\3104\310w\320Vf\320fw\320w|\360\000\000}\001A\002\360\000\000A\002R\002\360\000\000R\002Y\002\360\000\000Y\002Z\002\330\004\007\200s\210!\210>\230\022\2302\230T\240\037\260\007\260q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\360P\001\000\005\010\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!3\2601\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230+\240Q\240a\330\004\023\320\023*\250*\260A\340\004\007\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\t\n\330\010\027\320\027<\270A\270^\3108\320ST\330\004\014\320\014\035\230Q\230a\200\001\360P\001\000\005\010\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\240\021\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\320\032*\250!\2501\330\004\023\320\023/\250z\270\021\330\004+\320+A\300\021\330\t\n\330\010\027\320\027>\270a\270x\300{\320R`\320`a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360P\001\000\005\010\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\240\021\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004+\320+A\300\021\330\t\n\330\010\027\320\027=\270Q\270h\300k\320Q_\320_`\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\000P\002Q\002\360\\\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023$\240A\240Q\330\004\014""\320\014)\250\032\2601\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\220;\230a\230q\330\004\014\320\014#\240:\250Q\330\004+\2504\250q\330\t\n\330\010\027\320\027.\250a\250w\260l\300,\310g\320Ua\320am\320mt\320tu\330\004\014\320\014\035\230Q\230a\200\001\360P\001\000\005\037\230a\330\t\n\330\010\027\320\027*\250!\2501\250A\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360P\001\000\n\013\330\010\027\320\027'\240q\330\004\014\320\014\035\230Q\230a\200\001\360P\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220f\230A\230Q\330\004\017\320\017!\240\032\2501\330\004+\320+A\300\021\330\t\n\330\010\027\320\0274\260A\260X\270[\310\n\320RS\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360P\002\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004%\240Q\330\004!\240\033\250A\330\004?\270q\330\004\031\230\021\330\004=\270Q\330\004\025\220Q\330\004&\240a\330\t\n\330\010\027\320\0270\260\001\260\032\2701\320<O\310q\320PX\320Xp\320py\360\000\000z\001E\002\360\000\000E\002F\002\360\000\000F\002Z\002\360\000\000Z\002[\002\360\000\000[\002k\002\360\000\000k\002l\002\360\000\000l\002m\002\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\035\230Q\230o\250Q\250k\270\032\320CU\320UV\320V\\\320\\`\320`g\320gl\320lm\320mn\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\031\230\021\320\032+\2501\250E\260\032\2701\270N\310!\3106\320QU\320U\\\320\\a\320ab\320bc\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250f\260F\270&\300\006\300a\330\004\014\320\014\035\230Q\230f\320$;\2701\320<P\320PX\320Xc\320cw\360\000\000x\001H\002\360\000""\000H\002I\002\200\001\360P\001\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\030.\250a\250q\330\004\021\320\0213\260:\270Q\330\004\035\230[\250\001\330\t\n\330\010\027\320\027=\270Q\320>V\320V[\320[f\320fr\320r~\320~\177\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\240Q\200\001\330QR\360T\001\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\0276\260a\260x\270{\310+\320U\\\320\\]\330\004\014\320\014\035\230Q\230a\200\001\360&\000\005\026\220Q\330\t\n\330\010\027\320\027*\250!\2501\250A\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\230Q\250Q\200\001\330\004\n\210+\220Q\200\001\360.\000\005\036\230Q\330\t\n\330\010\027\320\027,\250A\250Q\250a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360(\000\n\013\330\010\027\320\027-\250Q\330\004\014\320\014\035\230Q\230a\200\001\360*\000\005\010\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\240\021\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\320\032-\250Q\250a\330\004\023\320\0232\260*\270A\330\t\n\330\010\027\320\0270\260\001\260\021\330\004\014\320\014\035\230Q\230a\200\001\360*\000\005\010\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\240\021\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\320\032-\250Q\250a\330\004\023\320\0232\260*\270A\330\004%\320%5\260Q\330\t\n\330\010\027\320\0278\270\001\3209V\320V^\320^i\320ij\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035""\230Q\230f\240A\200\001\360,\000\005 \230~\250Q\330\t\n\330\010\027\320\027/\250q\3200K\3104\310{\320Z[\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360:\000\005\036\230Q\330\t\n\330\010\027\320\027/\250q\260\001\260\037\300\010\310\001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360*\000\n\013\330\010\027\320\027(\250\001\330\004\014\320\014\035\230Q\230a\200\001\360*\000\n\013\330\010\027\320\027)\250\021\330\004\014\320\014\035\230Q\230a\200\001\360:\000\005\013\320\n\035\230Q\230a\330\004\031\230\027\240\n\250#\250Q\330\t\n\330\010\027\320\027+\2501\250I\260S\270\005\270Q\330\004\"\240.\260\001\330\004\013\2109\220A\220U\230!\330\004\013\2101\200\001\360R\001\000\n\013\330\010\027\320\0270\260\001\260\021\260!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240M\260\021\260!\200\001\360R\001\000\005\020\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\220y\240\001\240\021\330\004\014\320\014\035\230Q\230a\200\001\330^_\360R\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\220;\230a\230q\330\004\014\320\014#\240:\250Q\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\027)\250\021\250'\260\031\270)\300;\310g\320UV\330\004\014\320\014\035\230Q\230a\200\001\360R\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\t\n\330\010\027\320\027/\250q\260\016\270i\300q\330\004\014\320\014\035\230Q\230a""\200\001\330\035\036\360R\001\000\005!\240\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004.\250a\330\004\016\210a\330\004\007\200~\220S\230\001\330\010\022\320\022.\250f\260A\260_\300A\330\010\013\2108\2203\220a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\004+\2501\330\004\013\2101\330\004\007\200~\220S\230\001\330\010\017\320\017+\2506\260\021\260/\300\021\330\010\013\2105\220\003\2201\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\0043\2601\330\004\021\220\021\330\004\007\200~\220S\230\001\330\010\025\320\0253\2606\270\021\270/\310\021\330\010\013\210;\220c\230\021\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\t\n\330\010\027\320\027)\250\021\250)\2609\270F\300,\310a\310q\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\022\220!\220?\240!\240;\250j\270\007\270q\300\006\300d\310'\320QV\320VW\320WX\330\004\007\200x\210w\220a\330\010\014\210A\210Q\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\017\210q\220\017\230q\240\013\250:\260T\270\021\270&\300\004\300G\3105\320PQ\320QR\330\004\007\200u\210G\2201\330\010\014\210A\210Q\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\025\220Q\320\026'\240q\250\005\250Z\260q\270\n\300!\3006\310\024\310W\320TY\320YZ\320Z[\330\004\007\200{\220'\230\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250f\260F\270!\330\004\014\320\014\035\230Q\230f\240I\250V\260<\270q\200\001\360T\001\000\005\036\230[\250\001\330\t\n\330\010\027\320\0270\260\001\3201I\310\025\310k\320YZ\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330,-\360T\001\000\005\021\220\006\220j\240\003\240:\250Q\330\004\007\320\007\031\230""\021\330\010\016\210i\220q\230\001\330\004(\320(=\270Q\330\0042\260!\330\004\007\200s\210!\210;\220b\230\001\330\010\026\320\0263\2606\270\021\270#\270Q\270l\310!\330\010\013\210<\220s\230!\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320T`\320`b\320bf\320fh\320hk\320kl\320lm\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\230;\240a\240w\320.?\270y\310\001\310\025\310k\320YZ\330\t\014\210A\210[\230\003\2301\330\010\027\320\027(\250\t\260\021\260#\260Q\330\t\n\330\010\027\320\0273\2601\3204V\320V\\\320\\g\320gt\320tu\330\004\007\200s\210!\210;\220b\230\002\230$\230l\250'\260\021\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360T\001\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\030.\250a\250q\330\004\021\320\0213\260:\270Q\330\t\n\330\010\027\320\0277\260q\270\014\300A\330\004\014\320\014\035\230Q\230a\200\001\330UV\360H\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004K\310:\320Ub\320bm\320mt\320t~\320~\177\330\t\n\330\010\027\320\027H\310\001\310\036\320W`\320`a\330\004\014\320\014\035\230Q\230a\320U^\320^e\320el\320lm\320mn\200\001\330\025\026\360V\002\000\0051\260\001\260\035\270b\300\007\300z\320QR\330\t\n\330\010\027\220}\240A\240Q\330\004\014\320\014\035\230Q\230a\200\001\360V\002\000\005\033\230!\330\t\n\330\010\027\220~\240Q\240h\250a\250w\260f\270A\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360V\002\000\005\010\200w\210c\220\021\330\010\022\220!\330""\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220f\230A\230Q\330\004\017\320\017!\240\032\2501\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\230A\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220V\2301\230A\330\004\016\320\016 \240\n\250!\330\004+\320+A\300\021\330\t\n\330\010\027\320\0273\2601\260H\270K\300y\320PZ\320Z[\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360V\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\230a\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004'\320'7\260q\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\t\n\330\010\027\320\027,\250A\320-J\310*\320T_\320_j\320ju\360\000\000v\001G\002\360\000\000G\002H\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\320\004-\250W\260K\270w\320F_\320_`\320`i\320ij\320jk\320\004=\270W\300K\310w\320Vw\320wx\360\000\000y\001B\002\360\000\000B\002C\002\360\000\000C\002D\002\200\001\330*W\320WX\360\\\001\000\n\013\330\010\027\220}\240A\240]\260)\2701\270D\300\007\300v\310Y\320VW\320WX\330\004\014\320\014\035\230Q\230a\200\001\330(W\320WX\360@\001\000\005\"\240\035\250a\330\0045\260X\270]\310)\320SZ\320Zd\320de\330\0046\260h\270a\330\t\n\330\010\027\320\0270\260\001\3201K\3107\320R]\320]m\320mn\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330$W\320WX\360d\003\000\0050\320/C\3001\330\0047\260t\270=\310\005\310W\320T^\320^_\330\t\n\330\010\027\320\0270\260\001\3201R\320R`\320`k\320kw\320w}\360\000\000~\001G\002\360\000\000G\002H\002\360\000\000H\002L\002\360\000\000L\002W\002\360\000\000W\002X\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330WX\360H\001\000\005\010\200v\210S\220\001""\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004M\310Z\320Wd\320do\320ov\360\000\000w\001A\002\360\000\000A\002B\002\330\t\n\330\010\027\320\027J\310!\310>\320Yb\320bc\330\004\014\320\014\035\230Q\230a\200\001\360X\001\000\n\013\330\010\027\320\0272\260!\260<\270q\330\004\014\320\014\035\230Q\230a\200\001\360X\001\000\005\010\200}\220C\220q\330\010\030\230\001\330\t\023\2201\220O\2401\330\010\030\230\003\2301\230A\340\010\030\230\003\2301\320\034-\250Q\250a\330\004\025\320\0252\260*\270A\330\004\021\320\021$\240A\240Q\330\004 \240\007\240z\260\032\2701\340\004)\250\021\330\004\r\320\r&\240f\250A\250W\260F\270!\2701\330\004\007\200w\210c\220\021\330\010\020\220\013\320\0337\260q\330\004\n\210,\220a\330\004\n\210,\220a\340\004.\320.G\300q\330\t\n\330\010\027\320\027;\2701\270H\320Da\360\000\000b\001H\002\360\000\000H\002P\002\360\000\000P\002X\002\360\000\000X\002~\002\360\000\000~\002F\003\360\000\000F\003G\003\330\004\007\200t\210<\220q\330\010\014\210A\210Q\340\010\020\220\013\2301\230C\230q\240\r\250Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360X\001\000\005\032\230\021\330\004\r\320\r \240\001\240\021\330\004\034\230G\240:\250V\2601\330\t\n\330\010\027\320\027N\310a\310q\320P[\320[g\320gr\360\000\000s\001D\002\360\000\000D\002E\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360X\003\000\005\r\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\t\n\330\010\027\320\027(\250\001\250\033\260F\270!\330\004\014\320\014\035\230Q\230a\200\001\360X\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H""\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004'\320';\2701\330\t\n\330\010\027\320\027-\250Q\320.O\310v\320U`\320`a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360X\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\017\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\320\027)\250\021\250.\270\007\270w\300g\310X\320UV\330\004\014\320\014\035\230Q\230a\200\001\330;Y\320YZ\3602\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\0041\260\024\260Q\330\004:\270%\270}\310F\320RY\320Yc\320cd\330\t\n\330\010\027\320\0277\260q\270\t\300\030\310\021\330\004\014\320\014\035\230Q\230a\200\001\360Z\001\000\005\034\2301\330\004\030\230\001\330\t\n\330\010\027\320\027'\240q\250\010\260\001\260\030\270\021\270'\300\027\310\001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240H\250A\200\001\330$%\360Z\001\000\0052\260\021\330\004\007\200y\220\007\220q\330\010\025\220X\230Q\330\t\n\330\010\027\320\027,\250A\250\\\270\030\300\021\300&\310\001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240J\250a\200\001\360Z\002\000\005\033\320\032-\250Q\250a\330\004)\250\027\260\n\320:M\310Q\330\t\n\330\010\027\320\0278\270\001\3209R\320RZ\320Z[\330\004\014\320\014\035\230Q\230a\200\001\360Z\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\330\t\n\330\010\027\320\027/\250q\260\001\330\004\014\320""\014\035\230Q\230a\200\001\360Z\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\t\n\330\010\027\320\027-\250Q\250j\270\001\270\021\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\320$;\2701\270A\250!\250\021\260\021\240\001\240!\270\001\240\021\230\021\260!\250\001\260\001\230a\200\001\330`a\360R\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023$\240A\240Q\330\004\014\320\014)\250\032\2601\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\027+\2501\250K\260w\270i\300y\320PW\320WX\330\004\014\320\014\035\230Q\230a\200\001\330\034\035\360,\000\005\027\220a\330\0040\260\004\260M\300\025\300g\310Z\320WX\330\t\n\330\010\027\320\027(\250\001\250\021\250(\260!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330()\360,\000\005*\250\025\250a\330\t\n\330\010\027\320\027*\250!\2501\330\004\014\210K\220~\240Q\240a\200\001\360.\000\005\"\240\035\250a\330\t\n\330\010\027\320\0273\2601\3204N\310g\320U`\320`a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330'(\360<\000\005,\320+>\270a\330\0046\260h\270m\3109\320T[\320[e\320ef\330\t\n\330\010\027\320\027/\250q\3200P\320P[\320[f\320fg\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330&'\360.\000\005*\250\025\250a\330\t\n\330\010\027\320\027(\250\001\250\021\330\004\014\210K\220~\240Q\200\001\360$\000\005\027\220a\330\t\n\330\010\027\220~\240Q\240a\240q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360@\001\000\005#\240,\250a""\330\004\026\320\026)\250\021\250!\330\004%\240W\250J\260o\300Q\330\t\n\330\010\027\220~\240Q\320&?\270y\310\013\320ST\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\002\000a\002b\002\360b\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023$\240A\240Q\330\004\014\320\014)\250\032\2601\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\220;\230a\230q\330\004\014\320\014#\240:\250Q\330\004+\2504\250q\330\t\n\330\010\027\320\0270\260\001\260\027\270\014\300L\320PW\320Wc\320co\320ov\320v~\320~\177\330\004\014\320\014\035\230Q\230a\200\001\330ab\360Z\001\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\027:\270!\270>\310\030\320Q\\\320\\g\320gn\320no\330\004\014\320\014\035\230Q\230a\200\001\360,\000\n\013\330\010\027\320\027.\250a\250q\330\004\014\320\014\035\230Q\230a\200\001\330:`\320`a\360t\005\000\005\020\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\004/\250v\260Q\330\t\n\330\010\027\220~\240Q\240n\260G\270:\300X\310Y\320VW\320WX\330\004\014\320\014\035\230Q\230a\200\001\360b\001\000\n\013\330\010\027\220~\240Q\240a\330\004\014\320\014\035\230Q\230a\200\001\360<\000\005\022\220\025\220b\230\001\330\004\032\230!\330\t\n\330\010\027\320\027-\250Q\250j\270\010\300\001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320""\014\035\230Q\230f\240A\200\001\330~\177\360b\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\220;\230a\230q\330\004\014\320\014#\240:\250Q\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\027+\2501\250G\2609\270I\300[\320PX\320X_\320_g\320gh\330\004\014\320\014\035\230Q\230a\200\001\330;<\360b\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\320\026*\250!\2501\330\004\017\320\017/\250z\270\021\330\004\033\2301\330\004D\300J\310m\320[f\320fm\320mw\320wx\330\t\n\330\010\027\320\0279\270\021\270(\300!\3008\310:\320UV\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200\177\220c\230\021\330\010\032\230!\330\t\023\2201\320\024%\240Q\330\010\032\230#\230Q\230a\340\010\032\230#\230Q\320\0362\260!\2601\330\004\027\320\0277\260z\300\021\330\t\n\330\010\027\320\027.\250a\250q\330\004\014\320\014\035\230Q\230a\200\001\360@\001\000\005\010\200\177\220c\230\021\330\010\032\230!\330\t\023\2201\320\024%\240Q\330\010\032\230#\230Q\230a\340\010\032\230#\230Q\320\0368\270\001\270\021\330\004\027\320\027=\270Z\300q\330\004\"\240+\250Q\330\t\n\330\010\027\320\0272\260!\3203K\310:\320U`\320`r\320rs\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330cd\360d\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\220;\230a\230q\330\004\014\320\014#\240:\250Q\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\027.\250a""\250w\260i\270y\310\013\320SZ\320Zb\320bc\330\004\014\320\014\035\230Q\230a\200\001\360d\001\000\005\035\230A\330\004\016\320\016!\240\021\240!\330\004\035\230W\240J\250g\260Q\330\t\n\330\010\027\320\0270\260\001\260\030\270\021\270)\300=\320PQ\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330<=\360d\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\027'\240q\250\013\260;\270g\300X\310Q\330\004\014\320\014\035\230Q\230a\200\001\330ef\360d\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023$\240A\240Q\330\004\014\320\014)\250\032\2601\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\0270\260\001\260\033\270G\3009\310I\320U\\\320\\d\320de\330\004\014\320\014\035\230Q\230a\200\001\360f\001\000\005!\240\014\250A\330\t\n\330\010\027\320\0274\260A\3205N\310g\320U`\320`g\320gh\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330fg\360^\001\000\005\r\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\220}\240A\240[\260\010\270\013\3008\3107\320RZ\320Z[\330\004\014\320\014\035\230Q\230a\200\001\330./\360j\001\000\005\026\220Q\330\004.\250d\260!\330\t\n\330\010\027\320\0271\260\021\260!""\2607\270(\300+\310Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330,k\360\000\000l\001q\002\360\000\000q\002r\002\360B\001\000\005\020\210v\220Y\230c\240\032\2501\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\t\210\026\210s\220#\220Z\230q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\014\210F\220&\230\003\230:\240Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004.\250a\330\004\007\200s\210!\2107\220\"\220A\330\010\022\320\022/\250v\260Q\260c\270\021\270(\300!\330\010\013\2108\2203\220a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320T\\\320\\^\320^b\320bd\320dg\320gh\320hi\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\027\220q\230\007\320\037;\320;L\310E\320QR\320RW\320W`\320`a\320ab\330\t\014\210A\210W\220C\220q\330\010\022\320\022/\320/@\300\005\300Q\300c\310\021\330\004+\2501\330\004\007\200s\210!\2104\210r\220\021\330\010\017\320\017,\250F\260!\2603\260a\260u\270A\330\010\013\2105\220\003\2201\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320TY\320Y[\320[_\320_a\320ad\320de\320ef\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\024\220A\220W\320\0348\3208I\310\022\3101\310E\320QZ\320Z[\320[\\\330\t\014\210A\210T\220\023\220A\330\010\017\320\017,\320,=\270R\270q\300\003\3001\330\0043\2601\330\004\007\200s\210!\210:\220R\220q\330\010\025\320\0254\260F\270!\2703\270a\270{\310!\330\010\013\210;\220c\230\021\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320T_\320_a\320ae\320eg\320gj\320jk\320kl\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\230:\240Q\240g\320-@\300\010\310\001\310\025\310k\320YZ\330\t\014\210A\210Z\220s\230!\330\010\026\320\026)\250""\030\260\021\260#\260Q\330\t\n\330\010\027\320\0270\260\001\260\031\270)\3006\310\034\320UV\330\004\007\200s\210!\2107\220\"\220B\220d\230(\240'\250\021\330\010\014\210A\210Q\330\004\007\200s\210!\2104\210r\220\022\2204\220u\230G\2401\330\010\014\210A\210Q\330\004\007\200s\210!\210:\220R\220r\230\024\230[\250\007\250q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\360,\000\005\037\230k\250\021\330\t\n\330\010\027\320\027'\240q\320(@\300\006\300k\320QR\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330kl\360z\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\004+\2504\250q\330\t\n\330\010\027\320\027)\250\021\250+\260X\270[\310\010\320PW\320W_\320_g\320gh\330\004\014\320\014\035\230Q\230a\200\001\330/n\360\000\000o\001t\002\360\000\000t\002u\002\360H\001\000\005\020\210v\220Y\230c\240\032\2501\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\t\210\026\210s\220#\220Z\230q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\014\210F\220&\230\003\230:\240Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004.\250a\330\004\007\200s\210!\2107\220\"\220A\330\010\022\320\022/\250v\260Q\260c\270\021\270(\300!\330\010\013\2108\2203\220a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320T\\\320\\^\320^b\320bd\320dg\320gh\320hi\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\027\220q\230\007\320\037;\320;L\310E\320QR\320RW\320W`\320`a\320ab\330\t""\014\210A\210W\220C\220q\330\010\022\320\022/\320/@\300\005\300Q\300c\310\021\330\004+\2501\330\004\007\200s\210!\2104\210r\220\021\330\010\017\320\017,\250F\260!\2603\260a\260u\270A\330\010\013\2105\220\003\2201\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320TY\320Y[\320[_\320_a\320ad\320de\320ef\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\024\220A\220W\320\0348\3208I\310\022\3101\310E\320QZ\320Z[\320[\\\330\t\014\210A\210T\220\023\220A\330\010\017\320\017,\320,=\270R\270q\300\003\3001\330\0043\2601\330\004\007\200s\210!\210:\220R\220q\330\010\025\320\0254\260F\270!\2703\270a\270{\310!\330\010\013\210;\220c\230\021\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320T_\320_a\320ae\320eg\320gj\320jk\320kl\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\230:\240Q\240g\320-@\300\010\310\001\310\025\310k\320YZ\330\t\014\210A\210Z\220s\230!\330\010\026\320\026)\250\030\260\021\260#\260Q\330\t\n\330\010\027\320\0273\2601\260I\270Y\300f\310L\320XY\330\004\007\200s\210!\2107\220\"\220B\220d\230(\240'\250\021\330\010\014\210A\210Q\330\004\007\200s\210!\2104\210r\220\022\2204\220u\230G\2401\330\010\014\210A\210Q\330\004\007\200s\210!\210:\220R\220r\230\024\230[\250\007\250q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\360n\002\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\t\n\330\010\027\320\027,\250A\320-I\310\032\320S^\320^g\320gh\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330/\\\320\\]\360n\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\t\n\330\010\027\320\027)\250\021\250-\260y\300\001\300\024\300W\310F\320R[""\320[\\\320\\`\320`a\330\004\014\320\014\035\230Q\230a\200\001\360n\004\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\035/\250q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220k\240\021\240!\330\004\017\320\017&\240j\260\001\340\004\007\200{\220#\220Q\330\010\026\220a\330\t\023\2201\220M\320!7\260q\330\010\026\220c\230\021\230!\340\010\026\220c\230\021\230/\250\021\250!\330\004\023\320\023.\250j\270\001\330\0044\3204Q\320QR\330\t\n\330\010\027\320\027+\2501\250N\270*\320Dn\320nx\320xy\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330\"#\360p\002\000\005\"\240\035\250a\330\0047\260y\300\r\310Z\320W^\320^h\320hi\330\t\n\330\010\027\320\027)\250\021\320*D\300G\310;\320VW\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\240q\230q\250q\200\001\360,\000\005\r\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\t\n\330\010\027\220}\240A\240Q\330\004\014\320\014\035\230Q\230a\200\001\330-.\360\\\004\000\005,\320+?\270q\330\004G\300}\320Ta\320ao\320ov\360\000\000w\001A\002\360\000\000A\002B\002\330\t\n\330\010\027\320\0270\260\001\3201R\320R\\\320\\g\320gh\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360$\000\005\036\230[\250\001\330\t\n\330\010\027\320\027'\240q\320(@\300\005\300Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005 \230q\330\004\016\320\016!\240\021\240!\330\004\035\230W\240J\250g\260Q\330\t\n\330\010\027\320\027(\250\001\250\021\250(\260!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360 \000\005)\250\017\260q\330\t\n\330\010\027\320\027'\240q\320(D\300L\320P[\320[\\\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A""\200\001\360r\002\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\t\n\330\010\027\320\0275\260Q\3206R\320R\\\320\\g\320gp\320pq\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330\032\033\360r\002\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\0040\260\001\260\035\270b\300\007\300z\320QR\330\t\n\330\010\027\320\027)\250\021\250)\2601\330\004\014\320\014\035\230Q\230a\200\001\360~\001\000\005\010\200s\210#\210Q\330\010\016\210a\330\t\023\2201\220E\230\021\330\010\016\210c\220\021\220!\340\010\016\210c\220\021\220,\230a\230q\330\004\013\320\013#\240:\250Q\340\004\007\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\021\320\021$\240A\240Q\330\004 \240\007\240z\260\032\2701\340\004.\250a\330\004\r\320\r+\2506\260\021\260'\270\026\270q\300\001\330\004\007\200w\210c\220\021\330\010\020\220\013\2301\330\004\n\210,\220a\330\004\n\210,\220a\340\t\n\330\010\027\320\027*\250!\250:\3205M\320Mn\320nv\320vw\330\004\007\200t\210<\220q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\360`\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\320\032,\250A\330\010\017\210s\220!\2201\340\010\017\210s\220!\220;\230a\230q\330\004\014\320\014#\240:\250Q\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004\024\220A\330\t\n\330\010\027\320\027,\250A\250Q\250d\260)\2701\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021""\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\220=\240\001\240\021\330\004\014\320\014%\240Z\250q\330\004\036\230a\330\t\n\330\010\027\320\0271\260\021\260!\2607\270!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360t\001\000\005\010\200t\2103\210a\330\010\017\210q\330\t\023\2201\220F\230!\330\010\017\210s\220!\2201\340\010\017\210s\220!\320\023)\250\021\250!\330\004\014\320\014.\250j\270\001\330\004!\240\034\250Q\330\t\n\330\010\027\320\0274\260A\3205N\310h\320Va\320ah\320ho\320op\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330+t\360\000\000u\001D\003\360\000\000D\003X\004\360\000\000X\004Y\004\360D\002\000\005\033\230&\320 4\260C\260z\300\021\330\004\025\220V\230?\250#\250Z\260q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\027\220v\320\035.\250c\260\032\2701\330\004\021\220\026\220{\240#\240Z\250q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004!\240\035\250a\330\004\r\320\r \240\001\240\021\330\004\034\230G\240:\250V\2601\330\0048\270\001\270\034\300W\310D\320P`\320`a\320ab\330\004\r\210Q\320\016\"\240!\240;\320.>\270d\300+\320M_\320_b\320bc\320co\320op\330\004A\320AW\320WX\320XY\330\004)\250\030\260\032\320;Y\320YZ\330\004\007\200~\220R\220s\230!\230=\250\006\250l\270!\320;Q\320QS\320SV\320VW\320WZ\320Z[\320[h\320hj\320jp\320pr\320ru\320uv\320vw\330\004\007\200~\220R\220s\230!\320\033.\250f\260L\300\001\320AW\320WY\320Y\\\320\\]\320]`\320`a\320at\320tv\320v|\320|~\360\000\000\177\001B\002\360\000\000B\002C\002\360\000\000C\002D\002\330\004@\300\001\320AQ\320QX\320X\\\320\\p\320pq\320qr\330\004\r\210Q\320\016&\240a\240{\3202B\300$\300k\320Qc\320cf\320fg\320gw\320wx\330\004D\320DZ\320Z[\320[\\\330\004,\250H\260J\320>_\320_`\330\004\007\320\007""\031\230\022\2303\230a\320\0370\260\006\260l\300!\320CY\320Y[\320[^\320^_\320_b\320bc\320ct\320tv\320v|\320|~\360\000\000\177\001B\002\360\000\000B\002C\002\360\000\000C\002D\002\330\004\007\320\007\031\230\022\2303\230a\320\0375\260V\270<\300q\320H^\320^`\320`c\320cd\320dg\320gh\320h~\360\000\000\177\001A\002\360\000\000A\002G\002\360\000\000G\002I\002\360\000\000I\002L\002\360\000\000L\002M\002\360\000\000M\002N\002\330\t\n\330\010\027\320\027+\2501\320,F\300g\310[\320Xd\320dp\320pu\320uy\360\000\000z\001R\002\360\000\000R\002a\002\360\000\000a\002q\002\360\000\000q\002v\002\360\000\000v\002z\002\360\000\000z\002U\003\360\000\000U\003V\003\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330<=\360t\002\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004.\250d\260!\330\t\n\330\010\027\320\0277\260q\270\n\300(\310'\320QR\330\004\014\320\014\035\230Q\230a\200\001\330()\360`\001\000\005\032\230\021\330\004'\240u\250A\330\t\n\330\010\027\320\027*\250!\2501\250H\260A\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330()\360|\002\000\005(\240u\250A\330\t\n\330\010\027\320\027*\250!\2509\260A\330\004\014\320\014\035\230Q\230a\200\001\360\\\001\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\2301\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\320\024)\250\021\250!\330\004\r\320\r.\250j\270\001\330\004(\320(>\270a\330\t\n\330\010\027\320\027*\250!\320+N\310e\320S^\320^f\320fn\320no\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004)""\320):\270!\330\t\n\330\010\027\320\0274\260A\260X\320=[\320[f\320fg\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360@\001\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004,\320,@\300\001\330\t\n\330\010\027\320\0274\260A\260X\320=^\320^i\320ij\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004(\320(8\270\001\330\t\n\330\010\027\320\0274\260A\260X\320=Z\320Ze\320ef\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\340\t\n\330\010\027\320\027,\250A\250X\260Q\260a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\320$5\260Q\260a\200\001\360.\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004*\320*<\270A\330\t\n\330\010\027\320\0272\260!\2608\320;Z\320Ze\320ef\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004!\240\033\250A\330\t\n\330\010\027\320\0276\260a\260x\320?W\320W`\320`a\330\004\007\200t\210<\220q\330\010""\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004!\240\033\250A\330\t\n\330\010\027\320\0278\270\001\270\030\320AY\320Yb\320bc\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\004\035\230Q\330\004 \240\007\240q\250\001\330\t\n\330\010\027\320\0275\260Q\260h\270a\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360*\000\005\010\200u\210C\210q\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\320\0339\270\021\330\010\020\220\004\220G\2301\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\2301\330\010\021\320\0215\260Z\270q\340\010\016\210i\220q\360\000\000\031D\002\360\000\000D\002F\002\360\000\000F\002I\002\360\000\000I\002J\002\360\000\000J\002N\002\360\000\000N\002O\002\360\000\000O\002P\002\330\t\n\330\010\027\320\0277\260q\270\001\330\004\014\320\014\035\230Q\230a\200\001\360<\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\230A\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\320&;\2701\330\004\035\230Z\240q\330\004\036\230a\330\t\n\330\010\027\320\027(\250\001\320)K\3104\310{\320Zq\320qw\360\000\000x\001C\002\360\000\000C\002D\002\360\000\000D\002K\002\360\000\000K\002L\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250f\260A\330\004\014\320\014\035\230Q\230f\240F\250(\260!\200\001\360.\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\230A\330\010\021\220\023\220A\220Q\340\010\021""\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\220~\240Q\240a\330\004\014\320\014\035\230Q\230a\200\001\360.\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\230A\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\320\025&\240a\240q\330\004\016\320\016+\250:\260Q\330\004&\320&;\2701\330\t\n\330\010\027\320\027*\250!\320+M\310T\320Q\\\320\\]\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360:\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\004:\320:]\320]^\330\t\n\330\010\027\320\027D\300A\300Y\320N~\360\000\000\177\001I\002\360\000\000I\002J\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360:\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\004<\320<a\320ab\330\t\n\330\010\027\320\027F\300a\300y\360\000\000Q\001C\002\360\000\000C\002M\002\360\000\000M\002N\002\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360*\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\0342\260!\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220_\240A\240Q\330\004\016\320\016)\250\032\2601\330\004*\250!\330\t\n\330\010\027\320\027/\250q\260\t\270\021\270!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330!\"\360<\000\005!\240\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\0043\2601\330\004""\023\2201\330\004\007\200~\220S\230\001\330\010\027\320\0273\2606\270\021\270/\310\021\330\010\013\210=\230\003\2301\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\t\n\330\010\027\320\027-\250Q\250i\260~\300Q\300a\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\027\220q\230\017\240q\250\013\260:\270\\\310\021\310&\320PT\320T[\320[`\320`a\320ab\330\004\007\200}\220G\2301\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240N\260!\200\001\360<\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\320\027,\250A\250Q\330\004\014\320\014\035\230Q\230a\200\001\360*\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\320\027(\250\001\250\021\330\004\014\320\014\035\230Q\230a\200\001\330\035\036\360<\000\005!\240\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004.\250a\330\004\016\210a\330\004\007\200~\220S\230\001\330\010\022\320\022.\250f\260A\260_\300A\330\010\013\2108\2203\220a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320P_\320_a\320ae\320eg\320gj\320jk\320kl\330\t\n\330\010\027\320\027)\250\021\250)\2609\270A\270Q\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\022\220!\220?\240!\240;\250j\270\007\270q\300\006\300d\310'\320QV\320VW\320WX\330\004\007\200x\210w\220a\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240I\250Q\200\001\360>\000\005\010\200v\210S\220\001\330\010\021\220""\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\220\177\240a\240q\330\004\014\320\014\035\230Q\230a\200\001\330>?\360@\004\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\004I\320IZ\320Zg\320gy\360\000\000z\001A\002\360\000\000A\002K\002\360\000\000K\002L\002\330\t\n\330\010\027\320\0276\260a\3207S\320S]\320]h\320hq\320qr\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\340\004\007\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\t\n\330\010\027\320\0278\270\001\270\030\300\021\330\004\014\320\014\035\230Q\230a\200\001\360.\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\340\004\007\200u\210C\210q\330\010\020\220\001\330\t\023\2201\220G\320\0331\260\021\330\010\020\220\003\2201\220A\340\010\020\220\003\2201\220O\2401\240A\330\004\r\320\r(\250\n\260!\330\t\n\330\010\027\320\0276\260a\260x\270q\330\004\014\320\014\035\230Q\230a\200\001\330-.\360,\000\005\020\210v\220Y\230c\240\032\2501\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\0043\2601\330\004\007\200s\210!\210:\220R\220q""\330\010\025\320\0254\260F\270!\2703\270a\270{\310!\330\010\013\210;\220c\230\021\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320T_\320_a\320ae\320eg\320gj\320jk\320kl\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\230:\240Q\240g\320-@\300\010\310\001\310\025\310k\320YZ\330\t\014\210A\210Z\220s\230!\330\010\026\320\026)\250\030\260\021\260#\260Q\330\004\007\200v\210R\210x\220s\230!\230;\240f\250L\270\001\3209O\310r\320QT\320TU\320UX\320XY\320Yd\320df\320fl\320ln\320nq\320qr\320rs\330\t\n\330\010\027\320\027,\250A\250[\270\014\300A\330\004\007\200s\210!\210:\220R\220r\230\024\230[\250\007\250q\330\010\014\210A\210Q\330\004\014\320\014\035\230Q\230a\200\001\360v\001\000\005\010\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\230A\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\0040\3200F\300a\330\t\n\330\010\027\320\0274\260A\260]\300+\310Y\320VW\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\330,w\360\000\000x\001[\003\360\000\000[\003\\\003\360^\001\000\005\026\220V\230?\250#\250Z\260q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\330\004\024\220F\230.\250\003\250:\260Q\330\004\007\320\007\031\230\021\330\010\016\210i\220q\230\001\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\004&\240o\260Q\330\0046\260a\330\004\007\200s\210!\210?\230\"\230A\330\010\032\320\0327\260v\270Q\270c\300\021\320BR\320RS\330\010\013\320\013\033\2303\230a\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Td\320df\320fj\320jl\320lo\320op\320pq\340\014\020\220\007\220u\230A\230S\240\001\240\021\330\020\037\230q\240\007\320'C\320CT\320Ta\320ab\320bg\320gp\320pq\320qr\330\t\014\210A\210_\230C\230q\330\010\032\320\0327\3207H\310\r\320UV\320VY""\320YZ\330\0049\270\021\330\004\007\200s\210!\320\013\033\2302\230Q\330\010\033\320\033:\270&\300\001\300\023\300A\320EV\320VW\330\010\013\320\013\034\230C\230q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PS\320ST\320Te\320eg\320gk\320km\320mp\320pq\320qr\330\010\014\210G\2205\230\001\230\023\230A\230Q\330\022\031\230\021\230!\320\033+\2501\250G\3203F\300n\320TU\320UZ\320Ze\320ef\330\t\014\210A\320\r\035\230S\240\001\330\010\034\320\034/\250~\270Q\270c\300\021\330\004;\270:\300]\320R]\320]d\320dn\320no\330\t\n\330\010\027\320\027(\250\001\320)E\300Z\310{\320Zc\320ct\360\000\000u\001G\002\360\000\000G\002X\002\360\000\000X\002Y\002\330\004\007\200s\210!\210?\230\"\230B\230d\320\"2\260'\270\021\330\010\014\210A\210Q\330\004\007\200s\210!\320\013\033\2302\230R\230t\320#4\260G\2701\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\320\026-\250Q\250a\330\004\017\320\0172\260*\270A\330\t\n\330\010\027\320\0274\260A\260Q\330\004\014\320\014\035\230Q\230a\200\001\360<\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\230Q\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220f\230A\230Q\330\004\017\320\017!\240\032\2501\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\230A\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220V\2301\230A\330\004\016\320\016 \240\n\250!\340\004\007\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\034\240Q\240a\330\004\022\320\022*\250*\260A\330\004(\320(?\270q\330\t\n\330\010\027\320\0274\260A\3205Y\320Y]\320]h\320hu\320u~\320~\177\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360~\002\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023""\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\017\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\320\0270\260\001\260\032\270>\310\030\320QR\330\004\014\320\014\035\230Q\230a\200\001\360>\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\330\004\036\230k\250\021\330\t\n\330\010\027\320\027,\250A\250Z\3207O\310v\320UV\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360\\\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\320\0270\260\001\260\031\270*\300A\330\004\014\320\014\035\230Q\230a\200\001\360@\001\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0350\260\001\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\220l\240!\2401\330\004\017\320\017'\240z\260\021\340\004\007\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\320 6\260a\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\037\250\001\250\021\330\004\022\320\022-\250Z\260q\330\t\n\330\010\027\320\027'\240q\250\r\260Q\330\004\014\320\014\035\230Q\230a\200\001\360>\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0354\260A\330\010\022\220#\220Q\220a\340\010\022\220#\220Q\320\026&\240a\240q\330\004\017\320\017+\250:\260Q\330\t\n\330\010\027\320\027-\250Q\250j\270\001\330\004\014\320\014\035\230Q\230a\200\001\360:\000\005\010\200w\210c\220\021\330\010\022\220!\330\t\023\2201\220I\320\0354\260A\330\010""\022\220#\220Q\220a\340\010\022\220#\220Q\320\026&\240a\240q\330\004\017\320\017+\250:\260Q\340\004\007\200v\210S\220\001\330\010\021\220\021\330\t\023\2201\220H\320\034.\250a\330\010\021\220\023\220A\220Q\340\010\021\220\023\220A\220[\240\001\240\021\330\004\016\320\016%\240Z\250q\330\t\n\330\010\027\320\0272\260!\2609\270J\300a\330\004\014\320\014\035\230Q\230a\320\004?\270w\300k\320QX\320Xz\320z{\360\000\000|\001E\002\360\000\000E\002F\002\360\000\000F\002G\002\320\004/\250w\260k\300\027\320Hb\320bc\320cl\320lm\320mn\200\001\360x\003\000\005\034\2301\330\t\n\330\010\027\320\027)\250\021\250(\260!\2608\2706\300\021\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360x\001\000\005-\320,A\300\021\330\004\014\320\014\037\230q\240\001\330\004\033\2307\240*\250E\260\021\330\t\n\330\010\027\320\0270\260\001\3201S\320S]\320]h\320hi\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360<\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004\017\320\017\"\240!\2401\330\004\036\230g\240Z\250x\260q\330\t\n\330\010\027\220~\240Q\240n\260A\330\004\014\320\014\035\230Q\230a\200\001\330:;\360:\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004$\240O\2601\330\0044\260H\270A\330\t\n\330\010\027\320\0270\260\001\260\033\320<X\320X`\320`k\320kl\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360:\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004\030\230\001\330\t\n\330\010\027\320\027-\250Q""\250k\270\021\270!\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360.\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0361\260\021\330\010\023\2203\220a\220q\340\010\023\2203\220a\220|\2401\240A\330\004\020\320\020(\250\n\260!\330\004\026\220a\330\t\n\330\010\027\320\027+\2501\250K\260q\270\001\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360@\001\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\t\n\330\010\027\320\027*\250!\2501\330\004\014\320\014\035\230Q\230a\200\001\360>\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\320\0362\260!\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\t\n\330\010\027\320\027,\250A\250X\260Q\330\004\014\320\014\035\230Q\230a\200\001\360:\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\230a\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\004\031\230\021\330\t\n\330\010\027\320\0275\260Q\260h\270a\270v\300[\320PQ\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360*\000\005\010\200x\210s\220!\330\010\023\2201\330\t\023\2201\220J\230a\330\010\023\2203\220a\220q\340\010\023\2203\220a\220}\240A\240Q\330\004\020\320\020)\250\032\2601\330\t\n\330\010\027\320\027)\250\021\250!\330\004\014\320\014\035\230Q\230a\200\001\360<\000\005\010\200x\210s\220!\330\010\024\320\024-\250Z\260q\330\t\023\2201\220J\320\0361\260\021\330\010\023\2207\230'\240\021\330\010\024\320\024-\250Z\260q\330\t\023\2201\220J\230a\330\010\024\320\024-\250Z\260q\340\010\016\210i\220q\320\030{\320{}\360\000\000~\001A\002\360\000\000A\002B\002\360\000\000B\002F\002\360\000\000F\002G""\002\360\000\000G\002H\002\340\004\007\200~\220S\230\001\330\010\032\320\032=\270Z\300q\330\t\023\2201\320\024$\240A\330\010\031\230\035\240g\250Q\330\010\032\320\032=\270Z\300q\330\t\023\2201\320\024$\240A\330\010\032\320\032=\270Z\300q\340\010\016\210i\220q\360\000\000\031L\002\360\000\000L\002N\002\360\000\000N\002Q\002\360\000\000Q\002R\002\360\000\000R\002V\002\360\000\000V\002W\002\360\000\000W\002X\002\340\004\007\200u\210C\210q\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\320\0339\270\021\330\010\020\220\004\220G\2301\330\010\021\320\0215\260Z\270q\330\t\023\2201\220G\2301\330\010\021\320\0215\260Z\270q\340\010\016\210i\220q\360\000\000\031D\002\360\000\000D\002F\002\360\000\000F\002I\002\360\000\000I\002J\002\360\000\000J\002N\002\360\000\000N\002O\002\360\000\000O\002P\002\330\t\n\330\010\027\320\0279\270\021\270(\320BS\320S^\320^_\330\004\014\320\014\035\230Q\230a\200\001\360\034\000\005\010\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330""\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330""\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s""\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\007\200x\210s\220!\330\010\017\210q\330\004\n\210)\2201\320\024%\240R\240s\250!\2501\200\001\330;x\320xy\360P\004\000\0050\250q\330\004\017\210q\220\017\230s\240$\240g\250U\260!\2601\330\004\007\200y\220\003\2201\330\010\023\320\023/\250v\260Q\260j\300\001\330\010\013\2109\220C\220q\330\014\022\220+\230Q\320\036J\310\"\310C\310q\320PZ\320Z\\\320\\`\320`b\320be\320ef\320fg\330\0043\2606\270\035\300g\310W\320T^\320^_\330\004%\240_\260A\330\004E\300[\320P]\320]i\320ip\320pz\320z{\330\t\n\330\010\027\320\027.\250a\250z\270\032\300>\320Qm\320mv\360\000\000w\001B\002\360\000\000B\002I\002\360\000\000I\002J\002\330\004\007\200{\220!\2205\230\003\230;\240a\240q\330\010\014\210G\2205\230\001\230\021\330\022\031\230\022\320\033,\250H\260A\260U\270+\300Q\300h\310a\310v\320UV\330\004\007\200y\220\007\220q\330\010\014\210A\210Q\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240J\250a\200\001\360\036\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\030.\250a\250q\330\004\021\320\0213\260:\270Q\330\t\n\330\010\027\320\0272\260!\2601\330\004\014\320\014\035\230Q\230a\200\001\360:\000\005\010\200y\220\003\2201\330\010\024\220A\330\t\023\2201\220K\230q\330\010\024\220C\220q\230\001\340\010\024\220C\220q\320\030.\250a\250q\330\004\021\320\0213\260:\270Q\330\004/\320/C\3001\330\t\n\330\010\027\320\027C\3001\320De\320es\320s~\320~\177\330\004\007\200t\210<\220q\330\010\020\320\020!\240""\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360*\000\005\010\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\320 6\260a\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\037\250\001\250\021\330\004\022\320\022-\250Z\260q\330\t\n\330\010\027\320\027,\250A\250Q\330\004\014\320\014\035\230Q\230a\200\001\360*\000\005\010\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\320\031,\250A\250Q\330\004\022\320\0221\260\032\2701\330\t\n\330\010\027\320\0270\260\001\260\021\330\004\014\320\014\035\230Q\230a\200\001\360<\000\005\010\200z\220\023\220A\330\010\025\220Q\330\t\023\2201\220L\240\001\330\010\025\220S\230\001\230\021\340\010\025\220S\230\001\230\034\240Q\240a\330\004\022\320\022*\250*\260A\330\004(\320(?\270q\330\t\n\330\010\027\320\027=\270Q\320>b\320bf\320fq\320q~\320~\177\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\001\330\004\014\320\014\035\230Q\230f\240A\200\001\360z\002\000\005\035\230A\340\t\n\330\010\027\320\027/\250q\260\010\270\010\300\001\300\031\310'\320QR\320RS\330\004\007\200t\210<\220q\330\010\020\320\020!\240\021\240&\250\006\250a\330\004\014\320\014\035\230Q\230f\240I\320-L\310A\310Q";
    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 < 3828; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 844) 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 = 3828; i < 4220; 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 < 4220; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 3828;
      for (Py_ssize_t i=0; i<392; ++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,1,127};
    int16_t const cint_constants_2[] = {-129,256,1024};
    for (int i = 0; i < 6; i++) {
      numbertab[i] = PyLong_FromLong((i < 3 ? cint_constants_1[i - 0] : cint_constants_2[i - 3]));
      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<6; ++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 : 4;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 5;
    unsigned int flags : 10;
    unsigned int first_line : 16;
} __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, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1026};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1044};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1073};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__10, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1103};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1299};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1309};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__11, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1318};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1358};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1366};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1373};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1382};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__12, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1390};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1403};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__13, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1426};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1867};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__14, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1984};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2003};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2026};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2043};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__14, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2061};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2073};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2084};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__11, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2102};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2115};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__15, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2126};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2137};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__11, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2159};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__11, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2175};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2200};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2219};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__13, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2331};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2365};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__16, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2384};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2394};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2411};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[34] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__14, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[34])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2434};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2463};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2490};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__13, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2523};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[38] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[38])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2539};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[39] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[39])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2559};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[40] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[40])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2573};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[41] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__12, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[41])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2584};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[42] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__18, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[42])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3005};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[43] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[43])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3053};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[44] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[44])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3078};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[45] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[45])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3094};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[46] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__14, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[46])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3110};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[47] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[47])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3134};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[48] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[48])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3159};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[49] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__11, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[49])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3172};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[50] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[50])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3205};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[51] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__19, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[51])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3220};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[52] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[52])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3243};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[53] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__16, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[53])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3263};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[54] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[54])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3277};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[55] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[55])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3308};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[56] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[56])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3347};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[57] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[57])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3356};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[58] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[58])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3365};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[59] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[59])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3382};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[60] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[60])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3397};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[61] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[61])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3527};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[62] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[62])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3548};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[63] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__16, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[63])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3564};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[64] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__16, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[64])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3578};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[65] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__13, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[65])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3594};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[66] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[66])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3604};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[67] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[67])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3625};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[68] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[68])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3696};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[69] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__16, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[69])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3719};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[70] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__20, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[70])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3758};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[71] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__11, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[71])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3778};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[72] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__19, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[72])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3796};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[73] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[73])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3813};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[74] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[74])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3854};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[75] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[75])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3882};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[76] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__11, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[76])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3895};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[77] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_A_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[77])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3911};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[78] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[78])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3924};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[79] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[79])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3943};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[80] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[80])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3956};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[81] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[81])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3969};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[82] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[82])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3978};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[83] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[83])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 3996};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[84] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__13, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[84])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 4012};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[85] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[85])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 4208};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[86] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[86])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 4404};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[87] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[87])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 16151};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[88] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[88])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 16466};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[89] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[89])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 17700};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[90] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[90])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 17703};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[91] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[91])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 18066};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[92] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[92])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 18069};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[93] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[93])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 19077};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[94] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[94])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 19080};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[95] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[95])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 19203};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[96] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[96])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 19206};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[97] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[97])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 22062};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[98] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[98])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 22065};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[99] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[99])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 22067};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[100] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[100])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 22208};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[101] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[101])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 22962};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[102] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[102])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 22965};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[103] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[103])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 22967};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[104] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[104])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 23052};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[105] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[105])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 23147};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[106] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[106])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 23150};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[107] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[107])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 23152};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[108] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[108])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 23579};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[109] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[109])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 23581};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[110] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[110])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 24243};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[111] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[111])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 26308};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[112] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[112])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 26586};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[113] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[113])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 26675};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[114] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[114])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 26876};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[115] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[115])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 27016};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[116] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[116])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 27167};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[117] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[117])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 27277};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[118] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[118])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 27354};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[119] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[119])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 27513};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[120] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[120])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 27660};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[121] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[121])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 27808};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[122] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[122])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 27995};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[123] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[123])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 28121};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[124] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[124])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 29012};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[125] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[125])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 29015};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[126] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[126])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 29018};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[127] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[127])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 29105};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[128] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[128])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 29108};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[129] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[129])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 29111};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[130] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[130])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 30992};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[131] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[131])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 30995};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[132] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[132])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 31518};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[133] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[133])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 31522};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[134] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[134])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 31615};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[135] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[135])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 31619};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[136] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[136])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 32400};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_3};
    __pyx_mstate_global->__pyx_codeobj_tab[137] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__17, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[137])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34530};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[138] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDevResourceDesc_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_wkQXXzz_E_E_F_F_G, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[138])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34532};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[139] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionContext_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_A_SZZ_H_H_I_I_J, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[139])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34534};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[140] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaArray_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_7_WD_ffggh, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[140])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34536};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[141] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaArray_const_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_7wk_Pnnooxxyyz, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[141])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34538};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[142] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMipmappedArray_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_WKwVwwx_y_B_B_C_C_D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[142])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34540};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[143] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMipmappedArray_const_t_gette, __pyx_mstate->__pyx_kp_b_iso88591_I_P_b_c_J_J_K_K_T_T_U_U_V, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[143])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34542};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[144] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStream_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_WKwF___iijjk, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[144])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34544};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[145] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEvent_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_7_WD_ffggh, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[145])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34546};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[146] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsResource_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_A_SZZ_H_H_I_I_J, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[146])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34548};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[147] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExternalMemory_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_WKwVwwx_y_B_B_C_C_D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[147])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34550};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[148] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExternalSemaphore_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_C7_U_A_A_B_B_K_K_L_L_M, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[148])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34552};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[149] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraph_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_7_WD_ffggh, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[149])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34554};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[150] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNode_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_37_WLhhiirrsst, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[150])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34556};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[151] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaUserObject_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_5WKwNkklluuvvw, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[151])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34558};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[152] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFunction_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_1_7Jeeffooppq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[152])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34560};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[153] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaKernel_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_WKwF___iijjk, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[153])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34562};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[154] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibrary_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_wk_Hbbccllmmn, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[154])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34564};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[155] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPool_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_wk_Hbbccllmmn, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[155])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34566};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[156] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExec_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_37_WLhhiirrsst, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[156])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34568};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[157] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphDeviceNode_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_wkQXXzz_E_E_F_F_G, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[157])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34570};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[158] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaAsyncCallbackHandle_t_getter, __pyx_mstate->__pyx_kp_b_iso88591_GwkY_a_G_G_H_H_Q_Q_R_R_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[158])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34572};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[159] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLogsCallbackHandle_getter, __pyx_mstate->__pyx_kp_b_iso88591_A_SZZ_H_H_I_I_J, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[159])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34574};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[160] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_EGLImageKHR_getter, __pyx_mstate->__pyx_kp_b_iso88591_7_WD_ffggh, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[160])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34576};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[161] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_EGLStreamKHR_getter, __pyx_mstate->__pyx_kp_b_iso88591_WKwF___iijjk, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[161])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34578};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[162] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_EGLSyncKHR_getter, __pyx_mstate->__pyx_kp_b_iso88591_7BYYZZccdde, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[162])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34580};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2};
    __pyx_mstate_global->__pyx_codeobj_tab[163] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEglStreamConnection_getter, __pyx_mstate->__pyx_kp_b_iso88591_C7_U_A_A_B_B_K_K_L_L_M, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[163])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 40};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_t};
    __pyx_mstate_global->__pyx_codeobj_tab[164] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__lib_utils_pxi, __pyx_mstate->__pyx_n_u_lambda, __pyx_mstate->__pyx_kp_b_iso88591_U_eellmmn, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[164])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[165] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[165])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[166] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[166])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[167] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[167])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[168] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[168])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 186};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[169] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__lib_utils_pxi, __pyx_mstate->__pyx_n_u_pyObj, __pyx_mstate->__pyx_kp_b_iso88591_A_t_s_4w_1_4q_Q_4q_1_WAT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[169])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[170] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[170])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[171] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[171])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 223};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[172] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__lib_utils_pxi, __pyx_mstate->__pyx_n_u_pyObj, __pyx_mstate->__pyx_kp_b_iso88591_A_4w_Q_4q_q_1D_auD_uAS_PQQR_1_WA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[172])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[173] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[173])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[174] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[174])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 294};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[175] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__lib_utils_pxi, __pyx_mstate->__pyx_n_u_pyObj, __pyx_mstate->__pyx_kp_b_iso88591_A_t_s_4w_1_4q_Q_4q_Q_4q_Q_T_Q_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[175])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[176] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[176])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[177] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[177])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 348};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[178] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__lib_utils_pxi, __pyx_mstate->__pyx_n_u_pyObj, __pyx_mstate->__pyx_kp_b_iso88591_A_t_s_4w_A_4q_1_WAT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[178])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[179] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[179])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[180] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[180])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[181] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[181])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[182] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[182])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[183] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[183])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[184] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[184])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[185] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[185])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[186] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[186])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[187] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[187])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[188] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[188])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 528};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[189] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__lib_utils_pxi, __pyx_mstate->__pyx_n_u_pyObj, __pyx_mstate->__pyx_kp_b_iso88591_A_C1_4q_C1_4q_C1_T_C1_4q_C1_4q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[189])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[190] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[190])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[191] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[191])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[192] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[192])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[193] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[193])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 590};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[194] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__lib_utils_pxi, __pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_kp_b_iso88591_A_t1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[194])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 593};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[195] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings__lib_utils_pxi, __pyx_mstate->__pyx_n_u_pyObj, __pyx_mstate->__pyx_kp_b_iso88591_A_t_s_4y_A_4q_a_4q_1_WAT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[195])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[196] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[196])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[197] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[197])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4437};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[198] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[198])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[199] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[199])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[200] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[200])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4471};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[201] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[201])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[202] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[202])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[203] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[203])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4505};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[204] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[204])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[205] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[205])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[206] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[206])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4539};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[207] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[207])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[208] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[208])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[209] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[209])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4573};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[210] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[210])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[211] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[211])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[212] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[212])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4607};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[213] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[213])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[214] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[214])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[215] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[215])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4641};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[216] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[216])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[217] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[217])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[218] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[218])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4675};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[219] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[219])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[220] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[220])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[221] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[221])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4709};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[222] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[222])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[223] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[223])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[224] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[224])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4743};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[225] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[225])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[226] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[226])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[227] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[227])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4777};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[228] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[228])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[229] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[229])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[230] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[230])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4811};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[231] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[231])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[232] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[232])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[233] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[233])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4845};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[234] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[234])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[235] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[235])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[236] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[236])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4877};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[237] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[237])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[238] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[238])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[239] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[239])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4909};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[240] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[240])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[241] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[241])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[242] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[242])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4941};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[243] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[243])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[244] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[244])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[245] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[245])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4973};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[246] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[246])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[247] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[247])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[248] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[248])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4999};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[249] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[249])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[250] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[250])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[251] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[251])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5025};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[252] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[252])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[253] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[253])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[254] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[254])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5051};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[255] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[255])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[256] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[256])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[257] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[257])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5077};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[258] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[258])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[259] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[259])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[260] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[260])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5105};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[261] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[261])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[262] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[262])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[263] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[263])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5175};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[264] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[264])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[265] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[265])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[266] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[266])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5259};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[267] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[267])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[268] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[268])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[269] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[269])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5330};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[270] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[270])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[271] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[271])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[272] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[272])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5416};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[273] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[273])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[274] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[274])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[275] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[275])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5484};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[276] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[276])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[277] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[277])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[278] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[278])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5562};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[279] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[279])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[280] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[280])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[281] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[281])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5628};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[282] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[282])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[283] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[283])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[284] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[284])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5711};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[285] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[285])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[286] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[286])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[287] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[287])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5852};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[288] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[288])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[289] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[289])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[290] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[290])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 5956};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[291] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[291])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[292] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[292])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[293] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[293])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6106};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[294] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[294])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[295] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[295])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[296] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[296])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6213};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[297] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[297])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[298] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[298])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[299] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[299])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6344};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[300] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[300])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[301] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[301])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[302] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[302])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6434};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[303] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[303])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[304] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[304])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[305] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[305])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6499};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[306] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[306])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[307] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[307])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[308] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[308])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6558};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[309] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[309])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[310] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[310])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[311] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[311])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6606};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[312] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[312])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[313] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[313])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[314] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[314])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6658};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[315] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[315])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[316] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[316])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[317] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[317])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6726};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[318] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[318])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[319] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[319])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[320] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[320])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6805};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[321] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[321])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[322] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[322])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[323] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[323])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6856};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[324] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[324])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[325] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[325])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[326] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[326])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 6945};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[327] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[327])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[328] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[328])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[329] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[329])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7025};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[330] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[330])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[331] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[331])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[332] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[332])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7168};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[333] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[333])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[334] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[334])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[335] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[335])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7323};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[336] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[336])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[337] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[337])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[338] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[338])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7530};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[339] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[339])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[340] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[340])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[341] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[341])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7587};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[342] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[342])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[343] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[343])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[344] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[344])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7660};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[345] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[345])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[346] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[346])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[347] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[347])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7770};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[348] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[348])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[349] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[349])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[350] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[350])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7830};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[351] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[351])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[352] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[352])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[353] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[353])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 7943};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[354] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[354])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[355] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[355])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[356] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[356])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8041};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[357] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[357])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[358] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[358])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[359] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[359])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8097};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[360] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[360])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[361] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[361])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[362] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[362])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8175};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[363] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[363])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[364] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[364])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[365] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[365])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8240};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[366] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[366])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[367] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[367])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[368] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[368])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8313};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[369] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[369])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[370] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[370])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[371] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[371])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8374};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[372] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[372])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[373] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[373])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[374] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[374])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8431};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[375] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[375])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[376] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[376])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[377] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[377])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8495};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[378] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[378])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[379] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[379])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[380] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[380])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8577};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[381] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[381])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[382] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[382])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[383] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[383])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 8824};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[384] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[384])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[385] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[385])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[386] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[386])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 9798};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[387] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[387])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[388] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[388])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[389] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[389])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 9851};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[390] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[390])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[391] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[391])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[392] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[392])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 9902};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[393] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[393])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[394] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[394])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[395] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[395])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 9953};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[396] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[396])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[397] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[397])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[398] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[398])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10008};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[399] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[399])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[400] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[400])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[401] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[401])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10082};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[402] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[402])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[403] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[403])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[404] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[404])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10172};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[405] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[405])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[406] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[406])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[407] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[407])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10258};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[408] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[408])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[409] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[409])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[410] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[410])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10348};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[411] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[411])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[412] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[412])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[413] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[413])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10403};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[414] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[414])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[415] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[415])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[416] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[416])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10475};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[417] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[417])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[418] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[418])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[419] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[419])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10545};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[420] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[420])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[421] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[421])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[422] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[422])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10585};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[423] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[423])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[424] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[424])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[425] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[425])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10634};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[426] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[426])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[427] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[427])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[428] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[428])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10681};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[429] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[429])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[430] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[430])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[431] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[431])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10765};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[432] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[432])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[433] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[433])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[434] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[434])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10823};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[435] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[435])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[436] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[436])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[437] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[437])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10863};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[438] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[438])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[439] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[439])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[440] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[440])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10914};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[441] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[441])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[442] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[442])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[443] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[443])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 10971};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[444] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[444])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[445] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[445])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[446] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[446])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11055};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[447] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[447])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[448] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[448])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[449] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[449])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11129};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[450] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[450])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[451] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[451])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[452] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[452])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11205};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[453] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[453])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[454] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[454])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[455] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[455])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11269};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[456] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[456])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[457] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[457])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[458] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[458])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11325};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[459] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[459])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[460] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[460])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[461] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[461])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11441};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[462] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[462])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[463] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[463])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[464] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[464])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11570};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[465] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[465])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[466] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[466])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[467] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[467])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11656};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[468] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[468])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[469] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[469])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[470] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[470])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11766};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[471] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[471])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[472] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[472])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[473] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[473])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11888};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[474] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[474])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[475] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[475])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[476] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[476])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11989};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[477] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[477])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[478] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[478])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[479] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[479])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12090};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[480] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[480])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[481] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[481])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[482] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[482])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12191};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[483] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[483])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[484] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[484])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[485] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[485])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12311};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[486] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[486])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[487] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[487])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[488] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[488])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12419};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[489] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[489])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[490] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[490])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[491] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[491])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12483};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[492] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[492])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[493] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[493])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[494] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[494])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12535};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[495] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[495])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[496] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[496])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[497] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[497])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12630};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[498] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[498])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[499] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[499])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[500] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[500])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12849};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[501] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[501])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[502] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[502])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[503] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[503])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 12932};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[504] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[504])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[505] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[505])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[506] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[506])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13033};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[507] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[507])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[508] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[508])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[509] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[509])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13115};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[510] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_Q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[510])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[511] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[511])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[512] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[512])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13180};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[513] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[513])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[514] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[514])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[515] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[515])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13252};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[516] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[516])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[517] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[517])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[518] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[518])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13333};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[519] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[519])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[520] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[520])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[521] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[521])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13385};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[522] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[522])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[523] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[523])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[524] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[524])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13448};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[525] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[525])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[526] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[526])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[527] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[527])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13519};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[528] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[528])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[529] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[529])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[530] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[530])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13580};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[531] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[531])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[532] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[532])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[533] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[533])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13640};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[534] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[534])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[535] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[535])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[536] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[536])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13780};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[537] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[537])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[538] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[538])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[539] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[539])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13992};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[540] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[540])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[541] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[541])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[542] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[542])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14042};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[543] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[543])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[544] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[544])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[545] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[545])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14081};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[546] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[546])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[547] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[547])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[548] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[548])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14129};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[549] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[549])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[550] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[550])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[551] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[551])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14207};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[552] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[552])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[553] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[553])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[554] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[554])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14389};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[555] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[555])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[556] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[556])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[557] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[557])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14489};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[558] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[558])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[559] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[559])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[560] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[560])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14571};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[561] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[561])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[562] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[562])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[563] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[563])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14665};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[564] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[564])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[565] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[565])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[566] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[566])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14690};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[567] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[567])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[568] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[568])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[569] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[569])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14717};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[570] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[570])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[571] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[571])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[572] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[572])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14744};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[573] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[573])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[574] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[574])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[575] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[575])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14769};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[576] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[576])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[577] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[577])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[578] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[578])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14794};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[579] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[579])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[580] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[580])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[581] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[581])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14819};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[582] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[582])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[583] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[583])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[584] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[584])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14844};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[585] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[585])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[586] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[586])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[587] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[587])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14869};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[588] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[588])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[589] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[589])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[590] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[590])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14894};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[591] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[591])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[592] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[592])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[593] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[593])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14919};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[594] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getPtr, __pyx_mstate->__pyx_kp_b_iso88591_A_z_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[594])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[595] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[595])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[596] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[596])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14922};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[597] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceReset, __pyx_mstate->__pyx_kp_b_iso88591_P_q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[597])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14966};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[598] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceSynchronize, __pyx_mstate->__pyx_kp_b_iso88591_Q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[598])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 14990};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_limit, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_cylimit, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[599] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceSetLimit, __pyx_mstate->__pyx_kp_b_iso88591_uA_9A_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[599])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15090};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_limit, __pyx_mstate->__pyx_n_u_pValue_2, __pyx_mstate->__pyx_n_u_cylimit, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[600] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetLimit, __pyx_mstate->__pyx_kp_b_iso88591_uA_1HA_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[600])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15147};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_fmtDesc, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_maxWidthInElements, __pyx_mstate->__pyx_n_u_cyfmtDesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[601] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetTexture1DLinearMaxW, __pyx_mstate->__pyx_kp_b_iso88591_344_Q_hV_ggh_AQ_RRaab_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[601])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15182};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pCacheConfig, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[602] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetCacheConfig, __pyx_mstate->__pyx_kp_b_iso88591_R_0_t_q_QfM, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[602])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15229};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_leastPriority, __pyx_mstate->__pyx_n_u_greatestPriority, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[603] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetStreamPriorityRange, __pyx_mstate->__pyx_kp_b_iso88591_H_Q_8_t_q_a_QfO1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[603])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15273};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cacheConfig, __pyx_mstate->__pyx_n_u_cycacheConfig, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[604] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceSetCacheConfig, __pyx_mstate->__pyx_kp_b_iso88591_45b_2_A_0_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[604])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15328};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pciBusId, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[605] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetByPCIBusId, __pyx_mstate->__pyx_kp_b_iso88591_2_a_q_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[605])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15360};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_pypciBusId, __pyx_mstate->__pyx_n_u_pciBusId, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[606] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetPCIBusId, __pyx_mstate->__pyx_kp_b_iso88591_b_Qj_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[606])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15398};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_handle_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[607] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaIpcGetEventHandle, __pyx_mstate->__pyx_kp_b_iso88591_X_vS_1H_a_AQ_A_Zq_1_Q_OvU_a_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[607])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15456};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_handle_2, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[608] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaIpcOpenEventHandle, __pyx_mstate->__pyx_kp_b_iso88591_H_a_GuKW_ffggh_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[608])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15500};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_handle_2, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[609] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaIpcGetMemHandle, __pyx_mstate->__pyx_kp_b_iso88591_L_7q_1_gZxq_1_K6Q_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[609])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15547};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_handle_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[610] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaIpcOpenMemHandle, __pyx_mstate->__pyx_kp_b_iso88591_1_AXQhfIQdRS_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[610])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15617};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[611] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaIpcCloseMemHandle, __pyx_mstate->__pyx_kp_b_iso88591_D_1_gZxq_Qa_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[611])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15657};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_scope, __pyx_mstate->__pyx_n_u_cytarget, __pyx_mstate->__pyx_n_u_cyscope, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[612] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceFlushGPUDirectRDMAWrit, __pyx_mstate->__pyx_kp_b_iso88591_9nnoB_B_q_uA_Q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[612])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15709};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_callbackFunc, __pyx_mstate->__pyx_n_u_userData_2, __pyx_mstate->__pyx_n_u_cycallbackFunc, __pyx_mstate->__pyx_n_u_pcallbackFunc, __pyx_mstate->__pyx_n_u_cyuserData, __pyx_mstate->__pyx_n_u_cyuserData_ptr, __pyx_mstate->__pyx_n_u_cbData, __pyx_mstate->__pyx_n_u_callback, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[613] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceRegisterAsyncNotificat, __pyx_mstate->__pyx_kp_b_iso88591_X_Cq_1O1_1A_1_Qa_2_A_AQ_z_1_fAW, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[613])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15781};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_callback, __pyx_mstate->__pyx_n_u_cycallback, __pyx_mstate->__pyx_n_u_pcallback, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[614] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceUnregisterAsyncNotific, __pyx_mstate->__pyx_kp_b_iso88591_2_y_1_A_1Kq_Cq_Cq_1_6j_Qha_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[614])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15820};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pConfig, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[615] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetSharedMemConfig, __pyx_mstate->__pyx_kp_b_iso88591_F_4AQa_t_q_Qf_7q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[615])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15861};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_config, __pyx_mstate->__pyx_n_u_cyconfig, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[616] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceSetSharedMemConfig, __pyx_mstate->__pyx_kp_b_iso88591_34_3_4AQ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[616])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15915};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[617] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetLastError, __pyx_mstate->__pyx_kp_b_iso88591_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[617])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15940};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[618] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaPeekAtLastError, __pyx_mstate->__pyx_kp_b_iso88591_1_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[618])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15966};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_error, __pyx_mstate->__pyx_n_u_cyerror, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[619] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetErrorName, __pyx_mstate->__pyx_kp_b_iso88591_a_K_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[619])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 15995};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_error, __pyx_mstate->__pyx_n_u_cyerror, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[620] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetErrorString, __pyx_mstate->__pyx_kp_b_iso88591_a_1_K_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[620])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16023};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[621] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetDeviceCount, __pyx_mstate->__pyx_kp_b_iso88591_Q_1A_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[621])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16049};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_prop, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[622] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetDeviceProperties, __pyx_mstate->__pyx_kp_b_iso88591_Q_q0K4_Z_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[622])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16078};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[623] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_0_Q_4q_aq_xq_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[623])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16111};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_operations, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_cycapabilities, __pyx_mstate->__pyx_n_u_pycapabilities, __pyx_mstate->__pyx_n_u_cyoperations, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pyoperations, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[624] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetHostAtomicCapabilit_2, __pyx_mstate->__pyx_kp_b_iso88591_56L_Zq_iq_Q_vS_awa_Q_Q_J_CqPWWY, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[624])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16171};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[625] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetDefaultMemPool, __pyx_mstate->__pyx_kp_b_iso88591_a_314NgU_a_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[625])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16201};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[626] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceSetMemPool, __pyx_mstate->__pyx_kp_b_iso88591_xs_1_1J_2_3aq_3a_AQ_1_AXQ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[626])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16243};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[627] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetMemPool, __pyx_mstate->__pyx_kp_b_iso88591_6_a_A_GwkYZ_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[627])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16277};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_nvSciSyncAttrList, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cynvSciSyncAttrList, __pyx_mstate->__pyx_n_u_cynvSciSyncAttrList_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[628] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetNvSciSyncAttributes, __pyx_mstate->__pyx_kp_b_iso88591_Z_Qa_MQ_8_9RRZZ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[628])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16360};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_srcDevice_2, __pyx_mstate->__pyx_n_u_dstDevice_2, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[629] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetP2PAttribute, __pyx_mstate->__pyx_kp_b_iso88591_j_Q_d_1_7_Q_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[629])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16422};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_operations, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_srcDevice_2, __pyx_mstate->__pyx_n_u_dstDevice_2, __pyx_mstate->__pyx_n_u_cycapabilities, __pyx_mstate->__pyx_n_u_pycapabilities, __pyx_mstate->__pyx_n_u_cyoperations, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pyoperations, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[630] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetP2PAtomicCapabiliti_2, __pyx_mstate->__pyx_kp_b_iso88591_45T_Zq_iq_Q_vS_awa_Q_Q_J_CqPWWY, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[630])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16486};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_prop, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_cyprop_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[631] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaChooseDevice, __pyx_mstate->__pyx_kp_b_iso88591_a_0_M_gZWX_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[631])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16517};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_deviceFlags, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[632] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaInitDevice, __pyx_mstate->__pyx_kp_b_iso88591_H_ax_A_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[632])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16557};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[633] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaSetDevice, __pyx_mstate->__pyx_kp_b_iso88591_b_Qa_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[633])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16610};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[634] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetDevice, __pyx_mstate->__pyx_kp_b_iso88591_a_Qaq_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[634])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16635};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[635] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaSetDeviceFlags, __pyx_mstate->__pyx_kp_b_iso88591_1_Qa_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[635])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16719};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[636] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetDeviceFlags, __pyx_mstate->__pyx_kp_b_iso88591_P_a_1A_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[636])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16766};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pStream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[637] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamCreate, __pyx_mstate->__pyx_kp_b_iso88591_A_B_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[637])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16793};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_pStream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[638] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamCreateWithFlags, __pyx_mstate->__pyx_kp_b_iso88591_D_A_1_2K7R_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[638])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16834};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_priority_2, __pyx_mstate->__pyx_n_u_pStream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[639] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamCreateWithPriority, __pyx_mstate->__pyx_kp_b_iso88591_f_A_4A5NgU_ggh_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[639])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16892};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_priority_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[640] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamGetPriority, __pyx_mstate->__pyx_kp_b_iso88591_xs_1_1J_1_3aq_3a_1A_Qk_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[640])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16935};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[641] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamGetFlags, __pyx_mstate->__pyx_kp_b_iso88591_2_xs_1_1J_1_3aq_3a_1A_a_aq_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[641])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16974};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_streamId, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[642] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamGetId, __pyx_mstate->__pyx_kp_b_iso88591_N_xs_1_1J_1_3aq_3a_1A_q_q_1A_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[642])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17027};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[643] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamGetDevice, __pyx_mstate->__pyx_kp_b_iso88591_xs_1_1J_1_3aq_3a_1A_a_1Kq_t_q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[643])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17064};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[644] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaCtxResetPersistingL2Cache, __pyx_mstate->__pyx_kp_b_iso88591_5Q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[644])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17084};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_psrc, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_pdst, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[645] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamCopyAttributes, __pyx_mstate->__pyx_kp_b_iso88591_0_t3a_q_1F_Q_s_1_s_q_Ja_t3a_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[645])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17127};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_value_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[646] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamGetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_452_xs_1_1J_1_3aq_3a_1A_T_A_a_B, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[646])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17168};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_cyvalue_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[647] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamSetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_4Na4_xs_1_1J_1_3aq_3a_1A_T_6e_g, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[647])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17208};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[648] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamDestroy, __pyx_mstate->__pyx_kp_b_iso88591_4_wc_1I_0_Qa_Ql_1_z_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[648])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17245};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[649] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamWaitEvent, __pyx_mstate->__pyx_kp_b_iso88591_H_vS_1H_a_AQ_A_Zq_wc_1I_0_Qa_Ql, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[649])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17313};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_callback, __pyx_mstate->__pyx_n_u_userData_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cycallback, __pyx_mstate->__pyx_n_u_pcallback, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyuserData, __pyx_mstate->__pyx_n_u_cyuserData_ptr, __pyx_mstate->__pyx_n_u_cbData, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[650] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamAddCallback, __pyx_mstate->__pyx_kp_b_iso88591_L_y_1_A_1Kq_Cq_Cq_AQ_1_1_wc_1I, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[650])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17414};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[651] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamSynchronize, __pyx_mstate->__pyx_kp_b_iso88591_0_wc_1I_0_Qa_Ql_1_z_Qa_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[651])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17449};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[652] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamQuery, __pyx_mstate->__pyx_kp_b_iso88591_4_wc_1I_0_Qa_Ql_1_z_q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[652])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17486};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[653] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamAttachMemAsync, __pyx_mstate->__pyx_kp_b_iso88591_wc_1I_0_Qa_Ql_1_z_1_gZxq_0_QR_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[653])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17594};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cymode, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[654] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamBeginCapture, __pyx_mstate->__pyx_kp_b_iso88591_34R_wc_1I_0_Qa_Ql_1_z_2_a_az_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[654])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 18, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17648};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_dependencies, __pyx_mstate->__pyx_n_u_dependencyData, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cydependencyData, __pyx_mstate->__pyx_n_u_cymode, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[655] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamBeginCaptureToGraph, __pyx_mstate->__pyx_kp_b_iso88591_A_L_L_r_r_s_d_V_Zq_iq_6_c_1_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[655])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17750};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_cymode, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[656] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaThreadExchangeStreamCaptureM, __pyx_mstate->__pyx_kp_b_iso88591_89_3_a_1AQ_t_q_Qf_9, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[656])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17821};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_pGraph, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[657] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamEndCapture, __pyx_mstate->__pyx_kp_b_iso88591_wc_1I_0_Qa_Ql_1_z_k_AZ7OvUV_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[657])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17866};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_pCaptureStatus, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[658] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamIsCapturing, __pyx_mstate->__pyx_kp_b_iso88591_Z_wc_1I_0_Qa_Ql_1_z_Qj_t_q_Qf_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[658])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17925};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_captureStatus_out, __pyx_mstate->__pyx_n_u_id_out, __pyx_mstate->__pyx_n_u_graph_out, __pyx_mstate->__pyx_n_u_cydependencies_out, __pyx_mstate->__pyx_n_u_pydependencies_out, __pyx_mstate->__pyx_n_u_cyedgeData_out, __pyx_mstate->__pyx_n_u_pyedgeData_out, __pyx_mstate->__pyx_n_u_numDependencies_out, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[659] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamGetCaptureInfo, __pyx_mstate->__pyx_kp_b_iso88591_P_wc_1I_0_Qa_Ql_1_z_Q_A_q_Q_Q_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[659])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18022};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_dependencies, __pyx_mstate->__pyx_n_u_dependencyData, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cydependencyData, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[660] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamUpdateCaptureDependenc_3, __pyx_mstate->__pyx_kp_b_iso88591_K_K_L_T_V_Zq_iq_6_c_1_iq_wc_1I, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[660])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18106};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[661] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventCreate, __pyx_mstate->__pyx_kp_b_iso88591_q_Q_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[661])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18131};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[662] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventCreateWithFlags, __pyx_mstate->__pyx_kp_b_iso88591_T_0_1I_kYZ_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[662])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18180};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[663] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventRecord, __pyx_mstate->__pyx_kp_b_iso88591_J_wc_1I_0_Qa_Ql_1_z_vS_1H_a_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[663])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18236};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[664] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventRecordWithFlags, __pyx_mstate->__pyx_kp_b_iso88591_wc_1I_0_Qa_Ql_1_z_vS_1H_a_AQ_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[664])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18301};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[665] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventQuery, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_aq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[665])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18343};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[666] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventSynchronize, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_AQ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[666])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18384};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[667] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventDestroy, __pyx_mstate->__pyx_kp_b_iso88591_6_vS_1H_a_AQ_A_Zq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[667])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18422};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_end, __pyx_mstate->__pyx_n_u_cyend, __pyx_mstate->__pyx_n_u_pend, __pyx_mstate->__pyx_n_u_cystart, __pyx_mstate->__pyx_n_u_pstart, __pyx_mstate->__pyx_n_u_ms, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[668] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventElapsedTime, __pyx_mstate->__pyx_kp_b_iso88591_t3a_q_1F_A_s_1_s_aq_Q_vS_1H_a_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[668])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18492};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memHandleDesc, __pyx_mstate->__pyx_n_u_extMem_out, __pyx_mstate->__pyx_n_u_cymemHandleDesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[669] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaImportExternalMemory, __pyx_mstate->__pyx_kp_b_iso88591_q_G_Taaoov_w_A_A_B_0_1RR_ggh_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[669])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18643};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_extMem, __pyx_mstate->__pyx_n_u_bufferDesc, __pyx_mstate->__pyx_n_u_cyextMem, __pyx_mstate->__pyx_n_u_pextMem, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_cybufferDesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[670] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExternalMemoryGetMappedBuffe, __pyx_mstate->__pyx_kp_b_iso88591_b_wc_1IQ_Qa_Q_1_z_1_DJm_ffmmwwx, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[670])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18708};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_extMem, __pyx_mstate->__pyx_n_u_mipmapDesc, __pyx_mstate->__pyx_n_u_cyextMem, __pyx_mstate->__pyx_n_u_pextMem, __pyx_mstate->__pyx_n_u_mipmap_2, __pyx_mstate->__pyx_n_u_cymipmapDesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[671] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExternalMemoryGetMappedMipma, __pyx_mstate->__pyx_kp_b_iso88591_CDj_wc_1IQ_Qa_Q_1_z_1_LJVccnnuu, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[671])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18777};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_extMem, __pyx_mstate->__pyx_n_u_cyextMem, __pyx_mstate->__pyx_n_u_pextMem, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[672] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDestroyExternalMemory, __pyx_mstate->__pyx_kp_b_iso88591_0_wc_1IQ_Qa_Q_1_z_1_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[672])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18812};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_semHandleDesc, __pyx_mstate->__pyx_n_u_extSem_out, __pyx_mstate->__pyx_n_u_cysemHandleDesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[673] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaImportExternalSemaphore, __pyx_mstate->__pyx_kp_b_iso88591_01R_EQ_J_Wddrry_z_D_D_E_314XXbb, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[673])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 18958};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_extSemArray_2, __pyx_mstate->__pyx_n_u_paramsArray_2, __pyx_mstate->__pyx_n_u_numExtSems_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyextSemArray, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cyparamsArray, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[674] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaSignalExternalSemaphoresAsyn_2, __pyx_mstate->__pyx_kp_b_iso88591_5M_M_N_wc_1I_0_Qa_Ql_1_z_Cz_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[674])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19111};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_extSemArray_2, __pyx_mstate->__pyx_n_u_paramsArray_2, __pyx_mstate->__pyx_n_u_numExtSems_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyextSemArray, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cyparamsArray, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[675] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaWaitExternalSemaphoresAsync_2, __pyx_mstate->__pyx_kp_b_iso88591_3K_K_L_f_wc_1I_0_Qa_Ql_1_z_Cz_i, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[675])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19237};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_extSem, __pyx_mstate->__pyx_n_u_cyextSem, __pyx_mstate->__pyx_n_u_pextSem, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[676] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDestroyExternalSemaphore, __pyx_mstate->__pyx_kp_b_iso88591_wc_1IQ_Qa_Q_Qa_2_A_4AQ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[676])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19271};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func_2, __pyx_mstate->__pyx_n_u_cacheConfig, __pyx_mstate->__pyx_n_u_cyfunc, __pyx_mstate->__pyx_n_u_cyfunc_ptr, __pyx_mstate->__pyx_n_u_cycacheConfig, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[677] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFuncSetCacheConfig, __pyx_mstate->__pyx_kp_b_iso88591_89p_G_V1_1_A_a_1_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[677])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19335};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func_2, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_cyfunc, __pyx_mstate->__pyx_n_u_cyfunc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[678] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFuncGetAttributes, __pyx_mstate->__pyx_kp_b_iso88591_5Q_G_V1_Q_MTQ_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[678])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19376};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func_2, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_cyfunc, __pyx_mstate->__pyx_n_u_cyfunc_ptr, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[679] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFuncSetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_0V_G_V1_d_A_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[679])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19472};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_fn_2, __pyx_mstate->__pyx_n_u_userData_2, __pyx_mstate->__pyx_n_u_cyfn, __pyx_mstate->__pyx_n_u_pfn, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyuserData, __pyx_mstate->__pyx_n_u_cyuserData_ptr, __pyx_mstate->__pyx_n_u_cbData, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[680] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLaunchHostFunc, __pyx_mstate->__pyx_kp_b_iso88591_s_Q_a_1E_c_c_aq_Q_wc_1I_0_Qa_Ql, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[680])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19566};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func_2, __pyx_mstate->__pyx_n_u_config, __pyx_mstate->__pyx_n_u_cyfunc, __pyx_mstate->__pyx_n_u_cyfunc_ptr, __pyx_mstate->__pyx_n_u_cyconfig, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[681] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFuncSetSharedMemConfig, __pyx_mstate->__pyx_kp_b_iso88591_78r_G_V1_2_2_q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[681])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19631};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func_2, __pyx_mstate->__pyx_n_u_blockSize, __pyx_mstate->__pyx_n_u_dynamicSMemSize, __pyx_mstate->__pyx_n_u_numBlocks, __pyx_mstate->__pyx_n_u_cyfunc, __pyx_mstate->__pyx_n_u_cyfunc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[682] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaOccupancyMaxActiveBlocksPerM, __pyx_mstate->__pyx_kp_b_iso88591_6_G_V1_EQa_R_iij_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[682])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19667};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func_2, __pyx_mstate->__pyx_n_u_numBlocks, __pyx_mstate->__pyx_n_u_blockSize, __pyx_mstate->__pyx_n_u_dynamicSmemSize, __pyx_mstate->__pyx_n_u_cyfunc, __pyx_mstate->__pyx_n_u_cyfunc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[683] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaOccupancyAvailableDynamicSMe, __pyx_mstate->__pyx_kp_b_iso88591_6_G_V1_A_CTT_kkl_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[683])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19703};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func_2, __pyx_mstate->__pyx_n_u_blockSize, __pyx_mstate->__pyx_n_u_dynamicSMemSize, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_numBlocks, __pyx_mstate->__pyx_n_u_cyfunc, __pyx_mstate->__pyx_n_u_cyfunc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[684] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaOccupancyMaxActiveBlocksPerM_2, __pyx_mstate->__pyx_kp_b_iso88591_X_G_V1_NaqP_ggr_s_D_D_E_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[684])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19756};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[685] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMallocManaged, __pyx_mstate->__pyx_kp_b_iso88591_x_1_86_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[685])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19887};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[686] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMalloc, __pyx_mstate->__pyx_kp_b_iso88591_1_81HA_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[686])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19923};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[687] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMallocHost, __pyx_mstate->__pyx_kp_b_iso88591_L_axq_Q_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[687])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 19968};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_pitch_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[688] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMallocPitch, __pyx_mstate->__pyx_kp_b_iso88591_Z_1_q_t_q_a_QfHA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[688])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20021};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_desc_2, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_array_2, __pyx_mstate->__pyx_n_u_cydesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[689] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMallocArray, __pyx_mstate->__pyx_kp_b_iso88591_B_7t_WT___q_P_cckkl_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[689])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20095};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[690] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFree, __pyx_mstate->__pyx_kp_b_iso88591_R_1_gZxq_y_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[690])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20142};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_cyptr, __pyx_mstate->__pyx_n_u_cyptr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[691] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFreeHost, __pyx_mstate->__pyx_kp_b_iso88591_q_7_E_AQ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[691])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20170};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_array_2, __pyx_mstate->__pyx_n_u_cyarray, __pyx_mstate->__pyx_n_u_parray, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[692] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFreeArray, __pyx_mstate->__pyx_kp_b_iso88591_vS_1HA_AQ_A_Zq_Qa_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[692])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20204};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mipmappedArray, __pyx_mstate->__pyx_n_u_cymipmappedArray, __pyx_mstate->__pyx_n_u_pmipmappedArray, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[693] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFreeMipmappedArray, __pyx_mstate->__pyx_kp_b_iso88591_c_1_Q_Qa_Q_2_1_7z_aq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[693])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20238};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_pHost, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[694] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaHostAlloc, __pyx_mstate->__pyx_kp_b_iso88591_V_QhawfA_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[694])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20320};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyptr, __pyx_mstate->__pyx_n_u_cyptr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[695] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaHostRegister, __pyx_mstate->__pyx_kp_b_iso88591_X_q_7_E_F_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[695])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20434};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_cyptr, __pyx_mstate->__pyx_n_u_cyptr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[696] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaHostUnregister, __pyx_mstate->__pyx_kp_b_iso88591_0_q_7_E_1_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[696])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20464};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pHost, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_pDevice, __pyx_mstate->__pyx_n_u_cypHost, __pyx_mstate->__pyx_n_u_cypHost_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[697] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaHostGetDevicePointer, __pyx_mstate->__pyx_kp_b_iso88591_d_A_WJgQ_0_PQ_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[697])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20523};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pHost, __pyx_mstate->__pyx_n_u_pFlags, __pyx_mstate->__pyx_n_u_cypHost, __pyx_mstate->__pyx_n_u_cypHost_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[698] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaHostGetFlags, __pyx_mstate->__pyx_kp_b_iso88591_q_WJgQ_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[698])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20555};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_extent_2, __pyx_mstate->__pyx_n_u_pitchedDevPtr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[699] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMalloc3D, __pyx_mstate->__pyx_kp_b_iso88591_L_a_A_X_gghhi_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[699])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20601};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_desc_2, __pyx_mstate->__pyx_n_u_extent_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_array_2, __pyx_mstate->__pyx_n_u_cydesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[700] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMalloc3DArray, __pyx_mstate->__pyx_kp_b_iso88591_PPQ_7t_WT___B_R_ddmmnnrrs_t_q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[700])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20721};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_desc_2, __pyx_mstate->__pyx_n_u_extent_2, __pyx_mstate->__pyx_n_u_numLevels_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_mipmappedArray, __pyx_mstate->__pyx_n_u_cydesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[701] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMallocMipmappedArray, __pyx_mstate->__pyx_kp_b_iso88591_WWXd_0_C1_7t_WT___0_1RR_kkww_G, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[701])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20844};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mipmappedArray, __pyx_mstate->__pyx_n_u_level, __pyx_mstate->__pyx_n_u_cymipmappedArray, __pyx_mstate->__pyx_n_u_pmipmappedArray, __pyx_mstate->__pyx_n_u_levelArray, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[702] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetMipmappedArrayLevel, __pyx_mstate->__pyx_kp_b_iso88591_c_1_Q_Qa_Q_8_Zq_Q_2_3K_U_rrs_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[702])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20890};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_p, __pyx_mstate->__pyx_n_u_cyp_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[703] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy3D, __pyx_mstate->__pyx_kp_b_iso88591_V_1_b_zQR_AQ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[703])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 20971};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_p, __pyx_mstate->__pyx_n_u_cyp_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[704] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy3DPeer, __pyx_mstate->__pyx_kp_b_iso88591_8_5A_G_UV_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[704])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21005};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_p, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyp_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[705] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy3DAsync, __pyx_mstate->__pyx_kp_b_iso88591_r_wc_1I_0_Qa_Ql_1_z_0_b_zQR_1_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[705])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21107};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_p, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyp_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[706] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy3DPeerAsync, __pyx_mstate->__pyx_kp_b_iso88591_0_wc_1I_0_Qa_Ql_1_z_4A_G_UV_Qiq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[706])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21144};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_free_2, __pyx_mstate->__pyx_n_u_total, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[707] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemGetInfo, __pyx_mstate->__pyx_kp_b_iso88591_D_q_aq_aq_t_q_a_QfF, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[707])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21186};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_array_2, __pyx_mstate->__pyx_n_u_cyarray, __pyx_mstate->__pyx_n_u_parray, __pyx_mstate->__pyx_n_u_desc_2, __pyx_mstate->__pyx_n_u_extent_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[708] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaArrayGetInfo, __pyx_mstate->__pyx_kp_b_iso88591_vS_1HA_AQ_A_Zq_1_Zq_a_K4_Zqqw_x, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[708])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21232};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hArray, __pyx_mstate->__pyx_n_u_planeIdx, __pyx_mstate->__pyx_n_u_cyhArray, __pyx_mstate->__pyx_n_u_phArray, __pyx_mstate->__pyx_n_u_pPlaneArray, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[709] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaArrayGetPlane, __pyx_mstate->__pyx_kp_b_iso88591_N_wc_1IQ_Qa_Qk_j_a_B_Xbbc_t_q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[709])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21285};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_array_2, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_cyarray, __pyx_mstate->__pyx_n_u_parray, __pyx_mstate->__pyx_n_u_memoryRequirements, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[710] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaArrayGetMemoryRequirements, __pyx_mstate->__pyx_kp_b_iso88591_B_vS_1HA_AQ_A_Zq_UUV_6a7__qq_F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[710])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21332};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mipmap_2, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_cymipmap, __pyx_mstate->__pyx_n_u_pmipmap, __pyx_mstate->__pyx_n_u_memoryRequirements, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[711] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMipmappedArrayGetMemoryRequi, __pyx_mstate->__pyx_kp_b_iso88591_B_wc_1IQ_Qa_Q_1_z_UUV_q_hhz_F_F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[711])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21379};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_array_2, __pyx_mstate->__pyx_n_u_cyarray, __pyx_mstate->__pyx_n_u_parray, __pyx_mstate->__pyx_n_u_sparseProperties, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[712] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaArrayGetSparseProperties, __pyx_mstate->__pyx_kp_b_iso88591_N_vS_1HA_AQ_A_Zq_66Oq_4A5_kkvvw, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[712])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21432};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mipmap_2, __pyx_mstate->__pyx_n_u_cymipmap, __pyx_mstate->__pyx_n_u_pmipmap, __pyx_mstate->__pyx_n_u_sparseProperties, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[713] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMipmappedArrayGetSparsePrope, __pyx_mstate->__pyx_kp_b_iso88591_N_wc_1IQ_Qa_Q_1_z_66Oq_Q_ddtt_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[713])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21485};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[714] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy, __pyx_mstate->__pyx_kp_b_iso88591_78J_q_7_E_q_7_E_4q_k_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[714])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21532};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_dstDevice_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_srcDevice_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[715] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyPeer, __pyx_mstate->__pyx_kp_b_iso88591_J_q_7_E_q_7_E_a_ST_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[715])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21577};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_dpitch, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_spitch, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[716] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy2D, __pyx_mstate->__pyx_kp_b_iso88591_fg_q_7_E_q_7_E_4q_A_87RZZ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[716])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21634};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_wOffset, __pyx_mstate->__pyx_n_u_hOffset, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_spitch, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_pdst, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[717] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy2DToArray, __pyx_mstate->__pyx_kp_b_iso88591_b_t3a_q_1F_s_1_s_aq_Q_q_7_E_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[717])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21698};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_dpitch, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_wOffset, __pyx_mstate->__pyx_n_u_hOffset, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_psrc, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[718] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy2DFromArray, __pyx_mstate->__pyx_kp_b_iso88591_A_B_b_t3a_q_1F_s_1_s_AQ_1_q_7_E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[718])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {9, 0, 0, 15, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21762};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_wOffsetDst, __pyx_mstate->__pyx_n_u_hOffsetDst, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_wOffsetSrc, __pyx_mstate->__pyx_n_u_hOffsetSrc, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_psrc, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_pdst, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[719] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy2DArrayToArray, __pyx_mstate->__pyx_kp_b_iso88591_a_b_b_t3a_q_1F_s_1_s_AQ_1_t3a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[719])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21832};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[720] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyAsync, __pyx_mstate->__pyx_kp_b_iso88591_d_wc_1I_0_Qa_Ql_1_z_q_7_E_q_7_E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[720])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21899};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_dstDevice_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_srcDevice_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[721] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyPeerAsync, __pyx_mstate->__pyx_kp_b_iso88591_L_wc_1I_0_Qa_Ql_1_z_q_7_E_q_7_E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[721])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 26, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 21952};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dsts, __pyx_mstate->__pyx_n_u_srcs, __pyx_mstate->__pyx_n_u_sizes, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_attrs, __pyx_mstate->__pyx_n_u_attrsIdxs, __pyx_mstate->__pyx_n_u_numAttrs, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_pylist, __pyx_mstate->__pyx_n_u_voidStarHelperdsts, __pyx_mstate->__pyx_n_u_cydsts_ptr, __pyx_mstate->__pyx_n_u_voidStarHelpersrcs, __pyx_mstate->__pyx_n_u_cysrcs_ptr, __pyx_mstate->__pyx_n_u_cysizes, __pyx_mstate->__pyx_n_u_cyattrs, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cyattrsIdxs, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pydsts, __pyx_mstate->__pyx_n_u_pysrcs};
    __pyx_mstate_global->__pyx_codeobj_tab[722] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyBatchAsync, __pyx_mstate->__pyx_kp_b_iso88591_IIs_t_b_b_r_r_s_L_wc_1I_0_Qa_Ql, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[722])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22099};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_numOps, __pyx_mstate->__pyx_n_u_opList, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyopList, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[723] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy3DBatchAsync, __pyx_mstate->__pyx_kp_b_iso88591_34H_wc_1I_0_Qa_Ql_1_z_V7_Zq_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[723])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22226};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_dpitch, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_spitch, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[724] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy2DAsync, __pyx_mstate->__pyx_kp_b_iso88591_klz_wc_1I_0_Qa_Ql_1_z_q_7_E_q_7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[724])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {9, 0, 0, 17, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22304};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_wOffset, __pyx_mstate->__pyx_n_u_hOffset, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_spitch, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_pdst, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[725] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy2DToArrayAsync, __pyx_mstate->__pyx_kp_b_iso88591_D_E_wc_1I_0_Qa_Ql_1_z_t3a_q_1F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[725])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {9, 0, 0, 17, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22389};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_dpitch, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_wOffset, __pyx_mstate->__pyx_n_u_hOffset, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_psrc, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[726] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpy2DFromArrayAsync, __pyx_mstate->__pyx_kp_b_iso88591_F_G_z_wc_1I_0_Qa_Ql_1_z_t3a_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[726])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22473};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[727] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemset, __pyx_mstate->__pyx_kp_b_iso88591_8_1_gZxq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[727])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22507};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_pitch_2, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[728] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemset2D, __pyx_mstate->__pyx_kp_b_iso88591_F_1_gZxq_A_7_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[728])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22548};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pitchedDevPtr, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_extent_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[729] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemset3D, __pyx_mstate->__pyx_kp_b_iso88591_WWX_A_1D_vYVWWX_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[729])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22599};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[730] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemsetAsync, __pyx_mstate->__pyx_kp_b_iso88591_J_wc_1I_0_Qa_Ql_1_z_1_gZxq_q_gW, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[730])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22649};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_pitch_2, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[731] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemset2DAsync, __pyx_mstate->__pyx_kp_b_iso88591_X_wc_1I_0_Qa_Ql_1_z_1_gZxq_wgXU, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[731])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22706};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pitchedDevPtr, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_extent_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[732] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemset3DAsync, __pyx_mstate->__pyx_kp_b_iso88591_n_wc_1I_0_Qa_Ql_1_z_y_WFR_a_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[732])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22773};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_location_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[733] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPrefetchAsync, __pyx_mstate->__pyx_kp_b_iso88591_CDJ_wc_1I_0_Qa_Ql_1_z_1_gZxq_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[733])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 23, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22888};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dptrs, __pyx_mstate->__pyx_n_u_sizes, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_prefetchLocs, __pyx_mstate->__pyx_n_u_prefetchLocIdxs, __pyx_mstate->__pyx_n_u_numPrefetchLocs, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_pylist, __pyx_mstate->__pyx_n_u_voidStarHelperdptrs, __pyx_mstate->__pyx_n_u_cydptrs_ptr, __pyx_mstate->__pyx_n_u_cysizes, __pyx_mstate->__pyx_n_u_cyprefetchLocs, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cyprefetchLocIdxs, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pydptrs};
    __pyx_mstate_global->__pyx_codeobj_tab[734] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPrefetchBatchAsync, __pyx_mstate->__pyx_kp_b_iso88591_P_Q_F_F_R_R_S_D_wc_1I_0_Qa_Ql_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[734])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 15, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 22994};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dptrs, __pyx_mstate->__pyx_n_u_sizes, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_pylist, __pyx_mstate->__pyx_n_u_voidStarHelperdptrs, __pyx_mstate->__pyx_n_u_cydptrs_ptr, __pyx_mstate->__pyx_n_u_cysizes, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pydptrs};
    __pyx_mstate_global->__pyx_codeobj_tab[735] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemDiscardBatchAsync, __pyx_mstate->__pyx_kp_b_iso88591_Oqd_wc_1I_0_Qa_Ql_1_z_iq_F_Q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[735])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 23, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23065};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dptrs, __pyx_mstate->__pyx_n_u_sizes, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_prefetchLocs, __pyx_mstate->__pyx_n_u_prefetchLocIdxs, __pyx_mstate->__pyx_n_u_numPrefetchLocs, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_pylist, __pyx_mstate->__pyx_n_u_voidStarHelperdptrs, __pyx_mstate->__pyx_n_u_cydptrs_ptr, __pyx_mstate->__pyx_n_u_cysizes, __pyx_mstate->__pyx_n_u_cyprefetchLocs, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cyprefetchLocIdxs, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pydptrs};
    __pyx_mstate_global->__pyx_codeobj_tab[736] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemDiscardAndPrefetchBatchAs_2, __pyx_mstate->__pyx_kp_b_iso88591_0Z_P_P_T_wc_1I_0_Qa_Ql_1_z_iq_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[736])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23179};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_advice, __pyx_mstate->__pyx_n_u_location_2, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_cyadvice, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[737] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemAdvise, __pyx_mstate->__pyx_kp_b_iso88591_at_1_gZxq_vQ_QnG_XYVWWX_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[737])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23373};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dataSize, __pyx_mstate->__pyx_n_u_attribute, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_cydata, __pyx_mstate->__pyx_n_u_cydata_ptr, __pyx_mstate->__pyx_n_u_cyattribute, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[738] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemRangeGetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_CDN_0_K1KWX_G_V1_7y_1_gZxq_0_Z, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[738])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 20, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23520};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dataSizes, __pyx_mstate->__pyx_n_u_attributes, __pyx_mstate->__pyx_n_u_numAttributes, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_pylist, __pyx_mstate->__pyx_n_u_voidStarHelperdata, __pyx_mstate->__pyx_n_u_cyvoidStarHelper_ptr, __pyx_mstate->__pyx_n_u_cydataSizes, __pyx_mstate->__pyx_n_u_cyattributes, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pyattributes, __pyx_mstate->__pyx_n_u_pydataSizes, __pyx_mstate->__pyx_n_u_pyattributes, __pyx_mstate->__pyx_n_u_obj};
    __pyx_mstate_global->__pyx_codeobj_tab[739] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemRangeGetAttributes, __pyx_mstate->__pyx_kp_b_iso88591_Oqr_Zq_iq_iq_Q_e_Yiillmmyyz_55K, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[739])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23598};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_wOffset, __pyx_mstate->__pyx_n_u_hOffset, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_pdst, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[740] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyToArray, __pyx_mstate->__pyx_kp_b_iso88591_R_t3a_q_1F_s_1_s_aq_Q_q_7_E_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[740])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23654};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_wOffset, __pyx_mstate->__pyx_n_u_hOffset, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_psrc, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[741] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyFromArray, __pyx_mstate->__pyx_kp_b_iso88591_aR_t3a_q_1F_s_1_s_AQ_1_q_7_E_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[741])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23710};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_wOffsetDst, __pyx_mstate->__pyx_n_u_hOffsetDst, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_wOffsetSrc, __pyx_mstate->__pyx_n_u_hOffsetSrc, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_psrc, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_pdst, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[742] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyArrayToArray, __pyx_mstate->__pyx_kp_b_iso88591_P_Q_t3a_q_1F_s_1_s_AQ_1_t3a_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[742])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 15, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23777};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_wOffset, __pyx_mstate->__pyx_n_u_hOffset, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_pdst, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[743] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyToArrayAsync, __pyx_mstate->__pyx_kp_b_iso88591_cdd_wc_1I_0_Qa_Ql_1_z_t3a_q_1F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[743])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 15, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23850};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_wOffset, __pyx_mstate->__pyx_n_u_hOffset, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_psrc, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[744] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemcpyFromArrayAsync, __pyx_mstate->__pyx_kp_b_iso88591_efd_wc_1I_0_Qa_Ql_1_z_t3a_q_1F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[744])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23923};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[745] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMallocAsync, __pyx_mstate->__pyx_kp_b_iso88591_L_xs_1_1J_1_3aq_3a_1A_1_q_q_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[745])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 23975};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_cydevPtr, __pyx_mstate->__pyx_n_u_cydevPtr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[746] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaFreeAsync, __pyx_mstate->__pyx_kp_b_iso88591_xs_1_1J_1_3aq_3a_1A_1_gZxq_QnA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[746])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24018};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_minBytesToKeep, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[747] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolTrimTo, __pyx_mstate->__pyx_kp_b_iso88591_H_xs_1_1J_2_3aq_3a_AQ_1_Q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[747])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24065};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_cyvalue, __pyx_mstate->__pyx_n_u_cyvalue_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[748] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolSetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_56t_xs_1_1J_2_3aq_3a_AQ_1_D_H_w, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[748])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24138};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_cyvalue, __pyx_mstate->__pyx_n_u_cyvalue_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[749] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolGetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_56_xs_1_1J_2_3aq_3a_AQ_1_D_H_sR, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[749])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24219};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_descList, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_cydescList, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[750] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolSetAccess, __pyx_mstate->__pyx_kp_b_iso88591_vYc_1_iq_xs_1_1J_2_3aq_3a_AQ_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[750])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24269};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_location_2, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cylocation_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[751] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolGetAccess, __pyx_mstate->__pyx_kp_b_iso88591_2_xs_1_1J_2_3aq_3a_AQ_1_5X_SZZd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[751])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24310};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_poolProps_2, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_cypoolProps_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[752] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolCreate, __pyx_mstate->__pyx_kp_b_iso88591_p_a_7y_ZW_hhi_DG_VW_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[752])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24407};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[753] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolDestroy, __pyx_mstate->__pyx_kp_b_iso88591_xs_1_1J_2_3aq_3a_AQ_1_1_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[753])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24450};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location_2, __pyx_mstate->__pyx_n_u_typename, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_cylocation_ptr, __pyx_mstate->__pyx_n_u_cytypename, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[754] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemGetDefaultMemPool, __pyx_mstate->__pyx_kp_b_iso88591_WWX_a_5X_SZZdde_6ha_0_1K7R_mmn, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[754])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24492};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location_2, __pyx_mstate->__pyx_n_u_typename, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_cylocation_ptr, __pyx_mstate->__pyx_n_u_cytypename, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[755] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemGetMemPool, __pyx_mstate->__pyx_kp_b_iso88591_PPQR_a_5X_SZZdde_6ha_DG_Vffg_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[755])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24543};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location_2, __pyx_mstate->__pyx_n_u_typename, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_cylocation_ptr, __pyx_mstate->__pyx_n_u_cytypename, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[756] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemSetMemPool, __pyx_mstate->__pyx_kp_b_iso88591_PPQd_xs_1_1J_2_3aq_3a_AQ_1_5X_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[756])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24607};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[757] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMallocFromPoolAsync, __pyx_mstate->__pyx_kp_b_iso88591_D_wc_1I_0_Qa_Ql_1_z_xs_1_1J_2_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[757])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24663};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_handleType, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_cyshareableHandle, __pyx_mstate->__pyx_n_u_cyshareableHandle_ptr, __pyx_mstate->__pyx_n_u_cyhandleType, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[758] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolExportToShareableHand, __pyx_mstate->__pyx_kp_b_iso88591_FGJ_xs_1_1J_2_3aq_3a_AQ_1____wj, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[758])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24717};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shareableHandle, __pyx_mstate->__pyx_n_u_handleType, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_cyshareableHandle, __pyx_mstate->__pyx_n_u_cyshareableHandle_ptr, __pyx_mstate->__pyx_n_u_cyhandleType, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[759] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolImportFromShareableHa, __pyx_mstate->__pyx_kp_b_iso88591_PQ_a_1A_wj8I_j_A_WW_i_j_A_A_O_O, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[759])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24758};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_exportData, __pyx_mstate->__pyx_n_u_cyptr, __pyx_mstate->__pyx_n_u_cyptr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[760] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolExportPointer, __pyx_mstate->__pyx_kp_b_iso88591_2_0_Gq_q_7_E_0_1VV_kkl_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[760])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24792};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_memPool, __pyx_mstate->__pyx_n_u_exportData, __pyx_mstate->__pyx_n_u_cymemPool, __pyx_mstate->__pyx_n_u_pmemPool, __pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_cyexportData_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[761] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaMemPoolImportPointer, __pyx_mstate->__pyx_kp_b_iso88591_34D_xs_1_1J_2_3aq_3a_AQ_1_Wbbii, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[761])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24842};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_attributes, __pyx_mstate->__pyx_n_u_cyptr, __pyx_mstate->__pyx_n_u_cyptr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[762] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaPointerGetAttributes, __pyx_mstate->__pyx_kp_b_iso88591_x_A_q_7_E_0_1SS_hhi_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[762])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24911};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_peerDevice, __pyx_mstate->__pyx_n_u_canAccessPeer, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[763] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceCanAccessPeer, __pyx_mstate->__pyx_kp_b_iso88591_Q_q_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[763])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24947};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_peerDevice, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[764] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceEnablePeerAccess, __pyx_mstate->__pyx_kp_b_iso88591_X_2_q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[764])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 24995};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_peerDevice, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[765] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceDisablePeerAccess, __pyx_mstate->__pyx_kp_b_iso88591_31A_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[765])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25021};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_cyresource, __pyx_mstate->__pyx_n_u_presource, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[766] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsUnregisterResource, __pyx_mstate->__pyx_kp_b_iso88591_2_y_1_A_1Kq_Cq_Cq_aq_3_Q_6aq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[766])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25057};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyresource, __pyx_mstate->__pyx_n_u_presource, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[767] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsResourceSetMapFlags, __pyx_mstate->__pyx_kp_b_iso88591_T_y_1_A_1Kq_Cq_Cq_aq_3_Q_7q_A_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[767])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25110};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_resources, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyresources, __pyx_mstate->__pyx_n_u_presources, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[768] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsMapResources, __pyx_mstate->__pyx_kp_b_iso88591_N_wc_1I_0_Qa_Ql_1_z_z_A_9_1_1L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[768])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25170};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_resources, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cyresources, __pyx_mstate->__pyx_n_u_presources, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[769] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsUnmapResources, __pyx_mstate->__pyx_kp_b_iso88591_J_wc_1I_0_Qa_Ql_1_z_z_A_9_1_1L, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[769])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25228};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_cyresource, __pyx_mstate->__pyx_n_u_presource, __pyx_mstate->__pyx_n_u_devPtr_2, __pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[770] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsResourceGetMappedPoi, __pyx_mstate->__pyx_kp_b_iso88591_8_y_1_A_1Kq_Cq_Cq_aq_3_Q_1_q_AX, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[770])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25271};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_arrayIndex, __pyx_mstate->__pyx_n_u_mipLevel, __pyx_mstate->__pyx_n_u_cyresource, __pyx_mstate->__pyx_n_u_presource, __pyx_mstate->__pyx_n_u_array_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[771] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsSubResourceGetMapped, __pyx_mstate->__pyx_kp_b_iso88591_P_y_1_A_1Kq_Cq_Cq_aq_3_Q_Q_VV_f, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[771])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25325};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_cyresource, __pyx_mstate->__pyx_n_u_presource, __pyx_mstate->__pyx_n_u_mipmappedArray, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[772] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsResourceGetMappedMip, __pyx_mstate->__pyx_kp_b_iso88591_y_1_A_1Kq_Cq_Cq_aq_3_Q_C1_C1Dee, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[772])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25368};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_array_2, __pyx_mstate->__pyx_n_u_cyarray, __pyx_mstate->__pyx_n_u_parray, __pyx_mstate->__pyx_n_u_desc_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[773] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetChannelDesc, __pyx_mstate->__pyx_kp_b_iso88591_vS_1HA_AQ_A_aq_Q_1_MTQ_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[773])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25405};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2, __pyx_mstate->__pyx_n_u_y_2, __pyx_mstate->__pyx_n_u_z_2, __pyx_mstate->__pyx_n_u_w_2, __pyx_mstate->__pyx_n_u_f_2, __pyx_mstate->__pyx_n_u_cyf, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_wrapper};
    __pyx_mstate_global->__pyx_codeobj_tab[774] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaCreateChannelDesc, __pyx_mstate->__pyx_kp_b_iso88591_CDL_0q_Qc_Cs_a_9AU_K_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[774])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25451};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pResDesc, __pyx_mstate->__pyx_n_u_pTexDesc, __pyx_mstate->__pyx_n_u_pResViewDesc, __pyx_mstate->__pyx_n_u_pTexObject, __pyx_mstate->__pyx_n_u_cypResDesc_ptr, __pyx_mstate->__pyx_n_u_cypTexDesc_ptr, __pyx_mstate->__pyx_n_u_cypResViewDesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[775] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaCreateTextureObject, __pyx_mstate->__pyx_kp_b_iso88591_NNxxyN_Q_6hm9T_eef_5X_SZZdde_l, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[775])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25693};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_texObject, __pyx_mstate->__pyx_n_u_cytexObject, __pyx_mstate->__pyx_n_u_ptexObject, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[776] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDestroyTextureObject, __pyx_mstate->__pyx_kp_b_iso88591_z_A_Q_1L_S_S_AQ_1_1_0_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[776])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25725};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_texObject, __pyx_mstate->__pyx_n_u_cytexObject, __pyx_mstate->__pyx_n_u_ptexObject, __pyx_mstate->__pyx_n_u_pResDesc, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[777] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetTextureObjectResourceDesc, __pyx_mstate->__pyx_kp_b_iso88591_0_z_A_Q_1L_S_S_AQ_1_1_5Q_8_9VV, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[777])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25763};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_texObject, __pyx_mstate->__pyx_n_u_cytexObject, __pyx_mstate->__pyx_n_u_ptexObject, __pyx_mstate->__pyx_n_u_pTexDesc, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[778] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetTextureObjectTextureDesc, __pyx_mstate->__pyx_kp_b_iso88591_0_z_A_Q_1L_S_S_AQ_1_1_O1_7q8TT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[778])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25801};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_texObject, __pyx_mstate->__pyx_n_u_cytexObject, __pyx_mstate->__pyx_n_u_ptexObject, __pyx_mstate->__pyx_n_u_pResViewDesc, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[779] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetTextureObjectResourceView, __pyx_mstate->__pyx_kp_b_iso88591_2_z_A_Q_1L_S_S_AQ_1_1_A_A_jjuuv, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[779])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25840};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pResDesc, __pyx_mstate->__pyx_n_u_pSurfObject, __pyx_mstate->__pyx_n_u_cypResDesc_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[780] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaCreateSurfaceObject, __pyx_mstate->__pyx_kp_b_iso88591_a_6hm9T_eef_q0PP_ffg_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[780])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25879};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_surfObject, __pyx_mstate->__pyx_n_u_cysurfObject, __pyx_mstate->__pyx_n_u_psurfObject, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[781] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDestroySurfaceObject, __pyx_mstate->__pyx_kp_b_iso88591_Q_a_1M_c_c_Qa_2_A_0_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[781])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25911};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_surfObject, __pyx_mstate->__pyx_n_u_cysurfObject, __pyx_mstate->__pyx_n_u_psurfObject, __pyx_mstate->__pyx_n_u_pResDesc, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[782] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetSurfaceObjectResourceDesc, __pyx_mstate->__pyx_kp_b_iso88591_Q_a_1M_c_c_Qa_2_A_5Q_8_9VV_iij, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[782])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25946};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_driverVersion, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[783] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDriverGetVersion, __pyx_mstate->__pyx_kp_b_iso88591_Q_AQa_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[783])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 25976};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_runtimeVersion, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[784] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaRuntimeGetVersion, __pyx_mstate->__pyx_kp_b_iso88591_4_a_Qaq_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[784])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26009};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_callbackFunc, __pyx_mstate->__pyx_n_u_userData_2, __pyx_mstate->__pyx_n_u_cycallbackFunc, __pyx_mstate->__pyx_n_u_pcallbackFunc, __pyx_mstate->__pyx_n_u_cyuserData, __pyx_mstate->__pyx_n_u_cyuserData_ptr, __pyx_mstate->__pyx_n_u_callback_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[785] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLogsRegisterCallback, __pyx_mstate->__pyx_kp_b_iso88591_Cq_1O1_1A_1_aq_3_Q_AQ_z_1_EQ_0, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[785])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26046};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_callback, __pyx_mstate->__pyx_n_u_cycallback, __pyx_mstate->__pyx_n_u_pcallback, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[786] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLogsUnregisterCallback, __pyx_mstate->__pyx_kp_b_iso88591_y_1_A_1Kq_Cq_Cq_aq_3_Q_2_1_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[786])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26072};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_iterator_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[787] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLogsCurrent, __pyx_mstate->__pyx_kp_b_iso88591_q_q_DLP_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[787])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26095};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_iterator, __pyx_mstate->__pyx_n_u_pathToFile, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyiterator, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[788] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLogsDumpToFile, __pyx_mstate->__pyx_kp_b_iso88591_2_y_q_XQ_1_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[788])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26136};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_iterator, __pyx_mstate->__pyx_n_u_buffer, __pyx_mstate->__pyx_n_u_size_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyiterator, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[789] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLogsDumpToMemory, __pyx_mstate->__pyx_kp_b_iso88591_Z_2_y_q_XQ_A_t_q_a_QfJa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[789])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26191};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_pGraph, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[790] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphCreate, __pyx_mstate->__pyx_kp_b_iso88591_k_q_kQR_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[790])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26220};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[791] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddKernelNode, __pyx_mstate->__pyx_kp_b_iso88591_3S_S_T_l_F_Q_iq_vS_1H_a_AQ_A_Zq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[791])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26339};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[792] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphKernelNodeGetParams, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_4AX_iij_t_q_Qf, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[792])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26385};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[793] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphKernelNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_56_uCq_1G_1_1A_1O1A_Uaahhrrs_4A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[793])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26420};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hDst, __pyx_mstate->__pyx_n_u_hSrc, __pyx_mstate->__pyx_n_u_cyhSrc, __pyx_mstate->__pyx_n_u_phSrc, __pyx_mstate->__pyx_n_u_cyhDst, __pyx_mstate->__pyx_n_u_phDst, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[794] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphKernelNodeCopyAttribute, __pyx_mstate->__pyx_kp_b_iso88591_2_uCq_1G_1_1A_1O1A_uCq_1G_1_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[794])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26464};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_value_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[795] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphKernelNodeGetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_2_vS_1H_2_AQ_A_AQ_1_1_Q_DA_7q_I, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[795])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26505};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_cyvalue_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[796] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphKernelNodeSetAttribute, __pyx_mstate->__pyx_kp_b_iso88591_YYZ2_vS_1H_2_AQ_A_AQ_1_1_Q_FRYY, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[796])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26544};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_pCopyParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cypCopyParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[797] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddMemcpyNode, __pyx_mstate->__pyx_kp_b_iso88591_3S_S_T_P_F_Q_iq_vS_1H_a_AQ_A_Zq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[797])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 20, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26617};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[798] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddMemcpyNode1D, __pyx_mstate->__pyx_kp_b_iso88591_5o_o_p_p_F_Q_iq_vS_1H_a_AQ_A_Zq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[798])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26709};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[799] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphMemcpyNodeGetParams, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_4AX_ffg_t_q_Qf, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[799])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26746};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[800] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphMemcpyNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_56_uCq_1G_1_1A_1O1A_R_eeoop_4AX, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[800])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26781};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[801] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphMemcpyNodeSetParams1D, __pyx_mstate->__pyx_kp_b_iso88591_QRT_uCq_1G_1_1A_1O1A_q_7_E_q_7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[801])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26840};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_pMemsetParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cypMemsetParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[802] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddMemsetNode, __pyx_mstate->__pyx_kp_b_iso88591_3U_U_V_D_F_Q_iq_vS_1H_a_AQ_A_Zq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[802])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26907};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[803] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphMemsetNodeGetParams, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_8_4AX_ZZeef_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[803])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26944};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[804] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphMemsetNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_56_uCq_1G_1_1A_1O1A_9_MQ_ddnno, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[804])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 26979};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[805] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddHostNode, __pyx_mstate->__pyx_kp_b_iso88591_1Q_Q_R_F_F_Q_iq_vS_1H_a_AQ_A_Zq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[805])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27047};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[806] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphHostNodeGetParams, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_A_2_8_ZZeef_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[806])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27084};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[807] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphHostNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_34_uCq_1G_1_1A_1O1A_mS__ffppq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[807])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27119};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_childGraph, __pyx_mstate->__pyx_n_u_cychildGraph, __pyx_mstate->__pyx_n_u_pchildGraph, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[808] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddChildGraphNode, __pyx_mstate->__pyx_kp_b_iso88591_67N_Q_a_1M_31_c_c_Qa_A_F_Q_iq_v, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[808])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27197};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_pGraph, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[809] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphChildGraphNodeGetGraph, __pyx_mstate->__pyx_kp_b_iso88591_8_uCq_1G_1_1A_1O1A_k_7q_XX___t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[809])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27239};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[810] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddEmptyNode, __pyx_mstate->__pyx_kp_b_iso88591_12H_F_Q_iq_vS_1H_a_AQ_A_Zq_oQ_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[810])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27307};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[811] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddEventRecordNode, __pyx_mstate->__pyx_kp_b_iso88591_78L_vS_1H_a_AQ_A_Zq_F_Q_iq_vS_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[811])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27384};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_event_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[812] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphEventRecordNodeGetEvent, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_A_8_AYYbbc_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[812])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27421};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[813] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphEventRecordNodeSetEvent, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_uCq_1G_1_1A_1O1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[813])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27463};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[814] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddEventWaitNode, __pyx_mstate->__pyx_kp_b_iso88591_56R_vS_1H_a_AQ_A_Zq_F_Q_iq_vS_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[814])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27543};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_event_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[815] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphEventWaitNodeGetEvent, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_A_6ax_WW_a_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[815])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27580};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[816] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphEventWaitNodeSetEvent, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_uCq_1G_1_1A_1O1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[816])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27622};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[817] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddExternalSemaphoresSi_2, __pyx_mstate->__pyx_kp_b_iso88591_E_d_d_e_H_F_Q_iq_vS_1H_a_AQ_A_Z, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[817])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27691};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_params_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[818] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExternalSemaphoresSigna, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_2_AQ_A_AQ_1_aab_Fay_Q_C_C, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[818])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27734};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[819] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExternalSemaphoresSigna_2, __pyx_mstate->__pyx_kp_b_iso88591_GH_vS_1H_2_AQ_A_AQ_1_MZWddoov_w, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[819])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27770};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[820] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddExternalSemaphoresWa_2, __pyx_mstate->__pyx_kp_b_iso88591_C_b_b_c_H_F_Q_iq_vS_1H_a_AQ_A_Z, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[820])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27839};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_params_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[821] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExternalSemaphoresWaitN, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_2_AQ_A_AQ_1_DAYN_I_I_J_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[821])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27882};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[822] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExternalSemaphoresWaitN_2, __pyx_mstate->__pyx_kp_b_iso88591_EF_vS_1H_2_AQ_A_AQ_1_K_Ubbmmtt, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[822])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 27918};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[823] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddMemAllocNode, __pyx_mstate->__pyx_kp_b_iso88591_5T_T_U_V_F_Q_iq_vS_1H_a_AQ_A_Zq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[823])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28026};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_params_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[824] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphMemAllocNodeGetParams, __pyx_mstate->__pyx_kp_b_iso88591_4_uCq_1G_1_1A_1O1A_C1_6ax_bbllm, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[824])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28066};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_dptr_2, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cydptr, __pyx_mstate->__pyx_n_u_cydptr_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[825] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddMemFreeNode, __pyx_mstate->__pyx_kp_b_iso88591_34j_F_Q_iq_vS_1H_a_AQ_A_Zq_oQ_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[825])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28153};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_dptr_out, __pyx_mstate->__pyx_n_u_cydptr_out_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[826] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphMemFreeNodeGetParams, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_Q_q_5Qha_t_q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[826])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28191};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[827] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGraphMemTrim, __pyx_mstate->__pyx_kp_b_iso88591_aq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[827])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28217};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_cyvalue, __pyx_mstate->__pyx_n_u_cyvalue_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[828] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetGraphMemAttribute, __pyx_mstate->__pyx_kp_b_iso88591_L_7d_J_6QTT___WJgQ_6axxq_t_q_Qf, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[828])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28265};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_cyvalue, __pyx_mstate->__pyx_n_u_cyvalue_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[829] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceSetGraphMemAttribute, __pyx_mstate->__pyx_kp_b_iso88591_7d_J_6QXXbbc_WJgQ_6axxq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[829])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28304};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_originalGraph, __pyx_mstate->__pyx_n_u_cyoriginalGraph, __pyx_mstate->__pyx_n_u_poriginalGraph, __pyx_mstate->__pyx_n_u_pGraphClone, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[830] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphClone, __pyx_mstate->__pyx_kp_b_iso88591_B_S_1_6a_AQ_A_Zq_a_a_UV_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[830])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28351};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_originalNode, __pyx_mstate->__pyx_n_u_clonedGraph, __pyx_mstate->__pyx_n_u_cyclonedGraph, __pyx_mstate->__pyx_n_u_pclonedGraph, __pyx_mstate->__pyx_n_u_cyoriginalNode, __pyx_mstate->__pyx_n_u_poriginalNode, __pyx_mstate->__pyx_n_u_pNode, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[831] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeFindInClone, __pyx_mstate->__pyx_kp_b_iso88591_3a_q_1N_4A_s_1_s_aq_Q_Cq_1O_9_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[831])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28405};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_pType, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[832] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeGetType, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G_1_1A_1O1A_AXQa_t_q_Qf_5Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[832])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28442};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_phGraph, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[833] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeGetContainingGraph, __pyx_mstate->__pyx_kp_b_iso88591_0_vS_1H_2_AQ_A_AQ_1_7q_AYY_a_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[833])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28480};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_nodeId, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[834] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeGetLocalId, __pyx_mstate->__pyx_kp_b_iso88591_2_vS_1H_2_AQ_A_AQ_1_q_q_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[834])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28519};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_toolsNodeId, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[835] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeGetToolsId, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_2_AQ_A_AQ_1_q_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[835])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28554};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraph, __pyx_mstate->__pyx_n_u_cyhGraph, __pyx_mstate->__pyx_n_u_phGraph, __pyx_mstate->__pyx_n_u_graphID, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[836] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphGetId, __pyx_mstate->__pyx_kp_b_iso88591_0_wc_1I_q_Qa_Qk_j_az_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[836])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28592};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_graphID, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[837] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecGetId, __pyx_mstate->__pyx_kp_b_iso88591_0_Q_a_1M_7q_c_c_j_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[837])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28630};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_numNodes, __pyx_mstate->__pyx_n_u_graph_length, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_cynodes, __pyx_mstate->__pyx_n_u_pynodes, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[838] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphGetNodes, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_a_a_S_fA_A_83a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[838])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28686};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pNumRootNodes, __pyx_mstate->__pyx_n_u_graph_length, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_cypRootNodes, __pyx_mstate->__pyx_n_u_pypRootNodes, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[839] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphGetRootNodes, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_31_1_S_36_1_Q_J, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[839])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 15, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28742};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_numEdges, __pyx_mstate->__pyx_n_u_graph_length, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_cyfrom, __pyx_mstate->__pyx_n_u_pyfrom, __pyx_mstate->__pyx_n_u_cyto, __pyx_mstate->__pyx_n_u_pyto, __pyx_mstate->__pyx_n_u_cyedgeData, __pyx_mstate->__pyx_n_u_pyedgeData, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[840] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphGetEdges, __pyx_mstate->__pyx_kp_b_iso88591_R_vS_1H_a_AQ_A_Zq_a_a_S_fA_A_83, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[840])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28829};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNumDependencies, __pyx_mstate->__pyx_n_u_graph_length, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_pypDependencies, __pyx_mstate->__pyx_n_u_cyedgeData, __pyx_mstate->__pyx_n_u_pyedgeData, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[841] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeGetDependencies, __pyx_mstate->__pyx_kp_b_iso88591_L_uCq_1G_1_1A_1O1A_6a_a_S_6fA_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[841])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28903};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNumDependentNodes, __pyx_mstate->__pyx_n_u_graph_length, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cypDependentNodes, __pyx_mstate->__pyx_n_u_pypDependentNodes, __pyx_mstate->__pyx_n_u_cyedgeData, __pyx_mstate->__pyx_n_u_pyedgeData, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[842] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeGetDependentNodes, __pyx_mstate->__pyx_kp_b_iso88591_L_uCq_1G_1_1A_1O1A_8_S_8_a_a_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[842])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 28977};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_from, __pyx_mstate->__pyx_n_u_to, __pyx_mstate->__pyx_n_u_edgeData, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_cyfrom, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cyto, __pyx_mstate->__pyx_n_u_cyedgeData, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[843] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddDependencies, __pyx_mstate->__pyx_kp_b_iso88591_k_l_q_q_r_B_vYc_1_iq_s_Zq_iq_F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[843])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29067};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_from, __pyx_mstate->__pyx_n_u_to, __pyx_mstate->__pyx_n_u_edgeData, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_cyfrom, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cyto, __pyx_mstate->__pyx_n_u_cyedgeData, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[844] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphRemoveDependencies, __pyx_mstate->__pyx_kp_b_iso88591_n_o_t_t_u_H_vYc_1_iq_s_Zq_iq_F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[844])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29160};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[845] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphDestroyNode, __pyx_mstate->__pyx_kp_b_iso88591_2_uCq_1G_1_1A_1O1A_AQ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[845])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29196};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[846] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphInstantiate, __pyx_mstate->__pyx_kp_b_iso88591_n_vS_1H_a_AQ_A_Zq_oQ_A_I_S_ggh, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[846])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29297};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[847] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphInstantiateWithFlags, __pyx_mstate->__pyx_kp_b_iso88591_r_vS_1H_a_AQ_A_Zq_oQ_5Q6RR_ggpp, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[847])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29400};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_instantiateParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphExec, __pyx_mstate->__pyx_n_u_cyinstantiateParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[848] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphInstantiateWithParams, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_oQ_IIZZggy_z_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[848])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29544};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graphExec, __pyx_mstate->__pyx_n_u_cygraphExec, __pyx_mstate->__pyx_n_u_pgraphExec, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[849] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecGetFlags, __pyx_mstate->__pyx_kp_b_iso88591_4_z_A_Q_1L_6a_S_S_Zq_A_Qm1A_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[849])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29584};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[850] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecKernelNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_EFt_uCq_1G_1_1A_1O1A_Q_a_1M_7q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[850])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29663};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[851] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecMemcpyNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_EFR_uCq_1G_1_1A_1O1A_Q_a_1M_7q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[851])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29725};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_dst_2, __pyx_mstate->__pyx_n_u_src_2, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_kind_2, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_cydst, __pyx_mstate->__pyx_n_u_cydst_ptr, __pyx_mstate->__pyx_n_u_cysrc, __pyx_mstate->__pyx_n_u_cysrc_ptr, __pyx_mstate->__pyx_n_u_cykind, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[852] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecMemcpyNodeSetParams_2, __pyx_mstate->__pyx_kp_b_iso88591_abZ_uCq_1G_1_1A_1O1A_Q_a_1M_7q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[852])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29795};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[853] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecMemsetNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_EF_uCq_1G_1_1A_1O1A_Q_a_1M_7q_c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[853])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29862};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_pNodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_cypNodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[854] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecHostNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_CD_uCq_1G_1_1A_1O1A_Q_a_1M_7q_c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[854])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29914};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_childGraph, __pyx_mstate->__pyx_n_u_cychildGraph, __pyx_mstate->__pyx_n_u_pchildGraph, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[855] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecChildGraphNodeSetPa, __pyx_mstate->__pyx_kp_b_iso88591_P_Q_a_1M_31_c_c_Qa_A_uCq_1G_1_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[855])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29981};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[856] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecEventRecordNodeSetE, __pyx_mstate->__pyx_kp_b_iso88591_B_vS_1H_a_AQ_A_Zq_vS_1H_2_AQ_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[856])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30041};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[857] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecEventWaitNodeSetEve, __pyx_mstate->__pyx_kp_b_iso88591_B_vS_1H_a_AQ_A_Zq_vS_1H_2_AQ_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[857])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30101};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[858] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecExternalSemaphoresS, __pyx_mstate->__pyx_kp_b_iso88591_WXH_vS_1H_2_AQ_A_AQ_1_Q_a_1M_7q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[858])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30158};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[859] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecExternalSemaphoresW, __pyx_mstate->__pyx_kp_b_iso88591_UVH_vS_1H_2_AQ_A_AQ_1_Q_a_1M_7q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[859])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30215};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_isEnabled_2, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[860] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeSetEnabled, __pyx_mstate->__pyx_kp_b_iso88591_R_vS_1H_2_AQ_A_AQ_1_Q_a_1M_7q_c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[860])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30275};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_hNode, __pyx_mstate->__pyx_n_u_cyhNode, __pyx_mstate->__pyx_n_u_phNode, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_isEnabled_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[861] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeGetEnabled, __pyx_mstate->__pyx_kp_b_iso88591_D_vS_1H_2_AQ_A_AQ_1_Q_a_1M_7q_c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[861])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30331};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hGraphExec, __pyx_mstate->__pyx_n_u_hGraph, __pyx_mstate->__pyx_n_u_cyhGraph, __pyx_mstate->__pyx_n_u_phGraph, __pyx_mstate->__pyx_n_u_cyhGraphExec, __pyx_mstate->__pyx_n_u_phGraphExec, __pyx_mstate->__pyx_n_u_resultInfo, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[862] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecUpdate, __pyx_mstate->__pyx_kp_b_iso88591_n_wc_1I_q_Qa_Qk_j_Q_a_1M_7q_c_c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[862])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30504};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graphExec, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cygraphExec, __pyx_mstate->__pyx_n_u_pgraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[863] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphUpload, __pyx_mstate->__pyx_kp_b_iso88591_6_wc_1I_0_Qa_Ql_1_z_z_A_Q_1L_6a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[863])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30550};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graphExec, __pyx_mstate->__pyx_n_u_stream, __pyx_mstate->__pyx_n_u_cystream, __pyx_mstate->__pyx_n_u_pstream, __pyx_mstate->__pyx_n_u_cygraphExec, __pyx_mstate->__pyx_n_u_pgraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[864] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphLaunch, __pyx_mstate->__pyx_kp_b_iso88591_wc_1I_0_Qa_Ql_1_z_z_A_Q_1L_6a_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[864])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30601};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graphExec, __pyx_mstate->__pyx_n_u_cygraphExec, __pyx_mstate->__pyx_n_u_pgraphExec, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[865] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecDestroy, __pyx_mstate->__pyx_kp_b_iso88591_z_A_Q_1L_6a_S_S_Zq_AQ_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[865])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30633};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[866] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphDestroy, __pyx_mstate->__pyx_kp_b_iso88591_vS_1H_a_AQ_A_Zq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[866])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30665};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_path, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[867] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphDebugDotPrint, __pyx_mstate->__pyx_kp_b_iso88591_4_vS_1H_a_AQ_A_Zq_ay_a_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[867])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30702};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ptr, __pyx_mstate->__pyx_n_u_destroy, __pyx_mstate->__pyx_n_u_initialRefcount, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cydestroy, __pyx_mstate->__pyx_n_u_pdestroy, __pyx_mstate->__pyx_n_u_object_out, __pyx_mstate->__pyx_n_u_cyptr, __pyx_mstate->__pyx_n_u_cyptr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[868] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaUserObjectCreate, __pyx_mstate->__pyx_kp_b_iso88591_V_xs_1_1Ja_3aq_3a_1A_7q_q_7_E_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[868])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30761};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_object, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_cyobject, __pyx_mstate->__pyx_n_u_pobject, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[869] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaUserObjectRetain, __pyx_mstate->__pyx_kp_b_iso88591_8_wc_1I_4A_Qa_Q_aq_Q_AZq_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[869])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30800};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_object, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_cyobject, __pyx_mstate->__pyx_n_u_pobject, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[870] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaUserObjectRelease, __pyx_mstate->__pyx_kp_b_iso88591_wc_1I_4A_Qa_Q_aq_Q_Qj_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[870])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30842};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_object, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyobject, __pyx_mstate->__pyx_n_u_pobject, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[871] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphRetainUserObject, __pyx_mstate->__pyx_kp_b_iso88591_D_wc_1I_4A_Qa_Q_aq_Q_vS_1H_a_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[871])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30895};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_object, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_cyobject, __pyx_mstate->__pyx_n_u_pobject, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[872] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphReleaseUserObject, __pyx_mstate->__pyx_kp_b_iso88591_wc_1I_4A_Qa_Q_aq_Q_vS_1H_a_AQ_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[872])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30943};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_pDependencies, __pyx_mstate->__pyx_n_u_dependencyData, __pyx_mstate->__pyx_n_u_numDependencies, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pGraphNode, __pyx_mstate->__pyx_n_u_cypDependencies, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_cydependencyData, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[873] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphAddNode, __pyx_mstate->__pyx_kp_b_iso88591_w_x_V_Zq_iq_F_Q_iq_vS_1H_a_AQ_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[873])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31036};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[874] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_8_uCq_1G_1_1A_1O1A_R_ddnno_axq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[874])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31077};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graphExec, __pyx_mstate->__pyx_n_u_node_2, __pyx_mstate->__pyx_n_u_nodeParams, __pyx_mstate->__pyx_n_u_cynode, __pyx_mstate->__pyx_n_u_pnode, __pyx_mstate->__pyx_n_u_cygraphExec, __pyx_mstate->__pyx_n_u_pgraphExec, __pyx_mstate->__pyx_n_u_cynodeParams_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[875] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphExecNodeSetParams, __pyx_mstate->__pyx_kp_b_iso88591_H_uCq_1G_1_1A_1O1A_z_A_Q_1L_6a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[875])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31134};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_defaultLaunchValue, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pHandle_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[876] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphConditionalHandleCreate, __pyx_mstate->__pyx_kp_b_iso88591_F_vS_1H_a_AQ_A_Zq_22LA_8_9_kkvv, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[876])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31183};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_graph_2, __pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_defaultLaunchValue, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_cygraph, __pyx_mstate->__pyx_n_u_pgraph, __pyx_mstate->__pyx_n_u_pHandle_out, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[877] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphConditionalHandleCreate_2, __pyx_mstate->__pyx_kp_b_iso88591_L_t3a_q_1F_s_1_s_j_vS_1H_a_AQ_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[877])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31243};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_symbol, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_funcPtr, __pyx_mstate->__pyx_n_u_driverStatus, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[878] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetDriverEntryPoint, __pyx_mstate->__pyx_kp_b_iso88591_z_A_q_QRRS_t_q_a_QfI_LAQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[878])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31344};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_symbol, __pyx_mstate->__pyx_n_u_cudaVersion, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_funcPtr, __pyx_mstate->__pyx_n_u_driverStatus, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[879] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetDriverEntryPointByVersion, __pyx_mstate->__pyx_kp_b_iso88591_B_A_8_S_gghhi_t_q_a_QfI_LAQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[879])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 27, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31449};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_code, __pyx_mstate->__pyx_n_u_jitOptions, __pyx_mstate->__pyx_n_u_jitOptionsValues, __pyx_mstate->__pyx_n_u_numJitOptions, __pyx_mstate->__pyx_n_u_libraryOptions, __pyx_mstate->__pyx_n_u_libraryOptionValues, __pyx_mstate->__pyx_n_u_numLibraryOptions, __pyx_mstate->__pyx_n_u_library, __pyx_mstate->__pyx_n_u_cycode, __pyx_mstate->__pyx_n_u_cycode_ptr, __pyx_mstate->__pyx_n_u_cyjitOptions, __pyx_mstate->__pyx_n_u_pylist, __pyx_mstate->__pyx_n_u_voidStarHelperjitOptionsValues, __pyx_mstate->__pyx_n_u_cyjitOptionsValues_ptr, __pyx_mstate->__pyx_n_u_cylibraryOptions, __pyx_mstate->__pyx_n_u_voidStarHelperlibraryOptionValue, __pyx_mstate->__pyx_n_u_cylibraryOptionValues_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pyjitOptions, __pyx_mstate->__pyx_n_u_pyoptions, __pyx_mstate->__pyx_n_u_pyoptionValues, __pyx_mstate->__pyx_n_u_pylibraryOptions, __pyx_mstate->__pyx_n_u_pyoptions, __pyx_mstate->__pyx_n_u_pyoptionValues};
    __pyx_mstate_global->__pyx_codeobj_tab[880] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryLoadData, __pyx_mstate->__pyx_kp_b_iso88591_t_u_D_D_X_X_Y_D_4Cz_V_Zq_iq_v_c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[880])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 25, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31545};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_fileName, __pyx_mstate->__pyx_n_u_jitOptions, __pyx_mstate->__pyx_n_u_jitOptionsValues, __pyx_mstate->__pyx_n_u_numJitOptions, __pyx_mstate->__pyx_n_u_libraryOptions, __pyx_mstate->__pyx_n_u_libraryOptionValues, __pyx_mstate->__pyx_n_u_numLibraryOptions, __pyx_mstate->__pyx_n_u_library, __pyx_mstate->__pyx_n_u_cyjitOptions, __pyx_mstate->__pyx_n_u_pylist, __pyx_mstate->__pyx_n_u_voidStarHelperjitOptionsValues, __pyx_mstate->__pyx_n_u_cyjitOptionsValues_ptr, __pyx_mstate->__pyx_n_u_cylibraryOptions, __pyx_mstate->__pyx_n_u_voidStarHelperlibraryOptionValue, __pyx_mstate->__pyx_n_u_cylibraryOptionValues_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_pyjitOptions, __pyx_mstate->__pyx_n_u_pyoptions, __pyx_mstate->__pyx_n_u_pyoptionValues, __pyx_mstate->__pyx_n_u_pylibraryOptions, __pyx_mstate->__pyx_n_u_pyoptions, __pyx_mstate->__pyx_n_u_pyoptionValues};
    __pyx_mstate_global->__pyx_codeobj_tab[881] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryLoadFromFile, __pyx_mstate->__pyx_kp_b_iso88591_C_C_R_R_f_f_g_F_4Cz_V_Zq_iq_v_c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[881])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31640};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_library, __pyx_mstate->__pyx_n_u_cylibrary, __pyx_mstate->__pyx_n_u_plibrary, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[882] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryUnload, __pyx_mstate->__pyx_kp_b_iso88591_xs_1_1Ja_3aq_3a_AQ_1_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[882])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31672};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_library, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_cylibrary, __pyx_mstate->__pyx_n_u_plibrary, __pyx_mstate->__pyx_n_u_pKernel, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[883] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryGetKernel, __pyx_mstate->__pyx_kp_b_iso88591_6_xs_1_1Ja_3aq_3a_AQ_1_A_A_Fg_X, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[883])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31713};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_library, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_cylibrary, __pyx_mstate->__pyx_n_u_plibrary, __pyx_mstate->__pyx_n_u_dptr_2, __pyx_mstate->__pyx_n_u_numbytes, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[884] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryGetGlobal, __pyx_mstate->__pyx_kp_b_iso88591_D_xs_1_1Ja_3aq_3a_AQ_1_1_AXQfAZ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[884])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31762};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_library, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_cylibrary, __pyx_mstate->__pyx_n_u_plibrary, __pyx_mstate->__pyx_n_u_dptr_2, __pyx_mstate->__pyx_n_u_numbytes, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[885] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryGetManaged, __pyx_mstate->__pyx_kp_b_iso88591_H_xs_1_1Ja_3aq_3a_AQ_1_1_QhavQj, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[885])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31813};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_library, __pyx_mstate->__pyx_n_u_symbol, __pyx_mstate->__pyx_n_u_cylibrary, __pyx_mstate->__pyx_n_u_plibrary, __pyx_mstate->__pyx_n_u_fptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[886] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryGetUnifiedFunction, __pyx_mstate->__pyx_kp_b_iso88591_xs_1_1Ja_3aq_3a_AQ_1_5Qhav_PQ_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[886])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31856};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_lib, __pyx_mstate->__pyx_n_u_cylib, __pyx_mstate->__pyx_n_u_plib, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[887] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryGetKernelCount, __pyx_mstate->__pyx_kp_b_iso88591_t3a_q_1F_s_1_s_Zq_a_1_7_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[887])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31893};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_numKernels, __pyx_mstate->__pyx_n_u_lib, __pyx_mstate->__pyx_n_u_cylib, __pyx_mstate->__pyx_n_u_plib, __pyx_mstate->__pyx_n_u_cykernels, __pyx_mstate->__pyx_n_u_pykernels, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[888] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaLibraryEnumerateKernels, __pyx_mstate->__pyx_kp_b_iso88591_6_t3a_q_1F_s_1_s_Zq_Q_Q_V1L_S_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[888])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31943};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_kernel_2, __pyx_mstate->__pyx_n_u_attr, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_cykernel, __pyx_mstate->__pyx_n_u_pkernel, __pyx_mstate->__pyx_n_u_cyattr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[889] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaKernelSetAttributeForDevice, __pyx_mstate->__pyx_kp_b_iso88591_t_wc_1IQ_Qa_Ql_1_z_d_7q_QR_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[889])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32046};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_typename, __pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_cytypename, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[890] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetDevResource, __pyx_mstate->__pyx_kp_b_iso88591_6_O1_4HA_0_9UU_hhi_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[890])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32082};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_nbGroups, __pyx_mstate->__pyx_n_u_input, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_minCount, __pyx_mstate->__pyx_n_u_cyresult, __pyx_mstate->__pyx_n_u_pyresult, __pyx_mstate->__pyx_n_u_cynbGroups, __pyx_mstate->__pyx_n_u_cyinput__ptr, __pyx_mstate->__pyx_n_u_remaining, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[891] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDevSmResourceSplitByCount, __pyx_mstate->__pyx_kp_b_iso88591_BC_0q_q_s_gU_1_y_1_vQj_9Cq_Q_J, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[891])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32199};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_nbGroups, __pyx_mstate->__pyx_n_u_input, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_groupParams, __pyx_mstate->__pyx_n_u_cyresult, __pyx_mstate->__pyx_n_u_pyresult, __pyx_mstate->__pyx_n_u_cyinput__ptr, __pyx_mstate->__pyx_n_u_remainder, __pyx_mstate->__pyx_n_u_cygroupParams_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[892] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDevSmResourceSplit, __pyx_mstate->__pyx_kp_b_iso88591_xxyP_0q_q_s_gU_1_y_1_vQj_9Cq_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[892])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32356};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_resources, __pyx_mstate->__pyx_n_u_nbResources, __pyx_mstate->__pyx_n_u_phDesc, __pyx_mstate->__pyx_n_u_cyresources, __pyx_mstate->__pyx_n_u_idx, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[893] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDevResourceGenerateDesc, __pyx_mstate->__pyx_kp_b_iso88591_T_j_Q_iq_Q_2_s_b_36_Ql_s_Q_J_Cq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[893])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32420};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_desc_2, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cydesc, __pyx_mstate->__pyx_n_u_pdesc, __pyx_mstate->__pyx_n_u_phCtx, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[894] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGreenCtxCreate, __pyx_mstate->__pyx_kp_b_iso88591_uCq_1G1_1A_1_j_a_NeS_ffnno_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[894])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32480};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[895] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionCtxDestroy, __pyx_mstate->__pyx_kp_b_iso88591_Z_t3a_q_1F_s_1_s_j_q_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[895])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32536};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_typename, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_cytypename, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[896] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionCtxGetDevResource, __pyx_mstate->__pyx_kp_b_iso88591_6_t3a_q_1F_s_1_s_j_O1_4HA_6aw_Z, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[896])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32579};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[897] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionCtxGetDevice, __pyx_mstate->__pyx_kp_b_iso88591_2_t3a_q_1F_s_1_s_j_a_1_81_t_q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[897])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32618};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_ctxId, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[898] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionCtxGetId, __pyx_mstate->__pyx_kp_b_iso88591_4_t3a_q_1F_s_1_s_j_A_QgQa_t_q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[898])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32658};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_priority_2, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[899] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionCtxStreamCreate, __pyx_mstate->__pyx_kp_b_iso88591_t_t3a_q_1F_s_1_s_j_Q_4A5NhVaahh, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[899])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32730};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[900] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionCtxSynchronize, __pyx_mstate->__pyx_kp_b_iso88591_8_t3a_q_1F_s_1_s_j_31A_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[900])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32769};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_hStream, __pyx_mstate->__pyx_n_u_typename, __pyx_mstate->__pyx_n_u_cyhStream, __pyx_mstate->__pyx_n_u_phStream, __pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_cytypename, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[901] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaStreamGetDevResource, __pyx_mstate->__pyx_kp_b_iso88591_xs_1_1J_1_3aq_3a_1A_O1_4HA_0_XX, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[901])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32814};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[902] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionCtxRecordEvent, __pyx_mstate->__pyx_kp_b_iso88591_J_vS_1H_a_AQ_A_Zq_t3a_q_1F_s_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[902])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32870};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_event_2, __pyx_mstate->__pyx_n_u_cyevent, __pyx_mstate->__pyx_n_u_pevent, __pyx_mstate->__pyx_n_u_cyctx, __pyx_mstate->__pyx_n_u_pctx, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[903] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaExecutionCtxWaitEvent, __pyx_mstate->__pyx_kp_b_iso88591_H_vS_1H_a_AQ_A_Zq_t3a_q_1F_s_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[903])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32925};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_ctx_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[904] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaDeviceGetExecutionCtx, __pyx_mstate->__pyx_kp_b_iso88591_A_1_2UUXXccd_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[904])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32961};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pExportTableId, __pyx_mstate->__pyx_n_u_ppExportTable, __pyx_mstate->__pyx_n_u_cypExportTableId_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[905] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetExportTable, __pyx_mstate->__pyx_kp_b_iso88591_6nMQ_ggqqr_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[905])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 32972};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_entryFuncAddr, __pyx_mstate->__pyx_n_u_kernelPtr, __pyx_mstate->__pyx_n_u_cyentryFuncAddr, __pyx_mstate->__pyx_n_u_cyentryFuncAddr_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[906] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGetKernel, __pyx_mstate->__pyx_kp_b_iso88591_a_WJoQ_Q_y_ST_t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[906])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33013};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_d, __pyx_mstate->__pyx_n_u_p, __pyx_mstate->__pyx_n_u_xsz, __pyx_mstate->__pyx_n_u_ysz, __pyx_mstate->__pyx_n_u_cyd, __pyx_mstate->__pyx_n_u_cyd_ptr, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_wrapper};
    __pyx_mstate_global->__pyx_codeobj_tab[907] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_make_cudaPitchedPtr, __pyx_mstate->__pyx_kp_b_iso88591_Qa_Q_1IS_Q_9AU_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[907])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33050};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x_2, __pyx_mstate->__pyx_n_u_y_2, __pyx_mstate->__pyx_n_u_z_2, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_wrapper};
    __pyx_mstate_global->__pyx_codeobj_tab[908] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_make_cudaPos, __pyx_mstate->__pyx_kp_b_iso88591_6_AS_1_7_9AU_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[908])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33083};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_w_2, __pyx_mstate->__pyx_n_u_h, __pyx_mstate->__pyx_n_u_d, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_wrapper};
    __pyx_mstate_global->__pyx_codeobj_tab[909] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_make_cudaExtent, __pyx_mstate->__pyx_kp_b_iso88591_8_q_3a_j_9AU_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[909])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33117};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_image, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyimage, __pyx_mstate->__pyx_n_u_pimage, __pyx_mstate->__pyx_n_u_pCudaResource, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[910] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsEGLRegisterImage, __pyx_mstate->__pyx_kp_b_iso88591_v_vS_1HA_AQ_A_Zq_00Fa_4A_YVW_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[910])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33190};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_eglStream, __pyx_mstate->__pyx_n_u_cyeglStream, __pyx_mstate->__pyx_n_u_peglStream, __pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[911] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamConsumerConnect, __pyx_mstate->__pyx_kp_b_iso88591_4_z_A_Q_1L_S_S_Qa_A_q_4A5YY_hhi, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[911])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33230};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_eglStream, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyeglStream, __pyx_mstate->__pyx_n_u_peglStream, __pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[912] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamConsumerConnectWith, __pyx_mstate->__pyx_kp_b_iso88591_z_A_Q_1L_S_S_Qa_A_q_Q_bbffqq_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[912])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33274};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_cyconn, __pyx_mstate->__pyx_n_u_pconn, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[913] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamConsumerDisconnect, __pyx_mstate->__pyx_kp_b_iso88591_uCq_5Zq_1G_9_G1_5Zq_1G1_5Zq_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[913])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33308};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_pCudaResource, __pyx_mstate->__pyx_n_u_pStream, __pyx_mstate->__pyx_n_u_timeout, __pyx_mstate->__pyx_n_u_cypStream, __pyx_mstate->__pyx_n_u_ppStream, __pyx_mstate->__pyx_n_u_cypCudaResource, __pyx_mstate->__pyx_n_u_ppCudaResource, __pyx_mstate->__pyx_n_u_cyconn, __pyx_mstate->__pyx_n_u_pconn, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[914] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamConsumerAcquireFram, __pyx_mstate->__pyx_kp_b_iso88591_xs_Zq_1J_1_7_Zq_1Ja_Zq_iq_A_A_B, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[914])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33371};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_pCudaResource, __pyx_mstate->__pyx_n_u_pStream, __pyx_mstate->__pyx_n_u_cypStream, __pyx_mstate->__pyx_n_u_ppStream, __pyx_mstate->__pyx_n_u_cypCudaResource, __pyx_mstate->__pyx_n_u_ppCudaResource, __pyx_mstate->__pyx_n_u_cyconn, __pyx_mstate->__pyx_n_u_pconn, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[915] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamConsumerReleaseFram, __pyx_mstate->__pyx_kp_b_iso88591_4_xs_Zq_1J_1_7_Zq_1Ja_Zq_iq_A_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[915])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33428};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_eglStream, __pyx_mstate->__pyx_n_u_width_2, __pyx_mstate->__pyx_n_u_height_2, __pyx_mstate->__pyx_n_u_cyheight, __pyx_mstate->__pyx_n_u_pheight, __pyx_mstate->__pyx_n_u_cywidth, __pyx_mstate->__pyx_n_u_pwidth, __pyx_mstate->__pyx_n_u_cyeglStream, __pyx_mstate->__pyx_n_u_peglStream, __pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[916] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamProducerConnect, __pyx_mstate->__pyx_kp_b_iso88591_wc_1IQ_Qa_QfAQ_1_vS_1HA_AQ_AV1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[916])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33488};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_cyconn, __pyx_mstate->__pyx_n_u_pconn, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[917] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamProducerDisconnect, __pyx_mstate->__pyx_kp_b_iso88591_uCq_5Zq_1G_9_G1_5Zq_1G1_5Zq_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[917])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33522};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_eglframe, __pyx_mstate->__pyx_n_u_pStream, __pyx_mstate->__pyx_n_u_cypStream, __pyx_mstate->__pyx_n_u_ppStream, __pyx_mstate->__pyx_n_u_cyconn, __pyx_mstate->__pyx_n_u_pconn, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[918] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamProducerPresentFram, __pyx_mstate->__pyx_kp_b_iso88591_AB_xs_Zq_1J_1_7_Zq_1Ja_Zq_iq_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[918])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33579};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_conn, __pyx_mstate->__pyx_n_u_eglframe, __pyx_mstate->__pyx_n_u_pStream, __pyx_mstate->__pyx_n_u_cypStream, __pyx_mstate->__pyx_n_u_ppStream, __pyx_mstate->__pyx_n_u_cyconn, __pyx_mstate->__pyx_n_u_pconn, __pyx_mstate->__pyx_n_u_cyeglframe_ptr, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[919] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEGLStreamProducerReturnFrame, __pyx_mstate->__pyx_kp_b_iso88591_676_xs_Zq_1J_1_7_Zq_1Ja_Zq_iq_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[919])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33631};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_mipLevel, __pyx_mstate->__pyx_n_u_cyresource, __pyx_mstate->__pyx_n_u_presource, __pyx_mstate->__pyx_n_u_eglFrame, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[920] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsResourceGetMappedEgl, __pyx_mstate->__pyx_kp_b_iso88591_J_y_1_A_1Kq_Cq_Cq_aq_3_Q_Q_Q_WW, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[920])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33682};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_eglSync, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyeglSync, __pyx_mstate->__pyx_n_u_peglSync, __pyx_mstate->__pyx_n_u_phEvent, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[921] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaEventCreateFromEGLSync, __pyx_mstate->__pyx_kp_b_iso88591_N_xs_1_1Ja_3aq_3az_j_2_3K7R_hhi, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[921])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33735};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[922] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaProfilerStart, __pyx_mstate->__pyx_kp_b_iso88591_Qa_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[922])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33760};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[923] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaProfilerStop, __pyx_mstate->__pyx_kp_b_iso88591_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[923])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33785};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cudaDeviceCount, __pyx_mstate->__pyx_n_u_deviceList, __pyx_mstate->__pyx_n_u_pCudaDeviceCount, __pyx_mstate->__pyx_n_u_cypCudaDevices, __pyx_mstate->__pyx_n_u_pypCudaDevices, __pyx_mstate->__pyx_n_u_cydeviceList, __pyx_mstate->__pyx_n_u_err, __pyx_mstate->__pyx_n_u_idx};
    __pyx_mstate_global->__pyx_codeobj_tab[924] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGLGetDevices, __pyx_mstate->__pyx_kp_b_iso88591_IJ_q_Q_s_vQ_7q_Q_Q_J_CqPaaccggi, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[924])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33850};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_image, __pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cytarget, __pyx_mstate->__pyx_n_u_ptarget, __pyx_mstate->__pyx_n_u_cyimage, __pyx_mstate->__pyx_n_u_pimage, __pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[925] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsGLRegisterImage, __pyx_mstate->__pyx_kp_b_iso88591_V_wc_1IQ_Qa_QfAQ_1_vS_1HA_AQ_AV, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[925])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 33947};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_buffer, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cybuffer, __pyx_mstate->__pyx_n_u_pbuffer, __pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[926] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsGLRegisterBuffer, __pyx_mstate->__pyx_kp_b_iso88591_P_wc_1IQ_Qa_QfAQ_1_A_4AX_RS_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[926])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34001};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_vdpDevice, __pyx_mstate->__pyx_n_u_vdpGetProcAddress, __pyx_mstate->__pyx_n_u_cyvdpGetProcAddress, __pyx_mstate->__pyx_n_u_pvdpGetProcAddress, __pyx_mstate->__pyx_n_u_cyvdpDevice, __pyx_mstate->__pyx_n_u_pvdpDevice, __pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[927] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaVDPAUGetDevice, __pyx_mstate->__pyx_kp_b_iso88591_4_A_Ja_1_gQ_Ja_1_Ja_iq_K_K_M_M, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[927])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34051};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_device_2, __pyx_mstate->__pyx_n_u_vdpDevice, __pyx_mstate->__pyx_n_u_vdpGetProcAddress, __pyx_mstate->__pyx_n_u_cyvdpGetProcAddress, __pyx_mstate->__pyx_n_u_pvdpGetProcAddress, __pyx_mstate->__pyx_n_u_cyvdpDevice, __pyx_mstate->__pyx_n_u_pvdpDevice, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[928] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaVDPAUSetVDPAUDevice, __pyx_mstate->__pyx_kp_b_iso88591_F_A_Ja_1_gQ_Ja_1_Ja_iq_K_K_M_M, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[928])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34107};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_vdpSurface, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyvdpSurface, __pyx_mstate->__pyx_n_u_pvdpSurface, __pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[929] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsVDPAURegisterVideoSu, __pyx_mstate->__pyx_kp_b_iso88591_P_Q_a_1M_c_c_j_A_QhkQ___t_q_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[929])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34161};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_vdpSurface, __pyx_mstate->__pyx_n_u_flags_2, __pyx_mstate->__pyx_n_u_cyvdpSurface, __pyx_mstate->__pyx_n_u_pvdpSurface, __pyx_mstate->__pyx_n_u_resource, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[930] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_cudaGraphicsVDPAURegisterOutputS, __pyx_mstate->__pyx_kp_b_iso88591_P_Q_a_1M_c_c_1_z_A_ax_R_a_t_q_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[930])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34216};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_runtimeVersion, __pyx_mstate->__pyx_n_u_err};
    __pyx_mstate_global->__pyx_codeobj_tab[931] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_getLocalRuntimeVersion, __pyx_mstate->__pyx_kp_b_iso88591_4_a_1A_Kq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[931])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[932] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[932])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[933] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_stringsource, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[933])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34258};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_objType};
    __pyx_mstate_global->__pyx_codeobj_tab[934] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cuda_bindings_runtime_pyx, __pyx_mstate->__pyx_n_u_sizeof, __pyx_mstate->__pyx_kp_b_iso88591_xs_q_xs_q_xs_q_xs_q_xs_q_xs_q_x, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[934])) 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)

  /* AssertionsEnabled.init */
  if (likely(__Pyx_init_assertions_enabled() == 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)

  /* Generator.init */
  if (likely(__pyx_Generator_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

/* 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

/* PyObjectGetAttrStr (used by PyObjectGetAttrStrNoError) */
#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

/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */
#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
}

/* GetBuiltinName */
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;
}

/* IterFinish (used by dict_iter) */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
    PyObject* exc_type;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    exc_type = __Pyx_PyErr_CurrentExceptionType();
    if (unlikely(exc_type)) {
        if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))
            return -1;
        __Pyx_PyErr_Clear();
        return 0;
    }
    return 0;
}

/* 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 (used by PyObjectCallNoArg) */
#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
}

/* PyObjectCallNoArg (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg[2] = {NULL, NULL};
    return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectCallOneArg (used by PyObjectCallMethod0) */
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);
}

/* PyObjectGetMethod (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    __Pyx_TypeName type_name;
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
        if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR))
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (likely(descr != NULL)) {
        *method = descr;
        return 0;
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(tp);
    PyErr_Format(PyExc_AttributeError,
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}
#endif

/* PyObjectCallMethod0 (used by dict_iter) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[1] = {obj};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_CallNoArg;
    return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
#endif
}

/* RaiseNeedMoreValuesToUnpack (used by UnpackTuple2) */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* RaiseTooManyValuesToUnpack (used by UnpackItemEndCheck) */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* UnpackItemEndCheck (used by UnpackTuple2) */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    }
    return __Pyx_IterFinish();
}

/* RaiseNoneIterError (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else {
      Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(t);
 #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely(size < 0)) return;
 #endif
      if (size < index) {
        __Pyx_RaiseNeedMoreValuesError(size);
      } else {
        __Pyx_RaiseTooManyValuesError(index);
      }
    }
}

/* UnpackTuple2 (used by dict_iter) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
        PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple) {
    if (likely(is_tuple || PyTuple_Check(tuple))) {
        Py_ssize_t size;
        if (has_known_size) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        size = __Pyx_PyTuple_GET_SIZE(tuple);
        if (likely(size == 2)) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        if (size >= 0) {
            __Pyx_UnpackTupleError(tuple, 2);
        }
        return -1;
    } else {
        return __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple);
    }
}
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
    value1 = __Pyx_PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = __Pyx_PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = __Pyx_PyObject_GetIterNextFunc(iter);
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
#if CYTHON_COMPILING_IN_PYPY
#include <string.h>
#endif
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_COMPILING_IN_PYPY
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#else
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_COMPILING_IN_PYPY
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
#if !CYTHON_AVOID_BORROWED_REFS
static CYTHON_INLINE int __Pyx_dict_iter_next_source_is_dict(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem) {
    PyObject *key, *value;
    if (unlikely(orig_length != PyDict_Size(iter_obj))) {
        PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
        return -1;
    }
    if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
        return 0;
    }
    if (pitem) {
        PyObject* tuple = PyTuple_New(2);
        if (unlikely(!tuple)) {
            return -1;
        }
        Py_INCREF(key);
        Py_INCREF(value);
        #if CYTHON_ASSUME_SAFE_MACROS
        PyTuple_SET_ITEM(tuple, 0, key);
        PyTuple_SET_ITEM(tuple, 1, value);
        #else
        if (unlikely(PyTuple_SetItem(tuple, 0, key) < 0)) {
            Py_DECREF(value);
            Py_DECREF(tuple);
            return -1;
        }
        if (unlikely(PyTuple_SetItem(tuple, 1, value) < 0)) {
            Py_DECREF(tuple);
            return -1;
        }
        #endif
        *pitem = tuple;
    } else {
        if (pkey) {
            Py_INCREF(key);
            *pkey = key;
        }
        if (pvalue) {
            Py_INCREF(value);
            *pvalue = value;
        }
    }
    return 1;
}
#endif
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_AVOID_BORROWED_REFS
    if (source_is_dict) {
        int result;
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_BEGIN_CRITICAL_SECTION(iter_obj);
#endif
        result = __Pyx_dict_iter_next_source_is_dict(iter_obj, orig_length, ppos, pkey, pvalue, pitem);
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_END_CRITICAL_SECTION();
#endif
        return result;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(tuple_size < 0)) return -1;
        #endif
        if (unlikely(pos >= tuple_size)) return 0;
        *ppos = pos + 1;
        #if CYTHON_ASSUME_SAFE_MACROS
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        #else
        next_item = PyTuple_GetItem(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
        #endif
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t list_size = __Pyx_PyList_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(list_size < 0)) return -1;
        #endif
        if (unlikely(pos >= list_size)) return 0;
        *ppos = pos + 1;
        next_item = __Pyx_PyList_GetItemRef(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* RaiseUnboundLocalError */
static void __Pyx_RaiseUnboundLocalError(const char *varname) {
    PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname);
}

/* GetException (used by pep479) */
#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
}

/* pep479 */
static void __Pyx_Generator_Replace_StopIteration(int in_async_gen) {
    PyObject *exc, *val, *tb, *cur_exc, *new_exc;
    __Pyx_PyThreadState_declare
    int is_async_stopiteration = 0;
    CYTHON_MAYBE_UNUSED_VAR(in_async_gen);
    __Pyx_PyThreadState_assign
    cur_exc = __Pyx_PyErr_CurrentExceptionType();
    if (likely(!__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopIteration))) {
        if (in_async_gen && unlikely(__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopAsyncIteration))) {
            is_async_stopiteration = 1;
        } else {
            return;
        }
    }
    __Pyx_GetException(&exc, &val, &tb);
    Py_XDECREF(exc);
    Py_XDECREF(tb);
    new_exc = PyObject_CallFunction(PyExc_RuntimeError, "s",
        is_async_stopiteration ? "async generator raised StopAsyncIteration" :
        in_async_gen ? "async generator raised StopIteration" :
        "generator raised StopIteration");
    if (!new_exc) {
        Py_XDECREF(val);
        return;
    }
    PyException_SetCause(new_exc, val); // steals ref to val
    PyErr_SetObject(PyExc_RuntimeError, new_exc);
}

/* 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

/* 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

/* PyObjectFastCallMethod */
#if !CYTHON_VECTORCALL || PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf) {
    PyObject *result;
    PyObject *attr = PyObject_GetAttr(args[0], name);
    if (unlikely(!attr))
        return NULL;
    result = __Pyx_PyObject_FastCall(attr, args+1, nargsf - 1);
    Py_DECREF(attr);
    return result;
}
#endif

/* 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;
}

/* 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

/* 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);
}

/* 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);
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (unlikely(!j)) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS)) {
        return __Pyx_PyList_GetItemRefFast(o, wrapped_i, unsafe_shared);
    } else
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyList_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyTuple_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)) {
            return __Pyx_PyList_GetItemRefFast(o, n, unsafe_shared);
        } else if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            return __Pyx_NewRef(PyList_GET_ITEM(o, n));
        }
    } else
    #if !CYTHON_AVOID_BORROWED_REFS
    if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            return __Pyx_NewRef(PyTuple_GET_ITEM(o, n));
        }
    } else
    #endif
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (!is_list && mm && mm->mp_subscript) {
            PyObject *r, *key = PyLong_FromSsize_t(i);
            if (unlikely(!key)) return NULL;
            r = mm->mp_subscript(o, key);
            Py_DECREF(key);
            return r;
        }
        if (is_list || likely(sm && sm->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return sm->sq_item(o, i);
        }
    }
#else
    if (is_list || !PyMapping_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
}

/* GetAttr3 */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    int res = PyObject_GetOptionalAttr(o, n, &r);
    return (res != 0) ? r : __Pyx_NewRef(d);
#else
  #if CYTHON_USE_TYPE_SLOTS
    if (likely(PyUnicode_Check(n))) {
        r = __Pyx_PyObject_GetAttrStrNoError(o, n);
        if (unlikely(!r) && likely(!PyErr_Occurred())) {
            r = __Pyx_NewRef(d);
        }
        return r;
    }
  #endif
    r = PyObject_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
#endif
}

/* PyLongCompare */
static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(inplace);
    if (op1 == op2) {
        return 1;
    }
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        const digit* digits = __Pyx_PyLong_Digits(op1);
        if (intval == 0) {
            return (__Pyx_PyLong_IsZero(op1) == 1);
        } else if (intval < 0) {
            if (__Pyx_PyLong_IsNonNeg(op1))
                return 0;
            intval = -intval;
        } else {
            if (__Pyx_PyLong_IsNeg(op1))
                return 0;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        return (unequal == 0);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = __Pyx_PyFloat_AS_DOUBLE(op1);
        return ((double)a == (double)b);
    }
    return __Pyx_PyObject_IsTrueAndDecref(
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op2);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a + b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla + llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_AddObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) + (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_AddObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_AddObjC(op1, op2, inplace);
}
#endif

/* RejectKeywords */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) {
    PyObject *key = NULL;
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) {
        key = __Pyx_PySequence_ITEM(kwds, 0);
    } else {
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *pos = NULL;
#else
        Py_ssize_t pos = 0;
#endif
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
        if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return;
#endif
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL);
#if CYTHON_AVOID_BORROWED_REFS
        Py_XDECREF(pos);
#endif
    }
    if (likely(key)) {
        PyErr_Format(PyExc_TypeError,
            "%s() got an unexpected keyword argument '%U'",
            function_name, key);
        Py_DECREF(key);
    }
}

/* 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

/* ExtTypeTest */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    __Pyx_TypeName obj_type_name;
    __Pyx_TypeName type_name;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    PyErr_Format(PyExc_TypeError,
                 "Cannot convert " __Pyx_FMT_TYPENAME " to " __Pyx_FMT_TYPENAME,
                 obj_type_name, type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
}

/* pybuiltin_invalid (used by pyint_simplify) */
static void __Pyx_PyBuiltin_Invalid(PyObject *obj, const char *type_name, const char *argname) {
    __Pyx_TypeName obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    if (argname) {
        PyErr_Format(PyExc_TypeError,
            "Argument '%.200s' has incorrect type (expected %.200s, got " __Pyx_FMT_TYPENAME ")",
            argname, type_name, obj_type_name
        );
    } else {
        PyErr_Format(PyExc_TypeError,
            "Expected %.200s, got " __Pyx_FMT_TYPENAME,
            type_name, obj_type_name
        );
    }
    __Pyx_DECREF_TypeName(obj_type_name);
}

/* pyint_simplify */
static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none) {
    PyObject *number = *number_var;
    if (likely((accept_none && number == Py_None) || PyLong_CheckExact(number))) {
        return 0;
    }
    PyObject *int_object;
    if (likely(PyNumber_Check(number))) {
        int_object = PyNumber_Long(number);
        if (unlikely(!int_object)) goto bad;
    } else {
        __Pyx_PyBuiltin_Invalid(number, "int", argname);
        goto bad;
    }
    *number_var = int_object;
    Py_DECREF(number);
    return 0;
bad:
    *number_var = NULL;
    Py_DECREF(number);
    return -1;
}

/* KeywordStringCheck */
static int __Pyx_CheckKeywordStrings(
    const char* function_name,
    PyObject *kw)
{
#if CYTHON_COMPILING_IN_PYPY && !defined(PyArg_ValidateKeywordArguments)
    CYTHON_UNUSED_VAR(function_name);
    CYTHON_UNUSED_VAR(kw);
    return 0;
#else
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kw))) {
#if PY_VERSION_HEX >= 0x03090000
        CYTHON_UNUSED_VAR(function_name);
#else
        Py_ssize_t kwsize;
        #if CYTHON_ASSUME_SAFE_SIZE
        kwsize = PyTuple_GET_SIZE(kw);
        #else
        kwsize = PyTuple_Size(kw);
        if (unlikely(kwsize < 0)) return -1;
        #endif
        for (Py_ssize_t pos = 0; pos < kwsize; pos++) {
            PyObject* key = NULL;
            #if CYTHON_ASSUME_SAFE_MACROS
            key = PyTuple_GET_ITEM(kw, pos);
            #else
            key = PyTuple_GetItem(kw, pos);
            if (unlikely(!key)) return -1;
            #endif
            if (unlikely(!PyUnicode_Check(key))) {
                PyErr_Format(PyExc_TypeError,
                    "%.200s() keywords must be strings", function_name);
                return -1;
            }
        }
#endif
    } else {
        if (unlikely(!PyArg_ValidateKeywordArguments(kw))) return -1;
    }
    return 0;
#endif
}

/* PyUnicode_Unicode */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj) {
    if (unlikely(obj == Py_None))
        obj = __pyx_mstate_global->__pyx_kp_u_None;
    return __Pyx_NewRef(obj);
}

/* UnicodeConcatInPlace */
# if CYTHON_COMPILING_IN_CPYTHON
static int
__Pyx_unicode_modifiable(PyObject *unicode, int unsafe_shared)
{
    if (!__Pyx_IS_UNIQUELY_REFERENCED(unicode, unsafe_shared))
        return 0;
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030F0000
    if (PyUnstable_Unicode_GET_CACHED_HASH(unicode) != -1)
        return 0;
#endif
    if (!PyUnicode_CheckExact(unicode))
        return 0;
    if (PyUnicode_CHECK_INTERNED(unicode))
        return 0;
    return 1;
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right, int unsafe_shared
        #if CYTHON_REFNANNY
        , void* __pyx_refnanny
        #endif
    ) {
    PyObject *left = *p_left;
    Py_ssize_t left_len, right_len, new_len;
    if (unlikely(__Pyx_PyUnicode_READY(left) == -1))
        return NULL;
    if (unlikely(__Pyx_PyUnicode_READY(right) == -1))
        return NULL;
    left_len = PyUnicode_GET_LENGTH(left);
    if (left_len == 0) {
        Py_INCREF(right);
        return right;
    }
    right_len = PyUnicode_GET_LENGTH(right);
    if (right_len == 0) {
        Py_INCREF(left);
        return left;
    }
    if (unlikely(left_len > PY_SSIZE_T_MAX - right_len)) {
        PyErr_SetString(PyExc_OverflowError,
                        "strings are too large to concat");
        return NULL;
    }
    new_len = left_len + right_len;
    if (__Pyx_unicode_modifiable(left, unsafe_shared)
            && PyUnicode_CheckExact(right)
            && PyUnicode_KIND(right) <= PyUnicode_KIND(left)
            && !(PyUnicode_IS_ASCII(left) && !PyUnicode_IS_ASCII(right))) {
        int ret;
        __Pyx_GIVEREF(*p_left);
        ret = PyUnicode_Resize(p_left, new_len);
        __Pyx_GOTREF(*p_left);
        if (unlikely(ret != 0))
            return NULL;
        #if PY_VERSION_HEX >= 0x030d0000
        if (unlikely(PyUnicode_CopyCharacters(*p_left, left_len, right, 0, right_len) < 0)) return NULL;
        #else
        _PyUnicode_FastCopyCharacters(*p_left, left_len, right, 0, right_len);
        #endif
        __Pyx_INCREF(*p_left);
        __Pyx_GIVEREF(*p_left);
        return *p_left;
    } else {
        return __Pyx_PyUnicode_Concat(left, right);
    }
  }
#endif

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) {
    PyObject *runerr = NULL;
    Py_ssize_t key_value;
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        __Pyx_TypeName index_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(index));
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError,
            "cannot fit '" __Pyx_FMT_TYPENAME "' into an index-sized integer", index_type_name);
        __Pyx_DECREF_TypeName(index_type_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
    __Pyx_TypeName obj_type_name;
    if (likely(PyType_Check(obj))) {
        PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_mstate_global->__pyx_n_u_class_getitem);
        if (!meth) {
            PyErr_Clear();
        } else {
            PyObject *result = __Pyx_PyObject_CallOneArg(meth, key);
            Py_DECREF(meth);
            return result;
        }
    }
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "'" __Pyx_FMT_TYPENAME "' object is not subscriptable", obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
    PyTypeObject *tp = Py_TYPE(obj);
    PyMappingMethods *mm = tp->tp_as_mapping;
    PySequenceMethods *sm = tp->tp_as_sequence;
    if (likely(mm && mm->mp_subscript)) {
        return mm->mp_subscript(obj, key);
    }
    if (likely(sm && sm->sq_item)) {
        return __Pyx_PyObject_GetIndex(obj, key);
    }
    return __Pyx_PyObject_GetItem_Slow(obj, key);
}
#endif

/* 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

/* 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;
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return PyLong_FromLong(-intval);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a - b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla - llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_SubtractObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) - (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_SubtractObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_SubtractObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_SubtractObjC(op1, op2, inplace);
}
#endif

/* ErrOccurredWithGIL */
static CYTHON_INLINE int __Pyx_ErrOccurredWithGIL(void) {
  int err;
  PyGILState_STATE _save = PyGILState_Ensure();
  err = !!PyErr_Occurred();
  PyGILState_Release(_save);
  return err;
}

/* PySequenceMultiply */
#if CYTHON_USE_TYPE_SLOTS
static PyObject* __Pyx_PySequence_Multiply_Generic(PyObject *seq, Py_ssize_t mul) {
    PyObject *result, *pymul = PyLong_FromSsize_t(mul);
    if (unlikely(!pymul))
        return NULL;
    result = PyNumber_Multiply(seq, pymul);
    Py_DECREF(pymul);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PySequence_Multiply(PyObject *seq, Py_ssize_t mul) {
    PyTypeObject *type = Py_TYPE(seq);
    if (likely(type->tp_as_sequence && type->tp_as_sequence->sq_repeat)) {
        return type->tp_as_sequence->sq_repeat(seq, mul);
    } else {
        return __Pyx_PySequence_Multiply_Generic(seq, mul);
    }
}
#endif

/* 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);
}

/* ImportFrom */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        const char* module_name_str = 0;
        PyObject* module_name = 0;
        PyObject* module_dot = 0;
        PyObject* full_name = 0;
        PyErr_Clear();
        module_name_str = PyModule_GetName(module);
        if (unlikely(!module_name_str)) { goto modbad; }
        module_name = PyUnicode_FromString(module_name_str);
        if (unlikely(!module_name)) { goto modbad; }
        module_dot = PyUnicode_Concat(module_name, __pyx_mstate_global->__pyx_kp_u__7);
        if (unlikely(!module_dot)) { goto modbad; }
        full_name = PyUnicode_Concat(module_dot, name);
        if (unlikely(!full_name)) { goto modbad; }
        #if (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM  < 0x07030400) ||\
                CYTHON_COMPILING_IN_GRAAL
        {
            PyObject *modules = PyImport_GetModuleDict();
            if (unlikely(!modules))
                goto modbad;
            value = PyObject_GetItem(modules, full_name);
        }
        #else
        value = PyImport_GetModule(full_name);
        #endif
      modbad:
        Py_XDECREF(full_name);
        Py_XDECREF(module_dot);
        Py_XDECREF(module_name);
    }
    if (unlikely(!value)) {
        PyErr_Format(PyExc_ImportError, "cannot import name %S", name);
    }
    return value;
}

/* 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_3);
        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;
}

/* AllocateExtensionType */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final) {
    if (is_final || likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
        allocfunc alloc_func = __Pyx_PyType_GetSlot(t, tp_alloc, allocfunc);
        return alloc_func(t, 0);
    } else {
        newfunc tp_new = __Pyx_PyType_TryGetSlot(&PyBaseObject_Type, tp_new, newfunc);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (!tp_new) {
            PyObject *new_str = PyUnicode_FromString("__new__");
            if (likely(new_str)) {
                PyObject *o = PyObject_CallMethodObjArgs((PyObject *)&PyBaseObject_Type, new_str, t, NULL);
                Py_DECREF(new_str);
                return o;
            } else
                return NULL;
        } else
    #endif
        return tp_new(t, __pyx_mstate_global->__pyx_empty_tuple, 0);
    }
}

/* CallNextTpDealloc */
static void __Pyx_call_next_tp_dealloc(PyObject* obj, destructor current_tp_dealloc) {
    PyTypeObject* type = Py_TYPE(obj);
    destructor tp_dealloc = NULL;
    while (type && __Pyx_PyType_GetSlot(type, tp_dealloc, destructor) != current_tp_dealloc)
        type = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
    while (type && (tp_dealloc = __Pyx_PyType_GetSlot(type, tp_dealloc, destructor)) == current_tp_dealloc)
        type = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
    if (type)
        tp_dealloc(obj);
}

/* ValidateBasesTuple (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) {
    Py_ssize_t i, n;
#if CYTHON_ASSUME_SAFE_SIZE
    n = PyTuple_GET_SIZE(bases);
#else
    n = PyTuple_Size(bases);
    if (unlikely(n < 0)) return -1;
#endif
    for (i = 1; i < n; i++)
    {
        PyTypeObject *b;
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *b0 = PySequence_GetItem(bases, i);
        if (!b0) return -1;
#elif CYTHON_ASSUME_SAFE_MACROS
        PyObject *b0 = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *b0 = PyTuple_GetItem(bases, i);
        if (!b0) return -1;
#endif
        b = (PyTypeObject*) b0;
        if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE))
        {
            __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
            PyErr_Format(PyExc_TypeError,
                "base class '" __Pyx_FMT_TYPENAME "' is not a heap type", b_name);
            __Pyx_DECREF_TypeName(b_name);
#if CYTHON_AVOID_BORROWED_REFS
            Py_DECREF(b0);
#endif
            return -1;
        }
        if (dictoffset == 0)
        {
            Py_ssize_t b_dictoffset = 0;
#if CYTHON_USE_TYPE_SLOTS
            b_dictoffset = b->tp_dictoffset;
#else
            PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__");
            if (!py_b_dictoffset) goto dictoffset_return;
            b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset);
            Py_DECREF(py_b_dictoffset);
            if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return;
#endif
            if (b_dictoffset) {
                {
                    __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
                    PyErr_Format(PyExc_TypeError,
                        "extension type '%.200s' has no __dict__ slot, "
                        "but base type '" __Pyx_FMT_TYPENAME "' has: "
                        "either add 'cdef dict __dict__' to the extension type "
                        "or add '__slots__ = [...]' to the base type",
                        type_name, b_name);
                    __Pyx_DECREF_TypeName(b_name);
                }
#if !CYTHON_USE_TYPE_SLOTS
              dictoffset_return:
#endif
#if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(b0);
#endif
                return -1;
            }
        }
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(b0);
#endif
    }
    return 0;
}
#endif

/* PyType_Ready */
CYTHON_UNUSED static int __Pyx_PyType_HasMultipleInheritance(PyTypeObject *t) {
    while (t) {
        PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
        if (bases) {
            return 1;
        }
        t = __Pyx_PyType_GetSlot(t, tp_base, PyTypeObject*);
    }
    return 0;
}
static int __Pyx_PyType_Ready(PyTypeObject *t) {
#if CYTHON_USE_TYPE_SPECS || !CYTHON_COMPILING_IN_CPYTHON || defined(PYSTON_MAJOR_VERSION)
    (void)__Pyx_PyObject_CallMethod0;
#if CYTHON_USE_TYPE_SPECS
    (void)__Pyx_validate_bases_tuple;
#endif
    return PyType_Ready(t);
#else
    int r;
    if (!__Pyx_PyType_HasMultipleInheritance(t)) {
        return PyType_Ready(t);
    }
    PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
    if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1))
        return -1;
#if !defined(PYSTON_MAJOR_VERSION)
    {
        int gc_was_enabled;
    #if PY_VERSION_HEX >= 0x030A00b1
        gc_was_enabled = PyGC_Disable();
        (void)__Pyx_PyObject_CallMethod0;
    #else
        PyObject *ret, *py_status;
        PyObject *gc = NULL;
        #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) &&\
                !CYTHON_COMPILING_IN_GRAAL
        gc = PyImport_GetModule(__pyx_mstate_global->__pyx_kp_u_gc);
        #endif
        if (unlikely(!gc)) gc = PyImport_Import(__pyx_mstate_global->__pyx_kp_u_gc);
        if (unlikely(!gc)) return -1;
        py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_isenabled);
        if (unlikely(!py_status)) {
            Py_DECREF(gc);
            return -1;
        }
        gc_was_enabled = __Pyx_PyObject_IsTrue(py_status);
        Py_DECREF(py_status);
        if (gc_was_enabled > 0) {
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_disable);
            if (unlikely(!ret)) {
                Py_DECREF(gc);
                return -1;
            }
            Py_DECREF(ret);
        } else if (unlikely(gc_was_enabled == -1)) {
            Py_DECREF(gc);
            return -1;
        }
    #endif
        t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#if PY_VERSION_HEX >= 0x030A0000
        t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE;
#endif
#else
        (void)__Pyx_PyObject_CallMethod0;
#endif
    r = PyType_Ready(t);
#if !defined(PYSTON_MAJOR_VERSION)
        t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
    #if PY_VERSION_HEX >= 0x030A00b1
        if (gc_was_enabled)
            PyGC_Enable();
    #else
        if (gc_was_enabled) {
            PyObject *tp, *v, *tb;
            PyErr_Fetch(&tp, &v, &tb);
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_enable);
            if (likely(ret || r == -1)) {
                Py_XDECREF(ret);
                PyErr_Restore(tp, v, tb);
            } else {
                Py_XDECREF(tp);
                Py_XDECREF(v);
                Py_XDECREF(tb);
                r = -1;
            }
        }
        Py_DECREF(gc);
    #endif
    }
#endif
    return r;
#endif
}

/* DelItemOnTypeDict (used by SetupReduce) */
static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k) {
    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_DelItem(tp_dict, k);
    if (likely(!result)) PyType_Modified(tp);
    return result;
}

/* SetupReduce */
static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStrNoError(meth, __pyx_mstate_global->__pyx_n_u_name_3);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_getstate = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
    PyObject *getstate = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_getstate);
#else
    getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_getstate);
    if (!getstate && PyErr_Occurred()) {
        goto __PYX_BAD;
    }
#endif
    if (getstate) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_getstate);
#else
        object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_getstate);
        if (!object_getstate && PyErr_Occurred()) {
            goto __PYX_BAD;
        }
#endif
        if (object_getstate != getstate) {
            goto __PYX_GOOD;
        }
    }
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_mstate_global->__pyx_n_u_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_mstate_global->__pyx_n_u_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_reduce_cython);
            if (likely(reduce_cython)) {
                ret = __Pyx_SetItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = __Pyx_DelItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            } else if (reduce == object_reduce || PyErr_Occurred()) {
                goto __PYX_BAD;
            }
            setstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_mstate_global->__pyx_n_u_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_setstate_cython);
                if (likely(setstate_cython)) {
                    ret = __Pyx_SetItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                    ret = __Pyx_DelItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                } else if (!setstate || PyErr_Occurred()) {
                    goto __PYX_BAD;
                }
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred()) {
        __Pyx_TypeName type_obj_name =
            __Pyx_PyType_GetFullyQualifiedName((PyTypeObject*)type_obj);
        PyErr_Format(PyExc_RuntimeError,
            "Unable to initialize pickling for " __Pyx_FMT_TYPENAME, type_obj_name);
        __Pyx_DECREF_TypeName(type_obj_name);
    }
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
    Py_XDECREF(object_getstate);
    Py_XDECREF(getstate);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* TypeImport */
#ifndef __PYX_HAVE_RT_ImportType_3_2_2
#define __PYX_HAVE_RT_ImportType_3_2_2
static PyTypeObject *__Pyx_ImportType_3_2_2(PyObject *module, const char *module_name, const char *class_name,
    size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_2_2 check_size)
{
    PyObject *result = 0;
    Py_ssize_t basicsize;
    Py_ssize_t itemsize;
#if defined(Py_LIMITED_API) || (defined(CYTHON_COMPILING_IN_LIMITED_API) && CYTHON_COMPILING_IN_LIMITED_API)
    PyObject *py_basicsize;
    PyObject *py_itemsize;
#endif
    result = PyObject_GetAttrString(module, class_name);
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#if !( defined(Py_LIMITED_API) || (defined(CYTHON_COMPILING_IN_LIMITED_API) && CYTHON_COMPILING_IN_LIMITED_API) )
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
    itemsize = ((PyTypeObject *)result)->tp_itemsize;
#else
    if (size == 0) {
        return (PyTypeObject *)result;
    }
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
    py_itemsize = PyObject_GetAttrString(result, "__itemsize__");
    if (!py_itemsize)
        goto bad;
    itemsize = PyLong_AsSsize_t(py_itemsize);
    Py_DECREF(py_itemsize);
    py_itemsize = 0;
    if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if (itemsize) {
        if (size % alignment) {
            alignment = size % alignment;
        }
        if (itemsize < (Py_ssize_t)alignment)
            itemsize = (Py_ssize_t)alignment;
    }
    if ((size_t)(basicsize + itemsize) < size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize+itemsize);
        goto bad;
    }
    if (check_size == __Pyx_ImportType_CheckSize_Error_3_2_2 &&
            ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd-%zd from PyObject",
            module_name, class_name, size, basicsize, basicsize+itemsize);
        goto bad;
    }
    else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_2_2 && (size_t)basicsize > size) {
        if (PyErr_WarnFormat(NULL, 0,
                "%.200s.%.200s size changed, may indicate binary incompatibility. "
                "Expected %zd from C header, got %zd from PyObject",
                module_name, class_name, size, basicsize) < 0) {
            goto bad;
        }
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(result);
    return NULL;
}
#endif

/* PxdImportShared (used by FunctionImport) */
#ifndef __PYX_HAVE_RT_ImportFromPxd_3_2_2
#define __PYX_HAVE_RT_ImportFromPxd_3_2_2
static int __Pyx_ImportFromPxd_3_2_2(PyObject *module, const char *name, void **p, const char *sig, const char *what) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    d = PyObject_GetAttrString(module, "__pyx_capi__");
    if (!d)
        goto bad;
#if (defined(Py_LIMITED_API) && Py_LIMITED_API >= 0x030d0000) || (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000)
    PyDict_GetItemStringRef(d, name, &cobj);
#else
    cobj = PyDict_GetItemString(d, name);
    Py_XINCREF(cobj);
#endif
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C %.8s %.200s",
                PyModule_GetName(module), what, name);
        goto bad;
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C %.8s %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             what, PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    *p = PyCapsule_GetPointer(cobj, sig);
    if (!(*p))
        goto bad;
    Py_DECREF(d);
    Py_DECREF(cobj);
    return 0;
bad:
    Py_XDECREF(d);
    Py_XDECREF(cobj);
    return -1;
}
#endif

/* FunctionImport */
#ifndef __PYX_HAVE_RT_ImportFunction_3_2_2
#define __PYX_HAVE_RT_ImportFunction_3_2_2
static int __Pyx_ImportFunction_3_2_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    int result = __Pyx_ImportFromPxd_3_2_2(module, funcname, &tmp.p, sig, "function");
    if (result == 0) {
        *f = tmp.fp;
    }
    return result;
}
#endif

/* Py3UpdateBases */
static PyObject*
__Pyx_PEP560_update_bases(PyObject *bases)
{
    Py_ssize_t i, j, size_bases;
    PyObject *base = NULL, *meth, *new_base, *result, *new_bases = NULL;
#if CYTHON_ASSUME_SAFE_SIZE
    size_bases = PyTuple_GET_SIZE(bases);
#else
    size_bases = PyTuple_Size(bases);
    if (size_bases < 0) return NULL;
#endif
    for (i = 0; i < size_bases; i++) {
#if CYTHON_AVOID_BORROWED_REFS
        Py_CLEAR(base);
#endif
#if CYTHON_ASSUME_SAFE_MACROS
        base = PyTuple_GET_ITEM(bases, i);
#else
        base = PyTuple_GetItem(bases, i);
        if (!base) goto error;
#endif
#if CYTHON_AVOID_BORROWED_REFS
        Py_INCREF(base);
#endif
        if (PyType_Check(base)) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        meth = __Pyx_PyObject_GetAttrStrNoError(base, __pyx_mstate_global->__pyx_n_u_mro_entries);
        if (!meth && PyErr_Occurred()) {
            goto error;
        }
        if (!meth) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        new_base = __Pyx_PyObject_CallOneArg(meth, bases);
        Py_DECREF(meth);
        if (!new_base) {
            goto error;
        }
        if (!PyTuple_Check(new_base)) {
            PyErr_SetString(PyExc_TypeError,
                            "__mro_entries__ must return a tuple");
            Py_DECREF(new_base);
            goto error;
        }
        if (!new_bases) {
            if (!(new_bases = PyList_New(i))) {
                goto error;
            }
            for (j = 0; j < i; j++) {
                PyObject *base_from_list;
#if CYTHON_ASSUME_SAFE_MACROS
                base_from_list = PyTuple_GET_ITEM(bases, j);
                PyList_SET_ITEM(new_bases, j, base_from_list);
                Py_INCREF(base_from_list);
#else
                base_from_list = PyTuple_GetItem(bases, j);
                if (!base_from_list) goto error;
                Py_INCREF(base_from_list);
                if (PyList_SetItem(new_bases, j, base_from_list) < 0) goto error;
#endif
            }
        }
#if CYTHON_ASSUME_SAFE_SIZE
        j = PyList_GET_SIZE(new_bases);
#else
        j = PyList_Size(new_bases);
        if (j < 0) goto error;
#endif
        if (PyList_SetSlice(new_bases, j, j, new_base) < 0) {
            goto error;
        }
        Py_DECREF(new_base);
    }
    if (!new_bases) {
        Py_INCREF(bases);
        return bases;
    }
    result = PyList_AsTuple(new_bases);
    Py_DECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return result;
error:
    Py_XDECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return NULL;
}

/* CalculateMetaclass */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases;
#if CYTHON_ASSUME_SAFE_SIZE
    nbases = PyTuple_GET_SIZE(bases);
#else
    nbases = PyTuple_Size(bases);
    if (nbases < 0) return NULL;
#endif
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
#if CYTHON_ASSUME_SAFE_MACROS
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *tmp = PyTuple_GetItem(bases, i);
        if (!tmp) return NULL;
#endif
        tmptype = Py_TYPE(tmp);
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
        metaclass = &PyType_Type;
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

/* PyObjectCall2Args (used by Py3ClassCreate) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args[3] = {NULL, arg1, arg2};
    return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectLookupSpecial (used by Py3ClassCreate) */
#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

/* Py3ClassCreate */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
    PyObject *ns;
    if (metaclass) {
        PyObject *prep = __Pyx_PyObject_GetAttrStrNoError(metaclass, __pyx_mstate_global->__pyx_n_u_prepare);
        if (prep) {
            PyObject *pargs[3] = {NULL, name, bases};
            ns = __Pyx_PyObject_FastCallDict(prep, pargs+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
            Py_DECREF(prep);
        } else {
            if (unlikely(PyErr_Occurred()))
                return NULL;
            ns = PyDict_New();
        }
    } else {
        ns = PyDict_New();
    }
    if (unlikely(!ns))
        return NULL;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_module, modname) < 0)) goto bad;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_qualname, qualname) < 0)) goto bad;
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_doc, doc) < 0)) goto bad;
    return ns;
bad:
    Py_DECREF(ns);
    return NULL;
}
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
                                      PyObject *dict, PyObject *mkw,
                                      int calculate_metaclass, int allow_py2_metaclass) {
    PyObject *result;
    PyObject *owned_metaclass = NULL;
    PyObject *margs[4] = {NULL, name, bases, dict};
    if (allow_py2_metaclass) {
        owned_metaclass = PyObject_GetItem(dict, __pyx_mstate_global->__pyx_n_u_metaclass);
        if (owned_metaclass) {
            metaclass = owned_metaclass;
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
            PyErr_Clear();
        } else {
            return NULL;
        }
    }
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
        Py_XDECREF(owned_metaclass);
        if (unlikely(!metaclass))
            return NULL;
        owned_metaclass = metaclass;
    }
    result = __Pyx_PyObject_FastCallDict(metaclass, margs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
    Py_XDECREF(owned_metaclass);
    return result;
}

/* 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

/* CIntFromPyVerify */
#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;\
    }

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From___pyx_anon_enum(int value) {
#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 (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= 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(int),
                                     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(int));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaError(enum cudaError value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaError neg_one = (enum cudaError) -1, const_zero = (enum cudaError) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaError) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaError) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaError) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaError) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaError) <= 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(enum cudaError),
                                     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(enum cudaError));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphDependencyType_enum(enum cudaGraphDependencyType_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphDependencyType_enum neg_one = (enum cudaGraphDependencyType_enum) -1, const_zero = (enum cudaGraphDependencyType_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphDependencyType_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphDependencyType_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphDependencyType_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphDependencyType_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphDependencyType_enum) <= 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(enum cudaGraphDependencyType_enum),
                                     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(enum cudaGraphDependencyType_enum));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphInstantiateResult(enum cudaGraphInstantiateResult value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphInstantiateResult neg_one = (enum cudaGraphInstantiateResult) -1, const_zero = (enum cudaGraphInstantiateResult) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphInstantiateResult) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphInstantiateResult) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphInstantiateResult) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphInstantiateResult) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphInstantiateResult) <= 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(enum cudaGraphInstantiateResult),
                                     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(enum cudaGraphInstantiateResult));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaLaunchMemSyncDomain(enum cudaLaunchMemSyncDomain value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaLaunchMemSyncDomain neg_one = (enum cudaLaunchMemSyncDomain) -1, const_zero = (enum cudaLaunchMemSyncDomain) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaLaunchMemSyncDomain) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaLaunchMemSyncDomain) <= 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(enum cudaLaunchMemSyncDomain),
                                     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(enum cudaLaunchMemSyncDomain));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaLaunchAttributeID(enum cudaLaunchAttributeID value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaLaunchAttributeID neg_one = (enum cudaLaunchAttributeID) -1, const_zero = (enum cudaLaunchAttributeID) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaLaunchAttributeID) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaLaunchAttributeID) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaLaunchAttributeID) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaLaunchAttributeID) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaLaunchAttributeID) <= 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(enum cudaLaunchAttributeID),
                                     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(enum cudaLaunchAttributeID));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaAsyncNotificationType_enum(enum cudaAsyncNotificationType_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaAsyncNotificationType_enum neg_one = (enum cudaAsyncNotificationType_enum) -1, const_zero = (enum cudaAsyncNotificationType_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaAsyncNotificationType_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaAsyncNotificationType_enum) <= 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(enum cudaAsyncNotificationType_enum),
                                     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(enum cudaAsyncNotificationType_enum));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUDAlogLevel_enum(enum CUDAlogLevel_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUDAlogLevel_enum neg_one = (enum CUDAlogLevel_enum) -1, const_zero = (enum CUDAlogLevel_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum CUDAlogLevel_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUDAlogLevel_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum CUDAlogLevel_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum CUDAlogLevel_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUDAlogLevel_enum) <= 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(enum CUDAlogLevel_enum),
                                     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(enum CUDAlogLevel_enum));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDataType_t(enum cudaDataType_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDataType_t neg_one = (enum cudaDataType_t) -1, const_zero = (enum cudaDataType_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDataType_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDataType_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDataType_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDataType_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDataType_t) <= 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(enum cudaDataType_t),
                                     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(enum cudaDataType_t));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaEmulationStrategy_t(enum cudaEmulationStrategy_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaEmulationStrategy_t neg_one = (enum cudaEmulationStrategy_t) -1, const_zero = (enum cudaEmulationStrategy_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaEmulationStrategy_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaEmulationStrategy_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaEmulationStrategy_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaEmulationStrategy_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaEmulationStrategy_t) <= 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(enum cudaEmulationStrategy_t),
                                     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(enum cudaEmulationStrategy_t));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaEmulationMantissaControl_t(enum cudaEmulationMantissaControl_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaEmulationMantissaControl_t neg_one = (enum cudaEmulationMantissaControl_t) -1, const_zero = (enum cudaEmulationMantissaControl_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaEmulationMantissaControl_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaEmulationMantissaControl_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaEmulationMantissaControl_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaEmulationMantissaControl_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaEmulationMantissaControl_t) <= 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(enum cudaEmulationMantissaControl_t),
                                     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(enum cudaEmulationMantissaControl_t));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaEmulationSpecialValuesSupport_t(enum cudaEmulationSpecialValuesSupport_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaEmulationSpecialValuesSupport_t neg_one = (enum cudaEmulationSpecialValuesSupport_t) -1, const_zero = (enum cudaEmulationSpecialValuesSupport_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaEmulationSpecialValuesSupport_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaEmulationSpecialValuesSupport_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaEmulationSpecialValuesSupport_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaEmulationSpecialValuesSupport_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaEmulationSpecialValuesSupport_t) <= 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(enum cudaEmulationSpecialValuesSupport_t),
                                     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(enum cudaEmulationSpecialValuesSupport_t));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__libraryPropertyType_t(enum libraryPropertyType_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum libraryPropertyType_t neg_one = (enum libraryPropertyType_t) -1, const_zero = (enum libraryPropertyType_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum libraryPropertyType_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum libraryPropertyType_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum libraryPropertyType_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum libraryPropertyType_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum libraryPropertyType_t) <= 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(enum libraryPropertyType_t),
                                     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(enum libraryPropertyType_t));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum neg_one = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) -1, const_zero = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) <= 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum),
                                     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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum neg_one = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum) -1, const_zero = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum) <= 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum),
                                     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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglResourceLocationFlags_enum));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum neg_one = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) -1, const_zero = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) <= 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum),
                                     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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaChannelFormatKind(enum cudaChannelFormatKind value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaChannelFormatKind neg_one = (enum cudaChannelFormatKind) -1, const_zero = (enum cudaChannelFormatKind) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaChannelFormatKind) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaChannelFormatKind) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaChannelFormatKind) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaChannelFormatKind) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaChannelFormatKind) <= 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(enum cudaChannelFormatKind),
                                     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(enum cudaChannelFormatKind));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemoryType(enum cudaMemoryType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemoryType neg_one = (enum cudaMemoryType) -1, const_zero = (enum cudaMemoryType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemoryType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemoryType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemoryType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemoryType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemoryType) <= 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(enum cudaMemoryType),
                                     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(enum cudaMemoryType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemcpyKind(enum cudaMemcpyKind value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemcpyKind neg_one = (enum cudaMemcpyKind) -1, const_zero = (enum cudaMemcpyKind) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemcpyKind) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemcpyKind) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemcpyKind) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemcpyKind) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemcpyKind) <= 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(enum cudaMemcpyKind),
                                     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(enum cudaMemcpyKind));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaAccessProperty(enum cudaAccessProperty value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaAccessProperty neg_one = (enum cudaAccessProperty) -1, const_zero = (enum cudaAccessProperty) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaAccessProperty) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaAccessProperty) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaAccessProperty) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaAccessProperty) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaAccessProperty) <= 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(enum cudaAccessProperty),
                                     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(enum cudaAccessProperty));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaStreamCaptureStatus(enum cudaStreamCaptureStatus value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaStreamCaptureStatus neg_one = (enum cudaStreamCaptureStatus) -1, const_zero = (enum cudaStreamCaptureStatus) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaStreamCaptureStatus) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaStreamCaptureStatus) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaStreamCaptureStatus) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaStreamCaptureStatus) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaStreamCaptureStatus) <= 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(enum cudaStreamCaptureStatus),
                                     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(enum cudaStreamCaptureStatus));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaStreamCaptureMode(enum cudaStreamCaptureMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaStreamCaptureMode neg_one = (enum cudaStreamCaptureMode) -1, const_zero = (enum cudaStreamCaptureMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaStreamCaptureMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaStreamCaptureMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaStreamCaptureMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaStreamCaptureMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaStreamCaptureMode) <= 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(enum cudaStreamCaptureMode),
                                     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(enum cudaStreamCaptureMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSynchronizationPolicy(enum cudaSynchronizationPolicy value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaSynchronizationPolicy neg_one = (enum cudaSynchronizationPolicy) -1, const_zero = (enum cudaSynchronizationPolicy) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaSynchronizationPolicy) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSynchronizationPolicy) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaSynchronizationPolicy) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaSynchronizationPolicy) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSynchronizationPolicy) <= 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(enum cudaSynchronizationPolicy),
                                     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(enum cudaSynchronizationPolicy));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaClusterSchedulingPolicy(enum cudaClusterSchedulingPolicy value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaClusterSchedulingPolicy neg_one = (enum cudaClusterSchedulingPolicy) -1, const_zero = (enum cudaClusterSchedulingPolicy) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaClusterSchedulingPolicy) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaClusterSchedulingPolicy) <= 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(enum cudaClusterSchedulingPolicy),
                                     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(enum cudaClusterSchedulingPolicy));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaStreamUpdateCaptureDependenciesFlags(enum cudaStreamUpdateCaptureDependenciesFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaStreamUpdateCaptureDependenciesFlags neg_one = (enum cudaStreamUpdateCaptureDependenciesFlags) -1, const_zero = (enum cudaStreamUpdateCaptureDependenciesFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaStreamUpdateCaptureDependenciesFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaStreamUpdateCaptureDependenciesFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaStreamUpdateCaptureDependenciesFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaStreamUpdateCaptureDependenciesFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaStreamUpdateCaptureDependenciesFlags) <= 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(enum cudaStreamUpdateCaptureDependenciesFlags),
                                     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(enum cudaStreamUpdateCaptureDependenciesFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaUserObjectFlags(enum cudaUserObjectFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaUserObjectFlags neg_one = (enum cudaUserObjectFlags) -1, const_zero = (enum cudaUserObjectFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaUserObjectFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaUserObjectFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaUserObjectFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaUserObjectFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaUserObjectFlags) <= 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(enum cudaUserObjectFlags),
                                     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(enum cudaUserObjectFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaUserObjectRetainFlags(enum cudaUserObjectRetainFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaUserObjectRetainFlags neg_one = (enum cudaUserObjectRetainFlags) -1, const_zero = (enum cudaUserObjectRetainFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaUserObjectRetainFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaUserObjectRetainFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaUserObjectRetainFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaUserObjectRetainFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaUserObjectRetainFlags) <= 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(enum cudaUserObjectRetainFlags),
                                     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(enum cudaUserObjectRetainFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphicsRegisterFlags(enum cudaGraphicsRegisterFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphicsRegisterFlags neg_one = (enum cudaGraphicsRegisterFlags) -1, const_zero = (enum cudaGraphicsRegisterFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphicsRegisterFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphicsRegisterFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphicsRegisterFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphicsRegisterFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphicsRegisterFlags) <= 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(enum cudaGraphicsRegisterFlags),
                                     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(enum cudaGraphicsRegisterFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphicsMapFlags(enum cudaGraphicsMapFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphicsMapFlags neg_one = (enum cudaGraphicsMapFlags) -1, const_zero = (enum cudaGraphicsMapFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphicsMapFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphicsMapFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphicsMapFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphicsMapFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphicsMapFlags) <= 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(enum cudaGraphicsMapFlags),
                                     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(enum cudaGraphicsMapFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphicsCubeFace(enum cudaGraphicsCubeFace value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphicsCubeFace neg_one = (enum cudaGraphicsCubeFace) -1, const_zero = (enum cudaGraphicsCubeFace) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphicsCubeFace) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphicsCubeFace) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphicsCubeFace) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphicsCubeFace) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphicsCubeFace) <= 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(enum cudaGraphicsCubeFace),
                                     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(enum cudaGraphicsCubeFace));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaResourceType(enum cudaResourceType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaResourceType neg_one = (enum cudaResourceType) -1, const_zero = (enum cudaResourceType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaResourceType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaResourceType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaResourceType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaResourceType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaResourceType) <= 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(enum cudaResourceType),
                                     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(enum cudaResourceType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaResourceViewFormat(enum cudaResourceViewFormat value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaResourceViewFormat neg_one = (enum cudaResourceViewFormat) -1, const_zero = (enum cudaResourceViewFormat) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaResourceViewFormat) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaResourceViewFormat) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaResourceViewFormat) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaResourceViewFormat) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaResourceViewFormat) <= 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(enum cudaResourceViewFormat),
                                     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(enum cudaResourceViewFormat));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFuncAttribute(enum cudaFuncAttribute value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFuncAttribute neg_one = (enum cudaFuncAttribute) -1, const_zero = (enum cudaFuncAttribute) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaFuncAttribute) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFuncAttribute) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaFuncAttribute) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaFuncAttribute) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFuncAttribute) <= 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(enum cudaFuncAttribute),
                                     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(enum cudaFuncAttribute));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFuncCache(enum cudaFuncCache value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFuncCache neg_one = (enum cudaFuncCache) -1, const_zero = (enum cudaFuncCache) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaFuncCache) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFuncCache) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaFuncCache) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaFuncCache) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFuncCache) <= 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(enum cudaFuncCache),
                                     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(enum cudaFuncCache));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSharedMemConfig(enum cudaSharedMemConfig value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaSharedMemConfig neg_one = (enum cudaSharedMemConfig) -1, const_zero = (enum cudaSharedMemConfig) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaSharedMemConfig) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSharedMemConfig) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaSharedMemConfig) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaSharedMemConfig) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSharedMemConfig) <= 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(enum cudaSharedMemConfig),
                                     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(enum cudaSharedMemConfig));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSharedCarveout(enum cudaSharedCarveout value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaSharedCarveout neg_one = (enum cudaSharedCarveout) -1, const_zero = (enum cudaSharedCarveout) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaSharedCarveout) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSharedCarveout) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaSharedCarveout) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaSharedCarveout) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSharedCarveout) <= 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(enum cudaSharedCarveout),
                                     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(enum cudaSharedCarveout));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaComputeMode(enum cudaComputeMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaComputeMode neg_one = (enum cudaComputeMode) -1, const_zero = (enum cudaComputeMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaComputeMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaComputeMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaComputeMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaComputeMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaComputeMode) <= 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(enum cudaComputeMode),
                                     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(enum cudaComputeMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaLimit(enum cudaLimit value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaLimit neg_one = (enum cudaLimit) -1, const_zero = (enum cudaLimit) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaLimit) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaLimit) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaLimit) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaLimit) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaLimit) <= 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(enum cudaLimit),
                                     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(enum cudaLimit));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemoryAdvise(enum cudaMemoryAdvise value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemoryAdvise neg_one = (enum cudaMemoryAdvise) -1, const_zero = (enum cudaMemoryAdvise) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemoryAdvise) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemoryAdvise) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemoryAdvise) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemoryAdvise) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemoryAdvise) <= 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(enum cudaMemoryAdvise),
                                     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(enum cudaMemoryAdvise));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemRangeAttribute(enum cudaMemRangeAttribute value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemRangeAttribute neg_one = (enum cudaMemRangeAttribute) -1, const_zero = (enum cudaMemRangeAttribute) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemRangeAttribute) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemRangeAttribute) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemRangeAttribute) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemRangeAttribute) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemRangeAttribute) <= 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(enum cudaMemRangeAttribute),
                                     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(enum cudaMemRangeAttribute));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesOptions(enum cudaFlushGPUDirectRDMAWritesOptions value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFlushGPUDirectRDMAWritesOptions neg_one = (enum cudaFlushGPUDirectRDMAWritesOptions) -1, const_zero = (enum cudaFlushGPUDirectRDMAWritesOptions) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaFlushGPUDirectRDMAWritesOptions) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesOptions) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesOptions) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaFlushGPUDirectRDMAWritesOptions) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesOptions) <= 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(enum cudaFlushGPUDirectRDMAWritesOptions),
                                     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(enum cudaFlushGPUDirectRDMAWritesOptions));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGPUDirectRDMAWritesOrdering(enum cudaGPUDirectRDMAWritesOrdering value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGPUDirectRDMAWritesOrdering neg_one = (enum cudaGPUDirectRDMAWritesOrdering) -1, const_zero = (enum cudaGPUDirectRDMAWritesOrdering) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGPUDirectRDMAWritesOrdering) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGPUDirectRDMAWritesOrdering) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGPUDirectRDMAWritesOrdering) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGPUDirectRDMAWritesOrdering) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGPUDirectRDMAWritesOrdering) <= 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(enum cudaGPUDirectRDMAWritesOrdering),
                                     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(enum cudaGPUDirectRDMAWritesOrdering));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesScope(enum cudaFlushGPUDirectRDMAWritesScope value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFlushGPUDirectRDMAWritesScope neg_one = (enum cudaFlushGPUDirectRDMAWritesScope) -1, const_zero = (enum cudaFlushGPUDirectRDMAWritesScope) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaFlushGPUDirectRDMAWritesScope) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= 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(enum cudaFlushGPUDirectRDMAWritesScope),
                                     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(enum cudaFlushGPUDirectRDMAWritesScope));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaFlushGPUDirectRDMAWritesTarget(enum cudaFlushGPUDirectRDMAWritesTarget value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFlushGPUDirectRDMAWritesTarget neg_one = (enum cudaFlushGPUDirectRDMAWritesTarget) -1, const_zero = (enum cudaFlushGPUDirectRDMAWritesTarget) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= 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(enum cudaFlushGPUDirectRDMAWritesTarget),
                                     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(enum cudaFlushGPUDirectRDMAWritesTarget));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDeviceAttr(enum cudaDeviceAttr value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDeviceAttr neg_one = (enum cudaDeviceAttr) -1, const_zero = (enum cudaDeviceAttr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDeviceAttr) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDeviceAttr) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDeviceAttr) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDeviceAttr) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDeviceAttr) <= 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(enum cudaDeviceAttr),
                                     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(enum cudaDeviceAttr));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemPoolAttr(enum cudaMemPoolAttr value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemPoolAttr neg_one = (enum cudaMemPoolAttr) -1, const_zero = (enum cudaMemPoolAttr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemPoolAttr) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemPoolAttr) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemPoolAttr) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemPoolAttr) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemPoolAttr) <= 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(enum cudaMemPoolAttr),
                                     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(enum cudaMemPoolAttr));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemLocationType(enum cudaMemLocationType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemLocationType neg_one = (enum cudaMemLocationType) -1, const_zero = (enum cudaMemLocationType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemLocationType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemLocationType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemLocationType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemLocationType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemLocationType) <= 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(enum cudaMemLocationType),
                                     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(enum cudaMemLocationType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemAccessFlags(enum cudaMemAccessFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemAccessFlags neg_one = (enum cudaMemAccessFlags) -1, const_zero = (enum cudaMemAccessFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemAccessFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemAccessFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemAccessFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemAccessFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemAccessFlags) <= 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(enum cudaMemAccessFlags),
                                     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(enum cudaMemAccessFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemAllocationType(enum cudaMemAllocationType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemAllocationType neg_one = (enum cudaMemAllocationType) -1, const_zero = (enum cudaMemAllocationType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemAllocationType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemAllocationType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemAllocationType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemAllocationType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemAllocationType) <= 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(enum cudaMemAllocationType),
                                     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(enum cudaMemAllocationType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemAllocationHandleType(enum cudaMemAllocationHandleType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemAllocationHandleType neg_one = (enum cudaMemAllocationHandleType) -1, const_zero = (enum cudaMemAllocationHandleType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemAllocationHandleType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemAllocationHandleType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemAllocationHandleType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemAllocationHandleType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemAllocationHandleType) <= 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(enum cudaMemAllocationHandleType),
                                     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(enum cudaMemAllocationHandleType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphMemAttributeType(enum cudaGraphMemAttributeType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphMemAttributeType neg_one = (enum cudaGraphMemAttributeType) -1, const_zero = (enum cudaGraphMemAttributeType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphMemAttributeType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphMemAttributeType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphMemAttributeType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphMemAttributeType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphMemAttributeType) <= 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(enum cudaGraphMemAttributeType),
                                     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(enum cudaGraphMemAttributeType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemcpyFlags(enum cudaMemcpyFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemcpyFlags neg_one = (enum cudaMemcpyFlags) -1, const_zero = (enum cudaMemcpyFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemcpyFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemcpyFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemcpyFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemcpyFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemcpyFlags) <= 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(enum cudaMemcpyFlags),
                                     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(enum cudaMemcpyFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemcpySrcAccessOrder(enum cudaMemcpySrcAccessOrder value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemcpySrcAccessOrder neg_one = (enum cudaMemcpySrcAccessOrder) -1, const_zero = (enum cudaMemcpySrcAccessOrder) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemcpySrcAccessOrder) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemcpySrcAccessOrder) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemcpySrcAccessOrder) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemcpySrcAccessOrder) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemcpySrcAccessOrder) <= 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(enum cudaMemcpySrcAccessOrder),
                                     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(enum cudaMemcpySrcAccessOrder));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaMemcpy3DOperandType(enum cudaMemcpy3DOperandType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemcpy3DOperandType neg_one = (enum cudaMemcpy3DOperandType) -1, const_zero = (enum cudaMemcpy3DOperandType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaMemcpy3DOperandType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemcpy3DOperandType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaMemcpy3DOperandType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaMemcpy3DOperandType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaMemcpy3DOperandType) <= 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(enum cudaMemcpy3DOperandType),
                                     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(enum cudaMemcpy3DOperandType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDeviceP2PAttr(enum cudaDeviceP2PAttr value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDeviceP2PAttr neg_one = (enum cudaDeviceP2PAttr) -1, const_zero = (enum cudaDeviceP2PAttr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDeviceP2PAttr) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDeviceP2PAttr) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDeviceP2PAttr) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDeviceP2PAttr) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDeviceP2PAttr) <= 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(enum cudaDeviceP2PAttr),
                                     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(enum cudaDeviceP2PAttr));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaAtomicOperation(enum cudaAtomicOperation value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaAtomicOperation neg_one = (enum cudaAtomicOperation) -1, const_zero = (enum cudaAtomicOperation) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaAtomicOperation) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaAtomicOperation) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaAtomicOperation) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaAtomicOperation) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaAtomicOperation) <= 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(enum cudaAtomicOperation),
                                     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(enum cudaAtomicOperation));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaExternalMemoryHandleType(enum cudaExternalMemoryHandleType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaExternalMemoryHandleType neg_one = (enum cudaExternalMemoryHandleType) -1, const_zero = (enum cudaExternalMemoryHandleType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaExternalMemoryHandleType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaExternalMemoryHandleType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaExternalMemoryHandleType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaExternalMemoryHandleType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaExternalMemoryHandleType) <= 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(enum cudaExternalMemoryHandleType),
                                     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(enum cudaExternalMemoryHandleType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaExternalSemaphoreHandleType(enum cudaExternalSemaphoreHandleType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaExternalSemaphoreHandleType neg_one = (enum cudaExternalSemaphoreHandleType) -1, const_zero = (enum cudaExternalSemaphoreHandleType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaExternalSemaphoreHandleType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaExternalSemaphoreHandleType) <= 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(enum cudaExternalSemaphoreHandleType),
                                     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(enum cudaExternalSemaphoreHandleType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDevSmResourceGroup_flags(enum cudaDevSmResourceGroup_flags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDevSmResourceGroup_flags neg_one = (enum cudaDevSmResourceGroup_flags) -1, const_zero = (enum cudaDevSmResourceGroup_flags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDevSmResourceGroup_flags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDevSmResourceGroup_flags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDevSmResourceGroup_flags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDevSmResourceGroup_flags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDevSmResourceGroup_flags) <= 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(enum cudaDevSmResourceGroup_flags),
                                     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(enum cudaDevSmResourceGroup_flags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDevSmResourceSplitByCount_flags(enum cudaDevSmResourceSplitByCount_flags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDevSmResourceSplitByCount_flags neg_one = (enum cudaDevSmResourceSplitByCount_flags) -1, const_zero = (enum cudaDevSmResourceSplitByCount_flags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDevSmResourceSplitByCount_flags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDevSmResourceSplitByCount_flags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDevSmResourceSplitByCount_flags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDevSmResourceSplitByCount_flags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDevSmResourceSplitByCount_flags) <= 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(enum cudaDevSmResourceSplitByCount_flags),
                                     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(enum cudaDevSmResourceSplitByCount_flags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDevResourceType(enum cudaDevResourceType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDevResourceType neg_one = (enum cudaDevResourceType) -1, const_zero = (enum cudaDevResourceType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDevResourceType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDevResourceType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDevResourceType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDevResourceType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDevResourceType) <= 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(enum cudaDevResourceType),
                                     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(enum cudaDevResourceType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDevWorkqueueConfigScope(enum cudaDevWorkqueueConfigScope value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDevWorkqueueConfigScope neg_one = (enum cudaDevWorkqueueConfigScope) -1, const_zero = (enum cudaDevWorkqueueConfigScope) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDevWorkqueueConfigScope) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDevWorkqueueConfigScope) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDevWorkqueueConfigScope) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDevWorkqueueConfigScope) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDevWorkqueueConfigScope) <= 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(enum cudaDevWorkqueueConfigScope),
                                     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(enum cudaDevWorkqueueConfigScope));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaJitOption(enum cudaJitOption value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaJitOption neg_one = (enum cudaJitOption) -1, const_zero = (enum cudaJitOption) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaJitOption) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaJitOption) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaJitOption) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaJitOption) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaJitOption) <= 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(enum cudaJitOption),
                                     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(enum cudaJitOption));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaLibraryOption(enum cudaLibraryOption value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaLibraryOption neg_one = (enum cudaLibraryOption) -1, const_zero = (enum cudaLibraryOption) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaLibraryOption) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaLibraryOption) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaLibraryOption) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaLibraryOption) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaLibraryOption) <= 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(enum cudaLibraryOption),
                                     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(enum cudaLibraryOption));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaJit_CacheMode(enum cudaJit_CacheMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaJit_CacheMode neg_one = (enum cudaJit_CacheMode) -1, const_zero = (enum cudaJit_CacheMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaJit_CacheMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaJit_CacheMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaJit_CacheMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaJit_CacheMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaJit_CacheMode) <= 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(enum cudaJit_CacheMode),
                                     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(enum cudaJit_CacheMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaJit_Fallback(enum cudaJit_Fallback value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaJit_Fallback neg_one = (enum cudaJit_Fallback) -1, const_zero = (enum cudaJit_Fallback) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaJit_Fallback) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaJit_Fallback) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaJit_Fallback) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaJit_Fallback) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaJit_Fallback) <= 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(enum cudaJit_Fallback),
                                     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(enum cudaJit_Fallback));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaCGScope(enum cudaCGScope value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaCGScope neg_one = (enum cudaCGScope) -1, const_zero = (enum cudaCGScope) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaCGScope) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaCGScope) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaCGScope) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaCGScope) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaCGScope) <= 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(enum cudaCGScope),
                                     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(enum cudaCGScope));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphConditionalHandleFlags(enum cudaGraphConditionalHandleFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphConditionalHandleFlags neg_one = (enum cudaGraphConditionalHandleFlags) -1, const_zero = (enum cudaGraphConditionalHandleFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphConditionalHandleFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphConditionalHandleFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphConditionalHandleFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphConditionalHandleFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphConditionalHandleFlags) <= 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(enum cudaGraphConditionalHandleFlags),
                                     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(enum cudaGraphConditionalHandleFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphConditionalNodeType(enum cudaGraphConditionalNodeType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphConditionalNodeType neg_one = (enum cudaGraphConditionalNodeType) -1, const_zero = (enum cudaGraphConditionalNodeType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphConditionalNodeType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphConditionalNodeType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphConditionalNodeType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphConditionalNodeType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphConditionalNodeType) <= 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(enum cudaGraphConditionalNodeType),
                                     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(enum cudaGraphConditionalNodeType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphNodeType(enum cudaGraphNodeType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphNodeType neg_one = (enum cudaGraphNodeType) -1, const_zero = (enum cudaGraphNodeType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphNodeType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphNodeType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphNodeType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphNodeType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphNodeType) <= 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(enum cudaGraphNodeType),
                                     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(enum cudaGraphNodeType));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphChildGraphNodeOwnership(enum cudaGraphChildGraphNodeOwnership value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphChildGraphNodeOwnership neg_one = (enum cudaGraphChildGraphNodeOwnership) -1, const_zero = (enum cudaGraphChildGraphNodeOwnership) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphChildGraphNodeOwnership) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphChildGraphNodeOwnership) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphChildGraphNodeOwnership) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphChildGraphNodeOwnership) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphChildGraphNodeOwnership) <= 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(enum cudaGraphChildGraphNodeOwnership),
                                     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(enum cudaGraphChildGraphNodeOwnership));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphExecUpdateResult(enum cudaGraphExecUpdateResult value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphExecUpdateResult neg_one = (enum cudaGraphExecUpdateResult) -1, const_zero = (enum cudaGraphExecUpdateResult) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphExecUpdateResult) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphExecUpdateResult) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphExecUpdateResult) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphExecUpdateResult) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphExecUpdateResult) <= 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(enum cudaGraphExecUpdateResult),
                                     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(enum cudaGraphExecUpdateResult));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphKernelNodeField(enum cudaGraphKernelNodeField value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphKernelNodeField neg_one = (enum cudaGraphKernelNodeField) -1, const_zero = (enum cudaGraphKernelNodeField) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphKernelNodeField) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphKernelNodeField) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphKernelNodeField) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphKernelNodeField) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphKernelNodeField) <= 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(enum cudaGraphKernelNodeField),
                                     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(enum cudaGraphKernelNodeField));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGetDriverEntryPointFlags(enum cudaGetDriverEntryPointFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGetDriverEntryPointFlags neg_one = (enum cudaGetDriverEntryPointFlags) -1, const_zero = (enum cudaGetDriverEntryPointFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGetDriverEntryPointFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGetDriverEntryPointFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGetDriverEntryPointFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGetDriverEntryPointFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGetDriverEntryPointFlags) <= 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(enum cudaGetDriverEntryPointFlags),
                                     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(enum cudaGetDriverEntryPointFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDriverEntryPointQueryResult(enum cudaDriverEntryPointQueryResult value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDriverEntryPointQueryResult neg_one = (enum cudaDriverEntryPointQueryResult) -1, const_zero = (enum cudaDriverEntryPointQueryResult) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDriverEntryPointQueryResult) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDriverEntryPointQueryResult) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDriverEntryPointQueryResult) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDriverEntryPointQueryResult) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDriverEntryPointQueryResult) <= 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(enum cudaDriverEntryPointQueryResult),
                                     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(enum cudaDriverEntryPointQueryResult));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphDebugDotFlags(enum cudaGraphDebugDotFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphDebugDotFlags neg_one = (enum cudaGraphDebugDotFlags) -1, const_zero = (enum cudaGraphDebugDotFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphDebugDotFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphDebugDotFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphDebugDotFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphDebugDotFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphDebugDotFlags) <= 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(enum cudaGraphDebugDotFlags),
                                     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(enum cudaGraphDebugDotFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaGraphInstantiateFlags(enum cudaGraphInstantiateFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphInstantiateFlags neg_one = (enum cudaGraphInstantiateFlags) -1, const_zero = (enum cudaGraphInstantiateFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaGraphInstantiateFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphInstantiateFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaGraphInstantiateFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaGraphInstantiateFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaGraphInstantiateFlags) <= 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(enum cudaGraphInstantiateFlags),
                                     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(enum cudaGraphInstantiateFlags));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaDeviceNumaConfig(enum cudaDeviceNumaConfig value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDeviceNumaConfig neg_one = (enum cudaDeviceNumaConfig) -1, const_zero = (enum cudaDeviceNumaConfig) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaDeviceNumaConfig) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDeviceNumaConfig) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaDeviceNumaConfig) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaDeviceNumaConfig) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaDeviceNumaConfig) <= 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(enum cudaDeviceNumaConfig),
                                     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(enum cudaDeviceNumaConfig));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSurfaceBoundaryMode(enum cudaSurfaceBoundaryMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaSurfaceBoundaryMode neg_one = (enum cudaSurfaceBoundaryMode) -1, const_zero = (enum cudaSurfaceBoundaryMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaSurfaceBoundaryMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSurfaceBoundaryMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaSurfaceBoundaryMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaSurfaceBoundaryMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSurfaceBoundaryMode) <= 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(enum cudaSurfaceBoundaryMode),
                                     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(enum cudaSurfaceBoundaryMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaSurfaceFormatMode(enum cudaSurfaceFormatMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaSurfaceFormatMode neg_one = (enum cudaSurfaceFormatMode) -1, const_zero = (enum cudaSurfaceFormatMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaSurfaceFormatMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSurfaceFormatMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaSurfaceFormatMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaSurfaceFormatMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaSurfaceFormatMode) <= 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(enum cudaSurfaceFormatMode),
                                     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(enum cudaSurfaceFormatMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaTextureAddressMode(enum cudaTextureAddressMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaTextureAddressMode neg_one = (enum cudaTextureAddressMode) -1, const_zero = (enum cudaTextureAddressMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaTextureAddressMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaTextureAddressMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaTextureAddressMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaTextureAddressMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaTextureAddressMode) <= 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(enum cudaTextureAddressMode),
                                     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(enum cudaTextureAddressMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaTextureFilterMode(enum cudaTextureFilterMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaTextureFilterMode neg_one = (enum cudaTextureFilterMode) -1, const_zero = (enum cudaTextureFilterMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaTextureFilterMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaTextureFilterMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaTextureFilterMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaTextureFilterMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaTextureFilterMode) <= 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(enum cudaTextureFilterMode),
                                     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(enum cudaTextureFilterMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaTextureReadMode(enum cudaTextureReadMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaTextureReadMode neg_one = (enum cudaTextureReadMode) -1, const_zero = (enum cudaTextureReadMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaTextureReadMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaTextureReadMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaTextureReadMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaTextureReadMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaTextureReadMode) <= 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(enum cudaTextureReadMode),
                                     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(enum cudaTextureReadMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__cudaRoundMode(enum cudaRoundMode value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaRoundMode neg_one = (enum cudaRoundMode) -1, const_zero = (enum cudaRoundMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum cudaRoundMode) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaRoundMode) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum cudaRoundMode) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum cudaRoundMode) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum cudaRoundMode) <= 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(enum cudaRoundMode),
                                     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(enum cudaRoundMode));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList neg_one = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) -1, const_zero = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) <= 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList),
                                     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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags neg_one = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags) -1, const_zero = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags) <= 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags),
                                     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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLMapFlags));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyLong_As_unsigned_PY_LONG_LONG(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG) -1, const_zero = (unsigned PY_LONG_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))) {
        unsigned PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned PY_LONG_LONG) -1;
        val = __Pyx_PyLong_As_unsigned_PY_LONG_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(unsigned PY_LONG_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(unsigned PY_LONG_LONG) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_LONG, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned PY_LONG_LONG) >= 2 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned PY_LONG_LONG) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_LONG, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned PY_LONG_LONG) >= 3 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned PY_LONG_LONG) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_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(unsigned PY_LONG_LONG) >= 4 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_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 (unsigned PY_LONG_LONG) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned PY_LONG_LONG, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned PY_LONG_LONG, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_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(unsigned PY_LONG_LONG) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_LONG, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) (((unsigned PY_LONG_LONG)-1)*(((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned PY_LONG_LONG) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_LONG, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) ((((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_LONG, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) (((unsigned PY_LONG_LONG)-1)*(((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned PY_LONG_LONG) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_LONG, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) ((((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_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(unsigned PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) (((unsigned PY_LONG_LONG)-1)*(((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned PY_LONG_LONG) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned PY_LONG_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(unsigned PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned PY_LONG_LONG) ((((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned PY_LONG_LONG) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned PY_LONG_LONG, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned PY_LONG_LONG) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned PY_LONG_LONG, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned PY_LONG_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 (unsigned PY_LONG_LONG) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned PY_LONG_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 (unsigned PY_LONG_LONG) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned PY_LONG_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(unsigned PY_LONG_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 |= ((unsigned PY_LONG_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(unsigned PY_LONG_LONG) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned PY_LONG_LONG) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned PY_LONG_LONG) 1) << (sizeof(unsigned PY_LONG_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 (unsigned PY_LONG_LONG) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned PY_LONG_LONG");
    return (unsigned PY_LONG_LONG) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned PY_LONG_LONG");
    return (unsigned PY_LONG_LONG) -1;
}

/* CIntFromPy */
static CYTHON_INLINE unsigned int __Pyx_PyLong_As_unsigned_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned 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))) {
        unsigned int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned int) -1;
        val = __Pyx_PyLong_As_unsigned_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(unsigned 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(unsigned int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT)) {
                            return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT)) {
                            return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) >= 4 * PyLong_SHIFT)) {
                            return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned 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 (unsigned int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned 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 (unsigned int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned 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 (unsigned int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned 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(unsigned 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 |= ((unsigned 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(unsigned int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned int) 1) << (sizeof(unsigned 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 (unsigned int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned int");
    return (unsigned int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned int");
    return (unsigned int) -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;
}

/* CIntFromPy */
static CYTHON_INLINE size_t __Pyx_PyLong_As_size_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const size_t neg_one = (size_t) -1, const_zero = (size_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        size_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (size_t) -1;
        val = __Pyx_PyLong_As_size_t(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(size_t, __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(size_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) >= 2 * PyLong_SHIFT)) {
                            return (size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(size_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) >= 3 * PyLong_SHIFT)) {
                            return (size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(size_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) >= 4 * PyLong_SHIFT)) {
                            return (size_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
#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 (size_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(size_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(size_t, __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(size_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(size_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(size_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((((((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(size_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (size_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
        if ((sizeof(size_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x))
        } else if ((sizeof(size_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        size_t 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 (size_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (size_t) -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 (size_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (size_t) 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(size_t) * 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 |= ((size_t) 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(size_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((size_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((size_t) 1) << (sizeof(size_t) * 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 (size_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to size_t");
    return (size_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to size_t");
    return (size_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE unsigned short __Pyx_PyLong_As_unsigned_short(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned short neg_one = (unsigned short) -1, const_zero = (unsigned short) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        unsigned short val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned short) -1;
        val = __Pyx_PyLong_As_unsigned_short(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(unsigned short, __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(unsigned short) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned short) >= 2 * PyLong_SHIFT)) {
                            return (unsigned short) (((((unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned short) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned short) >= 3 * PyLong_SHIFT)) {
                            return (unsigned short) (((((((unsigned short)digits[2]) << PyLong_SHIFT) | (unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned short) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, 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(unsigned short) >= 4 * PyLong_SHIFT)) {
                            return (unsigned short) (((((((((unsigned short)digits[3]) << PyLong_SHIFT) | (unsigned short)digits[2]) << PyLong_SHIFT) | (unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)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 (unsigned short) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned short) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned short, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned short) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned short, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned short, __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(unsigned short) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned short) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned short) (((unsigned short)-1)*(((((unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned short) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned short) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned short) ((((((unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned short) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned short) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned short) (((unsigned short)-1)*(((((((unsigned short)digits[2]) << PyLong_SHIFT) | (unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned short) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned short) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned short) ((((((((unsigned short)digits[2]) << PyLong_SHIFT) | (unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned short) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, 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(unsigned short) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned short) (((unsigned short)-1)*(((((((((unsigned short)digits[3]) << PyLong_SHIFT) | (unsigned short)digits[2]) << PyLong_SHIFT) | (unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned short) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned short, 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(unsigned short) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned short) ((((((((((unsigned short)digits[3]) << PyLong_SHIFT) | (unsigned short)digits[2]) << PyLong_SHIFT) | (unsigned short)digits[1]) << PyLong_SHIFT) | (unsigned short)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned short) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned short, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned short) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned short, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned short 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 (unsigned short) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned short) -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 (unsigned short) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned short) 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(unsigned short) * 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 |= ((unsigned short) 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(unsigned short) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned short) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned short) 1) << (sizeof(unsigned short) * 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 (unsigned short) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned short");
    return (unsigned short) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned short");
    return (unsigned short) -1;
}

/* CIntFromPy */
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyLong_As_PY_LONG_LONG(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const PY_LONG_LONG neg_one = (PY_LONG_LONG) -1, const_zero = (PY_LONG_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))) {
        PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (PY_LONG_LONG) -1;
        val = __Pyx_PyLong_As_PY_LONG_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(PY_LONG_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(PY_LONG_LONG) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(PY_LONG_LONG) >= 2 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) (((((PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(PY_LONG_LONG) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(PY_LONG_LONG) >= 3 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) (((((((PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(PY_LONG_LONG) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_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(PY_LONG_LONG) >= 4 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) (((((((((PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_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 (PY_LONG_LONG) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(PY_LONG_LONG) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(PY_LONG_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(PY_LONG_LONG) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) (((PY_LONG_LONG)-1)*(((((PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(PY_LONG_LONG) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) ((((((PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) (((PY_LONG_LONG)-1)*(((((((PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(PY_LONG_LONG) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) ((((((((PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_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(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) (((PY_LONG_LONG)-1)*(((((((((PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(PY_LONG_LONG) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_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(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT)) {
                            return (PY_LONG_LONG) ((((((((((PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(PY_LONG_LONG) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, long, PyLong_AsLong(x))
        } else if ((sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        PY_LONG_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 (PY_LONG_LONG) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (PY_LONG_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 (PY_LONG_LONG) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (PY_LONG_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(PY_LONG_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 |= ((PY_LONG_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(PY_LONG_LONG) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((PY_LONG_LONG) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((PY_LONG_LONG) 1) << (sizeof(PY_LONG_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 (PY_LONG_LONG) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to PY_LONG_LONG");
    return (PY_LONG_LONG) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to PY_LONG_LONG");
    return (PY_LONG_LONG) -1;
}

/* CIntFromPy */
static CYTHON_INLINE unsigned char __Pyx_PyLong_As_unsigned_char(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned char neg_one = (unsigned char) -1, const_zero = (unsigned char) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        unsigned char val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned char) -1;
        val = __Pyx_PyLong_As_unsigned_char(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(unsigned char, __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(unsigned char) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) >= 2 * PyLong_SHIFT)) {
                            return (unsigned char) (((((unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned char) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) >= 3 * PyLong_SHIFT)) {
                            return (unsigned char) (((((((unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned char) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, 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(unsigned char) >= 4 * PyLong_SHIFT)) {
                            return (unsigned char) (((((((((unsigned char)digits[3]) << PyLong_SHIFT) | (unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)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 (unsigned char) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned char) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned char, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned char) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned char, __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(unsigned char) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned char) (((unsigned char)-1)*(((((unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned char) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned char) ((((((unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned char) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned char) (((unsigned char)-1)*(((((((unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned char) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned char) ((((((((unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned char) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, 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(unsigned char) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned char) (((unsigned char)-1)*(((((((((unsigned char)digits[3]) << PyLong_SHIFT) | (unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned char) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, 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(unsigned char) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned char) ((((((((((unsigned char)digits[3]) << PyLong_SHIFT) | (unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned char) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned char, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned char) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned char, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned char 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 (unsigned char) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned char) -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 (unsigned char) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned char) 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(unsigned char) * 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 |= ((unsigned char) 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(unsigned char) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned char) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned char) 1) << (sizeof(unsigned char) * 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 (unsigned char) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned char");
    return (unsigned char) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned char");
    return (unsigned char) -1;
}

/* CIntFromPy */
static CYTHON_INLINE uint32_t __Pyx_PyLong_As_uint32_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint32_t neg_one = (uint32_t) -1, const_zero = (uint32_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        uint32_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (uint32_t) -1;
        val = __Pyx_PyLong_As_uint32_t(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(uint32_t, __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(uint32_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) >= 2 * PyLong_SHIFT)) {
                            return (uint32_t) (((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(uint32_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) >= 3 * PyLong_SHIFT)) {
                            return (uint32_t) (((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(uint32_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, 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(uint32_t) >= 4 * PyLong_SHIFT)) {
                            return (uint32_t) (((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)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 (uint32_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(uint32_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint32_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(uint32_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint32_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(uint32_t, __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(uint32_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (uint32_t) (((uint32_t)-1)*(((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(uint32_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (uint32_t) ((((((uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(uint32_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (uint32_t) (((uint32_t)-1)*(((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(uint32_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (uint32_t) ((((((((uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(uint32_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, 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(uint32_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (uint32_t) (((uint32_t)-1)*(((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(uint32_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(uint32_t, 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(uint32_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (uint32_t) ((((((((((uint32_t)digits[3]) << PyLong_SHIFT) | (uint32_t)digits[2]) << PyLong_SHIFT) | (uint32_t)digits[1]) << PyLong_SHIFT) | (uint32_t)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(uint32_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint32_t, long, PyLong_AsLong(x))
        } else if ((sizeof(uint32_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(uint32_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        uint32_t 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 (uint32_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (uint32_t) -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 (uint32_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (uint32_t) 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(uint32_t) * 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 |= ((uint32_t) 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(uint32_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((uint32_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((uint32_t) 1) << (sizeof(uint32_t) * 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 (uint32_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to uint32_t");
    return (uint32_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to uint32_t");
    return (uint32_t) -1;
}

/* 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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value) {
#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 (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= 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(int),
                                     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(int));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_PY_LONG_LONG(unsigned PY_LONG_LONG value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG) -1, const_zero = (unsigned PY_LONG_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(unsigned PY_LONG_LONG) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(unsigned PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned PY_LONG_LONG) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned PY_LONG_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(unsigned PY_LONG_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(unsigned PY_LONG_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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum CUmemPool_attribute_enum __Pyx_PyLong_As_enum__CUmemPool_attribute_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUmemPool_attribute_enum neg_one = (enum CUmemPool_attribute_enum) -1, const_zero = (enum CUmemPool_attribute_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUmemPool_attribute_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUmemPool_attribute_enum) -1;
        val = __Pyx_PyLong_As_enum__CUmemPool_attribute_enum(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(enum CUmemPool_attribute_enum, __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(enum CUmemPool_attribute_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemPool_attribute_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) (((((enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUmemPool_attribute_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemPool_attribute_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) (((((((enum CUmemPool_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUmemPool_attribute_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, 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(enum CUmemPool_attribute_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) (((((((((enum CUmemPool_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)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 (enum CUmemPool_attribute_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUmemPool_attribute_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmemPool_attribute_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUmemPool_attribute_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmemPool_attribute_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, __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(enum CUmemPool_attribute_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemPool_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) (((enum CUmemPool_attribute_enum)-1)*(((((enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUmemPool_attribute_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemPool_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) ((((((enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUmemPool_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemPool_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) (((enum CUmemPool_attribute_enum)-1)*(((((((enum CUmemPool_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUmemPool_attribute_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemPool_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) ((((((((enum CUmemPool_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUmemPool_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, 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(enum CUmemPool_attribute_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) (((enum CUmemPool_attribute_enum)-1)*(((((((((enum CUmemPool_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUmemPool_attribute_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemPool_attribute_enum, 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(enum CUmemPool_attribute_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUmemPool_attribute_enum) ((((((((((enum CUmemPool_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemPool_attribute_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUmemPool_attribute_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmemPool_attribute_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUmemPool_attribute_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmemPool_attribute_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUmemPool_attribute_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUmemPool_attribute_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUmemPool_attribute_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUmemPool_attribute_enum");
    return (enum CUmemPool_attribute_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUmemPool_attribute_enum");
    return (enum CUmemPool_attribute_enum) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUmemPool_attribute_enum(enum CUmemPool_attribute_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUmemPool_attribute_enum neg_one = (enum CUmemPool_attribute_enum) -1, const_zero = (enum CUmemPool_attribute_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum CUmemPool_attribute_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUmemPool_attribute_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum CUmemPool_attribute_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum CUmemPool_attribute_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUmemPool_attribute_enum) <= 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(enum CUmemPool_attribute_enum),
                                     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(enum CUmemPool_attribute_enum));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum CUmem_range_attribute_enum __Pyx_PyLong_As_enum__CUmem_range_attribute_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUmem_range_attribute_enum neg_one = (enum CUmem_range_attribute_enum) -1, const_zero = (enum CUmem_range_attribute_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUmem_range_attribute_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUmem_range_attribute_enum) -1;
        val = __Pyx_PyLong_As_enum__CUmem_range_attribute_enum(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(enum CUmem_range_attribute_enum, __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(enum CUmem_range_attribute_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmem_range_attribute_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) (((((enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUmem_range_attribute_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmem_range_attribute_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) (((((((enum CUmem_range_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUmem_range_attribute_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, 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(enum CUmem_range_attribute_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) (((((((((enum CUmem_range_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)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 (enum CUmem_range_attribute_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUmem_range_attribute_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmem_range_attribute_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUmem_range_attribute_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmem_range_attribute_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, __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(enum CUmem_range_attribute_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmem_range_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) (((enum CUmem_range_attribute_enum)-1)*(((((enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUmem_range_attribute_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmem_range_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) ((((((enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUmem_range_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmem_range_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) (((enum CUmem_range_attribute_enum)-1)*(((((((enum CUmem_range_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUmem_range_attribute_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmem_range_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) ((((((((enum CUmem_range_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUmem_range_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, 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(enum CUmem_range_attribute_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) (((enum CUmem_range_attribute_enum)-1)*(((((((((enum CUmem_range_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUmem_range_attribute_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmem_range_attribute_enum, 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(enum CUmem_range_attribute_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUmem_range_attribute_enum) ((((((((((enum CUmem_range_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUmem_range_attribute_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUmem_range_attribute_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmem_range_attribute_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUmem_range_attribute_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmem_range_attribute_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUmem_range_attribute_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUmem_range_attribute_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUmem_range_attribute_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUmem_range_attribute_enum");
    return (enum CUmem_range_attribute_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUmem_range_attribute_enum");
    return (enum CUmem_range_attribute_enum) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUmem_range_attribute_enum(enum CUmem_range_attribute_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUmem_range_attribute_enum neg_one = (enum CUmem_range_attribute_enum) -1, const_zero = (enum CUmem_range_attribute_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum CUmem_range_attribute_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUmem_range_attribute_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum CUmem_range_attribute_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum CUmem_range_attribute_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUmem_range_attribute_enum) <= 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(enum CUmem_range_attribute_enum),
                                     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(enum CUmem_range_attribute_enum));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum CUpointer_attribute_enum __Pyx_PyLong_As_enum__CUpointer_attribute_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUpointer_attribute_enum neg_one = (enum CUpointer_attribute_enum) -1, const_zero = (enum CUpointer_attribute_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUpointer_attribute_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUpointer_attribute_enum) -1;
        val = __Pyx_PyLong_As_enum__CUpointer_attribute_enum(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(enum CUpointer_attribute_enum, __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(enum CUpointer_attribute_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUpointer_attribute_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) (((((enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUpointer_attribute_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUpointer_attribute_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) (((((((enum CUpointer_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUpointer_attribute_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, 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(enum CUpointer_attribute_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) (((((((((enum CUpointer_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)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 (enum CUpointer_attribute_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUpointer_attribute_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUpointer_attribute_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUpointer_attribute_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUpointer_attribute_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, __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(enum CUpointer_attribute_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUpointer_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) (((enum CUpointer_attribute_enum)-1)*(((((enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUpointer_attribute_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUpointer_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) ((((((enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUpointer_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUpointer_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) (((enum CUpointer_attribute_enum)-1)*(((((((enum CUpointer_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUpointer_attribute_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUpointer_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) ((((((((enum CUpointer_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUpointer_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, 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(enum CUpointer_attribute_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) (((enum CUpointer_attribute_enum)-1)*(((((((((enum CUpointer_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUpointer_attribute_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUpointer_attribute_enum, 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(enum CUpointer_attribute_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUpointer_attribute_enum) ((((((((((enum CUpointer_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUpointer_attribute_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUpointer_attribute_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUpointer_attribute_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUpointer_attribute_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUpointer_attribute_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUpointer_attribute_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUpointer_attribute_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUpointer_attribute_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUpointer_attribute_enum");
    return (enum CUpointer_attribute_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUpointer_attribute_enum");
    return (enum CUpointer_attribute_enum) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_int(unsigned int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(unsigned int) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned int) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned int) <= 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(unsigned int),
                                     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(unsigned int));
        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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUpointer_attribute_enum(enum CUpointer_attribute_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUpointer_attribute_enum neg_one = (enum CUpointer_attribute_enum) -1, const_zero = (enum CUpointer_attribute_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum CUpointer_attribute_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUpointer_attribute_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum CUpointer_attribute_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum CUpointer_attribute_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUpointer_attribute_enum) <= 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(enum CUpointer_attribute_enum),
                                     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(enum CUpointer_attribute_enum));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum CUgraphMem_attribute_enum __Pyx_PyLong_As_enum__CUgraphMem_attribute_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUgraphMem_attribute_enum neg_one = (enum CUgraphMem_attribute_enum) -1, const_zero = (enum CUgraphMem_attribute_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUgraphMem_attribute_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUgraphMem_attribute_enum) -1;
        val = __Pyx_PyLong_As_enum__CUgraphMem_attribute_enum(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(enum CUgraphMem_attribute_enum, __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(enum CUgraphMem_attribute_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUgraphMem_attribute_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) (((((enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUgraphMem_attribute_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUgraphMem_attribute_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) (((((((enum CUgraphMem_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUgraphMem_attribute_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, 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(enum CUgraphMem_attribute_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) (((((((((enum CUgraphMem_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)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 (enum CUgraphMem_attribute_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUgraphMem_attribute_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUgraphMem_attribute_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUgraphMem_attribute_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUgraphMem_attribute_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, __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(enum CUgraphMem_attribute_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUgraphMem_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) (((enum CUgraphMem_attribute_enum)-1)*(((((enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUgraphMem_attribute_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUgraphMem_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) ((((((enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUgraphMem_attribute_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUgraphMem_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) (((enum CUgraphMem_attribute_enum)-1)*(((((((enum CUgraphMem_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUgraphMem_attribute_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUgraphMem_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) ((((((((enum CUgraphMem_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUgraphMem_attribute_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, 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(enum CUgraphMem_attribute_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) (((enum CUgraphMem_attribute_enum)-1)*(((((((((enum CUgraphMem_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUgraphMem_attribute_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUgraphMem_attribute_enum, 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(enum CUgraphMem_attribute_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUgraphMem_attribute_enum) ((((((((((enum CUgraphMem_attribute_enum)digits[3]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[2]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[1]) << PyLong_SHIFT) | (enum CUgraphMem_attribute_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUgraphMem_attribute_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUgraphMem_attribute_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUgraphMem_attribute_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUgraphMem_attribute_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUgraphMem_attribute_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUgraphMem_attribute_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUgraphMem_attribute_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUgraphMem_attribute_enum");
    return (enum CUgraphMem_attribute_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUgraphMem_attribute_enum");
    return (enum CUgraphMem_attribute_enum) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUgraphMem_attribute_enum(enum CUgraphMem_attribute_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUgraphMem_attribute_enum neg_one = (enum CUgraphMem_attribute_enum) -1, const_zero = (enum CUgraphMem_attribute_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum CUgraphMem_attribute_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUgraphMem_attribute_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum CUgraphMem_attribute_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum CUgraphMem_attribute_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUgraphMem_attribute_enum) <= 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(enum CUgraphMem_attribute_enum),
                                     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(enum CUgraphMem_attribute_enum));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum CUjit_option_enum __Pyx_PyLong_As_enum__CUjit_option_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUjit_option_enum neg_one = (enum CUjit_option_enum) -1, const_zero = (enum CUjit_option_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUjit_option_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUjit_option_enum) -1;
        val = __Pyx_PyLong_As_enum__CUjit_option_enum(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(enum CUjit_option_enum, __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(enum CUjit_option_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_option_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) (((((enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUjit_option_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_option_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) (((((((enum CUjit_option_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUjit_option_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, 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(enum CUjit_option_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) (((((((((enum CUjit_option_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)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 (enum CUjit_option_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUjit_option_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_option_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUjit_option_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_option_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, __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(enum CUjit_option_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_option_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) (((enum CUjit_option_enum)-1)*(((((enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUjit_option_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_option_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) ((((((enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUjit_option_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_option_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) (((enum CUjit_option_enum)-1)*(((((((enum CUjit_option_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUjit_option_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_option_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) ((((((((enum CUjit_option_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUjit_option_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, 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(enum CUjit_option_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) (((enum CUjit_option_enum)-1)*(((((((((enum CUjit_option_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUjit_option_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_option_enum, 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(enum CUjit_option_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUjit_option_enum) ((((((((((enum CUjit_option_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_option_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUjit_option_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_option_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUjit_option_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_option_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUjit_option_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUjit_option_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUjit_option_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUjit_option_enum");
    return (enum CUjit_option_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUjit_option_enum");
    return (enum CUjit_option_enum) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum CUjit_target_enum __Pyx_PyLong_As_enum__CUjit_target_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUjit_target_enum neg_one = (enum CUjit_target_enum) -1, const_zero = (enum CUjit_target_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUjit_target_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUjit_target_enum) -1;
        val = __Pyx_PyLong_As_enum__CUjit_target_enum(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(enum CUjit_target_enum, __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(enum CUjit_target_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_target_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) (((((enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUjit_target_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_target_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) (((((((enum CUjit_target_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUjit_target_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, 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(enum CUjit_target_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) (((((((((enum CUjit_target_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)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 (enum CUjit_target_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUjit_target_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_target_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUjit_target_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_target_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, __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(enum CUjit_target_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_target_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) (((enum CUjit_target_enum)-1)*(((((enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUjit_target_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_target_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) ((((((enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUjit_target_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_target_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) (((enum CUjit_target_enum)-1)*(((((((enum CUjit_target_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUjit_target_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_target_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) ((((((((enum CUjit_target_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUjit_target_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, 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(enum CUjit_target_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) (((enum CUjit_target_enum)-1)*(((((((((enum CUjit_target_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUjit_target_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_target_enum, 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(enum CUjit_target_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUjit_target_enum) ((((((((((enum CUjit_target_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_target_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUjit_target_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_target_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUjit_target_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_target_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUjit_target_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUjit_target_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUjit_target_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUjit_target_enum");
    return (enum CUjit_target_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUjit_target_enum");
    return (enum CUjit_target_enum) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum CUjit_fallback_enum __Pyx_PyLong_As_enum__CUjit_fallback_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUjit_fallback_enum neg_one = (enum CUjit_fallback_enum) -1, const_zero = (enum CUjit_fallback_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUjit_fallback_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUjit_fallback_enum) -1;
        val = __Pyx_PyLong_As_enum__CUjit_fallback_enum(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(enum CUjit_fallback_enum, __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(enum CUjit_fallback_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_fallback_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) (((((enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUjit_fallback_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_fallback_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) (((((((enum CUjit_fallback_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUjit_fallback_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, 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(enum CUjit_fallback_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) (((((((((enum CUjit_fallback_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)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 (enum CUjit_fallback_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUjit_fallback_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_fallback_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUjit_fallback_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_fallback_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, __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(enum CUjit_fallback_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_fallback_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) (((enum CUjit_fallback_enum)-1)*(((((enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUjit_fallback_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_fallback_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) ((((((enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUjit_fallback_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_fallback_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) (((enum CUjit_fallback_enum)-1)*(((((((enum CUjit_fallback_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUjit_fallback_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_fallback_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) ((((((((enum CUjit_fallback_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUjit_fallback_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, 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(enum CUjit_fallback_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) (((enum CUjit_fallback_enum)-1)*(((((((((enum CUjit_fallback_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUjit_fallback_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_fallback_enum, 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(enum CUjit_fallback_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUjit_fallback_enum) ((((((((((enum CUjit_fallback_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_fallback_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUjit_fallback_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_fallback_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUjit_fallback_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_fallback_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUjit_fallback_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUjit_fallback_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUjit_fallback_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUjit_fallback_enum");
    return (enum CUjit_fallback_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUjit_fallback_enum");
    return (enum CUjit_fallback_enum) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum CUjit_cacheMode_enum __Pyx_PyLong_As_enum__CUjit_cacheMode_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUjit_cacheMode_enum neg_one = (enum CUjit_cacheMode_enum) -1, const_zero = (enum CUjit_cacheMode_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUjit_cacheMode_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUjit_cacheMode_enum) -1;
        val = __Pyx_PyLong_As_enum__CUjit_cacheMode_enum(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(enum CUjit_cacheMode_enum, __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(enum CUjit_cacheMode_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_cacheMode_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) (((((enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUjit_cacheMode_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_cacheMode_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) (((((((enum CUjit_cacheMode_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUjit_cacheMode_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, 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(enum CUjit_cacheMode_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) (((((((((enum CUjit_cacheMode_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)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 (enum CUjit_cacheMode_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUjit_cacheMode_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_cacheMode_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUjit_cacheMode_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_cacheMode_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, __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(enum CUjit_cacheMode_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_cacheMode_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) (((enum CUjit_cacheMode_enum)-1)*(((((enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUjit_cacheMode_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_cacheMode_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) ((((((enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUjit_cacheMode_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_cacheMode_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) (((enum CUjit_cacheMode_enum)-1)*(((((((enum CUjit_cacheMode_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUjit_cacheMode_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUjit_cacheMode_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) ((((((((enum CUjit_cacheMode_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUjit_cacheMode_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, 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(enum CUjit_cacheMode_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) (((enum CUjit_cacheMode_enum)-1)*(((((((((enum CUjit_cacheMode_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUjit_cacheMode_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUjit_cacheMode_enum, 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(enum CUjit_cacheMode_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUjit_cacheMode_enum) ((((((((((enum CUjit_cacheMode_enum)digits[3]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[2]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[1]) << PyLong_SHIFT) | (enum CUjit_cacheMode_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUjit_cacheMode_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_cacheMode_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUjit_cacheMode_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUjit_cacheMode_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUjit_cacheMode_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUjit_cacheMode_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUjit_cacheMode_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUjit_cacheMode_enum");
    return (enum CUjit_cacheMode_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUjit_cacheMode_enum");
    return (enum CUjit_cacheMode_enum) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaJitOption __Pyx_PyLong_As_enum__cudaJitOption(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaJitOption neg_one = (enum cudaJitOption) -1, const_zero = (enum cudaJitOption) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaJitOption val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaJitOption) -1;
        val = __Pyx_PyLong_As_enum__cudaJitOption(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(enum cudaJitOption, __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(enum cudaJitOption) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJitOption) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) (((((enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaJitOption) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJitOption) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) (((((((enum cudaJitOption)digits[2]) << PyLong_SHIFT) | (enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaJitOption) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, 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(enum cudaJitOption) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) (((((((((enum cudaJitOption)digits[3]) << PyLong_SHIFT) | (enum cudaJitOption)digits[2]) << PyLong_SHIFT) | (enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)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 (enum cudaJitOption) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaJitOption) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJitOption, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaJitOption) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJitOption, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, __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(enum cudaJitOption) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJitOption) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) (((enum cudaJitOption)-1)*(((((enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaJitOption) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJitOption) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) ((((((enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaJitOption) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJitOption) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) (((enum cudaJitOption)-1)*(((((((enum cudaJitOption)digits[2]) << PyLong_SHIFT) | (enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaJitOption) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJitOption) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) ((((((((enum cudaJitOption)digits[2]) << PyLong_SHIFT) | (enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaJitOption) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, 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(enum cudaJitOption) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) (((enum cudaJitOption)-1)*(((((((((enum cudaJitOption)digits[3]) << PyLong_SHIFT) | (enum cudaJitOption)digits[2]) << PyLong_SHIFT) | (enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaJitOption) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJitOption, 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(enum cudaJitOption) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaJitOption) ((((((((((enum cudaJitOption)digits[3]) << PyLong_SHIFT) | (enum cudaJitOption)digits[2]) << PyLong_SHIFT) | (enum cudaJitOption)digits[1]) << PyLong_SHIFT) | (enum cudaJitOption)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaJitOption) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJitOption, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaJitOption) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJitOption, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaJitOption 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaJitOption) -1;
#endif
        if (unlikely(ret))
            return (enum cudaJitOption) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaJitOption");
    return (enum cudaJitOption) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaJitOption");
    return (enum cudaJitOption) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaJit_Fallback __Pyx_PyLong_As_enum__cudaJit_Fallback(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaJit_Fallback neg_one = (enum cudaJit_Fallback) -1, const_zero = (enum cudaJit_Fallback) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaJit_Fallback val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaJit_Fallback) -1;
        val = __Pyx_PyLong_As_enum__cudaJit_Fallback(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(enum cudaJit_Fallback, __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(enum cudaJit_Fallback) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_Fallback) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) (((((enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaJit_Fallback) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_Fallback) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) (((((((enum cudaJit_Fallback)digits[2]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaJit_Fallback) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, 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(enum cudaJit_Fallback) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) (((((((((enum cudaJit_Fallback)digits[3]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[2]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)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 (enum cudaJit_Fallback) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaJit_Fallback) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJit_Fallback, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaJit_Fallback) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJit_Fallback, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, __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(enum cudaJit_Fallback) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_Fallback) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) (((enum cudaJit_Fallback)-1)*(((((enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaJit_Fallback) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_Fallback) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) ((((((enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaJit_Fallback) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_Fallback) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) (((enum cudaJit_Fallback)-1)*(((((((enum cudaJit_Fallback)digits[2]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaJit_Fallback) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_Fallback) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) ((((((((enum cudaJit_Fallback)digits[2]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaJit_Fallback) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, 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(enum cudaJit_Fallback) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) (((enum cudaJit_Fallback)-1)*(((((((((enum cudaJit_Fallback)digits[3]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[2]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaJit_Fallback) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_Fallback, 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(enum cudaJit_Fallback) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaJit_Fallback) ((((((((((enum cudaJit_Fallback)digits[3]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[2]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[1]) << PyLong_SHIFT) | (enum cudaJit_Fallback)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaJit_Fallback) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJit_Fallback, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaJit_Fallback) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJit_Fallback, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaJit_Fallback 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaJit_Fallback) -1;
#endif
        if (unlikely(ret))
            return (enum cudaJit_Fallback) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaJit_Fallback");
    return (enum cudaJit_Fallback) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaJit_Fallback");
    return (enum cudaJit_Fallback) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaJit_CacheMode __Pyx_PyLong_As_enum__cudaJit_CacheMode(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaJit_CacheMode neg_one = (enum cudaJit_CacheMode) -1, const_zero = (enum cudaJit_CacheMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaJit_CacheMode val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaJit_CacheMode) -1;
        val = __Pyx_PyLong_As_enum__cudaJit_CacheMode(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(enum cudaJit_CacheMode, __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(enum cudaJit_CacheMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_CacheMode) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) (((((enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaJit_CacheMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_CacheMode) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) (((((((enum cudaJit_CacheMode)digits[2]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaJit_CacheMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, 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(enum cudaJit_CacheMode) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) (((((((((enum cudaJit_CacheMode)digits[3]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[2]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)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 (enum cudaJit_CacheMode) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaJit_CacheMode) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJit_CacheMode, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaJit_CacheMode) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJit_CacheMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, __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(enum cudaJit_CacheMode) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_CacheMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) (((enum cudaJit_CacheMode)-1)*(((((enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaJit_CacheMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_CacheMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) ((((((enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaJit_CacheMode) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_CacheMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) (((enum cudaJit_CacheMode)-1)*(((((((enum cudaJit_CacheMode)digits[2]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaJit_CacheMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaJit_CacheMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) ((((((((enum cudaJit_CacheMode)digits[2]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaJit_CacheMode) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, 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(enum cudaJit_CacheMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) (((enum cudaJit_CacheMode)-1)*(((((((((enum cudaJit_CacheMode)digits[3]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[2]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaJit_CacheMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaJit_CacheMode, 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(enum cudaJit_CacheMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaJit_CacheMode) ((((((((((enum cudaJit_CacheMode)digits[3]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[2]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[1]) << PyLong_SHIFT) | (enum cudaJit_CacheMode)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaJit_CacheMode) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJit_CacheMode, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaJit_CacheMode) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaJit_CacheMode, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaJit_CacheMode 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaJit_CacheMode) -1;
#endif
        if (unlikely(ret))
            return (enum cudaJit_CacheMode) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaJit_CacheMode");
    return (enum cudaJit_CacheMode) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaJit_CacheMode");
    return (enum cudaJit_CacheMode) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum CUlibraryOption_enum __Pyx_PyLong_As_enum__CUlibraryOption_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUlibraryOption_enum neg_one = (enum CUlibraryOption_enum) -1, const_zero = (enum CUlibraryOption_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUlibraryOption_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUlibraryOption_enum) -1;
        val = __Pyx_PyLong_As_enum__CUlibraryOption_enum(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(enum CUlibraryOption_enum, __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(enum CUlibraryOption_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUlibraryOption_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) (((((enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUlibraryOption_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUlibraryOption_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) (((((((enum CUlibraryOption_enum)digits[2]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUlibraryOption_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, 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(enum CUlibraryOption_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) (((((((((enum CUlibraryOption_enum)digits[3]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[2]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)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 (enum CUlibraryOption_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUlibraryOption_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUlibraryOption_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUlibraryOption_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUlibraryOption_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, __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(enum CUlibraryOption_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUlibraryOption_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) (((enum CUlibraryOption_enum)-1)*(((((enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUlibraryOption_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUlibraryOption_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) ((((((enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUlibraryOption_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUlibraryOption_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) (((enum CUlibraryOption_enum)-1)*(((((((enum CUlibraryOption_enum)digits[2]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUlibraryOption_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUlibraryOption_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) ((((((((enum CUlibraryOption_enum)digits[2]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUlibraryOption_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, 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(enum CUlibraryOption_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) (((enum CUlibraryOption_enum)-1)*(((((((((enum CUlibraryOption_enum)digits[3]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[2]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUlibraryOption_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUlibraryOption_enum, 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(enum CUlibraryOption_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUlibraryOption_enum) ((((((((((enum CUlibraryOption_enum)digits[3]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[2]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[1]) << PyLong_SHIFT) | (enum CUlibraryOption_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUlibraryOption_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUlibraryOption_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUlibraryOption_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUlibraryOption_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUlibraryOption_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUlibraryOption_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUlibraryOption_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUlibraryOption_enum");
    return (enum CUlibraryOption_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUlibraryOption_enum");
    return (enum CUlibraryOption_enum) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaLibraryOption __Pyx_PyLong_As_enum__cudaLibraryOption(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaLibraryOption neg_one = (enum cudaLibraryOption) -1, const_zero = (enum cudaLibraryOption) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaLibraryOption val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaLibraryOption) -1;
        val = __Pyx_PyLong_As_enum__cudaLibraryOption(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(enum cudaLibraryOption, __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(enum cudaLibraryOption) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLibraryOption) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) (((((enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaLibraryOption) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLibraryOption) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) (((((((enum cudaLibraryOption)digits[2]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaLibraryOption) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, 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(enum cudaLibraryOption) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) (((((((((enum cudaLibraryOption)digits[3]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[2]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)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 (enum cudaLibraryOption) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaLibraryOption) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLibraryOption, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaLibraryOption) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLibraryOption, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, __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(enum cudaLibraryOption) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLibraryOption) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) (((enum cudaLibraryOption)-1)*(((((enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaLibraryOption) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLibraryOption) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) ((((((enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaLibraryOption) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLibraryOption) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) (((enum cudaLibraryOption)-1)*(((((((enum cudaLibraryOption)digits[2]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaLibraryOption) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLibraryOption) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) ((((((((enum cudaLibraryOption)digits[2]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaLibraryOption) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, 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(enum cudaLibraryOption) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) (((enum cudaLibraryOption)-1)*(((((((((enum cudaLibraryOption)digits[3]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[2]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaLibraryOption) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLibraryOption, 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(enum cudaLibraryOption) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaLibraryOption) ((((((((((enum cudaLibraryOption)digits[3]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[2]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[1]) << PyLong_SHIFT) | (enum cudaLibraryOption)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaLibraryOption) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLibraryOption, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaLibraryOption) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLibraryOption, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaLibraryOption 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaLibraryOption) -1;
#endif
        if (unlikely(ret))
            return (enum cudaLibraryOption) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaLibraryOption");
    return (enum cudaLibraryOption) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaLibraryOption");
    return (enum cudaLibraryOption) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum CUmemAllocationHandleType_enum __Pyx_PyLong_As_enum__CUmemAllocationHandleType_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUmemAllocationHandleType_enum neg_one = (enum CUmemAllocationHandleType_enum) -1, const_zero = (enum CUmemAllocationHandleType_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUmemAllocationHandleType_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUmemAllocationHandleType_enum) -1;
        val = __Pyx_PyLong_As_enum__CUmemAllocationHandleType_enum(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(enum CUmemAllocationHandleType_enum, __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(enum CUmemAllocationHandleType_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemAllocationHandleType_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) (((((enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUmemAllocationHandleType_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemAllocationHandleType_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) (((((((enum CUmemAllocationHandleType_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUmemAllocationHandleType_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, 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(enum CUmemAllocationHandleType_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) (((((((((enum CUmemAllocationHandleType_enum)digits[3]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)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 (enum CUmemAllocationHandleType_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUmemAllocationHandleType_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmemAllocationHandleType_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUmemAllocationHandleType_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmemAllocationHandleType_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, __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(enum CUmemAllocationHandleType_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemAllocationHandleType_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) (((enum CUmemAllocationHandleType_enum)-1)*(((((enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUmemAllocationHandleType_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemAllocationHandleType_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) ((((((enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUmemAllocationHandleType_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemAllocationHandleType_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) (((enum CUmemAllocationHandleType_enum)-1)*(((((((enum CUmemAllocationHandleType_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUmemAllocationHandleType_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUmemAllocationHandleType_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) ((((((((enum CUmemAllocationHandleType_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUmemAllocationHandleType_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, 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(enum CUmemAllocationHandleType_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) (((enum CUmemAllocationHandleType_enum)-1)*(((((((((enum CUmemAllocationHandleType_enum)digits[3]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUmemAllocationHandleType_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUmemAllocationHandleType_enum, 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(enum CUmemAllocationHandleType_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUmemAllocationHandleType_enum) ((((((((((enum CUmemAllocationHandleType_enum)digits[3]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[2]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[1]) << PyLong_SHIFT) | (enum CUmemAllocationHandleType_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUmemAllocationHandleType_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmemAllocationHandleType_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUmemAllocationHandleType_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUmemAllocationHandleType_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUmemAllocationHandleType_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUmemAllocationHandleType_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUmemAllocationHandleType_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUmemAllocationHandleType_enum");
    return (enum CUmemAllocationHandleType_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUmemAllocationHandleType_enum");
    return (enum CUmemAllocationHandleType_enum) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUmemAllocationHandleType_enum(enum CUmemAllocationHandleType_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUmemAllocationHandleType_enum neg_one = (enum CUmemAllocationHandleType_enum) -1, const_zero = (enum CUmemAllocationHandleType_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum CUmemAllocationHandleType_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUmemAllocationHandleType_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum CUmemAllocationHandleType_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum CUmemAllocationHandleType_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUmemAllocationHandleType_enum) <= 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(enum CUmemAllocationHandleType_enum),
                                     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(enum CUmemAllocationHandleType_enum));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum CUcoredumpSettings_enum __Pyx_PyLong_As_enum__CUcoredumpSettings_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUcoredumpSettings_enum neg_one = (enum CUcoredumpSettings_enum) -1, const_zero = (enum CUcoredumpSettings_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum CUcoredumpSettings_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum CUcoredumpSettings_enum) -1;
        val = __Pyx_PyLong_As_enum__CUcoredumpSettings_enum(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(enum CUcoredumpSettings_enum, __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(enum CUcoredumpSettings_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUcoredumpSettings_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) (((((enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUcoredumpSettings_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUcoredumpSettings_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) (((((((enum CUcoredumpSettings_enum)digits[2]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUcoredumpSettings_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, 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(enum CUcoredumpSettings_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) (((((((((enum CUcoredumpSettings_enum)digits[3]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[2]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)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 (enum CUcoredumpSettings_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum CUcoredumpSettings_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUcoredumpSettings_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum CUcoredumpSettings_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUcoredumpSettings_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, __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(enum CUcoredumpSettings_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUcoredumpSettings_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) (((enum CUcoredumpSettings_enum)-1)*(((((enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum CUcoredumpSettings_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUcoredumpSettings_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) ((((((enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum CUcoredumpSettings_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUcoredumpSettings_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) (((enum CUcoredumpSettings_enum)-1)*(((((((enum CUcoredumpSettings_enum)digits[2]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum CUcoredumpSettings_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum CUcoredumpSettings_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) ((((((((enum CUcoredumpSettings_enum)digits[2]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum CUcoredumpSettings_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, 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(enum CUcoredumpSettings_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) (((enum CUcoredumpSettings_enum)-1)*(((((((((enum CUcoredumpSettings_enum)digits[3]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[2]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum CUcoredumpSettings_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum CUcoredumpSettings_enum, 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(enum CUcoredumpSettings_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum CUcoredumpSettings_enum) ((((((((((enum CUcoredumpSettings_enum)digits[3]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[2]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[1]) << PyLong_SHIFT) | (enum CUcoredumpSettings_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum CUcoredumpSettings_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUcoredumpSettings_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum CUcoredumpSettings_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum CUcoredumpSettings_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum CUcoredumpSettings_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum CUcoredumpSettings_enum) -1;
#endif
        if (unlikely(ret))
            return (enum CUcoredumpSettings_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum CUcoredumpSettings_enum");
    return (enum CUcoredumpSettings_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum CUcoredumpSettings_enum");
    return (enum CUcoredumpSettings_enum) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_enum__CUcoredumpSettings_enum(enum CUcoredumpSettings_enum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum CUcoredumpSettings_enum neg_one = (enum CUcoredumpSettings_enum) -1, const_zero = (enum CUcoredumpSettings_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum CUcoredumpSettings_enum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUcoredumpSettings_enum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(enum CUcoredumpSettings_enum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(enum CUcoredumpSettings_enum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(enum CUcoredumpSettings_enum) <= 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(enum CUcoredumpSettings_enum),
                                     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(enum CUcoredumpSettings_enum));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaChannelFormatKind __Pyx_PyLong_As_enum__cudaChannelFormatKind(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaChannelFormatKind neg_one = (enum cudaChannelFormatKind) -1, const_zero = (enum cudaChannelFormatKind) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaChannelFormatKind val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaChannelFormatKind) -1;
        val = __Pyx_PyLong_As_enum__cudaChannelFormatKind(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(enum cudaChannelFormatKind, __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(enum cudaChannelFormatKind) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaChannelFormatKind) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) (((((enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaChannelFormatKind) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaChannelFormatKind) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) (((((((enum cudaChannelFormatKind)digits[2]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaChannelFormatKind) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, 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(enum cudaChannelFormatKind) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) (((((((((enum cudaChannelFormatKind)digits[3]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[2]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)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 (enum cudaChannelFormatKind) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaChannelFormatKind) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaChannelFormatKind, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaChannelFormatKind) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaChannelFormatKind, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, __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(enum cudaChannelFormatKind) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaChannelFormatKind) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) (((enum cudaChannelFormatKind)-1)*(((((enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaChannelFormatKind) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaChannelFormatKind) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) ((((((enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaChannelFormatKind) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaChannelFormatKind) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) (((enum cudaChannelFormatKind)-1)*(((((((enum cudaChannelFormatKind)digits[2]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaChannelFormatKind) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaChannelFormatKind) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) ((((((((enum cudaChannelFormatKind)digits[2]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaChannelFormatKind) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, 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(enum cudaChannelFormatKind) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) (((enum cudaChannelFormatKind)-1)*(((((((((enum cudaChannelFormatKind)digits[3]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[2]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaChannelFormatKind) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaChannelFormatKind, 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(enum cudaChannelFormatKind) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaChannelFormatKind) ((((((((((enum cudaChannelFormatKind)digits[3]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[2]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[1]) << PyLong_SHIFT) | (enum cudaChannelFormatKind)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaChannelFormatKind) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaChannelFormatKind, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaChannelFormatKind) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaChannelFormatKind, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaChannelFormatKind 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaChannelFormatKind) -1;
#endif
        if (unlikely(ret))
            return (enum cudaChannelFormatKind) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaChannelFormatKind");
    return (enum cudaChannelFormatKind) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaChannelFormatKind");
    return (enum cudaChannelFormatKind) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemcpyKind __Pyx_PyLong_As_enum__cudaMemcpyKind(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemcpyKind neg_one = (enum cudaMemcpyKind) -1, const_zero = (enum cudaMemcpyKind) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemcpyKind val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemcpyKind) -1;
        val = __Pyx_PyLong_As_enum__cudaMemcpyKind(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(enum cudaMemcpyKind, __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(enum cudaMemcpyKind) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpyKind) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) (((((enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemcpyKind) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpyKind) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) (((((((enum cudaMemcpyKind)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemcpyKind) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, 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(enum cudaMemcpyKind) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) (((((((((enum cudaMemcpyKind)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)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 (enum cudaMemcpyKind) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemcpyKind) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpyKind, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemcpyKind) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpyKind, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, __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(enum cudaMemcpyKind) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpyKind) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) (((enum cudaMemcpyKind)-1)*(((((enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemcpyKind) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpyKind) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) ((((((enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemcpyKind) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpyKind) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) (((enum cudaMemcpyKind)-1)*(((((((enum cudaMemcpyKind)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemcpyKind) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpyKind) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) ((((((((enum cudaMemcpyKind)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemcpyKind) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, 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(enum cudaMemcpyKind) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) (((enum cudaMemcpyKind)-1)*(((((((((enum cudaMemcpyKind)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemcpyKind) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpyKind, 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(enum cudaMemcpyKind) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpyKind) ((((((((((enum cudaMemcpyKind)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpyKind)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemcpyKind) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpyKind, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemcpyKind) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpyKind, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemcpyKind 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemcpyKind) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemcpyKind) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemcpyKind");
    return (enum cudaMemcpyKind) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemcpyKind");
    return (enum cudaMemcpyKind) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaAccessProperty __Pyx_PyLong_As_enum__cudaAccessProperty(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaAccessProperty neg_one = (enum cudaAccessProperty) -1, const_zero = (enum cudaAccessProperty) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaAccessProperty val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaAccessProperty) -1;
        val = __Pyx_PyLong_As_enum__cudaAccessProperty(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(enum cudaAccessProperty, __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(enum cudaAccessProperty) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAccessProperty) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) (((((enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaAccessProperty) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAccessProperty) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) (((((((enum cudaAccessProperty)digits[2]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaAccessProperty) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, 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(enum cudaAccessProperty) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) (((((((((enum cudaAccessProperty)digits[3]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[2]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)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 (enum cudaAccessProperty) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaAccessProperty) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAccessProperty, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaAccessProperty) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAccessProperty, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, __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(enum cudaAccessProperty) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAccessProperty) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) (((enum cudaAccessProperty)-1)*(((((enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaAccessProperty) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAccessProperty) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) ((((((enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaAccessProperty) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAccessProperty) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) (((enum cudaAccessProperty)-1)*(((((((enum cudaAccessProperty)digits[2]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaAccessProperty) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAccessProperty) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) ((((((((enum cudaAccessProperty)digits[2]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaAccessProperty) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, 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(enum cudaAccessProperty) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) (((enum cudaAccessProperty)-1)*(((((((((enum cudaAccessProperty)digits[3]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[2]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaAccessProperty) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAccessProperty, 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(enum cudaAccessProperty) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaAccessProperty) ((((((((((enum cudaAccessProperty)digits[3]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[2]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[1]) << PyLong_SHIFT) | (enum cudaAccessProperty)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaAccessProperty) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAccessProperty, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaAccessProperty) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAccessProperty, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaAccessProperty 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaAccessProperty) -1;
#endif
        if (unlikely(ret))
            return (enum cudaAccessProperty) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaAccessProperty");
    return (enum cudaAccessProperty) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaAccessProperty");
    return (enum cudaAccessProperty) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaResourceType __Pyx_PyLong_As_enum__cudaResourceType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaResourceType neg_one = (enum cudaResourceType) -1, const_zero = (enum cudaResourceType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaResourceType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaResourceType) -1;
        val = __Pyx_PyLong_As_enum__cudaResourceType(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(enum cudaResourceType, __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(enum cudaResourceType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) (((((enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaResourceType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) (((((((enum cudaResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaResourceType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, 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(enum cudaResourceType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) (((((((((enum cudaResourceType)digits[3]) << PyLong_SHIFT) | (enum cudaResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)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 (enum cudaResourceType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaResourceType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaResourceType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, __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(enum cudaResourceType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) (((enum cudaResourceType)-1)*(((((enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaResourceType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) ((((((enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaResourceType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) (((enum cudaResourceType)-1)*(((((((enum cudaResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaResourceType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) ((((((((enum cudaResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaResourceType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, 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(enum cudaResourceType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) (((enum cudaResourceType)-1)*(((((((((enum cudaResourceType)digits[3]) << PyLong_SHIFT) | (enum cudaResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaResourceType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceType, 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(enum cudaResourceType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaResourceType) ((((((((((enum cudaResourceType)digits[3]) << PyLong_SHIFT) | (enum cudaResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaResourceType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaResourceType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaResourceType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaResourceType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaResourceType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaResourceType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaResourceType");
    return (enum cudaResourceType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaResourceType");
    return (enum cudaResourceType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaResourceViewFormat __Pyx_PyLong_As_enum__cudaResourceViewFormat(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaResourceViewFormat neg_one = (enum cudaResourceViewFormat) -1, const_zero = (enum cudaResourceViewFormat) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaResourceViewFormat val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaResourceViewFormat) -1;
        val = __Pyx_PyLong_As_enum__cudaResourceViewFormat(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(enum cudaResourceViewFormat, __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(enum cudaResourceViewFormat) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceViewFormat) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) (((((enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaResourceViewFormat) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceViewFormat) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) (((((((enum cudaResourceViewFormat)digits[2]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaResourceViewFormat) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, 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(enum cudaResourceViewFormat) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) (((((((((enum cudaResourceViewFormat)digits[3]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[2]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)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 (enum cudaResourceViewFormat) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaResourceViewFormat) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceViewFormat, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaResourceViewFormat) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceViewFormat, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, __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(enum cudaResourceViewFormat) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceViewFormat) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) (((enum cudaResourceViewFormat)-1)*(((((enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaResourceViewFormat) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceViewFormat) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) ((((((enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaResourceViewFormat) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceViewFormat) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) (((enum cudaResourceViewFormat)-1)*(((((((enum cudaResourceViewFormat)digits[2]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaResourceViewFormat) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaResourceViewFormat) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) ((((((((enum cudaResourceViewFormat)digits[2]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaResourceViewFormat) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, 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(enum cudaResourceViewFormat) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) (((enum cudaResourceViewFormat)-1)*(((((((((enum cudaResourceViewFormat)digits[3]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[2]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaResourceViewFormat) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaResourceViewFormat, 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(enum cudaResourceViewFormat) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaResourceViewFormat) ((((((((((enum cudaResourceViewFormat)digits[3]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[2]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[1]) << PyLong_SHIFT) | (enum cudaResourceViewFormat)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaResourceViewFormat) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceViewFormat, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaResourceViewFormat) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaResourceViewFormat, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaResourceViewFormat 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaResourceViewFormat) -1;
#endif
        if (unlikely(ret))
            return (enum cudaResourceViewFormat) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaResourceViewFormat");
    return (enum cudaResourceViewFormat) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaResourceViewFormat");
    return (enum cudaResourceViewFormat) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemoryType __Pyx_PyLong_As_enum__cudaMemoryType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemoryType neg_one = (enum cudaMemoryType) -1, const_zero = (enum cudaMemoryType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemoryType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemoryType) -1;
        val = __Pyx_PyLong_As_enum__cudaMemoryType(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(enum cudaMemoryType, __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(enum cudaMemoryType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) (((((enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemoryType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) (((((((enum cudaMemoryType)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemoryType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, 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(enum cudaMemoryType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) (((((((((enum cudaMemoryType)digits[3]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)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 (enum cudaMemoryType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemoryType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemoryType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, __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(enum cudaMemoryType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) (((enum cudaMemoryType)-1)*(((((enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemoryType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) ((((((enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemoryType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) (((enum cudaMemoryType)-1)*(((((((enum cudaMemoryType)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemoryType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) ((((((((enum cudaMemoryType)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemoryType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, 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(enum cudaMemoryType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) (((enum cudaMemoryType)-1)*(((((((((enum cudaMemoryType)digits[3]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemoryType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryType, 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(enum cudaMemoryType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemoryType) ((((((((((enum cudaMemoryType)digits[3]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemoryType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemoryType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemoryType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemoryType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemoryType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemoryType");
    return (enum cudaMemoryType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemoryType");
    return (enum cudaMemoryType) -1;
}

/* 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 enum cudaMemLocationType __Pyx_PyLong_As_enum__cudaMemLocationType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemLocationType neg_one = (enum cudaMemLocationType) -1, const_zero = (enum cudaMemLocationType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemLocationType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemLocationType) -1;
        val = __Pyx_PyLong_As_enum__cudaMemLocationType(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(enum cudaMemLocationType, __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(enum cudaMemLocationType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemLocationType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) (((((enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemLocationType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemLocationType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) (((((((enum cudaMemLocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemLocationType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, 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(enum cudaMemLocationType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) (((((((((enum cudaMemLocationType)digits[3]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)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 (enum cudaMemLocationType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemLocationType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemLocationType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemLocationType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemLocationType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, __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(enum cudaMemLocationType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemLocationType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) (((enum cudaMemLocationType)-1)*(((((enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemLocationType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemLocationType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) ((((((enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemLocationType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemLocationType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) (((enum cudaMemLocationType)-1)*(((((((enum cudaMemLocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemLocationType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemLocationType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) ((((((((enum cudaMemLocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemLocationType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, 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(enum cudaMemLocationType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) (((enum cudaMemLocationType)-1)*(((((((((enum cudaMemLocationType)digits[3]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemLocationType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemLocationType, 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(enum cudaMemLocationType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemLocationType) ((((((((((enum cudaMemLocationType)digits[3]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemLocationType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemLocationType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemLocationType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemLocationType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemLocationType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemLocationType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemLocationType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemLocationType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemLocationType");
    return (enum cudaMemLocationType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemLocationType");
    return (enum cudaMemLocationType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemAccessFlags __Pyx_PyLong_As_enum__cudaMemAccessFlags(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemAccessFlags neg_one = (enum cudaMemAccessFlags) -1, const_zero = (enum cudaMemAccessFlags) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemAccessFlags val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemAccessFlags) -1;
        val = __Pyx_PyLong_As_enum__cudaMemAccessFlags(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(enum cudaMemAccessFlags, __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(enum cudaMemAccessFlags) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAccessFlags) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) (((((enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemAccessFlags) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAccessFlags) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) (((((((enum cudaMemAccessFlags)digits[2]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemAccessFlags) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, 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(enum cudaMemAccessFlags) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) (((((((((enum cudaMemAccessFlags)digits[3]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[2]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)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 (enum cudaMemAccessFlags) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemAccessFlags) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAccessFlags, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemAccessFlags) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAccessFlags, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, __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(enum cudaMemAccessFlags) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAccessFlags) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) (((enum cudaMemAccessFlags)-1)*(((((enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemAccessFlags) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAccessFlags) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) ((((((enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemAccessFlags) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAccessFlags) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) (((enum cudaMemAccessFlags)-1)*(((((((enum cudaMemAccessFlags)digits[2]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemAccessFlags) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAccessFlags) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) ((((((((enum cudaMemAccessFlags)digits[2]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemAccessFlags) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, 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(enum cudaMemAccessFlags) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) (((enum cudaMemAccessFlags)-1)*(((((((((enum cudaMemAccessFlags)digits[3]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[2]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemAccessFlags) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAccessFlags, 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(enum cudaMemAccessFlags) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAccessFlags) ((((((((((enum cudaMemAccessFlags)digits[3]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[2]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[1]) << PyLong_SHIFT) | (enum cudaMemAccessFlags)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemAccessFlags) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAccessFlags, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemAccessFlags) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAccessFlags, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemAccessFlags 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemAccessFlags) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemAccessFlags) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemAccessFlags");
    return (enum cudaMemAccessFlags) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemAccessFlags");
    return (enum cudaMemAccessFlags) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemAllocationType __Pyx_PyLong_As_enum__cudaMemAllocationType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemAllocationType neg_one = (enum cudaMemAllocationType) -1, const_zero = (enum cudaMemAllocationType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemAllocationType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemAllocationType) -1;
        val = __Pyx_PyLong_As_enum__cudaMemAllocationType(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(enum cudaMemAllocationType, __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(enum cudaMemAllocationType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) (((((enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemAllocationType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) (((((((enum cudaMemAllocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemAllocationType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, 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(enum cudaMemAllocationType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) (((((((((enum cudaMemAllocationType)digits[3]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)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 (enum cudaMemAllocationType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemAllocationType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemAllocationType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, __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(enum cudaMemAllocationType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) (((enum cudaMemAllocationType)-1)*(((((enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemAllocationType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) ((((((enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemAllocationType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) (((enum cudaMemAllocationType)-1)*(((((((enum cudaMemAllocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemAllocationType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) ((((((((enum cudaMemAllocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemAllocationType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, 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(enum cudaMemAllocationType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) (((enum cudaMemAllocationType)-1)*(((((((((enum cudaMemAllocationType)digits[3]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemAllocationType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationType, 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(enum cudaMemAllocationType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationType) ((((((((((enum cudaMemAllocationType)digits[3]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemAllocationType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemAllocationType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemAllocationType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemAllocationType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemAllocationType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemAllocationType");
    return (enum cudaMemAllocationType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemAllocationType");
    return (enum cudaMemAllocationType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemAllocationHandleType __Pyx_PyLong_As_enum__cudaMemAllocationHandleType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemAllocationHandleType neg_one = (enum cudaMemAllocationHandleType) -1, const_zero = (enum cudaMemAllocationHandleType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemAllocationHandleType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemAllocationHandleType) -1;
        val = __Pyx_PyLong_As_enum__cudaMemAllocationHandleType(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(enum cudaMemAllocationHandleType, __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(enum cudaMemAllocationHandleType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationHandleType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) (((((enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemAllocationHandleType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationHandleType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) (((((((enum cudaMemAllocationHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemAllocationHandleType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, 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(enum cudaMemAllocationHandleType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) (((((((((enum cudaMemAllocationHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)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 (enum cudaMemAllocationHandleType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemAllocationHandleType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationHandleType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemAllocationHandleType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationHandleType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, __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(enum cudaMemAllocationHandleType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationHandleType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) (((enum cudaMemAllocationHandleType)-1)*(((((enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemAllocationHandleType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationHandleType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) ((((((enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemAllocationHandleType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationHandleType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) (((enum cudaMemAllocationHandleType)-1)*(((((((enum cudaMemAllocationHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemAllocationHandleType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemAllocationHandleType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) ((((((((enum cudaMemAllocationHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemAllocationHandleType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, 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(enum cudaMemAllocationHandleType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) (((enum cudaMemAllocationHandleType)-1)*(((((((((enum cudaMemAllocationHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemAllocationHandleType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemAllocationHandleType, 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(enum cudaMemAllocationHandleType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemAllocationHandleType) ((((((((((enum cudaMemAllocationHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaMemAllocationHandleType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemAllocationHandleType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationHandleType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemAllocationHandleType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemAllocationHandleType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemAllocationHandleType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemAllocationHandleType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemAllocationHandleType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemAllocationHandleType");
    return (enum cudaMemAllocationHandleType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemAllocationHandleType");
    return (enum cudaMemAllocationHandleType) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_short(unsigned short value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned short neg_one = (unsigned short) -1, const_zero = (unsigned short) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(unsigned short) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned short) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(unsigned short) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned short) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned short) <= 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(unsigned short),
                                     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(unsigned short));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemcpySrcAccessOrder __Pyx_PyLong_As_enum__cudaMemcpySrcAccessOrder(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemcpySrcAccessOrder neg_one = (enum cudaMemcpySrcAccessOrder) -1, const_zero = (enum cudaMemcpySrcAccessOrder) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemcpySrcAccessOrder val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemcpySrcAccessOrder) -1;
        val = __Pyx_PyLong_As_enum__cudaMemcpySrcAccessOrder(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(enum cudaMemcpySrcAccessOrder, __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(enum cudaMemcpySrcAccessOrder) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) (((((enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) (((((((enum cudaMemcpySrcAccessOrder)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, 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(enum cudaMemcpySrcAccessOrder) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) (((((((((enum cudaMemcpySrcAccessOrder)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)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 (enum cudaMemcpySrcAccessOrder) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemcpySrcAccessOrder) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpySrcAccessOrder, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemcpySrcAccessOrder) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpySrcAccessOrder, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, __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(enum cudaMemcpySrcAccessOrder) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) (((enum cudaMemcpySrcAccessOrder)-1)*(((((enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) ((((((enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) (((enum cudaMemcpySrcAccessOrder)-1)*(((((((enum cudaMemcpySrcAccessOrder)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) ((((((((enum cudaMemcpySrcAccessOrder)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, 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(enum cudaMemcpySrcAccessOrder) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) (((enum cudaMemcpySrcAccessOrder)-1)*(((((((((enum cudaMemcpySrcAccessOrder)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemcpySrcAccessOrder) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpySrcAccessOrder, 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(enum cudaMemcpySrcAccessOrder) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpySrcAccessOrder) ((((((((((enum cudaMemcpySrcAccessOrder)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpySrcAccessOrder)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemcpySrcAccessOrder) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpySrcAccessOrder, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemcpySrcAccessOrder) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpySrcAccessOrder, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemcpySrcAccessOrder 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemcpySrcAccessOrder) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemcpySrcAccessOrder) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemcpySrcAccessOrder");
    return (enum cudaMemcpySrcAccessOrder) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemcpySrcAccessOrder");
    return (enum cudaMemcpySrcAccessOrder) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemcpy3DOperandType __Pyx_PyLong_As_enum__cudaMemcpy3DOperandType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemcpy3DOperandType neg_one = (enum cudaMemcpy3DOperandType) -1, const_zero = (enum cudaMemcpy3DOperandType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemcpy3DOperandType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemcpy3DOperandType) -1;
        val = __Pyx_PyLong_As_enum__cudaMemcpy3DOperandType(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(enum cudaMemcpy3DOperandType, __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(enum cudaMemcpy3DOperandType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpy3DOperandType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) (((((enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemcpy3DOperandType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpy3DOperandType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) (((((((enum cudaMemcpy3DOperandType)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemcpy3DOperandType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, 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(enum cudaMemcpy3DOperandType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) (((((((((enum cudaMemcpy3DOperandType)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)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 (enum cudaMemcpy3DOperandType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemcpy3DOperandType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpy3DOperandType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemcpy3DOperandType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpy3DOperandType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, __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(enum cudaMemcpy3DOperandType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpy3DOperandType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) (((enum cudaMemcpy3DOperandType)-1)*(((((enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemcpy3DOperandType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpy3DOperandType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) ((((((enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemcpy3DOperandType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpy3DOperandType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) (((enum cudaMemcpy3DOperandType)-1)*(((((((enum cudaMemcpy3DOperandType)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemcpy3DOperandType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemcpy3DOperandType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) ((((((((enum cudaMemcpy3DOperandType)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemcpy3DOperandType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, 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(enum cudaMemcpy3DOperandType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) (((enum cudaMemcpy3DOperandType)-1)*(((((((((enum cudaMemcpy3DOperandType)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemcpy3DOperandType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemcpy3DOperandType, 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(enum cudaMemcpy3DOperandType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemcpy3DOperandType) ((((((((((enum cudaMemcpy3DOperandType)digits[3]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[2]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[1]) << PyLong_SHIFT) | (enum cudaMemcpy3DOperandType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemcpy3DOperandType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpy3DOperandType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemcpy3DOperandType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemcpy3DOperandType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemcpy3DOperandType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemcpy3DOperandType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemcpy3DOperandType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemcpy3DOperandType");
    return (enum cudaMemcpy3DOperandType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemcpy3DOperandType");
    return (enum cudaMemcpy3DOperandType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE char __Pyx_PyLong_As_char(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const char neg_one = (char) -1, const_zero = (char) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        char val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (char) -1;
        val = __Pyx_PyLong_As_char(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(char, __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(char) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) >= 2 * PyLong_SHIFT)) {
                            return (char) (((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) >= 3 * PyLong_SHIFT)) {
                            return (char) (((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, 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(char) >= 4 * PyLong_SHIFT)) {
                            return (char) (((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)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 (char) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(char) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(char, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(char) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(char, __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(char) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
                            return (char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(char) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
                            return (char) ((((((char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(char) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
                            return (char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(char) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
                            return (char) ((((((((char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(char) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, 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(char) - 1 > 4 * PyLong_SHIFT)) {
                            return (char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(char) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(char, 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(char) - 1 > 4 * PyLong_SHIFT)) {
                            return (char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(char) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(char, long, PyLong_AsLong(x))
        } else if ((sizeof(char) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(char, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        char 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 (char) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (char) -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 (char) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (char) 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(char) * 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 |= ((char) 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(char) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((char) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((char) 1) << (sizeof(char) * 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 (char) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to char");
    return (char) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to char");
    return (char) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaExternalMemoryHandleType __Pyx_PyLong_As_enum__cudaExternalMemoryHandleType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaExternalMemoryHandleType neg_one = (enum cudaExternalMemoryHandleType) -1, const_zero = (enum cudaExternalMemoryHandleType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaExternalMemoryHandleType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaExternalMemoryHandleType) -1;
        val = __Pyx_PyLong_As_enum__cudaExternalMemoryHandleType(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(enum cudaExternalMemoryHandleType, __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(enum cudaExternalMemoryHandleType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalMemoryHandleType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) (((((enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaExternalMemoryHandleType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalMemoryHandleType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) (((((((enum cudaExternalMemoryHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaExternalMemoryHandleType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, 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(enum cudaExternalMemoryHandleType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) (((((((((enum cudaExternalMemoryHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)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 (enum cudaExternalMemoryHandleType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaExternalMemoryHandleType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalMemoryHandleType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaExternalMemoryHandleType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalMemoryHandleType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, __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(enum cudaExternalMemoryHandleType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalMemoryHandleType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) (((enum cudaExternalMemoryHandleType)-1)*(((((enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaExternalMemoryHandleType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalMemoryHandleType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) ((((((enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaExternalMemoryHandleType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalMemoryHandleType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) (((enum cudaExternalMemoryHandleType)-1)*(((((((enum cudaExternalMemoryHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaExternalMemoryHandleType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalMemoryHandleType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) ((((((((enum cudaExternalMemoryHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaExternalMemoryHandleType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, 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(enum cudaExternalMemoryHandleType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) (((enum cudaExternalMemoryHandleType)-1)*(((((((((enum cudaExternalMemoryHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaExternalMemoryHandleType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalMemoryHandleType, 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(enum cudaExternalMemoryHandleType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaExternalMemoryHandleType) ((((((((((enum cudaExternalMemoryHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalMemoryHandleType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaExternalMemoryHandleType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalMemoryHandleType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaExternalMemoryHandleType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalMemoryHandleType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaExternalMemoryHandleType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaExternalMemoryHandleType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaExternalMemoryHandleType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaExternalMemoryHandleType");
    return (enum cudaExternalMemoryHandleType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaExternalMemoryHandleType");
    return (enum cudaExternalMemoryHandleType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaExternalSemaphoreHandleType __Pyx_PyLong_As_enum__cudaExternalSemaphoreHandleType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaExternalSemaphoreHandleType neg_one = (enum cudaExternalSemaphoreHandleType) -1, const_zero = (enum cudaExternalSemaphoreHandleType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaExternalSemaphoreHandleType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaExternalSemaphoreHandleType) -1;
        val = __Pyx_PyLong_As_enum__cudaExternalSemaphoreHandleType(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(enum cudaExternalSemaphoreHandleType, __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(enum cudaExternalSemaphoreHandleType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) (((((enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) (((((((enum cudaExternalSemaphoreHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, 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(enum cudaExternalSemaphoreHandleType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) (((((((((enum cudaExternalSemaphoreHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)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 (enum cudaExternalSemaphoreHandleType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalSemaphoreHandleType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalSemaphoreHandleType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, __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(enum cudaExternalSemaphoreHandleType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) (((enum cudaExternalSemaphoreHandleType)-1)*(((((enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) ((((((enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) (((enum cudaExternalSemaphoreHandleType)-1)*(((((((enum cudaExternalSemaphoreHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) ((((((((enum cudaExternalSemaphoreHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, 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(enum cudaExternalSemaphoreHandleType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) (((enum cudaExternalSemaphoreHandleType)-1)*(((((((((enum cudaExternalSemaphoreHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaExternalSemaphoreHandleType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaExternalSemaphoreHandleType, 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(enum cudaExternalSemaphoreHandleType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaExternalSemaphoreHandleType) ((((((((((enum cudaExternalSemaphoreHandleType)digits[3]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[2]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[1]) << PyLong_SHIFT) | (enum cudaExternalSemaphoreHandleType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalSemaphoreHandleType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaExternalSemaphoreHandleType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaExternalSemaphoreHandleType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaExternalSemaphoreHandleType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaExternalSemaphoreHandleType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaExternalSemaphoreHandleType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaExternalSemaphoreHandleType");
    return (enum cudaExternalSemaphoreHandleType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaExternalSemaphoreHandleType");
    return (enum cudaExternalSemaphoreHandleType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaDevWorkqueueConfigScope __Pyx_PyLong_As_enum__cudaDevWorkqueueConfigScope(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDevWorkqueueConfigScope neg_one = (enum cudaDevWorkqueueConfigScope) -1, const_zero = (enum cudaDevWorkqueueConfigScope) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaDevWorkqueueConfigScope val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaDevWorkqueueConfigScope) -1;
        val = __Pyx_PyLong_As_enum__cudaDevWorkqueueConfigScope(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(enum cudaDevWorkqueueConfigScope, __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(enum cudaDevWorkqueueConfigScope) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) (((((enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) (((((((enum cudaDevWorkqueueConfigScope)digits[2]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, 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(enum cudaDevWorkqueueConfigScope) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) (((((((((enum cudaDevWorkqueueConfigScope)digits[3]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[2]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)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 (enum cudaDevWorkqueueConfigScope) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaDevWorkqueueConfigScope) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDevWorkqueueConfigScope, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaDevWorkqueueConfigScope) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDevWorkqueueConfigScope, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, __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(enum cudaDevWorkqueueConfigScope) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) (((enum cudaDevWorkqueueConfigScope)-1)*(((((enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) ((((((enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) (((enum cudaDevWorkqueueConfigScope)-1)*(((((((enum cudaDevWorkqueueConfigScope)digits[2]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) ((((((((enum cudaDevWorkqueueConfigScope)digits[2]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, 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(enum cudaDevWorkqueueConfigScope) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) (((enum cudaDevWorkqueueConfigScope)-1)*(((((((((enum cudaDevWorkqueueConfigScope)digits[3]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[2]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaDevWorkqueueConfigScope) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevWorkqueueConfigScope, 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(enum cudaDevWorkqueueConfigScope) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaDevWorkqueueConfigScope) ((((((((((enum cudaDevWorkqueueConfigScope)digits[3]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[2]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[1]) << PyLong_SHIFT) | (enum cudaDevWorkqueueConfigScope)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaDevWorkqueueConfigScope) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDevWorkqueueConfigScope, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaDevWorkqueueConfigScope) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDevWorkqueueConfigScope, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaDevWorkqueueConfigScope 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaDevWorkqueueConfigScope) -1;
#endif
        if (unlikely(ret))
            return (enum cudaDevWorkqueueConfigScope) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaDevWorkqueueConfigScope");
    return (enum cudaDevWorkqueueConfigScope) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaDevWorkqueueConfigScope");
    return (enum cudaDevWorkqueueConfigScope) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaDevResourceType __Pyx_PyLong_As_enum__cudaDevResourceType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDevResourceType neg_one = (enum cudaDevResourceType) -1, const_zero = (enum cudaDevResourceType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaDevResourceType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaDevResourceType) -1;
        val = __Pyx_PyLong_As_enum__cudaDevResourceType(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(enum cudaDevResourceType, __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(enum cudaDevResourceType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevResourceType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) (((((enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaDevResourceType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevResourceType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) (((((((enum cudaDevResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaDevResourceType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, 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(enum cudaDevResourceType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) (((((((((enum cudaDevResourceType)digits[3]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)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 (enum cudaDevResourceType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaDevResourceType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDevResourceType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaDevResourceType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDevResourceType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, __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(enum cudaDevResourceType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevResourceType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) (((enum cudaDevResourceType)-1)*(((((enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaDevResourceType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevResourceType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) ((((((enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaDevResourceType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevResourceType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) (((enum cudaDevResourceType)-1)*(((((((enum cudaDevResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaDevResourceType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDevResourceType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) ((((((((enum cudaDevResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaDevResourceType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, 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(enum cudaDevResourceType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) (((enum cudaDevResourceType)-1)*(((((((((enum cudaDevResourceType)digits[3]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaDevResourceType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDevResourceType, 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(enum cudaDevResourceType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaDevResourceType) ((((((((((enum cudaDevResourceType)digits[3]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[2]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[1]) << PyLong_SHIFT) | (enum cudaDevResourceType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaDevResourceType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDevResourceType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaDevResourceType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDevResourceType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaDevResourceType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaDevResourceType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaDevResourceType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaDevResourceType");
    return (enum cudaDevResourceType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaDevResourceType");
    return (enum cudaDevResourceType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaGraphConditionalNodeType __Pyx_PyLong_As_enum__cudaGraphConditionalNodeType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphConditionalNodeType neg_one = (enum cudaGraphConditionalNodeType) -1, const_zero = (enum cudaGraphConditionalNodeType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaGraphConditionalNodeType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaGraphConditionalNodeType) -1;
        val = __Pyx_PyLong_As_enum__cudaGraphConditionalNodeType(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(enum cudaGraphConditionalNodeType, __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(enum cudaGraphConditionalNodeType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphConditionalNodeType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) (((((enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphConditionalNodeType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphConditionalNodeType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) (((((((enum cudaGraphConditionalNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphConditionalNodeType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, 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(enum cudaGraphConditionalNodeType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) (((((((((enum cudaGraphConditionalNodeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)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 (enum cudaGraphConditionalNodeType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaGraphConditionalNodeType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphConditionalNodeType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaGraphConditionalNodeType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphConditionalNodeType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, __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(enum cudaGraphConditionalNodeType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphConditionalNodeType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) (((enum cudaGraphConditionalNodeType)-1)*(((((enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaGraphConditionalNodeType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphConditionalNodeType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) ((((((enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaGraphConditionalNodeType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphConditionalNodeType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) (((enum cudaGraphConditionalNodeType)-1)*(((((((enum cudaGraphConditionalNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphConditionalNodeType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphConditionalNodeType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) ((((((((enum cudaGraphConditionalNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaGraphConditionalNodeType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, 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(enum cudaGraphConditionalNodeType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) (((enum cudaGraphConditionalNodeType)-1)*(((((((((enum cudaGraphConditionalNodeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphConditionalNodeType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphConditionalNodeType, 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(enum cudaGraphConditionalNodeType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphConditionalNodeType) ((((((((((enum cudaGraphConditionalNodeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphConditionalNodeType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaGraphConditionalNodeType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphConditionalNodeType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaGraphConditionalNodeType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphConditionalNodeType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaGraphConditionalNodeType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaGraphConditionalNodeType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaGraphConditionalNodeType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaGraphConditionalNodeType");
    return (enum cudaGraphConditionalNodeType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaGraphConditionalNodeType");
    return (enum cudaGraphConditionalNodeType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaGraphChildGraphNodeOwnership __Pyx_PyLong_As_enum__cudaGraphChildGraphNodeOwnership(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphChildGraphNodeOwnership neg_one = (enum cudaGraphChildGraphNodeOwnership) -1, const_zero = (enum cudaGraphChildGraphNodeOwnership) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaGraphChildGraphNodeOwnership val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaGraphChildGraphNodeOwnership) -1;
        val = __Pyx_PyLong_As_enum__cudaGraphChildGraphNodeOwnership(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(enum cudaGraphChildGraphNodeOwnership, __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(enum cudaGraphChildGraphNodeOwnership) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) (((((enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) (((((((enum cudaGraphChildGraphNodeOwnership)digits[2]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, 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(enum cudaGraphChildGraphNodeOwnership) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) (((((((((enum cudaGraphChildGraphNodeOwnership)digits[3]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[2]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)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 (enum cudaGraphChildGraphNodeOwnership) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaGraphChildGraphNodeOwnership) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphChildGraphNodeOwnership, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaGraphChildGraphNodeOwnership) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphChildGraphNodeOwnership, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, __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(enum cudaGraphChildGraphNodeOwnership) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) (((enum cudaGraphChildGraphNodeOwnership)-1)*(((((enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) ((((((enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) (((enum cudaGraphChildGraphNodeOwnership)-1)*(((((((enum cudaGraphChildGraphNodeOwnership)digits[2]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) ((((((((enum cudaGraphChildGraphNodeOwnership)digits[2]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, 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(enum cudaGraphChildGraphNodeOwnership) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) (((enum cudaGraphChildGraphNodeOwnership)-1)*(((((((((enum cudaGraphChildGraphNodeOwnership)digits[3]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[2]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphChildGraphNodeOwnership) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphChildGraphNodeOwnership, 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(enum cudaGraphChildGraphNodeOwnership) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphChildGraphNodeOwnership) ((((((((((enum cudaGraphChildGraphNodeOwnership)digits[3]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[2]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[1]) << PyLong_SHIFT) | (enum cudaGraphChildGraphNodeOwnership)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaGraphChildGraphNodeOwnership) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphChildGraphNodeOwnership, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaGraphChildGraphNodeOwnership) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphChildGraphNodeOwnership, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaGraphChildGraphNodeOwnership 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaGraphChildGraphNodeOwnership) -1;
#endif
        if (unlikely(ret))
            return (enum cudaGraphChildGraphNodeOwnership) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaGraphChildGraphNodeOwnership");
    return (enum cudaGraphChildGraphNodeOwnership) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaGraphChildGraphNodeOwnership");
    return (enum cudaGraphChildGraphNodeOwnership) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaGraphNodeType __Pyx_PyLong_As_enum__cudaGraphNodeType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphNodeType neg_one = (enum cudaGraphNodeType) -1, const_zero = (enum cudaGraphNodeType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaGraphNodeType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaGraphNodeType) -1;
        val = __Pyx_PyLong_As_enum__cudaGraphNodeType(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(enum cudaGraphNodeType, __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(enum cudaGraphNodeType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphNodeType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) (((((enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphNodeType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphNodeType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) (((((((enum cudaGraphNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphNodeType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, 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(enum cudaGraphNodeType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) (((((((((enum cudaGraphNodeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)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 (enum cudaGraphNodeType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaGraphNodeType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphNodeType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaGraphNodeType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphNodeType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, __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(enum cudaGraphNodeType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphNodeType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) (((enum cudaGraphNodeType)-1)*(((((enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaGraphNodeType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphNodeType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) ((((((enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaGraphNodeType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphNodeType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) (((enum cudaGraphNodeType)-1)*(((((((enum cudaGraphNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphNodeType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphNodeType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) ((((((((enum cudaGraphNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaGraphNodeType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, 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(enum cudaGraphNodeType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) (((enum cudaGraphNodeType)-1)*(((((((((enum cudaGraphNodeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphNodeType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphNodeType, 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(enum cudaGraphNodeType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphNodeType) ((((((((((enum cudaGraphNodeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphNodeType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaGraphNodeType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphNodeType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaGraphNodeType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphNodeType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaGraphNodeType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaGraphNodeType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaGraphNodeType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaGraphNodeType");
    return (enum cudaGraphNodeType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaGraphNodeType");
    return (enum cudaGraphNodeType) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_PY_LONG_LONG(PY_LONG_LONG value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const PY_LONG_LONG neg_one = (PY_LONG_LONG) -1, const_zero = (PY_LONG_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(PY_LONG_LONG) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(PY_LONG_LONG) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(PY_LONG_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(PY_LONG_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(PY_LONG_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
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_char(unsigned char value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned char neg_one = (unsigned char) -1, const_zero = (unsigned char) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(unsigned char) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned char) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(unsigned char) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned char) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned char) <= 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(unsigned char),
                                     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(unsigned char));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaGraphInstantiateResult __Pyx_PyLong_As_enum__cudaGraphInstantiateResult(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphInstantiateResult neg_one = (enum cudaGraphInstantiateResult) -1, const_zero = (enum cudaGraphInstantiateResult) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaGraphInstantiateResult val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaGraphInstantiateResult) -1;
        val = __Pyx_PyLong_As_enum__cudaGraphInstantiateResult(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(enum cudaGraphInstantiateResult, __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(enum cudaGraphInstantiateResult) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphInstantiateResult) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) (((((enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphInstantiateResult) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphInstantiateResult) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) (((((((enum cudaGraphInstantiateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphInstantiateResult) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, 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(enum cudaGraphInstantiateResult) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) (((((((((enum cudaGraphInstantiateResult)digits[3]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)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 (enum cudaGraphInstantiateResult) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaGraphInstantiateResult) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphInstantiateResult, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaGraphInstantiateResult) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphInstantiateResult, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, __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(enum cudaGraphInstantiateResult) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphInstantiateResult) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) (((enum cudaGraphInstantiateResult)-1)*(((((enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaGraphInstantiateResult) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphInstantiateResult) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) ((((((enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaGraphInstantiateResult) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphInstantiateResult) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) (((enum cudaGraphInstantiateResult)-1)*(((((((enum cudaGraphInstantiateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphInstantiateResult) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphInstantiateResult) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) ((((((((enum cudaGraphInstantiateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaGraphInstantiateResult) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, 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(enum cudaGraphInstantiateResult) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) (((enum cudaGraphInstantiateResult)-1)*(((((((((enum cudaGraphInstantiateResult)digits[3]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphInstantiateResult) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphInstantiateResult, 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(enum cudaGraphInstantiateResult) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphInstantiateResult) ((((((((((enum cudaGraphInstantiateResult)digits[3]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphInstantiateResult)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaGraphInstantiateResult) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphInstantiateResult, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaGraphInstantiateResult) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphInstantiateResult, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaGraphInstantiateResult 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaGraphInstantiateResult) -1;
#endif
        if (unlikely(ret))
            return (enum cudaGraphInstantiateResult) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaGraphInstantiateResult");
    return (enum cudaGraphInstantiateResult) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaGraphInstantiateResult");
    return (enum cudaGraphInstantiateResult) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaGraphExecUpdateResult __Pyx_PyLong_As_enum__cudaGraphExecUpdateResult(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphExecUpdateResult neg_one = (enum cudaGraphExecUpdateResult) -1, const_zero = (enum cudaGraphExecUpdateResult) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaGraphExecUpdateResult val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaGraphExecUpdateResult) -1;
        val = __Pyx_PyLong_As_enum__cudaGraphExecUpdateResult(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(enum cudaGraphExecUpdateResult, __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(enum cudaGraphExecUpdateResult) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphExecUpdateResult) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) (((((enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphExecUpdateResult) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphExecUpdateResult) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) (((((((enum cudaGraphExecUpdateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphExecUpdateResult) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, 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(enum cudaGraphExecUpdateResult) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) (((((((((enum cudaGraphExecUpdateResult)digits[3]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)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 (enum cudaGraphExecUpdateResult) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaGraphExecUpdateResult) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphExecUpdateResult, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaGraphExecUpdateResult) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphExecUpdateResult, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, __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(enum cudaGraphExecUpdateResult) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphExecUpdateResult) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) (((enum cudaGraphExecUpdateResult)-1)*(((((enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaGraphExecUpdateResult) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphExecUpdateResult) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) ((((((enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaGraphExecUpdateResult) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphExecUpdateResult) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) (((enum cudaGraphExecUpdateResult)-1)*(((((((enum cudaGraphExecUpdateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphExecUpdateResult) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphExecUpdateResult) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) ((((((((enum cudaGraphExecUpdateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaGraphExecUpdateResult) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, 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(enum cudaGraphExecUpdateResult) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) (((enum cudaGraphExecUpdateResult)-1)*(((((((((enum cudaGraphExecUpdateResult)digits[3]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphExecUpdateResult) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphExecUpdateResult, 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(enum cudaGraphExecUpdateResult) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphExecUpdateResult) ((((((((((enum cudaGraphExecUpdateResult)digits[3]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[2]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[1]) << PyLong_SHIFT) | (enum cudaGraphExecUpdateResult)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaGraphExecUpdateResult) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphExecUpdateResult, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaGraphExecUpdateResult) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphExecUpdateResult, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaGraphExecUpdateResult 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaGraphExecUpdateResult) -1;
#endif
        if (unlikely(ret))
            return (enum cudaGraphExecUpdateResult) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaGraphExecUpdateResult");
    return (enum cudaGraphExecUpdateResult) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaGraphExecUpdateResult");
    return (enum cudaGraphExecUpdateResult) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaGraphKernelNodeField __Pyx_PyLong_As_enum__cudaGraphKernelNodeField(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphKernelNodeField neg_one = (enum cudaGraphKernelNodeField) -1, const_zero = (enum cudaGraphKernelNodeField) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaGraphKernelNodeField val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaGraphKernelNodeField) -1;
        val = __Pyx_PyLong_As_enum__cudaGraphKernelNodeField(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(enum cudaGraphKernelNodeField, __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(enum cudaGraphKernelNodeField) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphKernelNodeField) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) (((((enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphKernelNodeField) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphKernelNodeField) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) (((((((enum cudaGraphKernelNodeField)digits[2]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphKernelNodeField) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, 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(enum cudaGraphKernelNodeField) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) (((((((((enum cudaGraphKernelNodeField)digits[3]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[2]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)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 (enum cudaGraphKernelNodeField) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaGraphKernelNodeField) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphKernelNodeField, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaGraphKernelNodeField) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphKernelNodeField, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, __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(enum cudaGraphKernelNodeField) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphKernelNodeField) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) (((enum cudaGraphKernelNodeField)-1)*(((((enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaGraphKernelNodeField) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphKernelNodeField) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) ((((((enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaGraphKernelNodeField) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphKernelNodeField) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) (((enum cudaGraphKernelNodeField)-1)*(((((((enum cudaGraphKernelNodeField)digits[2]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphKernelNodeField) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphKernelNodeField) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) ((((((((enum cudaGraphKernelNodeField)digits[2]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaGraphKernelNodeField) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, 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(enum cudaGraphKernelNodeField) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) (((enum cudaGraphKernelNodeField)-1)*(((((((((enum cudaGraphKernelNodeField)digits[3]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[2]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphKernelNodeField) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphKernelNodeField, 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(enum cudaGraphKernelNodeField) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphKernelNodeField) ((((((((((enum cudaGraphKernelNodeField)digits[3]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[2]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[1]) << PyLong_SHIFT) | (enum cudaGraphKernelNodeField)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaGraphKernelNodeField) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphKernelNodeField, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaGraphKernelNodeField) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphKernelNodeField, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaGraphKernelNodeField 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaGraphKernelNodeField) -1;
#endif
        if (unlikely(ret))
            return (enum cudaGraphKernelNodeField) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaGraphKernelNodeField");
    return (enum cudaGraphKernelNodeField) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaGraphKernelNodeField");
    return (enum cudaGraphKernelNodeField) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaSynchronizationPolicy __Pyx_PyLong_As_enum__cudaSynchronizationPolicy(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaSynchronizationPolicy neg_one = (enum cudaSynchronizationPolicy) -1, const_zero = (enum cudaSynchronizationPolicy) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaSynchronizationPolicy val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaSynchronizationPolicy) -1;
        val = __Pyx_PyLong_As_enum__cudaSynchronizationPolicy(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(enum cudaSynchronizationPolicy, __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(enum cudaSynchronizationPolicy) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSynchronizationPolicy) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) (((((enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaSynchronizationPolicy) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSynchronizationPolicy) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) (((((((enum cudaSynchronizationPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaSynchronizationPolicy) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, 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(enum cudaSynchronizationPolicy) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) (((((((((enum cudaSynchronizationPolicy)digits[3]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)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 (enum cudaSynchronizationPolicy) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaSynchronizationPolicy) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaSynchronizationPolicy, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaSynchronizationPolicy) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaSynchronizationPolicy, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, __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(enum cudaSynchronizationPolicy) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSynchronizationPolicy) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) (((enum cudaSynchronizationPolicy)-1)*(((((enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaSynchronizationPolicy) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSynchronizationPolicy) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) ((((((enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaSynchronizationPolicy) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSynchronizationPolicy) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) (((enum cudaSynchronizationPolicy)-1)*(((((((enum cudaSynchronizationPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaSynchronizationPolicy) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSynchronizationPolicy) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) ((((((((enum cudaSynchronizationPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaSynchronizationPolicy) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, 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(enum cudaSynchronizationPolicy) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) (((enum cudaSynchronizationPolicy)-1)*(((((((((enum cudaSynchronizationPolicy)digits[3]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaSynchronizationPolicy) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSynchronizationPolicy, 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(enum cudaSynchronizationPolicy) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaSynchronizationPolicy) ((((((((((enum cudaSynchronizationPolicy)digits[3]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaSynchronizationPolicy)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaSynchronizationPolicy) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaSynchronizationPolicy, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaSynchronizationPolicy) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaSynchronizationPolicy, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaSynchronizationPolicy 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaSynchronizationPolicy) -1;
#endif
        if (unlikely(ret))
            return (enum cudaSynchronizationPolicy) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaSynchronizationPolicy");
    return (enum cudaSynchronizationPolicy) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaSynchronizationPolicy");
    return (enum cudaSynchronizationPolicy) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaClusterSchedulingPolicy __Pyx_PyLong_As_enum__cudaClusterSchedulingPolicy(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaClusterSchedulingPolicy neg_one = (enum cudaClusterSchedulingPolicy) -1, const_zero = (enum cudaClusterSchedulingPolicy) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaClusterSchedulingPolicy val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaClusterSchedulingPolicy) -1;
        val = __Pyx_PyLong_As_enum__cudaClusterSchedulingPolicy(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(enum cudaClusterSchedulingPolicy, __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(enum cudaClusterSchedulingPolicy) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaClusterSchedulingPolicy) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) (((((enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaClusterSchedulingPolicy) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaClusterSchedulingPolicy) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) (((((((enum cudaClusterSchedulingPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaClusterSchedulingPolicy) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, 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(enum cudaClusterSchedulingPolicy) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) (((((((((enum cudaClusterSchedulingPolicy)digits[3]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)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 (enum cudaClusterSchedulingPolicy) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaClusterSchedulingPolicy, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaClusterSchedulingPolicy, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, __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(enum cudaClusterSchedulingPolicy) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaClusterSchedulingPolicy) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) (((enum cudaClusterSchedulingPolicy)-1)*(((((enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaClusterSchedulingPolicy) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaClusterSchedulingPolicy) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) ((((((enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaClusterSchedulingPolicy) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaClusterSchedulingPolicy) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) (((enum cudaClusterSchedulingPolicy)-1)*(((((((enum cudaClusterSchedulingPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaClusterSchedulingPolicy) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaClusterSchedulingPolicy) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) ((((((((enum cudaClusterSchedulingPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaClusterSchedulingPolicy) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, 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(enum cudaClusterSchedulingPolicy) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) (((enum cudaClusterSchedulingPolicy)-1)*(((((((((enum cudaClusterSchedulingPolicy)digits[3]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaClusterSchedulingPolicy) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaClusterSchedulingPolicy, 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(enum cudaClusterSchedulingPolicy) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaClusterSchedulingPolicy) ((((((((((enum cudaClusterSchedulingPolicy)digits[3]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[2]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[1]) << PyLong_SHIFT) | (enum cudaClusterSchedulingPolicy)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaClusterSchedulingPolicy, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaClusterSchedulingPolicy) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaClusterSchedulingPolicy, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaClusterSchedulingPolicy 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaClusterSchedulingPolicy) -1;
#endif
        if (unlikely(ret))
            return (enum cudaClusterSchedulingPolicy) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaClusterSchedulingPolicy");
    return (enum cudaClusterSchedulingPolicy) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaClusterSchedulingPolicy");
    return (enum cudaClusterSchedulingPolicy) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaLaunchMemSyncDomain __Pyx_PyLong_As_enum__cudaLaunchMemSyncDomain(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaLaunchMemSyncDomain neg_one = (enum cudaLaunchMemSyncDomain) -1, const_zero = (enum cudaLaunchMemSyncDomain) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaLaunchMemSyncDomain val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaLaunchMemSyncDomain) -1;
        val = __Pyx_PyLong_As_enum__cudaLaunchMemSyncDomain(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(enum cudaLaunchMemSyncDomain, __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(enum cudaLaunchMemSyncDomain) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchMemSyncDomain) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) (((((enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaLaunchMemSyncDomain) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchMemSyncDomain) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) (((((((enum cudaLaunchMemSyncDomain)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaLaunchMemSyncDomain) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, 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(enum cudaLaunchMemSyncDomain) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) (((((((((enum cudaLaunchMemSyncDomain)digits[3]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)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 (enum cudaLaunchMemSyncDomain) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchMemSyncDomain, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchMemSyncDomain, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, __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(enum cudaLaunchMemSyncDomain) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchMemSyncDomain) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) (((enum cudaLaunchMemSyncDomain)-1)*(((((enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaLaunchMemSyncDomain) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchMemSyncDomain) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) ((((((enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaLaunchMemSyncDomain) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchMemSyncDomain) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) (((enum cudaLaunchMemSyncDomain)-1)*(((((((enum cudaLaunchMemSyncDomain)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaLaunchMemSyncDomain) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchMemSyncDomain) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) ((((((((enum cudaLaunchMemSyncDomain)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaLaunchMemSyncDomain) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, 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(enum cudaLaunchMemSyncDomain) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) (((enum cudaLaunchMemSyncDomain)-1)*(((((((((enum cudaLaunchMemSyncDomain)digits[3]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaLaunchMemSyncDomain) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchMemSyncDomain, 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(enum cudaLaunchMemSyncDomain) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaLaunchMemSyncDomain) ((((((((((enum cudaLaunchMemSyncDomain)digits[3]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchMemSyncDomain)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchMemSyncDomain, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaLaunchMemSyncDomain) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchMemSyncDomain, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaLaunchMemSyncDomain 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaLaunchMemSyncDomain) -1;
#endif
        if (unlikely(ret))
            return (enum cudaLaunchMemSyncDomain) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaLaunchMemSyncDomain");
    return (enum cudaLaunchMemSyncDomain) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaLaunchMemSyncDomain");
    return (enum cudaLaunchMemSyncDomain) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaLaunchAttributeID __Pyx_PyLong_As_enum__cudaLaunchAttributeID(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaLaunchAttributeID neg_one = (enum cudaLaunchAttributeID) -1, const_zero = (enum cudaLaunchAttributeID) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaLaunchAttributeID val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaLaunchAttributeID) -1;
        val = __Pyx_PyLong_As_enum__cudaLaunchAttributeID(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(enum cudaLaunchAttributeID, __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(enum cudaLaunchAttributeID) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchAttributeID) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) (((((enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaLaunchAttributeID) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchAttributeID) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) (((((((enum cudaLaunchAttributeID)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaLaunchAttributeID) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, 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(enum cudaLaunchAttributeID) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) (((((((((enum cudaLaunchAttributeID)digits[3]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)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 (enum cudaLaunchAttributeID) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaLaunchAttributeID) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchAttributeID, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaLaunchAttributeID) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchAttributeID, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, __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(enum cudaLaunchAttributeID) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchAttributeID) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) (((enum cudaLaunchAttributeID)-1)*(((((enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaLaunchAttributeID) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchAttributeID) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) ((((((enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaLaunchAttributeID) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchAttributeID) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) (((enum cudaLaunchAttributeID)-1)*(((((((enum cudaLaunchAttributeID)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaLaunchAttributeID) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLaunchAttributeID) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) ((((((((enum cudaLaunchAttributeID)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaLaunchAttributeID) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, 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(enum cudaLaunchAttributeID) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) (((enum cudaLaunchAttributeID)-1)*(((((((((enum cudaLaunchAttributeID)digits[3]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaLaunchAttributeID) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLaunchAttributeID, 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(enum cudaLaunchAttributeID) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaLaunchAttributeID) ((((((((((enum cudaLaunchAttributeID)digits[3]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[2]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[1]) << PyLong_SHIFT) | (enum cudaLaunchAttributeID)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaLaunchAttributeID) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchAttributeID, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaLaunchAttributeID) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLaunchAttributeID, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaLaunchAttributeID 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaLaunchAttributeID) -1;
#endif
        if (unlikely(ret))
            return (enum cudaLaunchAttributeID) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaLaunchAttributeID");
    return (enum cudaLaunchAttributeID) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaLaunchAttributeID");
    return (enum cudaLaunchAttributeID) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaAsyncNotificationType_enum __Pyx_PyLong_As_enum__cudaAsyncNotificationType_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaAsyncNotificationType_enum neg_one = (enum cudaAsyncNotificationType_enum) -1, const_zero = (enum cudaAsyncNotificationType_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaAsyncNotificationType_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaAsyncNotificationType_enum) -1;
        val = __Pyx_PyLong_As_enum__cudaAsyncNotificationType_enum(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(enum cudaAsyncNotificationType_enum, __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(enum cudaAsyncNotificationType_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAsyncNotificationType_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) (((((enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaAsyncNotificationType_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAsyncNotificationType_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) (((((((enum cudaAsyncNotificationType_enum)digits[2]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaAsyncNotificationType_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, 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(enum cudaAsyncNotificationType_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) (((((((((enum cudaAsyncNotificationType_enum)digits[3]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[2]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)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 (enum cudaAsyncNotificationType_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAsyncNotificationType_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAsyncNotificationType_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, __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(enum cudaAsyncNotificationType_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAsyncNotificationType_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) (((enum cudaAsyncNotificationType_enum)-1)*(((((enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaAsyncNotificationType_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAsyncNotificationType_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) ((((((enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaAsyncNotificationType_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAsyncNotificationType_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) (((enum cudaAsyncNotificationType_enum)-1)*(((((((enum cudaAsyncNotificationType_enum)digits[2]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaAsyncNotificationType_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAsyncNotificationType_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) ((((((((enum cudaAsyncNotificationType_enum)digits[2]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaAsyncNotificationType_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, 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(enum cudaAsyncNotificationType_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) (((enum cudaAsyncNotificationType_enum)-1)*(((((((((enum cudaAsyncNotificationType_enum)digits[3]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[2]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaAsyncNotificationType_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAsyncNotificationType_enum, 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(enum cudaAsyncNotificationType_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaAsyncNotificationType_enum) ((((((((((enum cudaAsyncNotificationType_enum)digits[3]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[2]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[1]) << PyLong_SHIFT) | (enum cudaAsyncNotificationType_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAsyncNotificationType_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaAsyncNotificationType_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAsyncNotificationType_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaAsyncNotificationType_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaAsyncNotificationType_enum) -1;
#endif
        if (unlikely(ret))
            return (enum cudaAsyncNotificationType_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaAsyncNotificationType_enum");
    return (enum cudaAsyncNotificationType_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaAsyncNotificationType_enum");
    return (enum cudaAsyncNotificationType_enum) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaTextureAddressMode __Pyx_PyLong_As_enum__cudaTextureAddressMode(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaTextureAddressMode neg_one = (enum cudaTextureAddressMode) -1, const_zero = (enum cudaTextureAddressMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaTextureAddressMode val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaTextureAddressMode) -1;
        val = __Pyx_PyLong_As_enum__cudaTextureAddressMode(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(enum cudaTextureAddressMode, __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(enum cudaTextureAddressMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureAddressMode) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) (((((enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaTextureAddressMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureAddressMode) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) (((((((enum cudaTextureAddressMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaTextureAddressMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, 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(enum cudaTextureAddressMode) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) (((((((((enum cudaTextureAddressMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)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 (enum cudaTextureAddressMode) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaTextureAddressMode) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureAddressMode, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaTextureAddressMode) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureAddressMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, __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(enum cudaTextureAddressMode) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureAddressMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) (((enum cudaTextureAddressMode)-1)*(((((enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaTextureAddressMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureAddressMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) ((((((enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaTextureAddressMode) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureAddressMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) (((enum cudaTextureAddressMode)-1)*(((((((enum cudaTextureAddressMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaTextureAddressMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureAddressMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) ((((((((enum cudaTextureAddressMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaTextureAddressMode) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, 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(enum cudaTextureAddressMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) (((enum cudaTextureAddressMode)-1)*(((((((((enum cudaTextureAddressMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaTextureAddressMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureAddressMode, 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(enum cudaTextureAddressMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureAddressMode) ((((((((((enum cudaTextureAddressMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureAddressMode)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaTextureAddressMode) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureAddressMode, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaTextureAddressMode) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureAddressMode, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaTextureAddressMode 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaTextureAddressMode) -1;
#endif
        if (unlikely(ret))
            return (enum cudaTextureAddressMode) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaTextureAddressMode");
    return (enum cudaTextureAddressMode) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaTextureAddressMode");
    return (enum cudaTextureAddressMode) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaTextureFilterMode __Pyx_PyLong_As_enum__cudaTextureFilterMode(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaTextureFilterMode neg_one = (enum cudaTextureFilterMode) -1, const_zero = (enum cudaTextureFilterMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaTextureFilterMode val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaTextureFilterMode) -1;
        val = __Pyx_PyLong_As_enum__cudaTextureFilterMode(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(enum cudaTextureFilterMode, __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(enum cudaTextureFilterMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureFilterMode) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) (((((enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaTextureFilterMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureFilterMode) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) (((((((enum cudaTextureFilterMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaTextureFilterMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, 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(enum cudaTextureFilterMode) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) (((((((((enum cudaTextureFilterMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)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 (enum cudaTextureFilterMode) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaTextureFilterMode) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureFilterMode, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaTextureFilterMode) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureFilterMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, __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(enum cudaTextureFilterMode) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureFilterMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) (((enum cudaTextureFilterMode)-1)*(((((enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaTextureFilterMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureFilterMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) ((((((enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaTextureFilterMode) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureFilterMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) (((enum cudaTextureFilterMode)-1)*(((((((enum cudaTextureFilterMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaTextureFilterMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureFilterMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) ((((((((enum cudaTextureFilterMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaTextureFilterMode) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, 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(enum cudaTextureFilterMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) (((enum cudaTextureFilterMode)-1)*(((((((((enum cudaTextureFilterMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaTextureFilterMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureFilterMode, 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(enum cudaTextureFilterMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureFilterMode) ((((((((((enum cudaTextureFilterMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureFilterMode)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaTextureFilterMode) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureFilterMode, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaTextureFilterMode) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureFilterMode, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaTextureFilterMode 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaTextureFilterMode) -1;
#endif
        if (unlikely(ret))
            return (enum cudaTextureFilterMode) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaTextureFilterMode");
    return (enum cudaTextureFilterMode) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaTextureFilterMode");
    return (enum cudaTextureFilterMode) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaTextureReadMode __Pyx_PyLong_As_enum__cudaTextureReadMode(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaTextureReadMode neg_one = (enum cudaTextureReadMode) -1, const_zero = (enum cudaTextureReadMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaTextureReadMode val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaTextureReadMode) -1;
        val = __Pyx_PyLong_As_enum__cudaTextureReadMode(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(enum cudaTextureReadMode, __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(enum cudaTextureReadMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureReadMode) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) (((((enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaTextureReadMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureReadMode) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) (((((((enum cudaTextureReadMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaTextureReadMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, 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(enum cudaTextureReadMode) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) (((((((((enum cudaTextureReadMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)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 (enum cudaTextureReadMode) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaTextureReadMode) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureReadMode, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaTextureReadMode) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureReadMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, __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(enum cudaTextureReadMode) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureReadMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) (((enum cudaTextureReadMode)-1)*(((((enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaTextureReadMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureReadMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) ((((((enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaTextureReadMode) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureReadMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) (((enum cudaTextureReadMode)-1)*(((((((enum cudaTextureReadMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaTextureReadMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaTextureReadMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) ((((((((enum cudaTextureReadMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaTextureReadMode) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, 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(enum cudaTextureReadMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) (((enum cudaTextureReadMode)-1)*(((((((((enum cudaTextureReadMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaTextureReadMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaTextureReadMode, 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(enum cudaTextureReadMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaTextureReadMode) ((((((((((enum cudaTextureReadMode)digits[3]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[2]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[1]) << PyLong_SHIFT) | (enum cudaTextureReadMode)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaTextureReadMode) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureReadMode, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaTextureReadMode) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaTextureReadMode, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaTextureReadMode 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaTextureReadMode) -1;
#endif
        if (unlikely(ret))
            return (enum cudaTextureReadMode) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaTextureReadMode");
    return (enum cudaTextureReadMode) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaTextureReadMode");
    return (enum cudaTextureReadMode) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum neg_one = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) -1, const_zero = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) -1;
        val = __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum(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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, __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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) (((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) (((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) (((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)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 (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, __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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)-1)*(((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) ((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)-1)*(((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) ((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)-1)*(((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) ((((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) -1;
#endif
        if (unlikely(ret))
            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum");
    return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum");
    return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglFrameType_enum) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum neg_one = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) -1, const_zero = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) -1;
        val = __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum(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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, __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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) >= 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) (((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) >= 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) (((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) >= 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) (((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)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 (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, __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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)-1)*(((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) ((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)-1)*(((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) ((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)-1)*(((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) ((((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, long, PyLong_AsLong(x))
        } else if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) -1;
#endif
        if (unlikely(ret))
            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum");
    return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum");
    return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaEglColorFormat_enum) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_uint32_t(uint32_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint32_t neg_one = (uint32_t) -1, const_zero = (uint32_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(uint32_t) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(uint32_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(uint32_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(uint32_t) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(uint32_t) <= 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(uint32_t),
                                     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(uint32_t));
        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
    }
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaLimit __Pyx_PyLong_As_enum__cudaLimit(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaLimit neg_one = (enum cudaLimit) -1, const_zero = (enum cudaLimit) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaLimit val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaLimit) -1;
        val = __Pyx_PyLong_As_enum__cudaLimit(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(enum cudaLimit, __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(enum cudaLimit) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLimit) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaLimit) (((((enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaLimit) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLimit) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaLimit) (((((((enum cudaLimit)digits[2]) << PyLong_SHIFT) | (enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaLimit) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, 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(enum cudaLimit) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaLimit) (((((((((enum cudaLimit)digits[3]) << PyLong_SHIFT) | (enum cudaLimit)digits[2]) << PyLong_SHIFT) | (enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)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 (enum cudaLimit) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaLimit) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLimit, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaLimit) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLimit, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaLimit, __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(enum cudaLimit) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLimit) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaLimit) (((enum cudaLimit)-1)*(((((enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaLimit) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLimit) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaLimit) ((((((enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaLimit) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLimit) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaLimit) (((enum cudaLimit)-1)*(((((((enum cudaLimit)digits[2]) << PyLong_SHIFT) | (enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaLimit) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaLimit) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaLimit) ((((((((enum cudaLimit)digits[2]) << PyLong_SHIFT) | (enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaLimit) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, 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(enum cudaLimit) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaLimit) (((enum cudaLimit)-1)*(((((((((enum cudaLimit)digits[3]) << PyLong_SHIFT) | (enum cudaLimit)digits[2]) << PyLong_SHIFT) | (enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaLimit) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaLimit, 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(enum cudaLimit) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaLimit) ((((((((((enum cudaLimit)digits[3]) << PyLong_SHIFT) | (enum cudaLimit)digits[2]) << PyLong_SHIFT) | (enum cudaLimit)digits[1]) << PyLong_SHIFT) | (enum cudaLimit)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaLimit) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLimit, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaLimit) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaLimit, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaLimit 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaLimit) -1;
#endif
        if (unlikely(ret))
            return (enum cudaLimit) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaLimit");
    return (enum cudaLimit) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaLimit");
    return (enum cudaLimit) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaFuncCache __Pyx_PyLong_As_enum__cudaFuncCache(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFuncCache neg_one = (enum cudaFuncCache) -1, const_zero = (enum cudaFuncCache) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaFuncCache val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaFuncCache) -1;
        val = __Pyx_PyLong_As_enum__cudaFuncCache(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(enum cudaFuncCache, __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(enum cudaFuncCache) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncCache) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) (((((enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaFuncCache) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncCache) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) (((((((enum cudaFuncCache)digits[2]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaFuncCache) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, 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(enum cudaFuncCache) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) (((((((((enum cudaFuncCache)digits[3]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[2]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)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 (enum cudaFuncCache) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaFuncCache) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncCache, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaFuncCache) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncCache, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, __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(enum cudaFuncCache) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncCache) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) (((enum cudaFuncCache)-1)*(((((enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaFuncCache) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncCache) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) ((((((enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaFuncCache) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncCache) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) (((enum cudaFuncCache)-1)*(((((((enum cudaFuncCache)digits[2]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaFuncCache) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncCache) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) ((((((((enum cudaFuncCache)digits[2]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaFuncCache) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, 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(enum cudaFuncCache) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) (((enum cudaFuncCache)-1)*(((((((((enum cudaFuncCache)digits[3]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[2]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaFuncCache) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncCache, 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(enum cudaFuncCache) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaFuncCache) ((((((((((enum cudaFuncCache)digits[3]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[2]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[1]) << PyLong_SHIFT) | (enum cudaFuncCache)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaFuncCache) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncCache, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaFuncCache) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncCache, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaFuncCache 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaFuncCache) -1;
#endif
        if (unlikely(ret))
            return (enum cudaFuncCache) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaFuncCache");
    return (enum cudaFuncCache) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaFuncCache");
    return (enum cudaFuncCache) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaFlushGPUDirectRDMAWritesTarget __Pyx_PyLong_As_enum__cudaFlushGPUDirectRDMAWritesTarget(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFlushGPUDirectRDMAWritesTarget neg_one = (enum cudaFlushGPUDirectRDMAWritesTarget) -1, const_zero = (enum cudaFlushGPUDirectRDMAWritesTarget) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaFlushGPUDirectRDMAWritesTarget val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaFlushGPUDirectRDMAWritesTarget) -1;
        val = __Pyx_PyLong_As_enum__cudaFlushGPUDirectRDMAWritesTarget(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(enum cudaFlushGPUDirectRDMAWritesTarget, __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(enum cudaFlushGPUDirectRDMAWritesTarget) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) (((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) (((((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, 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(enum cudaFlushGPUDirectRDMAWritesTarget) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) (((((((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[3]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)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 (enum cudaFlushGPUDirectRDMAWritesTarget) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesTarget, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesTarget, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, __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(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) (((enum cudaFlushGPUDirectRDMAWritesTarget)-1)*(((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) ((((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) (((enum cudaFlushGPUDirectRDMAWritesTarget)-1)*(((((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) ((((((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, 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(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) (((enum cudaFlushGPUDirectRDMAWritesTarget)-1)*(((((((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[3]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesTarget, 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(enum cudaFlushGPUDirectRDMAWritesTarget) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesTarget) ((((((((((enum cudaFlushGPUDirectRDMAWritesTarget)digits[3]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesTarget)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesTarget, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaFlushGPUDirectRDMAWritesTarget) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesTarget, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaFlushGPUDirectRDMAWritesTarget 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaFlushGPUDirectRDMAWritesTarget) -1;
#endif
        if (unlikely(ret))
            return (enum cudaFlushGPUDirectRDMAWritesTarget) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaFlushGPUDirectRDMAWritesTarget");
    return (enum cudaFlushGPUDirectRDMAWritesTarget) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaFlushGPUDirectRDMAWritesTarget");
    return (enum cudaFlushGPUDirectRDMAWritesTarget) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaFlushGPUDirectRDMAWritesScope __Pyx_PyLong_As_enum__cudaFlushGPUDirectRDMAWritesScope(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFlushGPUDirectRDMAWritesScope neg_one = (enum cudaFlushGPUDirectRDMAWritesScope) -1, const_zero = (enum cudaFlushGPUDirectRDMAWritesScope) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaFlushGPUDirectRDMAWritesScope val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaFlushGPUDirectRDMAWritesScope) -1;
        val = __Pyx_PyLong_As_enum__cudaFlushGPUDirectRDMAWritesScope(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(enum cudaFlushGPUDirectRDMAWritesScope, __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(enum cudaFlushGPUDirectRDMAWritesScope) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) (((((enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) (((((((enum cudaFlushGPUDirectRDMAWritesScope)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, 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(enum cudaFlushGPUDirectRDMAWritesScope) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) (((((((((enum cudaFlushGPUDirectRDMAWritesScope)digits[3]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)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 (enum cudaFlushGPUDirectRDMAWritesScope) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesScope, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesScope, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, __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(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) (((enum cudaFlushGPUDirectRDMAWritesScope)-1)*(((((enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) ((((((enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) (((enum cudaFlushGPUDirectRDMAWritesScope)-1)*(((((((enum cudaFlushGPUDirectRDMAWritesScope)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) ((((((((enum cudaFlushGPUDirectRDMAWritesScope)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, 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(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) (((enum cudaFlushGPUDirectRDMAWritesScope)-1)*(((((((((enum cudaFlushGPUDirectRDMAWritesScope)digits[3]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaFlushGPUDirectRDMAWritesScope) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFlushGPUDirectRDMAWritesScope, 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(enum cudaFlushGPUDirectRDMAWritesScope) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaFlushGPUDirectRDMAWritesScope) ((((((((((enum cudaFlushGPUDirectRDMAWritesScope)digits[3]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[2]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[1]) << PyLong_SHIFT) | (enum cudaFlushGPUDirectRDMAWritesScope)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesScope, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaFlushGPUDirectRDMAWritesScope) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFlushGPUDirectRDMAWritesScope, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaFlushGPUDirectRDMAWritesScope 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaFlushGPUDirectRDMAWritesScope) -1;
#endif
        if (unlikely(ret))
            return (enum cudaFlushGPUDirectRDMAWritesScope) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaFlushGPUDirectRDMAWritesScope");
    return (enum cudaFlushGPUDirectRDMAWritesScope) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaFlushGPUDirectRDMAWritesScope");
    return (enum cudaFlushGPUDirectRDMAWritesScope) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaSharedMemConfig __Pyx_PyLong_As_enum__cudaSharedMemConfig(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaSharedMemConfig neg_one = (enum cudaSharedMemConfig) -1, const_zero = (enum cudaSharedMemConfig) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaSharedMemConfig val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaSharedMemConfig) -1;
        val = __Pyx_PyLong_As_enum__cudaSharedMemConfig(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(enum cudaSharedMemConfig, __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(enum cudaSharedMemConfig) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSharedMemConfig) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) (((((enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaSharedMemConfig) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSharedMemConfig) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) (((((((enum cudaSharedMemConfig)digits[2]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaSharedMemConfig) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, 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(enum cudaSharedMemConfig) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) (((((((((enum cudaSharedMemConfig)digits[3]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[2]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)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 (enum cudaSharedMemConfig) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaSharedMemConfig) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaSharedMemConfig, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaSharedMemConfig) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaSharedMemConfig, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, __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(enum cudaSharedMemConfig) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSharedMemConfig) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) (((enum cudaSharedMemConfig)-1)*(((((enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaSharedMemConfig) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSharedMemConfig) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) ((((((enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaSharedMemConfig) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSharedMemConfig) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) (((enum cudaSharedMemConfig)-1)*(((((((enum cudaSharedMemConfig)digits[2]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaSharedMemConfig) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaSharedMemConfig) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) ((((((((enum cudaSharedMemConfig)digits[2]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaSharedMemConfig) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, 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(enum cudaSharedMemConfig) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) (((enum cudaSharedMemConfig)-1)*(((((((((enum cudaSharedMemConfig)digits[3]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[2]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaSharedMemConfig) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaSharedMemConfig, 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(enum cudaSharedMemConfig) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaSharedMemConfig) ((((((((((enum cudaSharedMemConfig)digits[3]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[2]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[1]) << PyLong_SHIFT) | (enum cudaSharedMemConfig)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaSharedMemConfig) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaSharedMemConfig, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaSharedMemConfig) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaSharedMemConfig, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaSharedMemConfig 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaSharedMemConfig) -1;
#endif
        if (unlikely(ret))
            return (enum cudaSharedMemConfig) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaSharedMemConfig");
    return (enum cudaSharedMemConfig) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaSharedMemConfig");
    return (enum cudaSharedMemConfig) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaError __Pyx_PyLong_As_enum__cudaError(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaError neg_one = (enum cudaError) -1, const_zero = (enum cudaError) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaError val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaError) -1;
        val = __Pyx_PyLong_As_enum__cudaError(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(enum cudaError, __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(enum cudaError) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaError) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaError) (((((enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaError) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaError) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaError) (((((((enum cudaError)digits[2]) << PyLong_SHIFT) | (enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaError) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, 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(enum cudaError) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaError) (((((((((enum cudaError)digits[3]) << PyLong_SHIFT) | (enum cudaError)digits[2]) << PyLong_SHIFT) | (enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)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 (enum cudaError) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaError) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaError, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaError) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaError, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaError, __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(enum cudaError) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaError) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaError) (((enum cudaError)-1)*(((((enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaError) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaError) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaError) ((((((enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaError) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaError) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaError) (((enum cudaError)-1)*(((((((enum cudaError)digits[2]) << PyLong_SHIFT) | (enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaError) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaError) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaError) ((((((((enum cudaError)digits[2]) << PyLong_SHIFT) | (enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaError) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, 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(enum cudaError) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaError) (((enum cudaError)-1)*(((((((((enum cudaError)digits[3]) << PyLong_SHIFT) | (enum cudaError)digits[2]) << PyLong_SHIFT) | (enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaError) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaError, 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(enum cudaError) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaError) ((((((((((enum cudaError)digits[3]) << PyLong_SHIFT) | (enum cudaError)digits[2]) << PyLong_SHIFT) | (enum cudaError)digits[1]) << PyLong_SHIFT) | (enum cudaError)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaError) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaError, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaError) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaError, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaError 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaError) -1;
#endif
        if (unlikely(ret))
            return (enum cudaError) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaError");
    return (enum cudaError) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaError");
    return (enum cudaError) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaDeviceAttr __Pyx_PyLong_As_enum__cudaDeviceAttr(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDeviceAttr neg_one = (enum cudaDeviceAttr) -1, const_zero = (enum cudaDeviceAttr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaDeviceAttr val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaDeviceAttr) -1;
        val = __Pyx_PyLong_As_enum__cudaDeviceAttr(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(enum cudaDeviceAttr, __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(enum cudaDeviceAttr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceAttr) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) (((((enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaDeviceAttr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceAttr) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) (((((((enum cudaDeviceAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaDeviceAttr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, 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(enum cudaDeviceAttr) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) (((((((((enum cudaDeviceAttr)digits[3]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)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 (enum cudaDeviceAttr) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaDeviceAttr) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceAttr, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaDeviceAttr) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceAttr, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, __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(enum cudaDeviceAttr) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceAttr) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) (((enum cudaDeviceAttr)-1)*(((((enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaDeviceAttr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceAttr) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) ((((((enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaDeviceAttr) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceAttr) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) (((enum cudaDeviceAttr)-1)*(((((((enum cudaDeviceAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaDeviceAttr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceAttr) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) ((((((((enum cudaDeviceAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaDeviceAttr) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, 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(enum cudaDeviceAttr) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) (((enum cudaDeviceAttr)-1)*(((((((((enum cudaDeviceAttr)digits[3]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaDeviceAttr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceAttr, 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(enum cudaDeviceAttr) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaDeviceAttr) ((((((((((enum cudaDeviceAttr)digits[3]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceAttr)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaDeviceAttr) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceAttr, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaDeviceAttr) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceAttr, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaDeviceAttr 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaDeviceAttr) -1;
#endif
        if (unlikely(ret))
            return (enum cudaDeviceAttr) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaDeviceAttr");
    return (enum cudaDeviceAttr) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaDeviceAttr");
    return (enum cudaDeviceAttr) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaAtomicOperation __Pyx_PyLong_As_enum__cudaAtomicOperation(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaAtomicOperation neg_one = (enum cudaAtomicOperation) -1, const_zero = (enum cudaAtomicOperation) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaAtomicOperation val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaAtomicOperation) -1;
        val = __Pyx_PyLong_As_enum__cudaAtomicOperation(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(enum cudaAtomicOperation, __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(enum cudaAtomicOperation) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAtomicOperation) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) (((((enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaAtomicOperation) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAtomicOperation) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) (((((((enum cudaAtomicOperation)digits[2]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaAtomicOperation) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, 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(enum cudaAtomicOperation) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) (((((((((enum cudaAtomicOperation)digits[3]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[2]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)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 (enum cudaAtomicOperation) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaAtomicOperation) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAtomicOperation, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaAtomicOperation) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAtomicOperation, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, __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(enum cudaAtomicOperation) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAtomicOperation) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) (((enum cudaAtomicOperation)-1)*(((((enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaAtomicOperation) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAtomicOperation) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) ((((((enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaAtomicOperation) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAtomicOperation) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) (((enum cudaAtomicOperation)-1)*(((((((enum cudaAtomicOperation)digits[2]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaAtomicOperation) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaAtomicOperation) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) ((((((((enum cudaAtomicOperation)digits[2]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaAtomicOperation) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, 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(enum cudaAtomicOperation) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) (((enum cudaAtomicOperation)-1)*(((((((((enum cudaAtomicOperation)digits[3]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[2]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaAtomicOperation) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaAtomicOperation, 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(enum cudaAtomicOperation) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaAtomicOperation) ((((((((((enum cudaAtomicOperation)digits[3]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[2]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[1]) << PyLong_SHIFT) | (enum cudaAtomicOperation)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaAtomicOperation) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAtomicOperation, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaAtomicOperation) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaAtomicOperation, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaAtomicOperation 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaAtomicOperation) -1;
#endif
        if (unlikely(ret))
            return (enum cudaAtomicOperation) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaAtomicOperation");
    return (enum cudaAtomicOperation) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaAtomicOperation");
    return (enum cudaAtomicOperation) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaDeviceP2PAttr __Pyx_PyLong_As_enum__cudaDeviceP2PAttr(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaDeviceP2PAttr neg_one = (enum cudaDeviceP2PAttr) -1, const_zero = (enum cudaDeviceP2PAttr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaDeviceP2PAttr val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaDeviceP2PAttr) -1;
        val = __Pyx_PyLong_As_enum__cudaDeviceP2PAttr(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(enum cudaDeviceP2PAttr, __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(enum cudaDeviceP2PAttr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceP2PAttr) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) (((((enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaDeviceP2PAttr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceP2PAttr) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) (((((((enum cudaDeviceP2PAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaDeviceP2PAttr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, 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(enum cudaDeviceP2PAttr) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) (((((((((enum cudaDeviceP2PAttr)digits[3]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)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 (enum cudaDeviceP2PAttr) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaDeviceP2PAttr) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceP2PAttr, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaDeviceP2PAttr) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceP2PAttr, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, __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(enum cudaDeviceP2PAttr) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceP2PAttr) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) (((enum cudaDeviceP2PAttr)-1)*(((((enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaDeviceP2PAttr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceP2PAttr) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) ((((((enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaDeviceP2PAttr) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceP2PAttr) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) (((enum cudaDeviceP2PAttr)-1)*(((((((enum cudaDeviceP2PAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaDeviceP2PAttr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaDeviceP2PAttr) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) ((((((((enum cudaDeviceP2PAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaDeviceP2PAttr) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, 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(enum cudaDeviceP2PAttr) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) (((enum cudaDeviceP2PAttr)-1)*(((((((((enum cudaDeviceP2PAttr)digits[3]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaDeviceP2PAttr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaDeviceP2PAttr, 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(enum cudaDeviceP2PAttr) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaDeviceP2PAttr) ((((((((((enum cudaDeviceP2PAttr)digits[3]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[2]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[1]) << PyLong_SHIFT) | (enum cudaDeviceP2PAttr)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaDeviceP2PAttr) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceP2PAttr, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaDeviceP2PAttr) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaDeviceP2PAttr, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaDeviceP2PAttr 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaDeviceP2PAttr) -1;
#endif
        if (unlikely(ret))
            return (enum cudaDeviceP2PAttr) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaDeviceP2PAttr");
    return (enum cudaDeviceP2PAttr) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaDeviceP2PAttr");
    return (enum cudaDeviceP2PAttr) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaStreamCaptureMode __Pyx_PyLong_As_enum__cudaStreamCaptureMode(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaStreamCaptureMode neg_one = (enum cudaStreamCaptureMode) -1, const_zero = (enum cudaStreamCaptureMode) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaStreamCaptureMode val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaStreamCaptureMode) -1;
        val = __Pyx_PyLong_As_enum__cudaStreamCaptureMode(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(enum cudaStreamCaptureMode, __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(enum cudaStreamCaptureMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaStreamCaptureMode) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) (((((enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaStreamCaptureMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaStreamCaptureMode) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) (((((((enum cudaStreamCaptureMode)digits[2]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaStreamCaptureMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, 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(enum cudaStreamCaptureMode) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) (((((((((enum cudaStreamCaptureMode)digits[3]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[2]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)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 (enum cudaStreamCaptureMode) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaStreamCaptureMode) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaStreamCaptureMode, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaStreamCaptureMode) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaStreamCaptureMode, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, __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(enum cudaStreamCaptureMode) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaStreamCaptureMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) (((enum cudaStreamCaptureMode)-1)*(((((enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaStreamCaptureMode) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaStreamCaptureMode) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) ((((((enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaStreamCaptureMode) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaStreamCaptureMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) (((enum cudaStreamCaptureMode)-1)*(((((((enum cudaStreamCaptureMode)digits[2]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaStreamCaptureMode) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaStreamCaptureMode) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) ((((((((enum cudaStreamCaptureMode)digits[2]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaStreamCaptureMode) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, 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(enum cudaStreamCaptureMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) (((enum cudaStreamCaptureMode)-1)*(((((((((enum cudaStreamCaptureMode)digits[3]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[2]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaStreamCaptureMode) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaStreamCaptureMode, 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(enum cudaStreamCaptureMode) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaStreamCaptureMode) ((((((((((enum cudaStreamCaptureMode)digits[3]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[2]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[1]) << PyLong_SHIFT) | (enum cudaStreamCaptureMode)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaStreamCaptureMode) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaStreamCaptureMode, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaStreamCaptureMode) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaStreamCaptureMode, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaStreamCaptureMode 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaStreamCaptureMode) -1;
#endif
        if (unlikely(ret))
            return (enum cudaStreamCaptureMode) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaStreamCaptureMode");
    return (enum cudaStreamCaptureMode) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaStreamCaptureMode");
    return (enum cudaStreamCaptureMode) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaFuncAttribute __Pyx_PyLong_As_enum__cudaFuncAttribute(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaFuncAttribute neg_one = (enum cudaFuncAttribute) -1, const_zero = (enum cudaFuncAttribute) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaFuncAttribute val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaFuncAttribute) -1;
        val = __Pyx_PyLong_As_enum__cudaFuncAttribute(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(enum cudaFuncAttribute, __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(enum cudaFuncAttribute) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncAttribute) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) (((((enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaFuncAttribute) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncAttribute) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) (((((((enum cudaFuncAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaFuncAttribute) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, 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(enum cudaFuncAttribute) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) (((((((((enum cudaFuncAttribute)digits[3]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)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 (enum cudaFuncAttribute) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaFuncAttribute) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncAttribute, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaFuncAttribute) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncAttribute, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, __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(enum cudaFuncAttribute) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncAttribute) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) (((enum cudaFuncAttribute)-1)*(((((enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaFuncAttribute) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncAttribute) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) ((((((enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaFuncAttribute) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncAttribute) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) (((enum cudaFuncAttribute)-1)*(((((((enum cudaFuncAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaFuncAttribute) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaFuncAttribute) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) ((((((((enum cudaFuncAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaFuncAttribute) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, 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(enum cudaFuncAttribute) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) (((enum cudaFuncAttribute)-1)*(((((((((enum cudaFuncAttribute)digits[3]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaFuncAttribute) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaFuncAttribute, 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(enum cudaFuncAttribute) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaFuncAttribute) ((((((((((enum cudaFuncAttribute)digits[3]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaFuncAttribute)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaFuncAttribute) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncAttribute, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaFuncAttribute) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaFuncAttribute, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaFuncAttribute 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaFuncAttribute) -1;
#endif
        if (unlikely(ret))
            return (enum cudaFuncAttribute) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaFuncAttribute");
    return (enum cudaFuncAttribute) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaFuncAttribute");
    return (enum cudaFuncAttribute) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemoryAdvise __Pyx_PyLong_As_enum__cudaMemoryAdvise(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemoryAdvise neg_one = (enum cudaMemoryAdvise) -1, const_zero = (enum cudaMemoryAdvise) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemoryAdvise val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemoryAdvise) -1;
        val = __Pyx_PyLong_As_enum__cudaMemoryAdvise(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(enum cudaMemoryAdvise, __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(enum cudaMemoryAdvise) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryAdvise) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) (((((enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemoryAdvise) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryAdvise) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) (((((((enum cudaMemoryAdvise)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemoryAdvise) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, 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(enum cudaMemoryAdvise) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) (((((((((enum cudaMemoryAdvise)digits[3]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)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 (enum cudaMemoryAdvise) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemoryAdvise) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryAdvise, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemoryAdvise) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryAdvise, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, __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(enum cudaMemoryAdvise) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryAdvise) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) (((enum cudaMemoryAdvise)-1)*(((((enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemoryAdvise) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryAdvise) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) ((((((enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemoryAdvise) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryAdvise) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) (((enum cudaMemoryAdvise)-1)*(((((((enum cudaMemoryAdvise)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemoryAdvise) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemoryAdvise) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) ((((((((enum cudaMemoryAdvise)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemoryAdvise) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, 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(enum cudaMemoryAdvise) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) (((enum cudaMemoryAdvise)-1)*(((((((((enum cudaMemoryAdvise)digits[3]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemoryAdvise) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemoryAdvise, 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(enum cudaMemoryAdvise) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemoryAdvise) ((((((((((enum cudaMemoryAdvise)digits[3]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[2]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[1]) << PyLong_SHIFT) | (enum cudaMemoryAdvise)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemoryAdvise) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryAdvise, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemoryAdvise) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemoryAdvise, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemoryAdvise 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemoryAdvise) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemoryAdvise) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemoryAdvise");
    return (enum cudaMemoryAdvise) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemoryAdvise");
    return (enum cudaMemoryAdvise) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemRangeAttribute __Pyx_PyLong_As_enum__cudaMemRangeAttribute(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemRangeAttribute neg_one = (enum cudaMemRangeAttribute) -1, const_zero = (enum cudaMemRangeAttribute) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemRangeAttribute val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemRangeAttribute) -1;
        val = __Pyx_PyLong_As_enum__cudaMemRangeAttribute(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(enum cudaMemRangeAttribute, __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(enum cudaMemRangeAttribute) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemRangeAttribute) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) (((((enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemRangeAttribute) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemRangeAttribute) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) (((((((enum cudaMemRangeAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemRangeAttribute) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, 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(enum cudaMemRangeAttribute) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) (((((((((enum cudaMemRangeAttribute)digits[3]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)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 (enum cudaMemRangeAttribute) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemRangeAttribute) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemRangeAttribute, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemRangeAttribute) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemRangeAttribute, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, __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(enum cudaMemRangeAttribute) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemRangeAttribute) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) (((enum cudaMemRangeAttribute)-1)*(((((enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemRangeAttribute) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemRangeAttribute) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) ((((((enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemRangeAttribute) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemRangeAttribute) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) (((enum cudaMemRangeAttribute)-1)*(((((((enum cudaMemRangeAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemRangeAttribute) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemRangeAttribute) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) ((((((((enum cudaMemRangeAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemRangeAttribute) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, 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(enum cudaMemRangeAttribute) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) (((enum cudaMemRangeAttribute)-1)*(((((((((enum cudaMemRangeAttribute)digits[3]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemRangeAttribute) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemRangeAttribute, 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(enum cudaMemRangeAttribute) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemRangeAttribute) ((((((((((enum cudaMemRangeAttribute)digits[3]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[2]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[1]) << PyLong_SHIFT) | (enum cudaMemRangeAttribute)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemRangeAttribute) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemRangeAttribute, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemRangeAttribute) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemRangeAttribute, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemRangeAttribute 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemRangeAttribute) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemRangeAttribute) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemRangeAttribute");
    return (enum cudaMemRangeAttribute) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemRangeAttribute");
    return (enum cudaMemRangeAttribute) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaMemPoolAttr __Pyx_PyLong_As_enum__cudaMemPoolAttr(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaMemPoolAttr neg_one = (enum cudaMemPoolAttr) -1, const_zero = (enum cudaMemPoolAttr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaMemPoolAttr val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaMemPoolAttr) -1;
        val = __Pyx_PyLong_As_enum__cudaMemPoolAttr(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(enum cudaMemPoolAttr, __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(enum cudaMemPoolAttr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemPoolAttr) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) (((((enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemPoolAttr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemPoolAttr) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) (((((((enum cudaMemPoolAttr)digits[2]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemPoolAttr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, 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(enum cudaMemPoolAttr) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) (((((((((enum cudaMemPoolAttr)digits[3]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[2]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)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 (enum cudaMemPoolAttr) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaMemPoolAttr) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemPoolAttr, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaMemPoolAttr) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemPoolAttr, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, __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(enum cudaMemPoolAttr) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemPoolAttr) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) (((enum cudaMemPoolAttr)-1)*(((((enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaMemPoolAttr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemPoolAttr) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) ((((((enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaMemPoolAttr) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemPoolAttr) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) (((enum cudaMemPoolAttr)-1)*(((((((enum cudaMemPoolAttr)digits[2]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaMemPoolAttr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaMemPoolAttr) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) ((((((((enum cudaMemPoolAttr)digits[2]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaMemPoolAttr) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, 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(enum cudaMemPoolAttr) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) (((enum cudaMemPoolAttr)-1)*(((((((((enum cudaMemPoolAttr)digits[3]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[2]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaMemPoolAttr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaMemPoolAttr, 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(enum cudaMemPoolAttr) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaMemPoolAttr) ((((((((((enum cudaMemPoolAttr)digits[3]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[2]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[1]) << PyLong_SHIFT) | (enum cudaMemPoolAttr)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaMemPoolAttr) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemPoolAttr, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaMemPoolAttr) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaMemPoolAttr, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaMemPoolAttr 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaMemPoolAttr) -1;
#endif
        if (unlikely(ret))
            return (enum cudaMemPoolAttr) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaMemPoolAttr");
    return (enum cudaMemPoolAttr) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaMemPoolAttr");
    return (enum cudaMemPoolAttr) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum cudaGraphMemAttributeType __Pyx_PyLong_As_enum__cudaGraphMemAttributeType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum cudaGraphMemAttributeType neg_one = (enum cudaGraphMemAttributeType) -1, const_zero = (enum cudaGraphMemAttributeType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum cudaGraphMemAttributeType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum cudaGraphMemAttributeType) -1;
        val = __Pyx_PyLong_As_enum__cudaGraphMemAttributeType(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(enum cudaGraphMemAttributeType, __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(enum cudaGraphMemAttributeType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphMemAttributeType) >= 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) (((((enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphMemAttributeType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphMemAttributeType) >= 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) (((((((enum cudaGraphMemAttributeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphMemAttributeType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, 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(enum cudaGraphMemAttributeType) >= 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) (((((((((enum cudaGraphMemAttributeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)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 (enum cudaGraphMemAttributeType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum cudaGraphMemAttributeType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphMemAttributeType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum cudaGraphMemAttributeType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphMemAttributeType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, __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(enum cudaGraphMemAttributeType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphMemAttributeType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) (((enum cudaGraphMemAttributeType)-1)*(((((enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum cudaGraphMemAttributeType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphMemAttributeType) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) ((((((enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum cudaGraphMemAttributeType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphMemAttributeType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) (((enum cudaGraphMemAttributeType)-1)*(((((((enum cudaGraphMemAttributeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum cudaGraphMemAttributeType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum cudaGraphMemAttributeType) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) ((((((((enum cudaGraphMemAttributeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum cudaGraphMemAttributeType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, 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(enum cudaGraphMemAttributeType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) (((enum cudaGraphMemAttributeType)-1)*(((((((((enum cudaGraphMemAttributeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum cudaGraphMemAttributeType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum cudaGraphMemAttributeType, 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(enum cudaGraphMemAttributeType) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum cudaGraphMemAttributeType) ((((((((((enum cudaGraphMemAttributeType)digits[3]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[2]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[1]) << PyLong_SHIFT) | (enum cudaGraphMemAttributeType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum cudaGraphMemAttributeType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphMemAttributeType, long, PyLong_AsLong(x))
        } else if ((sizeof(enum cudaGraphMemAttributeType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum cudaGraphMemAttributeType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum cudaGraphMemAttributeType 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum cudaGraphMemAttributeType) -1;
#endif
        if (unlikely(ret))
            return (enum cudaGraphMemAttributeType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum cudaGraphMemAttributeType");
    return (enum cudaGraphMemAttributeType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum cudaGraphMemAttributeType");
    return (enum cudaGraphMemAttributeType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList neg_one = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) -1, const_zero = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) -1;
        val = __Pyx_PyLong_As_enum____pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList(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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, __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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) >= 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) (((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) >= 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) (((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) >= 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) (((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)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 (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, __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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)-1)*(((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 2 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) ((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)-1)*(((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 3 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) ((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) (((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)-1)*(((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, 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(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) - 1 > 4 * PyLong_SHIFT)) {
                            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) ((((((((((enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[3]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[2]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[1]) << PyLong_SHIFT) | (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, long, PyLong_AsLong(x))
        } else if ((sizeof(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList 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
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) -1;
#endif
        if (unlikely(ret))
            return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList");
    return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList");
    return (enum __pyx_t_4cuda_8bindings_9cyruntime_cudaGLDeviceList) -1;
}

/* 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__9);
    }
    goto done;
}
#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
}

/* SwapException (used by CoroutineBase) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_value = exc_info->exc_value;
    exc_info->exc_value = *value;
    if (tmp_value == NULL || tmp_value == Py_None) {
        Py_XDECREF(tmp_value);
        tmp_value = NULL;
        tmp_type = NULL;
        tmp_tb = NULL;
    } else {
        tmp_type = (PyObject*) Py_TYPE(tmp_value);
        Py_INCREF(tmp_type);
        #if CYTHON_COMPILING_IN_CPYTHON
        tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback;
        Py_XINCREF(tmp_tb);
        #else
        tmp_tb = PyException_GetTraceback(tmp_value);
        #endif
    }
  #elif 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
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* IterNextPlain (used by CoroutineBase) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void) {
    if (unlikely(!__pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache))
        __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache = __Pyx_GetBuiltinName(__pyx_mstate_global->__pyx_n_u_next);
    return __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator) {
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    PyObject *result;
    PyObject *next = __Pyx_GetBuiltinNext_LimitedAPI();
    if (unlikely(!next)) return NULL;
    result = PyObject_CallFunctionObjArgs(next, iterator, NULL);
    return result;
#else
    (void)__Pyx_GetBuiltinName; // only for early limited API
    iternextfunc iternext = __Pyx_PyObject_GetIterNextFunc(iterator);
    assert(iternext);
    return iternext(iterator);
#endif
}

/* PyObjectCallMethod1 (used by CoroutineBase) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
    PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
    Py_DECREF(method);
    return result;
}
#endif
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[2] = {obj, arg};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_Call2Args;
    return PyObject_VectorcallMethod(method_name, args, 2 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_Call2Args(method, obj, arg);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) return NULL;
    return __Pyx__PyObject_CallMethod1(method, arg);
#endif
}

/* ReturnWithStopIteration (used by CoroutineBase) */
static void __Pyx__ReturnWithStopIteration(PyObject* value, int async);
static CYTHON_INLINE void __Pyx_ReturnWithStopIteration(PyObject* value, int async, int iternext) {
    if (value == Py_None) {
        if (async || !iternext)
            PyErr_SetNone(async ? PyExc_StopAsyncIteration : PyExc_StopIteration);
        return;
    }
    __Pyx__ReturnWithStopIteration(value, async);
}
static void __Pyx__ReturnWithStopIteration(PyObject* value, int async) {
#if CYTHON_COMPILING_IN_CPYTHON
    __Pyx_PyThreadState_declare
#endif
    PyObject *exc;
    PyObject *exc_type = async ? PyExc_StopAsyncIteration : PyExc_StopIteration;
#if CYTHON_COMPILING_IN_CPYTHON
    if ((PY_VERSION_HEX >= (0x030C00A6)) || unlikely(PyTuple_Check(value) || PyExceptionInstance_Check(value))) {
        if (PY_VERSION_HEX >= (0x030e00A1)) {
            exc = __Pyx_PyObject_CallOneArg(exc_type, value);
        } else {
            PyObject *args_tuple = PyTuple_New(1);
            if (unlikely(!args_tuple)) return;
            Py_INCREF(value);
            PyTuple_SET_ITEM(args_tuple, 0, value);
            exc = PyObject_Call(exc_type, args_tuple, NULL);
            Py_DECREF(args_tuple);
        }
        if (unlikely(!exc)) return;
    } else {
        Py_INCREF(value);
        exc = value;
    }
    #if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    #if CYTHON_USE_EXC_INFO_STACK
    if (!__pyx_tstate->exc_info->exc_value)
    #else
    if (!__pyx_tstate->exc_type)
    #endif
    {
        Py_INCREF(exc_type);
        __Pyx_ErrRestore(exc_type, exc, NULL);
        return;
    }
    #endif
#else
    exc = __Pyx_PyObject_CallOneArg(exc_type, value);
    if (unlikely(!exc)) return;
#endif
    PyErr_SetObject(exc_type, exc);
    Py_DECREF(exc);
}

/* CoroutineBase (used by Generator) */
#if !CYTHON_COMPILING_IN_LIMITED_API
#include <frameobject.h>
#if PY_VERSION_HEX >= 0x030b00a6 && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#endif // CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE void
__Pyx_Coroutine_Undelegate(__pyx_CoroutineObject *gen) {
#if CYTHON_USE_AM_SEND
    gen->yieldfrom_am_send = NULL;
#endif
    Py_CLEAR(gen->yieldfrom);
}
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *__pyx_tstate, PyObject **pvalue) {
    PyObject *et, *ev, *tb;
    PyObject *value = NULL;
    CYTHON_UNUSED_VAR(__pyx_tstate);
    __Pyx_ErrFetch(&et, &ev, &tb);
    if (!et) {
        Py_XDECREF(tb);
        Py_XDECREF(ev);
        Py_INCREF(Py_None);
        *pvalue = Py_None;
        return 0;
    }
    if (likely(et == PyExc_StopIteration)) {
        if (!ev) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
        else if (likely(__Pyx_IS_TYPE(ev, (PyTypeObject*)PyExc_StopIteration))) {
            #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
            value = PyObject_GetAttr(ev, __pyx_mstate_global->__pyx_n_u_value);
            if (unlikely(!value)) goto limited_api_failure;
            #else
            value = ((PyStopIterationObject *)ev)->value;
            Py_INCREF(value);
            #endif
            Py_DECREF(ev);
        }
        else if (unlikely(PyTuple_Check(ev))) {
            Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(ev);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely(tuple_size < 0)) {
                Py_XDECREF(tb);
                Py_DECREF(ev);
                Py_DECREF(et);
                return -1;
            }
            #endif
            if (tuple_size >= 1) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                value = PyTuple_GET_ITEM(ev, 0);
                Py_INCREF(value);
#elif CYTHON_ASSUME_SAFE_MACROS
                value = PySequence_ITEM(ev, 0);
#else
                value = PySequence_GetItem(ev, 0);
                if (!value) goto limited_api_failure;
#endif
            } else {
                Py_INCREF(Py_None);
                value = Py_None;
            }
            Py_DECREF(ev);
        }
        else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) {
            value = ev;
        }
        if (likely(value)) {
            Py_XDECREF(tb);
            Py_DECREF(et);
            *pvalue = value;
            return 0;
        }
    } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    PyErr_NormalizeException(&et, &ev, &tb);
    if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    Py_XDECREF(tb);
    Py_DECREF(et);
#if CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_GetAttr(ev, __pyx_mstate_global->__pyx_n_u_value);
#else
    value = ((PyStopIterationObject *)ev)->value;
    Py_INCREF(value);
#endif
    Py_DECREF(ev);
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!value)) return -1;
#endif
    *pvalue = value;
    return 0;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL || !CYTHON_ASSUME_SAFE_MACROS
  limited_api_failure:
    Py_XDECREF(et);
    Py_XDECREF(tb);
    Py_XDECREF(ev);
    return -1;
#endif
}
static CYTHON_INLINE
__Pyx_PySendResult __Pyx_Coroutine_status_from_result(PyObject **retval) {
    if (*retval) {
        return PYGEN_NEXT;
    } else if (likely(__Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, retval) == 0)) {
        return PYGEN_RETURN;
    } else {
        return PYGEN_ERROR;
    }
}
static CYTHON_INLINE
void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) {
#if PY_VERSION_HEX >= 0x030B00a4
    Py_CLEAR(exc_state->exc_value);
#else
    PyObject *t, *v, *tb;
    t = exc_state->exc_type;
    v = exc_state->exc_value;
    tb = exc_state->exc_traceback;
    exc_state->exc_type = NULL;
    exc_state->exc_value = NULL;
    exc_state->exc_traceback = NULL;
    Py_XDECREF(t);
    Py_XDECREF(v);
    Py_XDECREF(tb);
#endif
}
#define __Pyx_Coroutine_AlreadyRunningError(gen)  (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL)
static void __Pyx__Coroutine_AlreadyRunningError(__pyx_CoroutineObject *gen) {
    const char *msg;
    CYTHON_MAYBE_UNUSED_VAR(gen);
    if ((0)) {
    #ifdef __Pyx_Coroutine_USED
    } else if (__Pyx_Coroutine_Check((PyObject*)gen)) {
        msg = "coroutine already executing";
    #endif
    #ifdef __Pyx_AsyncGen_USED
    } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) {
        msg = "async generator already executing";
    #endif
    } else {
        msg = "generator already executing";
    }
    PyErr_SetString(PyExc_ValueError, msg);
}
static void __Pyx_Coroutine_AlreadyTerminatedError(PyObject *gen, PyObject *value, int closing) {
    CYTHON_MAYBE_UNUSED_VAR(gen);
    CYTHON_MAYBE_UNUSED_VAR(closing);
    #ifdef __Pyx_Coroutine_USED
    if (!closing && __Pyx_Coroutine_Check(gen)) {
        PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine");
    } else
    #endif
    if (value) {
        #ifdef __Pyx_AsyncGen_USED
        if (__Pyx_AsyncGen_CheckExact(gen))
            PyErr_SetNone(PyExc_StopAsyncIteration);
        else
        #endif
        PyErr_SetNone(PyExc_StopIteration);
    }
}
static
__Pyx_PySendResult __Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, PyObject **result, int closing) {
    __Pyx_PyThreadState_declare
    PyThreadState *tstate;
    __Pyx_ExcInfoStruct *exc_state;
    PyObject *retval;
    assert(__Pyx_Coroutine_get_is_running(self));  // Callers should ensure is_running
    if (unlikely(self->resume_label == -1)) {
        __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing);
        return PYGEN_ERROR;
    }
#if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    tstate = __pyx_tstate;
#else
    tstate = __Pyx_PyThreadState_Current;
#endif
    exc_state = &self->gi_exc_state;
    if (exc_state->exc_value) {
        #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        #else
        PyObject *exc_tb;
        #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON
        exc_tb = PyException_GetTraceback(exc_state->exc_value);
        #elif PY_VERSION_HEX >= 0x030B00a4
        exc_tb = ((PyBaseExceptionObject*) exc_state->exc_value)->traceback;
        #else
        exc_tb = exc_state->exc_traceback;
        #endif
        if (exc_tb) {
            PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
            PyFrameObject *f = tb->tb_frame;
            assert(f->f_back == NULL);
            #if PY_VERSION_HEX >= 0x030B00A1
            f->f_back = PyThreadState_GetFrame(tstate);
            #else
            Py_XINCREF(tstate->frame);
            f->f_back = tstate->frame;
            #endif
            #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON
            Py_DECREF(exc_tb);
            #endif
        }
        #endif
    }
#if CYTHON_USE_EXC_INFO_STACK
    exc_state->previous_item = tstate->exc_info;
    tstate->exc_info = exc_state;
#else
    if (exc_state->exc_type) {
        __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    } else {
        __Pyx_Coroutine_ExceptionClear(exc_state);
        __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    }
#endif
    retval = self->body(self, tstate, value);
#if CYTHON_USE_EXC_INFO_STACK
    exc_state = &self->gi_exc_state;
    tstate->exc_info = exc_state->previous_item;
    exc_state->previous_item = NULL;
    __Pyx_Coroutine_ResetFrameBackpointer(exc_state);
#endif
    *result = retval;
    if (self->resume_label == -1) {
        return likely(retval) ? PYGEN_RETURN : PYGEN_ERROR;
    }
    return PYGEN_NEXT;
}
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED_VAR(exc_state);
#else
    PyObject *exc_tb;
    #if PY_VERSION_HEX >= 0x030B00a4
    if (!exc_state->exc_value) return;
    exc_tb = PyException_GetTraceback(exc_state->exc_value);
    #else
    exc_tb = exc_state->exc_traceback;
    #endif
    if (likely(exc_tb)) {
        PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
        PyFrameObject *f = tb->tb_frame;
        Py_CLEAR(f->f_back);
        #if PY_VERSION_HEX >= 0x030B00a4
        Py_DECREF(exc_tb);
        #endif
    }
#endif
}
#define __Pyx_Coroutine_MethodReturnFromResult(gen, result, retval, iternext)\
    ((result) == PYGEN_NEXT ? (retval) : __Pyx__Coroutine_MethodReturnFromResult(gen, result, retval, iternext))
static PyObject *
__Pyx__Coroutine_MethodReturnFromResult(PyObject* gen, __Pyx_PySendResult result, PyObject *retval, int iternext) {
    CYTHON_MAYBE_UNUSED_VAR(gen);
    if (likely(result == PYGEN_RETURN)) {
        int is_async = 0;
        #ifdef __Pyx_AsyncGen_USED
        is_async = __Pyx_AsyncGen_CheckExact(gen);
        #endif
        __Pyx_ReturnWithStopIteration(retval, is_async, iternext);
        Py_XDECREF(retval);
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE
PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) {
#if PY_VERSION_HEX <= 0x030A00A1
    return _PyGen_Send(gen, arg);
#else
    PyObject *result;
    if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None, &result) == PYGEN_RETURN) {
        if (PyAsyncGen_CheckExact(gen)) {
            assert(result == Py_None);
            PyErr_SetNone(PyExc_StopAsyncIteration);
        }
        else if (result == Py_None) {
            PyErr_SetNone(PyExc_StopIteration);
        }
        else {
#if PY_VERSION_HEX < 0x030d00A1
            _PyGen_SetStopIterationValue(result);
#else
            if (!PyTuple_Check(result) && !PyExceptionInstance_Check(result)) {
                PyErr_SetObject(PyExc_StopIteration, result);
            } else {
                PyObject *exc = __Pyx_PyObject_CallOneArg(PyExc_StopIteration, result);
                if (likely(exc != NULL)) {
                    PyErr_SetObject(PyExc_StopIteration, exc);
                    Py_DECREF(exc);
                }
            }
#endif
        }
        Py_DECREF(result);
        result = NULL;
    }
    return result;
#endif
}
#endif
static CYTHON_INLINE __Pyx_PySendResult
__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen, PyObject** retval) {
    __Pyx_PySendResult result;
    PyObject *val = NULL;
    assert(__Pyx_Coroutine_get_is_running(gen));
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val);
    result = __Pyx_Coroutine_SendEx(gen, val, retval, 0);
    Py_XDECREF(val);
    return result;
}
#if CYTHON_USE_AM_SEND
static __Pyx_PySendResult
__Pyx_Coroutine_SendToDelegate(__pyx_CoroutineObject *gen, __Pyx_pyiter_sendfunc gen_am_send, PyObject *value, PyObject **retval) {
    PyObject *ret = NULL;
    __Pyx_PySendResult delegate_result, result;
    assert(__Pyx_Coroutine_get_is_running(gen));
    delegate_result = gen_am_send(gen->yieldfrom, value, &ret);
    if (delegate_result == PYGEN_NEXT) {
        assert (ret != NULL);
        *retval = ret;
        return PYGEN_NEXT;
    }
    assert (delegate_result != PYGEN_ERROR || ret == NULL);
    __Pyx_Coroutine_Undelegate(gen);
    result = __Pyx_Coroutine_SendEx(gen, ret, retval, 0);
    Py_XDECREF(ret);
    return result;
}
#endif
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
    PyObject *retval = NULL;
    __Pyx_PySendResult result = __Pyx_Coroutine_AmSend(self, value, &retval);
    return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 0);
}
static __Pyx_PySendResult
__Pyx_Coroutine_AmSend(PyObject *self, PyObject *value, PyObject **retval) {
    __Pyx_PySendResult result;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        *retval = __Pyx_Coroutine_AlreadyRunningError(gen);
        return PYGEN_ERROR;
    }
    #if CYTHON_USE_AM_SEND
    if (gen->yieldfrom_am_send) {
        result = __Pyx_Coroutine_SendToDelegate(gen, gen->yieldfrom_am_send, value, retval);
    } else
    #endif
    if (gen->yieldfrom) {
        PyObject *yf = gen->yieldfrom;
        PyObject *ret;
      #if !CYTHON_USE_AM_SEND
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_Check(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_AsyncGen_USED
        if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
            ret = __Pyx_async_gen_asend_send(yf, value);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        if (PyCoro_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        #endif
      #endif
        {
            #if !CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x03080000
            if (value == Py_None && PyIter_Check(yf))
                ret = __Pyx_PyIter_Next_Plain(yf);
            else
            #endif
                ret = __Pyx_PyObject_CallMethod1(yf, __pyx_mstate_global->__pyx_n_u_send, value);
        }
        if (likely(ret)) {
            __Pyx_Coroutine_unset_is_running(gen);
            *retval = ret;
            return PYGEN_NEXT;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, retval);
    } else {
        result = __Pyx_Coroutine_SendEx(gen, value, retval, 0);
    }
    __Pyx_Coroutine_unset_is_running(gen);
    return result;
}
static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) {
    __Pyx_PySendResult result;
    PyObject *retval = NULL;
    CYTHON_UNUSED_VAR(gen);
    assert(__Pyx_Coroutine_get_is_running(gen));
    #ifdef __Pyx_Generator_USED
    if (__Pyx_Generator_CheckExact(yf)) {
        result = __Pyx_Coroutine_Close(yf, &retval);
    } else
    #endif
    #ifdef __Pyx_Coroutine_USED
    if (__Pyx_Coroutine_Check(yf)) {
        result = __Pyx_Coroutine_Close(yf, &retval);
    } else
    if (__Pyx_CoroutineAwait_CheckExact(yf)) {
        result = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf);
    } else
    #endif
    #ifdef __Pyx_AsyncGen_USED
    if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
        retval = __Pyx_async_gen_asend_close(yf, NULL);
        result = PYGEN_RETURN;
    } else
    if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) {
        retval = __Pyx_async_gen_athrow_close(yf, NULL);
        result = PYGEN_RETURN;
    } else
    #endif
    {
        PyObject *meth;
        result = PYGEN_RETURN;
        meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_mstate_global->__pyx_n_u_close);
        if (unlikely(!meth)) {
            if (unlikely(PyErr_Occurred())) {
                PyErr_WriteUnraisable(yf);
            }
        } else {
            retval = __Pyx_PyObject_CallNoArg(meth);
            Py_DECREF(meth);
            if (unlikely(!retval)) {
                result = PYGEN_ERROR;
            }
        }
    }
    Py_XDECREF(retval);
    return result == PYGEN_ERROR ? -1 : 0;
}
static PyObject *__Pyx_Generator_Next(PyObject *self) {
    __Pyx_PySendResult result;
    PyObject *retval = NULL;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    }
    #if CYTHON_USE_AM_SEND
    if (gen->yieldfrom_am_send) {
        result = __Pyx_Coroutine_SendToDelegate(gen, gen->yieldfrom_am_send, Py_None, &retval);
    } else
    #endif
    if (gen->yieldfrom) {
        PyObject *yf = gen->yieldfrom;
        PyObject *ret;
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Generator_Next(yf);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, Py_None);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && (PY_VERSION_HEX < 0x030A00A3 || !CYTHON_USE_AM_SEND)
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL);
        } else
        #endif
            ret = __Pyx_PyIter_Next_Plain(yf);
        if (likely(ret)) {
            __Pyx_Coroutine_unset_is_running(gen);
            return ret;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, &retval);
    } else {
        result = __Pyx_Coroutine_SendEx(gen, Py_None, &retval, 0);
    }
    __Pyx_Coroutine_unset_is_running(gen);
    return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 1);
}
static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, PyObject *arg) {
    PyObject *retval = NULL;
    __Pyx_PySendResult result;
    CYTHON_UNUSED_VAR(arg);
    result = __Pyx_Coroutine_Close(self, &retval);
    if (unlikely(result == PYGEN_ERROR))
        return NULL;
    Py_XDECREF(retval);
    Py_RETURN_NONE;
}
static __Pyx_PySendResult
__Pyx_Coroutine_Close(PyObject *self, PyObject **retval) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PySendResult result;
    PyObject *yf;
    int err = 0;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        *retval = __Pyx_Coroutine_AlreadyRunningError(gen);
        return PYGEN_ERROR;
    }
    yf = gen->yieldfrom;
    if (yf) {
        Py_INCREF(yf);
        err = __Pyx_Coroutine_CloseIter(gen, yf);
        __Pyx_Coroutine_Undelegate(gen);
        Py_DECREF(yf);
    }
    if (err == 0)
        PyErr_SetNone(PyExc_GeneratorExit);
    result = __Pyx_Coroutine_SendEx(gen, NULL, retval, 1);
    if (result == PYGEN_ERROR) {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_Coroutine_unset_is_running(gen);
        if (!__Pyx_PyErr_Occurred()) {
            return PYGEN_RETURN;
        } else if (likely(__Pyx_PyErr_ExceptionMatches2(PyExc_GeneratorExit, PyExc_StopIteration))) {
            __Pyx_PyErr_Clear();
            return PYGEN_RETURN;
        }
        return PYGEN_ERROR;
    } else if (likely(result == PYGEN_RETURN && *retval == Py_None)) {
        __Pyx_Coroutine_unset_is_running(gen);
        return PYGEN_RETURN;
    } else {
        const char *msg;
        Py_DECREF(*retval);
        *retval = NULL;
        if ((0)) {
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_Coroutine_Check(self)) {
            msg = "coroutine ignored GeneratorExit";
        #endif
        #ifdef __Pyx_AsyncGen_USED
        } else if (__Pyx_AsyncGen_CheckExact(self)) {
            msg = "async generator ignored GeneratorExit";
        #endif
        } else {
            msg = "generator ignored GeneratorExit";
        }
        PyErr_SetString(PyExc_RuntimeError, msg);
        __Pyx_Coroutine_unset_is_running(gen);
        return PYGEN_ERROR;
    }
}
static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb,
                                        PyObject *args, int close_on_genexit) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject *yf;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen)))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    yf = gen->yieldfrom;
    if (yf) {
        __Pyx_PySendResult result;
        PyObject *ret;
        Py_INCREF(yf);
        if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) {
            int err = __Pyx_Coroutine_CloseIter(gen, yf);
            Py_DECREF(yf);
            __Pyx_Coroutine_Undelegate(gen);
            if (err < 0)
                goto propagate_exception;
            goto throw_here;
        }
        if (0
        #ifdef __Pyx_Generator_USED
            || __Pyx_Generator_CheckExact(yf)
        #endif
        #ifdef __Pyx_Coroutine_USED
            || __Pyx_Coroutine_Check(yf)
        #endif
            ) {
            ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit);
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_CoroutineAwait_CheckExact(yf)) {
            ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit);
        #endif
        } else {
            PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_mstate_global->__pyx_n_u_throw);
            if (unlikely(!meth)) {
                Py_DECREF(yf);
                if (unlikely(PyErr_Occurred())) {
                    __Pyx_Coroutine_unset_is_running(gen);
                    return NULL;
                }
                __Pyx_Coroutine_Undelegate(gen);
                goto throw_here;
            }
            if (likely(args)) {
                ret = __Pyx_PyObject_Call(meth, args, NULL);
            } else {
                PyObject *cargs[4] = {NULL, typ, val, tb};
                ret = __Pyx_PyObject_FastCall(meth, cargs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
            }
            Py_DECREF(meth);
        }
        Py_DECREF(yf);
        if (ret) {
            __Pyx_Coroutine_unset_is_running(gen);
            return ret;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, &ret);
        __Pyx_Coroutine_unset_is_running(gen);
        return __Pyx_Coroutine_MethodReturnFromResult(self, result, ret, 0);
    }
throw_here:
    __Pyx_Raise(typ, val, tb, NULL);
propagate_exception:
    {
        PyObject *retval = NULL;
        __Pyx_PySendResult result = __Pyx_Coroutine_SendEx(gen, NULL, &retval, 0);
        __Pyx_Coroutine_unset_is_running(gen);
        return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 0);
    }
}
static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) {
    PyObject *typ;
    PyObject *val = NULL;
    PyObject *tb = NULL;
    if (unlikely(!PyArg_UnpackTuple(args, "throw", 1, 3, &typ, &val, &tb)))
        return NULL;
    return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1);
}
static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) {
#if PY_VERSION_HEX >= 0x030B00a4
    Py_VISIT(exc_state->exc_value);
#else
    Py_VISIT(exc_state->exc_type);
    Py_VISIT(exc_state->exc_value);
    Py_VISIT(exc_state->exc_traceback);
#endif
    return 0;
}
static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) {
    {
        int e = __Pyx_call_type_traverse((PyObject*)gen, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(gen->closure);
    Py_VISIT(gen->classobj);
    Py_VISIT(gen->yieldfrom);
    return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg);
}
static int __Pyx_Coroutine_clear(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    Py_CLEAR(gen->closure);
    Py_CLEAR(gen->classobj);
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer);
    }
#endif
    Py_CLEAR(gen->gi_code);
    Py_CLEAR(gen->gi_frame);
    Py_CLEAR(gen->gi_name);
    Py_CLEAR(gen->gi_qualname);
    Py_CLEAR(gen->gi_modulename);
    return 0;
}
static void __Pyx_Coroutine_dealloc(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject_GC_UnTrack(gen);
    #if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    if (gen->gi_weakreflist != NULL)
    #endif
        PyObject_ClearWeakRefs(self);
    if (gen->resume_label >= 0) {
        PyObject_GC_Track(self);
#if CYTHON_USE_TP_FINALIZE
        if (unlikely(PyObject_CallFinalizerFromDealloc(self)))
#else
        {
            destructor del = __Pyx_PyObject_GetSlot(gen, tp_del, destructor);
            if (del) del(self);
        }
        if (unlikely(Py_REFCNT(self) > 0))
#endif
        {
            return;
        }
        PyObject_GC_UnTrack(self);
    }
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        /* We have to handle this case for asynchronous generators
           right here, because this code has to be between UNTRACK
           and GC_Del. */
        Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer);
    }
#endif
    __Pyx_Coroutine_clear(self);
    __Pyx_PyHeapTypeObject_GC_Del(gen);
}
#if CYTHON_USE_TP_FINALIZE
static void __Pyx_Coroutine_del(PyObject *self) {
    PyObject *error_type, *error_value, *error_traceback;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PyThreadState_declare
    if (gen->resume_label < 0) {
        return;
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&error_type, &error_value, &error_traceback);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self;
        PyObject *finalizer = agen->ag_finalizer;
        if (finalizer && !agen->ag_closed) {
            PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self);
            if (unlikely(!res)) {
                PyErr_WriteUnraisable(self);
            } else {
                Py_DECREF(res);
            }
            __Pyx_ErrRestore(error_type, error_value, error_traceback);
            return;
        }
    }
#endif
    if (unlikely(gen->resume_label == 0 && !error_value)) {
#ifdef __Pyx_Coroutine_USED
#ifdef __Pyx_Generator_USED
    if (!__Pyx_Generator_CheckExact(self))
#endif
        {
        PyObject_GC_UnTrack(self);
        if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0))
            PyErr_WriteUnraisable(self);
        PyObject_GC_Track(self);
        }
#endif
    } else {
        PyObject *retval = NULL;
        __Pyx_PySendResult result = __Pyx_Coroutine_Close(self, &retval);
        if (result == PYGEN_ERROR) {
            PyErr_WriteUnraisable(self);
        } else {
            Py_XDECREF(retval);
        }
    }
    __Pyx_ErrRestore(error_type, error_value, error_traceback);
}
#endif
static PyObject *
__Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, void *context)
{
    PyObject *name = self->gi_name;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, 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_Py_XDECREF_SET(self->gi_name, value);
    return 0;
}
static PyObject *
__Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, void *context)
{
    PyObject *name = self->gi_qualname;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, 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_Py_XDECREF_SET(self->gi_qualname, value);
    return 0;
}
static PyObject *
__Pyx__Coroutine_get_frame(__pyx_CoroutineObject *self)
{
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyObject *frame;
    #if PY_VERSION_HEX >= 0x030d0000
    Py_BEGIN_CRITICAL_SECTION(self);
    #endif
    frame = self->gi_frame;
    if (!frame) {
        if (unlikely(!self->gi_code)) {
            Py_RETURN_NONE;
        }
        PyObject *globals = PyDict_New();
        if (unlikely(!globals)) return NULL;
        frame = (PyObject *) PyFrame_New(
            PyThreadState_Get(),            /*PyThreadState *tstate,*/
            (PyCodeObject*) self->gi_code,  /*PyCodeObject *code,*/
            globals,                        /*PyObject *globals,*/
            0                               /*PyObject *locals*/
        );
        Py_DECREF(globals);
        if (unlikely(!frame))
            return NULL;
        if (unlikely(self->gi_frame)) {
            Py_DECREF(frame);
            frame = self->gi_frame;
        } else {
            self->gi_frame = frame;
        }
    }
    Py_INCREF(frame);
    #if PY_VERSION_HEX >= 0x030d0000
    Py_END_CRITICAL_SECTION();
    #endif
    return frame;
#else
    CYTHON_UNUSED_VAR(self);
    Py_RETURN_NONE;
#endif
}
static PyObject *
__Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self, void *context) {
    CYTHON_UNUSED_VAR(context);
    PyObject *frame = self->gi_frame;
    if (frame)
        return __Pyx_NewRef(frame);
    return __Pyx__Coroutine_get_frame(self);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
            PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type);
    if (unlikely(!gen))
        return NULL;
    return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    gen->body = body;
    gen->closure = closure;
    Py_XINCREF(closure);
    gen->is_running = 0;
    gen->resume_label = 0;
    gen->classobj = NULL;
    gen->yieldfrom = NULL;
    gen->yieldfrom_am_send = NULL;
    #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_LIMITED_API
    gen->gi_exc_state.exc_value = NULL;
    #else
    gen->gi_exc_state.exc_type = NULL;
    gen->gi_exc_state.exc_value = NULL;
    gen->gi_exc_state.exc_traceback = NULL;
    #endif
#if CYTHON_USE_EXC_INFO_STACK
    gen->gi_exc_state.previous_item = NULL;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    gen->gi_weakreflist = NULL;
#endif
    Py_XINCREF(qualname);
    gen->gi_qualname = qualname;
    Py_XINCREF(name);
    gen->gi_name = name;
    Py_XINCREF(module_name);
    gen->gi_modulename = module_name;
    Py_XINCREF(code);
    gen->gi_code = code;
    gen->gi_frame = NULL;
    PyObject_GC_Track(gen);
    return gen;
}
static char __Pyx_Coroutine_test_and_set_is_running(__pyx_CoroutineObject *gen) {
    char result;
    #if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_BEGIN_CRITICAL_SECTION(gen);
    #endif
    result = gen->is_running;
    gen->is_running = 1;
    #if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_END_CRITICAL_SECTION();
    #endif
    return result;
}
static void __Pyx_Coroutine_unset_is_running(__pyx_CoroutineObject *gen) {
    #if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_BEGIN_CRITICAL_SECTION(gen);
    #endif
    assert(gen->is_running);
    gen->is_running = 0;
    #if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_END_CRITICAL_SECTION();
    #endif
}
static char __Pyx_Coroutine_get_is_running(__pyx_CoroutineObject *gen) {
    char result;
    #if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_BEGIN_CRITICAL_SECTION(gen);
    #endif
    result = gen->is_running;
    #if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_END_CRITICAL_SECTION();
    #endif
    return result;
}
static PyObject *__Pyx_Coroutine_get_is_running_getter(PyObject *gen, void *closure) {
    CYTHON_UNUSED_VAR(closure);
    char result = __Pyx_Coroutine_get_is_running((__pyx_CoroutineObject*)gen);
    if (result) Py_RETURN_TRUE;
    else Py_RETURN_FALSE;
}
#if __PYX_HAS_PY_AM_SEND == 2
static void __Pyx_SetBackportTypeAmSend(PyTypeObject *type, __Pyx_PyAsyncMethodsStruct *static_amsend_methods, __Pyx_pyiter_sendfunc am_send) {
    Py_ssize_t ptr_offset = (char*)(type->tp_as_async) - (char*)type;
    if (ptr_offset < 0 || ptr_offset > type->tp_basicsize) {
        return;
    }
    memcpy((void*)static_amsend_methods, (void*)(type->tp_as_async), sizeof(*type->tp_as_async));
    static_amsend_methods->am_send = am_send;
    type->tp_as_async = __Pyx_SlotTpAsAsync(static_amsend_methods);
}
#endif
static PyObject *__Pyx_Coroutine_fail_reduce_ex(PyObject *self, PyObject *arg) {
    CYTHON_UNUSED_VAR(arg);
    __Pyx_TypeName self_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE((PyObject*)self));
    PyErr_Format(PyExc_TypeError, "cannot pickle '" __Pyx_FMT_TYPENAME "' object",
                         self_type_name);
    __Pyx_DECREF_TypeName(self_type_name);
    return NULL;
}

/* Generator */
static PyMethodDef __pyx_Generator_methods[] = {
    {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O,
     PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")},
    {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS,
     PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")},
    {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS,
     PyDoc_STR("close() -> raise GeneratorExit inside generator.")},
    {"__reduce_ex__", (PyCFunction) __Pyx_Coroutine_fail_reduce_ex, METH_O, 0},
    {"__reduce__", (PyCFunction) __Pyx_Coroutine_fail_reduce_ex, METH_NOARGS, 0},
    {0, 0, 0, 0}
};
static PyMemberDef __pyx_Generator_memberlist[] = {
    {"gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY,
     PyDoc_STR("object being iterated by 'yield from', or None")},
    {"gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL},
    {"__module__", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_modulename), 0, 0},
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CoroutineObject, gi_weakreflist), READONLY, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyGetSetDef __pyx_Generator_getsets[] = {
    {"__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name,
     PyDoc_STR("name of the generator"), 0},
    {"__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname,
     PyDoc_STR("qualified name of the generator"), 0},
    {"gi_frame", (getter)__Pyx_Coroutine_get_frame, NULL,
     PyDoc_STR("Frame of the generator"), 0},
    {"gi_running", __Pyx_Coroutine_get_is_running_getter, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_GeneratorType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_Coroutine_dealloc},
    {Py_tp_traverse, (void *)__Pyx_Coroutine_traverse},
    {Py_tp_iter, (void *)PyObject_SelfIter},
    {Py_tp_iternext, (void *)__Pyx_Generator_Next},
    {Py_tp_methods, (void *)__pyx_Generator_methods},
    {Py_tp_members, (void *)__pyx_Generator_memberlist},
    {Py_tp_getset, (void *)__pyx_Generator_getsets},
    {Py_tp_getattro, (void *) PyObject_GenericGetAttr},
#if CYTHON_USE_TP_FINALIZE
    {Py_tp_finalize, (void *)__Pyx_Coroutine_del},
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    {Py_am_send, (void *)__Pyx_Coroutine_AmSend},
#endif
    {0, 0},
};
static PyType_Spec __pyx_GeneratorType_spec = {
    __PYX_TYPE_MODULE_PREFIX "generator",
    sizeof(__pyx_CoroutineObject),
    0,
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_WEAKREF |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | __Pyx_TPFLAGS_HAVE_AM_SEND,
    __pyx_GeneratorType_slots
};
#if __PYX_HAS_PY_AM_SEND == 2
static __Pyx_PyAsyncMethodsStruct __pyx_Generator_as_async;
#endif
static int __pyx_Generator_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_GeneratorType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_GeneratorType_spec, NULL);
    if (unlikely(!mstate->__pyx_GeneratorType)) {
        return -1;
    }
#if __PYX_HAS_PY_AM_SEND == 2
    __Pyx_SetBackportTypeAmSend(mstate->__pyx_GeneratorType, &__pyx_Generator_as_async, &__Pyx_Coroutine_AmSend);
#endif
    return 0;
}
static PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    PyObject *retval = NULL;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    }
    __Pyx_PySendResult result = __Pyx_Coroutine_SendEx(gen, Py_None, &retval, 0);
    __Pyx_Coroutine_unset_is_running(gen);
    (void) result;
    assert (result == PYGEN_RETURN || result == PYGEN_ERROR);
    assert ((result == PYGEN_RETURN && retval != NULL) || (result == PYGEN_ERROR && retval == NULL));
    return retval;
}

/* 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 */
